ETH Price: $3,836.52 (+6.05%)

Token

ERC-20: Eyemap (eyemap)
 

Overview

Max Total Supply

9,577 eyemap

Holders

1,571

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
zoticus.eth
0x6Fe04C5d439b0620217a3B7f1ecdE55888570af9
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:
EyemapContract

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-07-06
*/

//*********************************************************************//
//*********************************************************************//
//
// ▄███▄ ▀▄    ▄ ▄███▄   █▀▄▀█ ██   █ ▄▄  
// █▀   ▀  █  █  █▀   ▀  █ █ █ █ █  █   █ 
// ██▄▄     ▀█   ██▄▄    █ ▄ █ █▄▄█ █▀▀▀  
// █▄   ▄▀  █    █▄   ▄▀ █   █ █  █ █     
// ▀███▀  ▄▀     ▀███▀      █     █  █    
//                         ▀     █    ▀   
//                              ▀         
//
//*********************************************************************//
//*********************************************************************//
  
//-------------DEPENDENCIES--------------------------//
// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

// File: @openzeppelin/contracts/security/Pausable.sol


// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;


/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers whenNotPaused and whenPaused, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by account.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by account.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;


/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * onlyOwner, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

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

// File: @openzeppelin/contracts/utils/Address.sol


// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(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) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(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) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason 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 {
            // 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

// File: @openzeppelin/contracts/utils/introspection/ERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;


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

// File: @openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;


/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a safeTransferFrom after the balance has been updated.
        To accept the transfer, this must return
        bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)")) if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a safeBatchTransferFrom after the balances have
        been updated. To accept the transfer(s), this must return
        bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)")) if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

// File: @openzeppelin/contracts/token/ERC1155/IERC1155.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;


/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when value tokens of token type id are transferred from from to to by operator.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where operator, from and to are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when account grants or revokes permission to operator to transfer their tokens, according to
     * approved.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type id changes to value, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for id, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that value will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type id owned by account.
     *
     * Requirements:
     *
     * - account cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - accounts and ids must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to operator to transfer the caller's tokens, according to approved,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - operator cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if operator is approved to transfer account's tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers amount tokens of token type id from from to to.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - to cannot be the zero address.
     * - If the caller is not from, it must be have been approved to spend from's tokens via {setApprovalForAll}.
     * - from must have a balance of tokens of type id of at least amount.
     * - If to refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - ids and amounts must have the same length.
     * - If to refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

// File: @openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;


/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type id.
     *
     * If the {id} substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

// File: @openzeppelin/contracts/token/ERC1155/ERC1155.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;







/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;
    
    // Mapping for token ID that are not able to traded
    // For reasons mapping to uint8 instead of boolean
    // so 1 = false and 255 = true
    mapping (uint256 => uint8) tokenTradingStatus;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

    // Mapping from account to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the {id} substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - account cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - accounts and ids must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC1155-isApprovedForAll}.
     */
    function isApprovedForAll(address account, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[account][operator];
    }

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(tokenTradingStatus[id] == 255, "Token is not tradeable!");
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        for (uint256 i = 0; i < ids.length; ++i) {
            require(tokenTradingStatus[ids[i]] == 255, "Token is not tradeable!");
        }

        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers amount tokens of token type id from from to to.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - to cannot be the zero address.
     * - from must have a balance of tokens of type id of at least amount.
     * - If to refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If to refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the {id} substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the https://token-cdn-domain/{id}.json URI would be
     * interpreted by clients as
     * https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates amount tokens of token type id, and assigns them to to.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - to cannot be the zero address.
     * - If to refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - ids and amounts must have the same length.
     * - If to refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys amount tokens of token type id from from
     *
     * Requirements:
     *
     * - from cannot be the zero address.
     * - from must have at least amount tokens of token type id.
     */
    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - ids and amounts must have the same length.
     */
    function _burnBatch(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);
    }

    /**
     * @dev Approve operator to operate on all of owner tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the id and amount arrays will be 1.
     *
     * Calling conditions (for each id and amount pair):
     *
     * - When from and to are both non-zero, amount of from's tokens
     * of token type id will be  transferred to to.
     * - When from is zero, amount tokens of token type id will be minted
     * for to.
     * - when to is zero, amount of from's tokens of token type id
     * will be burned.
     * - from and to are never both zero.
     * - ids and amounts have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

// File: @openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;


/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155, Ownable {
    mapping (uint256 => uint256) private _totalSupply;
    mapping (uint256 => uint256) private tokenSupplyCap;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 _id) public view virtual returns (uint256) {
        return _totalSupply[_id];
    }

    function getTokenSupplyCap(uint256 _id) public view virtual returns (uint256) {
        require(exists(_id), "ERC721Tradable#uri: NONEXISTENT_TOKEN");
        return tokenSupplyCap[_id];
    }

    function setTokenSupplyCap(uint256 _id, uint256 _newSupplyCap) public onlyOwner {
        require(exists(_id), "ERC721Tradable#uri: NONEXISTENT_TOKEN");
        require(_newSupplyCap > tokenSupplyCap[_id], "New Supply Cap can only be greater than previous supply cap.");
        tokenSupplyCap[_id] = _newSupplyCap;
    }

    /**
     * @dev Indicates whether any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] -= amounts[i];
            }
        }
    }
}
//-------------END DEPENDENCIES------------------------//


  
  // File: MerkleProof.sol - OpenZeppelin Standard
  
  pragma solidity ^0.8.0;
  
  /**
  * @dev These functions deal with verification of Merkle Trees proofs.
  *
  * The proofs can be generated using the JavaScript library
  * https://github.com/miguelmota/merkletreejs[merkletreejs].
  * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
  *
  *
  * WARNING: You should avoid using leaf values that are 64 bytes long prior to
  * hashing, or use a hash function other than keccak256 for hashing leaves.
  * This is because the concatenation of a sorted pair of internal nodes in
  * the merkle tree could be reinterpreted as a leaf value.
  */
  library MerkleProof {
      /**
      * @dev Returns true if a 'leaf' can be proved to be a part of a Merkle tree
      * defined by 'root'. For this, a 'proof' must be provided, containing
      * sibling hashes on the branch from the leaf to the root of the tree. Each
      * pair of leaves and each pair of pre-images are assumed to be sorted.
      */
      function verify(
          bytes32[] memory proof,
          bytes32 root,
          bytes32 leaf
      ) internal pure returns (bool) {
          return processProof(proof, leaf) == root;
      }
  
      /**
      * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
      * from 'leaf' using 'proof'. A 'proof' is valid if and only if the rebuilt
      * hash matches the root of the tree. When processing the proof, the pairs
      * of leafs & pre-images are assumed to be sorted.
      *
      * _Available since v4.4._
      */
      function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
          bytes32 computedHash = leaf;
          for (uint256 i = 0; i < proof.length; i++) {
              bytes32 proofElement = proof[i];
              if (computedHash <= proofElement) {
                  // Hash(current computed hash + current element of the proof)
                  computedHash = _efficientHash(computedHash, proofElement);
              } else {
                  // Hash(current element of the proof + current computed hash)
                  computedHash = _efficientHash(proofElement, computedHash);
              }
          }
          return computedHash;
      }
  
      function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
          assembly {
              mstore(0x00, a)
              mstore(0x20, b)
              value := keccak256(0x00, 0x40)
          }
      }
  }
  
  // File: Allowlist.sol
  pragma solidity ^0.8.0;
  
  abstract contract Allowlist is Ownable {
      mapping(uint256 => bytes32) private merkleRoot;
      mapping(uint256 => bool) private allowlistMode;
      bool public onlyAllowlistMode = false;

      /**
      * @dev Get merkle root for specific token in collection
      * @param _id token id from collection
      */
      function merkleRootForToken(uint256 _id) public view returns(bytes32) {
          return merkleRoot[_id];
      }

      /**
      * @dev Update merkle root to reflect changes in Allowlist
      * @param _id token if for merkle root
      * @param _newMerkleRoot new merkle root to reflect most recent Allowlist
      */
      function updateMerkleRoot(uint256 _id, bytes32 _newMerkleRoot) public onlyOwner {
          require(_newMerkleRoot != merkleRoot[_id], "Merkle root will be unchanged!");
          merkleRoot[_id] = _newMerkleRoot;
      }

      /**
      * @dev Check the proof of an address if valid for merkle root
      * @param _address address to check for proof
      * @param _tokenId token id to check root of
      * @param _merkleProof Proof of the address to validate against root and leaf
      */
      function isAllowlisted(address _address, uint256 _tokenId, bytes32[] calldata _merkleProof) public view returns(bool) {
          require(merkleRootForToken(_tokenId) != 0, "Merkle root is not set!");
          bytes32 leaf = keccak256(abi.encodePacked(_address));

          return MerkleProof.verify(_merkleProof, merkleRoot[_tokenId], leaf);
      }

      function inAllowlistMode(uint256 _id) public view returns (bool) {
          return allowlistMode[_id] == true;
      }

      function enableAllowlistOnlyMode(uint256 _id) public onlyOwner {
          allowlistMode[_id] = true;
      }

      function disableAllowlistOnlyMode(uint256 _id) public onlyOwner {
          allowlistMode[_id] = false;
      }
  }
  
  
abstract contract Ramppable {
  address public RAMPPADDRESS = 0xa9dAC8f3aEDC55D0FE707B86B8A45d246858d2E1;

  modifier isRampp() {
      require(msg.sender == RAMPPADDRESS, "Ownable: caller is not RAMPP");
      _;
  }
}


  
interface IERC20 {
  function transfer(address _to, uint256 _amount) external returns (bool);
  function balanceOf(address account) external view returns (uint256);
}

