ETH Price: $2,492.72 (-1.23%)

Token

 

Overview

Max Total Supply

209

Holders

64

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0x72bd034194ea360b9203e4a97d20f3a277fe7a8c
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:
stagecleared

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : StageCleared.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

/*
 ______     ______   ______     ______     ______        ______     __         ______     ______     ______     ______     _____    
/\  ___\   /\__  _\ /\  __ \   /\  ___\   /\  ___\      /\  ___\   /\ \       /\  ___\   /\  __ \   /\  == \   /\  ___\   /\  __-.  
\ \___  \  \/_/\ \/ \ \  __ \  \ \ \__ \  \ \  __\      \ \ \____  \ \ \____  \ \  __\   \ \  __ \  \ \  __<   \ \  __\   \ \ \/\ \ 
 \/\_____\    \ \_\  \ \_\ \_\  \ \_____\  \ \_____\     \ \_____\  \ \_____\  \ \_____\  \ \_\ \_\  \ \_\ \_\  \ \_____\  \ \____- 
  \/_____/     \/_/   \/_/\/_/   \/_____/   \/_____/      \/_____/   \/_____/   \/_____/   \/_/\/_/   \/_/ /_/   \/_____/   \/____/ 
                                                                                                                                    

 ______     __  __          __     __   __  
/\  == \   /\ \_\ \        /\ \   /\ \ / /  
\ \  __<   \ \____ \      _\_\ \  \ \ \'/   
 \ \_____\  \/\_____\    /\_____\  \ \_/   
  \/_____/   \/_____/    \/_____/   \//    

                                            
::::::::::::::::::::::::::::::::^^^^^^^^^^^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
::::::..........:::::::::::::::::::^^^^^^^^^^^^^^^^^^^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...................:::::::::::::::::::^^^^^~~~~!!!777????J7^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...................:....::::^^^~~!!!77???JJJJJYYYJ7!!~^^^!Y7^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...............::::.:777????JJ??7???JYYYYYYYYYYYYJ~.^^~^:.~Y7^^^^^^^^^^^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.........:::::::::...!YJ77?7!J!7~!?!!?JJJJJJYJYYYJJ~~!~^:~.~Y7^^^^^^^^^^^^^^^^^^^^^^^^^~~~~~~~~~~~~~
.......::::::::::.....!YJ!!?!?!7?!7!!777?!7?JJJJJJJJ~~!~:~^.!Y7^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
......::::::::::.......!Y?!7?7J!77!7!!!~!7!77JJJJJJJ?!~~~!!7?JY7^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
......:::::::::.........7Y??7!77!?7??7??????JJJ?!7!!!!!!!!77JJYY7^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
......:::::::::..........7YJJJ?77!7!!!~!~!~7JJJ?777777?777?JJJJJJ7^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.......:::::::::.........:?YYJ?!!!!777777?JJYYJYYJJJ??!~77777????J!^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.......::::::::::.........:?YYYJJJ???!!77????JJ?YYYJ?~:~?!7???????7!^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
........::::::::::.........:J55YYJJ?~^77!?????????J?!:^^7?????????7?7:^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
........:::::::::::.........^Y55YJ?~:^??7????????77?7~~!!???JJJJ?7!JP?:^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
........:::::::::::..........~55YJ?~^~!?????????7!7YJJ??Y5PP5YYJ??JPPP?:^^^^^^^^^^^^^^^^^^^^^^^^^^^^
........::::::::::::..........~55J??!!?JYJJJYJ?7!75PPPPPGB###BG55PPPPPP?::^^^^^^^^^^^^^^^^^^^^^^^^^^
.......::::::::::::::...::~~^~^75YJJYYYPB##BP5YYYPGGPPPPPPPPPPPPPPPPPPPP?::^^^^^^^^^^^^^^^^^^^^^^^^^
.......:::::::::::::::.~5~?J?!!~75YYY55PGBBBGPPPGGGPPPPPPP555555PPPPPPPPP?::^^^^^^^^^^^^^^^^^^^^^^^^
......::::::::::::::::::~^5GP7!^:7Y5YYYYYY55PPPGPPPPPPPPPPPP55YJJY5PPPPPPP?:::::^^^^^^^^^^^^^^^^^^^^
.....:::::::::::::::::::.^!~^:::::7YYYYYYYYYYYYY5PPPPPPPPPPP5555YYYYYYYYY5P?:::::::::::^^^^^^^^^^^^^
.....::::::::::::::::::::......::::?YYYYYYYYY?JJY5555555555YYYJJJ????????JY5?::::::::::::::::^^^^^^^
....::::::::::::::::::::::....::::::?YYYYYYYYYJJJ???????JJJJJJJJJJYYYJJJ??JJ5?:::::::::::::::::^^^^^
....:::::::::::::::::::::::..:::::::^J5YJJ???777!7???JJYYYYYJJJJJJJJJJJ????JJY7::^^^^^^^^^^^^^^^^^^^
...::::::::::^^^^^^^^^^^::::.::::::::^Y5YJ!???!^!YYYJJJJJJJJJJJJJJJJJJJ?J???JY5?::^^^^^^^^^^^^^^^^^^
...:::::::::^^^^^^^^^^^^^^^:::::::::::~YP5J7JJ7~^~JJJJJJJJJJJJJJJJJJJJJJ?J???Y5P?::^^^^^^^^^^^^^^^^^
...:::::::::^^^^^^^^^^^^^^^^:::::::^^^:~5P5J7JJ7~^!JJJJJJJJJJJJJJJJJJJJJJ?J??JY5P?:^^^^^^^^^^^^^^^^^
...::::::::::^^^^^^^^^^^^^^^^:::^^^^^^^^!5P5J7JJ7~^!JJJJJJJJJJJJJJJJJJJJJJ???7?J5P?^^^^^^^^^^^^^^^^^
...::::::::::^^^^^^^^^^^^^^^^^^:^^^^^^^^^75P5?7JJ7~^!JJJJJJJJJJJJJJ????????JJYJJY5P?^^^^^^^^^^^^^^^^
..:::::::::::^^^^^^^^^^^^^^^^^^^^^^^^^^^^^7PP5?7JJ7~~!JJJJJ????????JYY55PPPP55YYYY5P?^^^^^^^^^^^^^^^
.::::::::::::^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^?PP5??YJ7~~!7??JYY5PPPPPPPP55555YYYYYYY55PJ^^^^^^^^^^^^^^
::::::::::::^^^^^^^^^^^^^^^^^^^^^^~~~~~~~~~~?P5Y??YJ7!JPGGGPPPPP555555555555555PPPPPPY~^^^^^^^^^^^^^
::::::::::^^^^^^^^^^^^^^^^^^^^^^^^^~~~~~~~~~~J55Y??JJJY55555555555555PPPPPPPPPPPPP5?~^^^^^^^^^^^^^^^
:::::::^^^^^^^^^^^^^^^~~~~~~~~~~~~^^~~~~~~~~~~JYYJ?YYYYYYYY55PPPPPPPPPPPPPPPPPP5J7~^^^^^^^^^^^^^^^^^
::::^^^^^^^^^^^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!JYJJJJJYYYY55PPPPPPPPPPPPPPP55Y?~^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!JYY555PPPPPPPPPPPPPP55YJ?7!~~~^~~~~~~~~~~~~~~~~~~~~~
^^^^^^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!?5PPPGGGGGPPPP5YJ?77!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~7JPGGGPPP55YJ?7!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!~~!7YPP5YYJ?7!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!7??7!!!~~~!!!!!!!!!!!!!!!!!!!!!!~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/


import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";


contract stagecleared is ERC1155, ERC1155Supply, Ownable {

    /*//////////////////////////////////////////////////////////////
                            EDITION STRUCT
    //////////////////////////////////////////////////////////////*/

    //define the basis of each edition
    //@param publicPrice being the price per NFT of the public mint
    //@param publicFreeMax being the max per wallet claimable for free
    //@param publicPaidMax being the max per wallet claimable by publicPrice
    //likewise for the whitelist versions
    //@param totalEditionSize being the total size of the edition (inclusive of reservation)
    struct editionBase {
        uint256 publicPrice;
        uint256 publicFreeMax;
        uint256 publicPaidMax;

        uint256 whitelistPrice;
        uint256 whitelistFreeMax;
        uint256 whitelistPaidMax;

        uint256 totalEditionSize;
    }

    /*//////////////////////////////////////////////////////////////
                           DISCOGRAPHY MAPPINGS
    //////////////////////////////////////////////////////////////*/

    //define the discography editions to their respective information structs
    mapping (uint256 => editionBase) public discography;

    /*//////////////////////////////////////////////////////////////
                          EDITION STATE MAPPINGS
    //////////////////////////////////////////////////////////////*/

    //define the whitelist and public state by edition
    mapping (uint256 => bool) public whitelistActive;
    mapping (uint256 => bool) public publicActive;
    
    //define the whitelist and claim index of a current edition
    //@dev discographyWhitelist maps an edition to an address to the bool of if or if not it is whitelisted, a null address, or non whitelisted will return false
    //@dev discographyClaimedTracker maps an edition to an address to teh bool of if or if not the address has claimed the edition already.
    mapping (uint256 => mapping (address => bool)) public discographyWhitelist;

    //@dev edition to user to phase type to quantity
    //@dev quantity maps to 0 = publicFree, 1 = publicPaid, 2 = whitelistFree, 3 = whitelistPaid
    mapping (uint256 => mapping (address => mapping(uint8 => uint256))) userClaimData;

    /*//////////////////////////////////////////////////////////////
                                ERRORS
    //////////////////////////////////////////////////////////////*/

    error incorrectValue();
    error eoaCheckFailed();
    error maxSupplyExceededAfterExecution();
    error amountExceedsLimit(uint256 _amount, uint256 _limit);
    error userMaxClaimsExceeded();
    error notWhitelisted();
    error saleNotLive();

    /*//////////////////////////////////////////////////////////////
                            CURRENT STATE VARIABLES
    //////////////////////////////////////////////////////////////*/

    //global tracker of what the current / active edition is
    uint256 currentEdition;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor (
        string memory _uri
    ) 
        ERC1155(_uri) 
    {}

    /*//////////////////////////////////////////////////////////////
                                CLAIM LOGIC
    //////////////////////////////////////////////////////////////*/

    //@dev Claims a token for the current edition
    //@param msg.value The value sent with the transaction
    function claimToken(uint256 _amount) 
        payable 
        public 
    {

        // Load the edition data into a variable
        editionBase memory currentEditionData = discography[currentEdition];

        // Ensure that tx.origin == msg.sender
        if (tx.origin != msg.sender) revert eoaCheckFailed();

        if (totalSupply(currentEdition) + _amount > currentEditionData.totalEditionSize) revert maxSupplyExceededAfterExecution();

        // Check if whitelistActive for the currentEdition is true
        // Ensure that the mapping for the msg.sender for the currentEdition is false
        if (whitelistActive[currentEdition] && discographyWhitelist[currentEdition][msg.sender]) {

            if (_amount > currentEditionData.whitelistFreeMax + currentEditionData.whitelistPaidMax) revert amountExceedsLimit(_amount, currentEditionData.whitelistFreeMax + currentEditionData.whitelistPaidMax);

            if (userClaimData[currentEdition][msg.sender][2] < currentEditionData.whitelistFreeMax) {

                if (_amount > currentEditionData.whitelistFreeMax) {

                    userClaimData[currentEdition][msg.sender][2] += currentEditionData.whitelistFreeMax;
                    _amount -= currentEditionData.whitelistFreeMax;
                    _mint(msg.sender, currentEdition, currentEditionData.whitelistFreeMax, "");

                } else {

                    userClaimData[currentEdition][msg.sender][2] += _amount;
                    _mint(msg.sender, currentEdition, _amount, "");
                    return;

                }
            }

            if (userClaimData[currentEdition][msg.sender][3] < currentEditionData.whitelistPaidMax) {

                if (_amount == currentEditionData.whitelistPaidMax) {

                    if (msg.value != currentEditionData.whitelistPrice * currentEditionData.whitelistPaidMax) revert incorrectValue();

                    userClaimData[currentEdition][msg.sender][3] += currentEditionData.whitelistPaidMax;
                    _mint(msg.sender, currentEdition, currentEditionData.whitelistPaidMax, "");
                    return;

                } else {

                    if (msg.value != currentEditionData.whitelistPrice * _amount) revert incorrectValue();

                    userClaimData[currentEdition][msg.sender][3] += _amount;
                    _mint(msg.sender, currentEdition, _amount, "");
                    return;

                }
            }

            revert userMaxClaimsExceeded();

        }

        // Check if publicActive for the currentEdition is true
        if (publicActive[currentEdition]) {

            if (_amount > currentEditionData.publicFreeMax + currentEditionData.publicPaidMax) revert amountExceedsLimit(_amount, currentEditionData.publicFreeMax + currentEditionData.publicPaidMax);

            if (userClaimData[currentEdition][msg.sender][0] < currentEditionData.publicFreeMax) {

                if (_amount > currentEditionData.publicFreeMax) {

                    _mint(msg.sender, currentEdition, currentEditionData.publicFreeMax, "");
                    userClaimData[currentEdition][msg.sender][0] += currentEditionData.publicFreeMax;
                    _amount -= currentEditionData.publicFreeMax;

                } else {

                    _mint(msg.sender, currentEdition, _amount, "");
                    userClaimData[currentEdition][msg.sender][0] += _amount;
                    return;

                }
                
            }

            if (userClaimData[currentEdition][msg.sender][1] < currentEditionData.publicPaidMax) {

                if (_amount == currentEditionData.publicPaidMax) {

                    if (msg.value != currentEditionData.publicPrice * currentEditionData.publicPaidMax) revert incorrectValue();

                    
                    userClaimData[currentEdition][msg.sender][1] += currentEditionData.publicPaidMax;
                    _mint(msg.sender, currentEdition, currentEditionData.publicPaidMax, "");
                    return;

                } else {

                    if (msg.value != currentEditionData.publicPrice * _amount) revert incorrectValue();

                    userClaimData[currentEdition][msg.sender][1] += _amount;
                    _mint(msg.sender, currentEdition, _amount, "");
                    return;

                }

            }

            revert userMaxClaimsExceeded();

        }

        revert saleNotLive();
    }

    /*//////////////////////////////////////////////////////////////
                        EDITION MODIFICATION LOGIC
    //////////////////////////////////////////////////////////////*/

    //@dev Updates the values in a struct stored in the discography mapping with the values of the input parameters, using the _edition parameter as the key to access the correct struct in the mapping. 
    //@param _edition The edition to create or modify
    //@param _publicSupply The public supply for this edition
    //@param _publicPrice The public price for this edition
    //@param _whitelistSupply The whitelist supply for this edition
    //@param _whitelistPrice The whitelist price for this edition
    //@param _totalEditionSize The total edition size for this edition
    function createOrModifyEdition(
        uint256 _edition, 

        uint256 _publicPrice, 
        uint256 _publicFreeMax, 
        uint256 _publicPaidMax, 

        uint256 _whitelistPrice,
        uint256 _whitelistFreeMax,
        uint256 _whitelistPaidMax,

        uint256 _totalEditionSize,
        uint256 _reserveAmount
    ) 
        public 
        onlyOwner 
    {
        if (_reserveAmount > _totalEditionSize) revert maxSupplyExceededAfterExecution();

        discography[_edition] = editionBase(_publicPrice, _publicFreeMax, _publicPaidMax, _whitelistPrice, _whitelistFreeMax, _whitelistPaidMax, _totalEditionSize);

        _mint(msg.sender, _edition, _reserveAmount, "");
    }

    //@dev Sets the current edition
    //@param _edition The edition to set as the current edition
    function setCurrentEdition(uint256 _edition) 
        public 
        onlyOwner 
    {
        currentEdition = _edition;
    }

    /*//////////////////////////////////////////////////////////////
                        SALE MODIFICATION LOGIC
    //////////////////////////////////////////////////////////////*/

    //@dev Sets the whitelist active value for the current edition
    //@param _value The value to set for whitelist active
    function setWhitelistLive(bool _value) 
        public 
        onlyOwner 
    {
        whitelistActive[currentEdition] = _value;
    }

    //@dev Sets the public active value for the current edition
    //@param _value The value to set for public active
    function setPublicLive(bool _value)
        public 
        onlyOwner 
    {
        publicActive[currentEdition] = _value;
    }

    //@dev Sets the public active value for the current edition
    //@param _value The value to set for public active
    function setBothPhasesLive(bool _value)
        public 
        onlyOwner 
    {
        publicActive[currentEdition] = _value;
        whitelistActive[currentEdition] = _value;
    }


    /*//////////////////////////////////////////////////////////////
                            WHITELIST LOGIC
    //////////////////////////////////////////////////////////////*/

    //@dev Sets the discography whitelist for the current edition
    //@param _toWhitelist The addresses to whitelist
    //@param _state The state to set for the whitelist
    function setDiscographyWhitelist(address[] memory _toWhitelist, bool _state)
        public 
        onlyOwner 
    {
        for (uint256 i = 0; i < _toWhitelist.length;) {
            discographyWhitelist[currentEdition][_toWhitelist[i]] = _state;
            unchecked { ++i; }
        }
    }

    /*//////////////////////////////////////////////////////////////
                            ADMIN AUX LOGIC
    //////////////////////////////////////////////////////////////*/

    //@dev Allows the owner to admin mint any edition any amount of times incase of reservations or giveaways
    function ownerMint(uint256 _editionType, uint256 _amount) 
        public 
        onlyOwner 
    {
        _mint(msg.sender, _editionType, _amount, "");
    }


    //@dev Allows the owner to withdraw the contract's balance
    function withdraw()
        public 
        onlyOwner 
    {
        payable(msg.sender).transfer(address(this).balance);
    }

    // @dev Calls multiple functions with the provided parameters in a single transaction
    // @param _to The addresses of the functions to call
    // @param _values The values to send with the function calls
    // @param _data The data for each function call
    function multicall(
        address[] memory _to,
        uint256[] memory _values,
        bytes[] memory _data
    )
        public 
        onlyOwner
    {
        // Loop through the provided addresses and call each function
        for (uint256 i = 0; i < _to.length;) {
            // Call the function with the provided parameters
            (bool success, bytes memory returnData) = _to[i].call{ value: _values[i] }(_data[i]);
            require(success, string(returnData));
            unchecked { ++i; }
        }
    }

    /*//////////////////////////////////////////////////////////////
                                URI LOGIC
    //////////////////////////////////////////////////////////////*/

    //@dev Sets the URI for the contract
    //@param newuri The new URI to set for the contract
    function setURI(string memory newuri)
        public 
        onlyOwner 
    {
        _setURI(newuri);
    }

    /// @dev Retrieves the URI for the specified edition
    /// @param _id The ID of the edition to retrieve the URI for
    /// @notice The URI is returned in the format: baseURI + {id} + ".json"
    function uri(uint256 _id) 
        public 
        view 
        override 
        returns (string memory) 
    {
        require(exists(_id), "@dev: Edition does not exist");
        return string(abi.encodePacked(super.uri(_id), Strings.toString(_id), ".json"));
    }

    /*//////////////////////////////////////////////////////////////
                            TRANSFER LOGIC
    //////////////////////////////////////////////////////////////*/

    //@dev Called before a token transfer
    //@param operator The address of the operator calling the function
    //@param from The address the tokens are being transferred from
    //@param to The address the tokens are being transferred to
    //@param ids The ID of the tokens being transferred
    //@param amounts The values of the tokens being transferred
    //@param data Additional data for the transfer
    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 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 3 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

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

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

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

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

