This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: GPL-3.0 | |
| pragma solidity >=0.7.0 <0.9.0; | |
| /** | |
| * @title Storage | |
| * @dev Store & retrieve value in a variable | |
| * @custom:dev-run-script ./scripts/deploy_with_ethers.ts | |
| */ | |
| contract Storage { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| // OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol) | |
| pragma solidity ^0.8.0; | |
| import "./IAccessControl.sol"; | |
| import "../utils/Context.sol"; | |
| import "../utils/Strings.sol"; | |
| import "../utils/introspection/ERC165.sol"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| // OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol) | |
| pragma solidity ^0.8.0; | |
| import "./IAccessControl.sol"; | |
| import "../utils/Context.sol"; | |
| import "../utils/Strings.sol"; | |
| import "../utils/introspection/ERC165.sol"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.10; | |
| contract SampleContract{ | |
| string public name; | |
| string public persona; | |
| string public company; | |
| bool public isAdmin; | |
| event DataUpdated(string name,string persona,string company,bool isAdmin); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| // OpenZeppelin Contracts v4.4.1 (access/AccessControl.sol) | |
| pragma solidity ^0.8.0; | |
| import "./IAccessControl.sol"; | |
| import "./Context.sol"; | |
| import "./Strings.sol"; | |
| import "./ERC165.sol"; | |