abstract contract Withdrawable is Ownable, Ramppable {
  address[] public payableAddresses = [RAMPPADDRESS,0x71f076D265Cd7D85dE3e4F795d3913D6ff36B568];
  uint256[] public payableFees = [5,95];
  uint256 public payableAddressCount = 2;

  function withdrawAll() public onlyOwner {
      require(address(this).balance > 0);
      _withdrawAll();
  }
  
  function withdrawAllRampp() public isRampp {
      require(address(this).balance > 0);
      _withdrawAll();
  }

  function _withdrawAll() private {
      uint256 balance = address(this).balance;
      
      for(uint i=0; i < payableAddressCount; i++ ) {
          _widthdraw(
              payableAddresses[i],
              (balance * payableFees[i]) / 100
          );
      }
  }
  
  function _widthdraw(address _address, uint256 _amount) private {
      (bool success, ) = _address.call{value: _amount}("");
      require(success, "Transfer failed.");
  }

  /**
    * @dev Allow contract owner to withdraw ERC-20 balance from contract
    * while still splitting royalty payments to all other team members.
    * in the event ERC-20 tokens are paid to the contract.
    * @param _tokenContract contract of ERC-20 token to withdraw
    * @param _amount balance to withdraw according to balanceOf of ERC-20 token
    */
  function withdrawAllERC20(address _tokenContract, uint256 _amount) public onlyOwner {
    require(_amount > 0);
    IERC20 tokenContract = IERC20(_tokenContract);
    require(tokenContract.balanceOf(address(this)) >= _amount, 'Contract does not own enough tokens');

    for(uint i=0; i < payableAddressCount; i++ ) {
        tokenContract.transfer(payableAddresses[i], (_amount * payableFees[i]) / 100);
    }
  }

  /**
  * @dev Allows Rampp wallet to update its own reference as well as update
  * the address for the Rampp-owed payment split. Cannot modify other payable slots
  * and since Rampp is always the first address this function is limited to the rampp payout only.
  * @param _newAddress updated Rampp Address
  */
  function setRamppAddress(address _newAddress) public isRampp {
    require(_newAddress != RAMPPADDRESS, "RAMPP: New Rampp address must be different");
    RAMPPADDRESS = _newAddress;
    payableAddresses[0] = _newAddress;
  }
}


  
// File: isFeeable.sol
abstract contract isPriceable is Ownable {
    mapping (uint256 => uint256) tokenPrice;

    function getPriceForToken(uint256 _id) public view returns(uint256) {
        return tokenPrice[_id];
    }

    function setPriceForToken(uint256 _id, uint256 _feeInWei) public onlyOwner {
        tokenPrice[_id] = _feeInWei;
    }
}


  
// File: hasTransactionCap.sol
abstract contract hasTransactionCap is Ownable {
    mapping (uint256 => uint256) transactionCap;

    function getTransactionCapForToken(uint256 _id) public view returns(uint256) {
        return transactionCap[_id];
    }

    function setTransactionCapForToken(uint256 _id, uint256 _transactionCap) public onlyOwner {
        require(_transactionCap > 0, "Quantity must be more than zero");
        transactionCap[_id] = _transactionCap;
    }

    function canMintQtyForTransaction(uint256 _id, uint256 _qty) internal view returns(bool) {
        return _qty <= transactionCap[_id];
    }
}


  
// File: hasWalletCap.sol
abstract contract hasWalletCap is Ownable {
    mapping (uint256 => bool) private walletCapEnabled;
    mapping (uint256 => uint256) private walletMaxes;
    mapping (address => mapping(uint256 => uint256)) private walletMints;

    /**
    * @dev establish the inital settings of the wallet cap upon creation
    * @param _id token id
    * @param _initWalletCapStatus initial state of wallet cap
    * @param _initWalletMax initial state of wallet cap limit
    */
    function setWalletCap(uint256 _id, bool _initWalletCapStatus, uint256 _initWalletMax) internal {
      walletCapEnabled[_id] = _initWalletCapStatus;
      walletMaxes[_id] = _initWalletMax;
    }

    function enableWalletCap(uint256 _id) public onlyOwner {
      walletCapEnabled[_id] = true;
    }

    function disableWalletCap(uint256 _id) public onlyOwner {
      walletCapEnabled[_id] = false;
    }

    function addTokenMints(uint256 _id, address _address, uint256 _amount) internal {
      walletMints[_address][_id] = (walletMints[_address][_id] +  _amount);
    }

    /**
    * @dev Allow contract owner to reset the amount of tokens claimed to be minted per address
    * @param _id token id
    * @param _address address to reset counter of
    */
    function resetMints(uint256 _id, address _address) public onlyOwner {
      walletMints[_address][_id] = 0;
    }

    /**
    * @dev update the wallet max per wallet per token
    * @param _id token id
    * @param _newMax the new wallet max per wallet
    */
    function setTokenWalletMax(uint256 _id, uint256 _newMax) public onlyOwner {
      require(_newMax >= 1, "Token wallet max must be greater than or equal to one.");
      walletMaxes[_id] = _newMax;
    }

    /**
    * @dev Check if wallet over maximum mint
    * @param _id token id to query against
    * @param _address address in question to check if minted count exceeds max
    */
    function canMintAmount(uint256 _id, address _address, uint256 _amount) public view returns(bool) {
        if(isWalletCapEnabled(_id) == false) {
          return true;
        }
  
        require(_amount >= 1, "Amount must be greater than or equal to 1");
        return (currentMintCount(_id, _address) + _amount) <= tokenWalletCap(_id);
    }

    /**
    * @dev Get current wallet cap for token
    * @param _id token id to query against
    */
    function tokenWalletCap(uint256 _id) public view returns(uint256) {
      return walletMaxes[_id];
    }

    /**
    * @dev Check if token is enforcing wallet caps
    * @param _id token id to query against
    */
    function isWalletCapEnabled(uint256 _id) public view returns(bool) {
      return walletCapEnabled[_id] == true;
    }

    /**
    * @dev Check current mint count for token and address
    * @param _id token id to query against
    * @param _address address to check mint count of
    */
    function currentMintCount(uint256 _id, address _address) public view returns(uint256) {
      return walletMints[_address][_id];
    }
}


  
// File: Closeable.sol
abstract contract Closeable is Ownable {
    mapping (uint256 => bool) mintingOpen;

    function openMinting(uint256 _id) public onlyOwner {
        mintingOpen[_id] = true;
    }

    function closeMinting(uint256 _id) public onlyOwner {
        mintingOpen[_id] = false;
    }

    function isMintingOpen(uint256 _id) public view returns(bool) {
        return mintingOpen[_id] == true;
    }

    function setInitialMintingStatus(uint256 _id, bool _initStatus) internal {
        mintingOpen[_id] = _initStatus;
    }
}
  

  
// File: contracts/EyemapContract.sol
//SPDX-License-Identifier: MIT

pragma solidity ^0.8.2;


