ETH Price: $3,039.18 (+3.39%)
Gas: 12.2 Gwei

Token

 

Overview

Max Total Supply

121

Holders

88

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
dankmfer.eth
0x1b89Cd273791CB463f75C4973f60d5D68e75f0c5
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
KOOLToCollect

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 21 : KOOLToCollect.sol
/*
    SPDX-License-Identifier: MIT


                                    .....              ..::^^::..                             
                          .:~!7777??777!~^:   .^~77?????????77!~:.                        
                       :~7?????77777777?????77????777777777777????!^.                     
                    .~7??7777777777777777777??77777777777777777777???~.                   
                  .~??77777777????777777777777777777777???????7777777??~                  
                 ^??777777???777777??7777777777777777??7~~~~!7???777777?7:                
                !?777777??!^.      .~777777777777777?!.       .:!??77777??^               
               7?77777??~.           :?77777777777777            .!?77777??^              
              :!!7??7?!.             :?77777777777777^:.           :7???7!~~.             
      .:~!!!!!~^^:^!?~           :~!7?777777777777777???7~.         .77^::^~!!7!!~^.      
    :!777777777777~::         :!???????777777777777????????7:        .:~777777777777!:    
   !7777777777777777~       ^7??7!~~~~~7??777777?77!~~~!!7???7:      ^7777777777777777!.  
  !777777777777777777!    :7??~^!J5PGPY!^!?777?7~^7J5P5Y7~^!???!    ~7777777777777777777. 
 ~77777777777777777777^  ~??!:7G########G^^?7?!:JB########5~^7??7. :77777777777777777777! 
 !77777777777777777777! ~??^^G############!:?!.G############Y:!??7 ~777777777777777777777 
 !77777777777777777777~.??^:###############:~.5##############G.!??.^777777777777777777777 
 ^77777777777777777777.^?! :?P#############5 ~##############P? .7?~.77777777777777777777^ 
  ~777777777777777777^.7?.^~BJ7YG##########B ?###########GJ7JY:^^??::777777777777777777~  
   ^777777777777777!.:7?7.P:&&&J .~?5PGGGP5! .YGBBBBG5?~.^G#&J!J.?7?..!777777777777777^   
     ^!7777777777~:  !??!.B:G&&7      7555P#~YG55YY.     .&&&^5Y.?7?.  :~7777777777!^     
       ..:^^^^:.     ~?77.G~J#PY:    .5Y?7!~.^!7?YG~     7B&#:#!^?7?.     .:^^^^:.        
                     ~?7?^^Y.75GBBBY..::^^^^^^^^^:::.?GGGPY7^~G.777?.                     
                     :?77?:^7#####G ^~~^^^^^^^^^^~~~^.P#####!?:~?777                      
                      7777?~~YB###B~.:^^^~~~~~~~^^^:.^B####B?:!?77?~                      
                      ^?77??~.^B####P?~^:::::::::^~75#####7.^??77?7.                      
                       !??~^7PB########BBGP555PGGB########B5!^!???:                       
                        !:!B######G555P###########BGGB#######P!^7^                        
                         ~#######7.:&&?.?5PBBBG5!?PGG::7B######Y                          
                          ~B####B.^^!?^ J5J~.7JGY:YJ7:~:^#####5.                          
                            !G###5::.JP#~.J! 7P! !J?.~~.!###5:                            
                              ^JG#B?^5GGJ~5J~JP!.#&P.^^JBP!.                              
                                 :!YPPGGB#####BGP55J?J?~.                                 
                                      .^~77??J??7~^..       
                                      

    Limited-edition drops exclusive to LILKOOL supporters and collectors.
    
    KOOL to Collect brought to you by Special Delivery.           
*/

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/security/PullPayment.sol";

// Placeholder name
contract KOOLToCollect is
    ERC1155,
    ERC1155Burnable,
    ERC1155Supply,
    ERC2981,
    AccessControl,
    PullPayment
{
    using Counters for Counters.Counter;
    using ECDSA for bytes32;

    // Token ids for various editions
    Counters.Counter private _tokenIds;

    // Mint prices for various editions
    mapping(uint256 => uint256) public mintPrice;

    // Limit for how many items can be minted
    mapping(uint256 => uint256) public numberMinted;
    mapping(uint256 => uint256) public maxMints;

    // Track whether an address already minted
    mapping(uint256 => mapping(address => bool)) private _hasMinted;

    // Address that is allowed to sign signatures to verify user minting
    address public signer;

    // Address that should recieve payments and royalties
    address public paymentRecipient;

    // Set royalty to 10% (1000 basis points)
    uint96 public constant ROYALTY_BASIS_POINTS = 1000;

    // Role that is allowed to create new editions
    bytes32 public constant CREATOR_ROLE = keccak256("CREATOR_ROLE");

    string private _contractURI;

    constructor(address newSigner)
        ERC1155(
            "https://spacelooters.nyc3.digitaloceanspaces.com/metadata/{id}.json"
        )
    {
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(CREATOR_ROLE, msg.sender);

        setContractURI(
            "https://spacelooters.nyc3.digitaloceanspaces.com/metadata/contract.json"
        );
        setPaymentRecipient(msg.sender);
        setSigner(newSigner);
    }

    function setContractURI(string memory newContractURI) public {
        require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender));
        _contractURI = newContractURI;
    }

    /**
        Returns the URI for the contract-level metadata. 
        
        See https://docs.opensea.io/docs/contract-level-metadata for more information.

        @return The URI for the contract-level metadata.
     */
    function contractURI() public view returns (string memory) {
        return _contractURI;
    }

    function setURI(string memory newURI) public {
        require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender));
        _setURI(newURI);
    }

    /**
        Change address of payment recipient.

        @param newPaymentRecipient Address of new payment recipient
     */
    function setPaymentRecipient(address newPaymentRecipient) public {
        require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender));
        require(
            newPaymentRecipient != address(0) &&
                newPaymentRecipient != paymentRecipient
        );

        paymentRecipient = newPaymentRecipient;
        _setDefaultRoyalty(newPaymentRecipient, ROYALTY_BASIS_POINTS);
    }

    /**
        Sets a new signer to use for verifying off-chain signatures for minting.

        @param newSigner Address of the new signer.
     */
    function setSigner(address newSigner) public {
        require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender));
        require(newSigner != signer && newSigner != address(0));
        signer = newSigner;
    }

    /**
        Add a new edition to the collection.

        @param mintPrice_ The cost (in wei) to mint an item.
        @param maxMints_ The maximum number of items that may be minted.

        @return tokenId - The id of the new token.
     */
    function newEdition(uint256 mintPrice_, uint256 maxMints_)
        public
        returns (uint256 tokenId)
    {
        require(hasRole(CREATOR_ROLE, msg.sender));
        _tokenIds.increment();
        tokenId = _tokenIds.current();
        mintPrice[tokenId] = mintPrice_;
        maxMints[tokenId] = maxMints_;
    }

    /**
        Check whether the address has minted the item.

        @param address_ The address to check if it has minted.
        @param tokenId The id of the token.

        @return A boolean indicating whether the address has minted this token.
     */
    function hasMinted(address address_, uint256 tokenId)
        public
        view
        returns (bool)
    {
        return _hasMinted[tokenId][address_];
    }

    /**
        Mint an item of one of the editions in the collection.

        @param tokenId The id of the token in the collection.
        @param expirationTimestamp The expiration Unix timestamp (in seconds) of the signature.
        @param signature An Ethereum signed message hash required to mint.
     */
    function mint(
        uint256 tokenId,
        uint32 expirationTimestamp,
        bytes memory signature
    ) public payable {
        // Check the signature is valid
        require(
            _verify(tokenId, expirationTimestamp, signature),
            "Spacelooters: invalid signature"
        );
        // Check the signature has not expired
        require(
            block.timestamp <= expirationTimestamp,
            "Spacelooters: signature has expired"
        );
        // Check that the sender has not minted this item before
        require(
            !hasMinted(msg.sender, tokenId),
            "Spacelooters: sender has already minted"
        );
        // Check the maximum number of mints for this item has not been reached
        require(
            numberMinted[tokenId] < maxMints[tokenId],
            "Spacelooters: mint supply limit of token has been reached"
        );
        // Check the correct amount of wei has been sent
        require(
            msg.value == mintPrice[tokenId],
            "Spacelooters: not enough ETH sent"
        );

        _hasMinted[tokenId][msg.sender] = true;
        numberMinted[tokenId]++;

        _mint(msg.sender, tokenId, 1, "");
        _asyncTransfer(paymentRecipient, msg.value);
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(AccessControl, ERC1155, ERC2981)
        returns (bool)
    {
        return
            AccessControl.supportsInterface(interfaceId) ||
            ERC1155.supportsInterface(interfaceId) ||
            ERC2981.supportsInterface(interfaceId);
    }

    /**
        Verify the `signature` was signed by the `signer` address.

        The signature is generated as (in pseudocode):
        
        signer.sign(
            keccak256(abi.encodePacked(
                "\x19Ethereum Signed Message:\n32",
                keccak256(abi.encodePacked(
                    msg.sender,
                    tokenId,
                    expirationTimestamp,
                    address(this)
                ))
            ))
        )

        @param tokenId The token id the signature is for.
        @param expirationTimestamp The expiration Unix timestamp (in seconds) for the signature.
        @param signature An Ethereum signed message hash. 

        @return A boolean indicating whether the signature has been verified.
     */
    function _verify(
        uint256 tokenId,
        uint32 expirationTimestamp,
        bytes memory signature
    ) internal view returns (bool) {
        return
            keccak256(
                abi.encodePacked(
                    msg.sender,
                    tokenId,
                    expirationTimestamp,
                    address(this)
                )
            ).toEthSignedMessageHash().recover(signature) == signer;
    }

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

File 2 of 21 : 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 21 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/extensions/ERC1155Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not token owner nor approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not token owner nor approved"
        );

        _burnBatch(account, ids, values);
    }
}