File 4 of 14 : 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 5 of 14 : 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 6 of 14 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 or 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 or 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 7 of 14 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 14 : 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 9 of 14 : 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 10 of 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 11 of 14 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"amountExceedsLimit","type":"error"},{"inputs":[],"name":"eoaCheckFailed","type":"error"},{"inputs":[],"name":"incorrectValue","type":"error"},{"inputs":[],"name":"maxSupplyExceededAfterExecution","type":"error"},{"inputs":[],"name":"notWhitelisted","type":"error"},{"inputs":[],"name":"saleNotLive","type":"error"},{"inputs":[],"name":"userMaxClaimsExceeded","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"claimToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_edition","type":"uint256"},{"internalType":"uint256","name":"_publicPrice","type":"uint256"},{"internalType":"uint256","name":"_publicFreeMax","type":"uint256"},{"internalType":"uint256","name":"_publicPaidMax","type":"uint256"},{"internalType":"uint256","name":"_whitelistPrice","type":"uint256"},{"internalType":"uint256","name":"_whitelistFreeMax","type":"uint256"},{"internalType":"uint256","name":"_whitelistPaidMax","type":"uint256"},{"internalType":"uint256","name":"_totalEditionSize","type":"uint256"},{"internalType":"uint256","name":"_reserveAmount","type":"uint256"}],"name":"createOrModifyEdition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"discography","outputs":[{"internalType":"uint256","name":"publicPrice","type":"uint256"},{"internalType":"uint256","name":"publicFreeMax","type":"uint256"},{"internalType":"uint256","name":"publicPaidMax","type":"uint256"},{"internalType":"uint256","name":"whitelistPrice","type":"uint256"},{"internalType":"uint256","name":"whitelistFreeMax","type":"uint256"},{"internalType":"uint256","name":"whitelistPaidMax","type":"uint256"},{"internalType":"uint256","name":"totalEditionSize","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"discographyWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"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":"address[]","name":"_to","type":"address[]"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"},{"internalType":"bytes[]","name":"_data","type":"bytes[]"}],"name":"multicall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionType","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"publicActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_value","type":"bool"}],"name":"setBothPhasesLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_edition","type":"uint256"}],"name":"setCurrentEdition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_toWhitelist","type":"address[]"},{"internalType":"bool","name":"_state","type":"bool"}],"name":"setDiscographyWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_value","type":"bool"}],"name":"setPublicLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_value","type":"bool"}],"name":"setWhitelistLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelistActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002efd38038062002efd8339810160408190526200003491620000cd565b80620000408162000053565b506200004c3362000065565b50620002fd565b600262000061828262000231565b5050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215620000e157600080fd5b82516001600160401b0380821115620000f957600080fd5b818501915085601f8301126200010e57600080fd5b815181811115620001235762000123620000b7565b604051601f8201601f19908116603f011681019083821181831017156200014e576200014e620000b7565b8160405282815288868487010111156200016757600080fd5b600093505b828410156200018b57848401860151818501870152928501926200016c565b600086848301015280965050505050505092915050565b600181811c90821680620001b757607f821691505b602082108103620001d857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200022c57600081815260208120601f850160051c81016020861015620002075750805b601f850160051c820191505b81811015620002285782815560010162000213565b5050505b505050565b81516001600160401b038111156200024d576200024d620000b7565b62000265816200025e8454620001a2565b84620001de565b602080601f8311600181146200029d5760008415620002845750858301515b600019600386901b1c1916600185901b17855562000228565b600085815260208120601f198616915b82811015620002ce57888601518255948401946001909101908401620002ad565b5085821015620002ed5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b612bf0806200030d6000396000f3fe6080604052600436106101b65760003560e01c8063715018a6116100ec578063bd85b0391161008a578063f242432a11610064578063f242432a146105c1578063f2fde38b146105e1578063fbe531f214610601578063fd56eb501461063157600080fd5b8063bd85b0391461052b578063d47573d414610558578063e985e9c51461057857600080fd5b80638ec382f5116100c65780638ec382f51461049d578063a22cb465146104bd578063a9e7c2e5146104dd578063b7374c4b146104f057600080fd5b8063715018a614610440578063831bf636146104555780638da5cb5b1461047557600080fd5b80633ccfd60b116101595780634f558e79116101335780634f558e79146103a15780635b73ca8c146103d05780635ee19d571461040057806363da21461461042057600080fd5b80633ccfd60b1461033f57806345f67ac7146103545780634e1273f41461037457600080fd5b80630e89341c116101955780630e89341c1461024057806319bf48291461026d5780632eb2c2d6146102ff5780633b67f6431461031f57600080fd5b8062fdd58e146101bb57806301ffc9a7146101ee57806302fe53051461021e575b600080fd5b3480156101c757600080fd5b506101db6101d6366004611fab565b610651565b6040519081526020015b60405180910390f35b3480156101fa57600080fd5b5061020e610209366004611feb565b6106ea565b60405190151581526020016101e5565b34801561022a57600080fd5b5061023e6102393660046120ae565b61073a565b005b34801561024c57600080fd5b5061026061025b3660046120fe565b61074e565b6040516101e59190612167565b34801561027957600080fd5b506102ca6102883660046120fe565b60056020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040154908060050154908060060154905087565b604080519788526020880196909652948601939093526060850191909152608084015260a083015260c082015260e0016101e5565b34801561030b57600080fd5b5061023e61031a36600461222e565b6107e5565b34801561032b57600080fd5b5061023e61033a3660046122e7565b610831565b34801561034b57600080fd5b5061023e61085b565b34801561036057600080fd5b5061023e61036f36600461236f565b61088f565b34801561038057600080fd5b5061039461038f366004612471565b610985565b6040516101e5919061250f565b3480156103ad57600080fd5b5061020e6103bc3660046120fe565b600090815260036020526040902054151590565b3480156103dc57600080fd5b5061020e6103eb3660046120fe565b60066020526000908152604090205460ff1681565b34801561040c57600080fd5b5061023e61041b366004612522565b610aae565b34801561042c57600080fd5b5061023e61043b3660046122e7565b610b2b565b34801561044c57600080fd5b5061023e610b55565b34801561046157600080fd5b5061023e6104703660046122e7565b610b69565b34801561048157600080fd5b506004546040516001600160a01b0390911681526020016101e5565b3480156104a957600080fd5b5061023e6104b836600461256f565b610bab565b3480156104c957600080fd5b5061023e6104d83660046125ce565b610c89565b61023e6104eb3660046120fe565b610c98565b3480156104fc57600080fd5b5061020e61050b3660046125f8565b600860209081526000928352604080842090915290825290205460ff1681565b34801561053757600080fd5b506101db6105463660046120fe565b60009081526003602052604090205490565b34801561056457600080fd5b5061023e61057336600461261b565b6112eb565b34801561058457600080fd5b5061020e61059336600461263d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156105cd57600080fd5b5061023e6105dc366004612667565b61130e565b3480156105ed57600080fd5b5061023e6105fc3660046126cb565b611353565b34801561060d57600080fd5b5061020e61061c3660046120fe565b60076020526000908152604090205460ff1681565b34801561063d57600080fd5b5061023e61064c3660046120fe565b6113c9565b60006001600160a01b0383166106c15760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061071b57506001600160e01b031982166303a24d0760e21b145b806106e457506301ffc9a760e01b6001600160e01b03198316146106e4565b6107426113d6565b61074b81611430565b50565b6000818152600360205260409020546060906107ac5760405162461bcd60e51b815260206004820152601c60248201527f406465763a2045646974696f6e20646f6573206e6f742065786973740000000060448201526064016106b8565b6107b58261143c565b6107be836114d0565b6040516020016107cf9291906126e6565b6040516020818303038152906040529050919050565b6001600160a01b03851633148061080157506108018533610593565b61081d5760405162461bcd60e51b81526004016106b890612725565b61082a8585858585611562565b5050505050565b6108396113d6565b600a546000908152600760205260409020805460ff1916911515919091179055565b6108636113d6565b60405133904780156108fc02916000818181858888f1935050505015801561074b573d6000803e3d6000fd5b6108976113d6565b60005b835181101561097f576000808583815181106108b8576108b8612773565b60200260200101516001600160a01b03168584815181106108db576108db612773565b60200260200101518585815181106108f5576108f5612773565b602002602001015160405161090a9190612789565b60006040518083038185875af1925050503d8060008114610947576040519150601f19603f3d011682016040523d82523d6000602084013e61094c565b606091505b50915091508181906109715760405162461bcd60e51b81526004016106b89190612167565b50826001019250505061089a565b50505050565b606081518351146109ea5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016106b8565b600083516001600160401b03811115610a0557610a0561200f565b604051908082528060200260200182016040528015610a2e578160200160208202803683370190505b50905060005b8451811015610aa657610a79858281518110610a5257610a52612773565b6020026020010151858381518110610a6c57610a6c612773565b6020026020010151610651565b828281518110610a8b57610a8b612773565b6020908102919091010152610a9f816127bb565b9050610a34565b509392505050565b610ab66113d6565b60005b8251811015610b26578160086000600a5481526020019081526020016000206000858481518110610aec57610aec612773565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055600101610ab9565b505050565b610b336113d6565b600a546000908152600660205260409020805460ff1916911515919091179055565b610b5d6113d6565b610b67600061174d565b565b610b716113d6565b600a80546000908152600760209081526040808320805495151560ff19968716811790915593548352600690915290208054909216179055565b610bb36113d6565b81811115610bd457604051631314787360e31b815260040160405180910390fd5b6040518060e0016040528089815260200188815260200187815260200186815260200185815260200184815260200183815250600560008b8152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c08201518160060155905050610c7e338a836040518060200160405280600081525061179f565b505050505050505050565b610c943383836118c2565b5050565b600a54600090815260056020818152604092839020835160e0810185528154815260018201549281019290925260028101549382019390935260038301546060820152600483015460808201529082015460a082015260069091015460c0820152323314610d1957604051630a11de1f60e41b815260040160405180910390fd5b8060c0015182610d37600a5460009081526003602052604090205490565b610d4191906127d4565b1115610d6057604051631314787360e31b815260040160405180910390fd5b600a5460009081526006602052604090205460ff168015610d9d5750600a54600090815260086020908152604080832033845290915290205460ff165b1561104e578060a001518160800151610db691906127d4565b821115610df457818160a001518260800151610dd291906127d4565b604051634dc1281960e01b8152600481019290925260248201526044016106b8565b6080810151600a5460009081526009602090815260408083203384528252808320600284529091529020541015610f00578060800151821115610ea7576080810151600a54600090815260096020908152604080832033845282528083206002845290915281208054909190610e6b9084906127d4565b90915550506080810151610e7f90836127e7565b9150610ea233600a5483608001516040518060200160405280600081525061179f565b610f00565b600a54600090815260096020908152604080832033845282528083206002845290915281208054849290610edc9084906127d4565b92505081905550610c9433600a54846040518060200160405280600081525061179f565b60a0810151600a5460009081526009602090815260408083203384528252808320600384529091529020541015611035578060a001518203610fd1578060a001518160600151610f5091906127fa565b3414610f6f57604051634372ee9d60e01b815260040160405180910390fd5b60a0810151600a54600090815260096020908152604080832033845282528083206003845290915281208054909190610fa99084906127d4565b92505081905550610c9433600a548360a001516040518060200160405280600081525061179f565b818160600151610fe191906127fa565b341461100057604051634372ee9d60e01b815260040160405180910390fd5b600a54600090815260096020908152604080832033845282528083206003845290915281208054849290610edc9084906127d4565b6040516368f6ba0560e01b815260040160405180910390fd5b600a5460009081526007602052604090205460ff16156112d2578060400151816020015161107c91906127d4565b821115611098578181604001518260200151610dd291906127d4565b602080820151600a5460009081526009835260408082203383528452808220828052909352919091205410156111a3578060200151821115611149576110f533600a5483602001516040518060200160405280600081525061179f565b602080820151600a546000908152600983526040808220338352845280822082805290935291822080549192909161112e9084906127d4565b9091555050602081015161114290836127e7565b91506111a3565b61116633600a54846040518060200160405280600081525061179f565b600a54600090815260096020908152604080832033845282528083208380529091528120805484929061119a9084906127d4565b90915550505050565b604080820151600a54600090815260096020908152838220338352815283822060018352905291909120541015611035578060400151820361127157604081015181516111f091906127fa565b341461120f57604051634372ee9d60e01b815260040160405180910390fd5b604080820151600a5460009081526009602090815283822033835281528382206001835290529182208054919290916112499084906127d4565b92505081905550610c9433600a5483604001516040518060200160405280600081525061179f565b805161127e9083906127fa565b341461129d57604051634372ee9d60e01b815260040160405180910390fd5b600a54600090815260096020908152604080832033845282528083206001845290915281208054849290610edc9084906127d4565b604051631a29d96960e31b815260040160405180910390fd5b6112f36113d6565b610c943383836040518060200160405280600081525061179f565b6001600160a01b03851633148061132a575061132a8533610593565b6113465760405162461bcd60e51b81526004016106b890612725565b61082a85858585856119a2565b61135b6113d6565b6001600160a01b0381166113c05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106b8565b61074b8161174d565b6113d16113d6565b600a55565b6004546001600160a01b03163314610b675760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106b8565b6002610c948282612891565b60606002805461144b90612811565b80601f016020809104026020016040519081016040528092919081815260200182805461147790612811565b80156114c45780601f10611499576101008083540402835291602001916114c4565b820191906000526020600020905b8154815290600101906020018083116114a757829003601f168201915b50505050509050919050565b606060006114dd83611acf565b60010190506000816001600160401b038111156114fc576114fc61200f565b6040519080825280601f01601f191660200182016040528015611526576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461153057509392505050565b81518351146115c45760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016106b8565b6001600160a01b0384166115ea5760405162461bcd60e51b81526004016106b890612950565b336115f9818787878787611ba7565b60005b84518110156116df57600085828151811061161957611619612773565b60200260200101519050600085838151811061163757611637612773565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156116875760405162461bcd60e51b81526004016106b890612995565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906116c49084906127d4565b92505081905550505050806116d8906127bb565b90506115fc565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161172f9291906129df565b60405180910390a4611745818787878787611bb5565b505050505050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0384166117ff5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016106b8565b33600061180b85611d10565b9050600061181885611d10565b905061182983600089858589611ba7565b6000868152602081815260408083206001600160a01b038b168452909152812080548792906118599084906127d4565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46118b983600089898989611d5b565b50505050505050565b816001600160a01b0316836001600160a01b0316036119355760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016106b8565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166119c85760405162461bcd60e51b81526004016106b890612950565b3360006119d485611d10565b905060006119e185611d10565b90506119f1838989858589611ba7565b6000868152602081815260408083206001600160a01b038c16845290915290205485811015611a325760405162461bcd60e51b81526004016106b890612995565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290611a6f9084906127d4565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610c7e848a8a8a8a8a611d5b565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611b0e5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611b3a576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611b5857662386f26fc10000830492506010015b6305f5e1008310611b70576305f5e100830492506008015b6127108310611b8457612710830492506004015b60648310611b96576064830492506002015b600a83106106e45760010192915050565b611745868686868686611e16565b6001600160a01b0384163b156117455760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611bf99089908990889088908890600401612a0d565b6020604051808303816000875af1925050508015611c34575060408051601f3d908101601f19168201909252611c3191810190612a6b565b60015b611ce057611c40612a88565b806308c379a003611c795750611c54612aa4565b80611c5f5750611c7b565b8060405162461bcd60e51b81526004016106b89190612167565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016106b8565b6001600160e01b0319811663bc197c8160e01b146118b95760405162461bcd60e51b81526004016106b890612b2d565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611d4a57611d4a612773565b602090810291909101015292915050565b6001600160a01b0384163b156117455760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611d9f9089908990889088908890600401612b75565b6020604051808303816000875af1925050508015611dda575060408051601f3d908101601f19168201909252611dd791810190612a6b565b60015b611de657611c40612a88565b6001600160e01b0319811663f23a6e6160e01b146118b95760405162461bcd60e51b81526004016106b890612b2d565b6001600160a01b038516611e9d5760005b8351811015611e9b57828181518110611e4257611e42612773565b602002602001015160036000868481518110611e6057611e60612773565b602002602001015181526020019081526020016000206000828254611e8591906127d4565b90915550611e949050816127bb565b9050611e27565b505b6001600160a01b0384166117455760005b83518110156118b9576000848281518110611ecb57611ecb612773565b602002602001015190506000848381518110611ee957611ee9612773565b6020026020010151905060006003600084815260200190815260200160002054905081811015611f6c5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b60648201526084016106b8565b60009283526003602052604090922091039055611f88816127bb565b9050611eae565b80356001600160a01b0381168114611fa657600080fd5b919050565b60008060408385031215611fbe57600080fd5b611fc783611f8f565b946020939093013593505050565b6001600160e01b03198116811461074b57600080fd5b600060208284031215611ffd57600080fd5b813561200881611fd5565b9392505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b038111828210171561204a5761204a61200f565b6040525050565b60006001600160401b0383111561206a5761206a61200f565b604051612081601f8501601f191660200182612025565b80915083815284848401111561209657600080fd5b83836020830137600060208583010152509392505050565b6000602082840312156120c057600080fd5b81356001600160401b038111156120d657600080fd5b8201601f810184136120e757600080fd5b6120f684823560208401612051565b949350505050565b60006020828403121561211057600080fd5b5035919050565b60005b8381101561213257818101518382015260200161211a565b50506000910152565b60008151808452612153816020860160208601612117565b601f01601f19169290920160200192915050565b602081526000612008602083018461213b565b60006001600160401b038211156121935761219361200f565b5060051b60200190565b600082601f8301126121ae57600080fd5b813560206121bb8261217a565b6040516121c88282612025565b83815260059390931b85018201928281019150868411156121e857600080fd5b8286015b8481101561220357803583529183019183016121ec565b509695505050505050565b600082601f83011261221f57600080fd5b61200883833560208501612051565b600080600080600060a0868803121561224657600080fd5b61224f86611f8f565b945061225d60208701611f8f565b935060408601356001600160401b038082111561227957600080fd5b61228589838a0161219d565b9450606088013591508082111561229b57600080fd5b6122a789838a0161219d565b935060808801359150808211156122bd57600080fd5b506122ca8882890161220e565b9150509295509295909350565b80358015158114611fa657600080fd5b6000602082840312156122f957600080fd5b612008826122d7565b600082601f83011261231357600080fd5b813560206123208261217a565b60405161232d8282612025565b83815260059390931b850182019282810191508684111561234d57600080fd5b8286015b848110156122035761236281611f8f565b8352918301918301612351565b60008060006060848603121561238457600080fd5b83356001600160401b038082111561239b57600080fd5b6123a787838801612302565b94506020915081860135818111156123be57600080fd5b6123ca8882890161219d565b9450506040860135818111156123df57600080fd5b8601601f810188136123f057600080fd5b80356123fb8161217a565b6040516124088282612025565b82815260059290921b830185019185810191508a83111561242857600080fd5b8584015b83811015612460578035868111156124445760008081fd5b6124528d898389010161220e565b84525091860191860161242c565b508096505050505050509250925092565b6000806040838503121561248457600080fd5b82356001600160401b038082111561249b57600080fd5b6124a786838701612302565b935060208501359150808211156124bd57600080fd5b506124ca8582860161219d565b9150509250929050565b600081518084526020808501945080840160005b83811015612504578151875295820195908201906001016124e8565b509495945050505050565b60208152600061200860208301846124d4565b6000806040838503121561253557600080fd5b82356001600160401b0381111561254b57600080fd5b61255785828601612302565b925050612566602084016122d7565b90509250929050565b60008060008060008060008060006101208a8c03121561258e57600080fd5b505087359960208901359950604089013598606081013598506080810135975060a0810135965060c0810135955060e08101359450610100013592509050565b600080604083850312156125e157600080fd5b6125ea83611f8f565b9150612566602084016122d7565b6000806040838503121561260b57600080fd5b8235915061256660208401611f8f565b6000806040838503121561262e57600080fd5b50508035926020909101359150565b6000806040838503121561265057600080fd5b61265983611f8f565b915061256660208401611f8f565b600080600080600060a0868803121561267f57600080fd5b61268886611f8f565b945061269660208701611f8f565b9350604086013592506060860135915060808601356001600160401b038111156126bf57600080fd5b6122ca8882890161220e565b6000602082840312156126dd57600080fd5b61200882611f8f565b600083516126f8818460208801612117565b83519083019061270c818360208801612117565b64173539b7b760d91b9101908152600501949350505050565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000825161279b818460208701612117565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b6000600182016127cd576127cd6127a5565b5060010190565b808201808211156106e4576106e46127a5565b818103818111156106e4576106e46127a5565b80820281158282048414176106e4576106e46127a5565b600181811c9082168061282557607f821691505b60208210810361284557634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610b2657600081815260208120601f850160051c810160208610156128725750805b601f850160051c820191505b818110156117455782815560010161287e565b81516001600160401b038111156128aa576128aa61200f565b6128be816128b88454612811565b8461284b565b602080601f8311600181146128f357600084156128db5750858301515b600019600386901b1c1916600185901b178555611745565b600085815260208120601f198616915b8281101561292257888601518255948401946001909101908401612903565b50858210156129405787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006129f260408301856124d4565b8281036020840152612a0481856124d4565b95945050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612a39908301866124d4565b8281036060840152612a4b81866124d4565b90508281036080840152612a5f818561213b565b98975050505050505050565b600060208284031215612a7d57600080fd5b815161200881611fd5565b600060033d1115612aa15760046000803e5060005160e01c5b90565b600060443d1015612ab25790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715612ae157505050505090565b8285019150815181811115612af95750505050505090565b843d8701016020828501011115612b135750505050505090565b612b2260208286010187612025565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612baf9083018461213b565b97965050505050505056fea26469706673582212204df96e5b707fc8a481813fba4377808001110241eae65b3358e302ae941d6f5a64736f6c634300081100330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001968747470733a2f2f7374617469632e3732312e67672f6a762f00000000000000

