Contract 0xb9Cd1dd44799f508769040156962E01ADf97e330 2

Contract Overview

Balance:
0 ETH
Txn Hash Method
Block
From
To
Value
0x7c99edbaf56ed7d256f4a379b429342dad4d8c65af8eec1846c222f79717cea00x6101406020353292023-03-19 22:17:54255 days 6 hrs ago0x0b76e57d132f6d837a3e31257992eb1f8b96ff36 IN  Create: SignlessSafeModule0 ETH0.0002104759390.000000051
[ Download CSV Export 
Latest 14 internal transactions
Parent Txn Hash Block From To Value
0x9098a0a26587ec3f48312251a5c40779e42b7ab28498c6b4f43cd3e583f1436420374532023-03-19 23:28:42255 days 4 hrs ago 0xb9cd1dd44799f508769040156962e01adf97e330 0x1819fbef3ef75c6362673d3c34069e9512a229f60 ETH
0x9098a0a26587ec3f48312251a5c40779e42b7ab28498c6b4f43cd3e583f1436420374532023-03-19 23:28:42255 days 4 hrs ago 0xb9cd1dd44799f508769040156962e01adf97e3300x00000000000000000000000000000000000000010 ETH
0x9098a0a26587ec3f48312251a5c40779e42b7ab28498c6b4f43cd3e583f1436420374532023-03-19 23:28:42255 days 4 hrs ago 0xb9cd1dd44799f508769040156962e01adf97e330 0x1819fbef3ef75c6362673d3c34069e9512a229f60 ETH
0x9098a0a26587ec3f48312251a5c40779e42b7ab28498c6b4f43cd3e583f1436420374532023-03-19 23:28:42255 days 4 hrs ago 0xabcc9b596420a9e9172fd5938620e265a0f9df92 0xb9cd1dd44799f508769040156962e01adf97e3300 ETH
0x8b027b1b2b2611888f6b68fff2b48b407b71a6c69b76a203c862541b17dc84ee20374242023-03-19 23:27:44255 days 4 hrs ago 0xb9cd1dd44799f508769040156962e01adf97e330 0x1819fbef3ef75c6362673d3c34069e9512a229f60 ETH
0x8b027b1b2b2611888f6b68fff2b48b407b71a6c69b76a203c862541b17dc84ee20374242023-03-19 23:27:44255 days 4 hrs ago 0xb9cd1dd44799f508769040156962e01adf97e3300x00000000000000000000000000000000000000010 ETH
0x8b027b1b2b2611888f6b68fff2b48b407b71a6c69b76a203c862541b17dc84ee20374242023-03-19 23:27:44255 days 4 hrs ago 0xb9cd1dd44799f508769040156962e01adf97e330 0x1819fbef3ef75c6362673d3c34069e9512a229f60 ETH
0x8b027b1b2b2611888f6b68fff2b48b407b71a6c69b76a203c862541b17dc84ee20374242023-03-19 23:27:44255 days 4 hrs ago 0xabcc9b596420a9e9172fd5938620e265a0f9df92 0xb9cd1dd44799f508769040156962e01adf97e3300 ETH
0xfb8c7c7439dbe740d4923f8814d9805d50679ee031fc0aebb1f976d2ae1d84fc20373522023-03-19 23:25:20255 days 4 hrs ago 0xb9cd1dd44799f508769040156962e01adf97e330 0x1819fbef3ef75c6362673d3c34069e9512a229f60 ETH
0xfb8c7c7439dbe740d4923f8814d9805d50679ee031fc0aebb1f976d2ae1d84fc20373522023-03-19 23:25:20255 days 4 hrs ago 0xb9cd1dd44799f508769040156962e01adf97e3300x00000000000000000000000000000000000000010 ETH
0xfb8c7c7439dbe740d4923f8814d9805d50679ee031fc0aebb1f976d2ae1d84fc20373522023-03-19 23:25:20255 days 4 hrs ago 0xb9cd1dd44799f508769040156962e01adf97e330 0x1819fbef3ef75c6362673d3c34069e9512a229f60 ETH
0xfb8c7c7439dbe740d4923f8814d9805d50679ee031fc0aebb1f976d2ae1d84fc20373522023-03-19 23:25:20255 days 4 hrs ago 0xabcc9b596420a9e9172fd5938620e265a0f9df92 0xb9cd1dd44799f508769040156962e01adf97e3300 ETH
0x7017b8004ef7d334c1d945aa924e154fb4b159a46c642d5a97f8c0cd07ebfc4b20372402023-03-19 23:21:36255 days 4 hrs ago 0x1819fbef3ef75c6362673d3c34069e9512a229f6 0xb9cd1dd44799f508769040156962e01adf97e3300 ETH
0x3d15ad8ead868c2825b828307f25c85760b29a0f99637233bd60eb57ae55934220370072023-03-19 23:13:50255 days 5 hrs ago 0x1819fbef3ef75c6362673d3c34069e9512a229f6 0xb9cd1dd44799f508769040156962e01adf97e3300 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SignlessSafeModule

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion, None license
File 1 of 15 : SignlessSafeModule.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.17;

import {IGnosisSafe} from "./interfaces/IGnosisSafe.sol";
import {EIP712} from "@openzeppelin/contracts/utils/cryptography/EIP712.sol";
import {ECDSA} from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import {GelatoRelayContext} from "@gelatonetwork/relay-context/contracts/GelatoRelayContext.sol";

/// @title Signless Safe Module
/// @author kevincharm
/// @notice Delegated child-key registry module for Gnosis Safe
contract SignlessSafeModule is EIP712, GelatoRelayContext {
    struct DelegatedSigner {
        /// @notice Timestamp of when this delegate was created
        /// @dev 8B
        uint64 createdAt;
        /// @notice Timestamp of when this delegate is no longer valid
        /// @dev 8B
        uint64 expiry;
    }

    event DelegateRegistered(
        address indexed safe,
        address delegate,
        uint64 expiry
    );
    event DelegateRevoked(address indexed safe, address delegate);

    /// @notice EIP-712 typehash
    bytes32 public constant EIP712_EXEC_SAFE_TX_TYPEHASH =
        keccak256(
            "ExecSafeTx(address safe,address to,uint256 value,bytes32 dataHash,uint256 nonce)"
        );

    /// @notice Nonce per user, for EIP-712 messages
    mapping(address => uint256) private userNonces;

    /// @notice Linked-list of delegates per safe
    ///     safe => delegates[]
    /// @dev We probably don't need this in prod; can be made redundant if we
    ///     index DelegateRegistered events.
    mapping(address => address[]) private delegatesList;

    /// @notice Information about delegated signers per safe
    ///     safe => delegate => info
    mapping(address => mapping(address => DelegatedSigner))
        private delegatesInfo;

    constructor() EIP712("SignlessSafeModule", "1.0.0") {}

    /// @notice Get the current nonce for `user` (for EIP-712 messages)
    /// @param user User to get current nonce for
    /// @return nonce
    function getNonce(address user) external view returns (uint256) {
        return userNonces[user];
    }

    /// @notice Get info of registered delegate
    /// @param safe Gnosis Safe
    /// @param delegate Registered delegate to get info of
    function getDelegateInfo(
        address safe,
        address delegate
    ) external view returns (uint64 createdAt, uint64 expiry) {
        DelegatedSigner memory signer = delegatesInfo[safe][delegate];
        return (signer.createdAt, signer.expiry);
    }

    /// @notice Returns true if the `delegatee` pubkey is registered as a
    ///     delegated signer for `safe`
    /// @param safe The Gnosis Safe
    /// @param delegate The (truncated) ECDSA public key that has been
    ///     registered as a delegate for `safe`
    /// @return truth or dare
    function isValidDelegate(
        address safe,
        address delegate
    ) external view returns (bool) {
        DelegatedSigner memory delegateSigner = delegatesInfo[safe][delegate];
        return block.timestamp < delegateSigner.expiry;
    }

    /// @notice Get count of delegated signers for a safe
    /// @param safe The Gnosis Safe
    function getDelegateSignersCount(
        address safe
    ) external view returns (uint256) {
        return delegatesList[safe].length;
    }

    /// @notice Get a paginated list of delegated signers
    /// @param safe The Gnosis Safe
    /// @param offset Offset in the list to start fetching from
    /// @param maxPageSize Maximum number of signers to fetch
    function getDelegateSignersPaginated(
        address safe,
        uint256 offset,
        uint256 maxPageSize
    ) external view returns (address[] memory signers) {
        uint256 len = delegatesList[safe].length;
        if (offset >= len) return new address[](0);

        uint256 pageSize = offset + maxPageSize > len
            ? len - offset
            : maxPageSize;
        signers = new address[](pageSize);
        for (uint256 i = 0; i < pageSize; ++i)
            signers[i] = delegatesList[safe][offset + i];
    }

    /// @notice Register a delegate public key of which the safe has
    ///     control. Must be called by the Gnosis Safe.
    /// @param delegate Truncated ECDSA public key that the delegator wishes
    ///     to delegate to.
    /// @param expiry When the delegation becomes invalid, as UNIX timestamp
    function registerDelegateSigner(address delegate, uint64 expiry) external {
        require(delegate != address(0), "Invalid delegate address");

        // NB: registered delegates are isolated to each safe
        address safe = msg.sender;
        require(
            delegatesInfo[safe][delegate].createdAt == 0,
            "Delegate already registered"
        );
        // Insert delegate into list for Safe
        delegatesList[safe].push(delegate);
        // Record delegate information
        delegatesInfo[safe][delegate] = DelegatedSigner({
            createdAt: uint64(block.timestamp),
            expiry: expiry
        });

        emit DelegateRegistered(safe, delegate, expiry);
    }

    /// @notice Revoke a delegate public key
    /// @param delegateIndex Index of the delegate to revoke
    function revokeDelegateSigner(uint256 delegateIndex) external {
        // NB: Only safe txes may revoke delegate signers
        address safe = msg.sender;
        require(
            delegateIndex < delegatesList[safe].length,
            "Delegate index out-of-bounds"
        );

        // Pop it off the list
        uint256 lastIndex = delegatesList[safe].length - 1;
        address delegate = delegatesList[safe][delegateIndex];
        delegatesList[safe][delegateIndex] = delegatesList[safe][lastIndex];
        delegatesList[safe].pop();
        // Clear delegate info
        delegatesInfo[safe][delegate] = DelegatedSigner({
            createdAt: 0,
            expiry: 0
        });

        emit DelegateRevoked(safe, delegate);
    }

    /// @notice Execute a transaction on the Gnosis Safe using this module
    /// @param delegate Delegate key that is signing the transaction
    /// @param safe The Gnosis Safe that this transaction is being executed
    ///     through
    /// @param to Tx target
    /// @param value Tx value
    /// @param data Tx calldata
    /// @param sig EIP-712 signature over `EIP712_EXEC_SAFE_TX_TYPEHASH`,
    ///     signed by `delegate`
    function exec(
        address delegate,
        address safe,
        address to,
        uint256 value,
        bytes calldata data,
        bytes calldata sig
    ) public {
        // Check that the delegatooor for this delegate is an owner of the safe
        DelegatedSigner memory delegateSigner = delegatesInfo[safe][delegate];
        require(
            block.timestamp < delegateSigner.expiry,
            "Delegate key expired"
        );

        uint256 nonce = userNonces[delegate]++;
        bytes32 digest = _hashTypedDataV4(
            keccak256(
                abi.encode(
                    EIP712_EXEC_SAFE_TX_TYPEHASH,
                    safe,
                    to,
                    value,
                    keccak256(data),
                    nonce
                )
            )
        );
        require(
            ECDSA.recover(digest, sig) == delegate,
            "Invalid signature for delegate"
        );

        require(
            IGnosisSafe(safe).execTransactionFromModule(
                to,
                value,
                data,
                IGnosisSafe.Operation.Call
            ),
            "Transaction reverted"
        );
    }

    /// @notice Invoke {exec}, via Gelato relay
    /// @notice maxFee Maximum fee payable to Gelato relayer
    function execViaRelay(
        uint256 maxFee,
        address delegate,
        address safe,
        address to,
        uint256 value,
        bytes calldata data,
        bytes calldata sig
    ) external onlyGelatoRelay {
        uint256 fee = _getFee();
        require(fee <= maxFee, "Relay fee exceeds maxFee");
        require(
            _getFeeToken() == 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE,
            "Only ETH payment supported"
        );
        require(
            IGnosisSafe(safe).execTransactionFromModule(
                _getFeeCollector(),
                fee,
                bytes(""),
                IGnosisSafe.Operation.Call
            ),
            "Fee payment failed"
        );

        // Execute transaction
        exec(delegate, safe, to, value, data, sig);
    }
}

File 2 of 15 : IGnosisSafe.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.17;

interface IGnosisSafe {
    enum Operation {
        Call,
        DelegateCall
    }

    function execTransactionFromModule(
        address to,
        uint256 value,
        bytes calldata data,
        Operation operation
    ) external returns (bool success);

    function isOwner(address owner) external view returns (bool);
}

File 3 of 15 : EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/EIP712.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;
    address private immutable _CACHED_THIS;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _CACHED_THIS = address(this);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

File 4 of 15 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @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) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 5 of 15 : GelatoRelayContext.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.1;