File 4 of 21 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

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

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

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

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

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

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                uint256 id = ids[i];
                uint256 amount = amounts[i];
                uint256 supply = _totalSupply[id];
                require(supply >= amount, "ERC1155: burn amount exceeds totalSupply");
                unchecked {
                    _totalSupply[id] = supply - amount;
                }
            }
        }
    }
}

File 5 of 21 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 6 of 21 : 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 7 of 21 : 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 8 of 21 : 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 9 of 21 : PullPayment.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/PullPayment.sol)

pragma solidity ^0.8.0;

import "../utils/escrow/Escrow.sol";

/**
 * @dev Simple implementation of a
 * https://consensys.github.io/smart-contract-best-practices/recommendations/#favor-pull-over-push-for-external-calls[pull-payment]
 * strategy, where the paying contract doesn't interact directly with the
 * receiver account, which must withdraw its payments itself.
 *
 * Pull-payments are often considered the best practice when it comes to sending
 * Ether, security-wise. It prevents recipients from blocking execution, and
 * eliminates reentrancy concerns.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 *
 * To use, derive from the `PullPayment` contract, and use {_asyncTransfer}
 * instead of Solidity's `transfer` function. Payees can query their due
 * payments with {payments}, and retrieve them with {withdrawPayments}.
 */
abstract contract PullPayment {
    Escrow private immutable _escrow;

    constructor() {
        _escrow = new Escrow();
    }

    /**
     * @dev Withdraw accumulated payments, forwarding all gas to the recipient.
     *
     * Note that _any_ account can call this function, not just the `payee`.
     * This means that contracts unaware of the `PullPayment` protocol can still
     * receive funds this way, by having a separate account call
     * {withdrawPayments}.
     *
     * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities.
     * Make sure you trust the recipient, or are either following the
     * checks-effects-interactions pattern or using {ReentrancyGuard}.
     *
     * @param payee Whose payments will be withdrawn.
     *
     * Causes the `escrow` to emit a {Withdrawn} event.
     */
    function withdrawPayments(address payable payee) public virtual {
        _escrow.withdraw(payee);
    }

    /**
     * @dev Returns the payments owed to an address.
     * @param dest The creditor's address.
     */
    function payments(address dest) public view returns (uint256) {
        return _escrow.depositsOf(dest);
    }

    /**
     * @dev Called by the payer to store the sent amount as credit to be pulled.
     * Funds sent in this way are stored in an intermediate {Escrow} contract, so
     * there is no danger of them being spent before withdrawal.
     *
     * @param dest The destination address of the funds.
     * @param amount The amount to transfer.
     *
     * Causes the `escrow` to emit a {Deposited} event.
     */
    function _asyncTransfer(address dest, uint256 amount) internal virtual {
        _escrow.deposit{value: amount}(dest);
    }
}

File 10 of 21 : 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 11 of 21 : 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 12 of 21 : 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 13 of 21 : 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 14 of 21 : 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 15 of 21 : 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 16 of 21 : 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 17 of 21 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 18 of 21 : 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;
}

File 19 of 21 : 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 20 of 21 : Escrow.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/escrow/Escrow.sol)

pragma solidity ^0.8.0;

import "../../access/Ownable.sol";
import "../Address.sol";

/**
 * @title Escrow
 * @dev Base escrow contract, holds funds designated for a payee until they
 * withdraw them.
 *
 * Intended usage: This contract (and derived escrow contracts) should be a
 * standalone contract, that only interacts with the contract that instantiated
 * it. That way, it is guaranteed that all Ether will be handled according to
 * the `Escrow` rules, and there is no need to check for payable functions or
 * transfers in the inheritance tree. The contract that uses the escrow as its
 * payment method should be its owner, and provide public methods redirecting
 * to the escrow's deposit and withdraw.
 */
contract Escrow is Ownable {
    using Address for address payable;

    event Deposited(address indexed payee, uint256 weiAmount);
    event Withdrawn(address indexed payee, uint256 weiAmount);

    mapping(address => uint256) private _deposits;

    function depositsOf(address payee) public view returns (uint256) {
        return _deposits[payee];
    }

    /**
     * @dev Stores the sent amount as credit to be withdrawn.
     * @param payee The destination address of the funds.
     *
     * Emits a {Deposited} event.
     */
    function deposit(address payee) public payable virtual onlyOwner {
        uint256 amount = msg.value;
        _deposits[payee] += amount;
        emit Deposited(payee, amount);
    }

    /**
     * @dev Withdraw accumulated balance for a payee, forwarding all gas to the
     * recipient.
     *
     * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities.
     * Make sure you trust the recipient, or are either following the
     * checks-effects-interactions pattern or using {ReentrancyGuard}.
     *
     * @param payee The address whose funds will be withdrawn and transferred to.
     *
     * Emits a {Withdrawn} event.
     */
    function withdraw(address payable payee) public virtual onlyOwner {
        uint256 payment = _deposits[payee];

        _deposits[payee] = 0;

        payee.sendValue(payment);

        emit Withdrawn(payee, payment);
    }
}

