ETH Price: $3,291.43 (-10.46%)

CAPYBARA CREW (CAPYBARA)
 

Overview

TokenID

1783

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Capybara

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 10000000 runs

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

import {ERC404} from './libs/ERC404.sol';
import {Strings} from '@openzeppelin/contracts/utils/Strings.sol';
import {EIP712} from '@openzeppelin/contracts/utils/cryptography/EIP712.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import './libs/CapybaraUtil.sol';

contract Capybara is ERC404, EIP712 {
    uint256 public constant MAX_NATIVE_SUPPLY = 6000;
    address public verifySigner;

    uint256 public constant MINT_LIMIT = 5700;
    uint256 public alreadyMinted;

    string public dataURI = 'https://ipfs.particle.network/QmNysXkXDpCa7hFpAg1tz3rPBFxmnY2ApWgbPz8kdUnft5/';
    string public baseTokenURI;

    mapping(address => uint256) public firstMint;

    constructor(
        address _owner,
        address _verifySigner
    ) ERC404('CAPYBARA CREW', 'CAPYBARA', 18, MAX_NATIVE_SUPPLY, _owner) EIP712('Capybara', '1') {
        balanceOf[_owner] = totalSupply;
        verifySigner = _verifySigner;
        setWhitelist(_owner, true);
    }

    function setDataURI(string memory _dataURI) public onlyOwner {
        dataURI = _dataURI;
    }

    function setTokenURI(string memory _tokenURI) public onlyOwner {
        baseTokenURI = _tokenURI;
    }

    function setVerifySigner(address _verifySigner) public onlyOwner {
        verifySigner = _verifySigner;
    }

    function getOwnerBalanceOf() public view returns (uint256) {
        return balanceOf[owner];
    }

    function mint(MintStruct calldata mintStruct) external {
        require(mintStruct.minter != address(0), 'Capybara: minter can not be zero address');
        require(mintStruct.minter == msg.sender, 'Capybara: invalid minter');
        require(!Address.isContract(msg.sender), 'Capybara: caller must be EOA');
        require(!CapybaraUtil.isOutOfTimeRange(block.timestamp, mintStruct.validUntil), 'Capybara: outdated mint');
        require(alreadyMinted < MINT_LIMIT, 'Capybara: mint limit reached');

        if (mintStruct.mintOnce) {
            require(firstMint[msg.sender] == 0, 'Capybara: Already minted');
            if (mintStruct.sender != msg.sender) {
                require(firstMint[mintStruct.sender] == 0, 'Capybara: Already minted');
            }
        }

        bytes32 mintStructHash = CapybaraUtil.hash(mintStruct);
        require(
            CapybaraUtil.isMintStructSignatureValid(mintStructHash, mintStruct, _domainSeparatorV4(), verifySigner),
            'Capybara: invalid signature'
        );

        _transfer(owner, msg.sender, 10 ** decimals);

        firstMint[msg.sender] = _owned[msg.sender][_owned[msg.sender].length - 1];
        if (mintStruct.sender != msg.sender) {
            firstMint[mintStruct.sender] = firstMint[msg.sender];
        }

        alreadyMinted++;
    }

    function getFirstMint(address target) external view returns (uint256) {
        return firstMint[target];
    }

    function tokenURI(uint256 id) public view override returns (string memory) {
        if (bytes(baseTokenURI).length > 0) {
            return string.concat(baseTokenURI, Strings.toString(id));
        }

        return
            string.concat(
                'data:application/json;utf8,',
                '{"name": "CAPYBARA CREW #',
                Strings.toString(id),
                '","image":"',
                dataURI,
                Strings.toString((id % 10000) + 1),
                '.png"}'
            );
    }
}

File 2 of 12 : IERC5267.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC5267.sol)

pragma solidity ^0.8.0;

interface IERC5267 {
    /**
     * @dev MAY be emitted to signal that the domain could have changed.
     */
    event EIP712DomainChanged();

    /**
     * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712
     * signature.
     */
    function eip712Domain()
        external
        view
        returns (
            bytes1 fields,
            string memory name,
            string memory version,
            uint256 chainId,
            address verifyingContract,
            bytes32 salt,
            uint256[] memory extensions
        );
}

File 3 of 12 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [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://consensys.net/diligence/blog/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.8.0/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 4 of 12 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

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

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

pragma solidity ^0.8.8;

import "./ECDSA.sol";
import "../ShortStrings.sol";
import "../../interfaces/IERC5267.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].
 *
 * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain
 * separator of the implementation contract. This will cause the `_domainSeparatorV4` function to always rebuild the
 * separator from the immutable values, which is cheaper than accessing a cached version in cold storage.
 *
 * _Available since v3.4._
 *
 * @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
 */
abstract contract EIP712 is IERC5267 {
    using ShortStrings for *;

    bytes32 private constant _TYPE_HASH =
        keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");

    // 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 _cachedDomainSeparator;
    uint256 private immutable _cachedChainId;
    address private immutable _cachedThis;

    bytes32 private immutable _hashedName;
    bytes32 private immutable _hashedVersion;

    ShortString private immutable _name;
    ShortString private immutable _version;
    string private _nameFallback;
    string private _versionFallback;

    /**
     * @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) {
        _name = name.toShortStringWithFallback(_nameFallback);
        _version = version.toShortStringWithFallback(_versionFallback);
        _hashedName = keccak256(bytes(name));
        _hashedVersion = keccak256(bytes(version));

        _cachedChainId = block.chainid;
        _cachedDomainSeparator = _buildDomainSeparator();
        _cachedThis = address(this);
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _cachedThis && block.chainid == _cachedChainId) {
            return _cachedDomainSeparator;
        } else {
            return _buildDomainSeparator();
        }
    }

    function _buildDomainSeparator() private view returns (bytes32) {
        return keccak256(abi.encode(_TYPE_HASH, _hashedName, _hashedVersion, 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);
    }

    /**
     * @dev See {EIP-5267}.
     *
     * _Available since v4.9._
     */
    function eip712Domain()
        public
        view
        virtual
        override
        returns (
            bytes1 fields,
            string memory name,
            string memory version,
            uint256 chainId,
            address verifyingContract,
            bytes32 salt,
            uint256[] memory extensions
        )
    {
        return (
            hex"0f", // 01111
            _name.toStringWithFallback(_nameFallback),
            _version.toStringWithFallback(_versionFallback),
            block.chainid,
            address(this),
            bytes32(0),
            new uint256[](0)
        );
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

pragma solidity ^0.8.8;

import "./StorageSlot.sol";

// | string  | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA   |
// | length  | 0x                                                              BB |
type ShortString is bytes32;

/**
 * @dev This library provides functions to convert short memory strings
 * into a `ShortString` type that can be used as an immutable variable.
 *
 * Strings of arbitrary length can be optimized using this library if
 * they are short enough (up to 31 bytes) by packing them with their
 * length (1 byte) in a single EVM word (32 bytes). Additionally, a
 * fallback mechanism can be used for every other case.
 *
 * Usage example:
 *
 * ```solidity
 * contract Named {
 *     using ShortStrings for *;
 *
 *     ShortString private immutable _name;
 *     string private _nameFallback;
 *
 *     constructor(string memory contractName) {
 *         _name = contractName.toShortStringWithFallback(_nameFallback);
 *     }
 *
 *     function name() external view returns (string memory) {
 *         return _name.toStringWithFallback(_nameFallback);
 *     }
 * }
 * ```
 */
library ShortStrings {
    // Used as an identifier for strings longer than 31 bytes.
    bytes32 private constant _FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF;

    error StringTooLong(string str);
    error InvalidShortString();

    /**
     * @dev Encode a string of at most 31 chars into a `ShortString`.
     *
     * This will trigger a `StringTooLong` error is the input string is too long.
     */
    function toShortString(string memory str) internal pure returns (ShortString) {
        bytes memory bstr = bytes(str);
        if (bstr.length > 31) {
            revert StringTooLong(str);
        }
        return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length));
    }

    /**
     * @dev Decode a `ShortString` back to a "normal" string.
     */
    function toString(ShortString sstr) internal pure returns (string memory) {
        uint256 len = byteLength(sstr);
        // using `new string(len)` would work locally but is not memory safe.
        string memory str = new string(32);
        /// @solidity memory-safe-assembly
        assembly {
            mstore(str, len)
            mstore(add(str, 0x20), sstr)
        }
        return str;
    }

    /**
     * @dev Return the length of a `ShortString`.
     */
    function byteLength(ShortString sstr) internal pure returns (uint256) {
        uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF;
        if (result > 31) {
            revert InvalidShortString();
        }
        return result;
    }

    /**
     * @dev Encode a string into a `ShortString`, or write it to storage if it is too long.
     */
    function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) {
        if (bytes(value).length < 32) {
            return toShortString(value);
        } else {
            StorageSlot.getStringSlot(store).value = value;
            return ShortString.wrap(_FALLBACK_SENTINEL);
        }
    }

    /**
     * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}.
     */
    function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) {
        if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) {
            return toString(value);
        } else {
            return store;
        }
    }

    /**
     * @dev Return the length of a string that was encoded to `ShortString` or written to storage using {setWithFallback}.
     *
     * WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of
     * actual characters as the UTF-8 encoding of a single character can span over multiple bytes.
     */
    function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) {
        if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) {
            return byteLength(value);
        } else {
            return bytes(store).length;
        }
    }
}