import {GelatoRelayBase} from "./base/GelatoRelayBase.sol";
import {TokenUtils} from "./lib/TokenUtils.sol";

uint256 constant _FEE_COLLECTOR_START = 72; // offset: address + address + uint256
uint256 constant _FEE_TOKEN_START = 52; // offset: address + uint256
uint256 constant _FEE_START = 32; // offset: uint256

// WARNING: Do not use this free fn by itself, always inherit GelatoRelayContext
// solhint-disable-next-line func-visibility, private-vars-leading-underscore
function _getFeeCollectorRelayContext() pure returns (address feeCollector) {
    assembly {
        feeCollector := shr(
            96,
            calldataload(sub(calldatasize(), _FEE_COLLECTOR_START))
        )
    }
}

// WARNING: Do not use this free fn by itself, always inherit GelatoRelayContext
// solhint-disable-next-line func-visibility, private-vars-leading-underscore
function _getFeeTokenRelayContext() pure returns (address feeToken) {
    assembly {
        feeToken := shr(96, calldataload(sub(calldatasize(), _FEE_TOKEN_START)))
    }
}

// WARNING: Do not use this free fn by itself, always inherit GelatoRelayContext
// solhint-disable-next-line func-visibility, private-vars-leading-underscore
function _getFeeRelayContext() pure returns (uint256 fee) {
    assembly {
        fee := calldataload(sub(calldatasize(), _FEE_START))
    }
}

/**
 * @dev Context variant with feeCollector, feeToken and fee appended to msg.data
 * Expects calldata encoding:
 * abi.encodePacked( _data,
 *                   _feeCollector,
 *                   _feeToken,
 *                   _fee);
 * Therefore, we're expecting 20 + 20 + 32 = 72 bytes to be appended to normal msgData
 * 32bytes start offsets from calldatasize:
 *     feeCollector: - 72 bytes
 *     feeToken: - 52 bytes
 *     fee: - 32 bytes
 */
