POL Price: $0.379757 (+1.09%)
Gas: 46.2 GWei
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x56697369596197132024-07-21 6:00:3280 days ago1721541632IN
Petto: Old PETTO Token
0 POL0.000716130.00000003
Set Approval For...539046952024-02-24 14:43:31227 days ago1708785811IN
Petto: Old PETTO Token
0 POL0.0024061698.58918063
Set Approval For...515832362023-12-26 15:32:27287 days ago1703604747IN
Petto: Old PETTO Token
0 POL0.00569469233.33159855
Set Approval For...515832252023-12-26 15:32:03287 days ago1703604723IN
Petto: Old PETTO Token
0 POL0.00510785210.00965182
Set Approval For...505605142023-11-30 5:20:34314 days ago1701321634IN
Petto: Old PETTO Token
0 POL0.00479896196.63045658
Set Approval For...505605102023-11-30 5:20:24314 days ago1701321624IN
Petto: Old PETTO Token
0 POL0.0046545191.37001572
Set Approval For...505605062023-11-30 5:20:16314 days ago1701321616IN
Petto: Old PETTO Token
0 POL0.00467313191.47495998
Withdraw499401772023-11-14 16:43:37329 days ago1699980217IN
Petto: Old PETTO Token
0 POL0.0063274870.68310684
Set Approval For...484150522023-10-07 0:16:12368 days ago1696637772IN
Petto: Old PETTO Token
0 POL0.0017422271.38506508
Set Approval For...414528902023-04-12 17:26:27545 days ago1681320387IN
Petto: Old PETTO Token
0 POL0.00378089154.99272128
Set Approval For...413231082023-04-09 9:09:34548 days ago1681031374IN
Petto: Old PETTO Token
0 POL0.00299267122.68062818
Set Approval For...413231022023-04-09 9:09:20548 days ago1681031360IN
Petto: Old PETTO Token
0 POL0.00296226121.37440871
Mint357317772022-11-17 19:37:02691 days ago1668713822IN
Petto: Old PETTO Token
20 POL0.0008150930.14741672
Mint357315952022-11-17 19:30:46691 days ago1668713446IN
Petto: Old PETTO Token
20 POL0.0008163330.19339016
Mint357315852022-11-17 19:30:26691 days ago1668713426IN
Petto: Old PETTO Token
20 POL0.0008164630.19809314
Mint357315322022-11-17 19:28:36691 days ago1668713316IN
Petto: Old PETTO Token
20 POL0.000818330.29312419
Burn356419272022-11-15 15:15:50693 days ago1668525350IN
Petto: Old PETTO Token
0 POL0.01798366217.40673061
Burn356419012022-11-15 15:14:54693 days ago1668525294IN
Petto: Old PETTO Token
0 POL0.02092541252.96992691
Burn356418752022-11-15 15:14:02693 days ago1668525242IN
Petto: Old PETTO Token
0 POL0.02092541252.96992691
Burn356418502022-11-15 15:13:08693 days ago1668525188IN
Petto: Old PETTO Token
0 POL0.03449517417.01636545
Burn356418222022-11-15 15:12:12693 days ago1668525132IN
Petto: Old PETTO Token
0 POL0.0353448427.28765048
Burn356417962022-11-15 15:11:20693 days ago1668525080IN
Petto: Old PETTO Token
0 POL0.0353448427.28765048
Burn356417102022-11-15 15:08:20693 days ago1668524900IN
Petto: Old PETTO Token
0 POL0.01240785150
Burn356416842022-11-15 15:07:28693 days ago1668524848IN
Petto: Old PETTO Token
0 POL0.01240785150
Burn356416572022-11-15 15:06:30693 days ago1668524790IN
Petto: Old PETTO Token
0 POL0.01240785150
View all transactions

Latest 1 internal transaction

Parent Transaction Hash Block From To
499401772023-11-14 16:43:37329 days ago1699980217
Petto: Old PETTO Token
3,636 POL
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Petto

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion
File 1 of 20 : Petto.sol
//SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.16;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract Petto is ERC1155, EIP712, AccessControlEnumerable, Pausable, Ownable {
    using Strings for uint256;

    //--------------------------------------------------------------------
    //-------------------------- EVENT -----------------------------------
    //--------------------------------------------------------------------

    event tokenMint(uint256 id, string tokenURI, address sender, uint256 value, NFTVoucher voucher);
    event tokenTransform(uint256 id, string tokenURI, address sender, uint256 value, NFTVoucher voucher);

    //--------------------------------------------------------------------
    //-------------------------- GLOBALS ---------------------------------
    //--------------------------------------------------------------------
    
    string private _name = "Petto Assets";
    string private _symbol = "PETTO";

    bytes32 public constant GOV_ROLE = keccak256("GOV_ROLE");
    bytes32 public constant HOLDER_ROLE = keccak256("HOLDER_ROLE");
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");

    uint256 public constant HOLDER_ANIMALS_SUPPORT_PERCENTILE = 15;
    uint256 public constant HOLDER_GAME_TREASURY_PERCENTILE = 25;
    uint256 public constant HOLDER_GAME_DEV_PERCENTILE = 60;
    uint256 public constant PERCENT_DIGITS = 100;
    uint256 public constant HOLDER_ANIMALS_SUPPORT_INDEX = 0;
    uint256 public constant HOLDER_GAME_TREASURY_INDEX = 1;
    uint256 public constant HOLDER_GAME_DEV_INDEX = 2;

    using Counters for Counters.Counter;
    Counters.Counter private _ids;

    struct Holder {
        uint256 percentile;
        uint256 pendingWithdrawals;
        uint256 totalWithdrawals;
    }

    struct NFTVoucher {
        uint256 externalId;
        uint256 tokenId;
        string tokenType;
        string tokenClass;
        string tokenURI;
        uint256 minPrice;
        uint256 amount;
        uint256 expire;
        string uniqueHash;
        bool fungible;
        bytes signature;
    }

    address[3] public holderByIndex;
    mapping(uint256 => Holder) public holders;
    mapping(string => uint256) public totalTokenTypes;
    mapping(string => uint256) public totalTokenPrices;
    mapping(uint256 => string) public tokenTypes;
    mapping(uint256 => uint256) public tokenPrices;
    mapping(string => uint256) public totalTokenClasses;
    mapping(string => uint256) public totalTokenClassPrices;
    mapping(uint256 => string) public tokenClasses;
    mapping(uint256 => uint256) public tokenClassPrices;
    mapping(bytes => bool) signatureExists;
    mapping(uint256 => string) private _uris;
    mapping(uint256 => address) private _owners;
    mapping(uint256 => bool) public fungibleTokens;

    uint256 public pendingWithdrawals;
    uint256 public totalWithdrawals;

    modifier onlyGov() {
        require(hasRole(GOV_ROLE, _msgSender()), "Permission denied");
        _;
    }

    modifier onlyHolder() {
        require(hasRole(HOLDER_ROLE, _msgSender()), "Permission denied");
        _;
    }

    modifier onlyGovOrMinter() {
        require(hasRole(GOV_ROLE, _msgSender()) || hasRole(MINTER_ROLE, _msgSender()), "Permission denied");
        _;
    }

    constructor(
        address holderAnimalsSupport,
        address holderGameTreasury,
        address holderGameDev,
        string memory signingDomain,
        string memory signingVersion
    ) ERC1155("") EIP712(signingDomain, signingVersion) {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(GOV_ROLE, _msgSender());
        _setupRole(MINTER_ROLE, _msgSender());
        _initRole(holderAnimalsSupport, HOLDER_ANIMALS_SUPPORT_INDEX, HOLDER_ANIMALS_SUPPORT_PERCENTILE);
        _initRole(holderGameTreasury, HOLDER_GAME_TREASURY_INDEX, HOLDER_GAME_TREASURY_PERCENTILE);
        _initRole(holderGameDev, HOLDER_GAME_DEV_INDEX, HOLDER_GAME_DEV_PERCENTILE);
    }
    
    //--------------------------------------------------------------------
    //-------------------------- OVERRIDE---------------------------------
    //--------------------------------------------------------------------

    function uri(uint256 id) public view override returns (string memory)
    {
        _requireMinted(id);
        if (bytes(_uris[id]).length == 0) {
            return "";
        }
        return string(abi.encodePacked("ipfs://", _uris[id]));
    }

    function _burn(address from, uint256 id, uint256 amount) internal override virtual{
        super._burn(from, id, amount);

        if (bytes(_uris[id]).length != 0 && !fungibleTokens[id]) {
            delete _uris[id];
        }
        
        if(!fungibleTokens[id]){
            delete _owners[id];
        }
    }

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

    //--------------------------------------------------------------------
    //-------------------------- GOV -------------------------------------
    //--------------------------------------------------------------------

    function updateHolder(address holder, uint256 index) public whenNotPaused onlyGov returns (bool)
    {
        require(index < 3, "Invalid holder");

        holderByIndex[index] = holder;
        _setupRole(HOLDER_ROLE, holder);

        return true;
    }

    function burn(address from, uint256 id, uint256 amount) public whenNotPaused onlyGovOrMinter
    {
        _requireMinted(id);
        string memory tokenType = tokenTypes[id];
        string memory tokenClass = tokenClasses[id];
        uint256 tokenPrice = tokenPrices[id];
        uint256 tokenClassPrice = tokenClassPrices[id];

        _burn(from, id, amount);

        if(!fungibleTokens[id]){
            delete tokenTypes[id];
            delete tokenPrices[id];
            delete tokenClasses[id];
            delete tokenClassPrices[id];
            delete fungibleTokens[id];
            totalTokenPrices[tokenType] -= tokenPrice;
            totalTokenClassPrices[tokenClass] -= tokenClassPrice;
        }
        totalTokenTypes[tokenType] -= amount;
        totalTokenClasses[tokenClass] -= amount;
    }

    //--------------------------------------------------------------------
    //-------------------------- PUBLIC ----------------------------------
    //--------------------------------------------------------------------

    function name() public view returns(string memory){
        return _name;
    }

    function symbol() public view returns(string memory){
        return _symbol;
    }

    function ownerOf(uint256 id) public view virtual returns (address) {
        address owner = _owners[id];
        require(owner != address(0), "Invalid token ID");
        return owner;
    }

    function mint(NFTVoucher calldata voucher) public whenNotPaused payable returns (uint256)
    {
        require(!signatureExists[voucher.signature], "Token has been minted");

        require(msg.value >= voucher.minPrice, "Insufficient funds");

        address signer = _verifyVoucher(voucher);
        require(hasRole(MINTER_ROLE, signer), "Permission denied");

        if(voucher.expire != 0){
            require(block.timestamp < voucher.expire, "Voucher has been expired");
        }

        string memory _tokenURI = voucher.tokenURI;
        uint256 id = voucher.tokenId;
        if(id == 0){
            _ids.increment();
            id = _ids.current();
        }
        _mint(_msgSender(), id, voucher.amount, "");

        if (bytes(_tokenURI).length != 0){
            _setTokenURI(id, _tokenURI);
        }

        _updateWithdrawals(msg.value);

        string memory tokenType = voucher.tokenType;
        totalTokenTypes[tokenType] += voucher.amount;
        totalTokenPrices[tokenType] += msg.value;
        tokenPrices[id] += msg.value;
        tokenTypes[id] = tokenType;

        string memory tokenClass = voucher.tokenClass;
        totalTokenClasses[tokenClass] += voucher.amount;
        totalTokenClassPrices[tokenClass] += msg.value;
        tokenClassPrices[id] += msg.value;
        tokenClasses[id] = tokenClass;

        signatureExists[voucher.signature] = true;
        fungibleTokens[id] = voucher.fungible;
        if(!voucher.fungible){
            _owners[id] = _msgSender();
        }

        emit tokenMint(id, _tokenURI, _msgSender(), msg.value, voucher);
        return id;
    }

    function transform(NFTVoucher calldata voucher) public whenNotPaused payable returns (uint256)
    {
        require(msg.value >= voucher.minPrice, "Insufficient funds");

        address signer = _verifyVoucher(voucher);
        require(hasRole(MINTER_ROLE, signer), "Permission denied");

        if(voucher.expire != 0){
            require(block.timestamp < voucher.expire, "Voucher has been expired");
        }

        string memory _tokenURI = voucher.tokenURI;
        uint256 id = voucher.tokenId;
        _requireMinted(id);
        require(balanceOf(_msgSender(), id) >= voucher.amount, "Permission denied");

        if (bytes(_tokenURI).length != 0){
            _setTokenURI(id, _tokenURI);
        }

        _updateWithdrawals(msg.value);

        string memory tokenType = voucher.tokenType;
        string memory oldTokenType = tokenTypes[id];
        uint256 oldTokenPrice = tokenPrices[id];
        totalTokenPrices[tokenType] += msg.value;
        tokenPrices[id] += msg.value;
        tokenTypes[id] = tokenType;
        if(!_compareStrings(tokenType, oldTokenType)){
            totalTokenTypes[tokenType] += voucher.amount;
            totalTokenTypes[oldTokenType] -= voucher.amount;
            totalTokenPrices[oldTokenType] -= oldTokenPrice;
            totalTokenPrices[tokenType] += oldTokenPrice;
        }

        string memory tokenClass = voucher.tokenClass;
        string memory oldTokenClass = tokenClasses[id];
        uint256 oldTokenClassPrice = tokenClassPrices[id];
        totalTokenClassPrices[tokenClass] += msg.value;
        tokenClassPrices[id] += msg.value;
        tokenClasses[id] = tokenClass;
        if(!_compareStrings(tokenClass, oldTokenClass)){
            totalTokenClasses[tokenClass] += voucher.amount;
            totalTokenClasses[oldTokenClass] -= voucher.amount;
            totalTokenClassPrices[oldTokenClass] -= oldTokenClassPrice;
            totalTokenClassPrices[tokenClass] += oldTokenClassPrice;
        }

        emit tokenTransform(id, _tokenURI, _msgSender(), msg.value, voucher);
        return id;
    }

    function withdraw() public whenNotPaused onlyHolder
    {
        uint256 withdrawAmount = 0;
        address payable holderAddress = payable(_msgSender());
        for (uint256 i = 0; i < holderByIndex.length ; i++) {
            if(holderByIndex[i] == _msgSender()){
                Holder storage holder = holders[i];
                uint256 amount = holder.pendingWithdrawals;
                holder.pendingWithdrawals = 0;
                holder.totalWithdrawals += amount;
                pendingWithdrawals -= amount;
                totalWithdrawals += amount;
                withdrawAmount += amount;
            }
        }
        holderAddress.transfer(withdrawAmount);
    }

    //--------------------------------------------------------------------
    //-------------------------- INTERNAL --------------------------------
    //--------------------------------------------------------------------

    function _initRole(address holder, uint256 index, uint256 percentile) internal
    {
    
        holderByIndex[index] = holder;

        Holder storage currentHolder = holders[index];
        currentHolder.percentile = percentile;
        currentHolder.pendingWithdrawals = 0;
        currentHolder.totalWithdrawals = 0;

        _setupRole(HOLDER_ROLE, holder);
    }

    function _updateWithdrawals(uint256 incomeAmount) internal
    {
        for (uint256 i = 0; i < holderByIndex.length ; i++) {
            Holder storage currentHolder = holders[i];
            currentHolder.pendingWithdrawals += incomeAmount * currentHolder.percentile / PERCENT_DIGITS;
        }

        pendingWithdrawals += incomeAmount;
    }

    function _verifyVoucher(NFTVoucher calldata voucher) internal view returns (address) 
    {
        bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
            keccak256("NFTVoucher(uint256 externalId,uint256 tokenId,string tokenType,string tokenClass,string tokenURI,uint256 minPrice,uint256 amount,uint256 expire,string uniqueHash,bool fungible)"),
            voucher.externalId,
            voucher.tokenId,
            keccak256(abi.encodePacked(voucher.tokenType)),
            keccak256(abi.encodePacked(voucher.tokenClass)),
            keccak256(abi.encodePacked(voucher.tokenURI)),
            voucher.minPrice,
            voucher.amount,
            voucher.expire,
            keccak256(abi.encodePacked(voucher.uniqueHash)),
            voucher.fungible
        )));
        return ECDSA.recover(digest, voucher.signature);
    }

    function _compareStrings(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(abi.encodePacked(a)) == keccak256(abi.encodePacked(b));
    }

    function _exists(uint256 id) internal view virtual returns (bool) {
        return bytes(tokenTypes[id]).length > 0;
    }

    function _requireMinted(uint256 id) internal view virtual {
        require(_exists(id), "Invalid token ID");
    }

    function _setTokenURI(uint256 id, string memory _tokenURI) internal virtual {
        _uris[id] = _tokenURI;
    }

    //--------------------------------------------------------------------
    //-------------------------- VIEW ------------------------------------
    //--------------------------------------------------------------------

    function getChainID() external view returns (uint256) {
        uint256 id;
        assembly {
            id := chainid()
        }
        return id;
    }

    //--------------------------------------------------------------------
    //-------------------------- PAUSE/UNPAUSE ---------------------------
    //--------------------------------------------------------------------

    function pause() public whenNotPaused onlyGov{
        _pause();
    }

    function unpause() public whenPaused onlyGov{ 
        _unpause();
    }
}