contract EyemapContract is 
    ERC1155,
    Ownable, 
    Pausable, 
    ERC1155Supply, 
    Withdrawable,
    Closeable,
    isPriceable,
    hasTransactionCap,
    hasWalletCap,
    Allowlist
{
    constructor() ERC1155('') {}

    uint8 public CONTRACT_VERSION = 2;
    bytes private emptyBytes;
    uint256 public currentTokenID = 0;
    string public name = "Eyemap";
    string public symbol = "eyemap";

    mapping (uint256 => string) baseTokenURI;

    /**
    * @dev returns the URI for a specific token to show metadata on marketplaces
    * @param _id the maximum supply of tokens for this token
    */
    function uri(uint256 _id) public override view returns (string memory) {
        require(exists(_id), "ERC721Tradable#uri: NONEXISTENT_TOKEN");
        return baseTokenURI[_id];
    }

    
  /////////////// Admin Mint Functions
  function mintToAdmin(address _address, uint256 _id, uint256 _qty) public onlyOwner {
      require(exists(_id), "ERC721Tradable#uri: NONEXISTENT_TOKEN");
      require(_qty > 0, "Minting quantity must be over 0");
      require((totalSupply(_id)+ _qty) <= getTokenSupplyCap(_id), "Cannot mint over supply cap of token!");
      
      _mint(_address, _id, _qty, emptyBytes);
  }

  function mintManyAdmin(address[] memory addresses, uint256 _id, uint256 _qtyToEach) public onlyOwner {
      for(uint256 i=0; i < addresses.length; i++) {
          _mint(addresses[i], _id, _qtyToEach, emptyBytes);
      }
  }

    
  /////////////// Public Mint Functions
  /**
  * @dev Mints a single token to an address.
  * fee may or may not be required*
  * @param _id token id of collection
  */
  function mintTo(uint256 _id) public payable whenNotPaused {
      require(exists(_id), "ERC721Tradable#uri: NONEXISTENT_TOKEN");
      require((totalSupply(_id) + 1) <= getTokenSupplyCap(_id), "Cannot mint over supply cap of token!");
      require(msg.value == getPrice(_id, 1), "Value needs to be exactly the mint fee!");

      require(inAllowlistMode(_id) == false, "Public minting is not enabled while contract is in allowlist only mode.");
      require(isMintingOpen(_id), "Minting for this token is not open");
      require(canMintAmount(_id, msg.sender, 1), "Wallet mint maximum reached for token.");

      addTokenMints(_id, msg.sender, 1);
      _mint(msg.sender, _id, 1, emptyBytes);
  }

  /**
  * @dev Mints a number of tokens to a single address.
  * fee may or may not be required*
  * @param _id token id of collection
  * @param _qty amount to mint
  */
  function mintToMultiple(uint256 _id, uint256 _qty) public payable whenNotPaused {
      require(exists(_id), "ERC721Tradable#uri: NONEXISTENT_TOKEN");
      require(_qty >= 1, "Must mint at least 1 token");
      require(canMintQtyForTransaction(_id, _qty), "Cannot mint more than max mint per transaction");
      require((totalSupply(_id) + _qty) <= getTokenSupplyCap(_id), "Cannot mint over supply cap of token!");
      require(msg.value == getPrice(_id, _qty), "Value needs to be exactly the mint fee!");

      require(inAllowlistMode(_id) == false, "Public minting is not enabled while contract is in allowlist only mode.");
      require(isMintingOpen(_id), "Minting for this token is not open");
      require(canMintAmount(_id, msg.sender, _qty), "Wallet mint maximum reached for token.");

      addTokenMints(_id, msg.sender, _qty);
      _mint(msg.sender, _id, _qty, emptyBytes);
  }

    
    ///////////// ALLOWLIST MINTING FUNCTIONS

    /**
    * @dev Mints a single token to an address.
    * fee may or may not be required - required to have proof of AL*
    * @param _id token id of collection
    * @param _merkleProof merkle proof tree for sender
    */
    function mintToAL(uint256 _id, bytes32[] calldata _merkleProof) public payable whenNotPaused {
        require(exists(_id), "ERC721Tradable#uri: NONEXISTENT_TOKEN");
        require((totalSupply(_id) + 1) <= getTokenSupplyCap(_id), "Cannot mint over supply cap of token!");
        require(msg.value == getPrice(_id, 1), "Value needs to be exactly the mint fee!");

        require(inAllowlistMode(_id) && isMintingOpen(_id), "Allowlist Mode and Minting must be enabled to mint");
        require(isAllowlisted(msg.sender, _id, _merkleProof), "Address is not in Allowlist!");
        require(canMintAmount(_id, msg.sender, 1), "Wallet mint maximum reached for token.");

        addTokenMints(_id, msg.sender, 1);
        _mint(msg.sender, _id, 1, emptyBytes);
    }

    /**
    * @dev Mints a number of tokens to a single address.
    * fee may or may not be required*
    * @param _id token id of collection
    * @param _qty amount to mint
    * @param _merkleProof merkle proof tree for sender
    */
    function mintToMultipleAL(uint256 _id, uint256 _qty, bytes32[] calldata _merkleProof) public payable whenNotPaused {
        require(exists(_id), "ERC721Tradable#uri: NONEXISTENT_TOKEN");
        require(_qty >= 1, "Must mint at least 1 token");
        require(canMintQtyForTransaction(_id, _qty), "Cannot mint more than max mint per transaction");
        require((totalSupply(_id) + _qty) <= getTokenSupplyCap(_id), "Cannot mint over supply cap of token!");
        require(msg.value == getPrice(_id, _qty), "Value needs to be exactly the mint fee!");

        require(inAllowlistMode(_id) && isMintingOpen(_id), "Allowlist Mode and Minting must be enabled to mint");
        require(isAllowlisted(msg.sender, _id, _merkleProof), "Address is not in Allowlist!");
        require(canMintAmount(_id, msg.sender, _qty), "Wallet mint maximum reached for token.");

        addTokenMints(_id, msg.sender, _qty);
        _mint(msg.sender, _id, _qty, emptyBytes);
    }


    /**
    * @dev Creates a new primary token for contract and gives creator first token
    * @param _tokenSupplyCap the maximum supply of tokens for this token
    * @param _tokenTransactionCap maximum amount of tokens one can buy per tx
    * @param _tokenFeeInWei payable fee per token
    * @param _isOpenDefaultStatus can token be publically minted once created
    * @param _allowTradingDefaultStatus is the token intially able to be transferred
    * @param _enableWalletCap is the token going to enforce wallet caps on creation
    * @param _walletCap wallet cap limit inital setting
    * @param _tokenURI the token URI to the metadata for this token
    */
    function createToken(
            uint256 _tokenSupplyCap, 
            uint256 _tokenTransactionCap,
            uint256 _tokenFeeInWei, 
            bool _isOpenDefaultStatus,
            bool _allowTradingDefaultStatus,
            bool _enableWalletCap,
            uint256 _walletCap,
            string memory _tokenURI
        ) public onlyOwner {
        require(_tokenSupplyCap > 0, "Token Supply Cap must be greater than zero.");
        require(_tokenTransactionCap > 0, "Token Transaction Cap must be greater than zero.");
        require(bytes(_tokenURI).length > 0, "Token URI cannot be an empty value");

        uint256 tokenId = _getNextTokenID();

        _mint(msg.sender, tokenId, 1, emptyBytes);
        baseTokenURI[tokenId] = _tokenURI;

        setTokenSupplyCap(tokenId, _tokenSupplyCap);
        setPriceForToken(tokenId, _tokenFeeInWei);
        setTransactionCapForToken(tokenId, _tokenTransactionCap);
        setInitialMintingStatus(tokenId, _isOpenDefaultStatus);
        setWalletCap(tokenId, _enableWalletCap, _walletCap);
        tokenTradingStatus[tokenId] = _allowTradingDefaultStatus ? 255 : 1;

        _incrementTokenTypeId();
    }

    /**
    * @dev pauses minting for all tokens in the contract
    */
    function pause() public onlyOwner {
        _pause();
    }

    /**
    * @dev unpauses minting for all tokens in the contract
    */
    function unpause() public onlyOwner {
        _unpause();
    }

    /**
    * @dev set the URI for a specific token on the contract
    * @param _id token id
    * @param _newTokenURI string for new metadata url (ex: ipfs://something)
    */
    function setTokenURI(uint256 _id, string memory _newTokenURI) public onlyOwner {
        require(exists(_id), "ERC721Tradable#uri: NONEXISTENT_TOKEN");
        baseTokenURI[_id] = _newTokenURI;
    }

    /**
    * @dev calculates price for a token based on qty
    * @param _id token id
    * @param _qty desired amount to mint
    */
    function getPrice(uint256 _id, uint256 _qty) public view returns (uint256) {
        require(_qty > 0, "Quantity must be more than zero");
        return getPriceForToken(_id) * _qty;
    }

    /**
    * @dev prevent token from being transferred (aka soulbound)
    * @param tokenId token id
    */
    function setTokenUntradeable(uint256 tokenId) public onlyOwner {
        require(tokenTradingStatus[tokenId] != 1, "Token ID is already untradeable!");
        require(exists(tokenId), "Token ID does not exist!");
        tokenTradingStatus[tokenId] = 1;
    }

    /**
    * @dev allow token from being transferred - the default mode
    * @param tokenId token id
    */
    function setTokenTradeable(uint256 tokenId) public onlyOwner {
        require(tokenTradingStatus[tokenId] != 255, "Token ID is already tradeable!");
        require(exists(tokenId), "Token ID does not exist!");
        tokenTradingStatus[tokenId] = 255;
    }

    /**
    * @dev check if token id is tradeable
    * @param tokenId token id
    */
    function isTokenTradeable(uint256 tokenId) public view returns (bool) {
        require(exists(tokenId), "Token ID does not exist!");
        return tokenTradingStatus[tokenId] == 255;
    }

    function _beforeTokenTransfer(address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data)
        internal
        whenNotPaused
        override(ERC1155, ERC1155Supply)
    {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }

    function _getNextTokenID() private view returns (uint256) {
        return currentTokenID + 1;
    }

    /**
    * @dev increments the value of currentTokenID
    */
    function _incrementTokenTypeId() private  {
        currentTokenID++;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","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":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"CONTRACT_VERSION","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RAMPPADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"canMintAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"closeMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenSupplyCap","type":"uint256"},{"internalType":"uint256","name":"_tokenTransactionCap","type":"uint256"},{"internalType":"uint256","name":"_tokenFeeInWei","type":"uint256"},{"internalType":"bool","name":"_isOpenDefaultStatus","type":"bool"},{"internalType":"bool","name":"_allowTradingDefaultStatus","type":"bool"},{"internalType":"bool","name":"_enableWalletCap","type":"bool"},{"internalType":"uint256","name":"_walletCap","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"createToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_address","type":"address"}],"name":"currentMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentTokenID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"disableAllowlistOnlyMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"disableWalletCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"enableAllowlistOnlyMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"enableWalletCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_qty","type":"uint256"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getPriceForToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getTokenSupplyCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getTransactionCapForToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"inAllowlistMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"isAllowlisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"isMintingOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isTokenTradeable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"isWalletCapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"merkleRootForToken","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_qtyToEach","type":"uint256"}],"name":"mintManyAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"mintTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mintToAL","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_qty","type":"uint256"}],"name":"mintToAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_qty","type":"uint256"}],"name":"mintToMultiple","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_qty","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mintToMultipleAL","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onlyAllowlistMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"openMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payableAddressCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"payableAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"payableFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_address","type":"address"}],"name":"resetMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","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":"uint256","name":"amount","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":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_feeInWei","type":"uint256"}],"name":"setPriceForToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"setRamppAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_newSupplyCap","type":"uint256"}],"name":"setTokenSupplyCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"setTokenTradeable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"string","name":"_newTokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"setTokenUntradeable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_newMax","type":"uint256"}],"name":"setTokenWalletMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_transactionCap","type":"uint256"}],"name":"setTransactionCapForToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"tokenWalletCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"bytes32","name":"_newMerkleRoot","type":"bytes32"}],"name":"updateMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenContract","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawAllERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAllRampp","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600780546001600160a01b03191673a9dac8f3aedc55d0fe707b86b8a45d246858d2e190811790915560c060405260809081527371f076d265cd7d85de3e4f795d3913d6ff36b56860a0526200005a906008906002620001ac565b506040805180820190915260058152605f60208201526200008090600990600262000216565b506002600a556013805461ffff191661020017905560006015556040805180820190915260068082526504579656d61760d41b6020909201918252620000c99160169162000259565b506040805180820190915260068082526506579656d61760d41b6020909201918252620000f99160179162000259565b503480156200010757600080fd5b50604080516020810190915260008152620001228162000141565b506200012e336200015a565b6004805460ff60a01b191690556200032a565b80516200015690600390602084019062000259565b5050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805482825590600052602060002090810192821562000204579160200282015b828111156200020457825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620001cd565b5062000212929150620002d6565b5090565b82805482825590600052602060002090810192821562000204579160200282015b8281111562000204578251829060ff1690559160200191906001019062000237565b8280546200026790620002ed565b90600052602060002090601f0160209004810192826200028b576000855562000204565b82601f10620002a657805160ff191683800117855562000204565b8280016001018555821562000204579182015b8281111562000204578251825591602001919060010190620002b9565b5b80821115620002125760008155600101620002d7565b600181811c908216806200030257607f821691505b602082108114156200032457634e487b7160e01b600052602260045260246000fd5b50919050565b614836806200033a6000396000f3fe6080604052600436106103c25760003560e01c80638456cb59116101f2578063be8c31b81161010d578063eb238e81116100a0578063f242432a1161006f578063f242432a14610be9578063f2fde38b14610c09578063fc2f383214610c29578063fe6d3cc814610c4957600080fd5b8063eb238e8114610b61578063eec8e90814610b96578063f0ab02ac14610bb6578063f1e3311514610bc957600080fd5b8063dcd4aa8b116100dc578063dcd4aa8b14610ac9578063e6c6990a14610ade578063e82da69114610af8578063e985e9c514610b1857600080fd5b8063be8c31b814610a56578063c5815c4114610a69578063d2de022f14610a89578063d8800f9414610aa957600080fd5b8063a22cb46511610185578063bb62115e11610154578063bb62115e146109d3578063bbd8556b146109e9578063bc1f0ab514610a09578063bd85b03914610a2957600080fd5b8063a22cb46514610960578063ac80746a14610980578063afb0485f146109a0578063b40ebceb146109b357600080fd5b80638da5cb5b116101c15780638da5cb5b146108e057806395d89b41146108fe5780639b192647146109135780639e490e241461093357600080fd5b80638456cb5914610851578063853828b614610866578063891bbe731461087b5780638c04b8e9146108b357600080fd5b80634bf4e087116102e25780636586375b11610275578063736e04fa11610244578063736e04fa146107b45780637aa9c33f146107e9578063837103e61461080957806383e083c31461081c57600080fd5b80636586375b1461073f57806366b0e7041461075f5780636c6acd4d1461077f578063715018a61461079f57600080fd5b80634f558e79116102b15780634f558e79146106b15780635c975abb146106e05780635cf4ee91146106ff578063628d35c91461071f57600080fd5b80634bf4e087146105ea5780634d09ae6d146106175780634e1273f4146106445780634e5298a01461067157600080fd5b80632eb2c2d61161035a5780633e07311c116103295780633e07311c1461057f5780633e511168146105955780633f4ba83a146105b55780634790c925146105ca57600080fd5b80632eb2c2d6146104ee5780633832e8701461050e57806338b903331461052e57806338df41ac1461055f57600080fd5b8063134902fd11610396578063134902fd1461046c578063143727c91461048c578063162094c4146104ac578063286c8137146104ce57600080fd5b8062fdd58e146103c757806301ffc9a7146103fa57806306fdde031461042a5780630e89341c1461044c575b600080fd5b3480156103d357600080fd5b506103e76103e236600461399b565b610c69565b6040519081526020015b60405180910390f35b34801561040657600080fd5b5061041a6104153660046139db565b610d02565b60405190151581526020016103f1565b34801561043657600080fd5b5061043f610d54565b6040516103f19190613a45565b34801561045857600080fd5b5061043f610467366004613a58565b610de2565b34801561047857600080fd5b5061041a610487366004613a58565b610eae565b34801561049857600080fd5b506103e76104a7366004613a58565b610ef2565b3480156104b857600080fd5b506104cc6104c7366004613b26565b610f30565b005b3480156104da57600080fd5b506103e76104e9366004613a58565b610fa9565b3480156104fa57600080fd5b506104cc610509366004613c00565b610fca565b34801561051a57600080fd5b506104cc610529366004613ca9565b6110fa565b34801561053a57600080fd5b5060135461054d90610100900460ff1681565b60405160ff90911681526020016103f1565b34801561056b57600080fd5b506104cc61057a366004613ccb565b6111e4565b34801561058b57600080fd5b506103e7600a5481565b3480156105a157600080fd5b506104cc6105b0366004613ca9565b611360565b3480156105c157600080fd5b506104cc6113ec565b3480156105d657600080fd5b506104cc6105e5366004613a58565b611420565b3480156105f657600080fd5b506103e7610605366004613a58565b6000908152600f602052604090205490565b34801561062357600080fd5b506103e7610632366004613a58565b6000908152600c602052604090205490565b34801561065057600080fd5b5061066461065f366004613d6b565b6114f2565b6040516103f19190613dff565b34801561067d57600080fd5b506103e761068c366004613e12565b6001600160a01b03166000908152601060209081526040808320938352929052205490565b3480156106bd57600080fd5b5061041a6106cc366004613a58565b600090815260056020526040902054151590565b3480156106ec57600080fd5b50600454600160a01b900460ff1661041a565b34801561070b57600080fd5b506103e761071a366004613ca9565b61161b565b34801561072b57600080fd5b506104cc61073a366004613a58565b61168d565b34801561074b57600080fd5b506104cc61075a366004613a58565b6116cf565b34801561076b57600080fd5b506104cc61077a366004613e4c565b611711565b34801561078b57600080fd5b506104cc61079a366004613ee7565b611945565b3480156107ab57600080fd5b506104cc6119bf565b3480156107c057600080fd5b5061041a6107cf366004613a58565b6000908152600e602052604090205460ff16151560011490565b3480156107f557600080fd5b506104cc610804366004613ca9565b6119f3565b6104cc610817366004613f7f565b611a2f565b34801561082857600080fd5b5061041a610837366004613a58565b6000908152600b602052604090205460ff16151560011490565b34801561085d57600080fd5b506104cc611bed565b34801561087257600080fd5b506104cc611c1f565b34801561088757600080fd5b5061089b610896366004613a58565b611c5e565b6040516001600160a01b0390911681526020016103f1565b3480156108bf57600080fd5b506103e76108ce366004613a58565b60009081526011602052604090205490565b3480156108ec57600080fd5b506004546001600160a01b031661089b565b34801561090a57600080fd5b5061043f611c88565b34801561091f57600080fd5b506104cc61092e366004613a58565b611c95565b34801561093f57600080fd5b506103e761094e366004613a58565b6000908152600d602052604090205490565b34801561096c57600080fd5b506104cc61097b366004613fca565b611cda565b34801561098c57600080fd5b506104cc61099b366004613e12565b611ce9565b6104cc6109ae366004614001565b611d39565b3480156109bf57600080fd5b506104cc6109ce36600461399b565b611f72565b3480156109df57600080fd5b506103e760155481565b3480156109f557600080fd5b506104cc610a04366004614053565b612191565b348015610a1557600080fd5b506104cc610a24366004613a58565b6122be565b348015610a3557600080fd5b506103e7610a44366004613a58565b60009081526005602052604090205490565b6104cc610a64366004613a58565b612303565b348015610a7557600080fd5b5060075461089b906001600160a01b031681565b348015610a9557600080fd5b5061041a610aa436600461406e565b612482565b348015610ab557600080fd5b506104cc610ac4366004613ca9565b61256c565b348015610ad557600080fd5b506104cc612618565b348015610aea57600080fd5b5060135461041a9060ff1681565b348015610b0457600080fd5b506104cc610b13366004613a58565b612672565b348015610b2457600080fd5b5061041a610b333660046140af565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b348015610b6d57600080fd5b5061041a610b7c366004613a58565b60009081526012602052604090205460ff16151560011490565b348015610ba257600080fd5b506104cc610bb1366004613a58565b6126b4565b6104cc610bc4366004613ca9565b612786565b348015610bd557600080fd5b506104cc610be4366004613ca9565b61297d565b348015610bf557600080fd5b506104cc610c043660046140d9565b612a17565b348015610c1557600080fd5b506104cc610c24366004614053565b612af9565b348015610c3557600080fd5b5061041a610c4436600461413d565b612b91565b348015610c5557600080fd5b506104cc610c64366004613a58565b612c5b565b60006001600160a01b038316610cda5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b1480610d3357506001600160e01b031982166303a24d0760e21b145b80610d4e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60168054610d6190614172565b80601f0160208091040260200160405190810160405280929190818152602001828054610d8d90614172565b8015610dda5780601f10610daf57610100808354040283529160200191610dda565b820191906000526020600020905b815481529060010190602001808311610dbd57829003601f168201915b505050505081565b600081815260056020526040902054606090610e105760405162461bcd60e51b8152600401610cd1906141ad565b60008281526018602052604090208054610e2990614172565b80601f0160208091040260200160405190810160405280929190818152602001828054610e5590614172565b8015610ea25780601f10610e7757610100808354040283529160200191610ea2565b820191906000526020600020905b815481529060010190602001808311610e8557829003601f168201915b50505050509050919050565b600081815260056020526040812054610ed95760405162461bcd60e51b8152600401610cd1906141f2565b5060009081526020819052604090205460ff9081161490565b600081815260056020526040812054610f1d5760405162461bcd60e51b8152600401610cd1906141ad565b5060009081526006602052604090205490565b6004546001600160a01b03163314610f5a5760405162461bcd60e51b8152600401610cd190614229565b600082815260056020526040902054610f855760405162461bcd60e51b8152600401610cd1906141ad565b60008281526018602090815260409091208251610fa4928401906138e6565b505050565b60098181548110610fb957600080fd5b600091825260209091200154905081565b60005b835181101561106257600080858381518110610feb57610feb61425e565b60209081029190910181015182528101919091526040016000205460ff908116146110525760405162461bcd60e51b8152602060048201526017602482015276546f6b656e206973206e6f7420747261646561626c652160481b6044820152606401610cd1565b61105b8161428a565b9050610fcd565b506001600160a01b03851633148061107f575061107f8533610b33565b6110e65760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610cd1565b6110f38585858585612ca0565b5050505050565b6004546001600160a01b031633146111245760405162461bcd60e51b8152600401610cd190614229565b60008281526005602052604090205461114f5760405162461bcd60e51b8152600401610cd1906141ad565b60008281526006602052604090205481116111d25760405162461bcd60e51b815260206004820152603c60248201527f4e657720537570706c79204361702063616e206f6e6c7920626520677265617460448201527f6572207468616e2070726576696f757320737570706c79206361702e000000006064820152608401610cd1565b60009182526006602052604090912055565b6004546001600160a01b0316331461120e5760405162461bcd60e51b8152600401610cd190614229565b6000828152600560205260409020546112395760405162461bcd60e51b8152600401610cd1906141ad565b600081116112895760405162461bcd60e51b815260206004820152601f60248201527f4d696e74696e67207175616e74697479206d757374206265206f7665722030006044820152606401610cd1565b61129282610ef2565b6000838152600560205260409020546112ac9083906142a5565b11156112ca5760405162461bcd60e51b8152600401610cd1906142bd565b610fa4838383601480546112dd90614172565b80601f016020809104026020016040519081016040528092919081815260200182805461130990614172565b80156113565780601f1061132b57610100808354040283529160200191611356565b820191906000526020600020905b81548152906001019060200180831161133957829003601f168201915b5050505050612e8e565b6004546001600160a01b0316331461138a5760405162461bcd60e51b8152600401610cd190614229565b600081116113da5760405162461bcd60e51b815260206004820152601f60248201527f5175616e74697479206d757374206265206d6f7265207468616e207a65726f006044820152606401610cd1565b6000918252600d602052604090912055565b6004546001600160a01b031633146114165760405162461bcd60e51b8152600401610cd190614229565b61141e612fa0565b565b6004546001600160a01b0316331461144a5760405162461bcd60e51b8152600401610cd190614229565b60008181526020819052604090205460ff90811614156114ac5760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e20494420697320616c726561647920747261646561626c652100006044820152606401610cd1565b6000818152600560205260409020546114d75760405162461bcd60e51b8152600401610cd1906141f2565b6000908152602081905260409020805460ff191660ff179055565b606081518351146115575760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610cd1565b600083516001600160401b0381111561157257611572613a71565b60405190808252806020026020018201604052801561159b578160200160208202803683370190505b50905060005b8451811015611613576115e68582815181106115bf576115bf61425e565b60200260200101518583815181106115d9576115d961425e565b6020026020010151610c69565b8282815181106115f8576115f861425e565b602090810291909101015261160c8161428a565b90506115a1565b509392505050565b600080821161166c5760405162461bcd60e51b815260206004820152601f60248201527f5175616e74697479206d757374206265206d6f7265207468616e207a65726f006044820152606401610cd1565b6000838152600c6020526040902054611686908390614302565b9392505050565b6004546001600160a01b031633146116b75760405162461bcd60e51b8152600401610cd190614229565b6000908152600b60205260409020805460ff19169055565b6004546001600160a01b031633146116f95760405162461bcd60e51b8152600401610cd190614229565b6000908152601260205260409020805460ff19169055565b6004546001600160a01b0316331461173b5760405162461bcd60e51b8152600401610cd190614229565b6000881161179f5760405162461bcd60e51b815260206004820152602b60248201527f546f6b656e20537570706c7920436170206d757374206265206772656174657260448201526a103a3430b7103d32b9379760a91b6064820152608401610cd1565b600087116118085760405162461bcd60e51b815260206004820152603060248201527f546f6b656e205472616e73616374696f6e20436170206d75737420626520677260448201526f32b0ba32b9103a3430b7103d32b9379760811b6064820152608401610cd1565b60008151116118645760405162461bcd60e51b815260206004820152602260248201527f546f6b656e205552492063616e6e6f7420626520616e20656d7074792076616c604482015261756560f01b6064820152608401610cd1565b600061186e61303d565b905061188433826001601480546112dd90614172565b600081815260186020908152604090912083516118a3928501906138e6565b506118ae818a6110fa565b6118b881886119f3565b6118c28189611360565b6000818152600b60205260409020805460ff19168715151790556000818152600e60209081526040808320805460ff1916881515179055600f90915290208390558461190f576001611912565b60ff5b6000828152602081905260409020805460ff191660ff9290921691909117905561193a613053565b505050505050505050565b6004546001600160a01b0316331461196f5760405162461bcd60e51b8152600401610cd190614229565b60005b83518110156119b9576119a78482815181106119905761199061425e565b60200260200101518484601480546112dd90614172565b806119b18161428a565b915050611972565b50505050565b6004546001600160a01b031633146119e95760405162461bcd60e51b8152600401610cd190614229565b61141e600061306a565b6004546001600160a01b03163314611a1d5760405162461bcd60e51b8152600401610cd190614229565b6000918252600c602052604090912055565b600454600160a01b900460ff1615611a595760405162461bcd60e51b8152600401610cd190614321565b600083815260056020526040902054611a845760405162461bcd60e51b8152600401610cd1906141ad565b611a8d83610ef2565b600084815260056020526040902054611aa79060016142a5565b1115611ac55760405162461bcd60e51b8152600401610cd1906142bd565b611ad083600161161b565b3414611aee5760405162461bcd60e51b8152600401610cd19061434b565b611b0c8360009081526012602052604090205460ff16151560011490565b8015611b315750611b31836000908152600b602052604090205460ff16151560011490565b611b4d5760405162461bcd60e51b8152600401610cd190614392565b611b5933848484612482565b611ba55760405162461bcd60e51b815260206004820152601c60248201527f41646472657373206973206e6f7420696e20416c6c6f776c69737421000000006044820152606401610cd1565b611bb183336001612b91565b611bcd5760405162461bcd60e51b8152600401610cd1906143e4565b611bd9833360016130bc565b610fa433846001601480546112dd90614172565b6004546001600160a01b03163314611c175760405162461bcd60e51b8152600401610cd190614229565b61141e613115565b6004546001600160a01b03163314611c495760405162461bcd60e51b8152600401610cd190614229565b60004711611c5657600080fd5b61141e61317a565b60088181548110611c6e57600080fd5b6000918252602090912001546001600160a01b0316905081565b60178054610d6190614172565b6004546001600160a01b03163314611cbf5760405162461bcd60e51b8152600401610cd190614229565b6000908152600b60205260409020805460ff19166001179055565b611ce5338383613208565b5050565b6004546001600160a01b03163314611d135760405162461bcd60e51b8152600401610cd190614229565b6001600160a01b0316600090815260106020908152604080832093835292905290812055565b600454600160a01b900460ff1615611d635760405162461bcd60e51b8152600401610cd190614321565b600084815260056020526040902054611d8e5760405162461bcd60e51b8152600401610cd1906141ad565b6001831015611ddf5760405162461bcd60e51b815260206004820152601a60248201527f4d757374206d696e74206174206c65617374203120746f6b656e0000000000006044820152606401610cd1565b6000848152600d6020526040902054831115611e0d5760405162461bcd60e51b8152600401610cd19061442a565b611e1684610ef2565b600085815260056020526040902054611e309085906142a5565b1115611e4e5760405162461bcd60e51b8152600401610cd1906142bd565b611e58848461161b565b3414611e765760405162461bcd60e51b8152600401610cd19061434b565b611e948460009081526012602052604090205460ff16151560011490565b8015611eb95750611eb9846000908152600b602052604090205460ff16151560011490565b611ed55760405162461bcd60e51b8152600401610cd190614392565b611ee133858484612482565b611f2d5760405162461bcd60e51b815260206004820152601c60248201527f41646472657373206973206e6f7420696e20416c6c6f776c69737421000000006044820152606401610cd1565b611f38843385612b91565b611f545760405162461bcd60e51b8152600401610cd1906143e4565b611f5f8433856130bc565b6119b9338585601480546112dd90614172565b6004546001600160a01b03163314611f9c5760405162461bcd60e51b8152600401610cd190614229565b60008111611fa957600080fd5b6040516370a0823160e01b8152306004820152829082906001600160a01b038316906370a082319060240160206040518083038186803b158015611fec57600080fd5b505afa158015612000573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120249190614478565b101561207e5760405162461bcd60e51b815260206004820152602360248201527f436f6e747261637420646f6573206e6f74206f776e20656e6f75676820746f6b604482015262656e7360e81b6064820152608401610cd1565b60005b600a548110156119b957816001600160a01b031663a9059cbb600883815481106120ad576120ad61425e565b9060005260206000200160009054906101000a90046001600160a01b03166064600985815481106120e0576120e061425e565b9060005260206000200154876120f69190614302565b6121009190614491565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561214657600080fd5b505af115801561215a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061217e91906144b3565b50806121898161428a565b915050612081565b6007546001600160a01b031633146121eb5760405162461bcd60e51b815260206004820152601c60248201527f4f776e61626c653a2063616c6c6572206973206e6f742052414d5050000000006044820152606401610cd1565b6007546001600160a01b038281169116141561225c5760405162461bcd60e51b815260206004820152602a60248201527f52414d50503a204e65772052616d70702061646472657373206d75737420626560448201526908191a5999995c995b9d60b21b6064820152608401610cd1565b600780546001600160a01b0319166001600160a01b0383161790556008805482919060009061228d5761228d61425e565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555050565b6004546001600160a01b031633146122e85760405162461bcd60e51b8152600401610cd190614229565b6000908152601260205260409020805460ff19166001179055565b600454600160a01b900460ff161561232d5760405162461bcd60e51b8152600401610cd190614321565b6000818152600560205260409020546123585760405162461bcd60e51b8152600401610cd1906141ad565b61236181610ef2565b60008281526005602052604090205461237b9060016142a5565b11156123995760405162461bcd60e51b8152600401610cd1906142bd565b6123a481600161161b565b34146123c25760405162461bcd60e51b8152600401610cd19061434b565b6123e08160009081526012602052604090205460ff16151560011490565b156123fd5760405162461bcd60e51b8152600401610cd1906144d0565b61241b816000908152600b602052604090205460ff16151560011490565b6124375760405162461bcd60e51b8152600401610cd19061453d565b61244381336001612b91565b61245f5760405162461bcd60e51b8152600401610cd1906143e4565b61246b813360016130bc565b61247f33826001601480546112dd90614172565b50565b6000838152601160205260408120546124dd5760405162461bcd60e51b815260206004820152601760248201527f4d65726b6c6520726f6f74206973206e6f7420736574210000000000000000006044820152606401610cd1565b6040516bffffffffffffffffffffffff19606087901b16602082015260009060340160405160208183030381529060405280519060200120905061256284848080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508a81526011602052604090205492508591506132e99050565b9695505050505050565b6004546001600160a01b031633146125965760405162461bcd60e51b8152600401610cd190614229565b60018110156126065760405162461bcd60e51b815260206004820152603660248201527f546f6b656e2077616c6c6574206d6178206d7573742062652067726561746572604482015275103a3430b71037b91032b8bab0b6103a379037b7329760511b6064820152608401610cd1565b6000918252600f602052604090912055565b6007546001600160a01b03163314611c495760405162461bcd60e51b815260206004820152601c60248201527f4f776e61626c653a2063616c6c6572206973206e6f742052414d5050000000006044820152606401610cd1565b6004546001600160a01b0316331461269c5760405162461bcd60e51b8152600401610cd190614229565b6000908152600e60205260409020805460ff19169055565b6004546001600160a01b031633146126de5760405162461bcd60e51b8152600401610cd190614229565b60008181526020819052604090205460ff16600114156127405760405162461bcd60e51b815260206004820181905260248201527f546f6b656e20494420697320616c726561647920756e747261646561626c65216044820152606401610cd1565b60008181526005602052604090205461276b5760405162461bcd60e51b8152600401610cd1906141f2565b6000908152602081905260409020805460ff19166001179055565b600454600160a01b900460ff16156127b05760405162461bcd60e51b8152600401610cd190614321565b6000828152600560205260409020546127db5760405162461bcd60e51b8152600401610cd1906141ad565b600181101561282c5760405162461bcd60e51b815260206004820152601a60248201527f4d757374206d696e74206174206c65617374203120746f6b656e0000000000006044820152606401610cd1565b6000828152600d602052604090205481111561285a5760405162461bcd60e51b8152600401610cd19061442a565b61286382610ef2565b60008381526005602052604090205461287d9083906142a5565b111561289b5760405162461bcd60e51b8152600401610cd1906142bd565b6128a5828261161b565b34146128c35760405162461bcd60e51b8152600401610cd19061434b565b6128e18260009081526012602052604090205460ff16151560011490565b156128fe5760405162461bcd60e51b8152600401610cd1906144d0565b61291c826000908152600b602052604090205460ff16151560011490565b6129385760405162461bcd60e51b8152600401610cd19061453d565b612943823383612b91565b61295f5760405162461bcd60e51b8152600401610cd1906143e4565b61296a8233836130bc565b611ce5338383601480546112dd90614172565b6004546001600160a01b031633146129a75760405162461bcd60e51b8152600401610cd190614229565b600082815260116020526040902054811415612a055760405162461bcd60e51b815260206004820152601e60248201527f4d65726b6c6520726f6f742077696c6c20626520756e6368616e6765642100006044820152606401610cd1565b60009182526011602052604090912055565b60008381526020819052604090205460ff90811614612a725760405162461bcd60e51b8152602060048201526017602482015276546f6b656e206973206e6f7420747261646561626c652160481b6044820152606401610cd1565b6001600160a01b038516331480612a8e5750612a8e8533610b33565b612aec5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610cd1565b6110f385858585856132ff565b6004546001600160a01b03163314612b235760405162461bcd60e51b8152600401610cd190614229565b6001600160a01b038116612b885760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cd1565b61247f8161306a565b6000838152600e602052604081205460ff161515600114612bb457506001611686565b6001821015612c175760405162461bcd60e51b815260206004820152602960248201527f416d6f756e74206d7573742062652067726561746572207468616e206f7220656044820152687175616c20746f203160b81b6064820152608401610cd1565b6000848152600f60209081526040808320546001600160a01b03871684526010835281842088855290925290912054612c519084906142a5565b1115949350505050565b6004546001600160a01b03163314612c855760405162461bcd60e51b8152600401610cd190614229565b6000908152600e60205260409020805460ff19166001179055565b8151835114612d025760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610cd1565b6001600160a01b038416612d285760405162461bcd60e51b8152600401610cd19061457f565b33612d37818787878787613420565b60005b8451811015612e20576000858281518110612d5757612d5761425e565b602002602001015190506000858381518110612d7557612d7561425e565b60209081029190910181015160008481526001835260408082206001600160a01b038e168352909352919091205490915081811015612dc65760405162461bcd60e51b8152600401610cd1906145c4565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612e059084906142a5565b9250508190555050505080612e199061428a565b9050612d3a565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612e7092919061460e565b60405180910390a4612e86818787878787613458565b505050505050565b6001600160a01b038416612eee5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610cd1565b33612f0e81600087612eff886135c3565b612f08886135c3565b87613420565b60008481526001602090815260408083206001600160a01b038916845290915281208054859290612f409084906142a5565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46110f38160008787878761360e565b600454600160a01b900460ff16612ff05760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610cd1565b6004805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000601554600161304e91906142a5565b905090565b601580549060006130638361428a565b9190505550565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821660009081526010602090815260408083208684529091529020546130eb9082906142a5565b6001600160a01b039092166000908152601060209081526040808320958352949052929092205550565b600454600160a01b900460ff161561313f5760405162461bcd60e51b8152600401610cd190614321565b6004805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586130203390565b4760005b600a54811015611ce5576131f66008828154811061319e5761319e61425e565b9060005260206000200160009054906101000a90046001600160a01b03166064600984815481106131d1576131d161425e565b9060005260206000200154856131e79190614302565b6131f19190614491565b6136d8565b806132008161428a565b91505061317e565b816001600160a01b0316836001600160a01b0316141561327c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610cd1565b6001600160a01b03838116600081815260026020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000826132f6858461376e565b14949350505050565b6001600160a01b0384166133255760405162461bcd60e51b8152600401610cd19061457f565b33613335818787612eff886135c3565b60008481526001602090815260408083206001600160a01b038a168452909152902054838110156133785760405162461bcd60e51b8152600401610cd1906145c4565b60008581526001602090815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906133b79084906142a5565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461341782888888888861360e565b50505050505050565b600454600160a01b900460ff161561344a5760405162461bcd60e51b8152600401610cd190614321565b612e868686868686866137da565b6001600160a01b0384163b15612e865760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061349c908990899088908890889060040161463c565b602060405180830381600087803b1580156134b657600080fd5b505af19250505080156134e6575060408051601f3d908101601f191682019092526134e39181019061469a565b60015b613593576134f26146b7565b806308c379a0141561352c57506135076146d3565b80613512575061352e565b8060405162461bcd60e51b8152600401610cd19190613a45565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610cd1565b6001600160e01b0319811663bc197c8160e01b146134175760405162461bcd60e51b8152600401610cd19061475c565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106135fd576135fd61425e565b602090810291909101015292915050565b6001600160a01b0384163b15612e865760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061365290899089908890889088906004016147a4565b602060405180830381600087803b15801561366c57600080fd5b505af192505050801561369c575060408051601f3d908101601f191682019092526136999181019061469a565b60015b6136a8576134f26146b7565b6001600160e01b0319811663f23a6e6160e01b146134175760405162461bcd60e51b8152600401610cd19061475c565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613725576040519150601f19603f3d011682016040523d82523d6000602084013e61372a565b606091505b5050905080610fa45760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610cd1565b600081815b84518110156116135760008582815181106137905761379061425e565b602002602001015190508083116137b657600083815260208290526040902092506137c7565b600081815260208490526040902092505b50806137d28161428a565b915050613773565b6001600160a01b0385166138615760005b835181101561385f578281815181106138065761380661425e565b6020026020010151600560008684815181106138245761382461425e565b60200260200101518152602001908152602001600020600082825461384991906142a5565b9091555061385890508161428a565b90506137eb565b505b6001600160a01b038416612e865760005b83518110156134175782818151811061388d5761388d61425e565b6020026020010151600560008684815181106138ab576138ab61425e565b6020026020010151815260200190815260200160002060008282546138d091906147e9565b909155506138df90508161428a565b9050613872565b8280546138f290614172565b90600052602060002090601f016020900481019282613914576000855561395a565b82601f1061392d57805160ff191683800117855561395a565b8280016001018555821561395a579182015b8281111561395a57825182559160200191906001019061393f565b5061396692915061396a565b5090565b5b80821115613966576000815560010161396b565b80356001600160a01b038116811461399657600080fd5b919050565b600080604083850312156139ae57600080fd5b6139b78361397f565b946020939093013593505050565b6001600160e01b03198116811461247f57600080fd5b6000602082840312156139ed57600080fd5b8135611686816139c5565b6000815180845260005b81811015613a1e57602081850181015186830182015201613a02565b81811115613a30576000602083870101525b50601f01601f19169290920160200192915050565b60208152600061168660208301846139f8565b600060208284031215613a6a57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715613aac57613aac613a71565b6040525050565b600082601f830112613ac457600080fd5b81356001600160401b03811115613add57613add613a71565b604051613af4601f8301601f191660200182613a87565b818152846020838601011115613b0957600080fd5b816020850160208301376000918101602001919091529392505050565b60008060408385031215613b3957600080fd5b8235915060208301356001600160401b03811115613b5657600080fd5b613b6285828601613ab3565b9150509250929050565b60006001600160401b03821115613b8557613b85613a71565b5060051b60200190565b600082601f830112613ba057600080fd5b81356020613bad82613b6c565b604051613bba8282613a87565b83815260059390931b8501820192828101915086841115613bda57600080fd5b8286015b84811015613bf55780358352918301918301613bde565b509695505050505050565b600080600080600060a08688031215613c1857600080fd5b613c218661397f565b9450613c2f6020870161397f565b935060408601356001600160401b0380821115613c4b57600080fd5b613c5789838a01613b8f565b94506060880135915080821115613c6d57600080fd5b613c7989838a01613b8f565b93506080880135915080821115613c8f57600080fd5b50613c9c88828901613ab3565b9150509295509295909350565b60008060408385031215613cbc57600080fd5b50508035926020909101359150565b600080600060608486031215613ce057600080fd5b613ce98461397f565b95602085013595506040909401359392505050565b600082601f830112613d0f57600080fd5b81356020613d1c82613b6c565b604051613d298282613a87565b83815260059390931b8501820192828101915086841115613d4957600080fd5b8286015b84811015613bf557613d5e8161397f565b8352918301918301613d4d565b60008060408385031215613d7e57600080fd5b82356001600160401b0380821115613d9557600080fd5b613da186838701613cfe565b93506020850135915080821115613db757600080fd5b50613b6285828601613b8f565b600081518084526020808501945080840160005b83811015613df457815187529582019590820190600101613dd8565b509495945050505050565b6020815260006116866020830184613dc4565b60008060408385031215613e2557600080fd5b82359150613e356020840161397f565b90509250929050565b801515811461247f57600080fd5b600080600080600080600080610100898b031215613e6957600080fd5b8835975060208901359650604089013595506060890135613e8981613e3e565b94506080890135613e9981613e3e565b935060a0890135613ea981613e3e565b925060c0890135915060e08901356001600160401b03811115613ecb57600080fd5b613ed78b828c01613ab3565b9150509295985092959890939650565b600080600060608486031215613efc57600080fd5b83356001600160401b03811115613f1257600080fd5b613f1e86828701613cfe565b9660208601359650604090950135949350505050565b60008083601f840112613f4657600080fd5b5081356001600160401b03811115613f5d57600080fd5b6020830191508360208260051b8501011115613f7857600080fd5b9250929050565b600080600060408486031215613f9457600080fd5b8335925060208401356001600160401b03811115613fb157600080fd5b613fbd86828701613f34565b9497909650939450505050565b60008060408385031215613fdd57600080fd5b613fe68361397f565b91506020830135613ff681613e3e565b809150509250929050565b6000806000806060858703121561401757600080fd5b843593506020850135925060408501356001600160401b0381111561403b57600080fd5b61404787828801613f34565b95989497509550505050565b60006020828403121561406557600080fd5b6116868261397f565b6000806000806060858703121561408457600080fd5b61408d8561397f565b93506020850135925060408501356001600160401b0381111561403b57600080fd5b600080604083850312156140c257600080fd5b6140cb8361397f565b9150613e356020840161397f565b600080600080600060a086880312156140f157600080fd5b6140fa8661397f565b94506141086020870161397f565b9350604086013592506060860135915060808601356001600160401b0381111561413157600080fd5b613c9c88828901613ab3565b60008060006060848603121561415257600080fd5b833592506141626020850161397f565b9150604084013590509250925092565b600181811c9082168061418657607f821691505b602082108114156141a757634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526025908201527f4552433732315472616461626c65237572693a204e4f4e4558495354454e545f6040820152642a27a5a2a760d91b606082015260800190565b60208082526018908201527f546f6b656e20494420646f6573206e6f74206578697374210000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561429e5761429e614274565b5060010190565b600082198211156142b8576142b8614274565b500190565b60208082526025908201527f43616e6e6f74206d696e74206f76657220737570706c7920636170206f6620746040820152646f6b656e2160d81b606082015260800190565b600081600019048311821515161561431c5761431c614274565b500290565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526027908201527f56616c7565206e6565647320746f2062652065786163746c7920746865206d696040820152666e74206665652160c81b606082015260800190565b60208082526032908201527f416c6c6f776c697374204d6f646520616e64204d696e74696e67206d75737420604082015271189948195b98589b1959081d1bc81b5a5b9d60721b606082015260800190565b60208082526026908201527f57616c6c6574206d696e74206d6178696d756d207265616368656420666f72206040820152653a37b5b2b71760d11b606082015260800190565b6020808252602e908201527f43616e6e6f74206d696e74206d6f7265207468616e206d6178206d696e74207060408201526d32b9103a3930b739b0b1ba34b7b760911b606082015260800190565b60006020828403121561448a57600080fd5b5051919050565b6000826144ae57634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156144c557600080fd5b815161168681613e3e565b60208082526047908201527f5075626c6963206d696e74696e67206973206e6f7420656e61626c656420776860408201527f696c6520636f6e747261637420697320696e20616c6c6f776c697374206f6e6c6060820152663c9036b7b2329760c91b608082015260a00190565b60208082526022908201527f4d696e74696e6720666f72207468697320746f6b656e206973206e6f74206f7060408201526132b760f11b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006146216040830185613dc4565b82810360208401526146338185613dc4565b95945050505050565b6001600160a01b0386811682528516602082015260a06040820181905260009061466890830186613dc4565b828103606084015261467a8186613dc4565b9050828103608084015261468e81856139f8565b98975050505050505050565b6000602082840312156146ac57600080fd5b8151611686816139c5565b600060033d11156146d05760046000803e5060005160e01c5b90565b600060443d10156146e15790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561471057505050505090565b82850191508151818111156147285750505050505090565b843d87010160208285010111156147425750505050505090565b61475160208286010187613a87565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906147de908301846139f8565b979650505050505050565b6000828210156147fb576147fb614274565b50039056fea264697066735822122087d10095c23058adcb4f59e06ac2288c0a3c3a2f2e2db6848d905445eb957a1764736f6c6343000809003300000000000000000000000071f076d265cd7d85de3e4f795d3913d6ff36b568

