MATIC Price: $0.64 (-4.86%)
Gas: 417 GWei
 

Overview

MATIC Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 MATIC

MATIC Value

$0.00

Token Holdings

Sponsored

Transaction Hash
Method
Block
From
To
Value
Batch Execute559884262024-04-19 1:40:493 mins ago1713490849IN
0xC077831B...0A04c71c6
0 MATIC0.15092596731.07106155
Batch Execute559882012024-04-19 1:32:3911 mins ago1713490359IN
0xC077831B...0A04c71c6
0 MATIC0.13024273298.35917666
Batch Execute559881992024-04-19 1:32:3111 mins ago1713490351IN
0xC077831B...0A04c71c6
0 MATIC0.05796273280.76598643
Batch Execute559881972024-04-19 1:32:2311 mins ago1713490343IN
0xC077831B...0A04c71c6
0 MATIC0.05462124264.58015272
Batch Execute559881952024-04-19 1:32:1511 mins ago1713490335IN
0xC077831B...0A04c71c6
0 MATIC0.02133979241.7532188
Batch Execute559881642024-04-19 1:31:0112 mins ago1713490261IN
0xC077831B...0A04c71c6
0 MATIC0.09667812221.47568117
Batch Execute559881532024-04-19 1:30:3713 mins ago1713490237IN
0xC077831B...0A04c71c6
0 MATIC0.01980415224.38682283
Batch Execute559877962024-04-19 1:17:2726 mins ago1713489447IN
0xC077831B...0A04c71c6
0 MATIC0.08409187220.38735139
Batch Execute559877142024-04-19 1:14:3229 mins ago1713489272IN
0xC077831B...0A04c71c6
0 MATIC0.11559756302.95722338
Batch Execute559876042024-04-19 1:10:1333 mins ago1713489013IN
0xC077831B...0A04c71c6
0 MATIC0.09165801240.22417919
Batch Execute559875352024-04-19 1:07:3536 mins ago1713488855IN
0xC077831B...0A04c71c6
0 MATIC0.08988011235.55711134
Batch Execute559874032024-04-19 1:02:5541 mins ago1713488575IN
0xC077831B...0A04c71c6
0 MATIC0.08054796184.5238002
Batch Execute559873912024-04-19 1:02:2941 mins ago1713488549IN
0xC077831B...0A04c71c6
0 MATIC0.01691737191.70479389
Batch Execute559871712024-04-19 0:54:0749 mins ago1713488047IN
0xC077831B...0A04c71c6
0 MATIC0.07579709173.63547507
Batch Execute559870892024-04-19 0:51:1352 mins ago1713487873IN
0xC077831B...0A04c71c6
0 MATIC0.08080244185.10169998
Batch Execute559869772024-04-19 0:47:1556 mins ago1713487635IN
0xC077831B...0A04c71c6
0 MATIC0.08177671187.3438428
Batch Execute559869562024-04-19 0:46:2957 mins ago1713487589IN
0xC077831B...0A04c71c6
0 MATIC0.08187091187.55964833
Batch Execute559869532024-04-19 0:46:2357 mins ago1713487583IN
0xC077831B...0A04c71c6
0 MATIC0.07733856177.17154529
Batch Execute559869432024-04-19 0:46:0157 mins ago1713487561IN
0xC077831B...0A04c71c6
0 MATIC0.0751222172.09417585
Batch Execute559869322024-04-19 0:45:3958 mins ago1713487539IN
0xC077831B...0A04c71c6
0 MATIC0.01633799185.11425388
Batch Execute559869222024-04-19 0:45:1758 mins ago1713487517IN
0xC077831B...0A04c71c6
0 MATIC0.0820877188.04596976
Batch Execute559869132024-04-19 0:44:591 hrs ago1713487499IN
0xC077831B...0A04c71c6
0 MATIC0.08167147187.09245751
Batch Execute559869072024-04-19 0:44:451 hrs ago1713487485IN
0xC077831B...0A04c71c6
0 MATIC0.08402572192.49086027
Batch Execute559868952024-04-19 0:44:191 hrs ago1713487459IN
0xC077831B...0A04c71c6
0 MATIC0.08622198197.51674304
Batch Execute559868912024-04-19 0:44:111 hrs ago1713487451IN
0xC077831B...0A04c71c6
0 MATIC0.08875003203.31358412
View all transactions

Parent Txn Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MagicForwarderV5

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : MagicForwarderV5.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "./ForwardRequestTypes.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";