/// @dev Do not use with GelatoRelayFeeCollector - pick only one
abstract contract GelatoRelayContext is GelatoRelayBase {
    using TokenUtils for address;

    // DANGER! Only use with onlyGelatoRelay `_isGelatoRelay` before transferring
    function _transferRelayFee() internal {
        _getFeeToken().transfer(_getFeeCollector(), _getFee());
    }

    // DANGER! Only use with onlyGelatoRelay `_isGelatoRelay` before transferring
    function _transferRelayFeeCapped(uint256 _maxFee) internal {
        uint256 fee = _getFee();
        require(
            fee <= _maxFee,
            "GelatoRelayContext._transferRelayFeeCapped: maxFee"
        );
        _getFeeToken().transfer(_getFeeCollector(), fee);
    }

    function _getMsgData() internal view returns (bytes calldata) {
        return
            _isGelatoRelay(msg.sender)
                ? msg.data[:msg.data.length - _FEE_COLLECTOR_START]
                : msg.data;
    }

    // Only use with GelatoRelayBase onlyGelatoRelay or `_isGelatoRelay` checks
    function _getFeeCollector() internal pure returns (address) {
        return _getFeeCollectorRelayContext();
    }

    // Only use with previous onlyGelatoRelay or `_isGelatoRelay` checks
    function _getFeeToken() internal pure returns (address) {
        return _getFeeTokenRelayContext();
    }

    // Only use with previous onlyGelatoRelay or `_isGelatoRelay` checks
    function _getFee() internal pure returns (uint256) {
        return _getFeeRelayContext();
    }
}