File 9 of 12 : StorageSlot.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity ^0.8.0;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._
 * _Available since v4.9 for `string`, `bytes`._
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 11 of 12 : CapybaraUtil.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol';

struct MintStruct {
    address sender;
    address minter;
    uint48 validUntil;
    bool mintOnce;
    bytes signature;
}

library CapybaraUtil {
    bytes32 internal constant MINT_STRUCT_HASH = keccak256('MintStruct(address sender,address minter,uint48 validUntil,bool mintOnce)');

    function hash(MintStruct calldata mintStruct) internal pure returns (bytes32) {
        return keccak256(abi.encode(MINT_STRUCT_HASH, mintStruct.sender, mintStruct.minter, mintStruct.validUntil, mintStruct.mintOnce));
    }

    function isOutOfTimeRange(uint256 timestamp, uint48 validUntil) internal pure returns (bool) {
        return timestamp > validUntil;
    }

    function isMintStructSignatureValid(
        bytes32 mintStructHash,
        MintStruct calldata mintStruct,
        bytes32 domainSeparator,
        address signer
    ) internal pure returns (bool) {
        bytes32 digest = keccak256(abi.encodePacked('\x19\x01', domainSeparator, mintStructHash));
        address recoveredSigner = ECDSA.recover(digest, mintStruct.signature);

        if (recoveredSigner == address(0)) {
            return false;
        } else {
            return signer == recoveredSigner;
        }
    }
}

File 12 of 12 : ERC404.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

abstract contract Ownable {
    event OwnershipTransferred(address indexed user, address indexed newOwner);

    error Unauthorized();
    error InvalidOwner();

    address public owner;

    modifier onlyOwner() virtual {
        if (msg.sender != owner) revert Unauthorized();

        _;
    }

    constructor(address _owner) {
        if (_owner == address(0)) revert InvalidOwner();

        owner = _owner;

        emit OwnershipTransferred(address(0), _owner);
    }

    function transferOwnership(address _owner) public virtual onlyOwner {
        if (_owner == address(0)) revert InvalidOwner();

        owner = _owner;

        emit OwnershipTransferred(msg.sender, _owner);
    }

    function revokeOwnership() public virtual onlyOwner {
        owner = address(0);

        emit OwnershipTransferred(msg.sender, address(0));
    }
}

abstract contract ERC721Receiver {
    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC721Receiver.onERC721Received.selector;
    }
}