/**
 *
 * @title MagicForwarder
 *
 * @notice A trusted forwarder for Magic that relays Meta Transactions
 *
 * @dev - Inherits Forward Request structs from Forward Request Types
 * @dev - Verifies EIP712 signatures
 * @dev - Maintains a list of verified domain seperators
 *
 */

 contract MagicForwarderV5 is ForwardRequestTypes, Ownable, AccessControl {
    using ECDSA for bytes32;

    bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");

    mapping(bytes32 => bool) public domains;

    uint256 chainId = block.chainid;

    string public constant EIP712_DOMAIN_TYPE = "EIP712Domain(string name,string version,address verifyingContract,uint256 chainId)";

    bytes32 public constant REQUEST_TYPEHASH = keccak256(bytes("ForwardRequest(address from,address to,uint256 value,uint256 gas,uint256 nonce,bytes data)"));

    // Nonces for end user wallets
    mapping(address => uint256) public nonces;

    // Adding admin role to the contract creator
    constructor() {
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _setupRole(ADMIN_ROLE, msg.sender);
    }

    /**
     * @dev Grants admin role to a new account. Called by Magic only
     * @param account : The account being granted admin role
     */
    function grantAdminRole(address account) public onlyOwner {
        grantRole(ADMIN_ROLE, account);
    }
    
    /**
     * @dev Revokes admin role from an account. Called by Magic only
     * @param account : The account having admin role revoked
     * TODO: Do we want this to be called by any Admin?
     */
    function revokeAdminRole(address account) public onlyOwner {
        revokeRole(ADMIN_ROLE, account);
    }

    /**
     * @dev Registers a domain seperator for a dApp
     * @param name : Name of dApp
     * @param version : Version of dApp
     */
    function registerDomainSeparator(string calldata name, string calldata version) external onlyOwner{

        bytes memory domainValue = abi.encode(
            keccak256(bytes(EIP712_DOMAIN_TYPE)),
            keccak256(bytes(name)),
            keccak256(bytes(version)),
            address(this),
            bytes32(block.chainid)
        );

        bytes32 domainHash = keccak256(domainValue);

        domains[domainHash] = true;
        emit DomainRegistered(domainHash, domainValue);
    }

    event DomainRegistered(bytes32 indexed domainSeparator, bytes domainValue);

    event MetaTransactionExecuted(address indexed userAddress, address indexed relayerAddress, bytes indexed functionSignature);

    event ExecutionResult(uint indexed index, bool indexed failedVerify, bool indexed success, bytes returnData);

    /**
     * @dev Returns a value from the nonces
     * @param from : The user address
     * @return nonce : The number of transactions made by the user
     */
    function getNonce(address from)
    public view
    returns (uint256) {
        return nonces[from];
    }

    /**
     * @dev Verifies the call is valid by calling verify
     * @dev Executes the forwarded call if valid
     * @dev Updates the nonce after
     * @param req : General forward request being executed
     * @param domainSeparator : The domain separator presented to the user when signing
     * @param sig : The signature generated by the user's wallet
     */
    function _execute(
        ForwardRequest calldata req,
        bytes32 domainSeparator,
        bytes calldata sig
    )
    internal returns (bool success, bool failedVerify, bytes memory ret) {
        try this.verify(req, domainSeparator, sig) {
            (success,ret) = req.to.call{gas : req.gas}(abi.encodePacked(req.data, req.from));
            assert(gasleft() > req.gas / 63);
            nonces[req.from]++;
            emit MetaTransactionExecuted(req.from, msg.sender, req.data);
        } catch {
            success = false;
            failedVerify = true;
        }
    }

    function batchExecute(
        ForwardRequest[] calldata reqs,
        bytes32[] calldata domainSeparators,
        bytes[] calldata sigs
    )
    external onlyRole(ADMIN_ROLE) returns (bool[] memory successes, bool[] memory failedVerifies , bytes[] memory rets) {
        require(reqs.length == domainSeparators.length, "Mismatch in length of requests and domainSeparators");
        require(reqs.length == sigs.length, "Mismatch in length of requests and sigs");

        successes = new bool[](reqs.length);
        failedVerifies = new bool[](reqs.length);
        rets = new bytes[](reqs.length);


        for (uint i = 0; i < reqs.length; i++) {
            (successes[i], failedVerifies[i], rets[i]) = _execute(reqs[i], domainSeparators[i], sigs[i]);
            emit ExecutionResult(i, failedVerifies[i], successes[i], rets[i]);
        }
    }


     /**
     * @dev Verifies first that the chain id and the domain seperator has been registered
     * @dev Recreates the hash of the forward request and verifies the signature
     * @dev Verifies that the nonce is correct 
     * @param req : ForwardReqeuest being executed
     * @param domainSeparator : Domain separator presented to the user when signing
     * @param sig : Signature generated by the user's wallet
     *
     */
    function verify(
        ForwardRequest calldata req,
        bytes32 domainSeparator,
        bytes calldata sig)
    public
    view
    {   
        require(chainId == block.chainid, "Prevent replay attack across chain");
        require(domains[domainSeparator], "Unregistered domain seperator");
        bytes32 txnHash =
            keccak256(abi.encodePacked(
                "\x19\x01",
                domainSeparator,
                hashForwardRequest(req)
            ));
        require(txnHash.recover(sig) == req.from, "Signature mismatch");
        require(nonces[req.from] == req.nonce, "Nonce mismatch");
    }

    function hashForwardRequest(ForwardRequest calldata request) internal pure returns (bytes32) {
        return keccak256(abi.encode(
            REQUEST_TYPEHASH,
            request.from,
            request.to,
            request.value,
            request.gas,
            request.nonce,
            keccak256(request.data)
        ));
    }

}

File 1 of 12 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```solidity
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```solidity
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}
 * to enforce additional security measures for this role.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(account),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 1 of 12 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 1 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../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
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 1 of 12 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 1 of 12 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, "\x19Ethereum Signed Message:\n32")
            mstore(0x1c, hash)
            message := keccak256(0x00, 0x3c)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, "\x19\x01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            data := keccak256(ptr, 0x42)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Data with intended validator, created from a
     * `validator` and `data` according to the version 0 of EIP-191.
     *
     * See {recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x00", validator, data));
    }
}

File 1 of 12 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 1 of 12 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 1 of 12 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

File 1 of 12 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 1 of 12 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 1 of 12 : ForwardRequestTypes.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/**
* @title ForwardRequestTypes 
* @notice specifies structures required by Forwarders to verify structured signatures.
* @dev Fields are placed in type order, to minimise storage used when executing transactions.
*/
contract ForwardRequestTypes {
    struct ForwardRequest {
        address from; 
        address to; 
        uint256 gas;
        uint256 value;
        uint256 nonce;
        bytes data;
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"domainSeparator","type":"bytes32"},{"indexed":false,"internalType":"bytes","name":"domainValue","type":"bytes"}],"name":"DomainRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":true,"internalType":"bool","name":"failedVerify","type":"bool"},{"indexed":true,"internalType":"bool","name":"success","type":"bool"},{"indexed":false,"internalType":"bytes","name":"returnData","type":"bytes"}],"name":"ExecutionResult","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"userAddress","type":"address"},{"indexed":true,"internalType":"address","name":"relayerAddress","type":"address"},{"indexed":true,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","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":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EIP712_DOMAIN_TYPE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REQUEST_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"gas","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct ForwardRequestTypes.ForwardRequest[]","name":"reqs","type":"tuple[]"},{"internalType":"bytes32[]","name":"domainSeparators","type":"bytes32[]"},{"internalType":"bytes[]","name":"sigs","type":"bytes[]"}],"name":"batchExecute","outputs":[{"internalType":"bool[]","name":"successes","type":"bool[]"},{"internalType":"bool[]","name":"failedVerifies","type":"bool[]"},{"internalType":"bytes[]","name":"rets","type":"bytes[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"domains","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"grantAdminRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"}],"name":"registerDomainSeparator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"revokeAdminRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"gas","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct ForwardRequestTypes.ForwardRequest","name":"req","type":"tuple"},{"internalType":"bytes32","name":"domainSeparator","type":"bytes32"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"verify","outputs":[],"stateMutability":"view","type":"function"}]

