ETH Price: $3,161.43 (+4.10%)

Token

Yat Gems ()
 

Overview

Max Total Supply

2,756

Holders

2,124

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
x107.eth
0x7ca38bac0a7c2d603e0d877f2c16e6792d7e9ee5
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Yat Magic Mirror Gems were created to celebrate the defining moments in the Web 3 age. Each Gem is a remarkable event in NFT or DeFi history that propelled the space forward and moved the culture in a significant way.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
YatGems

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : YatGems.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeCast.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./YatSignatures.sol";

contract YatGems is ERC1155, Ownable, YatSignatures {
    using SafeCast for uint256;
    using Strings for uint256;

    // For each Gem (series) we have a name, and the counter of the gems that have been minted in that series.
    struct GemInfo {
        string uuid;
        string name;
        uint256 supplyCap;
        uint256 supply;
    }

    //----------------------------------------    Modifiers and Events    ----------------------------------------------

    modifier onlyAdmin {
        require(isAdmin(_msgSender()), "Not an Admin");
        _;
    }

    modifier onExistingGem(uint256 gemId) {
        require(gemExists(gemId), "Gem must exist");
        _;
    }

    event TokenMinted(uint256 gemId, string fragmentId, address to);
    event NewGemCreated(uint256 gemId, string gemUuid, string name, uint256 supplyCap);
    event ContractURISet(string contractUri);
    event AdminAdded(address admin);
    event AdminRemoved(address admin);

    //---------------------------------------      State variables       -----------------------------------------------
    string public contractURI;
    string  public name;
    mapping(uint256 => GemInfo) private _gemInfo; // A mapping of the Gem (series) id and its metadata
    mapping(address => bool) private _admins;
    mapping(string => bool) private _usedSignatures;
    mapping(uint256 => mapping(address => uint256)) private _burns;
    //-----------------------------------------      Constructor       -------------------------------------------------

    constructor(
        address[] memory admins_,
        string memory name_,
        string memory tokenBaseURI_,
        string memory contractURI_,
        address authorizedSigner
    )
    ERC1155(tokenBaseURI_)
    YatSignatures(authorizedSigner)
    {
        addAdmin(msg.sender);
        for (uint256 i = 0; i < admins_.length; i++) {
            addAdmin(admins_[i]);
        }
        name = name_;
        contractURI = contractURI_;
    }

    //-------------------------------------------    Signature override  -----------------------------------------------
    function _signaturePrefix() internal pure override returns (string memory) {
        return "YatGems";
    }

    /**
    * Override the challenge calculation to disable the use of nonces
    */
    function _calculateChallenge(string memory message, address account, uint256 expiry) internal virtual override returns (bytes32) {
        string memory prefix = _signaturePrefix();
        bytes32 hash = keccak256(abi.encodePacked(prefix, message, account, expiry));
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    //-------------------------------------------    Gem functions       -----------------------------------------------

    function mintNewGem(string memory name, string memory gemUuid, uint256 gemSupplyCap) public onlyAdmin {
        require(bytes(name).length > 0, "Gem name cannot be empty");
        uint256 gemId = uuidToUint(gemUuid);
        require(!gemExists(gemId), "Gem already exists");
        GemInfo memory info = GemInfo(gemUuid, name, gemSupplyCap, 0);
        _gemInfo[gemId] = info;
        emit NewGemCreated(gemId, gemUuid, name, gemSupplyCap);
    }

    /**
    * Returns the name of the gem at index `gemId`, or an empty string if it does not exist
    */
    function gemName(uint256 gemId) public view returns (string memory) {
        return _gemInfo[gemId].name;
    }

    /**
    * Returns the supply cap the gem at index `gemId`, or 0 if it does not exist
    */
    function supplyCap(uint256 gemId) public view returns (uint256) {
        return _gemInfo[gemId].supplyCap;
    }

    /**
    * Returns the supply cap the gem at index `gemId`, or 0 if it does not exist
    */
    function currentSupply(uint256 gemId) public view returns (uint256) {
        return _gemInfo[gemId].supply;
    }

    /**
    * Returns true if this Gem has been created or not.
    * Because `name` cannot be empty, we use this as the existence test
    */
    function gemExists(uint256 gemId) public view returns (bool) {
        return bytes(_gemInfo[gemId].name).length > 0;
    }

    function uuidToUint(string memory uuid) public pure returns (uint256) {
        return uint256(keccak256(abi.encodePacked(uuid)));
    }

    //-------------------------------------------    Gem token functions    --------------------------------------------

    /**
    * Override  _beforeTokenTransfer to ensure that
    * - When minting, the token doesn't already exist, and the gem DOES exist, and we don't hit supply cap
    * - When burning, no extra checks are made
    * - When transferring, no extra checks are made
    */
    function _beforeTokenTransfer(
        address _operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory _data
    ) internal view override {
        // No need to check array lengths are equal. This is done already in the calling function.
        // balance checks are done after this call in main super.transfer function

        // Checks for all types of transfers
        for (uint256 i = 0; i < ids.length; i++) {
            require(gemExists(ids[i]), "Gem must exist");
            require(amounts[i] > 0, "Cannot transfer 0 fragments");
        }

        if (from == address(0) && to != address(0)) {// we are MINTING
            for (uint256 i = 0; i < ids.length; i++) {
                // Check that the gems exist
                uint256 gemId = ids[i];
                uint256 amount = amounts[i];
                // Check that we're not exceeding the supply cap with this mint
                GemInfo storage info = _gemInfo[gemId];
                require(info.supply + amount <= info.supplyCap, "Mint would exceed gem max supply");
            }
        }
    }

    function _afterTokenTransfer(address from, address to, uint256 gemId, uint256 amount) internal {
        if (from == address(0) && to != address(0)) {// we are MINTING
            GemInfo storage info = _gemInfo[gemId];
            info.supply += amount;
        }
        // For burning:
        // Do nothing. The spec says that we track the total supply ever minted, so this never goes down
        // For transfers, the supply does not change, so still do nothing.
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        super.safeBatchTransferFrom(from, to, ids, amounts, data);
        for (uint256 i = 0; i < ids.length; i++) {
            _afterTokenTransfer(from, to, ids[i], amounts[i]);
        }
    }

    /**
    * An admin can mint a token on behalf of a user. It will assign the next token index for the existing gemId (which
    * must exist, and transfer ownership to the user
    */
    function adminMint(address to, uint256 gemId, string memory uuid) public onlyAdmin onExistingGem(gemId) {
        string memory fragmentId = _fragmentId(gemId, uuid);
        _mintToken(to, gemId, fragmentId);
    }

    function _fragmentId(uint256 gemId, string memory uuid) internal pure returns (string memory) {
        return string(abi.encodePacked(gemId.toHexString(), "|", uuid));
    }

    function mint(uint256 gemId, string memory uuid, uint256 expiry, bytes memory signature) public onExistingGem(gemId) {
        string memory fragmentId = _fragmentId(gemId, uuid);
        address to = msg.sender;
        require(!_usedSignatures[fragmentId], "Signature has already been used");
        bool isValidSig = _verifySignature(fragmentId, to, expiry, signature);
        require(isValidSig, "Invalid minting signature");
        _mintToken(to, gemId, fragmentId);
    }

    // Invalidate the signature, then call mint, then emit
    function _mintToken(address to, uint256 gemId, string memory fragmentId) private {
        require(_usedSignatures[fragmentId] == false, "Fragment has already been minted");
        _usedSignatures[fragmentId] = true;
        _mint(to, gemId, 1, "");
        _afterTokenTransfer(address(0), to, gemId, 1);
        emit TokenMinted(gemId, fragmentId, to);
    }

    // Burns fragments. Only the token owner can burn. As part of the burn, we record that the user has burnt this fragment
    // so that they may be able to mint an effigy gem fragment in future
    function burn(uint256 gemId, uint256 amount) public {
        ERC1155._burn(msg.sender, gemId, amount);
        _burns[gemId][msg.sender] += amount;
    }

    // Returns the number of gem fragments that the given address has burnt
    function burnCount(address from, uint256 gemId) public view returns (uint256) {
        return _burns[gemId][from];
    }

    //---------------------------- Transfer and Ownership functions ---------------------------//

    function addAdmin(address newAdmin) public onlyOwner {
        _admins[newAdmin] = true;
        emit AdminAdded(newAdmin);
    }

    function revokeAdmin(address admin) public onlyOwner {
        require(admin != owner(), "Can't remove owner from admins");
        _admins[admin] = false;
        emit AdminRemoved(admin);
    }

    function isAdmin(address addr) public view returns (bool) {
        return _admins[addr];
    }

    function transfer(string memory gemUuid, uint256 amount, address to) public {
        uint256 gemId = uuidToUint(gemUuid);
        safeTransferFrom(msg.sender, to, gemId, amount, "");
    }

    //---------------------------- Metadata / OpenSea functions ---------------------------//

    function setContractURI(string memory newContractURI) public onlyAdmin {
        contractURI = newContractURI;
        emit ContractURISet(contractURI);
    }

    function setURI(string memory newURI) public onlyAdmin {
        _setURI(newURI);
    }

    //---------------------------- interface support ---------------------------//

    function supportsInterface(bytes4 interfaceId) public view override(ERC1155) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

}

File 2 of 13 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @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 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(
            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 {
        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 3 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

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

    /**
     * @dev 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 4 of 13 : SafeCast.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeCast.sol)

pragma solidity ^0.8.0;

/**
 * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow
 * checks.
 *
 * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can
 * easily result in undesired exploitation or bugs, since developers usually
 * assume that overflows raise errors. `SafeCast` restores this intuition by
 * reverting the transaction when such an operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 *
 * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing
 * all math on `uint256` and `int256` and then downcasting.
 */
library SafeCast {
    /**
     * @dev Returns the downcasted uint224 from uint256, reverting on
     * overflow (when the input is greater than largest uint224).
     *
     * Counterpart to Solidity's `uint224` operator.
     *
     * Requirements:
     *
     * - input must fit into 224 bits
     */
    function toUint224(uint256 value) internal pure returns (uint224) {
        require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits");
        return uint224(value);
    }

    /**
     * @dev Returns the downcasted uint128 from uint256, reverting on
     * overflow (when the input is greater than largest uint128).
     *
     * Counterpart to Solidity's `uint128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     */
    function toUint128(uint256 value) internal pure returns (uint128) {
        require(value <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits");
        return uint128(value);
    }

    /**
     * @dev Returns the downcasted uint96 from uint256, reverting on
     * overflow (when the input is greater than largest uint96).
     *
     * Counterpart to Solidity's `uint96` operator.
     *
     * Requirements:
     *
     * - input must fit into 96 bits
     */
    function toUint96(uint256 value) internal pure returns (uint96) {
        require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits");
        return uint96(value);
    }

    /**
     * @dev Returns the downcasted uint64 from uint256, reverting on
     * overflow (when the input is greater than largest uint64).
     *
     * Counterpart to Solidity's `uint64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     */
    function toUint64(uint256 value) internal pure returns (uint64) {
        require(value <= type(uint64).max, "SafeCast: value doesn't fit in 64 bits");
        return uint64(value);
    }

    /**
     * @dev Returns the downcasted uint32 from uint256, reverting on
     * overflow (when the input is greater than largest uint32).
     *
     * Counterpart to Solidity's `uint32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     */
    function toUint32(uint256 value) internal pure returns (uint32) {
        require(value <= type(uint32).max, "SafeCast: value doesn't fit in 32 bits");
        return uint32(value);
    }

    /**
     * @dev Returns the downcasted uint16 from uint256, reverting on
     * overflow (when the input is greater than largest uint16).
     *
     * Counterpart to Solidity's `uint16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     */
    function toUint16(uint256 value) internal pure returns (uint16) {
        require(value <= type(uint16).max, "SafeCast: value doesn't fit in 16 bits");
        return uint16(value);
    }

    /**
     * @dev Returns the downcasted uint8 from uint256, reverting on
     * overflow (when the input is greater than largest uint8).
     *
     * Counterpart to Solidity's `uint8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     */
    function toUint8(uint256 value) internal pure returns (uint8) {
        require(value <= type(uint8).max, "SafeCast: value doesn't fit in 8 bits");
        return uint8(value);
    }

    /**
     * @dev Converts a signed int256 into an unsigned uint256.
     *
     * Requirements:
     *
     * - input must be greater than or equal to 0.
     */
    function toUint256(int256 value) internal pure returns (uint256) {
        require(value >= 0, "SafeCast: value must be positive");
        return uint256(value);
    }

    /**
     * @dev Returns the downcasted int128 from int256, reverting on
     * overflow (when the input is less than smallest int128 or
     * greater than largest int128).
     *
     * Counterpart to Solidity's `int128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     *
     * _Available since v3.1._
     */
    function toInt128(int256 value) internal pure returns (int128) {
        require(value >= type(int128).min && value <= type(int128).max, "SafeCast: value doesn't fit in 128 bits");
        return int128(value);
    }

    /**
     * @dev Returns the downcasted int64 from int256, reverting on
     * overflow (when the input is less than smallest int64 or
     * greater than largest int64).
     *
     * Counterpart to Solidity's `int64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     *
     * _Available since v3.1._
     */
    function toInt64(int256 value) internal pure returns (int64) {
        require(value >= type(int64).min && value <= type(int64).max, "SafeCast: value doesn't fit in 64 bits");
        return int64(value);
    }

    /**
     * @dev Returns the downcasted int32 from int256, reverting on
     * overflow (when the input is less than smallest int32 or
     * greater than largest int32).
     *
     * Counterpart to Solidity's `int32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     *
     * _Available since v3.1._
     */
    function toInt32(int256 value) internal pure returns (int32) {
        require(value >= type(int32).min && value <= type(int32).max, "SafeCast: value doesn't fit in 32 bits");
        return int32(value);
    }

    /**
     * @dev Returns the downcasted int16 from int256, reverting on
     * overflow (when the input is less than smallest int16 or
     * greater than largest int16).
     *
     * Counterpart to Solidity's `int16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     *
     * _Available since v3.1._
     */
    function toInt16(int256 value) internal pure returns (int16) {
        require(value >= type(int16).min && value <= type(int16).max, "SafeCast: value doesn't fit in 16 bits");
        return int16(value);
    }

    /**
     * @dev Returns the downcasted int8 from int256, reverting on
     * overflow (when the input is less than smallest int8 or
     * greater than largest int8).
     *
     * Counterpart to Solidity's `int8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     *
     * _Available since v3.1._
     */
    function toInt8(int256 value) internal pure returns (int8) {
        require(value >= type(int8).min && value <= type(int8).max, "SafeCast: value doesn't fit in 8 bits");
        return int8(value);
    }

    /**
     * @dev Converts an unsigned uint256 into a signed int256.
     *
     * Requirements:
     *
     * - input must be less than or equal to maxInt256.
     */
    function toInt256(uint256 value) internal pure returns (int256) {
        // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive
        require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256");
        return int256(value);
    }
}

File 5 of 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

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

File 6 of 13 : YatSignatures.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

contract YatSignatures {
    address private _authorizedSigner;
    address private _owner;
    mapping (address => uint256) private _nonce;

    modifier onlyContractOwner() {
        require(msg.sender == _owner, "Not the owner");
        _;
    }

    constructor (address authorizedSigner) {
        _owner = msg.sender;
        _authorizedSigner = authorizedSigner;
    }

    function getNonce(address clientAddress) public view returns (uint256) {
        require(clientAddress != address(0), "Null address cannot sign");
        return _nonce[clientAddress];
    }

    function getSigner() public view returns (address) {
        return _authorizedSigner;
    }

    function setAuthorizedSigner(address newSigner) external onlyContractOwner {
        require(newSigner != address(0), "Cannot set signer to null address");
        _authorizedSigner = newSigner;
    }

    function _signaturePrefix() internal pure virtual returns (string memory) {
        return "yat";
    }

    /**
    * Calculate the signature challenge as a combination of
    *  - the prefix
    *  - the nonce for the destination address
    *  - an arbitrary string message
    *  - the destination account
    *  - the expiry time
    *
    * This can be overridden if the challenge needs to be customised, but it's not recommended
    */
    function _calculateChallenge(string memory message, address account, uint256 expiry) internal virtual returns (bytes32) {
        string memory prefix = _signaturePrefix();
        uint256 nonce = getNonce(account);
        // Immediately invalidate the signature for further use by incrementing the nonce.
        _nonce[account] += 1;
        bytes32 hash = keccak256(abi.encodePacked(prefix, nonce, message, account, expiry));
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /*
    * You can override this function to customise how to validate the message content. For example, the address
    * might have to match the "to" field in a mint, etc.
    * By default, we check that the expiry time is ahead of the current block timestamp
    */
    function validateMessageContent(string memory message, address account, uint256 expiry) internal virtual {
        require(block.timestamp < expiry, "Signature has expired");
        require(bytes(message).length > 0, "Message cannot be empty");
        require(account != address(0), "Address cannot be zero");
    }

    function _verifySignature(string memory message, address account, uint256 expiry, bytes memory signature) internal returns (bool) {
        validateMessageContent(message, account, expiry);
        bytes32 challenge = _calculateChallenge(message, account, expiry);
        return _recoverSigner(challenge, signature) == _authorizedSigner;
    }

    function _splitSignature(bytes memory _signature) internal pure returns (bytes32 r, bytes32 s, uint8 v) {
        require(_signature.length == 65, "Signature is not 65 bytes");
        assembly {
            r := mload(add(_signature, 32))
            s := mload(add(_signature, 64))
            v := byte(0, mload(add(_signature, 96)))
        }
    }

    function _recoverSigner(bytes32 ethSignedMessageHash, bytes memory signature) internal pure returns (address) {
        (bytes32 r, bytes32 s, uint8 v) = _splitSignature(signature);
        address signer = ecrecover(ethSignedMessageHash, v, r, s);
        require(signer != address(0), "ECDSA: Invalid signature");
        return signer;
    }
}

File 7 of 13 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @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 8 of 13 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @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.
     *
     * NOTE: 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.
     *
     * NOTE: 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 9 of 13 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @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 10 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"admins_","type":"address[]"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"tokenBaseURI_","type":"string"},{"internalType":"string","name":"contractURI_","type":"string"},{"internalType":"address","name":"authorizedSigner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"admin","type":"address"}],"name":"AdminAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"admin","type":"address"}],"name":"AdminRemoved","type":"event"},{"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":false,"internalType":"string","name":"contractUri","type":"string"}],"name":"ContractURISet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"gemId","type":"uint256"},{"indexed":false,"internalType":"string","name":"gemUuid","type":"string"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"uint256","name":"supplyCap","type":"uint256"}],"name":"NewGemCreated","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":"uint256","name":"gemId","type":"uint256"},{"indexed":false,"internalType":"string","name":"fragmentId","type":"string"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"TokenMinted","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"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"addAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"gemId","type":"uint256"},{"internalType":"string","name":"uuid","type":"string"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","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":"gemId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"gemId","type":"uint256"}],"name":"burnCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gemId","type":"uint256"}],"name":"currentSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gemId","type":"uint256"}],"name":"gemExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gemId","type":"uint256"}],"name":"gemName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"clientAddress","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isAdmin","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":"gemId","type":"uint256"},{"internalType":"string","name":"uuid","type":"string"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"gemUuid","type":"string"},{"internalType":"uint256","name":"gemSupplyCap","type":"uint256"}],"name":"mintNewGem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"revokeAdmin","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":"address","name":"newSigner","type":"address"}],"name":"setAuthorizedSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newContractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"gemId","type":"uint256"}],"name":"supplyCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"gemUuid","type":"string"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"transfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"uuid","type":"string"}],"name":"uuidToUint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"}]