/// @notice ERC404
///         A gas-efficient, mixed ERC20 / ERC721 implementation
///         with native liquidity and fractionalization.
///
///         This is an experimental standard designed to integrate
///         with pre-existing ERC20 / ERC721 support as smoothly as
///         possible.
///
/// @dev    In order to support full functionality of ERC20 and ERC721
///         supply assumptions are made that slightly constraint usage.
///         Ensure decimals are sufficiently large (standard 18 recommended)
///         as ids are effectively encoded in the lowest range of amounts.
///
///         NFTs are spent on ERC20 functions in a FILO queue, this is by
///         design.
///
abstract contract ERC404 is Ownable {
    // Events
    event ERC20Transfer(
        address indexed from,
        address indexed to,
        uint256 amount
    );
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 amount
    );
    event Transfer(
        address indexed from,
        address indexed to,
        uint256 indexed id
    );
    event ERC721Approval(
        address indexed owner,
        address indexed spender,
        uint256 indexed id
    );
    event ApprovalForAll(
        address indexed owner,
        address indexed operator,
        bool approved
    );

    // Errors
    error NotFound();
    error AlreadyExists();
    error InvalidRecipient();
    error InvalidSender();
    error UnsafeRecipient();

    // Metadata
    /// @dev Token name
    string public name;

    /// @dev Token symbol
    string public symbol;

    /// @dev Decimals for fractional representation
    uint8 public immutable decimals;

    /// @dev Total supply in fractionalized representation
    uint256 public immutable totalSupply;

    /// @dev Current mint counter, monotonically increasing to ensure accurate ownership
    uint256 public minted;

    // Mappings
    /// @dev Balance of user in fractional representation
    mapping(address => uint256) public balanceOf;

    /// @dev Allowance of user in fractional representation
    mapping(address => mapping(address => uint256)) public allowance;

    /// @dev Approval in native representaion
    mapping(uint256 => address) public getApproved;

    /// @dev Approval for all in native representation
    mapping(address => mapping(address => bool)) public isApprovedForAll;

    /// @dev Owner of id in native representation
    mapping(uint256 => address) internal _ownerOf;

    /// @dev Array of owned ids in native representation
    mapping(address => uint256[]) internal _owned;

    /// @dev Tracks indices for the _owned mapping
    mapping(uint256 => uint256) internal _ownedIndex;

    /// @dev Addresses whitelisted from minting / burning for gas savings (pairs, routers, etc)
    mapping(address => bool) public whitelist;

    // Constructor
    constructor(
        string memory _name,
        string memory _symbol,
        uint8 _decimals,
        uint256 _totalNativeSupply,
        address _owner
    ) Ownable(_owner) {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;
        totalSupply = _totalNativeSupply * (10 ** decimals);
    }

    /// @notice Initialization function to set pairs / etc
    ///         saving gas by avoiding mint / burn on unnecessary targets
    function setWhitelist(address target, bool state) public onlyOwner {
        whitelist[target] = state;
    }

    /// @notice Function to find owner of a given native token
    function ownerOf(uint256 id) public view virtual returns (address owner) {
        owner = _ownerOf[id];

        if (owner == address(0)) {
            revert NotFound();
        }
    }

    /// @notice tokenURI must be implemented by child contract
    function tokenURI(uint256 id) public view virtual returns (string memory);

    /// @notice Function for token approvals
    /// @dev This function assumes id / native if amount less than or equal to current max id
    function approve(
        address spender,
        uint256 amountOrId
    ) public virtual returns (bool) {
        if (amountOrId <= minted && amountOrId > 0) {
            address owner = _ownerOf[amountOrId];

            if (msg.sender != owner && !isApprovedForAll[owner][msg.sender]) {
                revert Unauthorized();
            }

            getApproved[amountOrId] = spender;

            emit Approval(owner, spender, amountOrId);
        } else {
            allowance[msg.sender][spender] = amountOrId;

            emit Approval(msg.sender, spender, amountOrId);
        }

        return true;
    }

    /// @notice Function native approvals
    function setApprovalForAll(address operator, bool approved) public virtual {
        isApprovedForAll[msg.sender][operator] = approved;

        emit ApprovalForAll(msg.sender, operator, approved);
    }

    /// @notice Function for mixed transfers
    /// @dev This function assumes id / native if amount less than or equal to current max id
    function transferFrom(
        address from,
        address to,
        uint256 amountOrId
    ) public virtual {
        if (amountOrId <= minted) {
            if (from != _ownerOf[amountOrId]) {
                revert InvalidSender();
            }

            if (to == address(0)) {
                revert InvalidRecipient();
            }

            if (
                msg.sender != from &&
                !isApprovedForAll[from][msg.sender] &&
                msg.sender != getApproved[amountOrId]
            ) {
                revert Unauthorized();
            }

            balanceOf[from] -= _getUnit();

            unchecked {
                balanceOf[to] += _getUnit();
            }

            _ownerOf[amountOrId] = to;
            delete getApproved[amountOrId];

            // update _owned for sender
            uint256 updatedId = _owned[from][_owned[from].length - 1];
            _owned[from][_ownedIndex[amountOrId]] = updatedId;
            // pop
            _owned[from].pop();
            // update index for the moved id
            _ownedIndex[updatedId] = _ownedIndex[amountOrId];
            // push token to owned
            _owned[to].push(amountOrId);
            // update index for to owned
            _ownedIndex[amountOrId] = _owned[to].length - 1;

            emit Transfer(from, to, amountOrId);
            emit ERC20Transfer(from, to, _getUnit());
        } else {
            uint256 allowed = allowance[from][msg.sender];

            if (allowed != type(uint256).max)
                allowance[from][msg.sender] = allowed - amountOrId;

            _transfer(from, to, amountOrId);
        }
    }

    /// @notice Function for fractional transfers
    function transfer(
        address to,
        uint256 amount
    ) public virtual returns (bool) {
        return _transfer(msg.sender, to, amount);
    }

    /// @notice Function for native transfers with contract support
    function safeTransferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        transferFrom(from, to, id);

        if (
            to.code.length != 0 &&
            ERC721Receiver(to).onERC721Received(msg.sender, from, id, "") !=
            ERC721Receiver.onERC721Received.selector
        ) {
            revert UnsafeRecipient();
        }
    }

    /// @notice Function for native transfers with contract support and callback data
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes calldata data
    ) public virtual {
        transferFrom(from, to, id);

        if (
            to.code.length != 0 &&
            ERC721Receiver(to).onERC721Received(msg.sender, from, id, data) !=
            ERC721Receiver.onERC721Received.selector
        ) {
            revert UnsafeRecipient();
        }
    }

    /// @notice Internal function for fractional transfers
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal returns (bool) {
        uint256 unit = _getUnit();
        uint256 balanceBeforeSender = balanceOf[from];
        uint256 balanceBeforeReceiver = balanceOf[to];

        balanceOf[from] -= amount;

        unchecked {
            balanceOf[to] += amount;
        }

        // Skip burn for certain addresses to save gas
        if (!whitelist[from]) {
            uint256 tokens_to_burn = (balanceBeforeSender / unit) -
                (balanceOf[from] / unit);
            for (uint256 i = 0; i < tokens_to_burn; i++) {
                _burn(from);
            }
        }

        // Skip minting for certain addresses to save gas
        if (!whitelist[to]) {
            uint256 tokens_to_mint = (balanceOf[to] / unit) -
                (balanceBeforeReceiver / unit);
            for (uint256 i = 0; i < tokens_to_mint; i++) {
                _mint(to);
            }
        }

        emit ERC20Transfer(from, to, amount);
        return true;
    }

    // Internal utility logic
    function _getUnit() internal view returns (uint256) {
        return 10 ** decimals;
    }

    function _mint(address to) internal virtual {
        if (to == address(0)) {
            revert InvalidRecipient();
        }

        unchecked {
            minted++;
        }

        uint256 id = minted;

        if (_ownerOf[id] != address(0)) {
            revert AlreadyExists();
        }

        _ownerOf[id] = to;
        _owned[to].push(id);
        _ownedIndex[id] = _owned[to].length - 1;

        emit Transfer(address(0), to, id);
    }

    function _burn(address from) internal virtual {
        if (from == address(0)) {
            revert InvalidSender();
        }

        uint256 id = _owned[from][_owned[from].length - 1];
        _owned[from].pop();
        delete _ownedIndex[id];
        delete _ownerOf[id];
        delete getApproved[id];

        emit Transfer(from, address(0), id);
    }

    function _setNameSymbol(
        string memory _name,
        string memory _symbol
    ) internal {
        name = _name;
        symbol = _symbol;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_verifySigner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyExists","type":"error"},{"inputs":[],"name":"InvalidOwner","type":"error"},{"inputs":[],"name":"InvalidRecipient","type":"error"},{"inputs":[],"name":"InvalidSender","type":"error"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[],"name":"NotFound","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"UnsafeRecipient","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"ERC721Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_NATIVE_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"alreadyMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amountOrId","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dataURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"firstMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"getFirstMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOwnerBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"minter","type":"address"},{"internalType":"uint48","name":"validUntil","type":"uint48"},{"internalType":"bool","name":"mintOnce","type":"bool"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct MintStruct","name":"mintStruct","type":"tuple"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"revokeOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_dataURI","type":"string"}],"name":"setDataURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_verifySigner","type":"address"}],"name":"setVerifySigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bool","name":"state","type":"bool"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amountOrId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"verifySigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

