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.17; | |
| import "@openzeppelin/contracts/access/Ownable.sol"; | |
| import "@openzeppelin/contracts/security/Pausable.sol"; | |
| import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; | |
| import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | |
| import "./ManageLife.sol"; | |
| contract Marketplace is ReentrancyGuard, Pausable, Ownable { |
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.18; | |
| contract CebuFundraiser { | |
| struct Recipient { | |
| address recipientAddress; | |
| string name; | |
| bool isVerified; | |
| } |
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.19; | |
| contract Thanksify { | |
| address public owner; | |
| struct Message { | |
| string text; | |
| address sender; | |
| uint256 timestamp; |
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
| const { buildModule } = require("@nomicfoundation/hardhat-ignition/modules") | |
| const JAN_1ST_2030 = 1893456000 | |
| const ONE_GWEI = 1_000_000_000n | |
| module.exports = buildModule("LockModule", (m) => { | |
| const unlockTime = m.getParameter("unlockTime", JAN_1ST_2030) | |
| const lockedAmount = m.getParameter("lockedAmount", ONE_GWEI) | |
| const lock = m.contract("Lock", [unlockTime], { |
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: UNLICENSED | |
| pragma solidity ^0.8.24; | |
| // Uncomment this line to use console.log | |
| // import "hardhat/console.sol"; | |
| contract Lock { | |
| uint public unlockTime; | |
| address payable public 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
| TESTNET_PRIVATE_KEY=paste-your-private-keys-here |
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
| require("@nomicfoundation/hardhat-toolbox"); | |
| require("dotenv").config(); | |
| const { TESTNET_PRIVATE_KEY } = process.env; | |
| /** @type import('hardhat/config').HardhatUserConfig */ | |
| module.exports = { | |
| solidity: "0.8.24", | |
| networks: { |
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: LGPL-3.0-only | |
| pragma solidity ^0.8.17; | |
| import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; | |
| import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
| import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | |
| contract ManageLifeTokenVault is OwnableUpgradeable, IERC20 { | |
| ERC20 public token; | |
| uint256 public depositDeadline; |
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.17; | |
| import "erc721a/contracts/ERC721A.sol"; | |
| import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
| import "@openzeppelin/contracts/access/Ownable.sol"; | |
| import "@openzeppelin/contracts/security/Pausable.sol"; | |
| import "./Life.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.17; | |
| import "@openzeppelin/contracts/access/Ownable.sol"; | |
| import "@openzeppelin/contracts/security/Pausable.sol"; | |
| import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; | |
| import "./ManageLife.sol"; | |
| /** | |
| * @notice Marketplace contract for ManageLife. |