60806040523480156200001157600080fd5b5060405162003682380380620036828339810160408190526200003491620003d4565b808362000041816200010f565b506200004d3362000128565b60058054336001600160a01b03199182168117909255600480549091166001600160a01b03939093169290921790915562000088906200017a565b60005b8551811015620000d757620000c2868281518110620000ae57620000ae62000517565b60200260200101516200017a60201b60201c565b80620000ce816200052d565b9150506200008b565b508351620000ed90600890602087019062000233565b5081516200010390600790602085019062000233565b50505050505062000594565b80516200012490600290602084019062000233565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6003546001600160a01b03163314620001d95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b6001600160a01b0381166000818152600a6020908152604091829020805460ff1916600117905590519182527f44d6d25963f097ad14f29f06854a01f575648a1ef82f30e562ccd3889717e339910160405180910390a150565b828054620002419062000557565b90600052602060002090601f016020900481019282620002655760008555620002b0565b82601f106200028057805160ff1916838001178555620002b0565b82800160010185558215620002b0579182015b82811115620002b057825182559160200191906001019062000293565b50620002be929150620002c2565b5090565b5b80821115620002be5760008155600101620002c3565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200031a576200031a620002d9565b604052919050565b80516001600160a01b03811681146200033a57600080fd5b919050565b600082601f8301126200035157600080fd5b81516001600160401b038111156200036d576200036d620002d9565b602062000383601f8301601f19168201620002ef565b82815285828487010111156200039857600080fd5b60005b83811015620003b85785810183015182820184015282016200039b565b83811115620003ca5760008385840101525b5095945050505050565b600080600080600060a08688031215620003ed57600080fd5b85516001600160401b03808211156200040557600080fd5b818801915088601f8301126200041a57600080fd5b8151602082821115620004315762000431620002d9565b8160051b62000442828201620002ef565b928352848101820192828101908d8511156200045d57600080fd5b958301955b848710156200048657620004768762000322565b8252958301959083019062000462565b928c0151929a5091945050505080821115620004a157600080fd5b620004af89838a016200033f565b95506040880151915080821115620004c657600080fd5b620004d489838a016200033f565b94506060880151915080821115620004eb57600080fd5b50620004fa888289016200033f565b9250506200050b6080870162000322565b90509295509295909350565b634e487b7160e01b600052603260045260246000fd5b60006000198214156200055057634e487b7160e01b600052601160045260246000fd5b5060010190565b600181811c908216806200056c57607f821691505b602082108114156200058e57634e487b7160e01b600052602260045260246000fd5b50919050565b6130de80620005a46000396000f3fe608060405234801561001057600080fd5b50600436106101ef5760003560e01c8063704802751161010f578063c91435e2116100a2578063f242432a11610071578063f242432a146104ba578063f2fde38b146104cd578063fa0f18c1146104e0578063fbc56406146104f357600080fd5b8063c91435e214610450578063d279b0ca14610463578063e8a3d48514610476578063e985e9c51461047e57600080fd5b8063938e3d7b116100de578063938e3d7b14610404578063a22cb46514610417578063b390c0ab1461042a578063c33584831461043d57600080fd5b806370480275146103b3578063715018a6146103c65780637ac3c02f146103ce5780638da5cb5b146103f357600080fd5b80632d0335ab1161018757806342b1bcfd1161015657806342b1bcfd146103285780634e1273f41461033b5780635a85cb591461035b5780635b7460771461039057600080fd5b80632d0335ab146102cc5780632d345670146102df5780632eb2c2d6146102f257806340b71c401461030557600080fd5b80630e89341c116101c35780630e89341c146102675780631667c4291461027a5780631b6ea4d31461028d57806324d7806c146102a057600080fd5b8062fdd58e146101f457806301ffc9a71461021a57806302fe53051461023d57806306fdde0314610252575b600080fd5b610207610202366004612470565b610506565b6040519081526020015b60405180910390f35b61022d6102283660046124b0565b61059d565b6040519015158152602001610211565b61025061024b366004612582565b6105ae565b005b61025a6105df565b604051610211919061260e565b61025a610275366004612621565b61066d565b61022d610288366004612621565b610701565b61025a61029b366004612621565b61072a565b61022d6102ae36600461263a565b6001600160a01b03166000908152600a602052604090205460ff1690565b6102076102da36600461263a565b61074a565b6102506102ed36600461263a565b6107be565b6102506103003660046126e9565b61089e565b610207610313366004612621565b60009081526009602052604090206002015490565b610250610336366004612792565b61090f565b61034e6103493660046127fe565b610a96565b6040516102119190612903565b610207610369366004612470565b6000908152600c602090815260408083206001600160a01b03949094168352929052205490565b61020761039e366004612621565b60009081526009602052604090206003015490565b6102506103c136600461263a565b610bbf565b610250610c3d565b6004546001600160a01b03165b6040516001600160a01b039091168152602001610211565b6003546001600160a01b03166103db565b610250610412366004612582565b610c73565b610250610425366004612916565b610cdc565b610250610438366004612952565b610ceb565b61025061044b366004612974565b610d28565b61025061045e3660046129ca565b610d57565b61025061047136600461263a565b610dc2565b61025a610e8e565b61022d61048c366004612a20565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6102506104c8366004612a53565b610e9b565b6102506104db36600461263a565b610f22565b6102076104ee366004612582565b610fba565b610250610501366004612ab7565b610feb565b60006001600160a01b0383166105775760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006105a882611106565b92915050565b6105b7336102ae565b6105d35760405162461bcd60e51b815260040161056e90612b2d565b6105dc81611156565b50565b600880546105ec90612b53565b80601f016020809104026020016040519081016040528092919081815260200182805461061890612b53565b80156106655780601f1061063a57610100808354040283529160200191610665565b820191906000526020600020905b81548152906001019060200180831161064857829003601f168201915b505050505081565b60606002805461067c90612b53565b80601f01602080910402602001604051908101604052809291908181526020018280546106a890612b53565b80156106f55780601f106106ca576101008083540402835291602001916106f5565b820191906000526020600020905b8154815290600101906020018083116106d857829003601f168201915b50505050509050919050565b6000818152600960205260408120600101805482919061072090612b53565b9050119050919050565b600081815260096020526040902060010180546060919061067c90612b53565b60006001600160a01b0382166107a25760405162461bcd60e51b815260206004820152601860248201527f4e756c6c20616464726573732063616e6e6f74207369676e0000000000000000604482015260640161056e565b506001600160a01b031660009081526006602052604090205490565b6003546001600160a01b031633146107e85760405162461bcd60e51b815260040161056e90612b8e565b6003546001600160a01b03828116911614156108465760405162461bcd60e51b815260206004820152601e60248201527f43616e27742072656d6f7665206f776e65722066726f6d2061646d696e730000604482015260640161056e565b6001600160a01b0381166000818152600a6020908152604091829020805460ff1916905590519182527fa3b62bc36326052d97ea62d63c3d60308ed4c3ea8ac079dd8499f1e9c4f80c0f91015b60405180910390a150565b6108ab8585858585611169565b60005b8351811015610907576108f586868684815181106108ce576108ce612bc3565b60200260200101518685815181106108e8576108e8612bc3565b60200260200101516111f9565b806108ff81612bef565b9150506108ae565b505050505050565b610918336102ae565b6109345760405162461bcd60e51b815260040161056e90612b2d565b60008351116109855760405162461bcd60e51b815260206004820152601860248201527f47656d206e616d652063616e6e6f7420626520656d7074790000000000000000604482015260640161056e565b600061099083610fba565b905061099b81610701565b156109dd5760405162461bcd60e51b815260206004820152601260248201527147656d20616c72656164792065786973747360701b604482015260640161056e565b60408051608081018252848152602080820187905281830185905260006060830181905284815260098252929092208151805192938493610a2192849201906123bb565b506020828101518051610a3a92600185019201906123bb565b5060408201518160020155606082015181600301559050507f668f3ca7501fac37894c21f49632fd32d25cb148c1111a93fdb3b3fb519877d582858786604051610a879493929190612c0a565b60405180910390a15050505050565b60608151835114610afb5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161056e565b600083516001600160401b03811115610b1657610b166124cd565b604051908082528060200260200182016040528015610b3f578160200160208202803683370190505b50905060005b8451811015610bb757610b8a858281518110610b6357610b63612bc3565b6020026020010151858381518110610b7d57610b7d612bc3565b6020026020010151610506565b828281518110610b9c57610b9c612bc3565b6020908102919091010152610bb081612bef565b9050610b45565b509392505050565b6003546001600160a01b03163314610be95760405162461bcd60e51b815260040161056e90612b8e565b6001600160a01b0381166000818152600a6020908152604091829020805460ff1916600117905590519182527f44d6d25963f097ad14f29f06854a01f575648a1ef82f30e562ccd3889717e3399101610893565b6003546001600160a01b03163314610c675760405162461bcd60e51b815260040161056e90612b8e565b610c71600061124c565b565b610c7c336102ae565b610c985760405162461bcd60e51b815260040161056e90612b2d565b8051610cab9060079060208401906123bb565b507faf497693a87db12ca89131a31edbb3db4bb5702dfb284e8ae7427d185f09112d60076040516108939190612c47565b610ce733838361129e565b5050565b610cf633838361137f565b6000828152600c6020908152604080832033845290915281208054839290610d1f908490612cef565b90915550505050565b6000610d3384610fba565b9050610d513383838660405180602001604052806000815250610e9b565b50505050565b610d60336102ae565b610d7c5760405162461bcd60e51b815260040161056e90612b2d565b81610d8681610701565b610da25760405162461bcd60e51b815260040161056e90612d07565b6000610dae84846114f8565b9050610dbb85858361152c565b5050505050565b6005546001600160a01b03163314610e0c5760405162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b604482015260640161056e565b6001600160a01b038116610e6c5760405162461bcd60e51b815260206004820152602160248201527f43616e6e6f7420736574207369676e657220746f206e756c6c206164647265736044820152607360f81b606482015260840161056e565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b600780546105ec90612b53565b6001600160a01b038516331480610eb75750610eb7853361048c565b610f155760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b606482015260840161056e565b610dbb858585858561163d565b6003546001600160a01b03163314610f4c5760405162461bcd60e51b815260040161056e90612b8e565b6001600160a01b038116610fb15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161056e565b6105dc8161124c565b600081604051602001610fcd9190612d2f565b60408051601f19818403018152919052805160209091012092915050565b83610ff581610701565b6110115760405162461bcd60e51b815260040161056e90612d07565b600061101d86866114f8565b90506000339050600b826040516110349190612d2f565b9081526040519081900360200190205460ff16156110945760405162461bcd60e51b815260206004820152601f60248201527f5369676e61747572652068617320616c7265616479206265656e207573656400604482015260640161056e565b60006110a283838888611769565b9050806110f15760405162461bcd60e51b815260206004820152601960248201527f496e76616c6964206d696e74696e67207369676e617475726500000000000000604482015260640161056e565b6110fc82898561152c565b5050505050505050565b60006001600160e01b03198216636cdb3d1360e11b148061113757506001600160e01b031982166303a24d0760e21b145b806105a857506301ffc9a760e01b6001600160e01b03198316146105a8565b8051610ce79060029060208401906123bb565b6001600160a01b0385163314806111855750611185853361048c565b6111ec5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161056e565b610dbb85858585856117b0565b6001600160a01b03841615801561121857506001600160a01b03831615155b15610d5157600082815260096020526040812060038101805491928492611240908490612cef565b90915550505050505050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156113125760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161056e565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383166113e15760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b606482015260840161056e565b33611410818560006113f287611993565b6113fb87611993565b604051806020016040528060008152506119de565b6000838152602081815260408083206001600160a01b03881684529091529020548281101561148d5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b606482015260840161056e565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b606061150383611ba0565b82604051602001611515929190612d4b565b604051602081830303815290604052905092915050565b600b8160405161153c9190612d2f565b9081526040519081900360200190205460ff161561159c5760405162461bcd60e51b815260206004820181905260248201527f467261676d656e742068617320616c7265616479206265656e206d696e746564604482015260640161056e565b6001600b826040516115ae9190612d2f565b908152602001604051809103902060006101000a81548160ff0219169083151502179055506115ef8383600160405180602001604052806000815250611bfc565b6115fd6000848460016111f9565b7f9ef9d09a98563c827f651a028105395cc17f94ef23eb26b70d241439386a62f482828560405161163093929190612d87565b60405180910390a1505050565b6001600160a01b0384166116635760405162461bcd60e51b815260040161056e90612db8565b3361168281878761167388611993565b61167c88611993565b876119de565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156116c35760405162461bcd60e51b815260040161056e90612dfd565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611700908490612cef565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611760828888888888611cf9565b50505050505050565b6000611776858585611e64565b6000611783868686611f50565b6004549091506001600160a01b031661179c8285611ff9565b6001600160a01b0316149695505050505050565b81518351146118125760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b606482015260840161056e565b6001600160a01b0384166118385760405162461bcd60e51b815260040161056e90612db8565b336118478187878787876119de565b60005b845181101561192d57600085828151811061186757611867612bc3565b60200260200101519050600085838151811061188557611885612bc3565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156118d55760405162461bcd60e51b815260040161056e90612dfd565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611912908490612cef565b925050819055505050508061192690612bef565b905061184a565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161197d929190612e47565b60405180910390a46109078187878787876120db565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106119cd576119cd612bc3565b602090810291909101015292915050565b60005b8351811015611aa357611a0c8482815181106119ff576119ff612bc3565b6020026020010151610701565b611a285760405162461bcd60e51b815260040161056e90612d07565b6000838281518110611a3c57611a3c612bc3565b602002602001015111611a915760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f74207472616e73666572203020667261676d656e74730000000000604482015260640161056e565b80611a9b81612bef565b9150506119e1565b506001600160a01b038516158015611ac357506001600160a01b03841615155b156109075760005b8351811015611760576000848281518110611ae857611ae8612bc3565b602002602001015190506000848381518110611b0657611b06612bc3565b6020026020010151905060006009600084815260200190815260200160002090508060020154828260030154611b3c9190612cef565b1115611b8a5760405162461bcd60e51b815260206004820181905260248201527f4d696e7420776f756c64206578636565642067656d206d617820737570706c79604482015260640161056e565b5050508080611b9890612bef565b915050611acb565b606081611bc75750506040805180820190915260048152630307830360e41b602082015290565b8160005b8115611bea5780611bdb81612bef565b915050600882901c9150611bcb565b611bf484826121a5565b949350505050565b6001600160a01b038416611c5c5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161056e565b33611c6d8160008761167388611993565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611c9d908490612cef565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610dbb816000878787875b6001600160a01b0384163b156109075760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611d3d9089908990889088908890600401612e75565b602060405180830381600087803b158015611d5757600080fd5b505af1925050508015611d87575060408051601f3d908101601f19168201909252611d8491810190612eba565b60015b611e3457611d93612ed7565b806308c379a01415611dcd5750611da8612ef3565b80611db35750611dcf565b8060405162461bcd60e51b815260040161056e919061260e565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161056e565b6001600160e01b0319811663f23a6e6160e01b146117605760405162461bcd60e51b815260040161056e90612f7c565b804210611eab5760405162461bcd60e51b815260206004820152601560248201527414da59db985d1d5c99481a185cc8195e1c1a5c9959605a1b604482015260640161056e565b6000835111611efc5760405162461bcd60e51b815260206004820152601760248201527f4d6573736167652063616e6e6f7420626520656d707479000000000000000000604482015260640161056e565b6001600160a01b038216611f4b5760405162461bcd60e51b8152602060048201526016602482015275416464726573732063616e6e6f74206265207a65726f60501b604482015260640161056e565b505050565b600080611f7760408051808201909152600781526659617447656d7360c81b602082015290565b9050600081868686604051602001611f929493929190612fc4565b60408051808303601f1901815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000082850152603c8085019190915282518085039091018152605c90930190915281519101209695505050505050565b60008060008061200885612347565b92509250925060006001878386866040516000815260200160405260405161204c949392919093845260ff9290921660208401526040830152606082015260800190565b6020604051602081039080840390855afa15801561206e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166120d15760405162461bcd60e51b815260206004820152601860248201527f45434453413a20496e76616c6964207369676e61747572650000000000000000604482015260640161056e565b9695505050505050565b6001600160a01b0384163b156109075760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061211f9089908990889088908890600401613014565b602060405180830381600087803b15801561213957600080fd5b505af1925050508015612169575060408051601f3d908101601f1916820190925261216691810190612eba565b60015b61217557611d93612ed7565b6001600160e01b0319811663bc197c8160e01b146117605760405162461bcd60e51b815260040161056e90612f7c565b606060006121b4836002613072565b6121bf906002612cef565b6001600160401b038111156121d6576121d66124cd565b6040519080825280601f01601f191660200182016040528015612200576020820181803683370190505b509050600360fc1b8160008151811061221b5761221b612bc3565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061224a5761224a612bc3565b60200101906001600160f81b031916908160001a905350600061226e846002613072565b612279906001612cef565b90505b60018111156122f1576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106122ad576122ad612bc3565b1a60f81b8282815181106122c3576122c3612bc3565b60200101906001600160f81b031916908160001a90535060049490941c936122ea81613091565b905061227c565b5083156123405760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161056e565b9392505050565b6000806000835160411461239d5760405162461bcd60e51b815260206004820152601960248201527f5369676e6174757265206973206e6f7420363520627974657300000000000000604482015260640161056e565b50505060208101516040820151606090920151909260009190911a90565b8280546123c790612b53565b90600052602060002090601f0160209004810192826123e9576000855561242f565b82601f1061240257805160ff191683800117855561242f565b8280016001018555821561242f579182015b8281111561242f578251825591602001919060010190612414565b5061243b92915061243f565b5090565b5b8082111561243b5760008155600101612440565b80356001600160a01b038116811461246b57600080fd5b919050565b6000806040838503121561248357600080fd5b61248c83612454565b946020939093013593505050565b6001600160e01b0319811681146105dc57600080fd5b6000602082840312156124c257600080fd5b81356123408161249a565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612508576125086124cd565b6040525050565b600082601f83011261252057600080fd5b81356001600160401b03811115612539576125396124cd565b604051612550601f8301601f1916602001826124e3565b81815284602083860101111561256557600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561259457600080fd5b81356001600160401b038111156125aa57600080fd5b611bf48482850161250f565b60005b838110156125d15781810151838201526020016125b9565b83811115610d515750506000910152565b600081518084526125fa8160208601602086016125b6565b601f01601f19169290920160200192915050565b60208152600061234060208301846125e2565b60006020828403121561263357600080fd5b5035919050565b60006020828403121561264c57600080fd5b61234082612454565b60006001600160401b0382111561266e5761266e6124cd565b5060051b60200190565b600082601f83011261268957600080fd5b8135602061269682612655565b6040516126a382826124e3565b83815260059390931b85018201928281019150868411156126c357600080fd5b8286015b848110156126de57803583529183019183016126c7565b509695505050505050565b600080600080600060a0868803121561270157600080fd5b61270a86612454565b945061271860208701612454565b935060408601356001600160401b038082111561273457600080fd5b61274089838a01612678565b9450606088013591508082111561275657600080fd5b61276289838a01612678565b9350608088013591508082111561277857600080fd5b506127858882890161250f565b9150509295509295909350565b6000806000606084860312156127a757600080fd5b83356001600160401b03808211156127be57600080fd5b6127ca8783880161250f565b945060208601359150808211156127e057600080fd5b506127ed8682870161250f565b925050604084013590509250925092565b6000806040838503121561281157600080fd5b82356001600160401b038082111561282857600080fd5b818501915085601f83011261283c57600080fd5b8135602061284982612655565b60405161285682826124e3565b83815260059390931b850182019282810191508984111561287657600080fd5b948201945b8386101561289b5761288c86612454565b8252948201949082019061287b565b965050860135925050808211156128b157600080fd5b506128be85828601612678565b9150509250929050565b600081518084526020808501945080840160005b838110156128f8578151875295820195908201906001016128dc565b509495945050505050565b60208152600061234060208301846128c8565b6000806040838503121561292957600080fd5b61293283612454565b91506020830135801515811461294757600080fd5b809150509250929050565b6000806040838503121561296557600080fd5b50508035926020909101359150565b60008060006060848603121561298957600080fd5b83356001600160401b0381111561299f57600080fd5b6129ab8682870161250f565b935050602084013591506129c160408501612454565b90509250925092565b6000806000606084860312156129df57600080fd5b6129e884612454565b92506020840135915060408401356001600160401b03811115612a0a57600080fd5b612a168682870161250f565b9150509250925092565b60008060408385031215612a3357600080fd5b612a3c83612454565b9150612a4a60208401612454565b90509250929050565b600080600080600060a08688031215612a6b57600080fd5b612a7486612454565b9450612a8260208701612454565b9350604086013592506060860135915060808601356001600160401b03811115612aab57600080fd5b6127858882890161250f565b60008060008060808587031215612acd57600080fd5b8435935060208501356001600160401b0380821115612aeb57600080fd5b612af78883890161250f565b9450604087013593506060870135915080821115612b1457600080fd5b50612b218782880161250f565b91505092959194509250565b6020808252600c908201526b2737ba1030b71020b236b4b760a11b604082015260600190565b600181811c90821680612b6757607f821691505b60208210811415612b8857634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415612c0357612c03612bd9565b5060010190565b848152608060208201526000612c2360808301866125e2565b8281036040840152612c3581866125e2565b91505082606083015295945050505050565b600060208083526000845481600182811c915080831680612c6957607f831692505b858310811415612c8757634e487b7160e01b85526022600452602485fd5b878601838152602001818015612ca45760018114612cb557612ce0565b60ff19861682528782019650612ce0565b60008b81526020902060005b86811015612cda57815484820152908501908901612cc1565b83019750505b50949998505050505050505050565b60008219821115612d0257612d02612bd9565b500190565b6020808252600e908201526d11d95b481b5d5cdd08195e1a5cdd60921b604082015260600190565b60008251612d418184602087016125b6565b9190910192915050565b60008351612d5d8184602088016125b6565b601f60fa1b9083019081528351612d7b8160018401602088016125b6565b01600101949350505050565b838152606060208201526000612da060608301856125e2565b905060018060a01b0383166040830152949350505050565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000612e5a60408301856128c8565b8281036020840152612e6c81856128c8565b95945050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612eaf908301846125e2565b979650505050505050565b600060208284031215612ecc57600080fd5b81516123408161249a565b600060033d1115612ef05760046000803e5060005160e01c5b90565b600060443d1015612f015790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715612f3057505050505090565b8285019150815181811115612f485750505050505090565b843d8701016020828501011115612f625750505050505090565b612f71602082860101876124e3565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60008551612fd6818460208a016125b6565b855190830190612fea818360208a016125b6565b60609590951b6bffffffffffffffffffffffff191694019384525050601482015260340192915050565b6001600160a01b0386811682528516602082015260a060408201819052600090613040908301866128c8565b828103606084015261305281866128c8565b9050828103608084015261306681856125e2565b98975050505050505050565b600081600019048311821515161561308c5761308c612bd9565b500290565b6000816130a0576130a0612bd9565b50600019019056fea2646970667358221220e396696176eed8648ce5713a0ba0867ee694c55f8e4e1e6ef7cefcbd70d4daf664736f6c6343000809003300000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000004c7f10f2f429e7f23d8a1383c3f01c7482df81cd0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000cf34085d4ef97d0384e53937c2856482d4157a9b000000000000000000000000bf8ada1fa41718fddf94e98b0cbcda1d2e88ceef00000000000000000000000000000000000000000000000000000000000000085961742047656d73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a68747470733a2f2f612e792e61742f6172746966616374732f47656d2f6d657461646174612f7b69647d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003368747470733a2f2f612e792e61742f6172746966616374732f47656d2f6d657461646174612f7961745f67656d732e6a736f6e00000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101ef5760003560e01c8063704802751161010f578063c91435e2116100a2578063f242432a11610071578063f242432a146104ba578063f2fde38b146104cd578063fa0f18c1146104e0578063fbc56406146104f357600080fd5b8063c91435e214610450578063d279b0ca14610463578063e8a3d48514610476578063e985e9c51461047e57600080fd5b8063938e3d7b116100de578063938e3d7b14610404578063a22cb46514610417578063b390c0ab1461042a578063c33584831461043d57600080fd5b806370480275146103b3578063715018a6146103c65780637ac3c02f146103ce5780638da5cb5b146103f357600080fd5b80632d0335ab1161018757806342b1bcfd1161015657806342b1bcfd146103285780634e1273f41461033b5780635a85cb591461035b5780635b7460771461039057600080fd5b80632d0335ab146102cc5780632d345670146102df5780632eb2c2d6146102f257806340b71c401461030557600080fd5b80630e89341c116101c35780630e89341c146102675780631667c4291461027a5780631b6ea4d31461028d57806324d7806c146102a057600080fd5b8062fdd58e146101f457806301ffc9a71461021a57806302fe53051461023d57806306fdde0314610252575b600080fd5b610207610202366004612470565b610506565b6040519081526020015b60405180910390f35b61022d6102283660046124b0565b61059d565b6040519015158152602001610211565b61025061024b366004612582565b6105ae565b005b61025a6105df565b604051610211919061260e565b61025a610275366004612621565b61066d565b61022d610288366004612621565b610701565b61025a61029b366004612621565b61072a565b61022d6102ae36600461263a565b6001600160a01b03166000908152600a602052604090205460ff1690565b6102076102da36600461263a565b61074a565b6102506102ed36600461263a565b6107be565b6102506103003660046126e9565b61089e565b610207610313366004612621565b60009081526009602052604090206002015490565b610250610336366004612792565b61090f565b61034e6103493660046127fe565b610a96565b6040516102119190612903565b610207610369366004612470565b6000908152600c602090815260408083206001600160a01b03949094168352929052205490565b61020761039e366004612621565b60009081526009602052604090206003015490565b6102506103c136600461263a565b610bbf565b610250610c3d565b6004546001600160a01b03165b6040516001600160a01b039091168152602001610211565b6003546001600160a01b03166103db565b610250610412366004612582565b610c73565b610250610425366004612916565b610cdc565b610250610438366004612952565b610ceb565b61025061044b366004612974565b610d28565b61025061045e3660046129ca565b610d57565b61025061047136600461263a565b610dc2565b61025a610e8e565b61022d61048c366004612a20565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6102506104c8366004612a53565b610e9b565b6102506104db36600461263a565b610f22565b6102076104ee366004612582565b610fba565b610250610501366004612ab7565b610feb565b60006001600160a01b0383166105775760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006105a882611106565b92915050565b6105b7336102ae565b6105d35760405162461bcd60e51b815260040161056e90612b2d565b6105dc81611156565b50565b600880546105ec90612b53565b80601f016020809104026020016040519081016040528092919081815260200182805461061890612b53565b80156106655780601f1061063a57610100808354040283529160200191610665565b820191906000526020600020905b81548152906001019060200180831161064857829003601f168201915b505050505081565b60606002805461067c90612b53565b80601f01602080910402602001604051908101604052809291908181526020018280546106a890612b53565b80156106f55780601f106106ca576101008083540402835291602001916106f5565b820191906000526020600020905b8154815290600101906020018083116106d857829003601f168201915b50505050509050919050565b6000818152600960205260408120600101805482919061072090612b53565b9050119050919050565b600081815260096020526040902060010180546060919061067c90612b53565b60006001600160a01b0382166107a25760405162461bcd60e51b815260206004820152601860248201527f4e756c6c20616464726573732063616e6e6f74207369676e0000000000000000604482015260640161056e565b506001600160a01b031660009081526006602052604090205490565b6003546001600160a01b031633146107e85760405162461bcd60e51b815260040161056e90612b8e565b6003546001600160a01b03828116911614156108465760405162461bcd60e51b815260206004820152601e60248201527f43616e27742072656d6f7665206f776e65722066726f6d2061646d696e730000604482015260640161056e565b6001600160a01b0381166000818152600a6020908152604091829020805460ff1916905590519182527fa3b62bc36326052d97ea62d63c3d60308ed4c3ea8ac079dd8499f1e9c4f80c0f91015b60405180910390a150565b6108ab8585858585611169565b60005b8351811015610907576108f586868684815181106108ce576108ce612bc3565b60200260200101518685815181106108e8576108e8612bc3565b60200260200101516111f9565b806108ff81612bef565b9150506108ae565b505050505050565b610918336102ae565b6109345760405162461bcd60e51b815260040161056e90612b2d565b60008351116109855760405162461bcd60e51b815260206004820152601860248201527f47656d206e616d652063616e6e6f7420626520656d7074790000000000000000604482015260640161056e565b600061099083610fba565b905061099b81610701565b156109dd5760405162461bcd60e51b815260206004820152601260248201527147656d20616c72656164792065786973747360701b604482015260640161056e565b60408051608081018252848152602080820187905281830185905260006060830181905284815260098252929092208151805192938493610a2192849201906123bb565b506020828101518051610a3a92600185019201906123bb565b5060408201518160020155606082015181600301559050507f668f3ca7501fac37894c21f49632fd32d25cb148c1111a93fdb3b3fb519877d582858786604051610a879493929190612c0a565b60405180910390a15050505050565b60608151835114610afb5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161056e565b600083516001600160401b03811115610b1657610b166124cd565b604051908082528060200260200182016040528015610b3f578160200160208202803683370190505b50905060005b8451811015610bb757610b8a858281518110610b6357610b63612bc3565b6020026020010151858381518110610b7d57610b7d612bc3565b6020026020010151610506565b828281518110610b9c57610b9c612bc3565b6020908102919091010152610bb081612bef565b9050610b45565b509392505050565b6003546001600160a01b03163314610be95760405162461bcd60e51b815260040161056e90612b8e565b6001600160a01b0381166000818152600a6020908152604091829020805460ff1916600117905590519182527f44d6d25963f097ad14f29f06854a01f575648a1ef82f30e562ccd3889717e3399101610893565b6003546001600160a01b03163314610c675760405162461bcd60e51b815260040161056e90612b8e565b610c71600061124c565b565b610c7c336102ae565b610c985760405162461bcd60e51b815260040161056e90612b2d565b8051610cab9060079060208401906123bb565b507faf497693a87db12ca89131a31edbb3db4bb5702dfb284e8ae7427d185f09112d60076040516108939190612c47565b610ce733838361129e565b5050565b610cf633838361137f565b6000828152600c6020908152604080832033845290915281208054839290610d1f908490612cef565b90915550505050565b6000610d3384610fba565b9050610d513383838660405180602001604052806000815250610e9b565b50505050565b610d60336102ae565b610d7c5760405162461bcd60e51b815260040161056e90612b2d565b81610d8681610701565b610da25760405162461bcd60e51b815260040161056e90612d07565b6000610dae84846114f8565b9050610dbb85858361152c565b5050505050565b6005546001600160a01b03163314610e0c5760405162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b604482015260640161056e565b6001600160a01b038116610e6c5760405162461bcd60e51b815260206004820152602160248201527f43616e6e6f7420736574207369676e657220746f206e756c6c206164647265736044820152607360f81b606482015260840161056e565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b600780546105ec90612b53565b6001600160a01b038516331480610eb75750610eb7853361048c565b610f155760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b606482015260840161056e565b610dbb858585858561163d565b6003546001600160a01b03163314610f4c5760405162461bcd60e51b815260040161056e90612b8e565b6001600160a01b038116610fb15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161056e565b6105dc8161124c565b600081604051602001610fcd9190612d2f565b60408051601f19818403018152919052805160209091012092915050565b83610ff581610701565b6110115760405162461bcd60e51b815260040161056e90612d07565b600061101d86866114f8565b90506000339050600b826040516110349190612d2f565b9081526040519081900360200190205460ff16156110945760405162461bcd60e51b815260206004820152601f60248201527f5369676e61747572652068617320616c7265616479206265656e207573656400604482015260640161056e565b60006110a283838888611769565b9050806110f15760405162461bcd60e51b815260206004820152601960248201527f496e76616c6964206d696e74696e67207369676e617475726500000000000000604482015260640161056e565b6110fc82898561152c565b5050505050505050565b60006001600160e01b03198216636cdb3d1360e11b148061113757506001600160e01b031982166303a24d0760e21b145b806105a857506301ffc9a760e01b6001600160e01b03198316146105a8565b8051610ce79060029060208401906123bb565b6001600160a01b0385163314806111855750611185853361048c565b6111ec5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161056e565b610dbb85858585856117b0565b6001600160a01b03841615801561121857506001600160a01b03831615155b15610d5157600082815260096020526040812060038101805491928492611240908490612cef565b90915550505050505050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156113125760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161056e565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383166113e15760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b606482015260840161056e565b33611410818560006113f287611993565b6113fb87611993565b604051806020016040528060008152506119de565b6000838152602081815260408083206001600160a01b03881684529091529020548281101561148d5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b606482015260840161056e565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b606061150383611ba0565b82604051602001611515929190612d4b565b604051602081830303815290604052905092915050565b600b8160405161153c9190612d2f565b9081526040519081900360200190205460ff161561159c5760405162461bcd60e51b815260206004820181905260248201527f467261676d656e742068617320616c7265616479206265656e206d696e746564604482015260640161056e565b6001600b826040516115ae9190612d2f565b908152602001604051809103902060006101000a81548160ff0219169083151502179055506115ef8383600160405180602001604052806000815250611bfc565b6115fd6000848460016111f9565b7f9ef9d09a98563c827f651a028105395cc17f94ef23eb26b70d241439386a62f482828560405161163093929190612d87565b60405180910390a1505050565b6001600160a01b0384166116635760405162461bcd60e51b815260040161056e90612db8565b3361168281878761167388611993565b61167c88611993565b876119de565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156116c35760405162461bcd60e51b815260040161056e90612dfd565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611700908490612cef565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611760828888888888611cf9565b50505050505050565b6000611776858585611e64565b6000611783868686611f50565b6004549091506001600160a01b031661179c8285611ff9565b6001600160a01b0316149695505050505050565b81518351146118125760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b606482015260840161056e565b6001600160a01b0384166118385760405162461bcd60e51b815260040161056e90612db8565b336118478187878787876119de565b60005b845181101561192d57600085828151811061186757611867612bc3565b60200260200101519050600085838151811061188557611885612bc3565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156118d55760405162461bcd60e51b815260040161056e90612dfd565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611912908490612cef565b925050819055505050508061192690612bef565b905061184a565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161197d929190612e47565b60405180910390a46109078187878787876120db565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106119cd576119cd612bc3565b602090810291909101015292915050565b60005b8351811015611aa357611a0c8482815181106119ff576119ff612bc3565b6020026020010151610701565b611a285760405162461bcd60e51b815260040161056e90612d07565b6000838281518110611a3c57611a3c612bc3565b602002602001015111611a915760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f74207472616e73666572203020667261676d656e74730000000000604482015260640161056e565b80611a9b81612bef565b9150506119e1565b506001600160a01b038516158015611ac357506001600160a01b03841615155b156109075760005b8351811015611760576000848281518110611ae857611ae8612bc3565b602002602001015190506000848381518110611b0657611b06612bc3565b6020026020010151905060006009600084815260200190815260200160002090508060020154828260030154611b3c9190612cef565b1115611b8a5760405162461bcd60e51b815260206004820181905260248201527f4d696e7420776f756c64206578636565642067656d206d617820737570706c79604482015260640161056e565b5050508080611b9890612bef565b915050611acb565b606081611bc75750506040805180820190915260048152630307830360e41b602082015290565b8160005b8115611bea5780611bdb81612bef565b915050600882901c9150611bcb565b611bf484826121a5565b949350505050565b6001600160a01b038416611c5c5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161056e565b33611c6d8160008761167388611993565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611c9d908490612cef565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610dbb816000878787875b6001600160a01b0384163b156109075760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611d3d9089908990889088908890600401612e75565b602060405180830381600087803b158015611d5757600080fd5b505af1925050508015611d87575060408051601f3d908101601f19168201909252611d8491810190612eba565b60015b611e3457611d93612ed7565b806308c379a01415611dcd5750611da8612ef3565b80611db35750611dcf565b8060405162461bcd60e51b815260040161056e919061260e565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161056e565b6001600160e01b0319811663f23a6e6160e01b146117605760405162461bcd60e51b815260040161056e90612f7c565b804210611eab5760405162461bcd60e51b815260206004820152601560248201527414da59db985d1d5c99481a185cc8195e1c1a5c9959605a1b604482015260640161056e565b6000835111611efc5760405162461bcd60e51b815260206004820152601760248201527f4d6573736167652063616e6e6f7420626520656d707479000000000000000000604482015260640161056e565b6001600160a01b038216611f4b5760405162461bcd60e51b8152602060048201526016602482015275416464726573732063616e6e6f74206265207a65726f60501b604482015260640161056e565b505050565b600080611f7760408051808201909152600781526659617447656d7360c81b602082015290565b9050600081868686604051602001611f929493929190612fc4565b60408051808303601f1901815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000082850152603c8085019190915282518085039091018152605c90930190915281519101209695505050505050565b60008060008061200885612347565b92509250925060006001878386866040516000815260200160405260405161204c949392919093845260ff9290921660208401526040830152606082015260800190565b6020604051602081039080840390855afa15801561206e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166120d15760405162461bcd60e51b815260206004820152601860248201527f45434453413a20496e76616c6964207369676e61747572650000000000000000604482015260640161056e565b9695505050505050565b6001600160a01b0384163b156109075760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061211f9089908990889088908890600401613014565b602060405180830381600087803b15801561213957600080fd5b505af1925050508015612169575060408051601f3d908101601f1916820190925261216691810190612eba565b60015b61217557611d93612ed7565b6001600160e01b0319811663bc197c8160e01b146117605760405162461bcd60e51b815260040161056e90612f7c565b606060006121b4836002613072565b6121bf906002612cef565b6001600160401b038111156121d6576121d66124cd565b6040519080825280601f01601f191660200182016040528015612200576020820181803683370190505b509050600360fc1b8160008151811061221b5761221b612bc3565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061224a5761224a612bc3565b60200101906001600160f81b031916908160001a905350600061226e846002613072565b612279906001612cef565b90505b60018111156122f1576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106122ad576122ad612bc3565b1a60f81b8282815181106122c3576122c3612bc3565b60200101906001600160f81b031916908160001a90535060049490941c936122ea81613091565b905061227c565b5083156123405760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161056e565b9392505050565b6000806000835160411461239d5760405162461bcd60e51b815260206004820152601960248201527f5369676e6174757265206973206e6f7420363520627974657300000000000000604482015260640161056e565b50505060208101516040820151606090920151909260009190911a90565b8280546123c790612b53565b90600052602060002090601f0160209004810192826123e9576000855561242f565b82601f1061240257805160ff191683800117855561242f565b8280016001018555821561242f579182015b8281111561242f578251825591602001919060010190612414565b5061243b92915061243f565b5090565b5b8082111561243b5760008155600101612440565b80356001600160a01b038116811461246b57600080fd5b919050565b6000806040838503121561248357600080fd5b61248c83612454565b946020939093013593505050565b6001600160e01b0319811681146105dc57600080fd5b6000602082840312156124c257600080fd5b81356123408161249a565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612508576125086124cd565b6040525050565b600082601f83011261252057600080fd5b81356001600160401b03811115612539576125396124cd565b604051612550601f8301601f1916602001826124e3565b81815284602083860101111561256557600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561259457600080fd5b81356001600160401b038111156125aa57600080fd5b611bf48482850161250f565b60005b838110156125d15781810151838201526020016125b9565b83811115610d515750506000910152565b600081518084526125fa8160208601602086016125b6565b601f01601f19169290920160200192915050565b60208152600061234060208301846125e2565b60006020828403121561263357600080fd5b5035919050565b60006020828403121561264c57600080fd5b61234082612454565b60006001600160401b0382111561266e5761266e6124cd565b5060051b60200190565b600082601f83011261268957600080fd5b8135602061269682612655565b6040516126a382826124e3565b83815260059390931b85018201928281019150868411156126c357600080fd5b8286015b848110156126de57803583529183019183016126c7565b509695505050505050565b600080600080600060a0868803121561270157600080fd5b61270a86612454565b945061271860208701612454565b935060408601356001600160401b038082111561273457600080fd5b61274089838a01612678565b9450606088013591508082111561275657600080fd5b61276289838a01612678565b9350608088013591508082111561277857600080fd5b506127858882890161250f565b9150509295509295909350565b6000806000606084860312156127a757600080fd5b83356001600160401b03808211156127be57600080fd5b6127ca8783880161250f565b945060208601359150808211156127e057600080fd5b506127ed8682870161250f565b925050604084013590509250925092565b6000806040838503121561281157600080fd5b82356001600160401b038082111561282857600080fd5b818501915085601f83011261283c57600080fd5b8135602061284982612655565b60405161285682826124e3565b83815260059390931b850182019282810191508984111561287657600080fd5b948201945b8386101561289b5761288c86612454565b8252948201949082019061287b565b965050860135925050808211156128b157600080fd5b506128be85828601612678565b9150509250929050565b600081518084526020808501945080840160005b838110156128f8578151875295820195908201906001016128dc565b509495945050505050565b60208152600061234060208301846128c8565b6000806040838503121561292957600080fd5b61293283612454565b91506020830135801515811461294757600080fd5b809150509250929050565b6000806040838503121561296557600080fd5b50508035926020909101359150565b60008060006060848603121561298957600080fd5b83356001600160401b0381111561299f57600080fd5b6129ab8682870161250f565b935050602084013591506129c160408501612454565b90509250925092565b6000806000606084860312156129df57600080fd5b6129e884612454565b92506020840135915060408401356001600160401b03811115612a0a57600080fd5b612a168682870161250f565b9150509250925092565b60008060408385031215612a3357600080fd5b612a3c83612454565b9150612a4a60208401612454565b90509250929050565b600080600080600060a08688031215612a6b57600080fd5b612a7486612454565b9450612a8260208701612454565b9350604086013592506060860135915060808601356001600160401b03811115612aab57600080fd5b6127858882890161250f565b60008060008060808587031215612acd57600080fd5b8435935060208501356001600160401b0380821115612aeb57600080fd5b612af78883890161250f565b9450604087013593506060870135915080821115612b1457600080fd5b50612b218782880161250f565b91505092959194509250565b6020808252600c908201526b2737ba1030b71020b236b4b760a11b604082015260600190565b600181811c90821680612b6757607f821691505b60208210811415612b8857634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415612c0357612c03612bd9565b5060010190565b848152608060208201526000612c2360808301866125e2565b8281036040840152612c3581866125e2565b91505082606083015295945050505050565b600060208083526000845481600182811c915080831680612c6957607f831692505b858310811415612c8757634e487b7160e01b85526022600452602485fd5b878601838152602001818015612ca45760018114612cb557612ce0565b60ff19861682528782019650612ce0565b60008b81526020902060005b86811015612cda57815484820152908501908901612cc1565b83019750505b50949998505050505050505050565b60008219821115612d0257612d02612bd9565b500190565b6020808252600e908201526d11d95b481b5d5cdd08195e1a5cdd60921b604082015260600190565b60008251612d418184602087016125b6565b9190910192915050565b60008351612d5d8184602088016125b6565b601f60fa1b9083019081528351612d7b8160018401602088016125b6565b01600101949350505050565b838152606060208201526000612da060608301856125e2565b905060018060a01b0383166040830152949350505050565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000612e5a60408301856128c8565b8281036020840152612e6c81856128c8565b95945050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612eaf908301846125e2565b979650505050505050565b600060208284031215612ecc57600080fd5b81516123408161249a565b600060033d1115612ef05760046000803e5060005160e01c5b90565b600060443d1015612f015790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715612f3057505050505090565b8285019150815181811115612f485750505050505090565b843d8701016020828501011115612f625750505050505090565b612f71602082860101876124e3565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60008551612fd6818460208a016125b6565b855190830190612fea818360208a016125b6565b60609590951b6bffffffffffffffffffffffff191694019384525050601482015260340192915050565b6001600160a01b0386811682528516602082015260a060408201819052600090613040908301866128c8565b828103606084015261305281866128c8565b9050828103608084015261306681856125e2565b98975050505050505050565b600081600019048311821515161561308c5761308c612bd9565b500290565b6000816130a0576130a0612bd9565b50600019019056fea2646970667358221220e396696176eed8648ce5713a0ba0867ee694c55f8e4e1e6ef7cefcbd70d4daf664736f6c63430008090033

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