File 21 of 21 : 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);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"newSigner","type":"address"}],"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":"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"},{"inputs":[],"name":"CREATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROYALTY_BASIS_POINTS","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"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":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"hasMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"maxMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint32","name":"expirationTimestamp","type":"uint32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintPrice_","type":"uint256"},{"internalType":"uint256","name":"maxMints_","type":"uint256"}],"name":"newEdition","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paymentRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dest","type":"address"}],"name":"payments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"string","name":"newContractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newPaymentRecipient","type":"address"}],"name":"setPaymentRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSigner","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdrawPayments","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b5060405162004c9938038062004c99833981016040819052620000349162000414565b60405180608001604052806043815260200162004c566043913962000059816200010c565b50604051620000689062000406565b604051809103906000f08015801562000085573d6000803e3d6000fd5b506001600160a01b03166080526200009f6000336200011e565b620000cb7f828634d95e775031b9ff576b159a8509d3053581a8c9c4d7d86899e0afcd882f336200011e565b620000ef60405180608001604052806047815260200162004bef60479139620001c2565b620000fa33620001fb565b620001058162000283565b50620005b7565b60026200011a8282620004eb565b5050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff166200011a5760008281526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200017e3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b33600090815260008051602062004c36833981519152602052604090205460ff16620001ed57600080fd5b600e6200011a8282620004eb565b33600090815260008051602062004c36833981519152602052604090205460ff166200022657600080fd5b6001600160a01b038116158015906200024d5750600d546001600160a01b03828116911614155b6200025757600080fd5b600d80546001600160a01b0319166001600160a01b03831617905562000280816103e862000301565b50565b33600090815260008051602062004c36833981519152602052604090205460ff16620002ae57600080fd5b600c546001600160a01b03828116911614801590620002d557506001600160a01b03811615155b620002df57600080fd5b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6127106001600160601b0382161115620003755760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620003cd5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016200036c565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600455565b6106da806200451583390190565b6000602082840312156200042757600080fd5b81516001600160a01b03811681146200043f57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200047157607f821691505b6020821081036200049257634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004e657600081815260208120601f850160051c81016020861015620004c15750805b601f850160051c820191505b81811015620004e257828155600101620004cd565b5050505b505050565b81516001600160401b0381111562000507576200050762000446565b6200051f816200051884546200045c565b8462000498565b602080601f8311600181146200055757600084156200053e5750858301515b600019600386901b1c1916600185901b178555620004e2565b600085815260208120601f198616915b82811015620005885788860151825594840194600190910190840162000567565b5085821015620005a75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b608051613f34620005e160003960008181610cc1015281816113d501526123180152613f346000f3fe60806040526004361061024e5760003560e01c80636b20c45411610138578063d547741f116100b0578063e8a3d4851161007f578063f242432a11610064578063f242432a1461078f578063f5298aca146107af578063f8f1147d146107cf57600080fd5b8063e8a3d48514610731578063e985e9c51461074657600080fd5b8063d547741f14610697578063da968ff5146106b7578063e2982c21146106e4578063e6a72acf1461070457600080fd5b8063938e3d7b11610107578063a22cb465116100ec578063a22cb46514610637578063bd85b03914610657578063c9f8ed531461068457600080fd5b8063938e3d7b14610602578063a217fddf1461062257600080fd5b80636b20c454146105485780636c19e783146105685780638aeda25a1461058857806391d14854146105bc57600080fd5b80632b1eaf29116101cb57806331b3eb941161019a5780633c404a9c1161017f5780633c404a9c146104b95780634e1273f4146104ec5780634f558e791461051957600080fd5b806331b3eb941461047957806336568abe1461049957600080fd5b80632b1eaf29146103f95780632eb2c2d6146104195780632f2ff15d14610439578063301c90811461045957600080fd5b80630e89341c11610222578063248a9ca311610207578063248a9ca31461036a5780632983c4b81461039a5780632a55205a146103ba57600080fd5b80630e89341c14610305578063238ac9331461033257600080fd5b8062fdd58e14610253578063018a20281461028657806301ffc9a7146102b357806302fe5305146102e3575b600080fd5b34801561025f57600080fd5b5061027361026e3660046132d5565b610814565b6040519081526020015b60405180910390f35b34801561029257600080fd5b506102736102a1366004613301565b60096020526000908152604090205481565b3480156102bf57600080fd5b506102d36102ce366004613348565b6108bd565b604051901515815260200161027d565b3480156102ef57600080fd5b506103036102fe36600461341f565b6108ec565b005b34801561031157600080fd5b50610325610320366004613301565b610933565b60405161027d91906134c8565b34801561033e57600080fd5b50600c54610352906001600160a01b031681565b6040516001600160a01b03909116815260200161027d565b34801561037657600080fd5b50610273610385366004613301565b60009081526006602052604090206001015490565b3480156103a657600080fd5b506103036103b53660046134db565b6109c7565b3480156103c657600080fd5b506103da6103d53660046134f8565b610a70565b604080516001600160a01b03909316835260208301919091520161027d565b34801561040557600080fd5b50600d54610352906001600160a01b031681565b34801561042557600080fd5b506103036104343660046135cf565b610b4f565b34801561044557600080fd5b5061030361045436600461367d565b610bf1565b34801561046557600080fd5b506102736104743660046134f8565b610c1b565b34801561048557600080fd5b506103036104943660046134db565b610c89565b3480156104a557600080fd5b506103036104b436600461367d565b610d19565b3480156104c557600080fd5b506104cf6103e881565b6040516bffffffffffffffffffffffff909116815260200161027d565b3480156104f857600080fd5b5061050c6105073660046136ad565b610da5565b60405161027d91906137b5565b34801561052557600080fd5b506102d3610534366004613301565b600090815260036020526040902054151590565b34801561055457600080fd5b506103036105633660046137c8565b610ee3565b34801561057457600080fd5b506103036105833660046134db565b610f7c565b34801561059457600080fd5b506102737f828634d95e775031b9ff576b159a8509d3053581a8c9c4d7d86899e0afcd882f81565b3480156105c857600080fd5b506102d36105d736600461367d565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561060e57600080fd5b5061030361061d36600461341f565b611020565b34801561062e57600080fd5b50610273600081565b34801561064357600080fd5b5061030361065236600461383e565b611067565b34801561066357600080fd5b50610273610672366004613301565b60009081526003602052604090205490565b610303610692366004613871565b611072565b3480156106a357600080fd5b506103036106b236600461367d565b611375565b3480156106c357600080fd5b506102736106d2366004613301565b600a6020526000908152604090205481565b3480156106f057600080fd5b506102736106ff3660046134db565b61139a565b34801561071057600080fd5b5061027361071f366004613301565b60086020526000908152604090205481565b34801561073d57600080fd5b50610325611442565b34801561075257600080fd5b506102d36107613660046138c9565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561079b57600080fd5b506103036107aa3660046138f7565b6114d4565b3480156107bb57600080fd5b506103036107ca366004613960565b61156f565b3480156107db57600080fd5b506102d36107ea3660046132d5565b6000908152600b602090815260408083206001600160a01b03949094168352929052205460ff1690565b60006001600160a01b0383166108975760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201527f616c6964206f776e65720000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006108c882611608565b806108d757506108d78261165e565b806108e657506108e682611741565b92915050565b3360009081527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8602052604090205460ff1661092757600080fd5b61093081611797565b50565b60606002805461094290613995565b80601f016020809104026020016040519081016040528092919081815260200182805461096e90613995565b80156109bb5780601f10610990576101008083540402835291602001916109bb565b820191906000526020600020905b81548152906001019060200180831161099e57829003601f168201915b50505050509050919050565b3360009081527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8602052604090205460ff16610a0257600080fd5b6001600160a01b03811615801590610a285750600d546001600160a01b03828116911614155b610a3157600080fd5b600d80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038316179055610930816103e86117a3565b60008281526005602090815260408083208151808301909252546001600160a01b038116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff16928201929092528291610b115750604080518082019091526004546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b602081015160009061271090610b35906bffffffffffffffffffffffff1687613a17565b610b3f9190613a54565b91519350909150505b9250929050565b6001600160a01b038516331480610b6b5750610b6b8533610761565b610bdd5760405162461bcd60e51b815260206004820152602f60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206e6f7220617070726f7665640000000000000000000000000000000000606482015260840161088e565b610bea85858585856118ce565b5050505050565b600082815260066020526040902060010154610c0c81611b7a565b610c168383611b84565b505050565b3360009081527f278c6451778bd33ac6637099f1ecedf409dab11d2e9fd91dbbadc3f77bcc50ca602052604081205460ff16610c5657600080fd5b610c64600780546001019055565b50600754600081815260086020908152604080832095909555600a9052929092205590565b6040517f51cff8d90000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301527f000000000000000000000000000000000000000000000000000000000000000016906351cff8d990602401600060405180830381600087803b158015610d0557600080fd5b505af1158015610bea573d6000803e3d6000fd5b6001600160a01b0381163314610d975760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161088e565b610da18282611c44565b5050565b60608151835114610e1e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d617463680000000000000000000000000000000000000000000000606482015260840161088e565b6000835167ffffffffffffffff811115610e3a57610e3a613365565b604051908082528060200260200182016040528015610e63578160200160208202803683370190505b50905060005b8451811015610edb57610eae858281518110610e8757610e87613a8f565b6020026020010151858381518110610ea157610ea1613a8f565b6020026020010151610814565b828281518110610ec057610ec0613a8f565b6020908102919091010152610ed481613abe565b9050610e69565b509392505050565b6001600160a01b038316331480610eff5750610eff8333610761565b610f715760405162461bcd60e51b815260206004820152602f60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206e6f7220617070726f7665640000000000000000000000000000000000606482015260840161088e565b610c16838383611ce5565b3360009081527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8602052604090205460ff16610fb757600080fd5b600c546001600160a01b03828116911614801590610fdd57506001600160a01b03811615155b610fe657600080fd5b600c80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b3360009081527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8602052604090205460ff1661105b57600080fd5b600e610da18282613b3c565b610da1338383611f84565b61107d838383612096565b6110c95760405162461bcd60e51b815260206004820152601f60248201527f53706163656c6f6f746572733a20696e76616c6964207369676e617475726500604482015260640161088e565b8163ffffffff164211156111455760405162461bcd60e51b815260206004820152602360248201527f53706163656c6f6f746572733a207369676e617475726520686173206578706960448201527f7265640000000000000000000000000000000000000000000000000000000000606482015260840161088e565b6000838152600b6020908152604080832033845290915290205460ff16156111d55760405162461bcd60e51b815260206004820152602760248201527f53706163656c6f6f746572733a2073656e6465722068617320616c726561647960448201527f206d696e74656400000000000000000000000000000000000000000000000000606482015260840161088e565b6000838152600a6020908152604080832054600990925290912054106112635760405162461bcd60e51b815260206004820152603960248201527f53706163656c6f6f746572733a206d696e7420737570706c79206c696d69742060448201527f6f6620746f6b656e20686173206265656e207265616368656400000000000000606482015260840161088e565b60008381526008602052604090205434146112e65760405162461bcd60e51b815260206004820152602160248201527f53706163656c6f6f746572733a206e6f7420656e6f756768204554482073656e60448201527f7400000000000000000000000000000000000000000000000000000000000000606482015260840161088e565b6000838152600b60209081526040808320338452825280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790558583526009909152812080549161133e83613abe565b919050555061135f33846001604051806020016040528060008152506121a1565b600d54610c16906001600160a01b0316346122e0565b60008281526006602052604090206001015461139081611b7a565b610c168383611c44565b6040517fe3a9db1a0000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301526000917f00000000000000000000000000000000000000000000000000000000000000009091169063e3a9db1a90602401602060405180830381865afa15801561141e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e69190613c38565b6060600e805461145190613995565b80601f016020809104026020016040519081016040528092919081815260200182805461147d90613995565b80156114ca5780601f1061149f576101008083540402835291602001916114ca565b820191906000526020600020905b8154815290600101906020018083116114ad57829003601f168201915b5050505050905090565b6001600160a01b0385163314806114f057506114f08533610761565b6115625760405162461bcd60e51b815260206004820152602f60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206e6f7220617070726f7665640000000000000000000000000000000000606482015260840161088e565b610bea8585858585612371565b6001600160a01b03831633148061158b575061158b8333610761565b6115fd5760405162461bcd60e51b815260206004820152602f60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206e6f7220617070726f7665640000000000000000000000000000000000606482015260840161088e565b610c16838383612555565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806108e657506108e682611741565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a260000000000000000000000000000000000000000000000000000000014806116f157507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b806108e657507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146108e6565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a0000000000000000000000000000000000000000000000000000000014806108e657506108e68261165e565b6002610da18282613b3c565b6127106bffffffffffffffffffffffff821611156118295760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c65507269636500000000000000000000000000000000000000000000606482015260840161088e565b6001600160a01b03821661187f5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640161088e565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff90911660209092018290527401000000000000000000000000000000000000000090910217600455565b81518351146119455760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d61746368000000000000000000000000000000000000000000000000606482015260840161088e565b6001600160a01b0384166119c15760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161088e565b336119d0818787878787612718565b60005b8451811015611b0c5760008582815181106119f0576119f0613a8f565b602002602001015190506000858381518110611a0e57611a0e613a8f565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611ab45760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e7366657200000000000000000000000000000000000000000000606482015260840161088e565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611af1908490613c51565b9250508190555050505080611b0590613abe565b90506119d3565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611b5c929190613c69565b60405180910390a4611b72818787878787612726565b505050505050565b610930813361292a565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16610da15760008281526006602090815260408083206001600160a01b0385168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055611c003390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff1615610da15760008281526006602090815260408083206001600160a01b038516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b038316611d615760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161088e565b8051825114611dd85760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d61746368000000000000000000000000000000000000000000000000606482015260840161088e565b6000339050611dfb81856000868660405180602001604052806000815250612718565b60005b8351811015611f15576000848281518110611e1b57611e1b613a8f565b602002602001015190506000848381518110611e3957611e39613a8f565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015611ede5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60448201527f616e636500000000000000000000000000000000000000000000000000000000606482015260840161088e565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580611f0d81613abe565b915050611dfe565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611f66929190613c69565b60405180910390a46040805160208101909152600090525b50505050565b816001600160a01b0316836001600160a01b03160361200b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c660000000000000000000000000000000000000000000000606482015260840161088e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600c546040517fffffffffffffffffffffffffffffffffffffffff00000000000000000000000033606090811b82166020840152603483018790527fffffffff0000000000000000000000000000000000000000000000000000000060e087901b16605484015230901b1660588201526000916001600160a01b03169061218f90849061218990606c01604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b906129aa565b6001600160a01b031614949350505050565b6001600160a01b03841661221d5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161088e565b336000612229856129c6565b90506000612236856129c6565b905061224783600089858589612718565b6000868152602081815260408083206001600160a01b038b16845290915281208054879290612277908490613c51565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46122d783600089898989612a11565b50505050505050565b6040517ff340fa010000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063f340fa019083906024016000604051808303818588803b15801561235d57600080fd5b505af11580156122d7573d6000803e3d6000fd5b6001600160a01b0384166123ed5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161088e565b3360006123f9856129c6565b90506000612406856129c6565b9050612416838989858589612718565b6000868152602081815260408083206001600160a01b038c168452909152902054858110156124ad5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e7366657200000000000000000000000000000000000000000000606482015260840161088e565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906124ea908490613c51565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461254a848a8a8a8a8a612a11565b505050505050505050565b6001600160a01b0383166125d15760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161088e565b3360006125dd846129c6565b905060006125ea846129c6565b905061260a83876000858560405180602001604052806000815250612718565b6000858152602081815260408083206001600160a01b038a168452909152902054848110156126a05760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60448201527f616e636500000000000000000000000000000000000000000000000000000000606482015260840161088e565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46040805160208101909152600090526122d7565b611b72868686868686612b6c565b6001600160a01b0384163b15611b72576040517fbc197c810000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063bc197c81906127839089908990889088908890600401613c97565b6020604051808303816000875af19250505080156127be575060408051601f3d908101601f191682019092526127bb91810190613cf5565b60015b612873576127ca613d12565b806308c379a00361280357506127de613d2e565b806127e95750612805565b8060405162461bcd60e51b815260040161088e91906134c8565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e746572000000000000000000000000606482015260840161088e565b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c8100000000000000000000000000000000000000000000000000000000146122d75760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e73000000000000000000000000000000000000000000000000606482015260840161088e565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16610da157612968816001600160a01b03166014612cfa565b612973836020612cfa565b604051602001612984929190613dd6565b60408051601f198184030181529082905262461bcd60e51b825261088e916004016134c8565b60008060006129b98585612f2a565b91509150610edb81612f95565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612a0057612a00613a8f565b602090810291909101015292915050565b6001600160a01b0384163b15611b72576040517ff23a6e610000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063f23a6e6190612a6e9089908990889088908890600401613e57565b6020604051808303816000875af1925050508015612aa9575060408051601f3d908101601f19168201909252612aa691810190613cf5565b60015b612ab5576127ca613d12565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e6100000000000000000000000000000000000000000000000000000000146122d75760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e73000000000000000000000000000000000000000000000000606482015260840161088e565b6001600160a01b038516612bf35760005b8351811015612bf157828181518110612b9857612b98613a8f565b602002602001015160036000868481518110612bb657612bb6613a8f565b602002602001015181526020019081526020016000206000828254612bdb9190613c51565b90915550612bea905081613abe565b9050612b7d565b505b6001600160a01b038416611b725760005b83518110156122d7576000848281518110612c2157612c21613a8f565b602002602001015190506000848381518110612c3f57612c3f613a8f565b6020026020010151905060006003600084815260200190815260200160002054905081811015612cd75760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f7460448201527f616c537570706c79000000000000000000000000000000000000000000000000606482015260840161088e565b60009283526003602052604090922091039055612cf381613abe565b9050612c04565b60606000612d09836002613a17565b612d14906002613c51565b67ffffffffffffffff811115612d2c57612d2c613365565b6040519080825280601f01601f191660200182016040528015612d56576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612d8d57612d8d613a8f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612df057612df0613a8f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000612e2c846002613a17565b612e37906001613c51565b90505b6001811115612ed4577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110612e7857612e78613a8f565b1a60f81b828281518110612e8e57612e8e613a8f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93612ecd81613e9a565b9050612e3a565b508315612f235760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161088e565b9392505050565b6000808251604103612f605760208301516040840151606085015160001a612f5487828585613181565b94509450505050610b48565b8251604003612f895760208301516040840151612f7e86838361326e565b935093505050610b48565b50600090506002610b48565b6000816004811115612fa957612fa9613ecf565b03612fb15750565b6001816004811115612fc557612fc5613ecf565b036130125760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161088e565b600281600481111561302657613026613ecf565b036130735760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161088e565b600381600481111561308757613087613ecf565b036130fa5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161088e565b600481600481111561310e5761310e613ecf565b036109305760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161088e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156131b85750600090506003613265565b8460ff16601b141580156131d057508460ff16601c14155b156131e15750600090506004613265565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613235573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661325e57600060019250925050613265565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8316816132a460ff86901c601b613c51565b90506132b287828885613181565b935093505050935093915050565b6001600160a01b038116811461093057600080fd5b600080604083850312156132e857600080fd5b82356132f3816132c0565b946020939093013593505050565b60006020828403121561331357600080fd5b5035919050565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461093057600080fd5b60006020828403121561335a57600080fd5b8135612f238161331a565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff821117156133ba576133ba613365565b6040525050565b600067ffffffffffffffff8311156133db576133db613365565b6040516133f26020601f19601f8701160182613394565b80915083815284848401111561340757600080fd5b83836020830137600060208583010152509392505050565b60006020828403121561343157600080fd5b813567ffffffffffffffff81111561344857600080fd5b8201601f8101841361345957600080fd5b613468848235602084016133c1565b949350505050565b60005b8381101561348b578181015183820152602001613473565b83811115611f7e5750506000910152565b600081518084526134b4816020860160208601613470565b601f01601f19169290920160200192915050565b602081526000612f23602083018461349c565b6000602082840312156134ed57600080fd5b8135612f23816132c0565b6000806040838503121561350b57600080fd5b50508035926020909101359150565b600067ffffffffffffffff82111561353457613534613365565b5060051b60200190565b600082601f83011261354f57600080fd5b8135602061355c8261351a565b6040516135698282613394565b83815260059390931b850182019282810191508684111561358957600080fd5b8286015b848110156135a4578035835291830191830161358d565b509695505050505050565b600082601f8301126135c057600080fd5b612f23838335602085016133c1565b600080600080600060a086880312156135e757600080fd5b85356135f2816132c0565b94506020860135613602816132c0565b9350604086013567ffffffffffffffff8082111561361f57600080fd5b61362b89838a0161353e565b9450606088013591508082111561364157600080fd5b61364d89838a0161353e565b9350608088013591508082111561366357600080fd5b50613670888289016135af565b9150509295509295909350565b6000806040838503121561369057600080fd5b8235915060208301356136a2816132c0565b809150509250929050565b600080604083850312156136c057600080fd5b823567ffffffffffffffff808211156136d857600080fd5b818501915085601f8301126136ec57600080fd5b813560206136f98261351a565b6040516137068282613394565b83815260059390931b850182019282810191508984111561372657600080fd5b948201945b8386101561374d57853561373e816132c0565b8252948201949082019061372b565b9650508601359250508082111561376357600080fd5b506137708582860161353e565b9150509250929050565b600081518084526020808501945080840160005b838110156137aa5781518752958201959082019060010161378e565b509495945050505050565b602081526000612f23602083018461377a565b6000806000606084860312156137dd57600080fd5b83356137e8816132c0565b9250602084013567ffffffffffffffff8082111561380557600080fd5b6138118783880161353e565b9350604086013591508082111561382757600080fd5b506138348682870161353e565b9150509250925092565b6000806040838503121561385157600080fd5b823561385c816132c0565b9150602083013580151581146136a257600080fd5b60008060006060848603121561388657600080fd5b83359250602084013563ffffffff811681146138a157600080fd5b9150604084013567ffffffffffffffff8111156138bd57600080fd5b613834868287016135af565b600080604083850312156138dc57600080fd5b82356138e7816132c0565b915060208301356136a2816132c0565b600080600080600060a0868803121561390f57600080fd5b853561391a816132c0565b9450602086013561392a816132c0565b93506040860135925060608601359150608086013567ffffffffffffffff81111561395457600080fd5b613670888289016135af565b60008060006060848603121561397557600080fd5b8335613980816132c0565b95602085013595506040909401359392505050565b600181811c908216806139a957607f821691505b6020821081036139e2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613a4f57613a4f6139e8565b500290565b600082613a8a577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613aef57613aef6139e8565b5060010190565b601f821115610c1657600081815260208120601f850160051c81016020861015613b1d5750805b601f850160051c820191505b81811015611b7257828155600101613b29565b815167ffffffffffffffff811115613b5657613b56613365565b613b6a81613b648454613995565b84613af6565b602080601f831160018114613bbd5760008415613b875750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555611b72565b600085815260208120601f198616915b82811015613bec57888601518255948401946001909101908401613bcd565b5085821015613c2857878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215613c4a57600080fd5b5051919050565b60008219821115613c6457613c646139e8565b500190565b604081526000613c7c604083018561377a565b8281036020840152613c8e818561377a565b95945050505050565b60006001600160a01b03808816835280871660208401525060a06040830152613cc360a083018661377a565b8281036060840152613cd5818661377a565b90508281036080840152613ce9818561349c565b98975050505050505050565b600060208284031215613d0757600080fd5b8151612f238161331a565b600060033d1115613d2b5760046000803e5060005160e01c5b90565b600060443d1015613d3c5790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff8160248401118184111715613d8a57505050505090565b8285019150815181811115613da25750505050505090565b843d8701016020828501011115613dbc5750505050505090565b613dcb60208286010187613394565b509095945050505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613e0e816017850160208801613470565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351613e4b816028840160208801613470565b01602801949350505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152613e8f60a083018461349c565b979650505050505050565b600081613ea957613ea96139e8565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea2646970667358221220318c7a795ccc25e48df39ed9c1b03b78c54d4857c8a45af5cb07db9b0e7d543d64736f6c634300080f0033608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61065c8061007e6000396000f3fe6080604052600436106100655760003560e01c8063e3a9db1a11610043578063e3a9db1a146100db578063f2fde38b1461012c578063f340fa011461014c57600080fd5b806351cff8d91461006a578063715018a61461008c5780638da5cb5b146100a1575b600080fd5b34801561007657600080fd5b5061008a6100853660046105c3565b61015f565b005b34801561009857600080fd5b5061008a6101f0565b3480156100ad57600080fd5b5060005460405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b3480156100e757600080fd5b5061011e6100f63660046105c3565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205490565b6040519081526020016100d2565b34801561013857600080fd5b5061008a6101473660046105c3565b610204565b61008a61015a3660046105c3565b6102c0565b61016761034c565b73ffffffffffffffffffffffffffffffffffffffff8116600081815260016020526040812080549190559061019c90826103cd565b8173ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5826040516101e491815260200190565b60405180910390a25050565b6101f861034c565b610202600061052c565b565b61020c61034c565b73ffffffffffffffffffffffffffffffffffffffff81166102b4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6102bd8161052c565b50565b6102c861034c565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600160205260408120805434928392916102ff9084906105e7565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316907f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4906020016101e4565b60005473ffffffffffffffffffffffffffffffffffffffff163314610202576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102ab565b80471015610437576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016102ab565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114610491576040519150601f19603f3d011682016040523d82523d6000602084013e610496565b606091505b5050905080610527576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016102ab565b505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff811681146102bd57600080fd5b6000602082840312156105d557600080fd5b81356105e0816105a1565b9392505050565b60008219821115610621577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b50019056fea2646970667358221220abd0f69e06bbd961386427ec6315780d57a8698ac2ae790f363054fa1591bd6a64736f6c634300080f003368747470733a2f2f73706163656c6f6f746572732e6e7963332e6469676974616c6f6365616e7370616365732e636f6d2f6d657461646174612f636f6e74726163742e6a736f6e54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f868747470733a2f2f73706163656c6f6f746572732e6e7963332e6469676974616c6f6365616e7370616365732e636f6d2f6d657461646174612f7b69647d2e6a736f6e000000000000000000000000c657e1a4d26abbb099aa5042231c44bc73812a95