610220604052604d6101a08181529062003d396101c0396010906200002590826200042b565b503480156200003357600080fd5b5060405162003d8638038062003d86833981016040819052620000569162000514565b60405180604001604052806008815260200167436170796261726160c01b815250604051806040016040528060018152602001603160f81b8152506040518060400160405280600d81526020016c4341505942415241204352455760981b81525060405180604001604052806008815260200167434150594241524160c01b8152506012611770878060006001600160a01b0316816001600160a01b03160362000113576040516349e27cff60e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b03831690811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060016200016a86826200042b565b5060026200017985826200042b565b5060ff831660808190526200019090600a6200065f565b6200019c908362000677565b60a05250620001b49350859250600c915050620002ab565b61016052620001c581600d620002ab565b61018052815160208084019190912061012052815190820120610140524660e052620002556101205161014051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b60c0525050306101005260a0516001600160a01b03838116600090815260046020526040902091909155600e80546001600160a01b031916918316919091179055620002a3826001620002e4565b505062000706565b6000602083511015620002cb57620002c3836200033a565b9050620002de565b81620002d884826200042b565b5060ff90505b92915050565b6000546001600160a01b031633146200030f576040516282b42960e81b815260040160405180910390fd5b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b600080829050601f8151111562000371578260405163305a27a960e01b815260040162000368919062000691565b60405180910390fd5b80516200037e82620006e1565b179392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620003b157607f821691505b602082108103620003d257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200042657600081815260208120601f850160051c81016020861015620004015750805b601f850160051c820191505b8181101562000422578281556001016200040d565b5050505b505050565b81516001600160401b0381111562000447576200044762000386565b6200045f816200045884546200039c565b84620003d8565b602080601f8311600181146200049757600084156200047e5750858301515b600019600386901b1c1916600185901b17855562000422565b600085815260208120601f198616915b82811015620004c857888601518255948401946001909101908401620004a7565b5085821015620004e75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80516001600160a01b03811681146200050f57600080fd5b919050565b600080604083850312156200052857600080fd5b6200053383620004f7565b91506200054360208401620004f7565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620005a35781600019048211156200058757620005876200054c565b808516156200059557918102915b93841c939080029062000567565b509250929050565b600082620005bc57506001620002de565b81620005cb57506000620002de565b8160018114620005e45760028114620005ef576200060f565b6001915050620002de565b60ff8411156200060357620006036200054c565b50506001821b620002de565b5060208310610133831016604e8410600b841016171562000634575081810a620002de565b62000640838362000562565b80600019048211156200065757620006576200054c565b029392505050565b60006200067060ff841683620005ab565b9392505050565b8082028115828204841417620002de57620002de6200054c565b600060208083528351808285015260005b81811015620006c057858101830151858201604001528201620006a2565b506000604082860101526040601f19601f8301168501019250505092915050565b80516020808301519190811015620003d25760001960209190910360031b1b16919050565b60805160a05160c05160e05161010051610120516101405161016051610180516135b46200078560003960006116840152600061165901526000611f6e01526000611f4601526000611ea101526000611ecb01526000611ef5015260006103350152600081816103950152818161154e0152611b7a01526135b46000f3fe608060405234801561001057600080fd5b506004361061025c5760003560e01c806372c7ec8311610145578063c87b56dd116100bd578063e0df5b6f1161008c578063e985e9c511610071578063e985e9c5146105d3578063f28ca1dd14610601578063f2fde38b1461060957600080fd5b8063e0df5b6f146105a0578063e8c61831146105b357600080fd5b8063c87b56dd14610547578063d547cfb71461055a578063dd62ed3e14610562578063e0d11a471461058d57600080fd5b80639b19251a11610114578063a9059cbb116100f9578063a9059cbb146104f6578063b65fa14f14610509578063b88d4fde1461053457600080fd5b80639b19251a146104c0578063a22cb465146104e357600080fd5b806372c7ec831461046a57806384b0196e1461047d5780638da5cb5b1461049857806395d89b41146104b857600080fd5b80632b968958116101d857806353bcb951116101a75780636352211e1161018c5780636352211e1461040157806364be947e1461041457806370a082311461044a57600080fd5b806353bcb951146103e557806353d6fd59146103ee57600080fd5b80632b96895814610388578063313ce5671461039057806342842e0e146103c95780634f02c420146103dc57600080fd5b8063095ea7b31161022f57806318d217c31161021457806318d217c31461035757806319c51b591461036c57806323b872dd1461037557600080fd5b8063095ea7b31461030d57806318160ddd1461033057600080fd5b8063027752401461026157806305afb3a41461027d57806306fdde031461029d578063081812fc146102b2575b600080fd5b61026a61164481565b6040519081526020015b60405180910390f35b61026a61028b366004612a10565b60126020526000908152604090205481565b6102a561061c565b6040516102749190612a99565b6102e86102c0366004612aac565b60066020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610274565b61032061031b366004612ac5565b6106aa565b6040519015158152602001610274565b61026a7f000000000000000000000000000000000000000000000000000000000000000081565b61036a610365366004612b1e565b610861565b005b61026a61177081565b61036a610383366004612bed565b6108c2565b61036a610dae565b6103b77f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff9091168152602001610274565b61036a6103d7366004612bed565b610e53565b61026a60035481565b61026a600f5481565b61036a6103fc366004612c39565b610f8c565b6102e861040f366004612aac565b611033565b61026a610422366004612a10565b73ffffffffffffffffffffffffffffffffffffffff1660009081526012602052604090205490565b61026a610458366004612a10565b60046020526000908152604090205481565b61036a610478366004612c6c565b611094565b61048561164b565b6040516102749796959493929190612ca7565b6000546102e89073ffffffffffffffffffffffffffffffffffffffff1681565b6102a56116f0565b6103206104ce366004612a10565b600b6020526000908152604090205460ff1681565b61036a6104f1366004612c39565b6116fd565b610320610504366004612ac5565b611794565b6000805473ffffffffffffffffffffffffffffffffffffffff1681526004602052604090205461026a565b61036a610542366004612d66565b6117a8565b6102a5610555366004612aac565b6118cf565b6102a5611956565b61026a610570366004612e01565b600560209081526000928352604080842090915290825290205481565b61036a61059b366004612a10565b611963565b61036a6105ae366004612b1e565b6119fb565b600e546102e89073ffffffffffffffffffffffffffffffffffffffff1681565b6103206105e1366004612e01565b600760209081526000928352604080842090915290825290205460ff1681565b6102a5611a58565b61036a610617366004612a10565b611a65565b6001805461062990612e2b565b80601f016020809104026020016040519081016040528092919081815260200182805461065590612e2b565b80156106a25780601f10610677576101008083540402835291602001916106a2565b820191906000526020600020905b81548152906001019060200180831161068557829003601f168201915b505050505081565b600060035482111580156106be5750600082115b156107ee5760008281526008602052604090205473ffffffffffffffffffffffffffffffffffffffff16338114801590610729575073ffffffffffffffffffffffffffffffffffffffff8116600090815260076020908152604080832033845290915290205460ff16155b15610760576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008381526006602090815260409182902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350610857565b33600081815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146108b2576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60106108be8282612ecc565b5050565b6003548111610d075760008181526008602052604090205473ffffffffffffffffffffffffffffffffffffffff84811691161461092b576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216610978576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff8416148015906109cf575073ffffffffffffffffffffffffffffffffffffffff8316600090815260076020908152604080832033845290915290205460ff16155b80156109ff575060008181526006602052604090205473ffffffffffffffffffffffffffffffffffffffff163314155b15610a36576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a3e611b73565b73ffffffffffffffffffffffffffffffffffffffff841660009081526004602052604081208054909190610a73908490613015565b90915550610a819050611b73565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260046020908152604080832080549096019095558582526008815284822080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811690941790556006815284822080549093169092559186168252600990529081208054610b1090600190613015565b81548110610b2057610b20613028565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff87168352600982526040808420868552600a90935290922054815492935083928110610b7157610b71613028565b600091825260208083209091019290925573ffffffffffffffffffffffffffffffffffffffff86168152600990915260409020805480610bb357610bb3613057565b6000828152602080822083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff908101839055909201909255838252600a81526040808320548484528184205573ffffffffffffffffffffffffffffffffffffffff8616808452600983529083208054600181810183558286529385200186905592529054610c429190613015565b6000838152600a6020526040808220929092559051839173ffffffffffffffffffffffffffffffffffffffff80871692908816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a48273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e031487610cf0611b73565b60405190815260200160405180910390a350505050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526005602090815260408083203384529091529020547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610d9b57610d698282613015565b73ffffffffffffffffffffffffffffffffffffffff851660009081526005602090815260408083203384529091529020555b610da6848484611ba5565b50505b505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610dff576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080547fffffffffffffffffffffffff000000000000000000000000000000000000000016815560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3565b610e5e8383836108c2565b73ffffffffffffffffffffffffffffffffffffffff82163b15801590610f5557506040517f150b7a020000000000000000000000000000000000000000000000000000000080825233600483015273ffffffffffffffffffffffffffffffffffffffff858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610f0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f309190613086565b7fffffffff000000000000000000000000000000000000000000000000000000001614155b15610da9576040517f3da6393100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005473ffffffffffffffffffffffffffffffffffffffff163314610fdd576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff919091166000908152600b6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60008181526008602052604090205473ffffffffffffffffffffffffffffffffffffffff168061108f576040517fc5723b5100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60006110a66040830160208401612a10565b73ffffffffffffffffffffffffffffffffffffffff160361114e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f43617079626172613a206d696e7465722063616e206e6f74206265207a65726f60448201527f206164647265737300000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b3361115f6040830160208401612a10565b73ffffffffffffffffffffffffffffffffffffffff16146111dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f43617079626172613a20696e76616c6964206d696e74657200000000000000006044820152606401611145565b333b15611245576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f43617079626172613a2063616c6c6572206d75737420626520454f41000000006044820152606401611145565b6112654261125960608401604085016130c8565b65ffffffffffff161090565b156112cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f43617079626172613a206f75746461746564206d696e740000000000000000006044820152606401611145565b611644600f5410611339576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f43617079626172613a206d696e74206c696d69742072656163686564000000006044820152606401611145565b61134960808201606083016130f0565b1561148d5733600090815260126020526040902054156113c5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f43617079626172613a20416c7265616479206d696e74656400000000000000006044820152606401611145565b336113d36020830183612a10565b73ffffffffffffffffffffffffffffffffffffffff161461148d57601260006113ff6020840184612a10565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020541561148d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f43617079626172613a20416c7265616479206d696e74656400000000000000006044820152606401611145565b600061149882611dc2565b90506114c581836114a7611e87565b600e5473ffffffffffffffffffffffffffffffffffffffff16611fbf565b61152b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43617079626172613a20696e76616c6964207369676e617475726500000000006044820152606401611145565b6000546115799073ffffffffffffffffffffffffffffffffffffffff16336115747f0000000000000000000000000000000000000000000000000000000000000000600a61322b565b611ba5565b50336000908152600960205260409020805461159790600190613015565b815481106115a7576115a7613028565b600091825260208083209091015433808452601283526040909320556115cf90840184612a10565b73ffffffffffffffffffffffffffffffffffffffff161461163257336000908152601260208181526040832054929061160a90860186612a10565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020555b600f80549060006116428361323a565b91905055505050565b60006060808280808361167f7f0000000000000000000000000000000000000000000000000000000000000000600c6120d2565b6116aa7f0000000000000000000000000000000000000000000000000000000000000000600d6120d2565b604080516000808252602082019092527f0f000000000000000000000000000000000000000000000000000000000000009b939a50919850469750309650945092509050565b6002805461062990612e2b565b33600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006117a1338484611ba5565b9392505050565b6117b38585856108c2565b73ffffffffffffffffffffffffffffffffffffffff84163b1580159061189857506040517f150b7a02000000000000000000000000000000000000000000000000000000008082529073ffffffffffffffffffffffffffffffffffffffff86169063150b7a02906118309033908a90899089908990600401613272565b6020604051808303816000875af115801561184f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118739190613086565b7fffffffff000000000000000000000000000000000000000000000000000000001614155b15610da6576040517f3da6393100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60606000601180546118e090612e2b565b9050111561191a5760116118f38361217d565b604051602001611904929190613382565b6040516020818303038152906040529050919050565b6119238261217d565b6010611944611934612710866133d6565b61193f9060016133ea565b61217d565b604051602001611904939291906133fd565b6011805461062990612e2b565b60005473ffffffffffffffffffffffffffffffffffffffff1633146119b4576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314611a4c576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60116108be8282612ecc565b6010805461062990612e2b565b60005473ffffffffffffffffffffffffffffffffffffffff163314611ab6576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116611b03576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b6000611ba07f0000000000000000000000000000000000000000000000000000000000000000600a61322b565b905090565b600080611bb0611b73565b73ffffffffffffffffffffffffffffffffffffffff8087166000818152600460205260408082208054948a1683529082205492825293945091929091869190611bf98386613015565b909155505073ffffffffffffffffffffffffffffffffffffffff808716600090815260046020908152604080832080548a019055928a168252600b9052205460ff16611caf5773ffffffffffffffffffffffffffffffffffffffff8716600090815260046020526040812054611c709085906134d6565b611c7a85856134d6565b611c849190613015565b905060005b81811015611cac57611c9a8961223b565b80611ca48161323a565b915050611c89565b50505b73ffffffffffffffffffffffffffffffffffffffff86166000908152600b602052604090205460ff16611d4e576000611ce884836134d6565b73ffffffffffffffffffffffffffffffffffffffff8816600090815260046020526040902054611d199086906134d6565b611d239190613015565b905060005b81811015611d4b57611d39886123f3565b80611d438161323a565b915050611d28565b50505b8573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e03148787604051611dad91815260200190565b60405180910390a35060019695505050505050565b60007f6664f71ab04fd2b50dbc4c3fd43e421c364e1d9a1ac0ffa166017f3aa3c529f6611df26020840184612a10565b611e026040850160208601612a10565b611e1260608601604087016130c8565b611e2260808701606088016130f0565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff9485169086015292909116606084015265ffffffffffff166080830152151560a082015260c001604051602081830303815290604052805190602001209050919050565b60003073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016148015611eed57507f000000000000000000000000000000000000000000000000000000000000000046145b15611f1757507f000000000000000000000000000000000000000000000000000000000000000090565b611ba0604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b6040517f1901000000000000000000000000000000000000000000000000000000000000602082015260228101839052604281018590526000908190606201604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190528051602090910120905060006120838261204960808901896134ea565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061257c92505050565b905073ffffffffffffffffffffffffffffffffffffffff81166120ab576000925050506120ca565b73ffffffffffffffffffffffffffffffffffffffff8481169116149150505b949350505050565b606060ff83146120ec576120e5836125a0565b905061085b565b8180546120f890612e2b565b80601f016020809104026020016040519081016040528092919081815260200182805461212490612e2b565b80156121715780601f1061214657610100808354040283529160200191612171565b820191906000526020600020905b81548152906001019060200180831161215457829003601f168201915b5050505050905061085b565b6060600061218a836125df565b600101905060008167ffffffffffffffff8111156121aa576121aa612aef565b6040519080825280601f01601f1916602001820160405280156121d4576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85049450846121de57509392505050565b73ffffffffffffffffffffffffffffffffffffffff8116612288576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116600090815260096020526040812080546122bb90600190613015565b815481106122cb576122cb613028565b90600052602060002001549050600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548061232657612326613057565b6000828152602080822083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff908101839055909201909255828252600a815260408083208390556008825280832080547fffffffffffffffffffffffff0000000000000000000000000000000000000000908116909155600690925280832080549092169091555182919073ffffffffffffffffffffffffffffffffffffffff8516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b73ffffffffffffffffffffffffffffffffffffffff8116612440576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600380546001019081905560008181526008602052604090205473ffffffffffffffffffffffffffffffffffffffff16156124a7576040517f23369fa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081815260086020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87169081179091558084526009835290832080546001818101835582865293852001859055925290546125249190613015565b6000828152600a6020526040808220929092559051829173ffffffffffffffffffffffffffffffffffffffff8516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600080600061258b85856126c1565b9150915061259881612706565b509392505050565b606060006125ad836128bc565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612628577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310612654576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061267257662386f26fc10000830492506010015b6305f5e100831061268a576305f5e100830492506008015b612710831061269e57612710830492506004015b606483106126b0576064830492506002015b600a831061085b5760010192915050565b60008082516041036126f75760208301516040840151606085015160001a6126eb878285856128fd565b945094505050506126ff565b506000905060025b9250929050565b600081600481111561271a5761271a61354f565b036127225750565b60018160048111156127365761273661354f565b0361279d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401611145565b60028160048111156127b1576127b161354f565b03612818576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401611145565b600381600481111561282c5761282c61354f565b036128b9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401611145565b50565b600060ff8216601f81111561085b576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561293457506000905060036129e3565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612988573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81166129dc576000600192509250506129e3565b9150600090505b94509492505050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461108f57600080fd5b600060208284031215612a2257600080fd5b6117a1826129ec565b60005b83811015612a46578181015183820152602001612a2e565b50506000910152565b60008151808452612a67816020860160208601612a2b565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006117a16020830184612a4f565b600060208284031215612abe57600080fd5b5035919050565b60008060408385031215612ad857600080fd5b612ae1836129ec565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060208284031215612b3057600080fd5b813567ffffffffffffffff80821115612b4857600080fd5b818401915084601f830112612b5c57600080fd5b813581811115612b6e57612b6e612aef565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715612bb457612bb4612aef565b81604052828152876020848701011115612bcd57600080fd5b826020860160208301376000928101602001929092525095945050505050565b600080600060608486031215612c0257600080fd5b612c0b846129ec565b9250612c19602085016129ec565b9150604084013590509250925092565b8035801515811461108f57600080fd5b60008060408385031215612c4c57600080fd5b612c55836129ec565b9150612c6360208401612c29565b90509250929050565b600060208284031215612c7e57600080fd5b813567ffffffffffffffff811115612c9557600080fd5b820160a081850312156117a157600080fd5b7fff00000000000000000000000000000000000000000000000000000000000000881681526000602060e081840152612ce360e084018a612a4f565b8381036040850152612cf5818a612a4f565b6060850189905273ffffffffffffffffffffffffffffffffffffffff8816608086015260a0850187905284810360c0860152855180825283870192509083019060005b81811015612d5457835183529284019291840191600101612d38565b50909c9b505050505050505050505050565b600080600080600060808688031215612d7e57600080fd5b612d87866129ec565b9450612d95602087016129ec565b935060408601359250606086013567ffffffffffffffff80821115612db957600080fd5b818801915088601f830112612dcd57600080fd5b813581811115612ddc57600080fd5b896020828501011115612dee57600080fd5b9699959850939650602001949392505050565b60008060408385031215612e1457600080fd5b612e1d836129ec565b9150612c63602084016129ec565b600181811c90821680612e3f57607f821691505b602082108103612e78577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b601f821115610da957600081815260208120601f850160051c81016020861015612ea55750805b601f850160051c820191505b81811015612ec457828155600101612eb1565b505050505050565b815167ffffffffffffffff811115612ee657612ee6612aef565b612efa81612ef48454612e2b565b84612e7e565b602080601f831160018114612f4d5760008415612f175750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555612ec4565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b82811015612f9a57888601518255948401946001909101908401612f7b565b5085821015612fd657878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8181038181111561085b5761085b612fe6565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60006020828403121561309857600080fd5b81517fffffffff00000000000000000000000000000000000000000000000000000000811681146117a157600080fd5b6000602082840312156130da57600080fd5b813565ffffffffffff811681146117a157600080fd5b60006020828403121561310257600080fd5b6117a182612c29565b600181815b8085111561316457817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561314a5761314a612fe6565b8085161561315757918102915b93841c9390800290613110565b509250929050565b60008261317b5750600161085b565b816131885750600061085b565b816001811461319e57600281146131a8576131c4565b600191505061085b565b60ff8411156131b9576131b9612fe6565b50506001821b61085b565b5060208310610133831016604e8410600b84101617156131e7575081810a61085b565b6131f1838361310b565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561322357613223612fe6565b029392505050565b60006117a160ff84168361316c565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361326b5761326b612fe6565b5060010190565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525084604083015260806060830152826080830152828460a0840137600060a0848401015260a07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f85011683010190509695505050505050565b600081546132fe81612e2b565b60018281168015613316576001811461334957613378565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0084168752821515830287019450613378565b8560005260208060002060005b8581101561336f5781548a820152908401908201613356565b50505082870194505b5050505092915050565b600061338e82856132f1565b835161339e818360208801612a2b565b01949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826133e5576133e56133a7565b500690565b8082018082111561085b5761085b612fe6565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c000000000081527f7b226e616d65223a202243415059424152412043524557202300000000000000601b8201526000845161345b816034850160208901612a2b565b7f222c22696d616765223a22000000000000000000000000000000000000000000603491840191820152613492603f8201866132f1565b905083516134a4818360208801612a2b565b7f2e706e67227d0000000000000000000000000000000000000000000000000000910190815260060195945050505050565b6000826134e5576134e56133a7565b500490565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261351f57600080fd5b83018035915067ffffffffffffffff82111561353a57600080fd5b6020019150368190038213156126ff57600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea2646970667358221220c6d682cf8867468aaf6d299560f7337db3aa92082c66d49f404d24c7191be3fc64736f6c6343000813003368747470733a2f2f697066732e7061727469636c652e6e6574776f726b2f516d4e7973586b584470436137684670416731747a3372504246786d6e59324170576762507a386b64556e6674352f000000000000000000000000351aba1c45254dec71f7681decd283b9b1c1a5f0000000000000000000000000afe7ef08a99d0dec704d404d874021e666269d47

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061025c5760003560e01c806372c7ec8311610145578063c87b56dd116100bd578063e0df5b6f1161008c578063e985e9c511610071578063e985e9c5146105d3578063f28ca1dd14610601578063f2fde38b1461060957600080fd5b8063e0df5b6f146105a0578063e8c61831146105b357600080fd5b8063c87b56dd14610547578063d547cfb71461055a578063dd62ed3e14610562578063e0d11a471461058d57600080fd5b80639b19251a11610114578063a9059cbb116100f9578063a9059cbb146104f6578063b65fa14f14610509578063b88d4fde1461053457600080fd5b80639b19251a146104c0578063a22cb465146104e357600080fd5b806372c7ec831461046a57806384b0196e1461047d5780638da5cb5b1461049857806395d89b41146104b857600080fd5b80632b968958116101d857806353bcb951116101a75780636352211e1161018c5780636352211e1461040157806364be947e1461041457806370a082311461044a57600080fd5b806353bcb951146103e557806353d6fd59146103ee57600080fd5b80632b96895814610388578063313ce5671461039057806342842e0e146103c95780634f02c420146103dc57600080fd5b8063095ea7b31161022f57806318d217c31161021457806318d217c31461035757806319c51b591461036c57806323b872dd1461037557600080fd5b8063095ea7b31461030d57806318160ddd1461033057600080fd5b8063027752401461026157806305afb3a41461027d57806306fdde031461029d578063081812fc146102b2575b600080fd5b61026a61164481565b6040519081526020015b60405180910390f35b61026a61028b366004612a10565b60126020526000908152604090205481565b6102a561061c565b6040516102749190612a99565b6102e86102c0366004612aac565b60066020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610274565b61032061031b366004612ac5565b6106aa565b6040519015158152602001610274565b61026a7f00000000000000000000000000000000000000000000014542ba12a337c0000081565b61036a610365366004612b1e565b610861565b005b61026a61177081565b61036a610383366004612bed565b6108c2565b61036a610dae565b6103b77f000000000000000000000000000000000000000000000000000000000000001281565b60405160ff9091168152602001610274565b61036a6103d7366004612bed565b610e53565b61026a60035481565b61026a600f5481565b61036a6103fc366004612c39565b610f8c565b6102e861040f366004612aac565b611033565b61026a610422366004612a10565b73ffffffffffffffffffffffffffffffffffffffff1660009081526012602052604090205490565b61026a610458366004612a10565b60046020526000908152604090205481565b61036a610478366004612c6c565b611094565b61048561164b565b6040516102749796959493929190612ca7565b6000546102e89073ffffffffffffffffffffffffffffffffffffffff1681565b6102a56116f0565b6103206104ce366004612a10565b600b6020526000908152604090205460ff1681565b61036a6104f1366004612c39565b6116fd565b610320610504366004612ac5565b611794565b6000805473ffffffffffffffffffffffffffffffffffffffff1681526004602052604090205461026a565b61036a610542366004612d66565b6117a8565b6102a5610555366004612aac565b6118cf565b6102a5611956565b61026a610570366004612e01565b600560209081526000928352604080842090915290825290205481565b61036a61059b366004612a10565b611963565b61036a6105ae366004612b1e565b6119fb565b600e546102e89073ffffffffffffffffffffffffffffffffffffffff1681565b6103206105e1366004612e01565b600760209081526000928352604080842090915290825290205460ff1681565b6102a5611a58565b61036a610617366004612a10565b611a65565b6001805461062990612e2b565b80601f016020809104026020016040519081016040528092919081815260200182805461065590612e2b565b80156106a25780601f10610677576101008083540402835291602001916106a2565b820191906000526020600020905b81548152906001019060200180831161068557829003601f168201915b505050505081565b600060035482111580156106be5750600082115b156107ee5760008281526008602052604090205473ffffffffffffffffffffffffffffffffffffffff16338114801590610729575073ffffffffffffffffffffffffffffffffffffffff8116600090815260076020908152604080832033845290915290205460ff16155b15610760576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008381526006602090815260409182902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350610857565b33600081815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146108b2576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60106108be8282612ecc565b5050565b6003548111610d075760008181526008602052604090205473ffffffffffffffffffffffffffffffffffffffff84811691161461092b576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216610978576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff8416148015906109cf575073ffffffffffffffffffffffffffffffffffffffff8316600090815260076020908152604080832033845290915290205460ff16155b80156109ff575060008181526006602052604090205473ffffffffffffffffffffffffffffffffffffffff163314155b15610a36576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a3e611b73565b73ffffffffffffffffffffffffffffffffffffffff841660009081526004602052604081208054909190610a73908490613015565b90915550610a819050611b73565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260046020908152604080832080549096019095558582526008815284822080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811690941790556006815284822080549093169092559186168252600990529081208054610b1090600190613015565b81548110610b2057610b20613028565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff87168352600982526040808420868552600a90935290922054815492935083928110610b7157610b71613028565b600091825260208083209091019290925573ffffffffffffffffffffffffffffffffffffffff86168152600990915260409020805480610bb357610bb3613057565b6000828152602080822083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff908101839055909201909255838252600a81526040808320548484528184205573ffffffffffffffffffffffffffffffffffffffff8616808452600983529083208054600181810183558286529385200186905592529054610c429190613015565b6000838152600a6020526040808220929092559051839173ffffffffffffffffffffffffffffffffffffffff80871692908816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a48273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e031487610cf0611b73565b60405190815260200160405180910390a350505050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526005602090815260408083203384529091529020547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610d9b57610d698282613015565b73ffffffffffffffffffffffffffffffffffffffff851660009081526005602090815260408083203384529091529020555b610da6848484611ba5565b50505b505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610dff576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080547fffffffffffffffffffffffff000000000000000000000000000000000000000016815560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3565b610e5e8383836108c2565b73ffffffffffffffffffffffffffffffffffffffff82163b15801590610f5557506040517f150b7a020000000000000000000000000000000000000000000000000000000080825233600483015273ffffffffffffffffffffffffffffffffffffffff858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610f0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f309190613086565b7fffffffff000000000000000000000000000000000000000000000000000000001614155b15610da9576040517f3da6393100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005473ffffffffffffffffffffffffffffffffffffffff163314610fdd576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff919091166000908152600b6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60008181526008602052604090205473ffffffffffffffffffffffffffffffffffffffff168061108f576040517fc5723b5100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60006110a66040830160208401612a10565b73ffffffffffffffffffffffffffffffffffffffff160361114e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f43617079626172613a206d696e7465722063616e206e6f74206265207a65726f60448201527f206164647265737300000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b3361115f6040830160208401612a10565b73ffffffffffffffffffffffffffffffffffffffff16146111dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f43617079626172613a20696e76616c6964206d696e74657200000000000000006044820152606401611145565b333b15611245576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f43617079626172613a2063616c6c6572206d75737420626520454f41000000006044820152606401611145565b6112654261125960608401604085016130c8565b65ffffffffffff161090565b156112cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f43617079626172613a206f75746461746564206d696e740000000000000000006044820152606401611145565b611644600f5410611339576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f43617079626172613a206d696e74206c696d69742072656163686564000000006044820152606401611145565b61134960808201606083016130f0565b1561148d5733600090815260126020526040902054156113c5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f43617079626172613a20416c7265616479206d696e74656400000000000000006044820152606401611145565b336113d36020830183612a10565b73ffffffffffffffffffffffffffffffffffffffff161461148d57601260006113ff6020840184612a10565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020541561148d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f43617079626172613a20416c7265616479206d696e74656400000000000000006044820152606401611145565b600061149882611dc2565b90506114c581836114a7611e87565b600e5473ffffffffffffffffffffffffffffffffffffffff16611fbf565b61152b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43617079626172613a20696e76616c6964207369676e617475726500000000006044820152606401611145565b6000546115799073ffffffffffffffffffffffffffffffffffffffff16336115747f0000000000000000000000000000000000000000000000000000000000000012600a61322b565b611ba5565b50336000908152600960205260409020805461159790600190613015565b815481106115a7576115a7613028565b600091825260208083209091015433808452601283526040909320556115cf90840184612a10565b73ffffffffffffffffffffffffffffffffffffffff161461163257336000908152601260208181526040832054929061160a90860186612a10565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020555b600f80549060006116428361323a565b91905055505050565b60006060808280808361167f7f4361707962617261000000000000000000000000000000000000000000000008600c6120d2565b6116aa7f3100000000000000000000000000000000000000000000000000000000000001600d6120d2565b604080516000808252602082019092527f0f000000000000000000000000000000000000000000000000000000000000009b939a50919850469750309650945092509050565b6002805461062990612e2b565b33600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006117a1338484611ba5565b9392505050565b6117b38585856108c2565b73ffffffffffffffffffffffffffffffffffffffff84163b1580159061189857506040517f150b7a02000000000000000000000000000000000000000000000000000000008082529073ffffffffffffffffffffffffffffffffffffffff86169063150b7a02906118309033908a90899089908990600401613272565b6020604051808303816000875af115801561184f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118739190613086565b7fffffffff000000000000000000000000000000000000000000000000000000001614155b15610da6576040517f3da6393100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60606000601180546118e090612e2b565b9050111561191a5760116118f38361217d565b604051602001611904929190613382565b6040516020818303038152906040529050919050565b6119238261217d565b6010611944611934612710866133d6565b61193f9060016133ea565b61217d565b604051602001611904939291906133fd565b6011805461062990612e2b565b60005473ffffffffffffffffffffffffffffffffffffffff1633146119b4576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314611a4c576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60116108be8282612ecc565b6010805461062990612e2b565b60005473ffffffffffffffffffffffffffffffffffffffff163314611ab6576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116611b03576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b6000611ba07f0000000000000000000000000000000000000000000000000000000000000012600a61322b565b905090565b600080611bb0611b73565b73ffffffffffffffffffffffffffffffffffffffff8087166000818152600460205260408082208054948a1683529082205492825293945091929091869190611bf98386613015565b909155505073ffffffffffffffffffffffffffffffffffffffff808716600090815260046020908152604080832080548a019055928a168252600b9052205460ff16611caf5773ffffffffffffffffffffffffffffffffffffffff8716600090815260046020526040812054611c709085906134d6565b611c7a85856134d6565b611c849190613015565b905060005b81811015611cac57611c9a8961223b565b80611ca48161323a565b915050611c89565b50505b73ffffffffffffffffffffffffffffffffffffffff86166000908152600b602052604090205460ff16611d4e576000611ce884836134d6565b73ffffffffffffffffffffffffffffffffffffffff8816600090815260046020526040902054611d199086906134d6565b611d239190613015565b905060005b81811015611d4b57611d39886123f3565b80611d438161323a565b915050611d28565b50505b8573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e03148787604051611dad91815260200190565b60405180910390a35060019695505050505050565b60007f6664f71ab04fd2b50dbc4c3fd43e421c364e1d9a1ac0ffa166017f3aa3c529f6611df26020840184612a10565b611e026040850160208601612a10565b611e1260608601604087016130c8565b611e2260808701606088016130f0565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff9485169086015292909116606084015265ffffffffffff166080830152151560a082015260c001604051602081830303815290604052805190602001209050919050565b60003073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000007ce5a1d0d9a4d19fc71c3b3426c463907cdfd31716148015611eed57507f000000000000000000000000000000000000000000000000000000000000000146145b15611f1757507f4de47551c5a3cf6b774f210d4e20e3476d216083bed3ed7e7f23dce706298c6790565b611ba0604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f09bbb09152a1ddec402c41e15032be9bd2a3a245233af29d803794ca29653a9d918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b6040517f1901000000000000000000000000000000000000000000000000000000000000602082015260228101839052604281018590526000908190606201604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190528051602090910120905060006120838261204960808901896134ea565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061257c92505050565b905073ffffffffffffffffffffffffffffffffffffffff81166120ab576000925050506120ca565b73ffffffffffffffffffffffffffffffffffffffff8481169116149150505b949350505050565b606060ff83146120ec576120e5836125a0565b905061085b565b8180546120f890612e2b565b80601f016020809104026020016040519081016040528092919081815260200182805461212490612e2b565b80156121715780601f1061214657610100808354040283529160200191612171565b820191906000526020600020905b81548152906001019060200180831161215457829003601f168201915b5050505050905061085b565b6060600061218a836125df565b600101905060008167ffffffffffffffff8111156121aa576121aa612aef565b6040519080825280601f01601f1916602001820160405280156121d4576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85049450846121de57509392505050565b73ffffffffffffffffffffffffffffffffffffffff8116612288576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116600090815260096020526040812080546122bb90600190613015565b815481106122cb576122cb613028565b90600052602060002001549050600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548061232657612326613057565b6000828152602080822083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff908101839055909201909255828252600a815260408083208390556008825280832080547fffffffffffffffffffffffff0000000000000000000000000000000000000000908116909155600690925280832080549092169091555182919073ffffffffffffffffffffffffffffffffffffffff8516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b73ffffffffffffffffffffffffffffffffffffffff8116612440576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600380546001019081905560008181526008602052604090205473ffffffffffffffffffffffffffffffffffffffff16156124a7576040517f23369fa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081815260086020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87169081179091558084526009835290832080546001818101835582865293852001859055925290546125249190613015565b6000828152600a6020526040808220929092559051829173ffffffffffffffffffffffffffffffffffffffff8516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600080600061258b85856126c1565b9150915061259881612706565b509392505050565b606060006125ad836128bc565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612628577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310612654576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061267257662386f26fc10000830492506010015b6305f5e100831061268a576305f5e100830492506008015b612710831061269e57612710830492506004015b606483106126b0576064830492506002015b600a831061085b5760010192915050565b60008082516041036126f75760208301516040840151606085015160001a6126eb878285856128fd565b945094505050506126ff565b506000905060025b9250929050565b600081600481111561271a5761271a61354f565b036127225750565b60018160048111156127365761273661354f565b0361279d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401611145565b60028160048111156127b1576127b161354f565b03612818576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401611145565b600381600481111561282c5761282c61354f565b036128b9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401611145565b50565b600060ff8216601f81111561085b576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561293457506000905060036129e3565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612988573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81166129dc576000600192509250506129e3565b9150600090505b94509492505050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461108f57600080fd5b600060208284031215612a2257600080fd5b6117a1826129ec565b60005b83811015612a46578181015183820152602001612a2e565b50506000910152565b60008151808452612a67816020860160208601612a2b565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006117a16020830184612a4f565b600060208284031215612abe57600080fd5b5035919050565b60008060408385031215612ad857600080fd5b612ae1836129ec565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060208284031215612b3057600080fd5b813567ffffffffffffffff80821115612b4857600080fd5b818401915084601f830112612b5c57600080fd5b813581811115612b6e57612b6e612aef565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715612bb457612bb4612aef565b81604052828152876020848701011115612bcd57600080fd5b826020860160208301376000928101602001929092525095945050505050565b600080600060608486031215612c0257600080fd5b612c0b846129ec565b9250612c19602085016129ec565b9150604084013590509250925092565b8035801515811461108f57600080fd5b60008060408385031215612c4c57600080fd5b612c55836129ec565b9150612c6360208401612c29565b90509250929050565b600060208284031215612c7e57600080fd5b813567ffffffffffffffff811115612c9557600080fd5b820160a081850312156117a157600080fd5b7fff00000000000000000000000000000000000000000000000000000000000000881681526000602060e081840152612ce360e084018a612a4f565b8381036040850152612cf5818a612a4f565b6060850189905273ffffffffffffffffffffffffffffffffffffffff8816608086015260a0850187905284810360c0860152855180825283870192509083019060005b81811015612d5457835183529284019291840191600101612d38565b50909c9b505050505050505050505050565b600080600080600060808688031215612d7e57600080fd5b612d87866129ec565b9450612d95602087016129ec565b935060408601359250606086013567ffffffffffffffff80821115612db957600080fd5b818801915088601f830112612dcd57600080fd5b813581811115612ddc57600080fd5b896020828501011115612dee57600080fd5b9699959850939650602001949392505050565b60008060408385031215612e1457600080fd5b612e1d836129ec565b9150612c63602084016129ec565b600181811c90821680612e3f57607f821691505b602082108103612e78577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b601f821115610da957600081815260208120601f850160051c81016020861015612ea55750805b601f850160051c820191505b81811015612ec457828155600101612eb1565b505050505050565b815167ffffffffffffffff811115612ee657612ee6612aef565b612efa81612ef48454612e2b565b84612e7e565b602080601f831160018114612f4d5760008415612f175750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555612ec4565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b82811015612f9a57888601518255948401946001909101908401612f7b565b5085821015612fd657878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8181038181111561085b5761085b612fe6565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60006020828403121561309857600080fd5b81517fffffffff00000000000000000000000000000000000000000000000000000000811681146117a157600080fd5b6000602082840312156130da57600080fd5b813565ffffffffffff811681146117a157600080fd5b60006020828403121561310257600080fd5b6117a182612c29565b600181815b8085111561316457817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561314a5761314a612fe6565b8085161561315757918102915b93841c9390800290613110565b509250929050565b60008261317b5750600161085b565b816131885750600061085b565b816001811461319e57600281146131a8576131c4565b600191505061085b565b60ff8411156131b9576131b9612fe6565b50506001821b61085b565b5060208310610133831016604e8410600b84101617156131e7575081810a61085b565b6131f1838361310b565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561322357613223612fe6565b029392505050565b60006117a160ff84168361316c565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361326b5761326b612fe6565b5060010190565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525084604083015260806060830152826080830152828460a0840137600060a0848401015260a07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f85011683010190509695505050505050565b600081546132fe81612e2b565b60018281168015613316576001811461334957613378565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0084168752821515830287019450613378565b8560005260208060002060005b8581101561336f5781548a820152908401908201613356565b50505082870194505b5050505092915050565b600061338e82856132f1565b835161339e818360208801612a2b565b01949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826133e5576133e56133a7565b500690565b8082018082111561085b5761085b612fe6565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c000000000081527f7b226e616d65223a202243415059424152412043524557202300000000000000601b8201526000845161345b816034850160208901612a2b565b7f222c22696d616765223a22000000000000000000000000000000000000000000603491840191820152613492603f8201866132f1565b905083516134a4818360208801612a2b565b7f2e706e67227d0000000000000000000000000000000000000000000000000000910190815260060195945050505050565b6000826134e5576134e56133a7565b500490565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261351f57600080fd5b83018035915067ffffffffffffffff82111561353a57600080fd5b6020019150368190038213156126ff57600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea2646970667358221220c6d682cf8867468aaf6d299560f7337db3aa92082c66d49f404d24c7191be3fc64736f6c63430008130033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000351aba1c45254dec71f7681decd283b9b1c1a5f0000000000000000000000000afe7ef08a99d0dec704d404d874021e666269d47

-----Decoded View---------------
Arg [0] : _owner (address): 0x351AbA1c45254deC71F7681dEcD283B9b1c1A5f0
Arg [1] : _verifySigner (address): 0xAfE7Ef08A99D0Dec704d404d874021E666269d47

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000351aba1c45254dec71f7681decd283b9b1c1a5f0
Arg [1] : 000000000000000000000000afe7ef08a99d0dec704d404d874021e666269d47


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.