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 v5.0.0) (access/Ownable.sol) | |
pragma solidity ^0.8.20; | |
import {ContextUpgradeable} from "../utils/ContextUpgradeable.sol"; | |
import {Initializable} from "../proxy/utils/Initializable.sol"; | |
/** | |
* @dev Contract module which provides a basic access control mechanism, where |
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 v5.0.0) (access/Ownable.sol) | |
pragma solidity ^0.8.20; | |
import {Context} from "../utils/Context.sol"; | |
/** | |
* @dev Contract module which provides a basic access control mechanism, where | |
* there is an account (an owner) that can be granted exclusive access to |
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/Ownable.sol) | |
pragma solidity ^0.8.0; | |
import "../utils/ContextUpgradeable.sol"; | |
import "../proxy/utils/Initializable.sol"; | |
/** | |
* @dev Contract module which provides a basic access control mechanism, where |
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 v5.0.0) (access/Ownable.sol) | |
pragma solidity ^0.8.20; | |
import {ContextUpgradeable} from "../utils/ContextUpgradeable.sol"; | |
import {Initializable} from "../proxy/utils/Initializable.sol"; | |
/** | |
* @dev Contract module which provides a basic access control mechanism, where |
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/Ownable.sol) | |
pragma solidity ^0.8.0; | |
import "../utils/ContextUpgradeable.sol"; | |
import "../proxy/utils/Initializable.sol"; | |
/** | |
* @dev Contract module which provides a basic access control mechanism, where |
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: AGPL-3.0 | |
pragma solidity ^0.8.17; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
contract ERC20PermitMock is ERC20 { | |
constructor( | |
string memory name, | |
string memory symbol, |
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: AGPL-3.0 | |
pragma solidity ^0.8.17; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
contract ERC20PermitMock is ERC20 { | |
constructor( | |
string memory name, | |
string memory symbol, |
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: AGPL-3.0 | |
pragma solidity ^0.8.17; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
contract ERC20PermitMock is ERC20 { | |
constructor( | |
string memory name, | |
string memory symbol, |
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: AGPL-3.0 | |
pragma solidity 0.8.15; | |
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; | |
/** | |
* This contract will be used as a helper for all the sparse merkle tree related functions | |
* Based on the implementation of the deposit eth2.0 contract https://github.com/ethereum/consensus-specs/blob/dev/solidity_deposit_contract/deposit_contract.sol | |
*/ | |
contract DepositContract is Initializable { |
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: AGPL-3.0 | |
pragma solidity 0.8.15; | |
/** | |
* @dev Contract helper responsible to manage the emergency state | |
*/ | |
contract EmergencyManager { | |
// Indicates whether the emergency state is active or not | |
bool public isEmergencyState; |