Deployed Bytecode

0x60806040526004361061024e5760003560e01c80636b20c45411610138578063d547741f116100b0578063e8a3d4851161007f578063f242432a11610064578063f242432a1461078f578063f5298aca146107af578063f8f1147d146107cf57600080fd5b8063e8a3d48514610731578063e985e9c51461074657600080fd5b8063d547741f14610697578063da968ff5146106b7578063e2982c21146106e4578063e6a72acf1461070457600080fd5b8063938e3d7b11610107578063a22cb465116100ec578063a22cb46514610637578063bd85b03914610657578063c9f8ed531461068457600080fd5b8063938e3d7b14610602578063a217fddf1461062257600080fd5b80636b20c454146105485780636c19e783146105685780638aeda25a1461058857806391d14854146105bc57600080fd5b80632b1eaf29116101cb57806331b3eb941161019a5780633c404a9c1161017f5780633c404a9c146104b95780634e1273f4146104ec5780634f558e791461051957600080fd5b806331b3eb941461047957806336568abe1461049957600080fd5b80632b1eaf29146103f95780632eb2c2d6146104195780632f2ff15d14610439578063301c90811461045957600080fd5b80630e89341c11610222578063248a9ca311610207578063248a9ca31461036a5780632983c4b81461039a5780632a55205a146103ba57600080fd5b80630e89341c14610305578063238ac9331461033257600080fd5b8062fdd58e14610253578063018a20281461028657806301ffc9a7146102b357806302fe5305146102e3575b600080fd5b34801561025f57600080fd5b5061027361026e3660046132d5565b610814565b6040519081526020015b60405180910390f35b34801561029257600080fd5b506102736102a1366004613301565b60096020526000908152604090205481565b3480156102bf57600080fd5b506102d36102ce366004613348565b6108bd565b604051901515815260200161027d565b3480156102ef57600080fd5b506103036102fe36600461341f565b6108ec565b005b34801561031157600080fd5b50610325610320366004613301565b610933565b60405161027d91906134c8565b34801561033e57600080fd5b50600c54610352906001600160a01b031681565b6040516001600160a01b03909116815260200161027d565b34801561037657600080fd5b50610273610385366004613301565b60009081526006602052604090206001015490565b3480156103a657600080fd5b506103036103b53660046134db565b6109c7565b3480156103c657600080fd5b506103da6103d53660046134f8565b610a70565b604080516001600160a01b03909316835260208301919091520161027d565b34801561040557600080fd5b50600d54610352906001600160a01b031681565b34801561042557600080fd5b506103036104343660046135cf565b610b4f565b34801561044557600080fd5b5061030361045436600461367d565b610bf1565b34801561046557600080fd5b506102736104743660046134f8565b610c1b565b34801561048557600080fd5b506103036104943660046134db565b610c89565b3480156104a557600080fd5b506103036104b436600461367d565b610d19565b3480156104c557600080fd5b506104cf6103e881565b6040516bffffffffffffffffffffffff909116815260200161027d565b3480156104f857600080fd5b5061050c6105073660046136ad565b610da5565b60405161027d91906137b5565b34801561052557600080fd5b506102d3610534366004613301565b600090815260036020526040902054151590565b34801561055457600080fd5b506103036105633660046137c8565b610ee3565b34801561057457600080fd5b506103036105833660046134db565b610f7c565b34801561059457600080fd5b506102737f828634d95e775031b9ff576b159a8509d3053581a8c9c4d7d86899e0afcd882f81565b3480156105c857600080fd5b506102d36105d736600461367d565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561060e57600080fd5b5061030361061d36600461341f565b611020565b34801561062e57600080fd5b50610273600081565b34801561064357600080fd5b5061030361065236600461383e565b611067565b34801561066357600080fd5b50610273610672366004613301565b60009081526003602052604090205490565b610303610692366004613871565b611072565b3480156106a357600080fd5b506103036106b236600461367d565b611375565b3480156106c357600080fd5b506102736106d2366004613301565b600a6020526000908152604090205481565b3480156106f057600080fd5b506102736106ff3660046134db565b61139a565b34801561071057600080fd5b5061027361071f366004613301565b60086020526000908152604090205481565b34801561073d57600080fd5b50610325611442565b34801561075257600080fd5b506102d36107613660046138c9565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561079b57600080fd5b506103036107aa3660046138f7565b6114d4565b3480156107bb57600080fd5b506103036107ca366004613960565b61156f565b3480156107db57600080fd5b506102d36107ea3660046132d5565b6000908152600b602090815260408083206001600160a01b03949094168352929052205460ff1690565b60006001600160a01b0383166108975760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201527f616c6964206f776e65720000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006108c882611608565b806108d757506108d78261165e565b806108e657506108e682611741565b92915050565b3360009081527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8602052604090205460ff1661092757600080fd5b61093081611797565b50565b60606002805461094290613995565b80601f016020809104026020016040519081016040528092919081815260200182805461096e90613995565b80156109bb5780601f10610990576101008083540402835291602001916109bb565b820191906000526020600020905b81548152906001019060200180831161099e57829003601f168201915b50505050509050919050565b3360009081527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8602052604090205460ff16610a0257600080fd5b6001600160a01b03811615801590610a285750600d546001600160a01b03828116911614155b610a3157600080fd5b600d80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038316179055610930816103e86117a3565b60008281526005602090815260408083208151808301909252546001600160a01b038116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff16928201929092528291610b115750604080518082019091526004546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b602081015160009061271090610b35906bffffffffffffffffffffffff1687613a17565b610b3f9190613a54565b91519350909150505b9250929050565b6001600160a01b038516331480610b6b5750610b6b8533610761565b610bdd5760405162461bcd60e51b815260206004820152602f60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206e6f7220617070726f7665640000000000000000000000000000000000606482015260840161088e565b610bea85858585856118ce565b5050505050565b600082815260066020526040902060010154610c0c81611b7a565b610c168383611b84565b505050565b3360009081527f278c6451778bd33ac6637099f1ecedf409dab11d2e9fd91dbbadc3f77bcc50ca602052604081205460ff16610c5657600080fd5b610c64600780546001019055565b50600754600081815260086020908152604080832095909555600a9052929092205590565b6040517f51cff8d90000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301527f00000000000000000000000011f3e24b260907b5c3565608dafdc200850c7d7216906351cff8d990602401600060405180830381600087803b158015610d0557600080fd5b505af1158015610bea573d6000803e3d6000fd5b6001600160a01b0381163314610d975760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161088e565b610da18282611c44565b5050565b60608151835114610e1e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d617463680000000000000000000000000000000000000000000000606482015260840161088e565b6000835167ffffffffffffffff811115610e3a57610e3a613365565b604051908082528060200260200182016040528015610e63578160200160208202803683370190505b50905060005b8451811015610edb57610eae858281518110610e8757610e87613a8f565b6020026020010151858381518110610ea157610ea1613a8f565b6020026020010151610814565b828281518110610ec057610ec0613a8f565b6020908102919091010152610ed481613abe565b9050610e69565b509392505050565b6001600160a01b038316331480610eff5750610eff8333610761565b610f715760405162461bcd60e51b815260206004820152602f60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206e6f7220617070726f7665640000000000000000000000000000000000606482015260840161088e565b610c16838383611ce5565b3360009081527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8602052604090205460ff16610fb757600080fd5b600c546001600160a01b03828116911614801590610fdd57506001600160a01b03811615155b610fe657600080fd5b600c80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b3360009081527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8602052604090205460ff1661105b57600080fd5b600e610da18282613b3c565b610da1338383611f84565b61107d838383612096565b6110c95760405162461bcd60e51b815260206004820152601f60248201527f53706163656c6f6f746572733a20696e76616c6964207369676e617475726500604482015260640161088e565b8163ffffffff164211156111455760405162461bcd60e51b815260206004820152602360248201527f53706163656c6f6f746572733a207369676e617475726520686173206578706960448201527f7265640000000000000000000000000000000000000000000000000000000000606482015260840161088e565b6000838152600b6020908152604080832033845290915290205460ff16156111d55760405162461bcd60e51b815260206004820152602760248201527f53706163656c6f6f746572733a2073656e6465722068617320616c726561647960448201527f206d696e74656400000000000000000000000000000000000000000000000000606482015260840161088e565b6000838152600a6020908152604080832054600990925290912054106112635760405162461bcd60e51b815260206004820152603960248201527f53706163656c6f6f746572733a206d696e7420737570706c79206c696d69742060448201527f6f6620746f6b656e20686173206265656e207265616368656400000000000000606482015260840161088e565b60008381526008602052604090205434146112e65760405162461bcd60e51b815260206004820152602160248201527f53706163656c6f6f746572733a206e6f7420656e6f756768204554482073656e60448201527f7400000000000000000000000000000000000000000000000000000000000000606482015260840161088e565b6000838152600b60209081526040808320338452825280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790558583526009909152812080549161133e83613abe565b919050555061135f33846001604051806020016040528060008152506121a1565b600d54610c16906001600160a01b0316346122e0565b60008281526006602052604090206001015461139081611b7a565b610c168383611c44565b6040517fe3a9db1a0000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301526000917f00000000000000000000000011f3e24b260907b5c3565608dafdc200850c7d729091169063e3a9db1a90602401602060405180830381865afa15801561141e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e69190613c38565b6060600e805461145190613995565b80601f016020809104026020016040519081016040528092919081815260200182805461147d90613995565b80156114ca5780601f1061149f576101008083540402835291602001916114ca565b820191906000526020600020905b8154815290600101906020018083116114ad57829003601f168201915b5050505050905090565b6001600160a01b0385163314806114f057506114f08533610761565b6115625760405162461bcd60e51b815260206004820152602f60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206e6f7220617070726f7665640000000000000000000000000000000000606482015260840161088e565b610bea8585858585612371565b6001600160a01b03831633148061158b575061158b8333610761565b6115fd5760405162461bcd60e51b815260206004820152602f60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206e6f7220617070726f7665640000000000000000000000000000000000606482015260840161088e565b610c16838383612555565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806108e657506108e682611741565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a260000000000000000000000000000000000000000000000000000000014806116f157507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b806108e657507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146108e6565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a0000000000000000000000000000000000000000000000000000000014806108e657506108e68261165e565b6002610da18282613b3c565b6127106bffffffffffffffffffffffff821611156118295760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c65507269636500000000000000000000000000000000000000000000606482015260840161088e565b6001600160a01b03821661187f5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640161088e565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff90911660209092018290527401000000000000000000000000000000000000000090910217600455565b81518351146119455760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d61746368000000000000000000000000000000000000000000000000606482015260840161088e565b6001600160a01b0384166119c15760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161088e565b336119d0818787878787612718565b60005b8451811015611b0c5760008582815181106119f0576119f0613a8f565b602002602001015190506000858381518110611a0e57611a0e613a8f565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611ab45760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e7366657200000000000000000000000000000000000000000000606482015260840161088e565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611af1908490613c51565b9250508190555050505080611b0590613abe565b90506119d3565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611b5c929190613c69565b60405180910390a4611b72818787878787612726565b505050505050565b610930813361292a565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16610da15760008281526006602090815260408083206001600160a01b0385168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055611c003390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff1615610da15760008281526006602090815260408083206001600160a01b038516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b038316611d615760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161088e565b8051825114611dd85760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d61746368000000000000000000000000000000000000000000000000606482015260840161088e565b6000339050611dfb81856000868660405180602001604052806000815250612718565b60005b8351811015611f15576000848281518110611e1b57611e1b613a8f565b602002602001015190506000848381518110611e3957611e39613a8f565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015611ede5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60448201527f616e636500000000000000000000000000000000000000000000000000000000606482015260840161088e565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580611f0d81613abe565b915050611dfe565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611f66929190613c69565b60405180910390a46040805160208101909152600090525b50505050565b816001600160a01b0316836001600160a01b03160361200b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c660000000000000000000000000000000000000000000000606482015260840161088e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600c546040517fffffffffffffffffffffffffffffffffffffffff00000000000000000000000033606090811b82166020840152603483018790527fffffffff0000000000000000000000000000000000000000000000000000000060e087901b16605484015230901b1660588201526000916001600160a01b03169061218f90849061218990606c01604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b906129aa565b6001600160a01b031614949350505050565b6001600160a01b03841661221d5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161088e565b336000612229856129c6565b90506000612236856129c6565b905061224783600089858589612718565b6000868152602081815260408083206001600160a01b038b16845290915281208054879290612277908490613c51565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46122d783600089898989612a11565b50505050505050565b6040517ff340fa010000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301527f00000000000000000000000011f3e24b260907b5c3565608dafdc200850c7d72169063f340fa019083906024016000604051808303818588803b15801561235d57600080fd5b505af11580156122d7573d6000803e3d6000fd5b6001600160a01b0384166123ed5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161088e565b3360006123f9856129c6565b90506000612406856129c6565b9050612416838989858589612718565b6000868152602081815260408083206001600160a01b038c168452909152902054858110156124ad5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e7366657200000000000000000000000000000000000000000000606482015260840161088e565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906124ea908490613c51565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461254a848a8a8a8a8a612a11565b505050505050505050565b6001600160a01b0383166125d15760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161088e565b3360006125dd846129c6565b905060006125ea846129c6565b905061260a83876000858560405180602001604052806000815250612718565b6000858152602081815260408083206001600160a01b038a168452909152902054848110156126a05760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60448201527f616e636500000000000000000000000000000000000000000000000000000000606482015260840161088e565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46040805160208101909152600090526122d7565b611b72868686868686612b6c565b6001600160a01b0384163b15611b72576040517fbc197c810000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063bc197c81906127839089908990889088908890600401613c97565b6020604051808303816000875af19250505080156127be575060408051601f3d908101601f191682019092526127bb91810190613cf5565b60015b612873576127ca613d12565b806308c379a00361280357506127de613d2e565b806127e95750612805565b8060405162461bcd60e51b815260040161088e91906134c8565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e746572000000000000000000000000606482015260840161088e565b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c8100000000000000000000000000000000000000000000000000000000146122d75760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e73000000000000000000000000000000000000000000000000606482015260840161088e565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16610da157612968816001600160a01b03166014612cfa565b612973836020612cfa565b604051602001612984929190613dd6565b60408051601f198184030181529082905262461bcd60e51b825261088e916004016134c8565b60008060006129b98585612f2a565b91509150610edb81612f95565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612a0057612a00613a8f565b602090810291909101015292915050565b6001600160a01b0384163b15611b72576040517ff23a6e610000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063f23a6e6190612a6e9089908990889088908890600401613e57565b6020604051808303816000875af1925050508015612aa9575060408051601f3d908101601f19168201909252612aa691810190613cf5565b60015b612ab5576127ca613d12565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e6100000000000000000000000000000000000000000000000000000000146122d75760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e73000000000000000000000000000000000000000000000000606482015260840161088e565b6001600160a01b038516612bf35760005b8351811015612bf157828181518110612b9857612b98613a8f565b602002602001015160036000868481518110612bb657612bb6613a8f565b602002602001015181526020019081526020016000206000828254612bdb9190613c51565b90915550612bea905081613abe565b9050612b7d565b505b6001600160a01b038416611b725760005b83518110156122d7576000848281518110612c2157612c21613a8f565b602002602001015190506000848381518110612c3f57612c3f613a8f565b6020026020010151905060006003600084815260200190815260200160002054905081811015612cd75760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f7460448201527f616c537570706c79000000000000000000000000000000000000000000000000606482015260840161088e565b60009283526003602052604090922091039055612cf381613abe565b9050612c04565b60606000612d09836002613a17565b612d14906002613c51565b67ffffffffffffffff811115612d2c57612d2c613365565b6040519080825280601f01601f191660200182016040528015612d56576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612d8d57612d8d613a8f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612df057612df0613a8f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000612e2c846002613a17565b612e37906001613c51565b90505b6001811115612ed4577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110612e7857612e78613a8f565b1a60f81b828281518110612e8e57612e8e613a8f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93612ecd81613e9a565b9050612e3a565b508315612f235760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161088e565b9392505050565b6000808251604103612f605760208301516040840151606085015160001a612f5487828585613181565b94509450505050610b48565b8251604003612f895760208301516040840151612f7e86838361326e565b935093505050610b48565b50600090506002610b48565b6000816004811115612fa957612fa9613ecf565b03612fb15750565b6001816004811115612fc557612fc5613ecf565b036130125760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161088e565b600281600481111561302657613026613ecf565b036130735760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161088e565b600381600481111561308757613087613ecf565b036130fa5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161088e565b600481600481111561310e5761310e613ecf565b036109305760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161088e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156131b85750600090506003613265565b8460ff16601b141580156131d057508460ff16601c14155b156131e15750600090506004613265565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613235573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661325e57600060019250925050613265565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8316816132a460ff86901c601b613c51565b90506132b287828885613181565b935093505050935093915050565b6001600160a01b038116811461093057600080fd5b600080604083850312156132e857600080fd5b82356132f3816132c0565b946020939093013593505050565b60006020828403121561331357600080fd5b5035919050565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461093057600080fd5b60006020828403121561335a57600080fd5b8135612f238161331a565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff821117156133ba576133ba613365565b6040525050565b600067ffffffffffffffff8311156133db576133db613365565b6040516133f26020601f19601f8701160182613394565b80915083815284848401111561340757600080fd5b83836020830137600060208583010152509392505050565b60006020828403121561343157600080fd5b813567ffffffffffffffff81111561344857600080fd5b8201601f8101841361345957600080fd5b613468848235602084016133c1565b949350505050565b60005b8381101561348b578181015183820152602001613473565b83811115611f7e5750506000910152565b600081518084526134b4816020860160208601613470565b601f01601f19169290920160200192915050565b602081526000612f23602083018461349c565b6000602082840312156134ed57600080fd5b8135612f23816132c0565b6000806040838503121561350b57600080fd5b50508035926020909101359150565b600067ffffffffffffffff82111561353457613534613365565b5060051b60200190565b600082601f83011261354f57600080fd5b8135602061355c8261351a565b6040516135698282613394565b83815260059390931b850182019282810191508684111561358957600080fd5b8286015b848110156135a4578035835291830191830161358d565b509695505050505050565b600082601f8301126135c057600080fd5b612f23838335602085016133c1565b600080600080600060a086880312156135e757600080fd5b85356135f2816132c0565b94506020860135613602816132c0565b9350604086013567ffffffffffffffff8082111561361f57600080fd5b61362b89838a0161353e565b9450606088013591508082111561364157600080fd5b61364d89838a0161353e565b9350608088013591508082111561366357600080fd5b50613670888289016135af565b9150509295509295909350565b6000806040838503121561369057600080fd5b8235915060208301356136a2816132c0565b809150509250929050565b600080604083850312156136c057600080fd5b823567ffffffffffffffff808211156136d857600080fd5b818501915085601f8301126136ec57600080fd5b813560206136f98261351a565b6040516137068282613394565b83815260059390931b850182019282810191508984111561372657600080fd5b948201945b8386101561374d57853561373e816132c0565b8252948201949082019061372b565b9650508601359250508082111561376357600080fd5b506137708582860161353e565b9150509250929050565b600081518084526020808501945080840160005b838110156137aa5781518752958201959082019060010161378e565b509495945050505050565b602081526000612f23602083018461377a565b6000806000606084860312156137dd57600080fd5b83356137e8816132c0565b9250602084013567ffffffffffffffff8082111561380557600080fd5b6138118783880161353e565b9350604086013591508082111561382757600080fd5b506138348682870161353e565b9150509250925092565b6000806040838503121561385157600080fd5b823561385c816132c0565b9150602083013580151581146136a257600080fd5b60008060006060848603121561388657600080fd5b83359250602084013563ffffffff811681146138a157600080fd5b9150604084013567ffffffffffffffff8111156138bd57600080fd5b613834868287016135af565b600080604083850312156138dc57600080fd5b82356138e7816132c0565b915060208301356136a2816132c0565b600080600080600060a0868803121561390f57600080fd5b853561391a816132c0565b9450602086013561392a816132c0565b93506040860135925060608601359150608086013567ffffffffffffffff81111561395457600080fd5b613670888289016135af565b60008060006060848603121561397557600080fd5b8335613980816132c0565b95602085013595506040909401359392505050565b600181811c908216806139a957607f821691505b6020821081036139e2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613a4f57613a4f6139e8565b500290565b600082613a8a577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613aef57613aef6139e8565b5060010190565b601f821115610c1657600081815260208120601f850160051c81016020861015613b1d5750805b601f850160051c820191505b81811015611b7257828155600101613b29565b815167ffffffffffffffff811115613b5657613b56613365565b613b6a81613b648454613995565b84613af6565b602080601f831160018114613bbd5760008415613b875750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555611b72565b600085815260208120601f198616915b82811015613bec57888601518255948401946001909101908401613bcd565b5085821015613c2857878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215613c4a57600080fd5b5051919050565b60008219821115613c6457613c646139e8565b500190565b604081526000613c7c604083018561377a565b8281036020840152613c8e818561377a565b95945050505050565b60006001600160a01b03808816835280871660208401525060a06040830152613cc360a083018661377a565b8281036060840152613cd5818661377a565b90508281036080840152613ce9818561349c565b98975050505050505050565b600060208284031215613d0757600080fd5b8151612f238161331a565b600060033d1115613d2b5760046000803e5060005160e01c5b90565b600060443d1015613d3c5790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff8160248401118184111715613d8a57505050505090565b8285019150815181811115613da25750505050505090565b843d8701016020828501011115613dbc5750505050505090565b613dcb60208286010187613394565b509095945050505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613e0e816017850160208801613470565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351613e4b816028840160208801613470565b01602801949350505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152613e8f60a083018461349c565b979650505050505050565b600081613ea957613ea96139e8565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea2646970667358221220318c7a795ccc25e48df39ed9c1b03b78c54d4857c8a45af5cb07db9b0e7d543d64736f6c634300080f0033

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

000000000000000000000000c657e1a4d26abbb099aa5042231c44bc73812a95

-----Decoded View---------------
Arg [0] : newSigner (address): 0xc657E1A4D26Abbb099aA5042231c44BC73812a95

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000c657e1a4d26abbb099aa5042231c44bc73812a95


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

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