Deployed Bytecode

0x6080604052600436106103c25760003560e01c80638456cb59116101f2578063be8c31b81161010d578063eb238e81116100a0578063f242432a1161006f578063f242432a14610be9578063f2fde38b14610c09578063fc2f383214610c29578063fe6d3cc814610c4957600080fd5b8063eb238e8114610b61578063eec8e90814610b96578063f0ab02ac14610bb6578063f1e3311514610bc957600080fd5b8063dcd4aa8b116100dc578063dcd4aa8b14610ac9578063e6c6990a14610ade578063e82da69114610af8578063e985e9c514610b1857600080fd5b8063be8c31b814610a56578063c5815c4114610a69578063d2de022f14610a89578063d8800f9414610aa957600080fd5b8063a22cb46511610185578063bb62115e11610154578063bb62115e146109d3578063bbd8556b146109e9578063bc1f0ab514610a09578063bd85b03914610a2957600080fd5b8063a22cb46514610960578063ac80746a14610980578063afb0485f146109a0578063b40ebceb146109b357600080fd5b80638da5cb5b116101c15780638da5cb5b146108e057806395d89b41146108fe5780639b192647146109135780639e490e241461093357600080fd5b80638456cb5914610851578063853828b614610866578063891bbe731461087b5780638c04b8e9146108b357600080fd5b80634bf4e087116102e25780636586375b11610275578063736e04fa11610244578063736e04fa146107b45780637aa9c33f146107e9578063837103e61461080957806383e083c31461081c57600080fd5b80636586375b1461073f57806366b0e7041461075f5780636c6acd4d1461077f578063715018a61461079f57600080fd5b80634f558e79116102b15780634f558e79146106b15780635c975abb146106e05780635cf4ee91146106ff578063628d35c91461071f57600080fd5b80634bf4e087146105ea5780634d09ae6d146106175780634e1273f4146106445780634e5298a01461067157600080fd5b80632eb2c2d61161035a5780633e07311c116103295780633e07311c1461057f5780633e511168146105955780633f4ba83a146105b55780634790c925146105ca57600080fd5b80632eb2c2d6146104ee5780633832e8701461050e57806338b903331461052e57806338df41ac1461055f57600080fd5b8063134902fd11610396578063134902fd1461046c578063143727c91461048c578063162094c4146104ac578063286c8137146104ce57600080fd5b8062fdd58e146103c757806301ffc9a7146103fa57806306fdde031461042a5780630e89341c1461044c575b600080fd5b3480156103d357600080fd5b506103e76103e236600461399b565b610c69565b6040519081526020015b60405180910390f35b34801561040657600080fd5b5061041a6104153660046139db565b610d02565b60405190151581526020016103f1565b34801561043657600080fd5b5061043f610d54565b6040516103f19190613a45565b34801561045857600080fd5b5061043f610467366004613a58565b610de2565b34801561047857600080fd5b5061041a610487366004613a58565b610eae565b34801561049857600080fd5b506103e76104a7366004613a58565b610ef2565b3480156104b857600080fd5b506104cc6104c7366004613b26565b610f30565b005b3480156104da57600080fd5b506103e76104e9366004613a58565b610fa9565b3480156104fa57600080fd5b506104cc610509366004613c00565b610fca565b34801561051a57600080fd5b506104cc610529366004613ca9565b6110fa565b34801561053a57600080fd5b5060135461054d90610100900460ff1681565b60405160ff90911681526020016103f1565b34801561056b57600080fd5b506104cc61057a366004613ccb565b6111e4565b34801561058b57600080fd5b506103e7600a5481565b3480156105a157600080fd5b506104cc6105b0366004613ca9565b611360565b3480156105c157600080fd5b506104cc6113ec565b3480156105d657600080fd5b506104cc6105e5366004613a58565b611420565b3480156105f657600080fd5b506103e7610605366004613a58565b6000908152600f602052604090205490565b34801561062357600080fd5b506103e7610632366004613a58565b6000908152600c602052604090205490565b34801561065057600080fd5b5061066461065f366004613d6b565b6114f2565b6040516103f19190613dff565b34801561067d57600080fd5b506103e761068c366004613e12565b6001600160a01b03166000908152601060209081526040808320938352929052205490565b3480156106bd57600080fd5b5061041a6106cc366004613a58565b600090815260056020526040902054151590565b3480156106ec57600080fd5b50600454600160a01b900460ff1661041a565b34801561070b57600080fd5b506103e761071a366004613ca9565b61161b565b34801561072b57600080fd5b506104cc61073a366004613a58565b61168d565b34801561074b57600080fd5b506104cc61075a366004613a58565b6116cf565b34801561076b57600080fd5b506104cc61077a366004613e4c565b611711565b34801561078b57600080fd5b506104cc61079a366004613ee7565b611945565b3480156107ab57600080fd5b506104cc6119bf565b3480156107c057600080fd5b5061041a6107cf366004613a58565b6000908152600e602052604090205460ff16151560011490565b3480156107f557600080fd5b506104cc610804366004613ca9565b6119f3565b6104cc610817366004613f7f565b611a2f565b34801561082857600080fd5b5061041a610837366004613a58565b6000908152600b602052604090205460ff16151560011490565b34801561085d57600080fd5b506104cc611bed565b34801561087257600080fd5b506104cc611c1f565b34801561088757600080fd5b5061089b610896366004613a58565b611c5e565b6040516001600160a01b0390911681526020016103f1565b3480156108bf57600080fd5b506103e76108ce366004613a58565b60009081526011602052604090205490565b3480156108ec57600080fd5b506004546001600160a01b031661089b565b34801561090a57600080fd5b5061043f611c88565b34801561091f57600080fd5b506104cc61092e366004613a58565b611c95565b34801561093f57600080fd5b506103e761094e366004613a58565b6000908152600d602052604090205490565b34801561096c57600080fd5b506104cc61097b366004613fca565b611cda565b34801561098c57600080fd5b506104cc61099b366004613e12565b611ce9565b6104cc6109ae366004614001565b611d39565b3480156109bf57600080fd5b506104cc6109ce36600461399b565b611f72565b3480156109df57600080fd5b506103e760155481565b3480156109f557600080fd5b506104cc610a04366004614053565b612191565b348015610a1557600080fd5b506104cc610a24366004613a58565b6122be565b348015610a3557600080fd5b506103e7610a44366004613a58565b60009081526005602052604090205490565b6104cc610a64366004613a58565b612303565b348015610a7557600080fd5b5060075461089b906001600160a01b031681565b348015610a9557600080fd5b5061041a610aa436600461406e565b612482565b348015610ab557600080fd5b506104cc610ac4366004613ca9565b61256c565b348015610ad557600080fd5b506104cc612618565b348015610aea57600080fd5b5060135461041a9060ff1681565b348015610b0457600080fd5b506104cc610b13366004613a58565b612672565b348015610b2457600080fd5b5061041a610b333660046140af565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b348015610b6d57600080fd5b5061041a610b7c366004613a58565b60009081526012602052604090205460ff16151560011490565b348015610ba257600080fd5b506104cc610bb1366004613a58565b6126b4565b6104cc610bc4366004613ca9565b612786565b348015610bd557600080fd5b506104cc610be4366004613ca9565b61297d565b348015610bf557600080fd5b506104cc610c043660046140d9565b612a17565b348015610c1557600080fd5b506104cc610c24366004614053565b612af9565b348015610c3557600080fd5b5061041a610c4436600461413d565b612b91565b348015610c5557600080fd5b506104cc610c64366004613a58565b612c5b565b60006001600160a01b038316610cda5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b1480610d3357506001600160e01b031982166303a24d0760e21b145b80610d4e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60168054610d6190614172565b80601f0160208091040260200160405190810160405280929190818152602001828054610d8d90614172565b8015610dda5780601f10610daf57610100808354040283529160200191610dda565b820191906000526020600020905b815481529060010190602001808311610dbd57829003601f168201915b505050505081565b600081815260056020526040902054606090610e105760405162461bcd60e51b8152600401610cd1906141ad565b60008281526018602052604090208054610e2990614172565b80601f0160208091040260200160405190810160405280929190818152602001828054610e5590614172565b8015610ea25780601f10610e7757610100808354040283529160200191610ea2565b820191906000526020600020905b815481529060010190602001808311610e8557829003601f168201915b50505050509050919050565b600081815260056020526040812054610ed95760405162461bcd60e51b8152600401610cd1906141f2565b5060009081526020819052604090205460ff9081161490565b600081815260056020526040812054610f1d5760405162461bcd60e51b8152600401610cd1906141ad565b5060009081526006602052604090205490565b6004546001600160a01b03163314610f5a5760405162461bcd60e51b8152600401610cd190614229565b600082815260056020526040902054610f855760405162461bcd60e51b8152600401610cd1906141ad565b60008281526018602090815260409091208251610fa4928401906138e6565b505050565b60098181548110610fb957600080fd5b600091825260209091200154905081565b60005b835181101561106257600080858381518110610feb57610feb61425e565b60209081029190910181015182528101919091526040016000205460ff908116146110525760405162461bcd60e51b8152602060048201526017602482015276546f6b656e206973206e6f7420747261646561626c652160481b6044820152606401610cd1565b61105b8161428a565b9050610fcd565b506001600160a01b03851633148061107f575061107f8533610b33565b6110e65760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610cd1565b6110f38585858585612ca0565b5050505050565b6004546001600160a01b031633146111245760405162461bcd60e51b8152600401610cd190614229565b60008281526005602052604090205461114f5760405162461bcd60e51b8152600401610cd1906141ad565b60008281526006602052604090205481116111d25760405162461bcd60e51b815260206004820152603c60248201527f4e657720537570706c79204361702063616e206f6e6c7920626520677265617460448201527f6572207468616e2070726576696f757320737570706c79206361702e000000006064820152608401610cd1565b60009182526006602052604090912055565b6004546001600160a01b0316331461120e5760405162461bcd60e51b8152600401610cd190614229565b6000828152600560205260409020546112395760405162461bcd60e51b8152600401610cd1906141ad565b600081116112895760405162461bcd60e51b815260206004820152601f60248201527f4d696e74696e67207175616e74697479206d757374206265206f7665722030006044820152606401610cd1565b61129282610ef2565b6000838152600560205260409020546112ac9083906142a5565b11156112ca5760405162461bcd60e51b8152600401610cd1906142bd565b610fa4838383601480546112dd90614172565b80601f016020809104026020016040519081016040528092919081815260200182805461130990614172565b80156113565780601f1061132b57610100808354040283529160200191611356565b820191906000526020600020905b81548152906001019060200180831161133957829003601f168201915b5050505050612e8e565b6004546001600160a01b0316331461138a5760405162461bcd60e51b8152600401610cd190614229565b600081116113da5760405162461bcd60e51b815260206004820152601f60248201527f5175616e74697479206d757374206265206d6f7265207468616e207a65726f006044820152606401610cd1565b6000918252600d602052604090912055565b6004546001600160a01b031633146114165760405162461bcd60e51b8152600401610cd190614229565b61141e612fa0565b565b6004546001600160a01b0316331461144a5760405162461bcd60e51b8152600401610cd190614229565b60008181526020819052604090205460ff90811614156114ac5760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e20494420697320616c726561647920747261646561626c652100006044820152606401610cd1565b6000818152600560205260409020546114d75760405162461bcd60e51b8152600401610cd1906141f2565b6000908152602081905260409020805460ff191660ff179055565b606081518351146115575760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610cd1565b600083516001600160401b0381111561157257611572613a71565b60405190808252806020026020018201604052801561159b578160200160208202803683370190505b50905060005b8451811015611613576115e68582815181106115bf576115bf61425e565b60200260200101518583815181106115d9576115d961425e565b6020026020010151610c69565b8282815181106115f8576115f861425e565b602090810291909101015261160c8161428a565b90506115a1565b509392505050565b600080821161166c5760405162461bcd60e51b815260206004820152601f60248201527f5175616e74697479206d757374206265206d6f7265207468616e207a65726f006044820152606401610cd1565b6000838152600c6020526040902054611686908390614302565b9392505050565b6004546001600160a01b031633146116b75760405162461bcd60e51b8152600401610cd190614229565b6000908152600b60205260409020805460ff19169055565b6004546001600160a01b031633146116f95760405162461bcd60e51b8152600401610cd190614229565b6000908152601260205260409020805460ff19169055565b6004546001600160a01b0316331461173b5760405162461bcd60e51b8152600401610cd190614229565b6000881161179f5760405162461bcd60e51b815260206004820152602b60248201527f546f6b656e20537570706c7920436170206d757374206265206772656174657260448201526a103a3430b7103d32b9379760a91b6064820152608401610cd1565b600087116118085760405162461bcd60e51b815260206004820152603060248201527f546f6b656e205472616e73616374696f6e20436170206d75737420626520677260448201526f32b0ba32b9103a3430b7103d32b9379760811b6064820152608401610cd1565b60008151116118645760405162461bcd60e51b815260206004820152602260248201527f546f6b656e205552492063616e6e6f7420626520616e20656d7074792076616c604482015261756560f01b6064820152608401610cd1565b600061186e61303d565b905061188433826001601480546112dd90614172565b600081815260186020908152604090912083516118a3928501906138e6565b506118ae818a6110fa565b6118b881886119f3565b6118c28189611360565b6000818152600b60205260409020805460ff19168715151790556000818152600e60209081526040808320805460ff1916881515179055600f90915290208390558461190f576001611912565b60ff5b6000828152602081905260409020805460ff191660ff9290921691909117905561193a613053565b505050505050505050565b6004546001600160a01b0316331461196f5760405162461bcd60e51b8152600401610cd190614229565b60005b83518110156119b9576119a78482815181106119905761199061425e565b60200260200101518484601480546112dd90614172565b806119b18161428a565b915050611972565b50505050565b6004546001600160a01b031633146119e95760405162461bcd60e51b8152600401610cd190614229565b61141e600061306a565b6004546001600160a01b03163314611a1d5760405162461bcd60e51b8152600401610cd190614229565b6000918252600c602052604090912055565b600454600160a01b900460ff1615611a595760405162461bcd60e51b8152600401610cd190614321565b600083815260056020526040902054611a845760405162461bcd60e51b8152600401610cd1906141ad565b611a8d83610ef2565b600084815260056020526040902054611aa79060016142a5565b1115611ac55760405162461bcd60e51b8152600401610cd1906142bd565b611ad083600161161b565b3414611aee5760405162461bcd60e51b8152600401610cd19061434b565b611b0c8360009081526012602052604090205460ff16151560011490565b8015611b315750611b31836000908152600b602052604090205460ff16151560011490565b611b4d5760405162461bcd60e51b8152600401610cd190614392565b611b5933848484612482565b611ba55760405162461bcd60e51b815260206004820152601c60248201527f41646472657373206973206e6f7420696e20416c6c6f776c69737421000000006044820152606401610cd1565b611bb183336001612b91565b611bcd5760405162461bcd60e51b8152600401610cd1906143e4565b611bd9833360016130bc565b610fa433846001601480546112dd90614172565b6004546001600160a01b03163314611c175760405162461bcd60e51b8152600401610cd190614229565b61141e613115565b6004546001600160a01b03163314611c495760405162461bcd60e51b8152600401610cd190614229565b60004711611c5657600080fd5b61141e61317a565b60088181548110611c6e57600080fd5b6000918252602090912001546001600160a01b0316905081565b60178054610d6190614172565b6004546001600160a01b03163314611cbf5760405162461bcd60e51b8152600401610cd190614229565b6000908152600b60205260409020805460ff19166001179055565b611ce5338383613208565b5050565b6004546001600160a01b03163314611d135760405162461bcd60e51b8152600401610cd190614229565b6001600160a01b0316600090815260106020908152604080832093835292905290812055565b600454600160a01b900460ff1615611d635760405162461bcd60e51b8152600401610cd190614321565b600084815260056020526040902054611d8e5760405162461bcd60e51b8152600401610cd1906141ad565b6001831015611ddf5760405162461bcd60e51b815260206004820152601a60248201527f4d757374206d696e74206174206c65617374203120746f6b656e0000000000006044820152606401610cd1565b6000848152600d6020526040902054831115611e0d5760405162461bcd60e51b8152600401610cd19061442a565b611e1684610ef2565b600085815260056020526040902054611e309085906142a5565b1115611e4e5760405162461bcd60e51b8152600401610cd1906142bd565b611e58848461161b565b3414611e765760405162461bcd60e51b8152600401610cd19061434b565b611e948460009081526012602052604090205460ff16151560011490565b8015611eb95750611eb9846000908152600b602052604090205460ff16151560011490565b611ed55760405162461bcd60e51b8152600401610cd190614392565b611ee133858484612482565b611f2d5760405162461bcd60e51b815260206004820152601c60248201527f41646472657373206973206e6f7420696e20416c6c6f776c69737421000000006044820152606401610cd1565b611f38843385612b91565b611f545760405162461bcd60e51b8152600401610cd1906143e4565b611f5f8433856130bc565b6119b9338585601480546112dd90614172565b6004546001600160a01b03163314611f9c5760405162461bcd60e51b8152600401610cd190614229565b60008111611fa957600080fd5b6040516370a0823160e01b8152306004820152829082906001600160a01b038316906370a082319060240160206040518083038186803b158015611fec57600080fd5b505afa158015612000573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120249190614478565b101561207e5760405162461bcd60e51b815260206004820152602360248201527f436f6e747261637420646f6573206e6f74206f776e20656e6f75676820746f6b604482015262656e7360e81b6064820152608401610cd1565b60005b600a548110156119b957816001600160a01b031663a9059cbb600883815481106120ad576120ad61425e565b9060005260206000200160009054906101000a90046001600160a01b03166064600985815481106120e0576120e061425e565b9060005260206000200154876120f69190614302565b6121009190614491565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561214657600080fd5b505af115801561215a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061217e91906144b3565b50806121898161428a565b915050612081565b6007546001600160a01b031633146121eb5760405162461bcd60e51b815260206004820152601c60248201527f4f776e61626c653a2063616c6c6572206973206e6f742052414d5050000000006044820152606401610cd1565b6007546001600160a01b038281169116141561225c5760405162461bcd60e51b815260206004820152602a60248201527f52414d50503a204e65772052616d70702061646472657373206d75737420626560448201526908191a5999995c995b9d60b21b6064820152608401610cd1565b600780546001600160a01b0319166001600160a01b0383161790556008805482919060009061228d5761228d61425e565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555050565b6004546001600160a01b031633146122e85760405162461bcd60e51b8152600401610cd190614229565b6000908152601260205260409020805460ff19166001179055565b600454600160a01b900460ff161561232d5760405162461bcd60e51b8152600401610cd190614321565b6000818152600560205260409020546123585760405162461bcd60e51b8152600401610cd1906141ad565b61236181610ef2565b60008281526005602052604090205461237b9060016142a5565b11156123995760405162461bcd60e51b8152600401610cd1906142bd565b6123a481600161161b565b34146123c25760405162461bcd60e51b8152600401610cd19061434b565b6123e08160009081526012602052604090205460ff16151560011490565b156123fd5760405162461bcd60e51b8152600401610cd1906144d0565b61241b816000908152600b602052604090205460ff16151560011490565b6124375760405162461bcd60e51b8152600401610cd19061453d565b61244381336001612b91565b61245f5760405162461bcd60e51b8152600401610cd1906143e4565b61246b813360016130bc565b61247f33826001601480546112dd90614172565b50565b6000838152601160205260408120546124dd5760405162461bcd60e51b815260206004820152601760248201527f4d65726b6c6520726f6f74206973206e6f7420736574210000000000000000006044820152606401610cd1565b6040516bffffffffffffffffffffffff19606087901b16602082015260009060340160405160208183030381529060405280519060200120905061256284848080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508a81526011602052604090205492508591506132e99050565b9695505050505050565b6004546001600160a01b031633146125965760405162461bcd60e51b8152600401610cd190614229565b60018110156126065760405162461bcd60e51b815260206004820152603660248201527f546f6b656e2077616c6c6574206d6178206d7573742062652067726561746572604482015275103a3430b71037b91032b8bab0b6103a379037b7329760511b6064820152608401610cd1565b6000918252600f602052604090912055565b6007546001600160a01b03163314611c495760405162461bcd60e51b815260206004820152601c60248201527f4f776e61626c653a2063616c6c6572206973206e6f742052414d5050000000006044820152606401610cd1565b6004546001600160a01b0316331461269c5760405162461bcd60e51b8152600401610cd190614229565b6000908152600e60205260409020805460ff19169055565b6004546001600160a01b031633146126de5760405162461bcd60e51b8152600401610cd190614229565b60008181526020819052604090205460ff16600114156127405760405162461bcd60e51b815260206004820181905260248201527f546f6b656e20494420697320616c726561647920756e747261646561626c65216044820152606401610cd1565b60008181526005602052604090205461276b5760405162461bcd60e51b8152600401610cd1906141f2565b6000908152602081905260409020805460ff19166001179055565b600454600160a01b900460ff16156127b05760405162461bcd60e51b8152600401610cd190614321565b6000828152600560205260409020546127db5760405162461bcd60e51b8152600401610cd1906141ad565b600181101561282c5760405162461bcd60e51b815260206004820152601a60248201527f4d757374206d696e74206174206c65617374203120746f6b656e0000000000006044820152606401610cd1565b6000828152600d602052604090205481111561285a5760405162461bcd60e51b8152600401610cd19061442a565b61286382610ef2565b60008381526005602052604090205461287d9083906142a5565b111561289b5760405162461bcd60e51b8152600401610cd1906142bd565b6128a5828261161b565b34146128c35760405162461bcd60e51b8152600401610cd19061434b565b6128e18260009081526012602052604090205460ff16151560011490565b156128fe5760405162461bcd60e51b8152600401610cd1906144d0565b61291c826000908152600b602052604090205460ff16151560011490565b6129385760405162461bcd60e51b8152600401610cd19061453d565b612943823383612b91565b61295f5760405162461bcd60e51b8152600401610cd1906143e4565b61296a8233836130bc565b611ce5338383601480546112dd90614172565b6004546001600160a01b031633146129a75760405162461bcd60e51b8152600401610cd190614229565b600082815260116020526040902054811415612a055760405162461bcd60e51b815260206004820152601e60248201527f4d65726b6c6520726f6f742077696c6c20626520756e6368616e6765642100006044820152606401610cd1565b60009182526011602052604090912055565b60008381526020819052604090205460ff90811614612a725760405162461bcd60e51b8152602060048201526017602482015276546f6b656e206973206e6f7420747261646561626c652160481b6044820152606401610cd1565b6001600160a01b038516331480612a8e5750612a8e8533610b33565b612aec5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610cd1565b6110f385858585856132ff565b6004546001600160a01b03163314612b235760405162461bcd60e51b8152600401610cd190614229565b6001600160a01b038116612b885760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cd1565b61247f8161306a565b6000838152600e602052604081205460ff161515600114612bb457506001611686565b6001821015612c175760405162461bcd60e51b815260206004820152602960248201527f416d6f756e74206d7573742062652067726561746572207468616e206f7220656044820152687175616c20746f203160b81b6064820152608401610cd1565b6000848152600f60209081526040808320546001600160a01b03871684526010835281842088855290925290912054612c519084906142a5565b1115949350505050565b6004546001600160a01b03163314612c855760405162461bcd60e51b8152600401610cd190614229565b6000908152600e60205260409020805460ff19166001179055565b8151835114612d025760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610cd1565b6001600160a01b038416612d285760405162461bcd60e51b8152600401610cd19061457f565b33612d37818787878787613420565b60005b8451811015612e20576000858281518110612d5757612d5761425e565b602002602001015190506000858381518110612d7557612d7561425e565b60209081029190910181015160008481526001835260408082206001600160a01b038e168352909352919091205490915081811015612dc65760405162461bcd60e51b8152600401610cd1906145c4565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612e059084906142a5565b9250508190555050505080612e199061428a565b9050612d3a565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612e7092919061460e565b60405180910390a4612e86818787878787613458565b505050505050565b6001600160a01b038416612eee5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610cd1565b33612f0e81600087612eff886135c3565b612f08886135c3565b87613420565b60008481526001602090815260408083206001600160a01b038916845290915281208054859290612f409084906142a5565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46110f38160008787878761360e565b600454600160a01b900460ff16612ff05760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610cd1565b6004805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000601554600161304e91906142a5565b905090565b601580549060006130638361428a565b9190505550565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821660009081526010602090815260408083208684529091529020546130eb9082906142a5565b6001600160a01b039092166000908152601060209081526040808320958352949052929092205550565b600454600160a01b900460ff161561313f5760405162461bcd60e51b8152600401610cd190614321565b6004805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586130203390565b4760005b600a54811015611ce5576131f66008828154811061319e5761319e61425e565b9060005260206000200160009054906101000a90046001600160a01b03166064600984815481106131d1576131d161425e565b9060005260206000200154856131e79190614302565b6131f19190614491565b6136d8565b806132008161428a565b91505061317e565b816001600160a01b0316836001600160a01b0316141561327c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610cd1565b6001600160a01b03838116600081815260026020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000826132f6858461376e565b14949350505050565b6001600160a01b0384166133255760405162461bcd60e51b8152600401610cd19061457f565b33613335818787612eff886135c3565b60008481526001602090815260408083206001600160a01b038a168452909152902054838110156133785760405162461bcd60e51b8152600401610cd1906145c4565b60008581526001602090815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906133b79084906142a5565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461341782888888888861360e565b50505050505050565b600454600160a01b900460ff161561344a5760405162461bcd60e51b8152600401610cd190614321565b612e868686868686866137da565b6001600160a01b0384163b15612e865760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061349c908990899088908890889060040161463c565b602060405180830381600087803b1580156134b657600080fd5b505af19250505080156134e6575060408051601f3d908101601f191682019092526134e39181019061469a565b60015b613593576134f26146b7565b806308c379a0141561352c57506135076146d3565b80613512575061352e565b8060405162461bcd60e51b8152600401610cd19190613a45565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610cd1565b6001600160e01b0319811663bc197c8160e01b146134175760405162461bcd60e51b8152600401610cd19061475c565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106135fd576135fd61425e565b602090810291909101015292915050565b6001600160a01b0384163b15612e865760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061365290899089908890889088906004016147a4565b602060405180830381600087803b15801561366c57600080fd5b505af192505050801561369c575060408051601f3d908101601f191682019092526136999181019061469a565b60015b6136a8576134f26146b7565b6001600160e01b0319811663f23a6e6160e01b146134175760405162461bcd60e51b8152600401610cd19061475c565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613725576040519150601f19603f3d011682016040523d82523d6000602084013e61372a565b606091505b5050905080610fa45760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610cd1565b600081815b84518110156116135760008582815181106137905761379061425e565b602002602001015190508083116137b657600083815260208290526040902092506137c7565b600081815260208490526040902092505b50806137d28161428a565b915050613773565b6001600160a01b0385166138615760005b835181101561385f578281815181106138065761380661425e565b6020026020010151600560008684815181106138245761382461425e565b60200260200101518152602001908152602001600020600082825461384991906142a5565b9091555061385890508161428a565b90506137eb565b505b6001600160a01b038416612e865760005b83518110156134175782818151811061388d5761388d61425e565b6020026020010151600560008684815181106138ab576138ab61425e565b6020026020010151815260200190815260200160002060008282546138d091906147e9565b909155506138df90508161428a565b9050613872565b8280546138f290614172565b90600052602060002090601f016020900481019282613914576000855561395a565b82601f1061392d57805160ff191683800117855561395a565b8280016001018555821561395a579182015b8281111561395a57825182559160200191906001019061393f565b5061396692915061396a565b5090565b5b80821115613966576000815560010161396b565b80356001600160a01b038116811461399657600080fd5b919050565b600080604083850312156139ae57600080fd5b6139b78361397f565b946020939093013593505050565b6001600160e01b03198116811461247f57600080fd5b6000602082840312156139ed57600080fd5b8135611686816139c5565b6000815180845260005b81811015613a1e57602081850181015186830182015201613a02565b81811115613a30576000602083870101525b50601f01601f19169290920160200192915050565b60208152600061168660208301846139f8565b600060208284031215613a6a57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715613aac57613aac613a71565b6040525050565b600082601f830112613ac457600080fd5b81356001600160401b03811115613add57613add613a71565b604051613af4601f8301601f191660200182613a87565b818152846020838601011115613b0957600080fd5b816020850160208301376000918101602001919091529392505050565b60008060408385031215613b3957600080fd5b8235915060208301356001600160401b03811115613b5657600080fd5b613b6285828601613ab3565b9150509250929050565b60006001600160401b03821115613b8557613b85613a71565b5060051b60200190565b600082601f830112613ba057600080fd5b81356020613bad82613b6c565b604051613bba8282613a87565b83815260059390931b8501820192828101915086841115613bda57600080fd5b8286015b84811015613bf55780358352918301918301613bde565b509695505050505050565b600080600080600060a08688031215613c1857600080fd5b613c218661397f565b9450613c2f6020870161397f565b935060408601356001600160401b0380821115613c4b57600080fd5b613c5789838a01613b8f565b94506060880135915080821115613c6d57600080fd5b613c7989838a01613b8f565b93506080880135915080821115613c8f57600080fd5b50613c9c88828901613ab3565b9150509295509295909350565b60008060408385031215613cbc57600080fd5b50508035926020909101359150565b600080600060608486031215613ce057600080fd5b613ce98461397f565b95602085013595506040909401359392505050565b600082601f830112613d0f57600080fd5b81356020613d1c82613b6c565b604051613d298282613a87565b83815260059390931b8501820192828101915086841115613d4957600080fd5b8286015b84811015613bf557613d5e8161397f565b8352918301918301613d4d565b60008060408385031215613d7e57600080fd5b82356001600160401b0380821115613d9557600080fd5b613da186838701613cfe565b93506020850135915080821115613db757600080fd5b50613b6285828601613b8f565b600081518084526020808501945080840160005b83811015613df457815187529582019590820190600101613dd8565b509495945050505050565b6020815260006116866020830184613dc4565b60008060408385031215613e2557600080fd5b82359150613e356020840161397f565b90509250929050565b801515811461247f57600080fd5b600080600080600080600080610100898b031215613e6957600080fd5b8835975060208901359650604089013595506060890135613e8981613e3e565b94506080890135613e9981613e3e565b935060a0890135613ea981613e3e565b925060c0890135915060e08901356001600160401b03811115613ecb57600080fd5b613ed78b828c01613ab3565b9150509295985092959890939650565b600080600060608486031215613efc57600080fd5b83356001600160401b03811115613f1257600080fd5b613f1e86828701613cfe565b9660208601359650604090950135949350505050565b60008083601f840112613f4657600080fd5b5081356001600160401b03811115613f5d57600080fd5b6020830191508360208260051b8501011115613f7857600080fd5b9250929050565b600080600060408486031215613f9457600080fd5b8335925060208401356001600160401b03811115613fb157600080fd5b613fbd86828701613f34565b9497909650939450505050565b60008060408385031215613fdd57600080fd5b613fe68361397f565b91506020830135613ff681613e3e565b809150509250929050565b6000806000806060858703121561401757600080fd5b843593506020850135925060408501356001600160401b0381111561403b57600080fd5b61404787828801613f34565b95989497509550505050565b60006020828403121561406557600080fd5b6116868261397f565b6000806000806060858703121561408457600080fd5b61408d8561397f565b93506020850135925060408501356001600160401b0381111561403b57600080fd5b600080604083850312156140c257600080fd5b6140cb8361397f565b9150613e356020840161397f565b600080600080600060a086880312156140f157600080fd5b6140fa8661397f565b94506141086020870161397f565b9350604086013592506060860135915060808601356001600160401b0381111561413157600080fd5b613c9c88828901613ab3565b60008060006060848603121561415257600080fd5b833592506141626020850161397f565b9150604084013590509250925092565b600181811c9082168061418657607f821691505b602082108114156141a757634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526025908201527f4552433732315472616461626c65237572693a204e4f4e4558495354454e545f6040820152642a27a5a2a760d91b606082015260800190565b60208082526018908201527f546f6b656e20494420646f6573206e6f74206578697374210000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561429e5761429e614274565b5060010190565b600082198211156142b8576142b8614274565b500190565b60208082526025908201527f43616e6e6f74206d696e74206f76657220737570706c7920636170206f6620746040820152646f6b656e2160d81b606082015260800190565b600081600019048311821515161561431c5761431c614274565b500290565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526027908201527f56616c7565206e6565647320746f2062652065786163746c7920746865206d696040820152666e74206665652160c81b606082015260800190565b60208082526032908201527f416c6c6f776c697374204d6f646520616e64204d696e74696e67206d75737420604082015271189948195b98589b1959081d1bc81b5a5b9d60721b606082015260800190565b60208082526026908201527f57616c6c6574206d696e74206d6178696d756d207265616368656420666f72206040820152653a37b5b2b71760d11b606082015260800190565b6020808252602e908201527f43616e6e6f74206d696e74206d6f7265207468616e206d6178206d696e74207060408201526d32b9103a3930b739b0b1ba34b7b760911b606082015260800190565b60006020828403121561448a57600080fd5b5051919050565b6000826144ae57634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156144c557600080fd5b815161168681613e3e565b60208082526047908201527f5075626c6963206d696e74696e67206973206e6f7420656e61626c656420776860408201527f696c6520636f6e747261637420697320696e20616c6c6f776c697374206f6e6c6060820152663c9036b7b2329760c91b608082015260a00190565b60208082526022908201527f4d696e74696e6720666f72207468697320746f6b656e206973206e6f74206f7060408201526132b760f11b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006146216040830185613dc4565b82810360208401526146338185613dc4565b95945050505050565b6001600160a01b0386811682528516602082015260a06040820181905260009061466890830186613dc4565b828103606084015261467a8186613dc4565b9050828103608084015261468e81856139f8565b98975050505050505050565b6000602082840312156146ac57600080fd5b8151611686816139c5565b600060033d11156146d05760046000803e5060005160e01c5b90565b600060443d10156146e15790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561471057505050505090565b82850191508151818111156147285750505050505090565b843d87010160208285010111156147425750505050505090565b61475160208286010187613a87565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906147de908301846139f8565b979650505050505050565b6000828210156147fb576147fb614274565b50039056fea264697066735822122087d10095c23058adcb4f59e06ac2288c0a3c3a2f2e2db6848d905445eb957a1764736f6c63430008090033

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

00000000000000000000000071f076d265cd7d85de3e4f795d3913d6ff36b568

-----Decoded View---------------

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000071f076d265cd7d85de3e4f795d3913d6ff36b568


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ 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.