Deployed Bytecode

0x6080604052600436106101b65760003560e01c8063715018a6116100ec578063bd85b0391161008a578063f242432a11610064578063f242432a146105c1578063f2fde38b146105e1578063fbe531f214610601578063fd56eb501461063157600080fd5b8063bd85b0391461052b578063d47573d414610558578063e985e9c51461057857600080fd5b80638ec382f5116100c65780638ec382f51461049d578063a22cb465146104bd578063a9e7c2e5146104dd578063b7374c4b146104f057600080fd5b8063715018a614610440578063831bf636146104555780638da5cb5b1461047557600080fd5b80633ccfd60b116101595780634f558e79116101335780634f558e79146103a15780635b73ca8c146103d05780635ee19d571461040057806363da21461461042057600080fd5b80633ccfd60b1461033f57806345f67ac7146103545780634e1273f41461037457600080fd5b80630e89341c116101955780630e89341c1461024057806319bf48291461026d5780632eb2c2d6146102ff5780633b67f6431461031f57600080fd5b8062fdd58e146101bb57806301ffc9a7146101ee57806302fe53051461021e575b600080fd5b3480156101c757600080fd5b506101db6101d6366004611fab565b610651565b6040519081526020015b60405180910390f35b3480156101fa57600080fd5b5061020e610209366004611feb565b6106ea565b60405190151581526020016101e5565b34801561022a57600080fd5b5061023e6102393660046120ae565b61073a565b005b34801561024c57600080fd5b5061026061025b3660046120fe565b61074e565b6040516101e59190612167565b34801561027957600080fd5b506102ca6102883660046120fe565b60056020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040154908060050154908060060154905087565b604080519788526020880196909652948601939093526060850191909152608084015260a083015260c082015260e0016101e5565b34801561030b57600080fd5b5061023e61031a36600461222e565b6107e5565b34801561032b57600080fd5b5061023e61033a3660046122e7565b610831565b34801561034b57600080fd5b5061023e61085b565b34801561036057600080fd5b5061023e61036f36600461236f565b61088f565b34801561038057600080fd5b5061039461038f366004612471565b610985565b6040516101e5919061250f565b3480156103ad57600080fd5b5061020e6103bc3660046120fe565b600090815260036020526040902054151590565b3480156103dc57600080fd5b5061020e6103eb3660046120fe565b60066020526000908152604090205460ff1681565b34801561040c57600080fd5b5061023e61041b366004612522565b610aae565b34801561042c57600080fd5b5061023e61043b3660046122e7565b610b2b565b34801561044c57600080fd5b5061023e610b55565b34801561046157600080fd5b5061023e6104703660046122e7565b610b69565b34801561048157600080fd5b506004546040516001600160a01b0390911681526020016101e5565b3480156104a957600080fd5b5061023e6104b836600461256f565b610bab565b3480156104c957600080fd5b5061023e6104d83660046125ce565b610c89565b61023e6104eb3660046120fe565b610c98565b3480156104fc57600080fd5b5061020e61050b3660046125f8565b600860209081526000928352604080842090915290825290205460ff1681565b34801561053757600080fd5b506101db6105463660046120fe565b60009081526003602052604090205490565b34801561056457600080fd5b5061023e61057336600461261b565b6112eb565b34801561058457600080fd5b5061020e61059336600461263d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156105cd57600080fd5b5061023e6105dc366004612667565b61130e565b3480156105ed57600080fd5b5061023e6105fc3660046126cb565b611353565b34801561060d57600080fd5b5061020e61061c3660046120fe565b60076020526000908152604090205460ff1681565b34801561063d57600080fd5b5061023e61064c3660046120fe565b6113c9565b60006001600160a01b0383166106c15760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061071b57506001600160e01b031982166303a24d0760e21b145b806106e457506301ffc9a760e01b6001600160e01b03198316146106e4565b6107426113d6565b61074b81611430565b50565b6000818152600360205260409020546060906107ac5760405162461bcd60e51b815260206004820152601c60248201527f406465763a2045646974696f6e20646f6573206e6f742065786973740000000060448201526064016106b8565b6107b58261143c565b6107be836114d0565b6040516020016107cf9291906126e6565b6040516020818303038152906040529050919050565b6001600160a01b03851633148061080157506108018533610593565b61081d5760405162461bcd60e51b81526004016106b890612725565b61082a8585858585611562565b5050505050565b6108396113d6565b600a546000908152600760205260409020805460ff1916911515919091179055565b6108636113d6565b60405133904780156108fc02916000818181858888f1935050505015801561074b573d6000803e3d6000fd5b6108976113d6565b60005b835181101561097f576000808583815181106108b8576108b8612773565b60200260200101516001600160a01b03168584815181106108db576108db612773565b60200260200101518585815181106108f5576108f5612773565b602002602001015160405161090a9190612789565b60006040518083038185875af1925050503d8060008114610947576040519150601f19603f3d011682016040523d82523d6000602084013e61094c565b606091505b50915091508181906109715760405162461bcd60e51b81526004016106b89190612167565b50826001019250505061089a565b50505050565b606081518351146109ea5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016106b8565b600083516001600160401b03811115610a0557610a0561200f565b604051908082528060200260200182016040528015610a2e578160200160208202803683370190505b50905060005b8451811015610aa657610a79858281518110610a5257610a52612773565b6020026020010151858381518110610a6c57610a6c612773565b6020026020010151610651565b828281518110610a8b57610a8b612773565b6020908102919091010152610a9f816127bb565b9050610a34565b509392505050565b610ab66113d6565b60005b8251811015610b26578160086000600a5481526020019081526020016000206000858481518110610aec57610aec612773565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055600101610ab9565b505050565b610b336113d6565b600a546000908152600660205260409020805460ff1916911515919091179055565b610b5d6113d6565b610b67600061174d565b565b610b716113d6565b600a80546000908152600760209081526040808320805495151560ff19968716811790915593548352600690915290208054909216179055565b610bb36113d6565b81811115610bd457604051631314787360e31b815260040160405180910390fd5b6040518060e0016040528089815260200188815260200187815260200186815260200185815260200184815260200183815250600560008b8152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c08201518160060155905050610c7e338a836040518060200160405280600081525061179f565b505050505050505050565b610c943383836118c2565b5050565b600a54600090815260056020818152604092839020835160e0810185528154815260018201549281019290925260028101549382019390935260038301546060820152600483015460808201529082015460a082015260069091015460c0820152323314610d1957604051630a11de1f60e41b815260040160405180910390fd5b8060c0015182610d37600a5460009081526003602052604090205490565b610d4191906127d4565b1115610d6057604051631314787360e31b815260040160405180910390fd5b600a5460009081526006602052604090205460ff168015610d9d5750600a54600090815260086020908152604080832033845290915290205460ff165b1561104e578060a001518160800151610db691906127d4565b821115610df457818160a001518260800151610dd291906127d4565b604051634dc1281960e01b8152600481019290925260248201526044016106b8565b6080810151600a5460009081526009602090815260408083203384528252808320600284529091529020541015610f00578060800151821115610ea7576080810151600a54600090815260096020908152604080832033845282528083206002845290915281208054909190610e6b9084906127d4565b90915550506080810151610e7f90836127e7565b9150610ea233600a5483608001516040518060200160405280600081525061179f565b610f00565b600a54600090815260096020908152604080832033845282528083206002845290915281208054849290610edc9084906127d4565b92505081905550610c9433600a54846040518060200160405280600081525061179f565b60a0810151600a5460009081526009602090815260408083203384528252808320600384529091529020541015611035578060a001518203610fd1578060a001518160600151610f5091906127fa565b3414610f6f57604051634372ee9d60e01b815260040160405180910390fd5b60a0810151600a54600090815260096020908152604080832033845282528083206003845290915281208054909190610fa99084906127d4565b92505081905550610c9433600a548360a001516040518060200160405280600081525061179f565b818160600151610fe191906127fa565b341461100057604051634372ee9d60e01b815260040160405180910390fd5b600a54600090815260096020908152604080832033845282528083206003845290915281208054849290610edc9084906127d4565b6040516368f6ba0560e01b815260040160405180910390fd5b600a5460009081526007602052604090205460ff16156112d2578060400151816020015161107c91906127d4565b821115611098578181604001518260200151610dd291906127d4565b602080820151600a5460009081526009835260408082203383528452808220828052909352919091205410156111a3578060200151821115611149576110f533600a5483602001516040518060200160405280600081525061179f565b602080820151600a546000908152600983526040808220338352845280822082805290935291822080549192909161112e9084906127d4565b9091555050602081015161114290836127e7565b91506111a3565b61116633600a54846040518060200160405280600081525061179f565b600a54600090815260096020908152604080832033845282528083208380529091528120805484929061119a9084906127d4565b90915550505050565b604080820151600a54600090815260096020908152838220338352815283822060018352905291909120541015611035578060400151820361127157604081015181516111f091906127fa565b341461120f57604051634372ee9d60e01b815260040160405180910390fd5b604080820151600a5460009081526009602090815283822033835281528382206001835290529182208054919290916112499084906127d4565b92505081905550610c9433600a5483604001516040518060200160405280600081525061179f565b805161127e9083906127fa565b341461129d57604051634372ee9d60e01b815260040160405180910390fd5b600a54600090815260096020908152604080832033845282528083206001845290915281208054849290610edc9084906127d4565b604051631a29d96960e31b815260040160405180910390fd5b6112f36113d6565b610c943383836040518060200160405280600081525061179f565b6001600160a01b03851633148061132a575061132a8533610593565b6113465760405162461bcd60e51b81526004016106b890612725565b61082a85858585856119a2565b61135b6113d6565b6001600160a01b0381166113c05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106b8565b61074b8161174d565b6113d16113d6565b600a55565b6004546001600160a01b03163314610b675760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106b8565b6002610c948282612891565b60606002805461144b90612811565b80601f016020809104026020016040519081016040528092919081815260200182805461147790612811565b80156114c45780601f10611499576101008083540402835291602001916114c4565b820191906000526020600020905b8154815290600101906020018083116114a757829003601f168201915b50505050509050919050565b606060006114dd83611acf565b60010190506000816001600160401b038111156114fc576114fc61200f565b6040519080825280601f01601f191660200182016040528015611526576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461153057509392505050565b81518351146115c45760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016106b8565b6001600160a01b0384166115ea5760405162461bcd60e51b81526004016106b890612950565b336115f9818787878787611ba7565b60005b84518110156116df57600085828151811061161957611619612773565b60200260200101519050600085838151811061163757611637612773565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156116875760405162461bcd60e51b81526004016106b890612995565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906116c49084906127d4565b92505081905550505050806116d8906127bb565b90506115fc565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161172f9291906129df565b60405180910390a4611745818787878787611bb5565b505050505050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0384166117ff5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016106b8565b33600061180b85611d10565b9050600061181885611d10565b905061182983600089858589611ba7565b6000868152602081815260408083206001600160a01b038b168452909152812080548792906118599084906127d4565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46118b983600089898989611d5b565b50505050505050565b816001600160a01b0316836001600160a01b0316036119355760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016106b8565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166119c85760405162461bcd60e51b81526004016106b890612950565b3360006119d485611d10565b905060006119e185611d10565b90506119f1838989858589611ba7565b6000868152602081815260408083206001600160a01b038c16845290915290205485811015611a325760405162461bcd60e51b81526004016106b890612995565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290611a6f9084906127d4565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610c7e848a8a8a8a8a611d5b565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611b0e5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611b3a576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611b5857662386f26fc10000830492506010015b6305f5e1008310611b70576305f5e100830492506008015b6127108310611b8457612710830492506004015b60648310611b96576064830492506002015b600a83106106e45760010192915050565b611745868686868686611e16565b6001600160a01b0384163b156117455760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611bf99089908990889088908890600401612a0d565b6020604051808303816000875af1925050508015611c34575060408051601f3d908101601f19168201909252611c3191810190612a6b565b60015b611ce057611c40612a88565b806308c379a003611c795750611c54612aa4565b80611c5f5750611c7b565b8060405162461bcd60e51b81526004016106b89190612167565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016106b8565b6001600160e01b0319811663bc197c8160e01b146118b95760405162461bcd60e51b81526004016106b890612b2d565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611d4a57611d4a612773565b602090810291909101015292915050565b6001600160a01b0384163b156117455760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611d9f9089908990889088908890600401612b75565b6020604051808303816000875af1925050508015611dda575060408051601f3d908101601f19168201909252611dd791810190612a6b565b60015b611de657611c40612a88565b6001600160e01b0319811663f23a6e6160e01b146118b95760405162461bcd60e51b81526004016106b890612b2d565b6001600160a01b038516611e9d5760005b8351811015611e9b57828181518110611e4257611e42612773565b602002602001015160036000868481518110611e6057611e60612773565b602002602001015181526020019081526020016000206000828254611e8591906127d4565b90915550611e949050816127bb565b9050611e27565b505b6001600160a01b0384166117455760005b83518110156118b9576000848281518110611ecb57611ecb612773565b602002602001015190506000848381518110611ee957611ee9612773565b6020026020010151905060006003600084815260200190815260200160002054905081811015611f6c5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b60648201526084016106b8565b60009283526003602052604090922091039055611f88816127bb565b9050611eae565b80356001600160a01b0381168114611fa657600080fd5b919050565b60008060408385031215611fbe57600080fd5b611fc783611f8f565b946020939093013593505050565b6001600160e01b03198116811461074b57600080fd5b600060208284031215611ffd57600080fd5b813561200881611fd5565b9392505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b038111828210171561204a5761204a61200f565b6040525050565b60006001600160401b0383111561206a5761206a61200f565b604051612081601f8501601f191660200182612025565b80915083815284848401111561209657600080fd5b83836020830137600060208583010152509392505050565b6000602082840312156120c057600080fd5b81356001600160401b038111156120d657600080fd5b8201601f810184136120e757600080fd5b6120f684823560208401612051565b949350505050565b60006020828403121561211057600080fd5b5035919050565b60005b8381101561213257818101518382015260200161211a565b50506000910152565b60008151808452612153816020860160208601612117565b601f01601f19169290920160200192915050565b602081526000612008602083018461213b565b60006001600160401b038211156121935761219361200f565b5060051b60200190565b600082601f8301126121ae57600080fd5b813560206121bb8261217a565b6040516121c88282612025565b83815260059390931b85018201928281019150868411156121e857600080fd5b8286015b8481101561220357803583529183019183016121ec565b509695505050505050565b600082601f83011261221f57600080fd5b61200883833560208501612051565b600080600080600060a0868803121561224657600080fd5b61224f86611f8f565b945061225d60208701611f8f565b935060408601356001600160401b038082111561227957600080fd5b61228589838a0161219d565b9450606088013591508082111561229b57600080fd5b6122a789838a0161219d565b935060808801359150808211156122bd57600080fd5b506122ca8882890161220e565b9150509295509295909350565b80358015158114611fa657600080fd5b6000602082840312156122f957600080fd5b612008826122d7565b600082601f83011261231357600080fd5b813560206123208261217a565b60405161232d8282612025565b83815260059390931b850182019282810191508684111561234d57600080fd5b8286015b848110156122035761236281611f8f565b8352918301918301612351565b60008060006060848603121561238457600080fd5b83356001600160401b038082111561239b57600080fd5b6123a787838801612302565b94506020915081860135818111156123be57600080fd5b6123ca8882890161219d565b9450506040860135818111156123df57600080fd5b8601601f810188136123f057600080fd5b80356123fb8161217a565b6040516124088282612025565b82815260059290921b830185019185810191508a83111561242857600080fd5b8584015b83811015612460578035868111156124445760008081fd5b6124528d898389010161220e565b84525091860191860161242c565b508096505050505050509250925092565b6000806040838503121561248457600080fd5b82356001600160401b038082111561249b57600080fd5b6124a786838701612302565b935060208501359150808211156124bd57600080fd5b506124ca8582860161219d565b9150509250929050565b600081518084526020808501945080840160005b83811015612504578151875295820195908201906001016124e8565b509495945050505050565b60208152600061200860208301846124d4565b6000806040838503121561253557600080fd5b82356001600160401b0381111561254b57600080fd5b61255785828601612302565b925050612566602084016122d7565b90509250929050565b60008060008060008060008060006101208a8c03121561258e57600080fd5b505087359960208901359950604089013598606081013598506080810135975060a0810135965060c0810135955060e08101359450610100013592509050565b600080604083850312156125e157600080fd5b6125ea83611f8f565b9150612566602084016122d7565b6000806040838503121561260b57600080fd5b8235915061256660208401611f8f565b6000806040838503121561262e57600080fd5b50508035926020909101359150565b6000806040838503121561265057600080fd5b61265983611f8f565b915061256660208401611f8f565b600080600080600060a0868803121561267f57600080fd5b61268886611f8f565b945061269660208701611f8f565b9350604086013592506060860135915060808601356001600160401b038111156126bf57600080fd5b6122ca8882890161220e565b6000602082840312156126dd57600080fd5b61200882611f8f565b600083516126f8818460208801612117565b83519083019061270c818360208801612117565b64173539b7b760d91b9101908152600501949350505050565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000825161279b818460208701612117565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b6000600182016127cd576127cd6127a5565b5060010190565b808201808211156106e4576106e46127a5565b818103818111156106e4576106e46127a5565b80820281158282048414176106e4576106e46127a5565b600181811c9082168061282557607f821691505b60208210810361284557634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610b2657600081815260208120601f850160051c810160208610156128725750805b601f850160051c820191505b818110156117455782815560010161287e565b81516001600160401b038111156128aa576128aa61200f565b6128be816128b88454612811565b8461284b565b602080601f8311600181146128f357600084156128db5750858301515b600019600386901b1c1916600185901b178555611745565b600085815260208120601f198616915b8281101561292257888601518255948401946001909101908401612903565b50858210156129405787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006129f260408301856124d4565b8281036020840152612a0481856124d4565b95945050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612a39908301866124d4565b8281036060840152612a4b81866124d4565b90508281036080840152612a5f818561213b565b98975050505050505050565b600060208284031215612a7d57600080fd5b815161200881611fd5565b600060033d1115612aa15760046000803e5060005160e01c5b90565b600060443d1015612ab25790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715612ae157505050505090565b8285019150815181811115612af95750505050505090565b843d8701016020828501011115612b135750505050505090565b612b2260208286010187612025565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612baf9083018461213b565b97965050505050505056fea26469706673582212204df96e5b707fc8a481813fba4377808001110241eae65b3358e302ae941d6f5a64736f6c63430008110033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001968747470733a2f2f7374617469632e3732312e67672f6a762f00000000000000

-----Decoded View---------------
Arg [0] : _uri (string): https://static.721.gg/jv/

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [2] : 68747470733a2f2f7374617469632e3732312e67672f6a762f00000000000000


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.