{"constructor_args":null,"is_partially_verified":true,"is_changed_bytecode":false,"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"}],"name":"AddedBlackList","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"}],"name":"BlackListedContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"}],"name":"BlackListedExternalSender","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"}],"name":"BlackListedForwarder","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"}],"name":"BlackListedInternalUser","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"}],"name":"BlackListedMinter","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"}],"name":"MintAmountAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"}],"name":"MintAmountRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"}],"name":"RemovedBlackList","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"}],"name":"WhitelistedContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"}],"name":"WhitelistedExternalSender","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"}],"name":"WhitelistedForwarder","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"}],"name":"WhitelistedInternalUser","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"}],"name":"WhitelistedMinter","type":"event"},{"inputs":[{"internalType":"address","name":"_evilUser","type":"address"}],"name":"addBlackList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_User","type":"address"}],"name":"addCanForward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_User","type":"address"}],"name":"addCanMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_User","type":"address"},{"internalType":"uint256","name":"_Amount","type":"uint256"}],"name":"addMintAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_trustedContract","type":"address"}],"name":"addTrustedContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_User","type":"address"}],"name":"blacklistExternalSender","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_User","type":"address"}],"name":"blacklistInternalUser","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"canForward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"canMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isBlackListed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isExternalSenderWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isInternalUserWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_clearedUser","type":"address"}],"name":"removeBlackList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_User","type":"address"}],"name":"removeCanForward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_User","type":"address"}],"name":"removeCanMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_User","type":"address"}],"name":"removeMintAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_trustedContract","type":"address"}],"name":"removeTrustedContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"trustedContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_User","type":"address"}],"name":"whitelistExternalSender","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_User","type":"address"}],"name":"whitelistInternalUser","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}],"conflicting_implementations":null,"certified":false,"additional_sources":[{"file_path":"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\n    address private _owner;\n\n    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n    /**\n     * @dev Initializes the contract setting the deployer as the initial owner.\n     */\n    function __Ownable_init() internal onlyInitializing {\n        __Ownable_init_unchained();\n    }\n\n    function __Ownable_init_unchained() internal onlyInitializing {\n        _transferOwnership(_msgSender());\n    }\n\n    /**\n     * @dev Throws if called by any account other than the owner.\n     */\n    modifier onlyOwner() {\n        _checkOwner();\n        _;\n    }\n\n    /**\n     * @dev Returns the address of the current owner.\n     */\n    function owner() public view virtual returns (address) {\n        return _owner;\n    }\n\n    /**\n     * @dev Throws if the sender is not the owner.\n     */\n    function _checkOwner() internal view virtual {\n        require(owner() == _msgSender(), \"Ownable: caller is not the owner\");\n    }\n\n    /**\n     * @dev Leaves the contract without owner. It will not be possible to call\n     * `onlyOwner` functions. Can only be called by the current owner.\n     *\n     * NOTE: Renouncing ownership will leave the contract without an owner,\n     * thereby disabling any functionality that is only available to the owner.\n     */\n    function renounceOwnership() public virtual onlyOwner {\n        _transferOwnership(address(0));\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Can only be called by the current owner.\n     */\n    function transferOwnership(address newOwner) public virtual onlyOwner {\n        require(newOwner != address(0), \"Ownable: new owner is the zero address\");\n        _transferOwnership(newOwner);\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Internal function without access restriction.\n     */\n    function _transferOwnership(address newOwner) internal virtual {\n        address oldOwner = _owner;\n        _owner = newOwner;\n        emit OwnershipTransferred(oldOwner, newOwner);\n    }\n\n    /**\n     * @dev This empty reserved space is put in place to allow future versions to add new\n     * variables without shifting down storage in the inheritance chain.\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n     */\n    uint256[49] private __gap;\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.2;\n\nimport \"../../utils/AddressUpgradeable.sol\";\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n *     function initialize() initializer public {\n *         __ERC20_init(\"MyToken\", \"MTK\");\n *     }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n *     function initializeV2() reinitializer(2) public {\n *         __ERC20Permit_init(\"MyToken\");\n *     }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n *     _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n    /**\n     * @dev Indicates that the contract has been initialized.\n     * @custom:oz-retyped-from bool\n     */\n    uint8 private _initialized;\n\n    /**\n     * @dev Indicates that the contract is in the process of being initialized.\n     */\n    bool private _initializing;\n\n    /**\n     * @dev Triggered when the contract has been initialized or reinitialized.\n     */\n    event Initialized(uint8 version);\n\n    /**\n     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n     * `onlyInitializing` functions can be used to initialize parent contracts.\n     *\n     * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\n     * constructor.\n     *\n     * Emits an {Initialized} event.\n     */\n    modifier initializer() {\n        bool isTopLevelCall = !_initializing;\n        require(\n            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\n            \"Initializable: contract is already initialized\"\n        );\n        _initialized = 1;\n        if (isTopLevelCall) {\n            _initializing = true;\n        }\n        _;\n        if (isTopLevelCall) {\n            _initializing = false;\n            emit Initialized(1);\n        }\n    }\n\n    /**\n     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n     * used to initialize parent contracts.\n     *\n     * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n     * are added through upgrades and that require initialization.\n     *\n     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n     * cannot be nested. If one is invoked in the context of another, execution will revert.\n     *\n     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n     * a contract, executing them in the right order is up to the developer or operator.\n     *\n     * WARNING: setting the version to 255 will prevent any future reinitialization.\n     *\n     * Emits an {Initialized} event.\n     */\n    modifier reinitializer(uint8 version) {\n        require(!_initializing && _initialized < version, \"Initializable: contract is already initialized\");\n        _initialized = version;\n        _initializing = true;\n        _;\n        _initializing = false;\n        emit Initialized(version);\n    }\n\n    /**\n     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n     * {initializer} and {reinitializer} modifiers, directly or indirectly.\n     */\n    modifier onlyInitializing() {\n        require(_initializing, \"Initializable: contract is not initializing\");\n        _;\n    }\n\n    /**\n     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n     * through proxies.\n     *\n     * Emits an {Initialized} event the first time it is successfully executed.\n     */\n    function _disableInitializers() internal virtual {\n        require(!_initializing, \"Initializable: contract is initializing\");\n        if (_initialized != type(uint8).max) {\n            _initialized = type(uint8).max;\n            emit Initialized(type(uint8).max);\n        }\n    }\n\n    /**\n     * @dev Returns the highest version that has been initialized. See {reinitializer}.\n     */\n    function _getInitializedVersion() internal view returns (uint8) {\n        return _initialized;\n    }\n\n    /**\n     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n     */\n    function _isInitializing() internal view returns (bool) {\n        return _initializing;\n    }\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module which allows children to implement an emergency stop\n * mechanism that can be triggered by an authorized account.\n *\n * This module is used through inheritance. It will make available the\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\n * the functions of your contract. Note that they will not be pausable by\n * simply including this module, only once the modifiers are put in place.\n */\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\n    /**\n     * @dev Emitted when the pause is triggered by `account`.\n     */\n    event Paused(address account);\n\n    /**\n     * @dev Emitted when the pause is lifted by `account`.\n     */\n    event Unpaused(address account);\n\n    bool private _paused;\n\n    /**\n     * @dev Initializes the contract in unpaused state.\n     */\n    function __Pausable_init() internal onlyInitializing {\n        __Pausable_init_unchained();\n    }\n\n    function __Pausable_init_unchained() internal onlyInitializing {\n        _paused = false;\n    }\n\n    /**\n     * @dev Modifier to make a function callable only when the contract is not paused.\n     *\n     * Requirements:\n     *\n     * - The contract must not be paused.\n     */\n    modifier whenNotPaused() {\n        _requireNotPaused();\n        _;\n    }\n\n    /**\n     * @dev Modifier to make a function callable only when the contract is paused.\n     *\n     * Requirements:\n     *\n     * - The contract must be paused.\n     */\n    modifier whenPaused() {\n        _requirePaused();\n        _;\n    }\n\n    /**\n     * @dev Returns true if the contract is paused, and false otherwise.\n     */\n    function paused() public view virtual returns (bool) {\n        return _paused;\n    }\n\n    /**\n     * @dev Throws if the contract is paused.\n     */\n    function _requireNotPaused() internal view virtual {\n        require(!paused(), \"Pausable: paused\");\n    }\n\n    /**\n     * @dev Throws if the contract is not paused.\n     */\n    function _requirePaused() internal view virtual {\n        require(paused(), \"Pausable: not paused\");\n    }\n\n    /**\n     * @dev Triggers stopped state.\n     *\n     * Requirements:\n     *\n     * - The contract must not be paused.\n     */\n    function _pause() internal virtual whenNotPaused {\n        _paused = true;\n        emit Paused(_msgSender());\n    }\n\n    /**\n     * @dev Returns to normal state.\n     *\n     * Requirements:\n     *\n     * - The contract must be paused.\n     */\n    function _unpause() internal virtual whenPaused {\n        _paused = false;\n        emit Unpaused(_msgSender());\n    }\n\n    /**\n     * @dev This empty reserved space is put in place to allow future versions to add new\n     * variables without shifting down storage in the inheritance chain.\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n     */\n    uint256[49] private __gap;\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)\n\npragma solidity ^0.8.0;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module that helps prevent reentrant calls to a function.\n *\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\n * available, which can be applied to functions to make sure there are no nested\n * (reentrant) calls to them.\n *\n * Note that because there is a single `nonReentrant` guard, functions marked as\n * `nonReentrant` may not call one another. This can be worked around by making\n * those functions `private`, and then adding `external` `nonReentrant` entry\n * points to them.\n *\n * TIP: If you would like to learn more about reentrancy and alternative ways\n * to protect against it, check out our blog post\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\n */\nabstract contract ReentrancyGuardUpgradeable is Initializable {\n    // Booleans are more expensive than uint256 or any type that takes up a full\n    // word because each write operation emits an extra SLOAD to first read the\n    // slot's contents, replace the bits taken up by the boolean, and then write\n    // back. This is the compiler's defense against contract upgrades and\n    // pointer aliasing, and it cannot be disabled.\n\n    // The values being non-zero value makes deployment a bit more expensive,\n    // but in exchange the refund on every call to nonReentrant will be lower in\n    // amount. Since refunds are capped to a percentage of the total\n    // transaction's gas, it is best to keep them low in cases like this one, to\n    // increase the likelihood of the full refund coming into effect.\n    uint256 private constant _NOT_ENTERED = 1;\n    uint256 private constant _ENTERED = 2;\n\n    uint256 private _status;\n\n    function __ReentrancyGuard_init() internal onlyInitializing {\n        __ReentrancyGuard_init_unchained();\n    }\n\n    function __ReentrancyGuard_init_unchained() internal onlyInitializing {\n        _status = _NOT_ENTERED;\n    }\n\n    /**\n     * @dev Prevents a contract from calling itself, directly or indirectly.\n     * Calling a `nonReentrant` function from another `nonReentrant`\n     * function is not supported. It is possible to prevent this from happening\n     * by making the `nonReentrant` function external, and making it call a\n     * `private` function that does the actual work.\n     */\n    modifier nonReentrant() {\n        _nonReentrantBefore();\n        _;\n        _nonReentrantAfter();\n    }\n\n    function _nonReentrantBefore() private {\n        // On the first call to nonReentrant, _status will be _NOT_ENTERED\n        require(_status != _ENTERED, \"ReentrancyGuard: reentrant call\");\n\n        // Any calls to nonReentrant after this point will fail\n        _status = _ENTERED;\n    }\n\n    function _nonReentrantAfter() private {\n        // By storing the original value once again, a refund is triggered (see\n        // https://eips.ethereum.org/EIPS/eip-2200)\n        _status = _NOT_ENTERED;\n    }\n\n    /**\n     * @dev Returns true if the reentrancy guard is currently set to \"entered\", which indicates there is a\n     * `nonReentrant` function in the call stack.\n     */\n    function _reentrancyGuardEntered() internal view returns (bool) {\n        return _status == _ENTERED;\n    }\n\n    /**\n     * @dev This empty reserved space is put in place to allow future versions to add new\n     * variables without shifting down storage in the inheritance chain.\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n     */\n    uint256[49] private __gap;\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary AddressUpgradeable {\n    /**\n     * @dev Returns true if `account` is a contract.\n     *\n     * [IMPORTANT]\n     * ====\n     * It is unsafe to assume that an address for which this function returns\n     * false is an externally-owned account (EOA) and not a contract.\n     *\n     * Among others, `isContract` will return false for the following\n     * types of addresses:\n     *\n     *  - an externally-owned account\n     *  - a contract in construction\n     *  - an address where a contract will be created\n     *  - an address where a contract lived, but was destroyed\n     *\n     * Furthermore, `isContract` will also return true if the target contract within\n     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\n     * which only has an effect at the end of a transaction.\n     * ====\n     *\n     * [IMPORTANT]\n     * ====\n     * You shouldn't rely on `isContract` to protect against flash loan attacks!\n     *\n     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n     * constructor.\n     * ====\n     */\n    function isContract(address account) internal view returns (bool) {\n        // This method relies on extcodesize/address.code.length, which returns 0\n        // for contracts in construction, since the code is only stored at the end\n        // of the constructor execution.\n\n        return account.code.length > 0;\n    }\n\n    /**\n     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n     * `recipient`, forwarding all available gas and reverting on errors.\n     *\n     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n     * of certain opcodes, possibly making contracts go over the 2300 gas limit\n     * imposed by `transfer`, making them unable to receive funds via\n     * `transfer`. {sendValue} removes this limitation.\n     *\n     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n     *\n     * IMPORTANT: because control is transferred to `recipient`, care must be\n     * taken to not create reentrancy vulnerabilities. Consider using\n     * {ReentrancyGuard} or the\n     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n     */\n    function sendValue(address payable recipient, uint256 amount) internal {\n        require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n        (bool success, ) = recipient.call{value: amount}(\"\");\n        require(success, \"Address: unable to send value, recipient may have reverted\");\n    }\n\n    /**\n     * @dev Performs a Solidity function call using a low level `call`. A\n     * plain `call` is an unsafe replacement for a function call: use this\n     * function instead.\n     *\n     * If `target` reverts with a revert reason, it is bubbled up by this\n     * function (like regular Solidity function calls).\n     *\n     * Returns the raw returned data. To convert to the expected return value,\n     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n     *\n     * Requirements:\n     *\n     * - `target` must be a contract.\n     * - calling `target` with `data` must not revert.\n     *\n     * _Available since v3.1._\n     */\n    function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n     * `errorMessage` as a fallback revert reason when `target` reverts.\n     *\n     * _Available since v3.1._\n     */\n    function functionCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, 0, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but also transferring `value` wei to `target`.\n     *\n     * Requirements:\n     *\n     * - the calling contract must have an ETH balance of at least `value`.\n     * - the called Solidity function must be `payable`.\n     *\n     * _Available since v3.1._\n     */\n    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n     * with `errorMessage` as a fallback revert reason when `target` reverts.\n     *\n     * _Available since v3.1._\n     */\n    function functionCallWithValue(\n        address target,\n        bytes memory data,\n        uint256 value,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        require(address(this).balance >= value, \"Address: insufficient balance for call\");\n        (bool success, bytes memory returndata) = target.call{value: value}(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but performing a static call.\n     *\n     * _Available since v3.3._\n     */\n    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n        return functionStaticCall(target, data, \"Address: low-level static call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n     * but performing a static call.\n     *\n     * _Available since v3.3._\n     */\n    function functionStaticCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal view returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.staticcall(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but performing a delegate call.\n     *\n     * _Available since v3.4._\n     */\n    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n        return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n     * but performing a delegate call.\n     *\n     * _Available since v3.4._\n     */\n    function functionDelegateCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.delegatecall(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n     *\n     * _Available since v4.8._\n     */\n    function verifyCallResultFromTarget(\n        address target,\n        bool success,\n        bytes memory returndata,\n        string memory errorMessage\n    ) internal view returns (bytes memory) {\n        if (success) {\n            if (returndata.length == 0) {\n                // only check isContract if the call was successful and the return data is empty\n                // otherwise we already know that it was a contract\n                require(isContract(target), \"Address: call to non-contract\");\n            }\n            return returndata;\n        } else {\n            _revert(returndata, errorMessage);\n        }\n    }\n\n    /**\n     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n     * revert reason or using the provided one.\n     *\n     * _Available since v4.3._\n     */\n    function verifyCallResult(\n        bool success,\n        bytes memory returndata,\n        string memory errorMessage\n    ) internal pure returns (bytes memory) {\n        if (success) {\n            return returndata;\n        } else {\n            _revert(returndata, errorMessage);\n        }\n    }\n\n    function _revert(bytes memory returndata, string memory errorMessage) private pure {\n        // Look for revert reason and bubble it up if present\n        if (returndata.length > 0) {\n            // The easiest way to bubble the revert reason is using memory via assembly\n            /// @solidity memory-safe-assembly\n            assembly {\n                let returndata_size := mload(returndata)\n                revert(add(32, returndata), returndata_size)\n            }\n        } else {\n            revert(errorMessage);\n        }\n    }\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)\n\npragma solidity ^0.8.0;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n    function __Context_init() internal onlyInitializing {\n    }\n\n    function __Context_init_unchained() internal onlyInitializing {\n    }\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n\n    function _contextSuffixLength() internal view virtual returns (uint256) {\n        return 0;\n    }\n\n    /**\n     * @dev This empty reserved space is put in place to allow future versions to add new\n     * variables without shifting down storage in the inheritance chain.\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n     */\n    uint256[50] private __gap;\n}\n"}],"is_verified_via_sourcify":false,"can_be_visualized_via_sol2uml":true,"evm_version":"paris","language":"solidity","is_verified_via_eth_bytecode_db":true,"is_fully_verified":false,"license_type":"none","is_blueprint":false,"name":"Admin2","creation_bytecode":"0x6080604052348015600f57600080fd5b506115e58061001f6000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c80638da5cb5b116100f9578063e160587f11610097578063e9f2216911610071578063e9f22169146103f7578063f0314df01461040a578063f0d39ad11461041d578063f2fde38b1461043057600080fd5b8063e160587f146103ae578063e47d6060146103c1578063e4997dc5146103e457600080fd5b8063b85282a3116100d3578063b85282a314610352578063bf892eaa14610365578063bfc5181b14610378578063c2ba47441461038b57600080fd5b80638da5cb5b146103115780639e1a15f01461032c578063b4f76a101461033f57600080fd5b80635efd3765116101665780638061f132116101405780638061f132146102cb5780638129fc1c146102ee5780638456cb59146102f65780638a4e0ace146102fe57600080fd5b80635efd37651461027d57806365edf610146102a0578063715018a6146102c357600080fd5b80633f4ba83a116101a25780633f4ba83a146102345780633fd0966e1461023c578063542f16d41461025f5780635c975abb1461027257600080fd5b8063055d822c146101c95780630ecb93c0146101fc578063176583d614610211575b600080fd5b6101e96101d73660046114f0565b60cb6020526000908152604090205481565b6040519081526020015b60405180910390f35b61020f61020a3660046114f0565b610443565b005b61022461021f3660046114f0565b61050d565b60405190151581526020016101f3565b61020f61063b565b61022461024a3660046114f0565b60cf6020526000908152604090205460ff1681565b61022461026d3660046114f0565b61064d565b60975460ff16610224565b61022461028b3660046114f0565b60ce6020526000908152604090205460ff1681565b6102246102ae3660046114f0565b60c96020526000908152604090205460ff1681565b61020f61070d565b6102246102d93660046114f0565b60cc6020526000908152604090205460ff1681565b61020f61071f565b61020f610872565b61022461030c3660046114f0565b610882565b6033546040516001600160a01b0390911681526020016101f3565b61022461033a3660046114f0565b61098a565b61022461034d3660046114f0565b610a49565b6102246103603660046114f0565b610ae0565b6102246103733660046114f0565b610ba7565b6102246103863660046114f0565b610c6f565b6102246103993660046114f0565b60ca6020526000908152604090205460ff1681565b6102246103bc3660046114f0565b610d37565b6102246103cf3660046114f0565b60cd6020526000908152604090205460ff1681565b6102246103f23660046114f0565b610dfe565b610224610405366004611512565b610ec6565b6102246104183660046114f0565b610f4c565b61022461042b3660046114f0565b611011565b61020f61043e3660046114f0565b61117b565b61044b6111f1565b610453611237565b6001600160a01b038116600090815260cd602052604090205460ff16156104c15760405162461bcd60e51b815260206004820152601860248201527f5573657220616c726561647920426c61636b4c6973746564000000000000000060448201526064015b60405180910390fd5b6001600160a01b038116600081815260cd6020526040808220805460ff19166001179055517f42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc9190a250565b60006105176111f1565b61051f611237565b6001600160a01b038216600090815260cd6020526040902054829060ff16156105805760405162461bcd60e51b8152602060048201526013602482015272155cd95c881a5cc8189b1858dadb1a5cdd1959606a1b60448201526064016104b8565b6001600160a01b038316600090815260c9602052604090205460ff16156105e95760405162461bcd60e51b815260206004820152601f60248201527f5573657220616c726561647920616464656420617320666f727761726465720060448201526064016104b8565b6001600160a01b038316600081815260c96020526040808220805460ff19166001179055517f6570102f70c9f7018c7b17caf1de30d3c3861a41bafd23f66ac943e448c50b5c9190a250600192915050565b610643611237565b61064b611291565b565b60006106576111f1565b61065f611237565b6001600160a01b038216600090815260ce602052604090205460ff166106be5760405162461bcd60e51b8152602060048201526014602482015273155cd95c881b9bdd081dda1a5d195b1a5cdd195960621b60448201526064016104b8565b6001600160a01b038216600081815260ce6020526040808220805460ff19169055517f99af21e3b1fe524ff7364b59a8df3562393f2e5eb5d1377702fe2688e075dad69190a25060015b919050565b610715611237565b61064b60006112e3565b600054610100900460ff161580801561073f5750600054600160ff909116105b806107595750303b158015610759575060005460ff166001145b6107bc5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016104b8565b6000805460ff1916600117905580156107df576000805461ff0019166101001790555b6107e7611335565b6107ef611364565b6107f7611393565b33600090815260c9602090815260408083208054600160ff19918216811790925560ca909352922080549091169091179055801561086f576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50565b61087a611237565b61064b6113c2565b600061088c6111f1565b6033546001600160a01b03163314806108b4575033600090815260cc602052604090205460ff165b6108d05760405162461bcd60e51b81526004016104b89061153c565b6001600160a01b038216600090815260ca602052604090205460ff1661092f5760405162461bcd60e51b81526020600482015260146024820152732ab9b2b91034b9903737ba10309036b4b73a32b960611b60448201526064016104b8565b6001600160a01b038216600081815260ca60209081526040808320805460ff1916905560cb909152808220829055517fb8d6072435c030a71f32e447622d98725fd3f3540e1dc57720bb54b17ca3af899190a2506001919050565b60006109946111f1565b61099c611237565b6001600160a01b038216600090815260cf602052604090205460ff166109fb5760405162461bcd60e51b8152602060048201526014602482015273155cd95c881b9bdd081dda1a5d195b1a5cdd195960621b60448201526064016104b8565b6001600160a01b038216600081815260cf6020526040808220805460ff19169055517f1add56ac7cce24bb03f68cc192c7e23ff52c253256412380960e1495d16351f69190a2506001919050565b6000610a536111f1565b6033546001600160a01b0316331480610a7b575033600090815260cc602052604090205460ff165b610a975760405162461bcd60e51b81526004016104b89061153c565b6001600160a01b038216600081815260cb6020526040808220829055517f4ceebd8137e5ac28cab2b8449582c83280b976ce1884eb71d861739885f347bc9190a2506001919050565b6000610aea6111f1565b610af2611237565b6001600160a01b038216600090815260ce602052604090205460ff1615610b565760405162461bcd60e51b8152602060048201526018602482015277155cd95c88185b1c9958591e481dda1a5d195b1a5cdd195960421b60448201526064016104b8565b6001600160a01b038216600081815260ce6020526040808220805460ff19166001179055517fbfa7e9dc90e3e7bcecdb459db0f2e3ae408ffbf687e970bb4a957c11d0d79e549190a2506001919050565b6000610bb16111f1565b610bb9611237565b6001600160a01b038216600090815260cc602052604090205460ff16610c215760405162461bcd60e51b815260206004820152601760248201527f436f6e747261637420646f6573206e6f7420657869737400000000000000000060448201526064016104b8565b6001600160a01b038216600081815260cc6020526040808220805460ff19169055517f0d0d357bcf48438779e1fe617697436a250202039825d4d84bf697d9a419ba6a9190a2506001919050565b6000610c796111f1565b610c81611237565b6001600160a01b038216600090815260c9602052604090205460ff16610ce95760405162461bcd60e51b815260206004820152601760248201527f55736572206973206e6f74206120666f7277617264657200000000000000000060448201526064016104b8565b6001600160a01b038216600081815260c96020526040808220805460ff19169055517fa7faa16f6ece47894ac31f42e1301d11bd28001e31aaac4e028c4f80757e0dc39190a2506001919050565b6000610d416111f1565b610d49611237565b6001600160a01b038216600090815260cf602052604090205460ff1615610dad5760405162461bcd60e51b8152602060048201526018602482015277155cd95c88185b1c9958591e481dda1a5d195b1a5cdd195960421b60448201526064016104b8565b6001600160a01b038216600081815260cf6020526040808220805460ff19166001179055517f4acf47ffbc39e4e8df31ec82d5707f7aa51ce419a915f50eec70e8aa74c82f7d9190a2506001919050565b6000610e086111f1565b610e10611237565b6001600160a01b038216600090815260cd602052604090205460ff16610e785760405162461bcd60e51b815260206004820152601960248201527f41646472657373206e6f742061204c697374656420557365720000000000000060448201526064016104b8565b6001600160a01b038216600081815260cd6020526040808220805460ff19169055517fd7e9ec6e6ecd65492dce6bf513cd6867560d49544421d0783ddf06e76c24470c9190a2506001919050565b6000610ed06111f1565b610ed8611237565b6001600160a01b038316600090815260ca602052604090205460ff161515600114610f0257600080fd5b6001600160a01b038316600081815260cb6020526040808220859055517f36e552943925ad9bcbfaad94a0bb4cd68a1ff6c8759d3b7b04e04808876322e59190a250600192915050565b6000610f566111f1565b610f5e611237565b6001600160a01b038216600090815260cc602052604090205460ff1615610fc05760405162461bcd60e51b815260206004820152601660248201527510dbdb9d1c9858dd08185b1c9958591e48185919195960521b60448201526064016104b8565b6001600160a01b038216600081815260cc6020526040808220805460ff19166001179055517ff3f8e46041656d3246396bd12bf0589e2615cd3b518ac09e1ca7af53f7f401249190a2506001919050565b600061101b6111f1565b6033546001600160a01b0316331480611043575033600090815260cc602052604090205460ff165b61105f5760405162461bcd60e51b81526004016104b89061153c565b6001600160a01b038216600090815260cd6020526040902054829060ff16156110c05760405162461bcd60e51b8152602060048201526013602482015272155cd95c881a5cc8189b1858dadb1a5cdd1959606a1b60448201526064016104b8565b6001600160a01b038316600090815260ca602052604090205460ff16156111295760405162461bcd60e51b815260206004820152601c60248201527f5573657220616c7265616479206164646564206173206d696e7465720000000060448201526064016104b8565b6001600160a01b038316600081815260ca6020526040808220805460ff19166001179055517fa7bc6cbcc74fbb036defe7be7aa46cf2177c9dac567d24583c365e420ac5e4a49190a250600192915050565b611183611237565b6001600160a01b0381166111e85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104b8565b61086f816112e3565b60975460ff161561064b5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016104b8565b6033546001600160a01b0316331461064b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104b8565b6112996113ff565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff1661135c5760405162461bcd60e51b81526004016104b890611564565b61064b611448565b600054610100900460ff1661138b5760405162461bcd60e51b81526004016104b890611564565b61064b611478565b600054610100900460ff166113ba5760405162461bcd60e51b81526004016104b890611564565b61064b6114a6565b6113ca6111f1565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586112c63390565b60975460ff1661064b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016104b8565b600054610100900460ff1661146f5760405162461bcd60e51b81526004016104b890611564565b61064b336112e3565b600054610100900460ff1661149f5760405162461bcd60e51b81526004016104b890611564565b6001606555565b600054610100900460ff166114cd5760405162461bcd60e51b81526004016104b890611564565b6097805460ff19169055565b80356001600160a01b038116811461070857600080fd5b60006020828403121561150257600080fd5b61150b826114d9565b9392505050565b6000806040838503121561152557600080fd5b61152e836114d9565b946020939093013593505050565b6020808252600e908201526d139bdd08185d5d1a1bdc9a5e995960921b604082015260600190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea26469706673582212208469a5f56c7895ec7dbe1ce1d5f86a94e2b863879432134691b6d63dcdb3b57a64736f6c634300081c0033","external_libraries":[],"proxy_type":null,"implementations":[],"verified_at":"2026-07-25T06:27:11.328787Z","is_verified_via_verifier_alliance":false,"compiler_version":"v0.8.28+commit.7893614a","decoded_constructor_args":null,"sourcify_repo_url":null,"optimization_runs":200,"compiler_settings":{"evmVersion":"paris","libraries":{},"optimizer":{"enabled":true,"runs":200},"outputSelection":{"*":{"":["*"],"*":["*"]}}},"is_verified":true,"verified_twin_address_hash":null,"optimization_enabled":true,"deployed_bytecode":"0x608060405234801561001057600080fd5b50600436106101c45760003560e01c80638da5cb5b116100f9578063e160587f11610097578063e9f2216911610071578063e9f22169146103f7578063f0314df01461040a578063f0d39ad11461041d578063f2fde38b1461043057600080fd5b8063e160587f146103ae578063e47d6060146103c1578063e4997dc5146103e457600080fd5b8063b85282a3116100d3578063b85282a314610352578063bf892eaa14610365578063bfc5181b14610378578063c2ba47441461038b57600080fd5b80638da5cb5b146103115780639e1a15f01461032c578063b4f76a101461033f57600080fd5b80635efd3765116101665780638061f132116101405780638061f132146102cb5780638129fc1c146102ee5780638456cb59146102f65780638a4e0ace146102fe57600080fd5b80635efd37651461027d57806365edf610146102a0578063715018a6146102c357600080fd5b80633f4ba83a116101a25780633f4ba83a146102345780633fd0966e1461023c578063542f16d41461025f5780635c975abb1461027257600080fd5b8063055d822c146101c95780630ecb93c0146101fc578063176583d614610211575b600080fd5b6101e96101d73660046114f0565b60cb6020526000908152604090205481565b6040519081526020015b60405180910390f35b61020f61020a3660046114f0565b610443565b005b61022461021f3660046114f0565b61050d565b60405190151581526020016101f3565b61020f61063b565b61022461024a3660046114f0565b60cf6020526000908152604090205460ff1681565b61022461026d3660046114f0565b61064d565b60975460ff16610224565b61022461028b3660046114f0565b60ce6020526000908152604090205460ff1681565b6102246102ae3660046114f0565b60c96020526000908152604090205460ff1681565b61020f61070d565b6102246102d93660046114f0565b60cc6020526000908152604090205460ff1681565b61020f61071f565b61020f610872565b61022461030c3660046114f0565b610882565b6033546040516001600160a01b0390911681526020016101f3565b61022461033a3660046114f0565b61098a565b61022461034d3660046114f0565b610a49565b6102246103603660046114f0565b610ae0565b6102246103733660046114f0565b610ba7565b6102246103863660046114f0565b610c6f565b6102246103993660046114f0565b60ca6020526000908152604090205460ff1681565b6102246103bc3660046114f0565b610d37565b6102246103cf3660046114f0565b60cd6020526000908152604090205460ff1681565b6102246103f23660046114f0565b610dfe565b610224610405366004611512565b610ec6565b6102246104183660046114f0565b610f4c565b61022461042b3660046114f0565b611011565b61020f61043e3660046114f0565b61117b565b61044b6111f1565b610453611237565b6001600160a01b038116600090815260cd602052604090205460ff16156104c15760405162461bcd60e51b815260206004820152601860248201527f5573657220616c726561647920426c61636b4c6973746564000000000000000060448201526064015b60405180910390fd5b6001600160a01b038116600081815260cd6020526040808220805460ff19166001179055517f42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc9190a250565b60006105176111f1565b61051f611237565b6001600160a01b038216600090815260cd6020526040902054829060ff16156105805760405162461bcd60e51b8152602060048201526013602482015272155cd95c881a5cc8189b1858dadb1a5cdd1959606a1b60448201526064016104b8565b6001600160a01b038316600090815260c9602052604090205460ff16156105e95760405162461bcd60e51b815260206004820152601f60248201527f5573657220616c726561647920616464656420617320666f727761726465720060448201526064016104b8565b6001600160a01b038316600081815260c96020526040808220805460ff19166001179055517f6570102f70c9f7018c7b17caf1de30d3c3861a41bafd23f66ac943e448c50b5c9190a250600192915050565b610643611237565b61064b611291565b565b60006106576111f1565b61065f611237565b6001600160a01b038216600090815260ce602052604090205460ff166106be5760405162461bcd60e51b8152602060048201526014602482015273155cd95c881b9bdd081dda1a5d195b1a5cdd195960621b60448201526064016104b8565b6001600160a01b038216600081815260ce6020526040808220805460ff19169055517f99af21e3b1fe524ff7364b59a8df3562393f2e5eb5d1377702fe2688e075dad69190a25060015b919050565b610715611237565b61064b60006112e3565b600054610100900460ff161580801561073f5750600054600160ff909116105b806107595750303b158015610759575060005460ff166001145b6107bc5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016104b8565b6000805460ff1916600117905580156107df576000805461ff0019166101001790555b6107e7611335565b6107ef611364565b6107f7611393565b33600090815260c9602090815260408083208054600160ff19918216811790925560ca909352922080549091169091179055801561086f576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50565b61087a611237565b61064b6113c2565b600061088c6111f1565b6033546001600160a01b03163314806108b4575033600090815260cc602052604090205460ff165b6108d05760405162461bcd60e51b81526004016104b89061153c565b6001600160a01b038216600090815260ca602052604090205460ff1661092f5760405162461bcd60e51b81526020600482015260146024820152732ab9b2b91034b9903737ba10309036b4b73a32b960611b60448201526064016104b8565b6001600160a01b038216600081815260ca60209081526040808320805460ff1916905560cb909152808220829055517fb8d6072435c030a71f32e447622d98725fd3f3540e1dc57720bb54b17ca3af899190a2506001919050565b60006109946111f1565b61099c611237565b6001600160a01b038216600090815260cf602052604090205460ff166109fb5760405162461bcd60e51b8152602060048201526014602482015273155cd95c881b9bdd081dda1a5d195b1a5cdd195960621b60448201526064016104b8565b6001600160a01b038216600081815260cf6020526040808220805460ff19169055517f1add56ac7cce24bb03f68cc192c7e23ff52c253256412380960e1495d16351f69190a2506001919050565b6000610a536111f1565b6033546001600160a01b0316331480610a7b575033600090815260cc602052604090205460ff165b610a975760405162461bcd60e51b81526004016104b89061153c565b6001600160a01b038216600081815260cb6020526040808220829055517f4ceebd8137e5ac28cab2b8449582c83280b976ce1884eb71d861739885f347bc9190a2506001919050565b6000610aea6111f1565b610af2611237565b6001600160a01b038216600090815260ce602052604090205460ff1615610b565760405162461bcd60e51b8152602060048201526018602482015277155cd95c88185b1c9958591e481dda1a5d195b1a5cdd195960421b60448201526064016104b8565b6001600160a01b038216600081815260ce6020526040808220805460ff19166001179055517fbfa7e9dc90e3e7bcecdb459db0f2e3ae408ffbf687e970bb4a957c11d0d79e549190a2506001919050565b6000610bb16111f1565b610bb9611237565b6001600160a01b038216600090815260cc602052604090205460ff16610c215760405162461bcd60e51b815260206004820152601760248201527f436f6e747261637420646f6573206e6f7420657869737400000000000000000060448201526064016104b8565b6001600160a01b038216600081815260cc6020526040808220805460ff19169055517f0d0d357bcf48438779e1fe617697436a250202039825d4d84bf697d9a419ba6a9190a2506001919050565b6000610c796111f1565b610c81611237565b6001600160a01b038216600090815260c9602052604090205460ff16610ce95760405162461bcd60e51b815260206004820152601760248201527f55736572206973206e6f74206120666f7277617264657200000000000000000060448201526064016104b8565b6001600160a01b038216600081815260c96020526040808220805460ff19169055517fa7faa16f6ece47894ac31f42e1301d11bd28001e31aaac4e028c4f80757e0dc39190a2506001919050565b6000610d416111f1565b610d49611237565b6001600160a01b038216600090815260cf602052604090205460ff1615610dad5760405162461bcd60e51b8152602060048201526018602482015277155cd95c88185b1c9958591e481dda1a5d195b1a5cdd195960421b60448201526064016104b8565b6001600160a01b038216600081815260cf6020526040808220805460ff19166001179055517f4acf47ffbc39e4e8df31ec82d5707f7aa51ce419a915f50eec70e8aa74c82f7d9190a2506001919050565b6000610e086111f1565b610e10611237565b6001600160a01b038216600090815260cd602052604090205460ff16610e785760405162461bcd60e51b815260206004820152601960248201527f41646472657373206e6f742061204c697374656420557365720000000000000060448201526064016104b8565b6001600160a01b038216600081815260cd6020526040808220805460ff19169055517fd7e9ec6e6ecd65492dce6bf513cd6867560d49544421d0783ddf06e76c24470c9190a2506001919050565b6000610ed06111f1565b610ed8611237565b6001600160a01b038316600090815260ca602052604090205460ff161515600114610f0257600080fd5b6001600160a01b038316600081815260cb6020526040808220859055517f36e552943925ad9bcbfaad94a0bb4cd68a1ff6c8759d3b7b04e04808876322e59190a250600192915050565b6000610f566111f1565b610f5e611237565b6001600160a01b038216600090815260cc602052604090205460ff1615610fc05760405162461bcd60e51b815260206004820152601660248201527510dbdb9d1c9858dd08185b1c9958591e48185919195960521b60448201526064016104b8565b6001600160a01b038216600081815260cc6020526040808220805460ff19166001179055517ff3f8e46041656d3246396bd12bf0589e2615cd3b518ac09e1ca7af53f7f401249190a2506001919050565b600061101b6111f1565b6033546001600160a01b0316331480611043575033600090815260cc602052604090205460ff165b61105f5760405162461bcd60e51b81526004016104b89061153c565b6001600160a01b038216600090815260cd6020526040902054829060ff16156110c05760405162461bcd60e51b8152602060048201526013602482015272155cd95c881a5cc8189b1858dadb1a5cdd1959606a1b60448201526064016104b8565b6001600160a01b038316600090815260ca602052604090205460ff16156111295760405162461bcd60e51b815260206004820152601c60248201527f5573657220616c7265616479206164646564206173206d696e7465720000000060448201526064016104b8565b6001600160a01b038316600081815260ca6020526040808220805460ff19166001179055517fa7bc6cbcc74fbb036defe7be7aa46cf2177c9dac567d24583c365e420ac5e4a49190a250600192915050565b611183611237565b6001600160a01b0381166111e85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104b8565b61086f816112e3565b60975460ff161561064b5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016104b8565b6033546001600160a01b0316331461064b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104b8565b6112996113ff565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff1661135c5760405162461bcd60e51b81526004016104b890611564565b61064b611448565b600054610100900460ff1661138b5760405162461bcd60e51b81526004016104b890611564565b61064b611478565b600054610100900460ff166113ba5760405162461bcd60e51b81526004016104b890611564565b61064b6114a6565b6113ca6111f1565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586112c63390565b60975460ff1661064b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016104b8565b600054610100900460ff1661146f5760405162461bcd60e51b81526004016104b890611564565b61064b336112e3565b600054610100900460ff1661149f5760405162461bcd60e51b81526004016104b890611564565b6001606555565b600054610100900460ff166114cd5760405162461bcd60e51b81526004016104b890611564565b6097805460ff19169055565b80356001600160a01b038116811461070857600080fd5b60006020828403121561150257600080fd5b61150b826114d9565b9392505050565b6000806040838503121561152557600080fd5b61152e836114d9565b946020939093013593505050565b6020808252600e908201526d139bdd08185d5d1a1bdc9a5e995960921b604082015260600190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea26469706673582212208469a5f56c7895ec7dbe1ce1d5f86a94e2b863879432134691b6d63dcdb3b57a64736f6c634300081c0033","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport \"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\";\nimport \"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\";\n\ncontract Admin2 is\n    Initializable,\n    OwnableUpgradeable,\n    ReentrancyGuardUpgradeable,\n    PausableUpgradeable\n{\n    // Mappings for managing roles\n    mapping(address => bool) public canForward;\n    mapping(address => bool) public canMint;\n    mapping(address => uint256) public mintAmount;\n    mapping(address => bool) public trustedContract;\n    mapping(address => bool) public isBlackListed;\n\n    // Mappings for whitelisting external and internal users\n    mapping(address => bool) public isExternalSenderWhitelisted;\n    mapping(address => bool) public isInternalUserWhitelisted;\n\n    // Events for tracking changes\n    event AddedBlackList(address indexed _user);\n    event RemovedBlackList(address indexed _user);\n    event MintAmountAdded(address indexed _user);\n    event MintAmountRemoved(address indexed _user);\n    event WhitelistedForwarder(address indexed _user);\n    event BlackListedForwarder(address indexed _user);\n    event WhitelistedMinter(address indexed _user);\n    event BlackListedMinter(address indexed _user);\n    event WhitelistedContract(address indexed _user);\n    event BlackListedContract(address indexed _user);\n    event WhitelistedExternalSender(address indexed _user);\n    event BlackListedExternalSender(address indexed _user);\n    event WhitelistedInternalUser(address indexed _user);\n    event BlackListedInternalUser(address indexed _user);\n\n    /*  /// @custom:oz-upgrades-unsafe-allow constructor\n    constructor() {\n        // Prevent the implementation contract itself from being initialized\n        _disableInitializers();\n    } */\n\n    // Initializer function for upgradeable contracts\n    function initialize() public initializer {\n        __Ownable_init();\n        __ReentrancyGuard_init();\n        __Pausable_init();\n\n        // Initialization logic\n        canForward[_msgSender()] = true;\n        canMint[_msgSender()] = true;\n    }\n\n    // Security Measures\n    modifier onlyOwnerOrTrustedContract() {\n        require(\n            owner() == _msgSender() || trustedContract[_msgSender()],\n            \"Not authorized\"\n        );\n        _;\n    }\n\n    modifier notBlacklisted(address _user) {\n        require(!isBlackListed[_user], \"User is blacklisted\");\n        _;\n    }\n\n    function addCanMint(\n        address _User\n    )\n        public\n        whenNotPaused\n        onlyOwnerOrTrustedContract\n        notBlacklisted(_User)\n        returns (bool)\n    {\n        require(!canMint[_User], \"User already added as minter\");\n        canMint[_User] = true;\n        emit WhitelistedMinter(_User);\n        return true;\n    }\n\n    function removeCanMint(\n        address _User\n    ) public whenNotPaused onlyOwnerOrTrustedContract returns (bool) {\n        require(canMint[_User], \"User is not a minter\");\n        canMint[_User] = false;\n        mintAmount[_User] = 0;\n        emit BlackListedMinter(_User);\n        return true;\n    }\n\n    function addMintAmount(\n        address _User,\n        uint256 _Amount\n    ) public whenNotPaused onlyOwner returns (bool) {\n        require(canMint[_User] == true);\n        mintAmount[_User] = _Amount;\n        emit MintAmountAdded(_User);\n        return true;\n    }\n\n    function removeMintAmount(\n        address _User\n    ) public whenNotPaused onlyOwnerOrTrustedContract returns (bool) {\n        mintAmount[_User] = 0;\n        emit MintAmountRemoved(_User);\n        return true;\n    }\n\n    // Functions for managing external user whitelist\n    function whitelistExternalSender(\n        address _User\n    ) public whenNotPaused onlyOwner returns (bool) {\n        require(\n            !isExternalSenderWhitelisted[_User],\n            \"User already whitelisted\"\n        );\n        isExternalSenderWhitelisted[_User] = true;\n        emit WhitelistedExternalSender(_User);\n        return true;\n    }\n\n    function blacklistExternalSender(\n        address _User\n    ) public whenNotPaused onlyOwner returns (bool) {\n        require(isExternalSenderWhitelisted[_User], \"User not whitelisted\");\n        isExternalSenderWhitelisted[_User] = false;\n        emit BlackListedExternalSender(_User);\n        return true;\n    }\n\n    /// @notice Pause all state-changing operations\n    function pause() external onlyOwner {\n        _pause();\n    }\n\n    /// @notice Unpause to resume operations\n    function unpause() external onlyOwner {\n        _unpause();\n    }\n\n    // Functions for managing forwarders and minters\n    function addCanForward(\n        address _User\n    ) public whenNotPaused onlyOwner notBlacklisted(_User) returns (bool) {\n        require(!canForward[_User], \"User already added as forwarder\");\n        canForward[_User] = true;\n        emit WhitelistedForwarder(_User);\n        return true;\n    }\n\n    function removeCanForward(\n        address _User\n    ) public whenNotPaused onlyOwner returns (bool) {\n        require(canForward[_User], \"User is not a forwarder\");\n        canForward[_User] = false;\n        emit BlackListedForwarder(_User);\n        return true;\n    }\n\n    // Adding trusted contracts\n    function addTrustedContract(\n        address _trustedContract\n    ) public whenNotPaused onlyOwner returns (bool) {\n        require(!trustedContract[_trustedContract], \"Contract already added\");\n        trustedContract[_trustedContract] = true;\n        emit WhitelistedContract(_trustedContract);\n        return true;\n    }\n\n    function removeTrustedContract(\n        address _trustedContract\n    ) public whenNotPaused onlyOwner returns (bool) {\n        require(trustedContract[_trustedContract], \"Contract does not exist\");\n        trustedContract[_trustedContract] = false;\n        emit BlackListedContract(_trustedContract);\n        return true;\n    }\n\n    function blacklistInternalUser(\n        address _User\n    ) public whenNotPaused onlyOwner returns (bool) {\n        require(isInternalUserWhitelisted[_User], \"User not whitelisted\");\n        isInternalUserWhitelisted[_User] = false;\n        emit BlackListedInternalUser(_User);\n        return true;\n    }\n\n    // Functions for managing internal user whitelist\n    function whitelistInternalUser(\n        address _User\n    ) public whenNotPaused onlyOwner returns (bool) {\n        require(!isInternalUserWhitelisted[_User], \"User already whitelisted\");\n        isInternalUserWhitelisted[_User] = true;\n        emit WhitelistedInternalUser(_User);\n        return true;\n    }\n\n    function addBlackList(address _evilUser) public whenNotPaused onlyOwner {\n        require(!isBlackListed[_evilUser], \"User already BlackListed\");\n\n        isBlackListed[_evilUser] = true;\n\n        emit AddedBlackList(_evilUser);\n    }\n\n    function removeBlackList(\n        address _clearedUser\n    ) public whenNotPaused onlyOwner returns (bool) {\n        require(isBlackListed[_clearedUser], \"Address not a Listed User\");\n\n        isBlackListed[_clearedUser] = false;\n\n        emit RemovedBlackList(_clearedUser);\n\n        return true;\n    }\n}\n","creation_status":"success","file_path":"contracts/Operations2.sol"}