6080604052466003553480156200001557600080fd5b50620000366200002a6200008360201b60201c565b6200008b60201b60201c565b6200004b6000801b336200014f60201b60201c565b6200007d7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775336200014f60201b60201c565b620002c1565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200016182826200016560201b60201c565b5050565b6200017782826200025660201b60201c565b6200025257600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620001f76200008360201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61345f80620002d16000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c806391d14854116100b8578063a217fddf1161007c578063a217fddf1461034e578063c3f28abd1461036c578063c634b78e1461038a578063c722f177146103a6578063d547741f146103d6578063f2fde38b146103f257610137565b806391d148541461029657806393577035146102c65780639a19c7b0146102f85780639c7b4592146103145780639e39b73e1461033057610137565b8063715018a6116100ff578063715018a61461020457806375b238fc1461020e578063780167411461022c5780637ecebe00146102485780638da5cb5b1461027857610137565b806301ffc9a71461013c578063248a9ca31461016c5780632d0335ab1461019c5780632f2ff15d146101cc57806336568abe146101e8575b600080fd5b61015660048036038101906101519190611b26565b61040e565b6040516101639190611b6e565b60405180910390f35b61018660048036038101906101819190611bbf565b610488565b6040516101939190611bfb565b60405180910390f35b6101b660048036038101906101b19190611c74565b6104a8565b6040516101c39190611cba565b60405180910390f35b6101e660048036038101906101e19190611cd5565b6104f1565b005b61020260048036038101906101fd9190611cd5565b610512565b005b61020c610595565b005b6102166105a9565b6040516102239190611bfb565b60405180910390f35b61024660048036038101906102419190611d9e565b6105cd565b005b610262600480360381019061025d9190611c74565b61081a565b60405161026f9190611cba565b60405180910390f35b610280610832565b60405161028d9190611e3d565b60405180910390f35b6102b060048036038101906102ab9190611cd5565b61085b565b6040516102bd9190611b6e565b60405180910390f35b6102e060048036038101906102db9190611f5a565b6108c6565b6040516102ef9392919061221e565b60405180910390f35b610312600480360381019061030d9190611c74565b610bff565b005b61032e600480360381019061032991906122c0565b610c34565b005b610338610d30565b6040516103459190611bfb565b60405180910390f35b610356610d53565b6040516103639190611bfb565b60405180910390f35b610374610d5a565b6040516103819190612396565b60405180910390f35b6103a4600480360381019061039f9190611c74565b610d76565b005b6103c060048036038101906103bb9190611bbf565b610dab565b6040516103cd9190611b6e565b60405180910390f35b6103f060048036038101906103eb9190611cd5565b610dcb565b005b61040c60048036038101906104079190611c74565b610dec565b005b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610481575061048082610e6f565b5b9050919050565b600060016000838152602001908152602001600020600101549050919050565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6104fa82610488565b61050381610ed9565b61050d8383610eed565b505050565b61051a610fcd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610587576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057e9061242a565b60405180910390fd5b6105918282610fd5565b5050565b61059d6110b7565b6105a76000611135565b565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b4660035414610611576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610608906124bc565b60405180910390fd5b6002600084815260200190815260200160002060009054906101000a900460ff16610671576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161066890612528565b60405180910390fd5b60008361067d866111f9565b60405160200161068e9291906125c0565b6040516020818303038152906040528051906020012090508460000160208101906106b99190611c74565b73ffffffffffffffffffffffffffffffffffffffff1661072684848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050836112a990919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff161461077c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077390612643565b60405180910390fd5b8460800135600460008760000160208101906107989190611c74565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414610813576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080a906126af565b60405180910390fd5b5050505050565b60046020528060005260406000206000915090505481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60608060607fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756108f581610ed9565b878790508a8a90501461093d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093490612741565b60405180910390fd5b858590508a8a905014610985576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097c906127d3565b60405180910390fd5b8989905067ffffffffffffffff8111156109a2576109a16127f3565b5b6040519080825280602002602001820160405280156109d05781602001602082028036833780820191505090505b5093508989905067ffffffffffffffff8111156109f0576109ef6127f3565b5b604051908082528060200260200182016040528015610a1e5781602001602082028036833780820191505090505b5092508989905067ffffffffffffffff811115610a3e57610a3d6127f3565b5b604051908082528060200260200182016040528015610a7157816020015b6060815260200190600190039081610a5c5790505b50915060005b8a8a9050811015610bf157610aee8b8b83818110610a9857610a97612822565b5b9050602002810190610aaa9190612860565b8a8a84818110610abd57610abc612822565b5b90506020020135898985818110610ad757610ad6612822565b5b9050602002810190610ae99190612888565b6112d0565b878481518110610b0157610b00612822565b5b60200260200101878581518110610b1b57610b1a612822565b5b60200260200101878681518110610b3557610b34612822565b5b6020026020010183905283151515158152508315151515815250505050848181518110610b6557610b64612822565b5b60200260200101511515848281518110610b8257610b81612822565b5b60200260200101511515827fd04d15456e6f69a0fe538bf65689d34172312f768e4506d4ba6d66299922238c868581518110610bc157610bc0612822565b5b6020026020010151604051610bd69190612935565b60405180910390a48080610be990612986565b915050610a77565b505096509650969350505050565b610c076110b7565b610c317fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177582610dcb565b50565b610c3c6110b7565b600060405180608001604052806052815260200161337e60529139805190602001208585604051610c6e929190612a0d565b60405180910390208484604051610c86929190612a0d565b6040518091039020304660001b604051602001610ca7959493929190612a26565b604051602081830303815290604052905060008180519060200120905060016002600083815260200190815260200160002060006101000a81548160ff021916908315150217905550807f4bc68689cbe89a4a6333a3ab0a70093874da3e5bfb71e93102027f3f073687d883604051610d209190612935565b60405180910390a2505050505050565b6040518060800160405280605a81526020016133d0605a91398051906020012081565b6000801b81565b60405180608001604052806052815260200161337e6052913981565b610d7e6110b7565b610da87fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775826104f1565b50565b60026020528060005260406000206000915054906101000a900460ff1681565b610dd482610488565b610ddd81610ed9565b610de78383610fd5565b505050565b610df46110b7565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5a90612aeb565b60405180910390fd5b610e6c81611135565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b610eea81610ee5610fcd565b61153d565b50565b610ef7828261085b565b610fc957600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610f6e610fcd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b610fdf828261085b565b156110b35760006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611058610fcd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6110bf610fcd565b73ffffffffffffffffffffffffffffffffffffffff166110dd610832565b73ffffffffffffffffffffffffffffffffffffffff1614611133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112a90612b57565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006040518060800160405280605a81526020016133d0605a91398051906020012082600001602081019061122e9190611c74565b8360200160208101906112419190611c74565b846060013585604001358660800135878060a001906112609190612888565b60405161126e929190612a0d565b604051809103902060405160200161128c9796959493929190612b77565b604051602081830303815290604052805190602001209050919050565b60008060006112b885856115c2565b915091506112c581611613565b819250505092915050565b60008060603073ffffffffffffffffffffffffffffffffffffffff166378016741888888886040518563ffffffff1660e01b81526004016113149493929190612de5565b60006040518083038186803b15801561132c57600080fd5b505afa92505050801561133d575060015b61134e576000925060019150611533565b8660200160208101906113619190611c74565b73ffffffffffffffffffffffffffffffffffffffff168760400135888060a0019061138c9190612888565b8a600001602081019061139f9190611c74565b6040516020016113b193929190612e74565b6040516020818303038152906040526040516113cd9190612ecf565b60006040518083038160008787f1925050503d806000811461140b576040519150601f19603f3d011682016040523d82523d6000602084013e611410565b606091505b508092508194505050603f876040013561142a9190612f15565b5a1161143957611438612f46565b5b600460008860000160208101906114509190611c74565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081548092919061149b90612986565b9190505550868060a001906114b09190612888565b6040516114be929190612a0d565b60405180910390203373ffffffffffffffffffffffffffffffffffffffff168860000160208101906114f09190611c74565b73ffffffffffffffffffffffffffffffffffffffff167f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b60405160405180910390a45b9450945094915050565b611547828261085b565b6115be5761155481611779565b6115628360001c60206117a6565b60405160200161157392919061303e565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b59190612396565b60405180910390fd5b5050565b60008060418351036116035760008060006020860151925060408601519150606086015160001a90506115f7878285856119e2565b9450945050505061160c565b60006002915091505b9250929050565b6000600481111561162757611626613078565b5b81600481111561163a57611639613078565b5b0315611776576001600481111561165457611653613078565b5b81600481111561166757611666613078565b5b036116a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169e906130f3565b60405180910390fd5b600260048111156116bb576116ba613078565b5b8160048111156116ce576116cd613078565b5b0361170e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117059061315f565b60405180910390fd5b6003600481111561172257611721613078565b5b81600481111561173557611734613078565b5b03611775576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176c906131f1565b60405180910390fd5b5b50565b606061179f8273ffffffffffffffffffffffffffffffffffffffff16601460ff166117a6565b9050919050565b6060600060028360026117b99190613211565b6117c39190613253565b67ffffffffffffffff8111156117dc576117db6127f3565b5b6040519080825280601f01601f19166020018201604052801561180e5781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061184657611845612822565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106118aa576118a9612822565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026118ea9190613211565b6118f49190613253565b90505b6001811115611994577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061193657611935612822565b5b1a60f81b82828151811061194d5761194c612822565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061198d90613287565b90506118f7565b50600084146119d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119cf906132fc565b60405180910390fd5b8091505092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115611a1d576000600391509150611abb565b600060018787878760405160008152602001604052604051611a429493929190613338565b6020604051602081039080840390855afa158015611a64573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611ab257600060019250925050611abb565b80600092509250505b94509492505050565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611b0381611ace565b8114611b0e57600080fd5b50565b600081359050611b2081611afa565b92915050565b600060208284031215611b3c57611b3b611ac4565b5b6000611b4a84828501611b11565b91505092915050565b60008115159050919050565b611b6881611b53565b82525050565b6000602082019050611b836000830184611b5f565b92915050565b6000819050919050565b611b9c81611b89565b8114611ba757600080fd5b50565b600081359050611bb981611b93565b92915050565b600060208284031215611bd557611bd4611ac4565b5b6000611be384828501611baa565b91505092915050565b611bf581611b89565b82525050565b6000602082019050611c106000830184611bec565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611c4182611c16565b9050919050565b611c5181611c36565b8114611c5c57600080fd5b50565b600081359050611c6e81611c48565b92915050565b600060208284031215611c8a57611c89611ac4565b5b6000611c9884828501611c5f565b91505092915050565b6000819050919050565b611cb481611ca1565b82525050565b6000602082019050611ccf6000830184611cab565b92915050565b60008060408385031215611cec57611ceb611ac4565b5b6000611cfa85828601611baa565b9250506020611d0b85828601611c5f565b9150509250929050565b600080fd5b600060c08284031215611d3057611d2f611d15565b5b81905092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112611d5e57611d5d611d39565b5b8235905067ffffffffffffffff811115611d7b57611d7a611d3e565b5b602083019150836001820283011115611d9757611d96611d43565b5b9250929050565b60008060008060608587031215611db857611db7611ac4565b5b600085013567ffffffffffffffff811115611dd657611dd5611ac9565b5b611de287828801611d1a565b9450506020611df387828801611baa565b935050604085013567ffffffffffffffff811115611e1457611e13611ac9565b5b611e2087828801611d48565b925092505092959194509250565b611e3781611c36565b82525050565b6000602082019050611e526000830184611e2e565b92915050565b60008083601f840112611e6e57611e6d611d39565b5b8235905067ffffffffffffffff811115611e8b57611e8a611d3e565b5b602083019150836020820283011115611ea757611ea6611d43565b5b9250929050565b60008083601f840112611ec457611ec3611d39565b5b8235905067ffffffffffffffff811115611ee157611ee0611d3e565b5b602083019150836020820283011115611efd57611efc611d43565b5b9250929050565b60008083601f840112611f1a57611f19611d39565b5b8235905067ffffffffffffffff811115611f3757611f36611d3e565b5b602083019150836020820283011115611f5357611f52611d43565b5b9250929050565b60008060008060008060608789031215611f7757611f76611ac4565b5b600087013567ffffffffffffffff811115611f9557611f94611ac9565b5b611fa189828a01611e58565b9650965050602087013567ffffffffffffffff811115611fc457611fc3611ac9565b5b611fd089828a01611eae565b9450945050604087013567ffffffffffffffff811115611ff357611ff2611ac9565b5b611fff89828a01611f04565b92509250509295509295509295565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61204381611b53565b82525050565b6000612055838361203a565b60208301905092915050565b6000602082019050919050565b60006120798261200e565b6120838185612019565b935061208e8361202a565b8060005b838110156120bf5781516120a68882612049565b97506120b183612061565b925050600181019050612092565b5085935050505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612132578082015181840152602081019050612117565b60008484015250505050565b6000601f19601f8301169050919050565b600061215a826120f8565b6121648185612103565b9350612174818560208601612114565b61217d8161213e565b840191505092915050565b6000612194838361214f565b905092915050565b6000602082019050919050565b60006121b4826120cc565b6121be81856120d7565b9350836020820285016121d0856120e8565b8060005b8581101561220c57848403895281516121ed8582612188565b94506121f88361219c565b925060208a019950506001810190506121d4565b50829750879550505050505092915050565b60006060820190508181036000830152612238818661206e565b9050818103602083015261224c818561206e565b9050818103604083015261226081846121a9565b9050949350505050565b60008083601f8401126122805761227f611d39565b5b8235905067ffffffffffffffff81111561229d5761229c611d3e565b5b6020830191508360018202830111156122b9576122b8611d43565b5b9250929050565b600080600080604085870312156122da576122d9611ac4565b5b600085013567ffffffffffffffff8111156122f8576122f7611ac9565b5b6123048782880161226a565b9450945050602085013567ffffffffffffffff81111561232757612326611ac9565b5b6123338782880161226a565b925092505092959194509250565b600081519050919050565b600082825260208201905092915050565b600061236882612341565b612372818561234c565b9350612382818560208601612114565b61238b8161213e565b840191505092915050565b600060208201905081810360008301526123b0818461235d565b905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000612414602f8361234c565b915061241f826123b8565b604082019050919050565b6000602082019050818103600083015261244381612407565b9050919050565b7f50726576656e74207265706c61792061747461636b206163726f73732063686160008201527f696e000000000000000000000000000000000000000000000000000000000000602082015250565b60006124a660228361234c565b91506124b18261244a565b604082019050919050565b600060208201905081810360008301526124d581612499565b9050919050565b7f556e7265676973746572656420646f6d61696e20736570657261746f72000000600082015250565b6000612512601d8361234c565b915061251d826124dc565b602082019050919050565b6000602082019050818103600083015261254181612505565b9050919050565b600081905092915050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b6000612589600283612548565b915061259482612553565b600282019050919050565b6000819050919050565b6125ba6125b582611b89565b61259f565b82525050565b60006125cb8261257c565b91506125d782856125a9565b6020820191506125e782846125a9565b6020820191508190509392505050565b7f5369676e6174757265206d69736d617463680000000000000000000000000000600082015250565b600061262d60128361234c565b9150612638826125f7565b602082019050919050565b6000602082019050818103600083015261265c81612620565b9050919050565b7f4e6f6e6365206d69736d61746368000000000000000000000000000000000000600082015250565b6000612699600e8361234c565b91506126a482612663565b602082019050919050565b600060208201905081810360008301526126c88161268c565b9050919050565b7f4d69736d6174636820696e206c656e677468206f66207265717565737473206160008201527f6e6420646f6d61696e536570617261746f727300000000000000000000000000602082015250565b600061272b60338361234c565b9150612736826126cf565b604082019050919050565b6000602082019050818103600083015261275a8161271e565b9050919050565b7f4d69736d6174636820696e206c656e677468206f66207265717565737473206160008201527f6e64207369677300000000000000000000000000000000000000000000000000602082015250565b60006127bd60278361234c565b91506127c882612761565b604082019050919050565b600060208201905081810360008301526127ec816127b0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160c00383360303811261287c5761287b612851565b5b80830191505092915050565b600080833560016020038436030381126128a5576128a4612851565b5b80840192508235915067ffffffffffffffff8211156128c7576128c6612856565b5b6020830192506001820236038313156128e3576128e261285b565b5b509250929050565b600082825260208201905092915050565b6000612907826120f8565b61291181856128eb565b9350612921818560208601612114565b61292a8161213e565b840191505092915050565b6000602082019050818103600083015261294f81846128fc565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061299182611ca1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036129c3576129c2612957565b5b600182019050919050565b600081905092915050565b82818337600083830152505050565b60006129f483856129ce565b9350612a018385846129d9565b82840190509392505050565b6000612a1a8284866129e8565b91508190509392505050565b600060a082019050612a3b6000830188611bec565b612a486020830187611bec565b612a556040830186611bec565b612a626060830185611e2e565b612a6f6080830184611bec565b9695505050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612ad560268361234c565b9150612ae082612a79565b604082019050919050565b60006020820190508181036000830152612b0481612ac8565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612b4160208361234c565b9150612b4c82612b0b565b602082019050919050565b60006020820190508181036000830152612b7081612b34565b9050919050565b600060e082019050612b8c600083018a611bec565b612b996020830189611e2e565b612ba66040830188611e2e565b612bb36060830187611cab565b612bc06080830186611cab565b612bcd60a0830185611cab565b612bda60c0830184611bec565b98975050505050505050565b6000612bf56020840184611c5f565b905092915050565b612c0681611c36565b82525050565b612c1581611ca1565b8114612c2057600080fd5b50565b600081359050612c3281612c0c565b92915050565b6000612c476020840184612c23565b905092915050565b612c5881611ca1565b82525050565b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112612c8a57612c89612c68565b5b83810192508235915060208301925067ffffffffffffffff821115612cb257612cb1612c5e565b5b600182023603831315612cc857612cc7612c63565b5b509250929050565b6000612cdc8385612103565b9350612ce98385846129d9565b612cf28361213e565b840190509392505050565b600060c08301612d106000840184612be6565b612d1d6000860182612bfd565b50612d2b6020840184612be6565b612d386020860182612bfd565b50612d466040840184612c38565b612d536040860182612c4f565b50612d616060840184612c38565b612d6e6060860182612c4f565b50612d7c6080840184612c38565b612d896080860182612c4f565b50612d9760a0840184612c6d565b85830360a0870152612daa838284612cd0565b925050508091505092915050565b6000612dc483856128eb565b9350612dd18385846129d9565b612dda8361213e565b840190509392505050565b60006060820190508181036000830152612dff8187612cfd565b9050612e0e6020830186611bec565b8181036040830152612e21818486612db8565b905095945050505050565b60008160601b9050919050565b6000612e4482612e2c565b9050919050565b6000612e5682612e39565b9050919050565b612e6e612e6982611c36565b612e4b565b82525050565b6000612e818285876129e8565b9150612e8d8284612e5d565b601482019150819050949350505050565b6000612ea9826120f8565b612eb381856129ce565b9350612ec3818560208601612114565b80840191505092915050565b6000612edb8284612e9e565b915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612f2082611ca1565b9150612f2b83611ca1565b925082612f3b57612f3a612ee6565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000612fab601783612548565b9150612fb682612f75565b601782019050919050565b6000612fcc82612341565b612fd68185612548565b9350612fe6818560208601612114565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000613028601183612548565b915061303382612ff2565b601182019050919050565b600061304982612f9e565b91506130558285612fc1565b91506130608261301b565b915061306c8284612fc1565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006130dd60188361234c565b91506130e8826130a7565b602082019050919050565b6000602082019050818103600083015261310c816130d0565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000613149601f8361234c565b915061315482613113565b602082019050919050565b600060208201905081810360008301526131788161313c565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006131db60228361234c565b91506131e68261317f565b604082019050919050565b6000602082019050818103600083015261320a816131ce565b9050919050565b600061321c82611ca1565b915061322783611ca1565b925082820261323581611ca1565b9150828204841483151761324c5761324b612957565b5b5092915050565b600061325e82611ca1565b915061326983611ca1565b925082820190508082111561328157613280612957565b5b92915050565b600061329282611ca1565b9150600082036132a5576132a4612957565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006132e660208361234c565b91506132f1826132b0565b602082019050919050565b60006020820190508181036000830152613315816132d9565b9050919050565b600060ff82169050919050565b6133328161331c565b82525050565b600060808201905061334d6000830187611bec565b61335a6020830186613329565b6133676040830185611bec565b6133746060830184611bec565b9594505050505056fe454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c75696e7432353620636861696e496429466f72776172645265717565737428616464726573732066726f6d2c6164647265737320746f2c75696e743235362076616c75652c75696e74323536206761732c75696e74323536206e6f6e63652c6279746573206461746129a2646970667358221220c7df474de420ace72b4a962d64eb965bff25471f49661568bf673c6fb4715f7f64736f6c63430008130033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101375760003560e01c806391d14854116100b8578063a217fddf1161007c578063a217fddf1461034e578063c3f28abd1461036c578063c634b78e1461038a578063c722f177146103a6578063d547741f146103d6578063f2fde38b146103f257610137565b806391d148541461029657806393577035146102c65780639a19c7b0146102f85780639c7b4592146103145780639e39b73e1461033057610137565b8063715018a6116100ff578063715018a61461020457806375b238fc1461020e578063780167411461022c5780637ecebe00146102485780638da5cb5b1461027857610137565b806301ffc9a71461013c578063248a9ca31461016c5780632d0335ab1461019c5780632f2ff15d146101cc57806336568abe146101e8575b600080fd5b61015660048036038101906101519190611b26565b61040e565b6040516101639190611b6e565b60405180910390f35b61018660048036038101906101819190611bbf565b610488565b6040516101939190611bfb565b60405180910390f35b6101b660048036038101906101b19190611c74565b6104a8565b6040516101c39190611cba565b60405180910390f35b6101e660048036038101906101e19190611cd5565b6104f1565b005b61020260048036038101906101fd9190611cd5565b610512565b005b61020c610595565b005b6102166105a9565b6040516102239190611bfb565b60405180910390f35b61024660048036038101906102419190611d9e565b6105cd565b005b610262600480360381019061025d9190611c74565b61081a565b60405161026f9190611cba565b60405180910390f35b610280610832565b60405161028d9190611e3d565b60405180910390f35b6102b060048036038101906102ab9190611cd5565b61085b565b6040516102bd9190611b6e565b60405180910390f35b6102e060048036038101906102db9190611f5a565b6108c6565b6040516102ef9392919061221e565b60405180910390f35b610312600480360381019061030d9190611c74565b610bff565b005b61032e600480360381019061032991906122c0565b610c34565b005b610338610d30565b6040516103459190611bfb565b60405180910390f35b610356610d53565b6040516103639190611bfb565b60405180910390f35b610374610d5a565b6040516103819190612396565b60405180910390f35b6103a4600480360381019061039f9190611c74565b610d76565b005b6103c060048036038101906103bb9190611bbf565b610dab565b6040516103cd9190611b6e565b60405180910390f35b6103f060048036038101906103eb9190611cd5565b610dcb565b005b61040c60048036038101906104079190611c74565b610dec565b005b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610481575061048082610e6f565b5b9050919050565b600060016000838152602001908152602001600020600101549050919050565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6104fa82610488565b61050381610ed9565b61050d8383610eed565b505050565b61051a610fcd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610587576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057e9061242a565b60405180910390fd5b6105918282610fd5565b5050565b61059d6110b7565b6105a76000611135565b565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b4660035414610611576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610608906124bc565b60405180910390fd5b6002600084815260200190815260200160002060009054906101000a900460ff16610671576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161066890612528565b60405180910390fd5b60008361067d866111f9565b60405160200161068e9291906125c0565b6040516020818303038152906040528051906020012090508460000160208101906106b99190611c74565b73ffffffffffffffffffffffffffffffffffffffff1661072684848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050836112a990919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff161461077c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077390612643565b60405180910390fd5b8460800135600460008760000160208101906107989190611c74565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414610813576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080a906126af565b60405180910390fd5b5050505050565b60046020528060005260406000206000915090505481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60608060607fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756108f581610ed9565b878790508a8a90501461093d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093490612741565b60405180910390fd5b858590508a8a905014610985576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097c906127d3565b60405180910390fd5b8989905067ffffffffffffffff8111156109a2576109a16127f3565b5b6040519080825280602002602001820160405280156109d05781602001602082028036833780820191505090505b5093508989905067ffffffffffffffff8111156109f0576109ef6127f3565b5b604051908082528060200260200182016040528015610a1e5781602001602082028036833780820191505090505b5092508989905067ffffffffffffffff811115610a3e57610a3d6127f3565b5b604051908082528060200260200182016040528015610a7157816020015b6060815260200190600190039081610a5c5790505b50915060005b8a8a9050811015610bf157610aee8b8b83818110610a9857610a97612822565b5b9050602002810190610aaa9190612860565b8a8a84818110610abd57610abc612822565b5b90506020020135898985818110610ad757610ad6612822565b5b9050602002810190610ae99190612888565b6112d0565b878481518110610b0157610b00612822565b5b60200260200101878581518110610b1b57610b1a612822565b5b60200260200101878681518110610b3557610b34612822565b5b6020026020010183905283151515158152508315151515815250505050848181518110610b6557610b64612822565b5b60200260200101511515848281518110610b8257610b81612822565b5b60200260200101511515827fd04d15456e6f69a0fe538bf65689d34172312f768e4506d4ba6d66299922238c868581518110610bc157610bc0612822565b5b6020026020010151604051610bd69190612935565b60405180910390a48080610be990612986565b915050610a77565b505096509650969350505050565b610c076110b7565b610c317fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177582610dcb565b50565b610c3c6110b7565b600060405180608001604052806052815260200161337e60529139805190602001208585604051610c6e929190612a0d565b60405180910390208484604051610c86929190612a0d565b6040518091039020304660001b604051602001610ca7959493929190612a26565b604051602081830303815290604052905060008180519060200120905060016002600083815260200190815260200160002060006101000a81548160ff021916908315150217905550807f4bc68689cbe89a4a6333a3ab0a70093874da3e5bfb71e93102027f3f073687d883604051610d209190612935565b60405180910390a2505050505050565b6040518060800160405280605a81526020016133d0605a91398051906020012081565b6000801b81565b60405180608001604052806052815260200161337e6052913981565b610d7e6110b7565b610da87fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775826104f1565b50565b60026020528060005260406000206000915054906101000a900460ff1681565b610dd482610488565b610ddd81610ed9565b610de78383610fd5565b505050565b610df46110b7565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5a90612aeb565b60405180910390fd5b610e6c81611135565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b610eea81610ee5610fcd565b61153d565b50565b610ef7828261085b565b610fc957600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610f6e610fcd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b610fdf828261085b565b156110b35760006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611058610fcd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6110bf610fcd565b73ffffffffffffffffffffffffffffffffffffffff166110dd610832565b73ffffffffffffffffffffffffffffffffffffffff1614611133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112a90612b57565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006040518060800160405280605a81526020016133d0605a91398051906020012082600001602081019061122e9190611c74565b8360200160208101906112419190611c74565b846060013585604001358660800135878060a001906112609190612888565b60405161126e929190612a0d565b604051809103902060405160200161128c9796959493929190612b77565b604051602081830303815290604052805190602001209050919050565b60008060006112b885856115c2565b915091506112c581611613565b819250505092915050565b60008060603073ffffffffffffffffffffffffffffffffffffffff166378016741888888886040518563ffffffff1660e01b81526004016113149493929190612de5565b60006040518083038186803b15801561132c57600080fd5b505afa92505050801561133d575060015b61134e576000925060019150611533565b8660200160208101906113619190611c74565b73ffffffffffffffffffffffffffffffffffffffff168760400135888060a0019061138c9190612888565b8a600001602081019061139f9190611c74565b6040516020016113b193929190612e74565b6040516020818303038152906040526040516113cd9190612ecf565b60006040518083038160008787f1925050503d806000811461140b576040519150601f19603f3d011682016040523d82523d6000602084013e611410565b606091505b508092508194505050603f876040013561142a9190612f15565b5a1161143957611438612f46565b5b600460008860000160208101906114509190611c74565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081548092919061149b90612986565b9190505550868060a001906114b09190612888565b6040516114be929190612a0d565b60405180910390203373ffffffffffffffffffffffffffffffffffffffff168860000160208101906114f09190611c74565b73ffffffffffffffffffffffffffffffffffffffff167f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b60405160405180910390a45b9450945094915050565b611547828261085b565b6115be5761155481611779565b6115628360001c60206117a6565b60405160200161157392919061303e565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b59190612396565b60405180910390fd5b5050565b60008060418351036116035760008060006020860151925060408601519150606086015160001a90506115f7878285856119e2565b9450945050505061160c565b60006002915091505b9250929050565b6000600481111561162757611626613078565b5b81600481111561163a57611639613078565b5b0315611776576001600481111561165457611653613078565b5b81600481111561166757611666613078565b5b036116a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169e906130f3565b60405180910390fd5b600260048111156116bb576116ba613078565b5b8160048111156116ce576116cd613078565b5b0361170e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117059061315f565b60405180910390fd5b6003600481111561172257611721613078565b5b81600481111561173557611734613078565b5b03611775576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176c906131f1565b60405180910390fd5b5b50565b606061179f8273ffffffffffffffffffffffffffffffffffffffff16601460ff166117a6565b9050919050565b6060600060028360026117b99190613211565b6117c39190613253565b67ffffffffffffffff8111156117dc576117db6127f3565b5b6040519080825280601f01601f19166020018201604052801561180e5781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061184657611845612822565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106118aa576118a9612822565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026118ea9190613211565b6118f49190613253565b90505b6001811115611994577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061193657611935612822565b5b1a60f81b82828151811061194d5761194c612822565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061198d90613287565b90506118f7565b50600084146119d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119cf906132fc565b60405180910390fd5b8091505092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115611a1d576000600391509150611abb565b600060018787878760405160008152602001604052604051611a429493929190613338565b6020604051602081039080840390855afa158015611a64573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611ab257600060019250925050611abb565b80600092509250505b94509492505050565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611b0381611ace565b8114611b0e57600080fd5b50565b600081359050611b2081611afa565b92915050565b600060208284031215611b3c57611b3b611ac4565b5b6000611b4a84828501611b11565b91505092915050565b60008115159050919050565b611b6881611b53565b82525050565b6000602082019050611b836000830184611b5f565b92915050565b6000819050919050565b611b9c81611b89565b8114611ba757600080fd5b50565b600081359050611bb981611b93565b92915050565b600060208284031215611bd557611bd4611ac4565b5b6000611be384828501611baa565b91505092915050565b611bf581611b89565b82525050565b6000602082019050611c106000830184611bec565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611c4182611c16565b9050919050565b611c5181611c36565b8114611c5c57600080fd5b50565b600081359050611c6e81611c48565b92915050565b600060208284031215611c8a57611c89611ac4565b5b6000611c9884828501611c5f565b91505092915050565b6000819050919050565b611cb481611ca1565b82525050565b6000602082019050611ccf6000830184611cab565b92915050565b60008060408385031215611cec57611ceb611ac4565b5b6000611cfa85828601611baa565b9250506020611d0b85828601611c5f565b9150509250929050565b600080fd5b600060c08284031215611d3057611d2f611d15565b5b81905092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112611d5e57611d5d611d39565b5b8235905067ffffffffffffffff811115611d7b57611d7a611d3e565b5b602083019150836001820283011115611d9757611d96611d43565b5b9250929050565b60008060008060608587031215611db857611db7611ac4565b5b600085013567ffffffffffffffff811115611dd657611dd5611ac9565b5b611de287828801611d1a565b9450506020611df387828801611baa565b935050604085013567ffffffffffffffff811115611e1457611e13611ac9565b5b611e2087828801611d48565b925092505092959194509250565b611e3781611c36565b82525050565b6000602082019050611e526000830184611e2e565b92915050565b60008083601f840112611e6e57611e6d611d39565b5b8235905067ffffffffffffffff811115611e8b57611e8a611d3e565b5b602083019150836020820283011115611ea757611ea6611d43565b5b9250929050565b60008083601f840112611ec457611ec3611d39565b5b8235905067ffffffffffffffff811115611ee157611ee0611d3e565b5b602083019150836020820283011115611efd57611efc611d43565b5b9250929050565b60008083601f840112611f1a57611f19611d39565b5b8235905067ffffffffffffffff811115611f3757611f36611d3e565b5b602083019150836020820283011115611f5357611f52611d43565b5b9250929050565b60008060008060008060608789031215611f7757611f76611ac4565b5b600087013567ffffffffffffffff811115611f9557611f94611ac9565b5b611fa189828a01611e58565b9650965050602087013567ffffffffffffffff811115611fc457611fc3611ac9565b5b611fd089828a01611eae565b9450945050604087013567ffffffffffffffff811115611ff357611ff2611ac9565b5b611fff89828a01611f04565b92509250509295509295509295565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61204381611b53565b82525050565b6000612055838361203a565b60208301905092915050565b6000602082019050919050565b60006120798261200e565b6120838185612019565b935061208e8361202a565b8060005b838110156120bf5781516120a68882612049565b97506120b183612061565b925050600181019050612092565b5085935050505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612132578082015181840152602081019050612117565b60008484015250505050565b6000601f19601f8301169050919050565b600061215a826120f8565b6121648185612103565b9350612174818560208601612114565b61217d8161213e565b840191505092915050565b6000612194838361214f565b905092915050565b6000602082019050919050565b60006121b4826120cc565b6121be81856120d7565b9350836020820285016121d0856120e8565b8060005b8581101561220c57848403895281516121ed8582612188565b94506121f88361219c565b925060208a019950506001810190506121d4565b50829750879550505050505092915050565b60006060820190508181036000830152612238818661206e565b9050818103602083015261224c818561206e565b9050818103604083015261226081846121a9565b9050949350505050565b60008083601f8401126122805761227f611d39565b5b8235905067ffffffffffffffff81111561229d5761229c611d3e565b5b6020830191508360018202830111156122b9576122b8611d43565b5b9250929050565b600080600080604085870312156122da576122d9611ac4565b5b600085013567ffffffffffffffff8111156122f8576122f7611ac9565b5b6123048782880161226a565b9450945050602085013567ffffffffffffffff81111561232757612326611ac9565b5b6123338782880161226a565b925092505092959194509250565b600081519050919050565b600082825260208201905092915050565b600061236882612341565b612372818561234c565b9350612382818560208601612114565b61238b8161213e565b840191505092915050565b600060208201905081810360008301526123b0818461235d565b905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000612414602f8361234c565b915061241f826123b8565b604082019050919050565b6000602082019050818103600083015261244381612407565b9050919050565b7f50726576656e74207265706c61792061747461636b206163726f73732063686160008201527f696e000000000000000000000000000000000000000000000000000000000000602082015250565b60006124a660228361234c565b91506124b18261244a565b604082019050919050565b600060208201905081810360008301526124d581612499565b9050919050565b7f556e7265676973746572656420646f6d61696e20736570657261746f72000000600082015250565b6000612512601d8361234c565b915061251d826124dc565b602082019050919050565b6000602082019050818103600083015261254181612505565b9050919050565b600081905092915050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b6000612589600283612548565b915061259482612553565b600282019050919050565b6000819050919050565b6125ba6125b582611b89565b61259f565b82525050565b60006125cb8261257c565b91506125d782856125a9565b6020820191506125e782846125a9565b6020820191508190509392505050565b7f5369676e6174757265206d69736d617463680000000000000000000000000000600082015250565b600061262d60128361234c565b9150612638826125f7565b602082019050919050565b6000602082019050818103600083015261265c81612620565b9050919050565b7f4e6f6e6365206d69736d61746368000000000000000000000000000000000000600082015250565b6000612699600e8361234c565b91506126a482612663565b602082019050919050565b600060208201905081810360008301526126c88161268c565b9050919050565b7f4d69736d6174636820696e206c656e677468206f66207265717565737473206160008201527f6e6420646f6d61696e536570617261746f727300000000000000000000000000602082015250565b600061272b60338361234c565b9150612736826126cf565b604082019050919050565b6000602082019050818103600083015261275a8161271e565b9050919050565b7f4d69736d6174636820696e206c656e677468206f66207265717565737473206160008201527f6e64207369677300000000000000000000000000000000000000000000000000602082015250565b60006127bd60278361234c565b91506127c882612761565b604082019050919050565b600060208201905081810360008301526127ec816127b0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160c00383360303811261287c5761287b612851565b5b80830191505092915050565b600080833560016020038436030381126128a5576128a4612851565b5b80840192508235915067ffffffffffffffff8211156128c7576128c6612856565b5b6020830192506001820236038313156128e3576128e261285b565b5b509250929050565b600082825260208201905092915050565b6000612907826120f8565b61291181856128eb565b9350612921818560208601612114565b61292a8161213e565b840191505092915050565b6000602082019050818103600083015261294f81846128fc565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061299182611ca1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036129c3576129c2612957565b5b600182019050919050565b600081905092915050565b82818337600083830152505050565b60006129f483856129ce565b9350612a018385846129d9565b82840190509392505050565b6000612a1a8284866129e8565b91508190509392505050565b600060a082019050612a3b6000830188611bec565b612a486020830187611bec565b612a556040830186611bec565b612a626060830185611e2e565b612a6f6080830184611bec565b9695505050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612ad560268361234c565b9150612ae082612a79565b604082019050919050565b60006020820190508181036000830152612b0481612ac8565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612b4160208361234c565b9150612b4c82612b0b565b602082019050919050565b60006020820190508181036000830152612b7081612b34565b9050919050565b600060e082019050612b8c600083018a611bec565b612b996020830189611e2e565b612ba66040830188611e2e565b612bb36060830187611cab565b612bc06080830186611cab565b612bcd60a0830185611cab565b612bda60c0830184611bec565b98975050505050505050565b6000612bf56020840184611c5f565b905092915050565b612c0681611c36565b82525050565b612c1581611ca1565b8114612c2057600080fd5b50565b600081359050612c3281612c0c565b92915050565b6000612c476020840184612c23565b905092915050565b612c5881611ca1565b82525050565b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112612c8a57612c89612c68565b5b83810192508235915060208301925067ffffffffffffffff821115612cb257612cb1612c5e565b5b600182023603831315612cc857612cc7612c63565b5b509250929050565b6000612cdc8385612103565b9350612ce98385846129d9565b612cf28361213e565b840190509392505050565b600060c08301612d106000840184612be6565b612d1d6000860182612bfd565b50612d2b6020840184612be6565b612d386020860182612bfd565b50612d466040840184612c38565b612d536040860182612c4f565b50612d616060840184612c38565b612d6e6060860182612c4f565b50612d7c6080840184612c38565b612d896080860182612c4f565b50612d9760a0840184612c6d565b85830360a0870152612daa838284612cd0565b925050508091505092915050565b6000612dc483856128eb565b9350612dd18385846129d9565b612dda8361213e565b840190509392505050565b60006060820190508181036000830152612dff8187612cfd565b9050612e0e6020830186611bec565b8181036040830152612e21818486612db8565b905095945050505050565b60008160601b9050919050565b6000612e4482612e2c565b9050919050565b6000612e5682612e39565b9050919050565b612e6e612e6982611c36565b612e4b565b82525050565b6000612e818285876129e8565b9150612e8d8284612e5d565b601482019150819050949350505050565b6000612ea9826120f8565b612eb381856129ce565b9350612ec3818560208601612114565b80840191505092915050565b6000612edb8284612e9e565b915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612f2082611ca1565b9150612f2b83611ca1565b925082612f3b57612f3a612ee6565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000612fab601783612548565b9150612fb682612f75565b601782019050919050565b6000612fcc82612341565b612fd68185612548565b9350612fe6818560208601612114565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000613028601183612548565b915061303382612ff2565b601182019050919050565b600061304982612f9e565b91506130558285612fc1565b91506130608261301b565b915061306c8284612fc1565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006130dd60188361234c565b91506130e8826130a7565b602082019050919050565b6000602082019050818103600083015261310c816130d0565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000613149601f8361234c565b915061315482613113565b602082019050919050565b600060208201905081810360008301526131788161313c565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006131db60228361234c565b91506131e68261317f565b604082019050919050565b6000602082019050818103600083015261320a816131ce565b9050919050565b600061321c82611ca1565b915061322783611ca1565b925082820261323581611ca1565b9150828204841483151761324c5761324b612957565b5b5092915050565b600061325e82611ca1565b915061326983611ca1565b925082820190508082111561328157613280612957565b5b92915050565b600061329282611ca1565b9150600082036132a5576132a4612957565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006132e660208361234c565b91506132f1826132b0565b602082019050919050565b60006020820190508181036000830152613315816132d9565b9050919050565b600060ff82169050919050565b6133328161331c565b82525050565b600060808201905061334d6000830187611bec565b61335a6020830186613329565b6133676040830185611bec565b6133746060830184611bec565b9594505050505056fe454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c75696e7432353620636861696e496429466f72776172645265717565737428616464726573732066726f6d2c6164647265737320746f2c75696e743235362076616c75652c75696e74323536206761732c75696e74323536206e6f6e63652c6279746573206461746129a2646970667358221220c7df474de420ace72b4a962d64eb965bff25471f49661568bf673c6fb4715f7f64736f6c63430008130033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.