File 2 of 20 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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: address zero is not a valid owner");
        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 token 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: caller is not token 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();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, 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);

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

        _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);

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

        _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();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

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

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

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

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * 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 _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);

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

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

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Emits a {TransferSingle} event.
     *
     * 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();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

        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);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Emits a {TransferBatch} event.
     *
     * 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);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {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 `ids` and `amounts` 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 {}

    /**
     * @dev Hook that is called after 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 _afterTokenTransfer(
        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 20 : draft-EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";

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

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

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

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

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

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

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

File 4 of 20 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

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

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 6 of 20 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlEnumerable.sol";
import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override {
        super._grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override {
        super._revokeRole(role, account);
        _roleMembers[role].remove(account);
    }
}

File 7 of 20 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

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

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

File 8 of 20 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions 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 9 of 20 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 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 10 of 20 : 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 11 of 20 : 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 12 of 20 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 13 of 20 : 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 14 of 20 : 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 15 of 20 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 16 of 20 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // 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);
    }

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

File 17 of 20 : IAccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable is IAccessControl {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

File 18 of 20 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

File 19 of 20 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 *  Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable.
 *  See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 *  In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"holderAnimalsSupport","type":"address"},{"internalType":"address","name":"holderGameTreasury","type":"address"},{"internalType":"address","name":"holderGameDev","type":"address"},{"internalType":"string","name":"signingDomain","type":"string"},{"internalType":"string","name":"signingVersion","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"string","name":"tokenURI","type":"string"},{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"components":[{"internalType":"uint256","name":"externalId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"tokenType","type":"string"},{"internalType":"string","name":"tokenClass","type":"string"},{"internalType":"string","name":"tokenURI","type":"string"},{"internalType":"uint256","name":"minPrice","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"expire","type":"uint256"},{"internalType":"string","name":"uniqueHash","type":"string"},{"internalType":"bool","name":"fungible","type":"bool"},{"internalType":"bytes","name":"signature","type":"bytes"}],"indexed":false,"internalType":"struct Petto.NFTVoucher","name":"voucher","type":"tuple"}],"name":"tokenMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"string","name":"tokenURI","type":"string"},{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"components":[{"internalType":"uint256","name":"externalId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"tokenType","type":"string"},{"internalType":"string","name":"tokenClass","type":"string"},{"internalType":"string","name":"tokenURI","type":"string"},{"internalType":"uint256","name":"minPrice","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"expire","type":"uint256"},{"internalType":"string","name":"uniqueHash","type":"string"},{"internalType":"bool","name":"fungible","type":"bool"},{"internalType":"bytes","name":"signature","type":"bytes"}],"indexed":false,"internalType":"struct Petto.NFTVoucher","name":"voucher","type":"tuple"}],"name":"tokenTransform","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GOV_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"HOLDER_ANIMALS_SUPPORT_INDEX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"HOLDER_ANIMALS_SUPPORT_PERCENTILE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"HOLDER_GAME_DEV_INDEX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"HOLDER_GAME_DEV_PERCENTILE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"HOLDER_GAME_TREASURY_INDEX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"HOLDER_GAME_TREASURY_PERCENTILE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"HOLDER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERCENT_DIGITS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"fungibleTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"holderByIndex","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"holders","outputs":[{"internalType":"uint256","name":"percentile","type":"uint256"},{"internalType":"uint256","name":"pendingWithdrawals","type":"uint256"},{"internalType":"uint256","name":"totalWithdrawals","type":"uint256"}],"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":[{"components":[{"internalType":"uint256","name":"externalId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"tokenType","type":"string"},{"internalType":"string","name":"tokenClass","type":"string"},{"internalType":"string","name":"tokenURI","type":"string"},{"internalType":"uint256","name":"minPrice","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"expire","type":"uint256"},{"internalType":"string","name":"uniqueHash","type":"string"},{"internalType":"bool","name":"fungible","type":"bool"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct Petto.NFTVoucher","name":"voucher","type":"tuple"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingWithdrawals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenClassPrices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenClasses","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenPrices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenTypes","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"totalTokenClassPrices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"totalTokenClasses","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"totalTokenPrices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"totalTokenTypes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalWithdrawals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"externalId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"tokenType","type":"string"},{"internalType":"string","name":"tokenClass","type":"string"},{"internalType":"string","name":"tokenURI","type":"string"},{"internalType":"uint256","name":"minPrice","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"expire","type":"uint256"},{"internalType":"string","name":"uniqueHash","type":"string"},{"internalType":"bool","name":"fungible","type":"bool"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct Petto.NFTVoucher","name":"voucher","type":"tuple"}],"name":"transform","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"updateHolder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

610180604052600c6101409081526b506574746f2041737365747360a01b61016052600690620000309082620004ef565b50604080518082019091526005815264504554544f60d81b60208201526007906200005c9082620004ef565b503480156200006a57600080fd5b506040516200505a3803806200505a8339810160408190526200008d9162000687565b818160405180602001604052806000815250620000b081620001f260201b60201c565b50815160209283012081519183019190912060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818801819052818301969096526060810194909452608080850193909352308483018190528151808603909301835260c094850190915281519190950120905291909152610120526005805460ff19169055620001553362000204565b620001626000336200025e565b6200018e7f0603f2636f0ca34ae3ea5a23bb826e2bd2ffd59fb1c01edc1ba10fba2899d1ba336200025e565b620001ba7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336200025e565b620001c9856000600f6200026a565b620001d884600160196200026a565b620001e7836002603c6200026a565b505050505062000740565b6002620002008282620004ef565b5050565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620002008282620002f2565b82600983600381106200028157620002816200072a565b0180546001600160a01b0319166001600160a01b03929092169190911790556000828152600c60205260408120828155600181018290556002810191909155620002ec7f88a91f33d69233608ec901106cda3805f1356caac193014d6c70c694090df4ae856200025e565b50505050565b6200030982826200033560201b620020821760201c565b60008281526004602090815260409091206200033091839062002108620003d9821b17901c565b505050565b60008281526003602090815260408083206001600160a01b038516845290915290205460ff16620002005760008281526003602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620003953390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000620003f0836001600160a01b038416620003f9565b90505b92915050565b60008181526001830160205260408120546200044257508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620003f3565b506000620003f3565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200047657607f821691505b6020821081036200049757634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200033057600081815260208120601f850160051c81016020861015620004c65750805b601f850160051c820191505b81811015620004e757828155600101620004d2565b505050505050565b81516001600160401b038111156200050b576200050b6200044b565b62000523816200051c845462000461565b846200049d565b602080601f8311600181146200055b5760008415620005425750858301515b600019600386901b1c1916600185901b178555620004e7565b600085815260208120601f198616915b828110156200058c578886015182559484019460019091019084016200056b565b5085821015620005ab5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80516001600160a01b0381168114620005d357600080fd5b919050565b600082601f830112620005ea57600080fd5b81516001600160401b03808211156200060757620006076200044b565b604051601f8301601f19908116603f011681019082821181831017156200063257620006326200044b565b816040528381526020925086838588010111156200064f57600080fd5b600091505b8382101562000673578582018301518183018401529082019062000654565b600093810190920192909252949350505050565b600080600080600060a08688031215620006a057600080fd5b620006ab86620005bb565b9450620006bb60208701620005bb565b9350620006cb60408701620005bb565b60608701519093506001600160401b0380821115620006e957600080fd5b620006f789838a01620005d8565b935060808801519150808211156200070e57600080fd5b506200071d88828901620005d8565b9150509295509295909350565b634e487b7160e01b600052603260045260246000fd5b60805160a05160c05160e05161010051610120516148ca62000790600039600061352b0152600061357a01526000613555015260006134ae015260006134d80152600061350201526148ca6000f3fe6080604052600436106102d45760003560e01c8063715018a61161017b578063aab0a590116100d7578063e5afe3e611610085578063e5afe3e6146108e6578063e984c59e14610913578063e985e9c514610928578063f242432a14610971578063f2fde38b14610991578063f5298aca146109b1578063f617b062146109d157600080fd5b8063aab0a59014610814578063b536818a1461084c578063beca03d51461086e578063c0086b66146107b7578063ca15c87314610884578063d5391393146108a4578063d547741f146108c657600080fd5b8063955e696c11610134578063955e696c1461074a57806395d89b41146107825780639e2057e514610797578063a217fddf146107b7578063a22cb465146107cc578063a6f69172146107ec578063a8164f9c146107ff57600080fd5b8063715018a6146106a85780638456cb59146106bd57806387338dfe146106d25780638da5cb5b146106e75780639010d07c1461070a57806391d148541461072a57600080fd5b806333f6832a116102355780634e1273f4116101e35780634e1273f4146105f2578063564b81ef1461061f5780635c975abb14610632578063604646271461064a5780636352211e1461066057806366403c92146106805780636fbc4f471461069357600080fd5b806333f6832a1461050e57806336568abe1461052e57806339e1f8e91461054e5780633ccfd60b1461057b5780633f4ba83a146105905780633f7b3a02146105a5578063444ae325146105ba57600080fd5b80630ed12e3e116102925780630ed12e3e146103cb5780631c9c304d146103eb578063248a9ca31461040d57806327fa2c921461043d5780632a11ced0146104755780632eb2c2d6146104cc5780632f2ff15d146104ee57600080fd5b8062fdd58e146102d957806301ffc9a71461030c57806306618d621461033c57806306fdde031461037457806308e637e1146103965780630e89341c146103ab575b600080fd5b3480156102e557600080fd5b506102f96102f436600461396b565b610a01565b6040519081526020015b60405180910390f35b34801561031857600080fd5b5061032c6103273660046139ab565b610a9a565b6040519015158152602001610303565b34801561034857600080fd5b506102f9610357366004613a67565b8051602081830181018051600d8252928201919093012091525481565b34801561038057600080fd5b50610389610aa5565b6040516103039190613b07565b3480156103a257600080fd5b506102f9606481565b3480156103b757600080fd5b506103896103c6366004613b1a565b610b37565b3480156103d757600080fd5b506103896103e6366004613b1a565b610bad565b3480156103f757600080fd5b506102f960008051602061483583398151915281565b34801561041957600080fd5b506102f9610428366004613b1a565b60009081526003602052604090206001015490565b34801561044957600080fd5b506102f9610458366004613a67565b805160208183018101805160128252928201919093012091525481565b34801561048157600080fd5b506104b1610490366004613b1a565b600c6020526000908152604090208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610303565b3480156104d857600080fd5b506104ec6104e7366004613be7565b610c47565b005b3480156104fa57600080fd5b506104ec610509366004613c90565b610c93565b34801561051a57600080fd5b50610389610529366004613b1a565b610cbd565b34801561053a57600080fd5b506104ec610549366004613c90565b610cd6565b34801561055a57600080fd5b506102f9610569366004613b1a565b60146020526000908152604090205481565b34801561058757600080fd5b506104ec610d54565b34801561059c57600080fd5b506104ec610e82565b3480156105b157600080fd5b506102f9603c81565b3480156105c657600080fd5b506105da6105d5366004613b1a565b610ec8565b6040516001600160a01b039091168152602001610303565b3480156105fe57600080fd5b5061061261060d366004613cbc565b610ee8565b6040516103039190613dc1565b34801561062b57600080fd5b50466102f9565b34801561063e57600080fd5b5060055460ff1661032c565b34801561065657600080fd5b506102f9601a5481565b34801561066c57600080fd5b506105da61067b366004613b1a565b611011565b6102f961068e366004613dd4565b611046565b34801561069f57600080fd5b506102f9600f81565b3480156106b457600080fd5b506104ec611667565b3480156106c957600080fd5b506104ec611679565b3480156106de57600080fd5b506102f9600181565b3480156106f357600080fd5b5060055461010090046001600160a01b03166105da565b34801561071657600080fd5b506105da610725366004613e0f565b6116bd565b34801561073657600080fd5b5061032c610745366004613c90565b6116dc565b34801561075657600080fd5b506102f9610765366004613a67565b805160208183018101805160118252928201919093012091525481565b34801561078e57600080fd5b50610389611707565b3480156107a357600080fd5b5061032c6107b236600461396b565b611716565b3480156107c357600080fd5b506102f9600081565b3480156107d857600080fd5b506104ec6107e7366004613e41565b6117e9565b6102f96107fa366004613dd4565b6117f4565b34801561080b57600080fd5b506102f9600281565b34801561082057600080fd5b506102f961082f366004613a67565b8051602081830181018051600e8252928201919093012091525481565b34801561085857600080fd5b506102f960008051602061487583398151915281565b34801561087a57600080fd5b506102f960195481565b34801561089057600080fd5b506102f961089f366004613b1a565b611c72565b3480156108b057600080fd5b506102f960008051602061485583398151915281565b3480156108d257600080fd5b506104ec6108e1366004613c90565b611c89565b3480156108f257600080fd5b506102f9610901366004613b1a565b60106020526000908152604090205481565b34801561091f57600080fd5b506102f9601981565b34801561093457600080fd5b5061032c610943366004613e6b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561097d57600080fd5b506104ec61098c366004613e95565b611cae565b34801561099d57600080fd5b506104ec6109ac366004613ef9565b611cf3565b3480156109bd57600080fd5b506104ec6109cc366004613f14565b611d6c565b3480156109dd57600080fd5b5061032c6109ec366004613b1a565b60186020526000908152604090205460ff1681565b60006001600160a01b038316610a715760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b6000610a948261211d565b606060068054610ab490613f47565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae090613f47565b8015610b2d5780601f10610b0257610100808354040283529160200191610b2d565b820191906000526020600020905b815481529060010190602001808311610b1057829003601f168201915b5050505050905090565b6060610b4282612142565b60008281526016602052604090208054610b5b90613f47565b9050600003610b7857505060408051602081019091526000815290565b6000828152601660209081526040918290209151610b97929101613f81565b6040516020818303038152906040529050919050565b60136020526000908152604090208054610bc690613f47565b80601f0160208091040260200160405190810160405280929190818152602001828054610bf290613f47565b8015610c3f5780601f10610c1457610100808354040283529160200191610c3f565b820191906000526020600020905b815481529060010190602001808311610c2257829003601f168201915b505050505081565b6001600160a01b038516331480610c635750610c638533610943565b610c7f5760405162461bcd60e51b8152600401610a6890614010565b610c8c8585858585612167565b5050505050565b600082815260036020526040902060010154610cae81612344565b610cb8838361234e565b505050565b600f6020526000908152604090208054610bc690613f47565b6001600160a01b0381163314610d465760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610a68565b610d508282612370565b5050565b610d5c612392565b610d74600080516020614835833981519152336116dc565b610d905760405162461bcd60e51b8152600401610a689061405f565b600033815b6003811015610e4b573360098260038110610db257610db261408a565b01546001600160a01b031603610e39576000818152600c602052604081206001810180549083905560028201805492939192839290610df29084906140b6565b925050819055508060196000828254610e0b91906140c9565b9250508190555080601a6000828254610e2491906140b6565b90915550610e34905081866140b6565b945050505b80610e43816140dc565b915050610d95565b506040516001600160a01b0382169083156108fc029084906000818181858888f19350505050158015610cb8573d6000803e3d6000fd5b610e8a6123d8565b610ea2600080516020614875833981519152336116dc565b610ebe5760405162461bcd60e51b8152600401610a689061405f565b610ec6612421565b565b60098160038110610ed857600080fd5b01546001600160a01b0316905081565b60608151835114610f4d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610a68565b600083516001600160401b03811115610f6857610f686139c8565b604051908082528060200260200182016040528015610f91578160200160208202803683370190505b50905060005b845181101561100957610fdc858281518110610fb557610fb561408a565b6020026020010151858381518110610fcf57610fcf61408a565b6020026020010151610a01565b828281518110610fee57610fee61408a565b6020908102919091010152611002816140dc565b9050610f97565b509392505050565b6000818152601760205260408120546001600160a01b031680610a945760405162461bcd60e51b8152600401610a68906140f5565b6000611050612392565b8160a001353410156110745760405162461bcd60e51b8152600401610a689061411f565b600061107f83612473565b9050611099600080516020614855833981519152826116dc565b6110b55760405162461bcd60e51b8152600401610a689061405f565b60e0830135156110e2578260e0013542106110e25760405162461bcd60e51b8152600401610a689061414b565b60006110f1608085018561417d565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929350505050602084013561113681612142565b60c08501356111453383610a01565b10156111635760405162461bcd60e51b8152600401610a689061405f565b815115611174576111748183612659565b61117d34612671565b600061118c604087018761417d565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250868152600f60205260408120805495965090949093506111de92509050613f47565b80601f016020809104026020016040519081016040528092919081815260200182805461120a90613f47565b80156112575780601f1061122c57610100808354040283529160200191611257565b820191906000526020600020905b81548152906001019060200180831161123a57829003601f168201915b5050506000868152601060205260409081902054905193945092349250600e91506112839086906141c3565b908152602001604051809103902060008282546112a091906140b6565b9091555050600084815260106020526040812080543492906112c39084906140b6565b90915550506000848152600f602052604090206112e08482614225565b506112eb83836126ec565b6113ca578760c00135600d8460405161130491906141c3565b9081526020016040518091039020600082825461132191906140b6565b925050819055508760c00135600d8360405161133d91906141c3565b9081526020016040518091039020600082825461135a91906140c9565b9250508190555080600e8360405161137291906141c3565b9081526020016040518091039020600082825461138f91906140c9565b9250508190555080600e846040516113a791906141c3565b908152602001604051809103902060008282546113c491906140b6565b90915550505b60006113d960608a018a61417d565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052508981526013602052604081208054959650909490935061142b92509050613f47565b80601f016020809104026020016040519081016040528092919081815260200182805461145790613f47565b80156114a45780601f10611479576101008083540402835291602001916114a4565b820191906000526020600020905b81548152906001019060200180831161148757829003601f168201915b5050506000898152601460205260409081902054905193945092349250601291506114d09086906141c3565b908152602001604051809103902060008282546114ed91906140b6565b9091555050600087815260146020526040812080543492906115109084906140b6565b9091555050600087815260136020526040902061152d8482614225565b5061153883836126ec565b611617578a60c0013560118460405161155191906141c3565b9081526020016040518091039020600082825461156e91906140b6565b925050819055508a60c0013560118360405161158a91906141c3565b908152602001604051809103902060008282546115a791906140c9565b92505081905550806012836040516115bf91906141c3565b908152602001604051809103902060008282546115dc91906140c9565b92505081905550806012846040516115f491906141c3565b9081526020016040518091039020600082825461161191906140b6565b90915550505b7fea46c36957bf21cb8603b75ccb8c1232e34a66621810568d2e368d17bcc05215878933348f60405161164e959493929190614352565b60405180910390a150949750505050505050505b919050565b61166f612745565b610ec660006127a5565b611681612392565b611699600080516020614875833981519152336116dc565b6116b55760405162461bcd60e51b8152600401610a689061405f565b610ec66127ff565b60008281526004602052604081206116d5908361283c565b9392505050565b60009182526003602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060078054610ab490613f47565b6000611720612392565b611738600080516020614875833981519152336116dc565b6117545760405162461bcd60e51b8152600401610a689061405f565b600382106117955760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b2103437b63232b960911b6044820152606401610a68565b82600983600381106117a9576117a961408a565b0180546001600160a01b0319166001600160a01b03929092169190911790556117e060008051602061483583398151915284612848565b50600192915050565b610d50338383612852565b60006117fe612392565b601561180e61014084018461417d565b60405161181c92919061448d565b9081526040519081900360200190205460ff16156118745760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881a185cc81899595b881b5a5b9d1959605a1b6044820152606401610a68565b8160a001353410156118985760405162461bcd60e51b8152600401610a689061411f565b60006118a383612473565b90506118bd600080516020614855833981519152826116dc565b6118d95760405162461bcd60e51b8152600401610a689061405f565b60e083013515611906578260e0013542106119065760405162461bcd60e51b8152600401610a689061414b565b6000611915608085018561417d565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092018290525093945050505060208501359081900361196b57611966600880546001019055565b506008545b61198a33828760c0013560405180602001604052806000815250612932565b81511561199b5761199b8183612659565b6119a434612671565b60006119b3604087018761417d565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604051929350505060c087013590600d90611a019084906141c3565b90815260200160405180910390206000828254611a1e91906140b6565b9250508190555034600e82604051611a3691906141c3565b90815260200160405180910390206000828254611a5391906140b6565b909155505060008281526010602052604081208054349290611a769084906140b6565b90915550506000828152600f60205260409020611a938282614225565b506000611aa3606088018861417d565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604051929350505060c088013590601190611af19084906141c3565b90815260200160405180910390206000828254611b0e91906140b6565b9250508190555034601282604051611b2691906141c3565b90815260200160405180910390206000828254611b4391906140b6565b909155505060008381526014602052604081208054349290611b669084906140b6565b90915550506000838152601360205260409020611b838282614225565b5060016015611b966101408a018a61417d565b604051611ba492919061448d565b908152604051908190036020019020805491151560ff19909216919091179055611bd66101408801610120890161449d565b6000848152601860205260409020805460ff1916911515919091179055611c056101408801610120890161449d565b611c2857600083815260176020526040902080546001600160a01b031916331790555b7f4d38393a5d01e1d57ccbe56c953e62b018a3cb1bbd7c5469a9732a9dbd3cd6f4838533348b604051611c5f959493929190614352565b60405180910390a1509095945050505050565b6000818152600460205260408120610a9490612a34565b600082815260036020526040902060010154611ca481612344565b610cb88383612370565b6001600160a01b038516331480611cca5750611cca8533610943565b611ce65760405162461bcd60e51b8152600401610a6890614010565b610c8c8585858585612a3e565b611cfb612745565b6001600160a01b038116611d605760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a68565b611d69816127a5565b50565b611d74612392565b611d8c600080516020614875833981519152336116dc565b80611daa5750611daa600080516020614855833981519152336116dc565b611dc65760405162461bcd60e51b8152600401610a689061405f565b611dcf82612142565b6000828152600f602052604081208054611de890613f47565b80601f0160208091040260200160405190810160405280929190818152602001828054611e1490613f47565b8015611e615780601f10611e3657610100808354040283529160200191611e61565b820191906000526020600020905b815481529060010190602001808311611e4457829003601f168201915b505050505090506000601360008581526020019081526020016000208054611e8890613f47565b80601f0160208091040260200160405190810160405280929190818152602001828054611eb490613f47565b8015611f015780601f10611ed657610100808354040283529160200191611f01565b820191906000526020600020905b815481529060010190602001808311611ee457829003601f168201915b505050600087815260106020908152604080832054601490925290912054939450929150611f329050878787612b56565b60008681526018602052604090205460ff16612011576000868152600f60205260408120611f5f91613906565b600086815260106020908152604080832083905560139091528120611f8391613906565b6000868152601460209081526040808320839055601890915290819020805460ff19169055518290600e90611fb99087906141c3565b90815260200160405180910390206000828254611fd691906140c9565b9250508190555080601284604051611fee91906141c3565b9081526020016040518091039020600082825461200b91906140c9565b90915550505b84600d8560405161202291906141c3565b9081526020016040518091039020600082825461203f91906140c9565b925050819055508460118460405161205791906141c3565b9081526020016040518091039020600082825461207491906140c9565b909155505050505050505050565b61208c82826116dc565b610d505760008281526003602090815260408083206001600160a01b03851684529091529020805460ff191660011790556120c43390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006116d5836001600160a01b038416612bea565b60006001600160e01b03198216635a05180f60e01b1480610a945750610a9482612c39565b61214b81612c5e565b611d695760405162461bcd60e51b8152600401610a68906140f5565b81518351146121c95760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610a68565b6001600160a01b0384166121ef5760405162461bcd60e51b8152600401610a68906144b8565b3360005b84518110156122d65760008582815181106122105761221061408a565b60200260200101519050600085838151811061222e5761222e61408a565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561227e5760405162461bcd60e51b8152600401610a68906144fd565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906122bb9084906140b6565b92505081905550505050806122cf906140dc565b90506121f3565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612326929190614547565b60405180910390a461233c818787878787612c84565b505050505050565b611d698133612ddf565b6123588282612082565b6000828152600460205260409020610cb89082612108565b61237a8282612e43565b6000828152600460205260409020610cb89082612eaa565b60055460ff1615610ec65760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a68565b60055460ff16610ec65760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a68565b6124296123d8565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60008061260b7f351dc9b5d1bf85ec3389fd3e948b3370f9884394f187c34c595c680c1492ba57843560208601356124ae604088018861417d565b6040516020016124bf92919061448d565b60408051601f1981840301815291905280516020909101206124e4606089018961417d565b6040516020016124f592919061448d565b60408051601f19818403018152919052805160209091012061251a60808a018a61417d565b60405160200161252b92919061448d565b60408051601f19818403018152919052805160209091012060a08a013560c08b013560e08c01356125606101008e018e61417d565b60405160200161257192919061448d565b604051602081830303815290604052805190602001208d61012001602081019061259b919061449d565b60408051602081019c909c528b019990995260608a0197909752608089019590955260a088019390935260c087019190915260e086015261010085015261012084015261014083015215156101608201526101800160405160208183030381529060405280519060200120612ebf565b90506116d58161261f61014086018661417d565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612f0d92505050565b6000828152601660205260409020610cb88282614225565b60005b60038110156126d1576000818152600c60205260409020805460649061269a9085614575565b6126a49190614594565b8160010160008282546126b791906140b6565b909155508291506126c99050816140dc565b915050612674565b5080601960008282546126e491906140b6565b909155505050565b6000816040516020016126ff91906141c3565b604051602081830303815290604052805190602001208360405160200161272691906141c3565b6040516020818303038152906040528051906020012014905092915050565b6005546001600160a01b03610100909104163314610ec65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a68565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612807612392565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586124563390565b60006116d58383612f29565b610d50828261234e565b816001600160a01b0316836001600160a01b0316036128c55760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610a68565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166129925760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610a68565b33600061299e85612f53565b905060006129ab85612f53565b90506000868152602081815260408083206001600160a01b038b168452909152812080548792906129dd9084906140b6565b909155505060408051878152602081018790526001600160a01b03808a169260009291871691600080516020614815833981519152910160405180910390a4612a2b83600089898989612f9e565b50505050505050565b6000610a94825490565b6001600160a01b038416612a645760405162461bcd60e51b8152600401610a68906144b8565b336000612a7085612f53565b90506000612a7d85612f53565b90506000868152602081815260408083206001600160a01b038c16845290915290205485811015612ac05760405162461bcd60e51b8152600401610a68906144fd565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290612afd9084906140b6565b909155505060408051888152602081018890526001600160a01b03808b16928c82169291881691600080516020614815833981519152910160405180910390a4612b4b848a8a8a8a8a612f9e565b505050505050505050565b612b61838383613059565b60008281526016602052604090208054612b7a90613f47565b1580159150612b98575060008281526018602052604090205460ff16155b15612bb4576000828152601660205260408120612bb491613906565b60008281526018602052604090205460ff16610cb85750600090815260176020526040902080546001600160a01b031916905550565b6000818152600183016020526040812054612c3157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610a94565b506000610a94565b60006001600160e01b03198216637965db0b60e01b1480610a945750610a94826131c3565b6000818152600f602052604081208054829190612c7a90613f47565b9050119050919050565b6001600160a01b0384163b1561233c5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612cc890899089908890889088906004016145b6565b6020604051808303816000875af1925050508015612d03575060408051601f3d908101601f19168201909252612d0091810190614614565b60015b612daf57612d0f614631565b806308c379a003612d485750612d2361464c565b80612d2e5750612d4a565b8060405162461bcd60e51b8152600401610a689190613b07565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610a68565b6001600160e01b0319811663bc197c8160e01b14612a2b5760405162461bcd60e51b8152600401610a68906146d5565b612de982826116dc565b610d5057612e01816001600160a01b03166014613213565b612e0c836020613213565b604051602001612e1d92919061471d565b60408051601f198184030181529082905262461bcd60e51b8252610a6891600401613b07565b612e4d82826116dc565b15610d505760008281526003602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006116d5836001600160a01b0384166133ae565b6000610a94612ecc6134a1565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000612f1c85856135cb565b9150915061100981613639565b6000826000018281548110612f4057612f4061408a565b9060005260206000200154905092915050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612f8d57612f8d61408a565b602090810291909101015292915050565b6001600160a01b0384163b1561233c5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612fe2908990899088908890889060040161478c565b6020604051808303816000875af192505050801561301d575060408051601f3d908101601f1916820190925261301a91810190614614565b60015b61302957612d0f614631565b6001600160e01b0319811663f23a6e6160e01b14612a2b5760405162461bcd60e51b8152600401610a68906146d5565b6001600160a01b0383166130bb5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610a68565b3360006130c784612f53565b905060006130d484612f53565b60408051602080820183526000918290528882528181528282206001600160a01b038b168352905220549091508481101561315d5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610a68565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a9052909290881691600080516020614815833981519152910160405180910390a4604080516020810190915260009052612a2b565b60006001600160e01b03198216636cdb3d1360e11b14806131f457506001600160e01b031982166303a24d0760e21b145b80610a9457506301ffc9a760e01b6001600160e01b0319831614610a94565b60606000613222836002614575565b61322d9060026140b6565b6001600160401b03811115613244576132446139c8565b6040519080825280601f01601f19166020018201604052801561326e576020820181803683370190505b509050600360fc1b816000815181106132895761328961408a565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106132b8576132b861408a565b60200101906001600160f81b031916908160001a90535060006132dc846002614575565b6132e79060016140b6565b90505b600181111561335f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061331b5761331b61408a565b1a60f81b8282815181106133315761333161408a565b60200101906001600160f81b031916908160001a90535060049490941c93613358816147d1565b90506132ea565b5083156116d55760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a68565b600081815260018301602052604081205480156134975760006133d26001836140c9565b85549091506000906133e6906001906140c9565b905081811461344b5760008660000182815481106134065761340661408a565b90600052602060002001549050808760000184815481106134295761342961408a565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061345c5761345c6147e8565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610a94565b6000915050610a94565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480156134fa57507f000000000000000000000000000000000000000000000000000000000000000046145b1561352457507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b90565b60008082516041036136015760208301516040840151606085015160001a6135f5878285856137ea565b94509450505050613632565b825160400361362a576020830151604084015161361f8683836138cd565b935093505050613632565b506000905060025b9250929050565b600081600481111561364d5761364d6147fe565b036136555750565b6001816004811115613669576136696147fe565b036136b15760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b6044820152606401610a68565b60028160048111156136c5576136c56147fe565b036137125760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a68565b6003816004811115613726576137266147fe565b0361377e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a68565b6004816004811115613792576137926147fe565b03611d695760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a68565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b0383111561381757506000905060036138c4565b8460ff16601b1415801561382f57508460ff16601c14155b1561384057506000905060046138c4565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613894573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166138bd576000600192509250506138c4565b9150600090505b94509492505050565b6000806001600160ff1b038316816138ea60ff86901c601b6140b6565b90506138f8878288856137ea565b935093505050935093915050565b50805461391290613f47565b6000825580601f10613922575050565b601f016020900490600052602060002090810190611d6991905b80821115613950576000815560010161393c565b5090565b80356001600160a01b038116811461166257600080fd5b6000806040838503121561397e57600080fd5b61398783613954565b946020939093013593505050565b6001600160e01b031981168114611d6957600080fd5b6000602082840312156139bd57600080fd5b81356116d581613995565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715613a0357613a036139c8565b6040525050565b60006001600160401b03831115613a2357613a236139c8565b604051613a3a601f8501601f1916602001826139de565b809150838152848484011115613a4f57600080fd5b83836020830137600060208583010152509392505050565b600060208284031215613a7957600080fd5b81356001600160401b03811115613a8f57600080fd5b8201601f81018413613aa057600080fd5b613aaf84823560208401613a0a565b949350505050565b60005b83811015613ad2578181015183820152602001613aba565b50506000910152565b60008151808452613af3816020860160208601613ab7565b601f01601f19169290920160200192915050565b6020815260006116d56020830184613adb565b600060208284031215613b2c57600080fd5b5035919050565b60006001600160401b03821115613b4c57613b4c6139c8565b5060051b60200190565b600082601f830112613b6757600080fd5b81356020613b7482613b33565b604051613b8182826139de565b83815260059390931b8501820192828101915086841115613ba157600080fd5b8286015b84811015613bbc5780358352918301918301613ba5565b509695505050505050565b600082601f830112613bd857600080fd5b6116d583833560208501613a0a565b600080600080600060a08688031215613bff57600080fd5b613c0886613954565b9450613c1660208701613954565b935060408601356001600160401b0380821115613c3257600080fd5b613c3e89838a01613b56565b94506060880135915080821115613c5457600080fd5b613c6089838a01613b56565b93506080880135915080821115613c7657600080fd5b50613c8388828901613bc7565b9150509295509295909350565b60008060408385031215613ca357600080fd5b82359150613cb360208401613954565b90509250929050565b60008060408385031215613ccf57600080fd5b82356001600160401b0380821115613ce657600080fd5b818501915085601f830112613cfa57600080fd5b81356020613d0782613b33565b604051613d1482826139de565b83815260059390931b8501820192828101915089841115613d3457600080fd5b948201945b83861015613d5957613d4a86613954565b82529482019490820190613d39565b96505086013592505080821115613d6f57600080fd5b50613d7c85828601613b56565b9150509250929050565b600081518084526020808501945080840160005b83811015613db657815187529582019590820190600101613d9a565b509495945050505050565b6020815260006116d56020830184613d86565b600060208284031215613de657600080fd5b81356001600160401b03811115613dfc57600080fd5b820161016081850312156116d557600080fd5b60008060408385031215613e2257600080fd5b50508035926020909101359150565b8035801515811461166257600080fd5b60008060408385031215613e5457600080fd5b613e5d83613954565b9150613cb360208401613e31565b60008060408385031215613e7e57600080fd5b613e8783613954565b9150613cb360208401613954565b600080600080600060a08688031215613ead57600080fd5b613eb686613954565b9450613ec460208701613954565b9350604086013592506060860135915060808601356001600160401b03811115613eed57600080fd5b613c8388828901613bc7565b600060208284031215613f0b57600080fd5b6116d582613954565b600080600060608486031215613f2957600080fd5b613f3284613954565b95602085013595506040909401359392505050565b600181811c90821680613f5b57607f821691505b602082108103613f7b57634e487b7160e01b600052602260045260246000fd5b50919050565b66697066733a2f2f60c81b81526000600760008454613f9f81613f47565b60018281168015613fb75760018114613fd057614003565b60ff198416888701528215158302880186019450614003565b8860005260208060002060005b85811015613ff85781548b82018a0152908401908201613fdd565b505050858389010194505b5092979650505050505050565b6020808252602f908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526e195c881b9bdc88185c1c1c9bdd9959608a1b606082015260800190565b60208082526011908201527014195c9b5a5cdcda5bdb8819195b9a5959607a1b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610a9457610a946140a0565b81810381811115610a9457610a946140a0565b6000600182016140ee576140ee6140a0565b5060010190565b60208082526010908201526f125b9d985b1a59081d1bdad95b88125160821b604082015260600190565b602080825260129082015271496e73756666696369656e742066756e647360701b604082015260600190565b602080825260189082015277159bdd58da195c881a185cc81899595b88195e1c1a5c995960421b604082015260600190565b6000808335601e1984360301811261419457600080fd5b8301803591506001600160401b038211156141ae57600080fd5b60200191503681900382131561363257600080fd5b600082516141d5818460208701613ab7565b9190910192915050565b601f821115610cb857600081815260208120601f850160051c810160208610156142065750805b601f850160051c820191505b8181101561233c57828155600101614212565b81516001600160401b0381111561423e5761423e6139c8565b6142528161424c8454613f47565b846141df565b602080601f831160018114614287576000841561426f5750858301515b600019600386901b1c1916600185901b17855561233c565b600085815260208120601f198616915b828110156142b657888601518255948401946001909101908401614297565b50858210156142d45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000808335601e198436030181126142fb57600080fd5b83016020810192503590506001600160401b0381111561431a57600080fd5b80360382131561363257600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b85815260a06020820152600061436b60a0830187613adb565b60018060a01b0386166040840152846060840152828103608084015261016084358252602085013560208301526143a560408601866142e4565b8260408501526143b88385018284614329565b925050506143c960608601866142e4565b83830360608501526143dc838284614329565b925050506143ed60808601866142e4565b8383036080850152614400838284614329565b9250505060a085013560a083015260c085013560c083015260e085013560e0830152610100614431818701876142e4565b84840383860152614443848284614329565b9350505050610120614456818701613e31565b15159083015261014061446b868201876142e4565b8484038386015261447d848284614329565b9c9b505050505050505050505050565b8183823760009101908152919050565b6000602082840312156144af57600080fd5b6116d582613e31565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60408152600061455a6040830185613d86565b828103602084015261456c8185613d86565b95945050505050565b600081600019048311821515161561458f5761458f6140a0565b500290565b6000826145b157634e487b7160e01b600052601260045260246000fd5b500490565b6001600160a01b0386811682528516602082015260a0604082018190526000906145e290830186613d86565b82810360608401526145f48186613d86565b905082810360808401526146088185613adb565b98975050505050505050565b60006020828403121561462657600080fd5b81516116d581613995565b600060033d11156135c85760046000803e5060005160e01c90565b600060443d101561465a5790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561468957505050505090565b82850191508151818111156146a15750505050505090565b843d87010160208285010111156146bb5750505050505090565b6146ca602082860101876139de565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b81526000835161474f816017850160208801613ab7565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351614780816028840160208801613ab7565b01602801949350505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906147c690830184613adb565b979650505050505050565b6000816147e0576147e06140a0565b506000190190565b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052602160045260246000fdfec3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6288a91f33d69233608ec901106cda3805f1356caac193014d6c70c694090df4ae9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a60603f2636f0ca34ae3ea5a23bb826e2bd2ffd59fb1c01edc1ba10fba2899d1baa26469706673582212205644ebdcf6d01353744382ce2024db76eecc1bc1796fdb63039691ec54f583f664736f6c634300081000330000000000000000000000006b1429474bd198fb2d4583503f47577f26634147000000000000000000000000c6bca818b46f261d59a9328d875296fa7d19b09f0000000000000000000000000a8a7816767bfe0018f2d9132331ed802c7fd6ed00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000008706574746f4e465400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013100000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102d45760003560e01c8063715018a61161017b578063aab0a590116100d7578063e5afe3e611610085578063e5afe3e6146108e6578063e984c59e14610913578063e985e9c514610928578063f242432a14610971578063f2fde38b14610991578063f5298aca146109b1578063f617b062146109d157600080fd5b8063aab0a59014610814578063b536818a1461084c578063beca03d51461086e578063c0086b66146107b7578063ca15c87314610884578063d5391393146108a4578063d547741f146108c657600080fd5b8063955e696c11610134578063955e696c1461074a57806395d89b41146107825780639e2057e514610797578063a217fddf146107b7578063a22cb465146107cc578063a6f69172146107ec578063a8164f9c146107ff57600080fd5b8063715018a6146106a85780638456cb59146106bd57806387338dfe146106d25780638da5cb5b146106e75780639010d07c1461070a57806391d148541461072a57600080fd5b806333f6832a116102355780634e1273f4116101e35780634e1273f4146105f2578063564b81ef1461061f5780635c975abb14610632578063604646271461064a5780636352211e1461066057806366403c92146106805780636fbc4f471461069357600080fd5b806333f6832a1461050e57806336568abe1461052e57806339e1f8e91461054e5780633ccfd60b1461057b5780633f4ba83a146105905780633f7b3a02146105a5578063444ae325146105ba57600080fd5b80630ed12e3e116102925780630ed12e3e146103cb5780631c9c304d146103eb578063248a9ca31461040d57806327fa2c921461043d5780632a11ced0146104755780632eb2c2d6146104cc5780632f2ff15d146104ee57600080fd5b8062fdd58e146102d957806301ffc9a71461030c57806306618d621461033c57806306fdde031461037457806308e637e1146103965780630e89341c146103ab575b600080fd5b3480156102e557600080fd5b506102f96102f436600461396b565b610a01565b6040519081526020015b60405180910390f35b34801561031857600080fd5b5061032c6103273660046139ab565b610a9a565b6040519015158152602001610303565b34801561034857600080fd5b506102f9610357366004613a67565b8051602081830181018051600d8252928201919093012091525481565b34801561038057600080fd5b50610389610aa5565b6040516103039190613b07565b3480156103a257600080fd5b506102f9606481565b3480156103b757600080fd5b506103896103c6366004613b1a565b610b37565b3480156103d757600080fd5b506103896103e6366004613b1a565b610bad565b3480156103f757600080fd5b506102f960008051602061483583398151915281565b34801561041957600080fd5b506102f9610428366004613b1a565b60009081526003602052604090206001015490565b34801561044957600080fd5b506102f9610458366004613a67565b805160208183018101805160128252928201919093012091525481565b34801561048157600080fd5b506104b1610490366004613b1a565b600c6020526000908152604090208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610303565b3480156104d857600080fd5b506104ec6104e7366004613be7565b610c47565b005b3480156104fa57600080fd5b506104ec610509366004613c90565b610c93565b34801561051a57600080fd5b50610389610529366004613b1a565b610cbd565b34801561053a57600080fd5b506104ec610549366004613c90565b610cd6565b34801561055a57600080fd5b506102f9610569366004613b1a565b60146020526000908152604090205481565b34801561058757600080fd5b506104ec610d54565b34801561059c57600080fd5b506104ec610e82565b3480156105b157600080fd5b506102f9603c81565b3480156105c657600080fd5b506105da6105d5366004613b1a565b610ec8565b6040516001600160a01b039091168152602001610303565b3480156105fe57600080fd5b5061061261060d366004613cbc565b610ee8565b6040516103039190613dc1565b34801561062b57600080fd5b50466102f9565b34801561063e57600080fd5b5060055460ff1661032c565b34801561065657600080fd5b506102f9601a5481565b34801561066c57600080fd5b506105da61067b366004613b1a565b611011565b6102f961068e366004613dd4565b611046565b34801561069f57600080fd5b506102f9600f81565b3480156106b457600080fd5b506104ec611667565b3480156106c957600080fd5b506104ec611679565b3480156106de57600080fd5b506102f9600181565b3480156106f357600080fd5b5060055461010090046001600160a01b03166105da565b34801561071657600080fd5b506105da610725366004613e0f565b6116bd565b34801561073657600080fd5b5061032c610745366004613c90565b6116dc565b34801561075657600080fd5b506102f9610765366004613a67565b805160208183018101805160118252928201919093012091525481565b34801561078e57600080fd5b50610389611707565b3480156107a357600080fd5b5061032c6107b236600461396b565b611716565b3480156107c357600080fd5b506102f9600081565b3480156107d857600080fd5b506104ec6107e7366004613e41565b6117e9565b6102f96107fa366004613dd4565b6117f4565b34801561080b57600080fd5b506102f9600281565b34801561082057600080fd5b506102f961082f366004613a67565b8051602081830181018051600e8252928201919093012091525481565b34801561085857600080fd5b506102f960008051602061487583398151915281565b34801561087a57600080fd5b506102f960195481565b34801561089057600080fd5b506102f961089f366004613b1a565b611c72565b3480156108b057600080fd5b506102f960008051602061485583398151915281565b3480156108d257600080fd5b506104ec6108e1366004613c90565b611c89565b3480156108f257600080fd5b506102f9610901366004613b1a565b60106020526000908152604090205481565b34801561091f57600080fd5b506102f9601981565b34801561093457600080fd5b5061032c610943366004613e6b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561097d57600080fd5b506104ec61098c366004613e95565b611cae565b34801561099d57600080fd5b506104ec6109ac366004613ef9565b611cf3565b3480156109bd57600080fd5b506104ec6109cc366004613f14565b611d6c565b3480156109dd57600080fd5b5061032c6109ec366004613b1a565b60186020526000908152604090205460ff1681565b60006001600160a01b038316610a715760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b6000610a948261211d565b606060068054610ab490613f47565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae090613f47565b8015610b2d5780601f10610b0257610100808354040283529160200191610b2d565b820191906000526020600020905b815481529060010190602001808311610b1057829003601f168201915b5050505050905090565b6060610b4282612142565b60008281526016602052604090208054610b5b90613f47565b9050600003610b7857505060408051602081019091526000815290565b6000828152601660209081526040918290209151610b97929101613f81565b6040516020818303038152906040529050919050565b60136020526000908152604090208054610bc690613f47565b80601f0160208091040260200160405190810160405280929190818152602001828054610bf290613f47565b8015610c3f5780601f10610c1457610100808354040283529160200191610c3f565b820191906000526020600020905b815481529060010190602001808311610c2257829003601f168201915b505050505081565b6001600160a01b038516331480610c635750610c638533610943565b610c7f5760405162461bcd60e51b8152600401610a6890614010565b610c8c8585858585612167565b5050505050565b600082815260036020526040902060010154610cae81612344565b610cb8838361234e565b505050565b600f6020526000908152604090208054610bc690613f47565b6001600160a01b0381163314610d465760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610a68565b610d508282612370565b5050565b610d5c612392565b610d74600080516020614835833981519152336116dc565b610d905760405162461bcd60e51b8152600401610a689061405f565b600033815b6003811015610e4b573360098260038110610db257610db261408a565b01546001600160a01b031603610e39576000818152600c602052604081206001810180549083905560028201805492939192839290610df29084906140b6565b925050819055508060196000828254610e0b91906140c9565b9250508190555080601a6000828254610e2491906140b6565b90915550610e34905081866140b6565b945050505b80610e43816140dc565b915050610d95565b506040516001600160a01b0382169083156108fc029084906000818181858888f19350505050158015610cb8573d6000803e3d6000fd5b610e8a6123d8565b610ea2600080516020614875833981519152336116dc565b610ebe5760405162461bcd60e51b8152600401610a689061405f565b610ec6612421565b565b60098160038110610ed857600080fd5b01546001600160a01b0316905081565b60608151835114610f4d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610a68565b600083516001600160401b03811115610f6857610f686139c8565b604051908082528060200260200182016040528015610f91578160200160208202803683370190505b50905060005b845181101561100957610fdc858281518110610fb557610fb561408a565b6020026020010151858381518110610fcf57610fcf61408a565b6020026020010151610a01565b828281518110610fee57610fee61408a565b6020908102919091010152611002816140dc565b9050610f97565b509392505050565b6000818152601760205260408120546001600160a01b031680610a945760405162461bcd60e51b8152600401610a68906140f5565b6000611050612392565b8160a001353410156110745760405162461bcd60e51b8152600401610a689061411f565b600061107f83612473565b9050611099600080516020614855833981519152826116dc565b6110b55760405162461bcd60e51b8152600401610a689061405f565b60e0830135156110e2578260e0013542106110e25760405162461bcd60e51b8152600401610a689061414b565b60006110f1608085018561417d565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929350505050602084013561113681612142565b60c08501356111453383610a01565b10156111635760405162461bcd60e51b8152600401610a689061405f565b815115611174576111748183612659565b61117d34612671565b600061118c604087018761417d565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250868152600f60205260408120805495965090949093506111de92509050613f47565b80601f016020809104026020016040519081016040528092919081815260200182805461120a90613f47565b80156112575780601f1061122c57610100808354040283529160200191611257565b820191906000526020600020905b81548152906001019060200180831161123a57829003601f168201915b5050506000868152601060205260409081902054905193945092349250600e91506112839086906141c3565b908152602001604051809103902060008282546112a091906140b6565b9091555050600084815260106020526040812080543492906112c39084906140b6565b90915550506000848152600f602052604090206112e08482614225565b506112eb83836126ec565b6113ca578760c00135600d8460405161130491906141c3565b9081526020016040518091039020600082825461132191906140b6565b925050819055508760c00135600d8360405161133d91906141c3565b9081526020016040518091039020600082825461135a91906140c9565b9250508190555080600e8360405161137291906141c3565b9081526020016040518091039020600082825461138f91906140c9565b9250508190555080600e846040516113a791906141c3565b908152602001604051809103902060008282546113c491906140b6565b90915550505b60006113d960608a018a61417d565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052508981526013602052604081208054959650909490935061142b92509050613f47565b80601f016020809104026020016040519081016040528092919081815260200182805461145790613f47565b80156114a45780601f10611479576101008083540402835291602001916114a4565b820191906000526020600020905b81548152906001019060200180831161148757829003601f168201915b5050506000898152601460205260409081902054905193945092349250601291506114d09086906141c3565b908152602001604051809103902060008282546114ed91906140b6565b9091555050600087815260146020526040812080543492906115109084906140b6565b9091555050600087815260136020526040902061152d8482614225565b5061153883836126ec565b611617578a60c0013560118460405161155191906141c3565b9081526020016040518091039020600082825461156e91906140b6565b925050819055508a60c0013560118360405161158a91906141c3565b908152602001604051809103902060008282546115a791906140c9565b92505081905550806012836040516115bf91906141c3565b908152602001604051809103902060008282546115dc91906140c9565b92505081905550806012846040516115f491906141c3565b9081526020016040518091039020600082825461161191906140b6565b90915550505b7fea46c36957bf21cb8603b75ccb8c1232e34a66621810568d2e368d17bcc05215878933348f60405161164e959493929190614352565b60405180910390a150949750505050505050505b919050565b61166f612745565b610ec660006127a5565b611681612392565b611699600080516020614875833981519152336116dc565b6116b55760405162461bcd60e51b8152600401610a689061405f565b610ec66127ff565b60008281526004602052604081206116d5908361283c565b9392505050565b60009182526003602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060078054610ab490613f47565b6000611720612392565b611738600080516020614875833981519152336116dc565b6117545760405162461bcd60e51b8152600401610a689061405f565b600382106117955760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b2103437b63232b960911b6044820152606401610a68565b82600983600381106117a9576117a961408a565b0180546001600160a01b0319166001600160a01b03929092169190911790556117e060008051602061483583398151915284612848565b50600192915050565b610d50338383612852565b60006117fe612392565b601561180e61014084018461417d565b60405161181c92919061448d565b9081526040519081900360200190205460ff16156118745760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881a185cc81899595b881b5a5b9d1959605a1b6044820152606401610a68565b8160a001353410156118985760405162461bcd60e51b8152600401610a689061411f565b60006118a383612473565b90506118bd600080516020614855833981519152826116dc565b6118d95760405162461bcd60e51b8152600401610a689061405f565b60e083013515611906578260e0013542106119065760405162461bcd60e51b8152600401610a689061414b565b6000611915608085018561417d565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092018290525093945050505060208501359081900361196b57611966600880546001019055565b506008545b61198a33828760c0013560405180602001604052806000815250612932565b81511561199b5761199b8183612659565b6119a434612671565b60006119b3604087018761417d565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604051929350505060c087013590600d90611a019084906141c3565b90815260200160405180910390206000828254611a1e91906140b6565b9250508190555034600e82604051611a3691906141c3565b90815260200160405180910390206000828254611a5391906140b6565b909155505060008281526010602052604081208054349290611a769084906140b6565b90915550506000828152600f60205260409020611a938282614225565b506000611aa3606088018861417d565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604051929350505060c088013590601190611af19084906141c3565b90815260200160405180910390206000828254611b0e91906140b6565b9250508190555034601282604051611b2691906141c3565b90815260200160405180910390206000828254611b4391906140b6565b909155505060008381526014602052604081208054349290611b669084906140b6565b90915550506000838152601360205260409020611b838282614225565b5060016015611b966101408a018a61417d565b604051611ba492919061448d565b908152604051908190036020019020805491151560ff19909216919091179055611bd66101408801610120890161449d565b6000848152601860205260409020805460ff1916911515919091179055611c056101408801610120890161449d565b611c2857600083815260176020526040902080546001600160a01b031916331790555b7f4d38393a5d01e1d57ccbe56c953e62b018a3cb1bbd7c5469a9732a9dbd3cd6f4838533348b604051611c5f959493929190614352565b60405180910390a1509095945050505050565b6000818152600460205260408120610a9490612a34565b600082815260036020526040902060010154611ca481612344565b610cb88383612370565b6001600160a01b038516331480611cca5750611cca8533610943565b611ce65760405162461bcd60e51b8152600401610a6890614010565b610c8c8585858585612a3e565b611cfb612745565b6001600160a01b038116611d605760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a68565b611d69816127a5565b50565b611d74612392565b611d8c600080516020614875833981519152336116dc565b80611daa5750611daa600080516020614855833981519152336116dc565b611dc65760405162461bcd60e51b8152600401610a689061405f565b611dcf82612142565b6000828152600f602052604081208054611de890613f47565b80601f0160208091040260200160405190810160405280929190818152602001828054611e1490613f47565b8015611e615780601f10611e3657610100808354040283529160200191611e61565b820191906000526020600020905b815481529060010190602001808311611e4457829003601f168201915b505050505090506000601360008581526020019081526020016000208054611e8890613f47565b80601f0160208091040260200160405190810160405280929190818152602001828054611eb490613f47565b8015611f015780601f10611ed657610100808354040283529160200191611f01565b820191906000526020600020905b815481529060010190602001808311611ee457829003601f168201915b505050600087815260106020908152604080832054601490925290912054939450929150611f329050878787612b56565b60008681526018602052604090205460ff16612011576000868152600f60205260408120611f5f91613906565b600086815260106020908152604080832083905560139091528120611f8391613906565b6000868152601460209081526040808320839055601890915290819020805460ff19169055518290600e90611fb99087906141c3565b90815260200160405180910390206000828254611fd691906140c9565b9250508190555080601284604051611fee91906141c3565b9081526020016040518091039020600082825461200b91906140c9565b90915550505b84600d8560405161202291906141c3565b9081526020016040518091039020600082825461203f91906140c9565b925050819055508460118460405161205791906141c3565b9081526020016040518091039020600082825461207491906140c9565b909155505050505050505050565b61208c82826116dc565b610d505760008281526003602090815260408083206001600160a01b03851684529091529020805460ff191660011790556120c43390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006116d5836001600160a01b038416612bea565b60006001600160e01b03198216635a05180f60e01b1480610a945750610a9482612c39565b61214b81612c5e565b611d695760405162461bcd60e51b8152600401610a68906140f5565b81518351146121c95760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610a68565b6001600160a01b0384166121ef5760405162461bcd60e51b8152600401610a68906144b8565b3360005b84518110156122d65760008582815181106122105761221061408a565b60200260200101519050600085838151811061222e5761222e61408a565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561227e5760405162461bcd60e51b8152600401610a68906144fd565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906122bb9084906140b6565b92505081905550505050806122cf906140dc565b90506121f3565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612326929190614547565b60405180910390a461233c818787878787612c84565b505050505050565b611d698133612ddf565b6123588282612082565b6000828152600460205260409020610cb89082612108565b61237a8282612e43565b6000828152600460205260409020610cb89082612eaa565b60055460ff1615610ec65760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a68565b60055460ff16610ec65760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a68565b6124296123d8565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60008061260b7f351dc9b5d1bf85ec3389fd3e948b3370f9884394f187c34c595c680c1492ba57843560208601356124ae604088018861417d565b6040516020016124bf92919061448d565b60408051601f1981840301815291905280516020909101206124e4606089018961417d565b6040516020016124f592919061448d565b60408051601f19818403018152919052805160209091012061251a60808a018a61417d565b60405160200161252b92919061448d565b60408051601f19818403018152919052805160209091012060a08a013560c08b013560e08c01356125606101008e018e61417d565b60405160200161257192919061448d565b604051602081830303815290604052805190602001208d61012001602081019061259b919061449d565b60408051602081019c909c528b019990995260608a0197909752608089019590955260a088019390935260c087019190915260e086015261010085015261012084015261014083015215156101608201526101800160405160208183030381529060405280519060200120612ebf565b90506116d58161261f61014086018661417d565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612f0d92505050565b6000828152601660205260409020610cb88282614225565b60005b60038110156126d1576000818152600c60205260409020805460649061269a9085614575565b6126a49190614594565b8160010160008282546126b791906140b6565b909155508291506126c99050816140dc565b915050612674565b5080601960008282546126e491906140b6565b909155505050565b6000816040516020016126ff91906141c3565b604051602081830303815290604052805190602001208360405160200161272691906141c3565b6040516020818303038152906040528051906020012014905092915050565b6005546001600160a01b03610100909104163314610ec65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a68565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612807612392565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586124563390565b60006116d58383612f29565b610d50828261234e565b816001600160a01b0316836001600160a01b0316036128c55760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610a68565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166129925760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610a68565b33600061299e85612f53565b905060006129ab85612f53565b90506000868152602081815260408083206001600160a01b038b168452909152812080548792906129dd9084906140b6565b909155505060408051878152602081018790526001600160a01b03808a169260009291871691600080516020614815833981519152910160405180910390a4612a2b83600089898989612f9e565b50505050505050565b6000610a94825490565b6001600160a01b038416612a645760405162461bcd60e51b8152600401610a68906144b8565b336000612a7085612f53565b90506000612a7d85612f53565b90506000868152602081815260408083206001600160a01b038c16845290915290205485811015612ac05760405162461bcd60e51b8152600401610a68906144fd565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290612afd9084906140b6565b909155505060408051888152602081018890526001600160a01b03808b16928c82169291881691600080516020614815833981519152910160405180910390a4612b4b848a8a8a8a8a612f9e565b505050505050505050565b612b61838383613059565b60008281526016602052604090208054612b7a90613f47565b1580159150612b98575060008281526018602052604090205460ff16155b15612bb4576000828152601660205260408120612bb491613906565b60008281526018602052604090205460ff16610cb85750600090815260176020526040902080546001600160a01b031916905550565b6000818152600183016020526040812054612c3157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610a94565b506000610a94565b60006001600160e01b03198216637965db0b60e01b1480610a945750610a94826131c3565b6000818152600f602052604081208054829190612c7a90613f47565b9050119050919050565b6001600160a01b0384163b1561233c5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612cc890899089908890889088906004016145b6565b6020604051808303816000875af1925050508015612d03575060408051601f3d908101601f19168201909252612d0091810190614614565b60015b612daf57612d0f614631565b806308c379a003612d485750612d2361464c565b80612d2e5750612d4a565b8060405162461bcd60e51b8152600401610a689190613b07565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610a68565b6001600160e01b0319811663bc197c8160e01b14612a2b5760405162461bcd60e51b8152600401610a68906146d5565b612de982826116dc565b610d5057612e01816001600160a01b03166014613213565b612e0c836020613213565b604051602001612e1d92919061471d565b60408051601f198184030181529082905262461bcd60e51b8252610a6891600401613b07565b612e4d82826116dc565b15610d505760008281526003602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006116d5836001600160a01b0384166133ae565b6000610a94612ecc6134a1565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000612f1c85856135cb565b9150915061100981613639565b6000826000018281548110612f4057612f4061408a565b9060005260206000200154905092915050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612f8d57612f8d61408a565b602090810291909101015292915050565b6001600160a01b0384163b1561233c5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612fe2908990899088908890889060040161478c565b6020604051808303816000875af192505050801561301d575060408051601f3d908101601f1916820190925261301a91810190614614565b60015b61302957612d0f614631565b6001600160e01b0319811663f23a6e6160e01b14612a2b5760405162461bcd60e51b8152600401610a68906146d5565b6001600160a01b0383166130bb5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610a68565b3360006130c784612f53565b905060006130d484612f53565b60408051602080820183526000918290528882528181528282206001600160a01b038b168352905220549091508481101561315d5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610a68565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a9052909290881691600080516020614815833981519152910160405180910390a4604080516020810190915260009052612a2b565b60006001600160e01b03198216636cdb3d1360e11b14806131f457506001600160e01b031982166303a24d0760e21b145b80610a9457506301ffc9a760e01b6001600160e01b0319831614610a94565b60606000613222836002614575565b61322d9060026140b6565b6001600160401b03811115613244576132446139c8565b6040519080825280601f01601f19166020018201604052801561326e576020820181803683370190505b509050600360fc1b816000815181106132895761328961408a565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106132b8576132b861408a565b60200101906001600160f81b031916908160001a90535060006132dc846002614575565b6132e79060016140b6565b90505b600181111561335f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061331b5761331b61408a565b1a60f81b8282815181106133315761333161408a565b60200101906001600160f81b031916908160001a90535060049490941c93613358816147d1565b90506132ea565b5083156116d55760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a68565b600081815260018301602052604081205480156134975760006133d26001836140c9565b85549091506000906133e6906001906140c9565b905081811461344b5760008660000182815481106134065761340661408a565b90600052602060002001549050808760000184815481106134295761342961408a565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061345c5761345c6147e8565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610a94565b6000915050610a94565b6000306001600160a01b037f00000000000000000000000070ec1dbf992729f2cd0a2ae056599f23820522ef161480156134fa57507f000000000000000000000000000000000000000000000000000000000000008946145b1561352457507f3f577926b027775f969b054b59b8babf79754848905c4eb9b49a22da872c46a690565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f025ffa32367d3bc847967752446198c00e6308a60e79f1f416c7f810fbc1f0e2828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b90565b60008082516041036136015760208301516040840151606085015160001a6135f5878285856137ea565b94509450505050613632565b825160400361362a576020830151604084015161361f8683836138cd565b935093505050613632565b506000905060025b9250929050565b600081600481111561364d5761364d6147fe565b036136555750565b6001816004811115613669576136696147fe565b036136b15760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b6044820152606401610a68565b60028160048111156136c5576136c56147fe565b036137125760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a68565b6003816004811115613726576137266147fe565b0361377e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a68565b6004816004811115613792576137926147fe565b03611d695760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a68565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b0383111561381757506000905060036138c4565b8460ff16601b1415801561382f57508460ff16601c14155b1561384057506000905060046138c4565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613894573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166138bd576000600192509250506138c4565b9150600090505b94509492505050565b6000806001600160ff1b038316816138ea60ff86901c601b6140b6565b90506138f8878288856137ea565b935093505050935093915050565b50805461391290613f47565b6000825580601f10613922575050565b601f016020900490600052602060002090810190611d6991905b80821115613950576000815560010161393c565b5090565b80356001600160a01b038116811461166257600080fd5b6000806040838503121561397e57600080fd5b61398783613954565b946020939093013593505050565b6001600160e01b031981168114611d6957600080fd5b6000602082840312156139bd57600080fd5b81356116d581613995565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715613a0357613a036139c8565b6040525050565b60006001600160401b03831115613a2357613a236139c8565b604051613a3a601f8501601f1916602001826139de565b809150838152848484011115613a4f57600080fd5b83836020830137600060208583010152509392505050565b600060208284031215613a7957600080fd5b81356001600160401b03811115613a8f57600080fd5b8201601f81018413613aa057600080fd5b613aaf84823560208401613a0a565b949350505050565b60005b83811015613ad2578181015183820152602001613aba565b50506000910152565b60008151808452613af3816020860160208601613ab7565b601f01601f19169290920160200192915050565b6020815260006116d56020830184613adb565b600060208284031215613b2c57600080fd5b5035919050565b60006001600160401b03821115613b4c57613b4c6139c8565b5060051b60200190565b600082601f830112613b6757600080fd5b81356020613b7482613b33565b604051613b8182826139de565b83815260059390931b8501820192828101915086841115613ba157600080fd5b8286015b84811015613bbc5780358352918301918301613ba5565b509695505050505050565b600082601f830112613bd857600080fd5b6116d583833560208501613a0a565b600080600080600060a08688031215613bff57600080fd5b613c0886613954565b9450613c1660208701613954565b935060408601356001600160401b0380821115613c3257600080fd5b613c3e89838a01613b56565b94506060880135915080821115613c5457600080fd5b613c6089838a01613b56565b93506080880135915080821115613c7657600080fd5b50613c8388828901613bc7565b9150509295509295909350565b60008060408385031215613ca357600080fd5b82359150613cb360208401613954565b90509250929050565b60008060408385031215613ccf57600080fd5b82356001600160401b0380821115613ce657600080fd5b818501915085601f830112613cfa57600080fd5b81356020613d0782613b33565b604051613d1482826139de565b83815260059390931b8501820192828101915089841115613d3457600080fd5b948201945b83861015613d5957613d4a86613954565b82529482019490820190613d39565b96505086013592505080821115613d6f57600080fd5b50613d7c85828601613b56565b9150509250929050565b600081518084526020808501945080840160005b83811015613db657815187529582019590820190600101613d9a565b509495945050505050565b6020815260006116d56020830184613d86565b600060208284031215613de657600080fd5b81356001600160401b03811115613dfc57600080fd5b820161016081850312156116d557600080fd5b60008060408385031215613e2257600080fd5b50508035926020909101359150565b8035801515811461166257600080fd5b60008060408385031215613e5457600080fd5b613e5d83613954565b9150613cb360208401613e31565b60008060408385031215613e7e57600080fd5b613e8783613954565b9150613cb360208401613954565b600080600080600060a08688031215613ead57600080fd5b613eb686613954565b9450613ec460208701613954565b9350604086013592506060860135915060808601356001600160401b03811115613eed57600080fd5b613c8388828901613bc7565b600060208284031215613f0b57600080fd5b6116d582613954565b600080600060608486031215613f2957600080fd5b613f3284613954565b95602085013595506040909401359392505050565b600181811c90821680613f5b57607f821691505b602082108103613f7b57634e487b7160e01b600052602260045260246000fd5b50919050565b66697066733a2f2f60c81b81526000600760008454613f9f81613f47565b60018281168015613fb75760018114613fd057614003565b60ff198416888701528215158302880186019450614003565b8860005260208060002060005b85811015613ff85781548b82018a0152908401908201613fdd565b505050858389010194505b5092979650505050505050565b6020808252602f908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526e195c881b9bdc88185c1c1c9bdd9959608a1b606082015260800190565b60208082526011908201527014195c9b5a5cdcda5bdb8819195b9a5959607a1b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610a9457610a946140a0565b81810381811115610a9457610a946140a0565b6000600182016140ee576140ee6140a0565b5060010190565b60208082526010908201526f125b9d985b1a59081d1bdad95b88125160821b604082015260600190565b602080825260129082015271496e73756666696369656e742066756e647360701b604082015260600190565b602080825260189082015277159bdd58da195c881a185cc81899595b88195e1c1a5c995960421b604082015260600190565b6000808335601e1984360301811261419457600080fd5b8301803591506001600160401b038211156141ae57600080fd5b60200191503681900382131561363257600080fd5b600082516141d5818460208701613ab7565b9190910192915050565b601f821115610cb857600081815260208120601f850160051c810160208610156142065750805b601f850160051c820191505b8181101561233c57828155600101614212565b81516001600160401b0381111561423e5761423e6139c8565b6142528161424c8454613f47565b846141df565b602080601f831160018114614287576000841561426f5750858301515b600019600386901b1c1916600185901b17855561233c565b600085815260208120601f198616915b828110156142b657888601518255948401946001909101908401614297565b50858210156142d45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000808335601e198436030181126142fb57600080fd5b83016020810192503590506001600160401b0381111561431a57600080fd5b80360382131561363257600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b85815260a06020820152600061436b60a0830187613adb565b60018060a01b0386166040840152846060840152828103608084015261016084358252602085013560208301526143a560408601866142e4565b8260408501526143b88385018284614329565b925050506143c960608601866142e4565b83830360608501526143dc838284614329565b925050506143ed60808601866142e4565b8383036080850152614400838284614329565b9250505060a085013560a083015260c085013560c083015260e085013560e0830152610100614431818701876142e4565b84840383860152614443848284614329565b9350505050610120614456818701613e31565b15159083015261014061446b868201876142e4565b8484038386015261447d848284614329565b9c9b505050505050505050505050565b8183823760009101908152919050565b6000602082840312156144af57600080fd5b6116d582613e31565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60408152600061455a6040830185613d86565b828103602084015261456c8185613d86565b95945050505050565b600081600019048311821515161561458f5761458f6140a0565b500290565b6000826145b157634e487b7160e01b600052601260045260246000fd5b500490565b6001600160a01b0386811682528516602082015260a0604082018190526000906145e290830186613d86565b82810360608401526145f48186613d86565b905082810360808401526146088185613adb565b98975050505050505050565b60006020828403121561462657600080fd5b81516116d581613995565b600060033d11156135c85760046000803e5060005160e01c90565b600060443d101561465a5790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561468957505050505090565b82850191508151818111156146a15750505050505090565b843d87010160208285010111156146bb5750505050505090565b6146ca602082860101876139de565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b81526000835161474f816017850160208801613ab7565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351614780816028840160208801613ab7565b01602801949350505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906147c690830184613adb565b979650505050505050565b6000816147e0576147e06140a0565b506000190190565b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052602160045260246000fdfec3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6288a91f33d69233608ec901106cda3805f1356caac193014d6c70c694090df4ae9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a60603f2636f0ca34ae3ea5a23bb826e2bd2ffd59fb1c01edc1ba10fba2899d1baa26469706673582212205644ebdcf6d01353744382ce2024db76eecc1bc1796fdb63039691ec54f583f664736f6c63430008100033

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

0000000000000000000000006b1429474bd198fb2d4583503f47577f26634147000000000000000000000000c6bca818b46f261d59a9328d875296fa7d19b09f0000000000000000000000000a8a7816767bfe0018f2d9132331ed802c7fd6ed00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000008706574746f4e465400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013100000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : holderAnimalsSupport (address): 0x6B1429474BD198Fb2d4583503f47577f26634147
Arg [1] : holderGameTreasury (address): 0xc6bCA818b46F261d59A9328D875296FA7d19B09F
Arg [2] : holderGameDev (address): 0x0a8A7816767Bfe0018F2d9132331ed802c7FD6ED
Arg [3] : signingDomain (string): pettoNFT
Arg [4] : signingVersion (string): 1

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000006b1429474bd198fb2d4583503f47577f26634147
Arg [1] : 000000000000000000000000c6bca818b46f261d59a9328d875296fa7d19b09f
Arg [2] : 0000000000000000000000000a8a7816767bfe0018f2d9132331ed802c7fd6ed
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [4] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [6] : 706574746f4e4654000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [8] : 3100000000000000000000000000000000000000000000000000000000000000


Block Transaction Gas Used Reward
view all blocks produced

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

Validator Index Block Amount
View All Withdrawals

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

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