00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000004c7f10f2f429e7f23d8a1383c3f01c7482df81cd0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000cf34085d4ef97d0384e53937c2856482d4157a9b000000000000000000000000bf8ada1fa41718fddf94e98b0cbcda1d2e88ceef00000000000000000000000000000000000000000000000000000000000000085961742047656d73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a68747470733a2f2f612e792e61742f6172746966616374732f47656d2f6d657461646174612f7b69647d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003368747470733a2f2f612e792e61742f6172746966616374732f47656d2f6d657461646174612f7961745f67656d732e6a736f6e00000000000000000000000000

-----Decoded View---------------
Arg [0] : admins_ (address[]): 0xcf34085D4Ef97D0384E53937c2856482d4157A9b,0xBF8aDa1fa41718FDdF94E98b0cbCDA1D2E88CEef
Arg [1] : name_ (string): Yat Gems
Arg [2] : tokenBaseURI_ (string): https://a.y.at/artifacts/Gem/metadata/{id}
Arg [3] : contractURI_ (string): https://a.y.at/artifacts/Gem/metadata/yat_gems.json
Arg [4] : authorizedSigner (address): 0x4c7F10F2F429E7f23d8A1383c3f01c7482dF81cD

-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [4] : 0000000000000000000000004c7f10f2f429e7f23d8a1383c3f01c7482df81cd
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [6] : 000000000000000000000000cf34085d4ef97d0384e53937c2856482d4157a9b
Arg [7] : 000000000000000000000000bf8ada1fa41718fddf94e98b0cbcda1d2e88ceef
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [9] : 5961742047656d73000000000000000000000000000000000000000000000000
Arg [10] : 000000000000000000000000000000000000000000000000000000000000002a
Arg [11] : 68747470733a2f2f612e792e61742f6172746966616374732f47656d2f6d6574
Arg [12] : 61646174612f7b69647d00000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000033
Arg [14] : 68747470733a2f2f612e792e61742f6172746966616374732f47656d2f6d6574
Arg [15] : 61646174612f7961745f67656d732e6a736f6e00000000000000000000000000


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.