File 6 of 15 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.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 `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);
    }
}

File 7 of 15 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 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 10, 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 * 8) < value ? 1 : 0);
        }
    }
}

File 8 of 15 : GelatoRelayBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.1;

import {GELATO_RELAY} from "../constants/GelatoRelay.sol";

abstract contract GelatoRelayBase {
    modifier onlyGelatoRelay() {
        require(_isGelatoRelay(msg.sender), "onlyGelatoRelay");
        _;
    }

    function _isGelatoRelay(address _forwarder) internal pure returns (bool) {
        return _forwarder == GELATO_RELAY;
    }
}

File 9 of 15 : TokenUtils.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.1;

import {NATIVE_TOKEN} from "../constants/Tokens.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {Address} from "@openzeppelin/contracts/utils/Address.sol";
import {
    SafeERC20
} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

library TokenUtils {
    using SafeERC20 for IERC20;

    modifier onlyERC20(address _token) {
        require(_token != NATIVE_TOKEN, "TokenUtils.onlyERC20");
        _;
    }

    function transfer(
        address _token,
        address _to,
        uint256 _amount
    ) internal {
        if (_amount == 0) return;
        _token == NATIVE_TOKEN
            ? Address.sendValue(payable(_to), _amount)
            : IERC20(_token).safeTransfer(_to, _amount);
    }

    function transferFrom(
        address _token,
        address _from,
        address _to,
        uint256 _amount
    ) internal onlyERC20(_token) {
        if (_amount == 0) return;
        IERC20(_token).safeTransferFrom(_from, _to, _amount);
    }

    function getBalance(address token, address user)
        internal
        view
        returns (uint256)
    {
        return
            token == NATIVE_TOKEN
                ? user.balance
                : IERC20(token).balanceOf(user);
    }
}

File 10 of 15 : GelatoRelay.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.1;

address constant GELATO_RELAY = 0xaBcC9b596420A9E9172FD5938620E265a0f9Df92;
address constant GELATO_RELAY_ERC2771 = 0xBf175FCC7086b4f9bd59d5EAE8eA67b8f940DE0d;

File 11 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 12 of 15 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 13 of 15 : Tokens.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.1;

address constant NATIVE_TOKEN = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;

File 14 of 15 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 15 of 15 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 100,
    "details": {
      "yul": false
    }
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"safe","type":"address"},{"indexed":false,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint64","name":"expiry","type":"uint64"}],"name":"DelegateRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"safe","type":"address"},{"indexed":false,"internalType":"address","name":"delegate","type":"address"}],"name":"DelegateRevoked","type":"event"},{"inputs":[],"name":"EIP712_EXEC_SAFE_TX_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"delegate","type":"address"},{"internalType":"address","name":"safe","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"exec","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxFee","type":"uint256"},{"internalType":"address","name":"delegate","type":"address"},{"internalType":"address","name":"safe","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"execViaRelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"safe","type":"address"},{"internalType":"address","name":"delegate","type":"address"}],"name":"getDelegateInfo","outputs":[{"internalType":"uint64","name":"createdAt","type":"uint64"},{"internalType":"uint64","name":"expiry","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"safe","type":"address"}],"name":"getDelegateSignersCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"safe","type":"address"},{"internalType":"uint256","name":"offset","type":"uint256"},{"internalType":"uint256","name":"maxPageSize","type":"uint256"}],"name":"getDelegateSignersPaginated","outputs":[{"internalType":"address[]","name":"signers","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"safe","type":"address"},{"internalType":"address","name":"delegate","type":"address"}],"name":"isValidDelegate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"delegate","type":"address"},{"internalType":"uint64","name":"expiry","type":"uint64"}],"name":"registerDelegateSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"delegateIndex","type":"uint256"}],"name":"revokeDelegateSigner","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101406040523480156200001257600080fd5b5060408051808201825260128152715369676e6c657373536166654d6f64756c6560701b6020808301918252835180850190945260058452640312e302e360dc1b908401528151902060e08190527f06c015bd22b4c69690933c1058878ebdfef31f9aaae40bbe86d8a09fe1b2972c6101008190524660a0529192917f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f620000bc818484620000d2565b6080523060c05261012052506200017c92505050565b60008383834630604051602001620000ef95949392919062000126565b6040516020818303038152906040528051906020012090509392505050565b805b82525050565b6001600160a01b03811662000110565b60a081016200013682886200010e565b6200014560208301876200010e565b6200015460408301866200010e565b6200016360608301856200010e565b62000172608083018462000116565b9695505050505050565b60805160a05160c05160e05161010051610120516118cb620001cc6000396000610b4e01526000610b9001526000610b6f01526000610ad301526000610afd01526000610b2701526118cb6000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c806369defd491161006657806369defd49146101605780636ec525d614610187578063a5f6e1d61461019a578063e319256a146101ad578063ed795788146101ce57600080fd5b80632d0335ab146100a35780633038c7bc146100e25780633c37dab8146100f7578063438a8037146101175780635043e0b914610140575b600080fd5b6100cc6100b1366004610df2565b6001600160a01b031660009081526020819052604090205490565b6040516100d99190610e23565b60405180910390f35b6100f56100f0366004610e8c565b6101e1565b005b61010a610105366004610f54565b610402565b6040516100d9919061100a565b6100cc610125366004610df2565b6001600160a01b031660009081526001602052604090205490565b61015361014e36600461101b565b610543565b6040516100d99190611060565b6100cc7f5f3567ba7fc4782828c2500b3c51a04884387b65cb2704d2cf9e04a3f3ee113681565b6100f561019536600461106e565b610598565b6100f56101a836600461108f565b61079b565b6101c06101bb36600461101b565b6108ef565b6040516100d9929190611179565b6100f56101dc3660046111ae565b610947565b6001600160a01b038088166000908152600260209081526040808320938c168352928152908290208251808401909352546001600160401b038082168452600160401b9091041690820181905242106102555760405162461bcd60e51b815260040161024c9061120f565b60405180910390fd5b6001600160a01b03891660009081526020819052604081208054908261027a83611235565b91905055905060006102ef7f5f3567ba7fc4782828c2500b3c51a04884387b65cb2704d2cf9e04a3f3ee11368b8b8b8b8b6040516102b992919061126e565b6040519081900381206102d49594939291899060200161127b565b60405160208183030381529060405280519060200120610a8a565b90508a6001600160a01b031661033b8287878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610a9d92505050565b6001600160a01b0316146103615760405162461bcd60e51b815260040161024c90611309565b60405163468721a760e01b81526001600160a01b038b169063468721a790610396908c908c908c908c9060009060040161138b565b6020604051808303816000875af11580156103b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103d991906113e5565b6103f55760405162461bcd60e51b815260040161024c90611431565b5050505050505050505050565b6001600160a01b03831660009081526001602052604090205460609080841061043b57505060408051600081526020810190915261053c565b6000816104488587611457565b11610453578361045d565b61045d858361146a565b9050806001600160401b0381111561047757610477611441565b6040519080825280602002602001820160405280156104a0578160200160208202803683370190505b50925060005b81811015610538576001600160a01b03871660009081526001602052604090206104d08288611457565b815481106104e0576104e061147d565b9060005260206000200160009054906101000a90046001600160a01b03168482815181106105105761051061147d565b6001600160a01b039092166020928302919091019091015261053181611235565b90506104a6565b5050505b9392505050565b6001600160a01b0380831660009081526002602090815260408083209385168352928152908290208251808401909352546001600160401b038082168452600160401b90910416910181905242105b92915050565b3360008181526001602052604090205482106105c65760405162461bcd60e51b815260040161024c906114c7565b6001600160a01b03811660009081526001602081905260408220546105eb919061146a565b6001600160a01b0383166000908152600160205260408120805492935090918590811061061a5761061a61147d565b60009182526020808320909101546001600160a01b038681168452600190925260409092208054919092169250839081106106575761065761147d565b60009182526020808320909101546001600160a01b038681168452600190925260409092208054919092169190869081106106945761069461147d565b600091825260208083209190910180546001600160a01b0319166001600160a01b0394851617905591851681526001909152604090208054806106d9576106d96114d7565b60008281526020808220830160001990810180546001600160a01b03191690559092019092556040805180820182528381528083018481526001600160a01b038881168087526002865284872091881687529452938290209051815494516001600160401b03908116600160401b026001600160801b03199096169116179390931790925590517f76e6646868d096078ac7f3f1401c3aaa55dc84890ec74b99c699e4754714b18e9061078d9084906114ed565b60405180910390a250505050565b73abcc9b596420a9e9172fd5938620e265a0f9df9233146107ce5760405162461bcd60e51b815260040161024c90611521565b601f19360135898111156107f45760405162461bcd60e51b815260040161024c90611560565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee60331936013560601c1461082f5760405162461bcd60e51b815260040161024c906115a4565b604080516020810182526000808252915163468721a760e01b81526001600160a01b038b169263468721a7926108749260471936013560601c92879291600401611606565b6020604051808303816000875af1158015610893573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b791906113e5565b6108d35760405162461bcd60e51b815260040161024c90611674565b6108e389898989898989896101e1565b50505050505050505050565b6001600160a01b0380831660009081526002602090815260408083209385168352928152908290208251808401909352546001600160401b03808216808552600160401b9092041692909101829052905b9250929050565b6001600160a01b03821661096d5760405162461bcd60e51b815260040161024c906116b3565b3360008181526002602090815260408083206001600160a01b03871684529091529020546001600160401b0316156109b75760405162461bcd60e51b815260040161024c906116f7565b6001600160a01b03808216600081815260016020818152604080842080549384018155845281842090920180549589166001600160a01b031990961686179055815180830183526001600160401b0342811682528881168284019081528686526002845284862097865296909252928290209251835495518216600160401b026001600160801b031990961691161793909317905590517fb4c62b0bbb7faf08a5a63a4cfc204a4f7f869790a2f672bc8c90b01e062ae8d790610a7d9086908690611707565b60405180910390a2505050565b6000610592610a97610ac6565b83610bb4565b6000806000610aac8585610be7565b91509150610ab981610c29565b509392505050565b905090565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015610b1f57507f000000000000000000000000000000000000000000000000000000000000000046145b15610b4957507f000000000000000000000000000000000000000000000000000000000000000090565b610ac17f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000610cdb565b60008282604051602001610bc992919061171b565b60405160208183030381529060405280519060200120905092915050565b6000808251604103610c1d5760208301516040840151606085015160001a610c1187828585610d15565b94509450505050610940565b50600090506002610940565b6000816004811115610c3d57610c3d611342565b03610c455750565b6001816004811115610c5957610c59611342565b03610c765760405162461bcd60e51b815260040161024c9061177b565b6002816004811115610c8a57610c8a611342565b03610ca75760405162461bcd60e51b815260040161024c906117bf565b6003816004811115610cbb57610cbb611342565b03610cd85760405162461bcd60e51b815260040161024c906117cf565b50565b60008383834630604051602001610cf6959493929190611815565b6040516020818303038152906040528051906020012090509392505050565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b03831115610d425750600090506003610db9565b600060018787878760405160008152602001604052604051610d679493929190611860565b6020604051602081039080840390855afa158015610d89573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610db257600060019250925050610db9565b9150600090505b94509492505050565b60006001600160a01b038216610592565b610ddc81610dc2565b8114610cd857600080fd5b803561059281610dd3565b600060208284031215610e0757610e07600080fd5b6000610e138484610de7565b949350505050565b805b82525050565b602081016105928284610e1b565b80610ddc565b803561059281610e31565b60008083601f840112610e5757610e57600080fd5b5081356001600160401b03811115610e7157610e71600080fd5b60208301915083600182028301111561094057610940600080fd5b60008060008060008060008060c0898b031215610eab57610eab600080fd5b6000610eb78b8b610de7565b9850506020610ec88b828c01610de7565b9750506040610ed98b828c01610de7565b9650506060610eea8b828c01610e37565b95505060808901356001600160401b03811115610f0957610f09600080fd5b610f158b828c01610e42565b945094505060a08901356001600160401b03811115610f3657610f36600080fd5b610f428b828c01610e42565b92509250509295985092959890939650565b600080600060608486031215610f6c57610f6c600080fd5b6000610f788686610de7565b9350506020610f8986828701610e37565b9250506040610f9a86828701610e37565b9150509250925092565b610e1d81610dc2565b6000610fb98383610fa4565b505060200190565b6000610fcb825190565b80845260209384019383018060005b83811015610fff578151610fee8882610fad565b975060208301925050600101610fda565b509495945050505050565b6020808252810161053c8184610fc1565b6000806040838503121561103157611031600080fd5b600061103d8585610de7565b925050602061104e85828601610de7565b9150509250929050565b801515610e1d565b602081016105928284611058565b60006020828403121561108357611083600080fd5b6000610e138484610e37565b600080600080600080600080600060e08a8c0312156110b0576110b0600080fd5b60006110bc8c8c610e37565b99505060206110cd8c828d01610de7565b98505060406110de8c828d01610de7565b97505060606110ef8c828d01610de7565b96505060806111008c828d01610e37565b95505060a08a01356001600160401b0381111561111f5761111f600080fd5b61112b8c828d01610e42565b945094505060c08a01356001600160401b0381111561114c5761114c600080fd5b6111588c828d01610e42565b92509250509295985092959850929598565b6001600160401b038116610e1d565b60408101611187828561116a565b61053c602083018461116a565b6001600160401b038116610ddc565b803561059281611194565b600080604083850312156111c4576111c4600080fd5b60006111d08585610de7565b925050602061104e858286016111a3565b601481526000602082017311195b1959d85d19481ad95e48195e1c1a5c995960621b815291505b5060200190565b60208082528101610592816111e1565b634e487b7160e01b600052601160045260246000fd5b600060001982036112485761124861121f565b5060010190565b82818337506000910152565b600061126883858461124f565b50500190565b6000610e1382848661125b565b60c081016112898289610e1b565b6112966020830188610fa4565b6112a36040830187610fa4565b6112b06060830186610e1b565b6112bd6080830185610e1b565b6112ca60a0830184610e1b565b979650505050505050565b601e81526000602082017f496e76616c6964207369676e617475726520666f722064656c6567617465000081529150611208565b60208082528101610592816112d5565b818352600060208401935061132f83858461124f565b601f19601f8401165b9093019392505050565b634e487b7160e01b600052602160045260246000fd5b60028110610cd857610cd8611342565b8061137281611358565b919050565b600061059282611368565b610e1d81611377565b608081016113998288610fa4565b6113a66020830187610e1b565b81810360408301526113b9818587611319565b90506113c86060830184611382565b9695505050505050565b801515610ddc565b8051610592816113d2565b6000602082840312156113fa576113fa600080fd5b6000610e1384846113da565b6014815260006020820173151c985b9cd858dd1a5bdb881c995d995c9d195960621b81529150611208565b6020808252810161059281611406565b634e487b7160e01b600052604160045260246000fd5b808201808211156105925761059261121f565b818103818111156105925761059261121f565b634e487b7160e01b600052603260045260246000fd5b601c81526000602082017f44656c656761746520696e646578206f75742d6f662d626f756e64730000000081529150611208565b6020808252810161059281611493565b634e487b7160e01b600052603160045260246000fd5b602081016105928284610fa4565b600f81526000602082016e6f6e6c7947656c61746f52656c617960881b81529150611208565b60208082528101610592816114fb565b601881526000602082017752656c6179206665652065786365656473206d617846656560401b81529150611208565b6020808252810161059281611531565b601a81526000602082017f4f6e6c7920455448207061796d656e7420737570706f7274656400000000000081529150611208565b6020808252810161059281611570565b60005b838110156115cf5781810151838201526020016115b7565b50506000910152565b60006115e2825190565b8084526020840193506115f98185602086016115b4565b601f19601f820116611338565b608081016116148287610fa4565b6116216020830186610e1b565b818103604083015261163381856115d8565b90506116426060830184611382565b95945050505050565b6012815260006020820171119959481c185e5b595b9d0819985a5b195960721b81529150611208565b602080825281016105928161164b565b6018815260006020820177496e76616c69642064656c6567617465206164647265737360401b81529150611208565b6020808252810161059281611684565b601b81526000602082017f44656c656761746520616c72656164792072656769737465726564000000000081529150611208565b60208082528101610592816116c3565b604081016111878285610fa4565b80610e1d565b61190160f01b815260020160006117328285611715565b6020820191506117428284611715565b5060200192915050565b601881526000602082017745434453413a20696e76616c6964207369676e617475726560401b81529150611208565b602080825281016105928161174c565b601f81526000602082017f45434453413a20696e76616c6964207369676e6174757265206c656e6774680081529150611208565b602080825281016105928161178b565b6020808252810161059281602281527f45434453413a20696e76616c6964207369676e6174757265202773272076616c602082015261756560f01b604082015260600190565b60a081016118238288610e1b565b6118306020830187610e1b565b61183d6040830186610e1b565b61184a6060830185610e1b565b6113c86080830184610fa4565b60ff8116610e1d565b6080810161186e8287610e1b565b61187b6020830186611857565b6118886040830185610e1b565b6116426060830184610e1b56fea2646970667358221220b75a0381d6022c04a891f0d6e077cd2ebd51b5a832a904850fb223d8c3214d6464736f6c63430008110033

Deployed ByteCode Sourcemap

494:8016:13:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1982:104;;;;;;:::i;:::-;-1:-1:-1;;;;;2063:16:13;2037:7;2063:16;;;;;;;;;;;;1982:104;;;;;;;;:::i;:::-;;;;;;;;6379:1202;;;;;;:::i;:::-;;:::i;:::-;;3518:533;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;3149:143::-;;;;;;:::i;:::-;-1:-1:-1;;;;;3259:19:13;3233:7;3259:19;;;:13;:19;;;;;:26;;3149:143;2799:250;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;1034:178::-;;1097:115;1034:178;;5184:752;;;;;;:::i;:::-;;:::i;7696:812::-;;;;;;:::i;:::-;;:::i;2231:263::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;4364:708::-;;;;;;:::i;:::-;;:::i;6379:1202::-;-1:-1:-1;;;;;6684:19:13;;;6644:37;6684:19;;;:13;:19;;;;;;;;:29;;;;;;;;;;;;6644:69;;;;;;;;;-1:-1:-1;;;;;6644:69:13;;;;;-1:-1:-1;;;6644:69:13;;;;;;;;;;6744:15;:39;6723:106;;;;-1:-1:-1;;;6723:106:13;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;;;;;6856:20:13;;6840:13;6856:20;;;;;;;;;;:22;;;6840:13;6856:22;;;:::i;:::-;;;;;6840:38;;6888:14;6905:300;1097:115;7044:4;7070:2;7094:5;7131:4;;7121:15;;;;;;;:::i;:::-;;;;;;;;;6962:219;;;;;;7158:5;;6962:219;;;:::i;:::-;;;;;;;;;;;;;6935:260;;;;;;6905:16;:300::i;:::-;6888:317;;7266:8;-1:-1:-1;;;;;7236:38:13;:26;7250:6;7258:3;;7236:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7236:13:13;;-1:-1:-1;;;7236:26:13:i;:::-;-1:-1:-1;;;;;7236:38:13;;7215:115;;;;-1:-1:-1;;;7215:115:13;;;;;;;:::i;:::-;7362:166;;-1:-1:-1;;;7362:166:13;;-1:-1:-1;;;;;7362:43:13;;;;;:166;;7423:2;;7443:5;;7466:4;;;;7488:26;;7362:166;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;7341:233;;;;-1:-1:-1;;;7341:233:13;;;;;;;:::i;:::-;6554:1027;;;6379:1202;;;;;;;;:::o;3518:533::-;-1:-1:-1;;;;;3709:19:13;;3695:11;3709:19;;;:13;:19;;;;;:26;3659:24;;3749:13;;;3745:42;;-1:-1:-1;;3771:16:13;;;3785:1;3771:16;;;;;;;;3764:23;;3745:42;3798:16;3840:3;3817:20;3826:11;3817:6;:20;:::i;:::-;:26;:79;;3885:11;3817:79;;;3858:12;3864:6;3858:3;:12;:::i;:::-;3798:98;;3930:8;-1:-1:-1;;;;;3916:23:13;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3916:23:13;;3906:33;;3954:9;3949:95;3973:8;3969:1;:12;3949:95;;;-1:-1:-1;;;;;4013:19:13;;;;;;:13;:19;;;;;4033:10;4042:1;4033:6;:10;:::i;:::-;4013:31;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;4013:31:13;4000:7;4008:1;4000:10;;;;;;;;:::i;:::-;-1:-1:-1;;;;;4000:44:13;;;:10;;;;;;;;;;;:44;3983:3;;;:::i;:::-;;;3949:95;;;;3685:366;;3518:533;;;;;;:::o;2799:250::-;-1:-1:-1;;;;;2957:19:13;;;2901:4;2957:19;;;:13;:19;;;;;;;;:29;;;;;;;;;;;;2917:69;;;;;;;;;-1:-1:-1;;;;;2917:69:13;;;;;-1:-1:-1;;;2917:69:13;;;;;;;;;3003:15;:39;2799:250;;;;;:::o;5184:752::-;5329:10;5314:12;5386:19;;;:13;:19;;;;;:26;5370:42;;5349:117;;;;-1:-1:-1;;;5349:117:13;;;;;;;:::i;:::-;-1:-1:-1;;;;;5528:19:13;;5508:17;5528:19;;;5557:1;5528:19;;;;;;;:26;:30;;5557:1;5528:30;:::i;:::-;-1:-1:-1;;;;;5587:19:13;;5568:16;5587:19;;;:13;:19;;;;;:34;;5508:50;;-1:-1:-1;5568:16:13;;5607:13;;5587:34;;;;;;:::i;:::-;;;;;;;;;;;;;-1:-1:-1;;;;;5668:19:13;;;;;5587:34;5668:19;;;;;;;:30;;5587:34;;;;;-1:-1:-1;5688:9:13;;5668:30;;;;;;:::i;:::-;;;;;;;;;;;;;-1:-1:-1;;;;;5631:19:13;;;;;5668:30;5631:19;;;;;;;:34;;5668:30;;;;;5631:19;5651:13;;5631:34;;;;;;:::i;:::-;;;;;;;;;;;;;:67;;-1:-1:-1;;;;;;5631:67:13;-1:-1:-1;;;;;5631:67:13;;;;;;5708:19;;;;;-1:-1:-1;5708:19:13;;;;;;:25;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;5708:25:13;;;;;-1:-1:-1;;;;;;5708:25:13;;;;;;;;;5806:76;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5774:19:13;;;;;;:13;:19;;;;;:29;;;;;;;;;;;:108;;;;;;-1:-1:-1;;;;;5774:108:13;;;-1:-1:-1;;;5774:108:13;-1:-1:-1;;;;;;5774:108:13;;;;;;;;;;;;;5898:31;;;;;;5794:8;;5898:31;:::i;:::-;;;;;;;;5246:690;;;5184:752;:::o;7696:812::-;89:42:2;217:10:1;362:26;194:54;;;;-1:-1:-1;;;194:54:1;;;;;;;:::i;:::-;-1:-1:-1;;1357:14:0;1353:31;1340:45;7972:13:13;;::::1;;7964:50;;;;-1:-1:-1::0;;;7964:50:13::1;;;;;;;:::i;:::-;8063:42;-1:-1:-1::0;;1046:14:0;1042:37;1029:51;1025:2;1021:60;8045::13::1;8024:133;;;;-1:-1:-1::0;;;8024:133:13::1;;;;;;;:::i;:::-;8306:9;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;8306:9:13;;;8188:185;;-1:-1:-1;;;8188:185:13;;-1:-1:-1;;;;;8188:43:13;::::1;::::0;::::1;::::0;:185:::1;::::0;-1:-1:-1;;699:14:0;695:41;682:55;666:2;649:98;;8285:3:13;;8306:9;8188:185:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;8167:250;;;;-1:-1:-1::0;;;8167:250:13::1;;;;;;;:::i;:::-;8459:42;8464:8;8474:4;8480:2;8484:5;8491:4;;8497:3;;8459:4;:42::i;:::-;7921:587;7696:812:::0;;;;;;;;;:::o;2231:263::-;-1:-1:-1;;;;;2408:19:13;;;2333:16;2408:19;;;:13;:19;;;;;;;;:29;;;;;;;;;;;;2376:61;;;;;;;;;-1:-1:-1;;;;;2376:61:13;;;;;;-1:-1:-1;;;2376:61:13;;;;;;;;;;;;2231:263;;;;;;:::o;4364:708::-;-1:-1:-1;;;;;4456:22:13;;4448:59;;;;-1:-1:-1;;;4448:59:13;;;;;;;:::i;:::-;4595:10;4580:12;4636:19;;;:13;:19;;;;;;;;-1:-1:-1;;;;;4636:29:13;;;;;;;;;:39;-1:-1:-1;;;;;4636:39:13;:44;4615:118;;;;-1:-1:-1;;;4615:118:13;;;;;;;:::i;:::-;-1:-1:-1;;;;;4789:19:13;;;;;;;:13;:19;;;;;;;;:34;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4789:34:13;;;;;;;4904:103;;;;;;;-1:-1:-1;;;;;4952:15:13;4904:103;;;;;;;;;;;;;4872:19;;;:13;:19;;;;;:29;;;;;;;;;;;:135;;;;;;;;-1:-1:-1;;;4872:135:13;-1:-1:-1;;;;;;4872:135:13;;;;;;;;;;;;5023:42;;;;;;4814:8;;4990:6;;5023:42;:::i;:::-;;;;;;;;4438:634;4364:708;;:::o;4348:165:11:-;4425:7;4451:55;4473:20;:18;:20::i;:::-;4495:10;4451:21;:55::i;3661:227:10:-;3739:7;3759:17;3778:18;3800:27;3811:4;3817:9;3800:10;:27::i;:::-;3758:69;;;;3837:18;3849:5;3837:11;:18::i;:::-;-1:-1:-1;3872:9:10;3661:227;-1:-1:-1;;;3661:227:10:o;3328:21:0:-;3321:28;;3260:96;:::o;3152:308:11:-;3205:7;3236:4;-1:-1:-1;;;;;3245:12:11;3228:29;;:66;;;;;3278:16;3261:13;:33;3228:66;3224:230;;;-1:-1:-1;3317:24:11;;3152:308::o;3224:230::-;3379:64;3401:10;3413:12;3427:15;3379:21;:64::i;8341:194:10:-;8434:7;8499:15;8516:10;8470:57;;;;;;;;;:::i;:::-;;;;;;;;;;;;;8460:68;;;;;;8453:75;;8341:194;;;;:::o;2145:730::-;2226:7;2235:12;2263:9;:16;2283:2;2263:22;2259:610;;2599:4;2584:20;;2578:27;2648:4;2633:20;;2627:27;2705:4;2690:20;;2684:27;2301:9;2676:36;2746:25;2757:4;2676:36;2578:27;2627;2746:10;:25::i;:::-;2739:32;;;;;;;;;2259:610;-1:-1:-1;2818:1:10;;-1:-1:-1;2822:35:10;2802:56;;570:511;647:20;638:5;:29;;;;;;;;:::i;:::-;;634:441;;570:511;:::o;634:441::-;743:29;734:5;:38;;;;;;;;:::i;:::-;;730:345;;788:34;;-1:-1:-1;;;788:34:10;;;;;;;:::i;730:345::-;852:35;843:5;:44;;;;;;;;:::i;:::-;;839:236;;903:41;;-1:-1:-1;;;903:41:10;;;;;;;:::i;839:236::-;974:30;965:5;:39;;;;;;;;:::i;:::-;;961:114;;1020:44;;-1:-1:-1;;;1020:44:10;;;;;;;:::i;961:114::-;570:511;:::o;3466:257:11:-;3606:7;3653:8;3663;3673:11;3686:13;3709:4;3642:73;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;3632:84;;;;;;3625:91;;3466:257;;;;;:::o;5069:1494:10:-;5195:7;;-1:-1:-1;;;;;6106:79:10;;6102:161;;;-1:-1:-1;6217:1:10;;-1:-1:-1;6221:30:10;6201:51;;6102:161;6357:14;6374:24;6384:4;6390:1;6393;6396;6374:24;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;6374:24:10;;-1:-1:-1;;6374:24:10;;;-1:-1:-1;;;;;;;6412:20:10;;6408:101;;6464:1;6468:29;6448:50;;;;;;;6408:101;6527:6;-1:-1:-1;6535:20:10;;-1:-1:-1;5069:1494:10;;;;;;;;:::o;466:96:15:-;503:7;-1:-1:-1;;;;;400:54:15;;532:24;334:126;568:122;641:24;659:5;641:24;:::i;:::-;634:5;631:35;621:63;;680:1;677;670:12;696:139;767:20;;796:33;767:20;796:33;:::i;841:329::-;900:6;949:2;937:9;928:7;924:23;920:32;917:119;;;955:79;494:8016:13;;;955:79:15;1075:1;1100:53;1145:7;1125:9;1100:53;:::i;:::-;1090:63;841:329;-1:-1:-1;;;;841:329:15:o;1259:118::-;1364:5;1346:24;1341:3;1334:37;1259:118;;:::o;1383:222::-;1514:2;1499:18;;1527:71;1503:9;1571:6;1527:71;:::i;1611:122::-;1702:5;1684:24;1176:77;1739:139;1810:20;;1839:33;1810:20;1839:33;:::i;2266:552::-;2323:8;2333:6;2383:3;2376:4;2368:6;2364:17;2360:27;2350:122;;2391:79;494:8016:13;;;2391:79:15;-1:-1:-1;2491:20:15;;-1:-1:-1;;;;;2523:30:15;;2520:117;;;2556:79;494:8016:13;;;2556:79:15;2670:4;2662:6;2658:17;2646:29;;2724:3;2716:4;2708:6;2704:17;2694:8;2690:32;2687:41;2684:128;;;2731:79;494:8016:13;;;2824:1453:15;2950:6;2958;2966;2974;2982;2990;2998;3006;3055:3;3043:9;3034:7;3030:23;3026:33;3023:120;;;3062:79;494:8016:13;;;3062:79:15;3182:1;3207:53;3252:7;3232:9;3207:53;:::i;:::-;3197:63;;3153:117;3309:2;3335:53;3380:7;3371:6;3360:9;3356:22;3335:53;:::i;:::-;3325:63;;3280:118;3437:2;3463:53;3508:7;3499:6;3488:9;3484:22;3463:53;:::i;:::-;3453:63;;3408:118;3565:2;3591:53;3636:7;3627:6;3616:9;3612:22;3591:53;:::i;:::-;3581:63;;3536:118;3721:3;3710:9;3706:19;3693:33;-1:-1:-1;;;;;3745:6:15;3742:30;3739:117;;;3775:79;494:8016:13;;;3775:79:15;3888:64;3944:7;3935:6;3924:9;3920:22;3888:64;:::i;:::-;3870:82;;;;3664:298;4029:3;4018:9;4014:19;4001:33;-1:-1:-1;;;;;4053:6:15;4050:30;4047:117;;;4083:79;494:8016:13;;;4083:79:15;4196:64;4252:7;4243:6;4232:9;4228:22;4196:64;:::i;:::-;4178:82;;;;3972:298;2824:1453;;;;;;;;;;;:::o;4283:619::-;4360:6;4368;4376;4425:2;4413:9;4404:7;4400:23;4396:32;4393:119;;;4431:79;494:8016:13;;;4431:79:15;4551:1;4576:53;4621:7;4601:9;4576:53;:::i;:::-;4566:63;;4522:117;4678:2;4704:53;4749:7;4740:6;4729:9;4725:22;4704:53;:::i;:::-;4694:63;;4649:118;4806:2;4832:53;4877:7;4868:6;4857:9;4853:22;4832:53;:::i;:::-;4822:63;;4777:118;4283:619;;;;;:::o;5356:108::-;5433:24;5451:5;5433:24;:::i;5470:179::-;5539:10;5560:46;5602:3;5594:6;5560:46;:::i;:::-;-1:-1:-1;;5638:4:15;5629:14;;5470:179::o;5804:732::-;5923:3;5952:54;6000:5;5003:12;;4908:114;5952:54;5149:19;;;5201:4;5192:14;;;;5329;;;6242:1;6227:284;6252:6;6249:1;6246:13;6227:284;;;6328:6;6322:13;6355:63;6414:3;6399:13;6355:63;:::i;:::-;6348:70;-1:-1:-1;5757:4:15;5748:14;;6431:70;-1:-1:-1;;6274:1:15;6267:9;6227:284;;;-1:-1:-1;6527:3:15;;5804:732;-1:-1:-1;;;;;5804:732:15:o;6542:373::-;6723:2;6736:47;;;6708:18;;6800:108;6708:18;6894:6;6800:108;:::i;6921:474::-;6989:6;6997;7046:2;7034:9;7025:7;7021:23;7017:32;7014:119;;;7052:79;494:8016:13;;;7052:79:15;7172:1;7197:53;7242:7;7222:9;7197:53;:::i;:::-;7187:63;;7143:117;7299:2;7325:53;7370:7;7361:6;7350:9;7346:22;7325:53;:::i;:::-;7315:63;;7270:118;6921:474;;;;;:::o;7497:109::-;7471:13;;7464:21;7578;7401:90;7612:210;7737:2;7722:18;;7750:65;7726:9;7788:6;7750:65;:::i;8263:329::-;8322:6;8371:2;8359:9;8350:7;8346:23;8342:32;8339:119;;;8377:79;494:8016:13;;;8377:79:15;8497:1;8522:53;8567:7;8547:9;8522:53;:::i;8598:1599::-;8733:6;8741;8749;8757;8765;8773;8781;8789;8797;8846:3;8834:9;8825:7;8821:23;8817:33;8814:120;;;8853:79;494:8016:13;;;8853:79:15;8973:1;8998:53;9043:7;9023:9;8998:53;:::i;:::-;8988:63;;8944:117;9100:2;9126:53;9171:7;9162:6;9151:9;9147:22;9126:53;:::i;:::-;9116:63;;9071:118;9228:2;9254:53;9299:7;9290:6;9279:9;9275:22;9254:53;:::i;:::-;9244:63;;9199:118;9356:2;9382:53;9427:7;9418:6;9407:9;9403:22;9382:53;:::i;:::-;9372:63;;9327:118;9484:3;9511:53;9556:7;9547:6;9536:9;9532:22;9511:53;:::i;:::-;9501:63;;9455:119;9641:3;9630:9;9626:19;9613:33;-1:-1:-1;;;;;9665:6:15;9662:30;9659:117;;;9695:79;494:8016:13;;;9695:79:15;9808:64;9864:7;9855:6;9844:9;9840:22;9808:64;:::i;:::-;9790:82;;;;9584:298;9949:3;9938:9;9934:19;9921:33;-1:-1:-1;;;;;9973:6:15;9970:30;9967:117;;;10003:79;494:8016:13;;;10003:79:15;10116:64;10172:7;10163:6;10152:9;10148:22;10116:64;:::i;:::-;10098:82;;;;9892:298;8598:1599;;;;;;;;;;;:::o;10310:115::-;-1:-1:-1;;;;;10268:30:15;;10395:23;10203:101;10431:324;10586:2;10571:18;;10599:69;10575:9;10641:6;10599:69;:::i;:::-;10678:70;10744:2;10733:9;10729:18;10720:6;10678:70;:::i;10761:120::-;-1:-1:-1;;;;;10268:30:15;;10833:23;10203:101;10887:137;10957:20;;10986:32;10957:20;10986:32;:::i;11030:472::-;11097:6;11105;11154:2;11142:9;11133:7;11129:23;11125:32;11122:119;;;11160:79;494:8016:13;;;11160:79:15;11280:1;11305:53;11350:7;11330:9;11305:53;:::i;:::-;11295:63;;11251:117;11407:2;11433:52;11477:7;11468:6;11457:9;11453:22;11433:52;:::i;11859:366::-;12086:2;5149:19;;12001:3;5201:4;5192:14;;-1:-1:-1;;;11800:46:15;;12015:74;-1:-1:-1;12098:93:15;-1:-1:-1;12216:2:15;12207:12;;11859:366::o;12231:419::-;12435:2;12448:47;;;12420:18;;12512:131;12420:18;12512:131;:::i;12656:180::-;-1:-1:-1;;;12701:1:15;12694:88;12801:4;12798:1;12791:15;12825:4;12822:1;12815:15;12842:233;12881:3;-1:-1:-1;;12943:5:15;12940:77;12937:103;;13020:18;;:::i;:::-;-1:-1:-1;13067:1:15;13056:13;;12842:233::o;13234:146::-;13331:6;13326:3;13321;13308:30;-1:-1:-1;13372:1:15;13354:16;;13347:27;13234:146::o;13408:327::-;13522:3;13641:56;13690:6;13685:3;13678:5;13641:56;:::i;:::-;-1:-1:-1;;13713:16:15;;13408:327::o;13741:291::-;13881:3;13903:103;14002:3;13993:6;13985;13903:103;:::i;14162:775::-;14433:3;14418:19;;14447:71;14422:9;14491:6;14447:71;:::i;:::-;14528:72;14596:2;14585:9;14581:18;14572:6;14528:72;:::i;:::-;14610;14678:2;14667:9;14663:18;14654:6;14610:72;:::i;:::-;14692;14760:2;14749:9;14745:18;14736:6;14692:72;:::i;:::-;14774:73;14842:3;14831:9;14827:19;14818:6;14774:73;:::i;:::-;14857;14925:3;14914:9;14910:19;14901:6;14857:73;:::i;:::-;14162:775;;;;;;;;;:::o;15129:366::-;15356:2;5149:19;;15271:3;5201:4;5192:14;;15083:32;15060:56;;15285:74;-1:-1:-1;15368:93:15;14943:180;15501:419;15705:2;15718:47;;;15690:18;;15782:131;15690:18;15782:131;:::i;16230:314::-;5149:19;;;16326:3;5201:4;5192:14;;16340:77;;16427:56;16476:6;16471:3;16464:5;16427:56;:::i;:::-;-1:-1:-1;;16192:2:15;16172:14;;16168:28;16508:29;16499:39;;;;16230:314;-1:-1:-1;;;16230:314:15:o;16550:180::-;-1:-1:-1;;;16595:1:15;16588:88;16695:4;16692:1;16685:15;16719:4;16716:1;16709:15;16736:119;16823:1;16816:5;16813:12;16803:46;;16829:18;;:::i;16861:139::-;16941:5;16947:47;16941:5;16947:47;:::i;:::-;16861:139;;;:::o;17006:::-;17068:9;17101:38;17133:5;17101:38;:::i;17151:155::-;17250:49;17293:5;17250:49;:::i;17312:684::-;17567:3;17552:19;;17581:71;17556:9;17625:6;17581:71;:::i;:::-;17662:72;17730:2;17719:9;17715:18;17706:6;17662:72;:::i;:::-;17781:9;17775:4;17771:20;17766:2;17755:9;17751:18;17744:48;17809:86;17890:4;17881:6;17873;17809:86;:::i;:::-;17801:94;;17905:84;17985:2;17974:9;17970:18;17961:6;17905:84;:::i;:::-;17312:684;;;;;;;;:::o;18002:116::-;7471:13;;7464:21;18072;7401:90;18124:137;18203:13;;18225:30;18203:13;18225:30;:::i;18267:345::-;18334:6;18383:2;18371:9;18362:7;18358:23;18354:32;18351:119;;;18389:79;494:8016:13;;;18389:79:15;18509:1;18534:61;18587:7;18567:9;18534:61;:::i;18794:366::-;19021:2;5149:19;;18936:3;5201:4;5192:14;;-1:-1:-1;;;18735:46:15;;18950:74;-1:-1:-1;19033:93:15;18618:170;19166:419;19370:2;19383:47;;;19355:18;;19447:131;19355:18;19447:131;:::i;19591:180::-;-1:-1:-1;;;19636:1:15;19629:88;19736:4;19733:1;19726:15;19760:4;19757:1;19750:15;19777:191;19906:9;;;19928:10;;;19925:36;;;19941:18;;:::i;19974:194::-;20105:9;;;20127:11;;;20124:37;;;20141:18;;:::i;20174:180::-;-1:-1:-1;;;20219:1:15;20212:88;20319:4;20316:1;20309:15;20343:4;20340:1;20333:15;20544:366;20771:2;5149:19;;20686:3;5201:4;5192:14;;20500:30;20477:54;;20700:74;-1:-1:-1;20783:93:15;20360:178;20916:419;21120:2;21133:47;;;21105:18;;21197:131;21105:18;21197:131;:::i;21341:180::-;-1:-1:-1;;;21386:1:15;21379:88;21486:4;21483:1;21476:15;21510:4;21507:1;21500:15;21527:222;21658:2;21643:18;;21671:71;21647:9;21715:6;21671:71;:::i;21926:366::-;22153:2;5149:19;;22068:3;5201:4;5192:14;;-1:-1:-1;;;21872:41:15;;22082:74;-1:-1:-1;22165:93:15;21755:165;22298:419;22502:2;22515:47;;;22487:18;;22579:131;22487:18;22579:131;:::i;22903:366::-;23130:2;5149:19;;23045:3;5201:4;5192:14;;-1:-1:-1;;;22840:50:15;;23059:74;-1:-1:-1;23142:93:15;22723:174;23275:419;23479:2;23492:47;;;23464:18;;23556:131;23464:18;23556:131;:::i;23882:366::-;24109:2;5149:19;;24024:3;5201:4;5192:14;;23840:28;23817:52;;24038:74;-1:-1:-1;24121:93:15;23700:176;24254:419;24458:2;24471:47;;;24443:18;;24535:131;24443:18;24535:131;:::i;24783:246::-;24864:1;24874:113;24888:6;24885:1;24882:13;24874:113;;;24964:11;;;24958:18;24945:11;;;24938:39;24910:2;24903:10;24874:113;;;-1:-1:-1;;25021:1:15;25003:16;;24996:27;24783:246::o;25035:373::-;25121:3;25149:38;25181:5;5003:12;;4908:114;25149:38;5149:19;;;5201:4;5192:14;;25196:77;;25282:65;25340:6;25335:3;25328:4;25321:5;25317:16;25282:65;:::i;:::-;-1:-1:-1;;16192:2:15;16172:14;;16168:28;25372:29;16100:102;25414:664;25659:3;25644:19;;25673:71;25648:9;25717:6;25673:71;:::i;:::-;25754:72;25822:2;25811:9;25807:18;25798:6;25754:72;:::i;:::-;25873:9;25867:4;25863:20;25858:2;25847:9;25843:18;25836:48;25901:76;25972:4;25963:6;25901:76;:::i;:::-;25893:84;;25987;26067:2;26056:9;26052:18;26043:6;25987:84;:::i;:::-;25414:664;;;;;;;:::o;26258:366::-;26485:2;5149:19;;26400:3;5201:4;5192:14;;-1:-1:-1;;;26201:44:15;;26414:74;-1:-1:-1;26497:93:15;26084:168;26630:419;26834:2;26847:47;;;26819:18;;26911:131;26819:18;26911:131;:::i;27235:366::-;27462:2;5149:19;;27377:3;5201:4;5192:14;;-1:-1:-1;;;27172:50:15;;27391:74;-1:-1:-1;27474:93:15;27055:174;27607:419;27811:2;27824:47;;;27796:18;;27888:131;27796:18;27888:131;:::i;28215:366::-;28442:2;5149:19;;28357:3;5201:4;5192:14;;28172:29;28149:53;;28371:74;-1:-1:-1;28454:93:15;28032:177;28587:419;28791:2;28804:47;;;28776:18;;28868:131;28776:18;28868:131;:::i;29012:328::-;29169:2;29154:18;;29182:71;29158:9;29226:6;29182:71;:::i;30211:157::-;30354:5;30316:45;1176:77;30374:663;-1:-1:-1;;;29617:90:15;;30112:1;30103:11;30615:3;30795:75;30103:11;30857:6;30795:75;:::i;:::-;30895:2;30890:3;30886:12;30879:19;;30908:75;30979:3;30970:6;30908:75;:::i;:::-;-1:-1:-1;31008:2:15;30999:12;;30374:663;-1:-1:-1;;30374:663:15:o;31223:366::-;31450:2;5149:19;;31365:3;5201:4;5192:14;;-1:-1:-1;;;31160:50:15;;31379:74;-1:-1:-1;31462:93:15;31043:174;31595:419;31799:2;31812:47;;;31784:18;;31876:131;31784:18;31876:131;:::i;32207:366::-;32434:2;5149:19;;32349:3;5201:4;5192:14;;32160:33;32137:57;;32363:74;-1:-1:-1;32446:93:15;32020:181;32579:419;32783:2;32796:47;;;32768:18;;32860:131;32768:18;32860:131;:::i;33603:419::-;33807:2;33820:47;;;33792:18;;33884:131;33792:18;33458:2;5149:19;;33144:34;5201:4;5192:14;;33121:58;-1:-1:-1;;;33196:15:15;;;33189:29;33579:12;;;33231:366;34028:664;34271:3;34256:19;;34285:71;34260:9;34329:6;34285:71;:::i;:::-;34366:72;34434:2;34423:9;34419:18;34410:6;34366:72;:::i;:::-;34448;34516:2;34505:9;34501:18;34492:6;34448:72;:::i;:::-;34530;34598:2;34587:9;34583:18;34574:6;34530:72;:::i;:::-;34612:73;34680:3;34669:9;34665:19;34656:6;34612:73;:::i;34790:112::-;34773:4;34762:16;;34873:22;34698:86;34908:545;35119:3;35104:19;;35133:71;35108:9;35177:6;35133:71;:::i;:::-;35214:68;35278:2;35267:9;35263:18;35254:6;35214:68;:::i;:::-;35292:72;35360:2;35349:9;35345:18;35336:6;35292:72;:::i;:::-;35374;35442:2;35431:9;35427:18;35418:6;35374:72;:::i

Swarm Source

ipfs://b75a0381d6022c04a891f0d6e077cd2ebd51b5a832a904850fb223d8c3214d64
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading