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; | |
| import "../dependencies/@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol"; | |
| import "../dependencies/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; | |
| import "../dependencies/@openzeppelin/contracts-upgradeable/utils/structs/EnumerableSetUpgradeable.sol"; | |
| import "../dependencies/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; | |
| import "../dependencies/interfaces/IACMTCT.sol"; | |
| import "../dependencies/ELEPHANT.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; | |
| import "../dependencies/@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol"; | |
| import "../dependencies/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; | |
| import "../dependencies/@openzeppelin/contracts-upgradeable/utils/structs/EnumerableSetUpgradeable.sol"; | |
| import "../dependencies/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; | |
| import "../dependencies/interfaces/IACMTCT.sol"; | |
| import "../dependencies/ELEPHANT.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; | |
| import "../dependencies/@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol"; | |
| import "../dependencies/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; | |
| import "../dependencies/@openzeppelin/contracts-upgradeable/utils/structs/EnumerableSetUpgradeable.sol"; | |
| import "../dependencies/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; | |
| import "../dependencies/interfaces/IACMTCT.sol"; | |
| import "../dependencies/ELEPHANT.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: GPL-3.0 | |
| pragma solidity >=0.7.0 <0.9.0; | |
| contract databse{ | |
| ///["7", "9", "9", "7"] | |
| address owner; |
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.5; | |
| //a contract that before a person can withdraw an amount of money a number of people will approve before before the | |
| //withdraw can occur | |
| //1. put in some checks like a person has approved before | |
| //2. check if a person who wants to approve is among the people to approve | |
| contract Multisig{ //["0x5B38Da6a701c568545dCfcB03FcB875f56beddC4", "0x4B20993Bc481177ec7E8f571ceCaE8A9e22C02db", "0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2", "0x617F2E2fD72FD9D5503197092aC168c91465E7f2"] | |
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.7; | |
| contract pause{ | |
| mapping(address => uint) public balances; | |
| mapping(address => uint) public NofDeposit; | |
| address[] allDespositors; | |
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; | |
| contract tokenContract{ | |
| //have total supply | |
| //transferrable | |
| //name | |
| //symbol | |
| //decimal |
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 | |
| // Write a simple contract that deposit fund into a contract. And also keep track of funds transferred into the contract. | |
| // Add a function to the balance of address that have deposited into the contract.(Submit Github gist) | |
| // 20 points | |
| pragma solidity >=0.7.0 <0.9.0; | |
| contract funds { | |
| mapping(address => uint) balances; |