ETH Price: $3,535.38 (+0.55%)
Gas: 4 Gwei

Qmall NFT (QNFT)
 

Overview

TokenID

2013084822199869842753009861829673320791...

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
TokenID: 2013084822199869842753009861829673320791...
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:
ERC1155Qmall

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 32 : ERC1155Qmall.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2 <0.8.0;
pragma abicoder v2;

import "./ERC1155Base.sol";

contract ERC1155Qmall is ERC1155Base {
    function __ERC1155Qmall_init(string memory _name, string memory _symbol, string memory baseURI, string memory contractURI) external initializer {
        __Ownable_init_unchained();
        __ERC1155Lazy_init_unchained();
        __ERC165_init_unchained();
        __Context_init_unchained();
        __Mint1155Validator_init_unchained();
        __ERC1155_init_unchained("");
        __HasContractURI_init_unchained(contractURI);
        __ERC1155Burnable_init_unchained();
        __RoyaltiesV2Upgradeable_init_unchained();
        __ERC1155Base_init_unchained(_name, _symbol);
        _setBaseURI(baseURI);
    }
    uint256[50] private __gap;
}

File 2 of 32 : ERC1271Validator.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

import "./ERC1271.sol";
import "@openzeppelin/contracts-upgradeable/drafts/EIP712Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/cryptography/ECDSAUpgradeable.sol";

abstract contract ERC1271Validator is EIP712Upgradeable {
    using AddressUpgradeable for address;
    using ECDSAUpgradeable for bytes32;

    string constant SIGNATURE_ERROR = "signature verification error";
    bytes4 constant internal MAGICVALUE = 0x1626ba7e;

    function validate1271(address signer, bytes32 structHash, bytes memory signature) internal view {
        bytes32 hash = _hashTypedDataV4(structHash);
        if (signer.isContract()) {
            require(
                ERC1271(signer).isValidSignature(hash, signature) == MAGICVALUE,
                SIGNATURE_ERROR
            );
        } else {
            require(
                hash.recover(signature) == signer,
                SIGNATURE_ERROR
            );
        }
    }
    uint256[50] private __gap;
}

File 3 of 32 : ERC1271.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

abstract contract ERC1271 {
    bytes4 constant public ERC1271_INTERFACE_ID = 0xfb855dc9; // this.isValidSignature.selector

    bytes4 constant public ERC1271_RETURN_VALID_SIGNATURE =   0x1626ba7e;
    bytes4 constant public ERC1271_RETURN_INVALID_SIGNATURE = 0x00000000;

    /**
    * @dev Function must be implemented by deriving contract
    * @param _hash Arbitrary length data signed on the behalf of address(this)
    * @param _signature Signature byte array associated with _data
    * @return A bytes4 magic value 0x1626ba7e if the signature check passes, 0x00000000 if not
    *
    * MUST NOT modify state (using STATICCALL for solc < 0.5, view modifier for solc > 0.5)
    * MUST allow external calls
    */
    function isValidSignature(bytes32 _hash, bytes memory _signature) public virtual view returns (bytes4);

    function returnIsValidSignatureMagicNumber(bool isValid) internal pure returns (bytes4) {
        return isValid ? ERC1271_RETURN_VALID_SIGNATURE : ERC1271_RETURN_INVALID_SIGNATURE;
    }
}

File 4 of 32 : Mint1155Validator.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

import "../erc-1271/ERC1271Validator.sol";
import "@rarible/lazy-mint/contracts/erc-1155/LibERC1155LazyMint.sol";

contract Mint1155Validator is ERC1271Validator {
    function __Mint1155Validator_init_unchained() internal initializer {
        __EIP712_init_unchained("Mint1155", "1");
    }

    function validate(address sender, LibERC1155LazyMint.Mint1155Data memory data, uint index) internal view {
        address creator = data.creators[index].account;
        if (sender != creator) {
            validate1271(data.creators[index].account, LibERC1155LazyMint.hash(data), data.signatures[index]);
        }
    }
    uint256[50] private __gap;
}

File 5 of 32 : ERC1155Lazy.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;
pragma abicoder v2;

import "@openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155Upgradeable.sol";
import "@rarible/royalties/contracts/impl/RoyaltiesV2Impl.sol";
import "@rarible/royalties-upgradeable/contracts/RoyaltiesV2Upgradeable.sol";
import "@rarible/lazy-mint/contracts/erc-1155/IERC1155LazyMint.sol";
import "./Mint1155Validator.sol";
import "./ERC1155BaseURI.sol";

abstract contract ERC1155Lazy is IERC1155LazyMint, ERC1155BaseURI, Mint1155Validator, RoyaltiesV2Upgradeable, RoyaltiesV2Impl {
    using SafeMathUpgradeable for uint;

    event Supply(
        uint256 tokenId,
        uint256 value
    );
    event Creators(
        uint256 tokenId,
        LibPart.Part[] creators
    );

    mapping (uint256 => LibPart.Part[]) public creators;
    mapping (uint => uint) private supply;
    mapping (uint => uint) private minted;

    function __ERC1155Lazy_init_unchained() internal initializer {
        _registerInterface(0x6db15a0f);
    }

    function mintAndTransfer(LibERC1155LazyMint.Mint1155Data memory data, address to, uint256 _amount) public override virtual {
        address minter = address(data.tokenId >> 96);
        address sender = _msgSender();

        require(minter == data.creators[0].account, "tokenId incorrect");
        require(data.creators.length == data.signatures.length);
        require(minter == sender || isApprovedForAll(minter, sender), "ERC1155: transfer caller is not approved");

        require(data.supply > 0, "supply incorrect");
        require(_amount > 0, "amount incorrect");
        require(bytes(data.uri).length > 0, "uri should be set");

        if (supply[data.tokenId] == 0) {
            for (uint i = 0; i < data.creators.length; i++) {
                validate(sender, data, i);
            }

            _saveSupply(data.tokenId, data.supply);
            _saveFees(data.tokenId, data.royalties);
            _saveCreators(data.tokenId, data.creators);
            _setTokenURI(data.tokenId, data.uri);
        }

        _mint(to, data.tokenId, _amount, "");
    }

    function _mint(address account, uint256 id, uint256 amount, bytes memory data) internal virtual override {
        uint newMinted = amount.add(minted[id]);
        require(newMinted <= supply[id], "more than supply");
        minted[id] = newMinted;
        super._mint(account, id, amount, data);
    }

    function _saveSupply(uint tokenId, uint _supply) internal {
        require(supply[tokenId] == 0);
        supply[tokenId] = _supply;
        emit Supply(tokenId, _supply);
    }

    function _saveCreators(uint tokenId, LibPart.Part[] memory _creators) internal {
        LibPart.Part[] storage creators = creators[tokenId];
        for(uint i=0; i < _creators.length; i++) {
            creators.push(_creators[i]);
        }
        emit Creators(tokenId, _creators);
    }

    function getCreators(uint256 _id) external view returns (LibPart.Part[] memory) {
        return creators[_id];
    }

    function encode(LibERC1155LazyMint.Mint1155Data memory data) external view returns (bytes memory) {
        return abi.encode(address(this), data);
    }
    
    uint256[50] private __gap;
}

File 6 of 32 : ERC1155DefaultApproval.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

import "@openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155Upgradeable.sol";

abstract contract ERC1155DefaultApproval is ERC1155Upgradeable {
    mapping(address => bool) private defaultApprovals;

    event DefaultApproval(address indexed operator, bool hasApproval);

    function _setDefaultApproval(address operator, bool hasApproval) internal {
        defaultApprovals[operator] = hasApproval;
        emit DefaultApproval(operator, hasApproval);
    }

    function isApprovedForAll(address _owner, address _operator) public virtual override view returns (bool) {
        return defaultApprovals[_operator] || super.isApprovedForAll(_owner, _operator);
    }
    uint256[50] private __gap;
}

File 7 of 32 : ERC1155BaseURI.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155Upgradeable.sol";

contract ERC1155BaseURI is ERC1155Upgradeable {
    using StringsUpgradeable for uint;

    // Optional mapping for token URIs
    mapping (uint256 => string) private _tokenURIs;

    // Base URI
    string private _baseURI;

    /**
    * @dev Returns the base URI set via {_setBaseURI}. This will be
    * automatically added as a prefix in {tokenURI} to each token's URI, or
    * to the token ID if no specific URI is set for that token ID.
    */
    function baseURI() public view virtual returns (string memory) {
        return _baseURI;
    }

    function uri(uint id) external view override virtual returns (string memory) {
        return _tokenURI(id);
    }

    function _tokenURI(uint256 tokenId) internal view virtual returns (string memory) {
        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }
        // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI.
        return string(abi.encodePacked(base, tokenId.toString()));
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _uri) internal virtual {
        _tokenURIs[tokenId] = _uri;
        emit URI(_tokenURI(tokenId), tokenId);
    }

    /**
     * @dev Internal function to set the base URI for all token IDs. It is
     * automatically added as a prefix to the value returned in {tokenURI},
     * or to the token ID if {tokenURI} is empty.
     */
    function _setBaseURI(string memory baseURI_) internal virtual {
        _baseURI = baseURI_;
    }

    function _clearTokenURI(uint256 tokenId) internal {
        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
    uint256[50] private __gap;
}

File 8 of 32 : ERC1155Base.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;
pragma abicoder v2;

import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155BurnableUpgradeable.sol";
import "./ERC1155DefaultApproval.sol";
import "./ERC1155Lazy.sol";
import "../HasContractURI.sol";

abstract contract ERC1155Base is OwnableUpgradeable, ERC1155DefaultApproval, ERC1155BurnableUpgradeable, ERC1155Lazy, HasContractURI {

    string public name;
    string public symbol;

    function setBaseURI(string memory baseURI_) external onlyOwner {
        _setBaseURI(baseURI_);
    }

    function setTokenURI(uint256 tokenId, string memory _uri) external onlyOwner {
        _setTokenURI(tokenId, _uri);
    }

    function setDefaultApproval(address operator, bool hasApproval) external onlyOwner {
        _setDefaultApproval(operator, hasApproval);
    }

    function isApprovedForAll(address _owner, address _operator) public override(ERC1155Upgradeable, ERC1155DefaultApproval, IERC1155Upgradeable) view returns (bool) {
        return ERC1155DefaultApproval.isApprovedForAll(_owner, _operator);
    }

    function _mint(address account, uint256 id, uint256 amount, bytes memory data) internal virtual override(ERC1155Upgradeable, ERC1155Lazy) {
        ERC1155Lazy._mint(account, id, amount, data);
    }

    function __ERC1155Base_init_unchained(string memory _name, string memory _symbol) internal initializer {
        name = _name;
        symbol = _symbol;
    }

    function uri(uint id) external view override(ERC1155BaseURI, ERC1155Upgradeable) virtual returns (string memory) {
        return _tokenURI(id);
    }
    uint256[50] private __gap;
}

File 9 of 32 : HasContractURI.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

import "@openzeppelin/contracts-upgradeable/introspection/ERC165Upgradeable.sol";

abstract contract HasContractURI is ERC165Upgradeable {

    string public contractURI;

    /*
     * bytes4(keccak256('contractURI()')) == 0xe8a3d485
     */
    bytes4 private constant _INTERFACE_ID_CONTRACT_URI = 0xe8a3d485;

    function __HasContractURI_init_unchained(string memory _contractURI) internal initializer {
        contractURI = _contractURI;
        _registerInterface(_INTERFACE_ID_CONTRACT_URI);
    }

    /**
     * @dev Internal function to set the contract URI
     * @param _contractURI string URI prefix to assign
     */
    function _setContractURI(string memory _contractURI) internal {
        contractURI = _contractURI;
    }

    uint256[49] private __gap;
}

File 10 of 32 : RoyaltiesV2Impl.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;
pragma abicoder v2;

import "./AbstractRoyalties.sol";
import "../RoyaltiesV2.sol";

contract RoyaltiesV2Impl is AbstractRoyalties, RoyaltiesV2 {
    function getRoyalties(uint256 id) override external view returns (LibPart.Part[] memory) {
        return fees[id];
    }

    function _onRoyaltiesSet(uint256 _id, LibPart.Part[] memory _fees) override internal {
        emit RoyaltiesSet(_id, _fees);
    }
}

File 11 of 32 : AbstractRoyalties.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

import "../LibPart.sol";

abstract contract AbstractRoyalties {
    mapping (uint256 => LibPart.Part[]) public fees;

    function _saveFees(uint256 _id, LibPart.Part[] memory _fees) internal {
        for (uint i = 0; i < _fees.length; i++) {
            require(_fees[i].account != address(0x0), "Recipient should be present");
            require(_fees[i].value != 0, "Fee value should be positive");
            fees[_id].push(_fees[i]);
        }
    }

    function _updateAccount(uint256 _id, address _from, address _to) internal {
        uint length = fees[_id].length;
        for(uint i = 0; i < length; i++) {
            if (fees[_id][i].account == _from) {
                fees[_id][i].account = address(uint160(_to));
            }
        }
    }

    function _onRoyaltiesSet(uint256 _id, LibPart.Part[] memory _fees) virtual internal;
}

File 12 of 32 : RoyaltiesV2.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;
pragma abicoder v2;

import "./LibPart.sol";

interface RoyaltiesV2 {
    event RoyaltiesSet(uint256 tokenId, LibPart.Part[] fees);

    function getRoyalties(uint256 id) external view returns (LibPart.Part[] memory);
}

File 13 of 32 : LibRoyaltiesV2.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

library LibRoyaltiesV2 {
    /*
     * bytes4(keccak256('getRoyalties(LibAsset.AssetType)')) == 0x44c74bcc
     */
    bytes4 constant _INTERFACE_ID_ROYALTIES = 0x44c74bcc;
}

File 14 of 32 : LibPart.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

library LibPart {
    bytes32 public constant TYPE_HASH = keccak256("Part(address account,uint96 value)");

    struct Part {
        address payable account;
        uint96 value;
    }

    function hash(Part memory part) internal pure returns (bytes32) {
        return keccak256(abi.encode(TYPE_HASH, part.account, part.value));
    }
}

File 15 of 32 : RoyaltiesV2Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;
pragma abicoder v2;

import "@openzeppelin/contracts-upgradeable/introspection/ERC165Upgradeable.sol";
import "@rarible/royalties/contracts/LibRoyaltiesV2.sol";
import "@rarible/royalties/contracts/RoyaltiesV2.sol";

abstract contract RoyaltiesV2Upgradeable is ERC165Upgradeable, RoyaltiesV2 {
    function __RoyaltiesV2Upgradeable_init_unchained() internal initializer {
        _registerInterface(LibRoyaltiesV2._INTERFACE_ID_ROYALTIES);
    }
}

File 16 of 32 : LibERC1155LazyMint.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

import "@rarible/royalties/contracts/LibPart.sol";

library LibERC1155LazyMint {
    bytes4 constant public ERC1155_LAZY_ASSET_CLASS = bytes4(keccak256("ERC1155_LAZY"));

    struct Mint1155Data {
        uint tokenId;
        string uri;
        uint supply;
        LibPart.Part[] creators;
        LibPart.Part[] royalties;
        bytes[] signatures;
    }

    bytes32 public constant MINT_AND_TRANSFER_TYPEHASH = keccak256("Mint1155(uint256 tokenId,uint256 supply,string tokenURI,Part[] creators,Part[] royalties)Part(address account,uint96 value)");

    function hash(Mint1155Data memory data) internal pure returns (bytes32) {
        bytes32[] memory royaltiesBytes = new bytes32[](data.royalties.length);
        for (uint i = 0; i < data.royalties.length; i++) {
            royaltiesBytes[i] = LibPart.hash(data.royalties[i]);
        }
        bytes32[] memory creatorsBytes = new bytes32[](data.creators.length);
        for (uint i = 0; i < data.creators.length; i++) {
            creatorsBytes[i] = LibPart.hash(data.creators[i]);
        }
        return keccak256(abi.encode(
                MINT_AND_TRANSFER_TYPEHASH,
                data.tokenId,
                data.supply,
                keccak256(bytes(data.uri)),
                keccak256(abi.encodePacked(creatorsBytes)),
                keccak256(abi.encodePacked(royaltiesBytes))
            ));
    }
}

File 17 of 32 : IERC1155LazyMint.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;
pragma abicoder v2;

import "@openzeppelin/contracts-upgradeable/token/ERC1155/IERC1155Upgradeable.sol";
import "./LibERC1155LazyMint.sol";

interface IERC1155LazyMint is IERC1155Upgradeable {
    function mintAndTransfer(
        LibERC1155LazyMint.Mint1155Data memory data,
        address to,
        uint256 _amount
    ) external;
}

File 18 of 32 : StringsUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

File 19 of 32 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;
import "../proxy/Initializable.sol";

/*
 * @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 GSN 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 ContextUpgradeable is Initializable {
    function __Context_init() internal initializer {
        __Context_init_unchained();
    }

    function __Context_init_unchained() internal initializer {
    }
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
    uint256[50] private __gap;
}

File 20 of 32 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 21 of 32 : IERC1155Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

import "../../introspection/IERC165Upgradeable.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 IERC1155Upgradeable is IERC165Upgradeable {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

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

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

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

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

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

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

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

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

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

File 22 of 32 : IERC1155ReceiverUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../../introspection/IERC165Upgradeable.sol";

/**
 * _Available since v3.1._
 */
interface IERC1155ReceiverUpgradeable is IERC165Upgradeable {

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

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

File 23 of 32 : IERC1155MetadataURIUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

import "./IERC1155Upgradeable.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 IERC1155MetadataURIUpgradeable is IERC1155Upgradeable {
    /**
     * @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 24 of 32 : ERC1155Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC1155Upgradeable.sol";
import "./IERC1155MetadataURIUpgradeable.sol";
import "./IERC1155ReceiverUpgradeable.sol";
import "../../utils/ContextUpgradeable.sol";
import "../../introspection/ERC165Upgradeable.sol";
import "../../math/SafeMathUpgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../proxy/Initializable.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 ERC1155Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC1155Upgradeable, IERC1155MetadataURIUpgradeable {
    using SafeMathUpgradeable for uint256;
    using AddressUpgradeable 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;

    /*
     *     bytes4(keccak256('balanceOf(address,uint256)')) == 0x00fdd58e
     *     bytes4(keccak256('balanceOfBatch(address[],uint256[])')) == 0x4e1273f4
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,uint256,bytes)')) == 0xf242432a
     *     bytes4(keccak256('safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)')) == 0x2eb2c2d6
     *
     *     => 0x00fdd58e ^ 0x4e1273f4 ^ 0xa22cb465 ^
     *        0xe985e9c5 ^ 0xf242432a ^ 0x2eb2c2d6 == 0xd9b67a26
     */
    bytes4 private constant _INTERFACE_ID_ERC1155 = 0xd9b67a26;

    /*
     *     bytes4(keccak256('uri(uint256)')) == 0x0e89341c
     */
    bytes4 private constant _INTERFACE_ID_ERC1155_METADATA_URI = 0x0e89341c;

    /**
     * @dev See {_setURI}.
     */
    function __ERC1155_init(string memory uri_) internal initializer {
        __Context_init_unchained();
        __ERC165_init_unchained();
        __ERC1155_init_unchained(uri_);
    }

    function __ERC1155_init_unchained(string memory uri_) internal initializer {
        _setURI(uri_);

        // register the supported interfaces to conform to ERC1155 via ERC165
        _registerInterface(_INTERFACE_ID_ERC1155);

        // register the supported interfaces to conform to ERC1155MetadataURI via ERC165
        _registerInterface(_INTERFACE_ID_ERC1155_METADATA_URI);
    }

    /**
     * @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) external view virtual override returns (string memory) {
        return _uri;
    }

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

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

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

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

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(_msgSender() != operator, "ERC1155: setting approval status for self");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_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(to != address(0), "ERC1155: transfer to the zero address");
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        address operator = _msgSender();

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

        _balances[id][from] = _balances[id][from].sub(amount, "ERC1155: insufficient balance for transfer");
        _balances[id][to] = _balances[id][to].add(amount);

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

        _doSafeTransferAcceptanceCheck(operator, 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(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );

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

            _balances[id][from] = _balances[id][from].sub(
                amount,
                "ERC1155: insufficient balance for transfer"
            );
            _balances[id][to] = _balances[id][to].add(amount);
        }

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

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

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

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

        address operator = _msgSender();

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

        _balances[id][account] = _balances[id][account].add(amount);
        emit TransferSingle(operator, address(0), account, id, amount);

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

        _balances[id][account] = _balances[id][account].sub(
            amount,
            "ERC1155: burn amount exceeds balance"
        );

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

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

        address operator = _msgSender();

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

        for (uint i = 0; i < ids.length; i++) {
            _balances[ids[i]][account] = _balances[ids[i]][account].sub(
                amounts[i],
                "ERC1155: burn amount exceeds balance"
            );
        }

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

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

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    )
        private
    {
        if (to.isContract()) {
            try IERC1155ReceiverUpgradeable(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155ReceiverUpgradeable(to).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 IERC1155ReceiverUpgradeable(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (bytes4 response) {
                if (response != IERC1155ReceiverUpgradeable(to).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;
    }
    uint256[47] private __gap;
}

File 25 of 32 : ERC1155BurnableUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./ERC1155Upgradeable.sol";
import "../../proxy/Initializable.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155BurnableUpgradeable is Initializable, ERC1155Upgradeable {
    function __ERC1155Burnable_init() internal initializer {
        __Context_init_unchained();
        __ERC165_init_unchained();
        __ERC1155Burnable_init_unchained();
    }

    function __ERC1155Burnable_init_unchained() internal initializer {
    }
    function burn(address account, uint256 id, uint256 value) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burn(account, id, value);
    }

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

        _burnBatch(account, ids, values);
    }
    uint256[50] private __gap;
}

File 26 of 32 : Initializable.sol
// SPDX-License-Identifier: MIT

// solhint-disable-next-line compiler-version
pragma solidity >=0.4.24 <0.8.0;

import "../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {

    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /// @dev Returns true if and only if the function is running in the constructor
    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

File 27 of 32 : SafeMathUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMathUpgradeable {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 28 of 32 : IERC165Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 IERC165Upgradeable {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 29 of 32 : ERC165Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC165Upgradeable.sol";
import "../proxy/Initializable.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    function __ERC165_init() internal initializer {
        __ERC165_init_unchained();
    }

    function __ERC165_init_unchained() internal initializer {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
    uint256[49] private __gap;
}

File 30 of 32 : EIP712Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;
import "../proxy/Initializable.sol";

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

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    function __EIP712_init(string memory name, string memory version) internal initializer {
        __EIP712_init_unchained(name, version);
    }

    function __EIP712_init_unchained(string memory name, string memory version) internal initializer {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        return _buildDomainSeparator(_TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash());
    }

    function _buildDomainSeparator(bytes32 typeHash, bytes32 name, bytes32 version) private view returns (bytes32) {
        return keccak256(
            abi.encode(
                typeHash,
                name,
                version,
                _getChainId(),
                address(this)
            )
        );
    }

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

    function _getChainId() private view returns (uint256 chainId) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        // solhint-disable-next-line no-inline-assembly
        assembly {
            chainId := chainid()
        }
    }

    /**
     * @dev The hash of the name parameter for the EIP712 domain.
     *
     * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs
     * are a concern.
     */
    function _EIP712NameHash() internal virtual view returns (bytes32) {
        return _HASHED_NAME;
    }

    /**
     * @dev The hash of the version parameter for the EIP712 domain.
     *
     * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs
     * are a concern.
     */
    function _EIP712VersionHash() internal virtual view returns (bytes32) {
        return _HASHED_VERSION;
    }
    uint256[50] private __gap;
}

File 31 of 32 : ECDSAUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSAUpgradeable {
    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        // Check the signature length
        if (signature.length != 65) {
            revert("ECDSA: invalid signature length");
        }

        // Divide the signature in r, s and v variables
        bytes32 r;
        bytes32 s;
        uint8 v;

        // ecrecover takes the signature parameters, and the only way to get them
        // currently is to use assembly.
        // solhint-disable-next-line no-inline-assembly
        assembly {
            r := mload(add(signature, 0x20))
            s := mload(add(signature, 0x40))
            v := byte(0, mload(add(signature, 0x60)))
        }

        return recover(hash, v, r, s);
    }

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

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid signature");

        return signer;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * replicates the behavior of the
     * https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign[`eth_sign`]
     * JSON-RPC method.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }
}

File 32 of 32 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal initializer {
        __Context_init_unchained();
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal initializer {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
    uint256[49] private __gap;
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"indexed":false,"internalType":"struct LibPart.Part[]","name":"creators","type":"tuple[]"}],"name":"Creators","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"hasApproval","type":"bool"}],"name":"DefaultApproval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"indexed":false,"internalType":"struct LibPart.Part[]","name":"fees","type":"tuple[]"}],"name":"RoyaltiesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Supply","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":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"string","name":"contractURI","type":"string"}],"name":"__ERC1155Qmall_init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"creators","outputs":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"uint256","name":"supply","type":"uint256"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"creators","type":"tuple[]"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"royalties","type":"tuple[]"},{"internalType":"bytes[]","name":"signatures","type":"bytes[]"}],"internalType":"struct LibERC1155LazyMint.Mint1155Data","name":"data","type":"tuple"}],"name":"encode","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"fees","outputs":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getCreators","outputs":[{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getRoyalties","outputs":[{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"uint256","name":"supply","type":"uint256"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"creators","type":"tuple[]"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"royalties","type":"tuple[]"},{"internalType":"bytes[]","name":"signatures","type":"bytes[]"}],"internalType":"struct LibERC1155LazyMint.Mint1155Data","name":"data","type":"tuple"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintAndTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"hasApproval","type":"bool"}],"name":"setDefaultApproval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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"}]

608060405234801561001057600080fd5b50614b7f806100206000396000f3fe608060405234801561001057600080fd5b50600436106101b85760003560e01c80636c0360eb116100f9578063a22cb46511610097578063e985e9c511610071578063e985e9c514610397578063f242432a146103aa578063f2fde38b146103bd578063f5298aca146103d0576101b8565b8063a22cb46514610369578063bb3bafd61461037c578063e8a3d4851461038f576101b8565b80638da5cb5b116100d35780638da5cb5b1461032657806395d89b411461033b57806398d0b4fb146103435780639d0eefaa14610356576101b8565b80636c0360eb146102f6578063715018a6146102fe578063891be97414610306576101b8565b8063162094c4116101665780634e1273f4116101405780634e1273f41461028f57806355f804b3146102af5780636308f1cd146102c25780636b20c454146102e3576101b8565b8063162094c41461025657806318054c37146102695780632eb2c2d61461027c576101b8565b80630e89341c116101975780630e89341c1461021b5780630eaead671461022e57806310c0bc0714610243576101b8565b8062fdd58e146101bd57806301ffc9a7146101e657806306fdde0314610206575b600080fd5b6101d06101cb366004614047565b6103e3565b6040516101dd919061474e565b60405180910390f35b6101f96101f4366004614166565b610452565b6040516101dd91906145c0565b61020e61048d565b6040516101dd91906145cb565b61020e610229366004614314565b61051c565b61024161023c3660046142bc565b61052d565b005b61020e610251366004614289565b6106fc565b61024161026436600461432c565b610727565b610241610277366004614016565b6107a9565b61024161028a366004613e92565b610827565b6102a261029d3660046140a6565b610b25565b6040516101dd919061457c565b6102416102bd3660046141a6565b610c11565b6102d56102d0366004614367565b610c91565b6040516101dd929190614443565b6102416102f1366004613fa3565b610cf1565b61020e610d6a565b610241610e02565b610319610314366004614314565b610ed8565b6040516101dd9190614569565b61032e610f7e565b6040516101dd919061442f565b61020e610f8d565b6102d5610351366004614367565b610fe9565b6102416103643660046141e1565b611006565b610241610377366004614016565b611117565b61031961038a366004614314565b611206565b61020e611297565b6101f96103a5366004613e5a565b6112f3565b6102416103b8366004613f3c565b611306565b6102416103cb366004613e3e565b6114d1565b6102416103de366004614072565b6115fe565b60006001600160a01b03831661042a5760405162461bcd60e51b815260040180806020018281038252602b8152602001806148fb602b913960400191505060405180910390fd5b5060009081526097602090815260408083206001600160a01b03949094168352929052205490565b7fffffffff00000000000000000000000000000000000000000000000000000000811660009081526065602052604090205460ff165b919050565b610262805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105145780601f106104e957610100808354040283529160200191610514565b820191906000526020600020905b8154815290600101906020018083116104f757829003601f168201915b505050505081565b606061052782611672565b92915050565b825160601c600061053c6118af565b9050846060015160008151811061054f57fe5b6020026020010151600001516001600160a01b0316826001600160a01b0316146105945760405162461bcd60e51b815260040161058b90614615565b60405180910390fd5b8460a0015151856060015151146105aa57600080fd5b806001600160a01b0316826001600160a01b031614806105cf57506105cf82826112f3565b6105eb5760405162461bcd60e51b815260040161058b90614683565b600085604001511161060f5760405162461bcd60e51b815260040161058b906145de565b6000831161062f5760405162461bcd60e51b815260040161058b9061464c565b6000856020015151116106545760405162461bcd60e51b815260040161058b90614717565b845160009081526101fc60205260409020546106d65760005b85606001515181101561068d576106858287836118b3565b60010161066d565b506106a085600001518660400151611937565b6106b2856000015186608001516119a1565b6106c485600001518660600151611b4f565b6106d685600001518660200151611c40565b6106f58486600001518560405180602001604052806000815250611d04565b5050505050565b6060308260405160200161071192919061446a565b6040516020818303038152906040529050919050565b61072f6118af565b6001600160a01b0316610740610f7e565b6001600160a01b03161461079b576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6107a58282611c40565b5050565b6107b16118af565b6001600160a01b03166107c2610f7e565b6001600160a01b03161461081d576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6107a58282611d10565b81518351146108675760405162461bcd60e51b8152600401808060200182810382526028815260200180614b016028913960400191505060405180910390fd5b6001600160a01b0384166108ac5760405162461bcd60e51b81526004018080602001828103825260258152602001806149bb6025913960400191505060405180910390fd5b6108b46118af565b6001600160a01b0316856001600160a01b031614806108da57506108da856103a56118af565b6109155760405162461bcd60e51b81526004018080602001828103825260328152602001806149e06032913960400191505060405180910390fd5b600061091f6118af565b905061092f818787878787610b1d565b60005b8451811015610a3557600085828151811061094957fe5b60200260200101519050600085838151811061096157fe5b602002602001015190506109ce816040518060600160405280602a8152602001614a85602a91396097600086815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002054611d709092919063ffffffff16565b60008381526097602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610a059082611e07565b60009283526097602090815260408085206001600160a01b038c1686529091529092209190915550600101610932565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610abb578181015183820152602001610aa3565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610afa578181015183820152602001610ae2565b5050505090500194505050505060405180910390a4610b1d818787878787611e61565b505050505050565b60608151835114610b675760405162461bcd60e51b8152600401808060200182810382526029815260200180614ad86029913960400191505060405180910390fd5b6000835167ffffffffffffffff81118015610b8157600080fd5b50604051908082528060200260200182016040528015610bab578160200160208202803683370190505b50905060005b8451811015610c0957610bea858281518110610bc957fe5b6020026020010151858381518110610bdd57fe5b60200260200101516103e3565b828281518110610bf657fe5b6020908102919091010152600101610bb1565b509392505050565b610c196118af565b6001600160a01b0316610c2a610f7e565b6001600160a01b031614610c85576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610c8e81612111565b50565b6101fa6020528160005260406000208181548110610cae57600080fd5b6000918252602090912001546001600160a01b03811692507401000000000000000000000000000000000000000090046bffffffffffffffffffffffff16905082565b610cf96118af565b6001600160a01b0316836001600160a01b03161480610d1f5750610d1f836103a56118af565b610d5a5760405162461bcd60e51b81526004018080602001828103825260298152602001806149706029913960400191505060405180910390fd5b610d65838383612125565b505050565b61012f8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610df75780601f10610dcc57610100808354040283529160200191610df7565b820191906000526020600020905b815481529060010190602001808311610dda57829003601f168201915b505050505090505b90565b610e0a6118af565b6001600160a01b0316610e1b610f7e565b6001600160a01b031614610e76576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60606101fb6000838152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015610f7357600084815260209081902060408051808201909152908401546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1681830152825260019092019101610f0e565b505050509050919050565b6033546001600160a01b031690565b610263805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105145780601f106104e957610100808354040283529160200191610514565b6101fb6020528160005260406000208181548110610cae57600080fd5b600054610100900460ff168061101f575061101f612393565b8061102d575060005460ff16155b6110685760405162461bcd60e51b815260040180806020018281038252602e815260200180614a12602e913960400191505060405180910390fd5b600054610100900460ff16158015611093576000805460ff1961ff0019909116610100171660011790555b61109b6123a4565b6110a36124b5565b6110ab61257f565b6110b3612635565b6110bb6126d5565b6110d3604051806020016040528060008152506127d6565b6110dc826128d3565b6110e4612635565b6110ec61299e565b6110f68585612a54565b6110ff83612111565b80156106f5576000805461ff00191690555050505050565b816001600160a01b03166111296118af565b6001600160a01b0316141561116f5760405162461bcd60e51b8152600401808060200182810382526029815260200180614aaf6029913960400191505060405180910390fd5b806098600061117c6118af565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556111c06118af565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b60008181526101fa60209081526040808320805482518185028101850190935280835260609492939192909184018215610f7357600084815260209081902060408051808201909152908401546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1681830152825260019092019101610f0e565b610230805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105145780601f106104e957610100808354040283529160200191610514565b60006112ff8383612b21565b9392505050565b6001600160a01b03841661134b5760405162461bcd60e51b81526004018080602001828103825260258152602001806149bb6025913960400191505060405180910390fd5b6113536118af565b6001600160a01b0316856001600160a01b031614806113795750611379856103a56118af565b6113b45760405162461bcd60e51b81526004018080602001828103825260298152602001806149706029913960400191505060405180910390fd5b60006113be6118af565b90506113de8187876113cf88612b4d565b6113d888612b4d565b87610b1d565b611425836040518060600160405280602a8152602001614a85602a913960008781526097602090815260408083206001600160a01b038d1684529091529020549190611d70565b60008581526097602090815260408083206001600160a01b038b8116855292528083209390935587168152205461145c9084611e07565b60008581526097602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610b1d818787878787612b92565b6114d96118af565b6001600160a01b03166114ea610f7e565b6001600160a01b031614611545576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661158a5760405162461bcd60e51b81526004018080602001828103825260268152602001806149266026913960400191505060405180910390fd5b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6116066118af565b6001600160a01b0316836001600160a01b0316148061162c575061162c836103a56118af565b6116675760405162461bcd60e51b81526004018080602001828103825260298152602001806149706029913960400191505060405180910390fd5b610d65838383612d34565b600081815261012e6020908152604080832080548251601f60026000196101006001861615020190931692909204918201859004850281018501909352808352606094938301828280156117075780601f106116dc57610100808354040283529160200191611707565b820191906000526020600020905b8154815290600101906020018083116116ea57829003601f168201915b505050505090506000611718610d6a565b905080516000141561172c57509050610488565b8151156117ed5780826040516020018083805190602001908083835b602083106117675780518252601f199092019160209182019101611748565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b602083106117af5780518252601f199092019160209182019101611790565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405292505050610488565b806117f785612e67565b6040516020018083805190602001908083835b602083106118295780518252601f19909201916020918201910161180a565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b602083106118715780518252601f199092019160209182019101611852565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405292505050919050565b3390565b6000826060015182815181106118c557fe5b6020026020010151600001519050806001600160a01b0316846001600160a01b03161461193157611931836060015183815181106118ff57fe5b60200260200101516000015161191485612f76565b8560a00151858151811061192457fe5b60200260200101516131cb565b50505050565b60008281526101fc60205260409020541561195157600080fd5b60008281526101fc602052604090819020829055517f5e2aa66efd74cce82b21852e317e5490d9ecc9e6bb953ae24d90851258cc2f5c906119959084908490614770565b60405180910390a15050565b60005b8151811015610d655760006001600160a01b03168282815181106119c457fe5b6020026020010151600001516001600160a01b03161415611a2c576040805162461bcd60e51b815260206004820152601b60248201527f526563697069656e742073686f756c642062652070726573656e740000000000604482015290519081900360640190fd5b818181518110611a3857fe5b6020026020010151602001516bffffffffffffffffffffffff1660001415611aa7576040805162461bcd60e51b815260206004820152601c60248201527f4665652076616c75652073686f756c6420626520706f73697469766500000000604482015290519081900360640190fd5b60008381526101fa602052604090208251839083908110611ac457fe5b60209081029190910181015182546001818101855560009485529383902082519101805492909301516bffffffffffffffffffffffff1674010000000000000000000000000000000000000000026001600160a01b039182167fffffffffffffffffffffffff00000000000000000000000000000000000000009093169290921716179055016119a4565b60008281526101fb60205260408120905b8251811015611c015781838281518110611b7657fe5b60209081029190910181015182546001818101855560009485529383902082519101805492909301516bffffffffffffffffffffffff1674010000000000000000000000000000000000000000026001600160a01b039182167fffffffffffffffffffffffff0000000000000000000000000000000000000000909316929092171617905501611b60565b507f841ffb90d4cabdd1f16034f3fa831d79060febbb8167bdd54a49269365bdf78f8383604051611c33929190614757565b60405180910390a1505050565b600082815261012e602090815260409091208251611c6092840190613ae8565b50817f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b611c8c84611672565b6040805160208082528351818301528351919283929083019185019080838360005b83811015611cc6578181015183820152602001611cae565b50505050905090810190601f168015611cf35780820380516001836020036101000a031916815260200191505b509250505060405180910390a25050565b61193184848484613434565b6001600160a01b038216600081815260c96020908152604091829020805460ff1916851515908117909155825190815291517f270dbb8ba4292910ae92862466486be25c355c837270a3d8824b36a8bc7c653b9281900390910190a25050565b60008184841115611dff5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611dc4578181015183820152602001611dac565b50505050905090810190601f168015611df15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156112ff576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b611e73846001600160a01b031661349f565b15610b1d57836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b83811015611f01578181015183820152602001611ee9565b50505050905001848103835286818151815260200191508051906020019060200280838360005b83811015611f40578181015183820152602001611f28565b50505050905001848103825285818151815260200191508051906020019080838360005b83811015611f7c578181015183820152602001611f64565b50505050905090810190601f168015611fa95780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b158015611fce57600080fd5b505af1925050508015611ff357506040513d6020811015611fee57600080fd5b505160015b61208857611fff6147c6565b8061200a5750612051565b60405162461bcd60e51b8152602060048201818152835160248401528351849391928392604401919085019080838360008315611dc4578181015183820152602001611dac565b60405162461bcd60e51b815260040180806020018281038252603481526020018061489f6034913960400191505060405180910390fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c8100000000000000000000000000000000000000000000000000000000146121085760405162461bcd60e51b81526004018080602001828103825260288152602001806148d36028913960400191505060405180910390fd5b50505050505050565b80516107a59061012f906020840190613ae8565b6001600160a01b03831661216a5760405162461bcd60e51b8152600401808060200182810382526023815260200180614a626023913960400191505060405180910390fd5b80518251146121aa5760405162461bcd60e51b8152600401808060200182810382526028815260200180614b016028913960400191505060405180910390fd5b60006121b46118af565b90506121d481856000868660405180602001604052806000815250610b1d565b60005b83518110156122b2576122698382815181106121ef57fe5b602002602001015160405180606001604052806024815260200161494c602491396097600088868151811061222057fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b0316815260200190815260200160002054611d709092919063ffffffff16565b6097600086848151811061227957fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a1682529092529020556001016121d7565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015612339578181015183820152602001612321565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015612378578181015183820152602001612360565b5050505090500194505050505060405180910390a450505050565b600061239e3061349f565b15905090565b600054610100900460ff16806123bd57506123bd612393565b806123cb575060005460ff16155b6124065760405162461bcd60e51b815260040180806020018281038252602e815260200180614a12602e913960400191505060405180910390fd5b600054610100900460ff16158015612431576000805460ff1961ff0019909116610100171660011790555b600061243b6118af565b603380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508015610c8e576000805461ff001916905550565b600054610100900460ff16806124ce57506124ce612393565b806124dc575060005460ff16155b6125175760405162461bcd60e51b815260040180806020018281038252602e815260200180614a12602e913960400191505060405180910390fd5b600054610100900460ff16158015612542576000805460ff1961ff0019909116610100171660011790555b61256b7f6db15a0f000000000000000000000000000000000000000000000000000000006134a5565b8015610c8e576000805461ff001916905550565b600054610100900460ff16806125985750612598612393565b806125a6575060005460ff16155b6125e15760405162461bcd60e51b815260040180806020018281038252602e815260200180614a12602e913960400191505060405180910390fd5b600054610100900460ff1615801561260c576000805460ff1961ff0019909116610100171660011790555b61256b7f01ffc9a7000000000000000000000000000000000000000000000000000000006134a5565b600054610100900460ff168061264e575061264e612393565b8061265c575060005460ff16155b6126975760405162461bcd60e51b815260040180806020018281038252602e815260200180614a12602e913960400191505060405180910390fd5b600054610100900460ff1615801561256b576000805460ff1961ff0019909116610100171660011790558015610c8e576000805461ff001916905550565b600054610100900460ff16806126ee57506126ee612393565b806126fc575060005460ff16155b6127375760405162461bcd60e51b815260040180806020018281038252602e815260200180614a12602e913960400191505060405180910390fd5b600054610100900460ff16158015612762576000805460ff1961ff0019909116610100171660011790555b61256b6040518060400160405280600881526020017f4d696e74313135350000000000000000000000000000000000000000000000008152506040518060400160405280600181526020017f3100000000000000000000000000000000000000000000000000000000000000815250613559565b600054610100900460ff16806127ef57506127ef612393565b806127fd575060005460ff16155b6128385760405162461bcd60e51b815260040180806020018281038252602e815260200180614a12602e913960400191505060405180910390fd5b600054610100900460ff16158015612863576000805460ff1961ff0019909116610100171660011790555b61286c8261361b565b6128957fd9b67a26000000000000000000000000000000000000000000000000000000006134a5565b6128be7f0e89341c000000000000000000000000000000000000000000000000000000006134a5565b80156107a5576000805461ff00191690555050565b600054610100900460ff16806128ec57506128ec612393565b806128fa575060005460ff16155b6129355760405162461bcd60e51b815260040180806020018281038252602e815260200180614a12602e913960400191505060405180910390fd5b600054610100900460ff16158015612960576000805460ff1961ff0019909116610100171660011790555b815161297490610230906020850190613ae8565b506128be7fe8a3d485000000000000000000000000000000000000000000000000000000006134a5565b600054610100900460ff16806129b757506129b7612393565b806129c5575060005460ff16155b612a005760405162461bcd60e51b815260040180806020018281038252602e815260200180614a12602e913960400191505060405180910390fd5b600054610100900460ff16158015612a2b576000805460ff1961ff0019909116610100171660011790555b61256b7f44c74bcc000000000000000000000000000000000000000000000000000000006134a5565b600054610100900460ff1680612a6d5750612a6d612393565b80612a7b575060005460ff16155b612ab65760405162461bcd60e51b815260040180806020018281038252602e815260200180614a12602e913960400191505060405180910390fd5b600054610100900460ff16158015612ae1576000805460ff1961ff0019909116610100171660011790555b8251612af590610262906020860190613ae8565b508151612b0a90610263906020850190613ae8565b508015610d65576000805461ff0019169055505050565b6001600160a01b038116600090815260c9602052604081205460ff16806112ff57506112ff838361362e565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612b8157fe5b602090810291909101015292915050565b612ba4846001600160a01b031661349f565b15610b1d57836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015612c33578181015183820152602001612c1b565b50505050905090810190601f168015612c605780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b158015612c8357600080fd5b505af1925050508015612ca857506040513d6020811015612ca357600080fd5b505160015b612cb457611fff6147c6565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e6100000000000000000000000000000000000000000000000000000000146121085760405162461bcd60e51b81526004018080602001828103825260288152602001806148d36028913960400191505060405180910390fd5b6001600160a01b038316612d795760405162461bcd60e51b8152600401808060200182810382526023815260200180614a626023913960400191505060405180910390fd5b6000612d836118af565b9050612db381856000612d9587612b4d565b612d9e87612b4d565b60405180602001604052806000815250610b1d565b612dfa8260405180606001604052806024815260200161494c6024913960008681526097602090815260408083206001600160a01b038b1684529091529020549190611d70565b60008481526097602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b606081612ea8575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610488565b8160005b8115612ec057600101600a82049150612eac565b60008167ffffffffffffffff81118015612ed957600080fd5b506040519080825280601f01601f191660200182016040528015612f04576020820181803683370190505b50859350905060001982015b8315612f6d57600a840660300160f81b82828060019003935081518110612f3357fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a84049350612f10565b50949350505050565b60008082608001515167ffffffffffffffff81118015612f9557600080fd5b50604051908082528060200260200182016040528015612fbf578160200160208202803683370190505b50905060005b83608001515181101561301157612ff284608001518281518110612fe557fe5b602002602001015161365c565b828281518110612ffe57fe5b6020908102919091010152600101612fc5565b50600083606001515167ffffffffffffffff8111801561303057600080fd5b5060405190808252806020026020018201604052801561305a578160200160208202803683370190505b50905060005b84606001515181101561309f5761308085606001518281518110612fe557fe5b82828151811061308c57fe5b6020908102919091010152600101613060565b507ffb988707ebb338694f318760b0fd5cfe756d00a2ade251fda110b80c336a3c7f846000015185604001518660200151805190602001208460405160200180828051906020019060200280838360005b838110156131085781810151838201526020016130f0565b50505050905001915050604051602081830303815290604052805190602001208660405160200180828051906020019060200280838360005b83811015613159578181015183820152602001613141565b50505050905001915050604051602081830303815290604052805190602001206040516020018087815260200186815260200185815260200184815260200183815260200182815260200196505050505050506040516020818303038152906040528051906020012092505050919050565b60006131d6836136ce565b90506131ea846001600160a01b031661349f565b1561339457604080517f1626ba7e00000000000000000000000000000000000000000000000000000000808252600482018481526024830193845285516044840152855191936001600160a01b03891693631626ba7e938793899390929091606490910190602085019080838360005b8381101561327257818101518382015260200161325a565b50505050905090810190601f16801561329f5780820380516001836020036101000a031916815260200191505b50935050505060206040518083038186803b1580156132bd57600080fd5b505afa1580156132d1573d6000803e3d6000fd5b505050506040513d60208110156132e757600080fd5b505160408051808201909152601c81527f7369676e617475726520766572696669636174696f6e206572726f72000000006020820152917fffffffff000000000000000000000000000000000000000000000000000000009091161461338e5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611dc4578181015183820152602001611dac565b50611931565b6001600160a01b0384166133a88284613735565b6001600160a01b0316146040518060400160405280601c81526020017f7369676e617475726520766572696669636174696f6e206572726f7200000000815250906106f55760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611dc4578181015183820152602001611dac565b60008381526101fd602052604081205461344f908490611e07565b60008581526101fc60205260409020549091508111156134815760405162461bcd60e51b815260040161058b906146e0565b60008481526101fd602052604090208190556106f5858585856137b5565b3b151590565b7fffffffff00000000000000000000000000000000000000000000000000000000808216141561351c576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b7fffffffff00000000000000000000000000000000000000000000000000000000166000908152606560205260409020805460ff19166001179055565b600054610100900460ff16806135725750613572612393565b80613580575060005460ff16155b6135bb5760405162461bcd60e51b815260040180806020018281038252602e815260200180614a12602e913960400191505060405180910390fd5b600054610100900460ff161580156135e6576000805460ff1961ff0019909116610100171660011790555b825160208085019190912083519184019190912061016291909155610163558015610d65576000805461ff0019169055505050565b80516107a5906099906020840190613ae8565b6001600160a01b03918216600090815260986020908152604080832093909416825291909152205460ff1690565b8051602091820151604080517f397e04204c1e1a60ee8724b71f8244e10ab5f2e9009854d80f602bda21b59ebb818601526001600160a01b03909316838201526bffffffffffffffffffffffff9091166060808401919091528151808403909101815260809092019052805191012090565b60006136d86138b6565b8260405160200180807f190100000000000000000000000000000000000000000000000000000000000081525060020183815260200182815260200192505050604051602081830303815290604052805190602001209050919050565b6000815160411461378d576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a6137ab868285856138f6565b9695505050505050565b6001600160a01b0384166137fa5760405162461bcd60e51b8152600401808060200182810382526021815260200180614b296021913960400191505060405180910390fd5b60006138046118af565b9050613816816000876113cf88612b4d565b60008481526097602090815260408083206001600160a01b03891684529091529020546138439084611e07565b60008581526097602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a46106f581600087878787612b92565b60006138f17f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6138e4613a74565b6138ec613a7b565b613a82565b905090565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156139575760405162461bcd60e51b81526004018080602001828103825260228152602001806149996022913960400191505060405180910390fd5b8360ff16601b148061396c57508360ff16601c145b6139a75760405162461bcd60e51b8152600401808060200182810382526022815260200180614a406022913960400191505060405180910390fd5b600060018686868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015613a03573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613a6b576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b95945050505050565b6101625490565b6101635490565b6000838383613a8f613ae4565b3060405160200180868152602001858152602001848152602001838152602001826001600160a01b03168152602001955050505050506040516020818303038152906040528051906020012090509392505050565b4690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282613b1e5760008555613b64565b82601f10613b3757805160ff1916838001178555613b64565b82800160010185558215613b64579182015b82811115613b64578251825591602001919060010190613b49565b50613b70929150613b74565b5090565b5b80821115613b705760008155600101613b75565b600082601f830112613b99578081fd5b81356020613bae613ba9836147a2565b61477e565b82815281810190858301855b85811015613be357613bd1898684358b0101613d0b565b84529284019290840190600101613bba565b5090979650505050505050565b600082601f830112613c00578081fd5b81356020613c10613ba9836147a2565b82815281810190858301604080860288018501891015613c2e578687fd5b865b86811015613ca35781838b031215613c46578788fd5b815182810181811067ffffffffffffffff82111715613c6157fe5b83528335613c6e81614889565b8152838701356bffffffffffffffffffffffff81168114613c8d57898afd5b8188015285529385019391810191600101613c30565b509198975050505050505050565b600082601f830112613cc1578081fd5b81356020613cd1613ba9836147a2565b8281528181019085830183850287018401881015613ced578586fd5b855b85811015613be357813584529284019290840190600101613cef565b600082601f830112613d1b578081fd5b813567ffffffffffffffff811115613d2f57fe5b613d426020601f19601f8401160161477e565b818152846020838601011115613d56578283fd5b816020850160208301379081016020019190915292915050565b600060c08284031215613d81578081fd5b613d8b60c061477e565b905081358152602082013567ffffffffffffffff80821115613dac57600080fd5b613db885838601613d0b565b6020840152604084013560408401526060840135915080821115613ddb57600080fd5b613de785838601613bf0565b60608401526080840135915080821115613e0057600080fd5b613e0c85838601613bf0565b608084015260a0840135915080821115613e2557600080fd5b50613e3284828501613b89565b60a08301525092915050565b600060208284031215613e4f578081fd5b81356112ff81614889565b60008060408385031215613e6c578081fd5b8235613e7781614889565b91506020830135613e8781614889565b809150509250929050565b600080600080600060a08688031215613ea9578081fd5b8535613eb481614889565b94506020860135613ec481614889565b9350604086013567ffffffffffffffff80821115613ee0578283fd5b613eec89838a01613cb1565b94506060880135915080821115613f01578283fd5b613f0d89838a01613cb1565b93506080880135915080821115613f22578283fd5b50613f2f88828901613d0b565b9150509295509295909350565b600080600080600060a08688031215613f53578283fd5b8535613f5e81614889565b94506020860135613f6e81614889565b93506040860135925060608601359150608086013567ffffffffffffffff811115613f97578182fd5b613f2f88828901613d0b565b600080600060608486031215613fb7578081fd5b8335613fc281614889565b9250602084013567ffffffffffffffff80821115613fde578283fd5b613fea87838801613cb1565b93506040860135915080821115613fff578283fd5b5061400c86828701613cb1565b9150509250925092565b60008060408385031215614028578182fd5b823561403381614889565b915060208301358015158114613e87578182fd5b60008060408385031215614059578182fd5b823561406481614889565b946020939093013593505050565b600080600060608486031215614086578081fd5b833561409181614889565b95602085013595506040909401359392505050565b600080604083850312156140b8578182fd5b823567ffffffffffffffff808211156140cf578384fd5b818501915085601f8301126140e2578384fd5b813560206140f2613ba9836147a2565b82815281810190858301838502870184018b101561410e578889fd5b8896505b8487101561413957803561412581614889565b835260019690960195918301918301614112565b509650508601359250508082111561414f578283fd5b5061415c85828601613cb1565b9150509250929050565b600060208284031215614177578081fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146112ff578182fd5b6000602082840312156141b7578081fd5b813567ffffffffffffffff8111156141cd578182fd5b6141d984828501613d0b565b949350505050565b600080600080608085870312156141f6578182fd5b843567ffffffffffffffff8082111561420d578384fd5b61421988838901613d0b565b9550602087013591508082111561422e578384fd5b61423a88838901613d0b565b9450604087013591508082111561424f578384fd5b61425b88838901613d0b565b93506060870135915080821115614270578283fd5b5061427d87828801613d0b565b91505092959194509250565b60006020828403121561429a578081fd5b813567ffffffffffffffff8111156142b0578182fd5b6141d984828501613d70565b6000806000606084860312156142d0578081fd5b833567ffffffffffffffff8111156142e6578182fd5b6142f286828701613d70565b935050602084013561430381614889565b929592945050506040919091013590565b600060208284031215614325578081fd5b5035919050565b6000806040838503121561433e578182fd5b82359150602083013567ffffffffffffffff81111561435b578182fd5b61415c85828601613d0b565b60008060408385031215614379578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b838110156143d957815180516001600160a01b031688528301516bffffffffffffffffffffffff16838801526040909601959082019060010161439b565b509495945050505050565b60008151808452815b81811015614409576020818501810151868301820152016143ed565b8181111561441a5782602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039290921682526bffffffffffffffffffffffff16602082015260400190565b60006001600160a01b03841682526020604081840152835160408401528084015160c060608501526144a06101008501826143e4565b90506040850151608085015260608501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0808684030160a08701526144e68383614388565b925060808701519150808684030160c08701526145038383614388565b60a088015187820390920160e0880152815180825290935090840191508383019084810284018501865b8281101561455b57601f198683030184526145498286516143e4565b9487019493870193915060010161452d565b509998505050505050505050565b6000602082526112ff6020830184614388565b6020808252825182820181905260009190848201906040850190845b818110156145b457835183529284019291840191600101614598565b50909695505050505050565b901515815260200190565b6000602082526112ff60208301846143e4565b60208082526010908201527f737570706c7920696e636f727265637400000000000000000000000000000000604082015260600190565b60208082526011908201527f746f6b656e496420696e636f7272656374000000000000000000000000000000604082015260600190565b60208082526010908201527f616d6f756e7420696e636f727265637400000000000000000000000000000000604082015260600190565b60208082526028908201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060408201527f617070726f766564000000000000000000000000000000000000000000000000606082015260800190565b60208082526010908201527f6d6f7265207468616e20737570706c7900000000000000000000000000000000604082015260600190565b60208082526011908201527f7572692073686f756c6420626520736574000000000000000000000000000000604082015260600190565b90815260200190565b6000838252604060208301526141d96040830184614388565b918252602082015260400190565b60405181810167ffffffffffffffff8111828210171561479a57fe5b604052919050565b600067ffffffffffffffff8211156147b657fe5b5060209081020190565b60e01c90565b600060443d10156147d657610dff565b600481823e6308c379a06147ea82516147c0565b146147f457610dff565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3d016004823e80513d67ffffffffffffffff81602484011181841117156148425750505050610dff565b8284019250825191508082111561485c5750505050610dff565b503d8301602082840101111561487457505050610dff565b601f01601f1916810160200160405291505090565b6001600160a01b0381168114610c8e57600080fdfe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656445434453413a20696e76616c6964207369676e6174757265202773272076616c7565455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a656445434453413a20696e76616c6964207369676e6174757265202776272076616c7565455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a2646970667358221220594e207234c6a8352aaea2ef3d098d18814aa5928a068211fb64f25ed30f4b5764736f6c63430007060033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101b85760003560e01c80636c0360eb116100f9578063a22cb46511610097578063e985e9c511610071578063e985e9c514610397578063f242432a146103aa578063f2fde38b146103bd578063f5298aca146103d0576101b8565b8063a22cb46514610369578063bb3bafd61461037c578063e8a3d4851461038f576101b8565b80638da5cb5b116100d35780638da5cb5b1461032657806395d89b411461033b57806398d0b4fb146103435780639d0eefaa14610356576101b8565b80636c0360eb146102f6578063715018a6146102fe578063891be97414610306576101b8565b8063162094c4116101665780634e1273f4116101405780634e1273f41461028f57806355f804b3146102af5780636308f1cd146102c25780636b20c454146102e3576101b8565b8063162094c41461025657806318054c37146102695780632eb2c2d61461027c576101b8565b80630e89341c116101975780630e89341c1461021b5780630eaead671461022e57806310c0bc0714610243576101b8565b8062fdd58e146101bd57806301ffc9a7146101e657806306fdde0314610206575b600080fd5b6101d06101cb366004614047565b6103e3565b6040516101dd919061474e565b60405180910390f35b6101f96101f4366004614166565b610452565b6040516101dd91906145c0565b61020e61048d565b6040516101dd91906145cb565b61020e610229366004614314565b61051c565b61024161023c3660046142bc565b61052d565b005b61020e610251366004614289565b6106fc565b61024161026436600461432c565b610727565b610241610277366004614016565b6107a9565b61024161028a366004613e92565b610827565b6102a261029d3660046140a6565b610b25565b6040516101dd919061457c565b6102416102bd3660046141a6565b610c11565b6102d56102d0366004614367565b610c91565b6040516101dd929190614443565b6102416102f1366004613fa3565b610cf1565b61020e610d6a565b610241610e02565b610319610314366004614314565b610ed8565b6040516101dd9190614569565b61032e610f7e565b6040516101dd919061442f565b61020e610f8d565b6102d5610351366004614367565b610fe9565b6102416103643660046141e1565b611006565b610241610377366004614016565b611117565b61031961038a366004614314565b611206565b61020e611297565b6101f96103a5366004613e5a565b6112f3565b6102416103b8366004613f3c565b611306565b6102416103cb366004613e3e565b6114d1565b6102416103de366004614072565b6115fe565b60006001600160a01b03831661042a5760405162461bcd60e51b815260040180806020018281038252602b8152602001806148fb602b913960400191505060405180910390fd5b5060009081526097602090815260408083206001600160a01b03949094168352929052205490565b7fffffffff00000000000000000000000000000000000000000000000000000000811660009081526065602052604090205460ff165b919050565b610262805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105145780601f106104e957610100808354040283529160200191610514565b820191906000526020600020905b8154815290600101906020018083116104f757829003601f168201915b505050505081565b606061052782611672565b92915050565b825160601c600061053c6118af565b9050846060015160008151811061054f57fe5b6020026020010151600001516001600160a01b0316826001600160a01b0316146105945760405162461bcd60e51b815260040161058b90614615565b60405180910390fd5b8460a0015151856060015151146105aa57600080fd5b806001600160a01b0316826001600160a01b031614806105cf57506105cf82826112f3565b6105eb5760405162461bcd60e51b815260040161058b90614683565b600085604001511161060f5760405162461bcd60e51b815260040161058b906145de565b6000831161062f5760405162461bcd60e51b815260040161058b9061464c565b6000856020015151116106545760405162461bcd60e51b815260040161058b90614717565b845160009081526101fc60205260409020546106d65760005b85606001515181101561068d576106858287836118b3565b60010161066d565b506106a085600001518660400151611937565b6106b2856000015186608001516119a1565b6106c485600001518660600151611b4f565b6106d685600001518660200151611c40565b6106f58486600001518560405180602001604052806000815250611d04565b5050505050565b6060308260405160200161071192919061446a565b6040516020818303038152906040529050919050565b61072f6118af565b6001600160a01b0316610740610f7e565b6001600160a01b03161461079b576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6107a58282611c40565b5050565b6107b16118af565b6001600160a01b03166107c2610f7e565b6001600160a01b03161461081d576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6107a58282611d10565b81518351146108675760405162461bcd60e51b8152600401808060200182810382526028815260200180614b016028913960400191505060405180910390fd5b6001600160a01b0384166108ac5760405162461bcd60e51b81526004018080602001828103825260258152602001806149bb6025913960400191505060405180910390fd5b6108b46118af565b6001600160a01b0316856001600160a01b031614806108da57506108da856103a56118af565b6109155760405162461bcd60e51b81526004018080602001828103825260328152602001806149e06032913960400191505060405180910390fd5b600061091f6118af565b905061092f818787878787610b1d565b60005b8451811015610a3557600085828151811061094957fe5b60200260200101519050600085838151811061096157fe5b602002602001015190506109ce816040518060600160405280602a8152602001614a85602a91396097600086815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002054611d709092919063ffffffff16565b60008381526097602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610a059082611e07565b60009283526097602090815260408085206001600160a01b038c1686529091529092209190915550600101610932565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610abb578181015183820152602001610aa3565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610afa578181015183820152602001610ae2565b5050505090500194505050505060405180910390a4610b1d818787878787611e61565b505050505050565b60608151835114610b675760405162461bcd60e51b8152600401808060200182810382526029815260200180614ad86029913960400191505060405180910390fd5b6000835167ffffffffffffffff81118015610b8157600080fd5b50604051908082528060200260200182016040528015610bab578160200160208202803683370190505b50905060005b8451811015610c0957610bea858281518110610bc957fe5b6020026020010151858381518110610bdd57fe5b60200260200101516103e3565b828281518110610bf657fe5b6020908102919091010152600101610bb1565b509392505050565b610c196118af565b6001600160a01b0316610c2a610f7e565b6001600160a01b031614610c85576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610c8e81612111565b50565b6101fa6020528160005260406000208181548110610cae57600080fd5b6000918252602090912001546001600160a01b03811692507401000000000000000000000000000000000000000090046bffffffffffffffffffffffff16905082565b610cf96118af565b6001600160a01b0316836001600160a01b03161480610d1f5750610d1f836103a56118af565b610d5a5760405162461bcd60e51b81526004018080602001828103825260298152602001806149706029913960400191505060405180910390fd5b610d65838383612125565b505050565b61012f8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610df75780601f10610dcc57610100808354040283529160200191610df7565b820191906000526020600020905b815481529060010190602001808311610dda57829003601f168201915b505050505090505b90565b610e0a6118af565b6001600160a01b0316610e1b610f7e565b6001600160a01b031614610e76576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60606101fb6000838152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015610f7357600084815260209081902060408051808201909152908401546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1681830152825260019092019101610f0e565b505050509050919050565b6033546001600160a01b031690565b610263805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105145780601f106104e957610100808354040283529160200191610514565b6101fb6020528160005260406000208181548110610cae57600080fd5b600054610100900460ff168061101f575061101f612393565b8061102d575060005460ff16155b6110685760405162461bcd60e51b815260040180806020018281038252602e815260200180614a12602e913960400191505060405180910390fd5b600054610100900460ff16158015611093576000805460ff1961ff0019909116610100171660011790555b61109b6123a4565b6110a36124b5565b6110ab61257f565b6110b3612635565b6110bb6126d5565b6110d3604051806020016040528060008152506127d6565b6110dc826128d3565b6110e4612635565b6110ec61299e565b6110f68585612a54565b6110ff83612111565b80156106f5576000805461ff00191690555050505050565b816001600160a01b03166111296118af565b6001600160a01b0316141561116f5760405162461bcd60e51b8152600401808060200182810382526029815260200180614aaf6029913960400191505060405180910390fd5b806098600061117c6118af565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556111c06118af565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b60008181526101fa60209081526040808320805482518185028101850190935280835260609492939192909184018215610f7357600084815260209081902060408051808201909152908401546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1681830152825260019092019101610f0e565b610230805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105145780601f106104e957610100808354040283529160200191610514565b60006112ff8383612b21565b9392505050565b6001600160a01b03841661134b5760405162461bcd60e51b81526004018080602001828103825260258152602001806149bb6025913960400191505060405180910390fd5b6113536118af565b6001600160a01b0316856001600160a01b031614806113795750611379856103a56118af565b6113b45760405162461bcd60e51b81526004018080602001828103825260298152602001806149706029913960400191505060405180910390fd5b60006113be6118af565b90506113de8187876113cf88612b4d565b6113d888612b4d565b87610b1d565b611425836040518060600160405280602a8152602001614a85602a913960008781526097602090815260408083206001600160a01b038d1684529091529020549190611d70565b60008581526097602090815260408083206001600160a01b038b8116855292528083209390935587168152205461145c9084611e07565b60008581526097602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610b1d818787878787612b92565b6114d96118af565b6001600160a01b03166114ea610f7e565b6001600160a01b031614611545576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661158a5760405162461bcd60e51b81526004018080602001828103825260268152602001806149266026913960400191505060405180910390fd5b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6116066118af565b6001600160a01b0316836001600160a01b0316148061162c575061162c836103a56118af565b6116675760405162461bcd60e51b81526004018080602001828103825260298152602001806149706029913960400191505060405180910390fd5b610d65838383612d34565b600081815261012e6020908152604080832080548251601f60026000196101006001861615020190931692909204918201859004850281018501909352808352606094938301828280156117075780601f106116dc57610100808354040283529160200191611707565b820191906000526020600020905b8154815290600101906020018083116116ea57829003601f168201915b505050505090506000611718610d6a565b905080516000141561172c57509050610488565b8151156117ed5780826040516020018083805190602001908083835b602083106117675780518252601f199092019160209182019101611748565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b602083106117af5780518252601f199092019160209182019101611790565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405292505050610488565b806117f785612e67565b6040516020018083805190602001908083835b602083106118295780518252601f19909201916020918201910161180a565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b602083106118715780518252601f199092019160209182019101611852565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405292505050919050565b3390565b6000826060015182815181106118c557fe5b6020026020010151600001519050806001600160a01b0316846001600160a01b03161461193157611931836060015183815181106118ff57fe5b60200260200101516000015161191485612f76565b8560a00151858151811061192457fe5b60200260200101516131cb565b50505050565b60008281526101fc60205260409020541561195157600080fd5b60008281526101fc602052604090819020829055517f5e2aa66efd74cce82b21852e317e5490d9ecc9e6bb953ae24d90851258cc2f5c906119959084908490614770565b60405180910390a15050565b60005b8151811015610d655760006001600160a01b03168282815181106119c457fe5b6020026020010151600001516001600160a01b03161415611a2c576040805162461bcd60e51b815260206004820152601b60248201527f526563697069656e742073686f756c642062652070726573656e740000000000604482015290519081900360640190fd5b818181518110611a3857fe5b6020026020010151602001516bffffffffffffffffffffffff1660001415611aa7576040805162461bcd60e51b815260206004820152601c60248201527f4665652076616c75652073686f756c6420626520706f73697469766500000000604482015290519081900360640190fd5b60008381526101fa602052604090208251839083908110611ac457fe5b60209081029190910181015182546001818101855560009485529383902082519101805492909301516bffffffffffffffffffffffff1674010000000000000000000000000000000000000000026001600160a01b039182167fffffffffffffffffffffffff00000000000000000000000000000000000000009093169290921716179055016119a4565b60008281526101fb60205260408120905b8251811015611c015781838281518110611b7657fe5b60209081029190910181015182546001818101855560009485529383902082519101805492909301516bffffffffffffffffffffffff1674010000000000000000000000000000000000000000026001600160a01b039182167fffffffffffffffffffffffff0000000000000000000000000000000000000000909316929092171617905501611b60565b507f841ffb90d4cabdd1f16034f3fa831d79060febbb8167bdd54a49269365bdf78f8383604051611c33929190614757565b60405180910390a1505050565b600082815261012e602090815260409091208251611c6092840190613ae8565b50817f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b611c8c84611672565b6040805160208082528351818301528351919283929083019185019080838360005b83811015611cc6578181015183820152602001611cae565b50505050905090810190601f168015611cf35780820380516001836020036101000a031916815260200191505b509250505060405180910390a25050565b61193184848484613434565b6001600160a01b038216600081815260c96020908152604091829020805460ff1916851515908117909155825190815291517f270dbb8ba4292910ae92862466486be25c355c837270a3d8824b36a8bc7c653b9281900390910190a25050565b60008184841115611dff5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611dc4578181015183820152602001611dac565b50505050905090810190601f168015611df15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156112ff576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b611e73846001600160a01b031661349f565b15610b1d57836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b83811015611f01578181015183820152602001611ee9565b50505050905001848103835286818151815260200191508051906020019060200280838360005b83811015611f40578181015183820152602001611f28565b50505050905001848103825285818151815260200191508051906020019080838360005b83811015611f7c578181015183820152602001611f64565b50505050905090810190601f168015611fa95780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b158015611fce57600080fd5b505af1925050508015611ff357506040513d6020811015611fee57600080fd5b505160015b61208857611fff6147c6565b8061200a5750612051565b60405162461bcd60e51b8152602060048201818152835160248401528351849391928392604401919085019080838360008315611dc4578181015183820152602001611dac565b60405162461bcd60e51b815260040180806020018281038252603481526020018061489f6034913960400191505060405180910390fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c8100000000000000000000000000000000000000000000000000000000146121085760405162461bcd60e51b81526004018080602001828103825260288152602001806148d36028913960400191505060405180910390fd5b50505050505050565b80516107a59061012f906020840190613ae8565b6001600160a01b03831661216a5760405162461bcd60e51b8152600401808060200182810382526023815260200180614a626023913960400191505060405180910390fd5b80518251146121aa5760405162461bcd60e51b8152600401808060200182810382526028815260200180614b016028913960400191505060405180910390fd5b60006121b46118af565b90506121d481856000868660405180602001604052806000815250610b1d565b60005b83518110156122b2576122698382815181106121ef57fe5b602002602001015160405180606001604052806024815260200161494c602491396097600088868151811061222057fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b0316815260200190815260200160002054611d709092919063ffffffff16565b6097600086848151811061227957fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a1682529092529020556001016121d7565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015612339578181015183820152602001612321565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015612378578181015183820152602001612360565b5050505090500194505050505060405180910390a450505050565b600061239e3061349f565b15905090565b600054610100900460ff16806123bd57506123bd612393565b806123cb575060005460ff16155b6124065760405162461bcd60e51b815260040180806020018281038252602e815260200180614a12602e913960400191505060405180910390fd5b600054610100900460ff16158015612431576000805460ff1961ff0019909116610100171660011790555b600061243b6118af565b603380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508015610c8e576000805461ff001916905550565b600054610100900460ff16806124ce57506124ce612393565b806124dc575060005460ff16155b6125175760405162461bcd60e51b815260040180806020018281038252602e815260200180614a12602e913960400191505060405180910390fd5b600054610100900460ff16158015612542576000805460ff1961ff0019909116610100171660011790555b61256b7f6db15a0f000000000000000000000000000000000000000000000000000000006134a5565b8015610c8e576000805461ff001916905550565b600054610100900460ff16806125985750612598612393565b806125a6575060005460ff16155b6125e15760405162461bcd60e51b815260040180806020018281038252602e815260200180614a12602e913960400191505060405180910390fd5b600054610100900460ff1615801561260c576000805460ff1961ff0019909116610100171660011790555b61256b7f01ffc9a7000000000000000000000000000000000000000000000000000000006134a5565b600054610100900460ff168061264e575061264e612393565b8061265c575060005460ff16155b6126975760405162461bcd60e51b815260040180806020018281038252602e815260200180614a12602e913960400191505060405180910390fd5b600054610100900460ff1615801561256b576000805460ff1961ff0019909116610100171660011790558015610c8e576000805461ff001916905550565b600054610100900460ff16806126ee57506126ee612393565b806126fc575060005460ff16155b6127375760405162461bcd60e51b815260040180806020018281038252602e815260200180614a12602e913960400191505060405180910390fd5b600054610100900460ff16158015612762576000805460ff1961ff0019909116610100171660011790555b61256b6040518060400160405280600881526020017f4d696e74313135350000000000000000000000000000000000000000000000008152506040518060400160405280600181526020017f3100000000000000000000000000000000000000000000000000000000000000815250613559565b600054610100900460ff16806127ef57506127ef612393565b806127fd575060005460ff16155b6128385760405162461bcd60e51b815260040180806020018281038252602e815260200180614a12602e913960400191505060405180910390fd5b600054610100900460ff16158015612863576000805460ff1961ff0019909116610100171660011790555b61286c8261361b565b6128957fd9b67a26000000000000000000000000000000000000000000000000000000006134a5565b6128be7f0e89341c000000000000000000000000000000000000000000000000000000006134a5565b80156107a5576000805461ff00191690555050565b600054610100900460ff16806128ec57506128ec612393565b806128fa575060005460ff16155b6129355760405162461bcd60e51b815260040180806020018281038252602e815260200180614a12602e913960400191505060405180910390fd5b600054610100900460ff16158015612960576000805460ff1961ff0019909116610100171660011790555b815161297490610230906020850190613ae8565b506128be7fe8a3d485000000000000000000000000000000000000000000000000000000006134a5565b600054610100900460ff16806129b757506129b7612393565b806129c5575060005460ff16155b612a005760405162461bcd60e51b815260040180806020018281038252602e815260200180614a12602e913960400191505060405180910390fd5b600054610100900460ff16158015612a2b576000805460ff1961ff0019909116610100171660011790555b61256b7f44c74bcc000000000000000000000000000000000000000000000000000000006134a5565b600054610100900460ff1680612a6d5750612a6d612393565b80612a7b575060005460ff16155b612ab65760405162461bcd60e51b815260040180806020018281038252602e815260200180614a12602e913960400191505060405180910390fd5b600054610100900460ff16158015612ae1576000805460ff1961ff0019909116610100171660011790555b8251612af590610262906020860190613ae8565b508151612b0a90610263906020850190613ae8565b508015610d65576000805461ff0019169055505050565b6001600160a01b038116600090815260c9602052604081205460ff16806112ff57506112ff838361362e565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612b8157fe5b602090810291909101015292915050565b612ba4846001600160a01b031661349f565b15610b1d57836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015612c33578181015183820152602001612c1b565b50505050905090810190601f168015612c605780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b158015612c8357600080fd5b505af1925050508015612ca857506040513d6020811015612ca357600080fd5b505160015b612cb457611fff6147c6565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e6100000000000000000000000000000000000000000000000000000000146121085760405162461bcd60e51b81526004018080602001828103825260288152602001806148d36028913960400191505060405180910390fd5b6001600160a01b038316612d795760405162461bcd60e51b8152600401808060200182810382526023815260200180614a626023913960400191505060405180910390fd5b6000612d836118af565b9050612db381856000612d9587612b4d565b612d9e87612b4d565b60405180602001604052806000815250610b1d565b612dfa8260405180606001604052806024815260200161494c6024913960008681526097602090815260408083206001600160a01b038b1684529091529020549190611d70565b60008481526097602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b606081612ea8575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610488565b8160005b8115612ec057600101600a82049150612eac565b60008167ffffffffffffffff81118015612ed957600080fd5b506040519080825280601f01601f191660200182016040528015612f04576020820181803683370190505b50859350905060001982015b8315612f6d57600a840660300160f81b82828060019003935081518110612f3357fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a84049350612f10565b50949350505050565b60008082608001515167ffffffffffffffff81118015612f9557600080fd5b50604051908082528060200260200182016040528015612fbf578160200160208202803683370190505b50905060005b83608001515181101561301157612ff284608001518281518110612fe557fe5b602002602001015161365c565b828281518110612ffe57fe5b6020908102919091010152600101612fc5565b50600083606001515167ffffffffffffffff8111801561303057600080fd5b5060405190808252806020026020018201604052801561305a578160200160208202803683370190505b50905060005b84606001515181101561309f5761308085606001518281518110612fe557fe5b82828151811061308c57fe5b6020908102919091010152600101613060565b507ffb988707ebb338694f318760b0fd5cfe756d00a2ade251fda110b80c336a3c7f846000015185604001518660200151805190602001208460405160200180828051906020019060200280838360005b838110156131085781810151838201526020016130f0565b50505050905001915050604051602081830303815290604052805190602001208660405160200180828051906020019060200280838360005b83811015613159578181015183820152602001613141565b50505050905001915050604051602081830303815290604052805190602001206040516020018087815260200186815260200185815260200184815260200183815260200182815260200196505050505050506040516020818303038152906040528051906020012092505050919050565b60006131d6836136ce565b90506131ea846001600160a01b031661349f565b1561339457604080517f1626ba7e00000000000000000000000000000000000000000000000000000000808252600482018481526024830193845285516044840152855191936001600160a01b03891693631626ba7e938793899390929091606490910190602085019080838360005b8381101561327257818101518382015260200161325a565b50505050905090810190601f16801561329f5780820380516001836020036101000a031916815260200191505b50935050505060206040518083038186803b1580156132bd57600080fd5b505afa1580156132d1573d6000803e3d6000fd5b505050506040513d60208110156132e757600080fd5b505160408051808201909152601c81527f7369676e617475726520766572696669636174696f6e206572726f72000000006020820152917fffffffff000000000000000000000000000000000000000000000000000000009091161461338e5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611dc4578181015183820152602001611dac565b50611931565b6001600160a01b0384166133a88284613735565b6001600160a01b0316146040518060400160405280601c81526020017f7369676e617475726520766572696669636174696f6e206572726f7200000000815250906106f55760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611dc4578181015183820152602001611dac565b60008381526101fd602052604081205461344f908490611e07565b60008581526101fc60205260409020549091508111156134815760405162461bcd60e51b815260040161058b906146e0565b60008481526101fd602052604090208190556106f5858585856137b5565b3b151590565b7fffffffff00000000000000000000000000000000000000000000000000000000808216141561351c576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b7fffffffff00000000000000000000000000000000000000000000000000000000166000908152606560205260409020805460ff19166001179055565b600054610100900460ff16806135725750613572612393565b80613580575060005460ff16155b6135bb5760405162461bcd60e51b815260040180806020018281038252602e815260200180614a12602e913960400191505060405180910390fd5b600054610100900460ff161580156135e6576000805460ff1961ff0019909116610100171660011790555b825160208085019190912083519184019190912061016291909155610163558015610d65576000805461ff0019169055505050565b80516107a5906099906020840190613ae8565b6001600160a01b03918216600090815260986020908152604080832093909416825291909152205460ff1690565b8051602091820151604080517f397e04204c1e1a60ee8724b71f8244e10ab5f2e9009854d80f602bda21b59ebb818601526001600160a01b03909316838201526bffffffffffffffffffffffff9091166060808401919091528151808403909101815260809092019052805191012090565b60006136d86138b6565b8260405160200180807f190100000000000000000000000000000000000000000000000000000000000081525060020183815260200182815260200192505050604051602081830303815290604052805190602001209050919050565b6000815160411461378d576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a6137ab868285856138f6565b9695505050505050565b6001600160a01b0384166137fa5760405162461bcd60e51b8152600401808060200182810382526021815260200180614b296021913960400191505060405180910390fd5b60006138046118af565b9050613816816000876113cf88612b4d565b60008481526097602090815260408083206001600160a01b03891684529091529020546138439084611e07565b60008581526097602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a46106f581600087878787612b92565b60006138f17f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6138e4613a74565b6138ec613a7b565b613a82565b905090565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156139575760405162461bcd60e51b81526004018080602001828103825260228152602001806149996022913960400191505060405180910390fd5b8360ff16601b148061396c57508360ff16601c145b6139a75760405162461bcd60e51b8152600401808060200182810382526022815260200180614a406022913960400191505060405180910390fd5b600060018686868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015613a03573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613a6b576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b95945050505050565b6101625490565b6101635490565b6000838383613a8f613ae4565b3060405160200180868152602001858152602001848152602001838152602001826001600160a01b03168152602001955050505050506040516020818303038152906040528051906020012090509392505050565b4690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282613b1e5760008555613b64565b82601f10613b3757805160ff1916838001178555613b64565b82800160010185558215613b64579182015b82811115613b64578251825591602001919060010190613b49565b50613b70929150613b74565b5090565b5b80821115613b705760008155600101613b75565b600082601f830112613b99578081fd5b81356020613bae613ba9836147a2565b61477e565b82815281810190858301855b85811015613be357613bd1898684358b0101613d0b565b84529284019290840190600101613bba565b5090979650505050505050565b600082601f830112613c00578081fd5b81356020613c10613ba9836147a2565b82815281810190858301604080860288018501891015613c2e578687fd5b865b86811015613ca35781838b031215613c46578788fd5b815182810181811067ffffffffffffffff82111715613c6157fe5b83528335613c6e81614889565b8152838701356bffffffffffffffffffffffff81168114613c8d57898afd5b8188015285529385019391810191600101613c30565b509198975050505050505050565b600082601f830112613cc1578081fd5b81356020613cd1613ba9836147a2565b8281528181019085830183850287018401881015613ced578586fd5b855b85811015613be357813584529284019290840190600101613cef565b600082601f830112613d1b578081fd5b813567ffffffffffffffff811115613d2f57fe5b613d426020601f19601f8401160161477e565b818152846020838601011115613d56578283fd5b816020850160208301379081016020019190915292915050565b600060c08284031215613d81578081fd5b613d8b60c061477e565b905081358152602082013567ffffffffffffffff80821115613dac57600080fd5b613db885838601613d0b565b6020840152604084013560408401526060840135915080821115613ddb57600080fd5b613de785838601613bf0565b60608401526080840135915080821115613e0057600080fd5b613e0c85838601613bf0565b608084015260a0840135915080821115613e2557600080fd5b50613e3284828501613b89565b60a08301525092915050565b600060208284031215613e4f578081fd5b81356112ff81614889565b60008060408385031215613e6c578081fd5b8235613e7781614889565b91506020830135613e8781614889565b809150509250929050565b600080600080600060a08688031215613ea9578081fd5b8535613eb481614889565b94506020860135613ec481614889565b9350604086013567ffffffffffffffff80821115613ee0578283fd5b613eec89838a01613cb1565b94506060880135915080821115613f01578283fd5b613f0d89838a01613cb1565b93506080880135915080821115613f22578283fd5b50613f2f88828901613d0b565b9150509295509295909350565b600080600080600060a08688031215613f53578283fd5b8535613f5e81614889565b94506020860135613f6e81614889565b93506040860135925060608601359150608086013567ffffffffffffffff811115613f97578182fd5b613f2f88828901613d0b565b600080600060608486031215613fb7578081fd5b8335613fc281614889565b9250602084013567ffffffffffffffff80821115613fde578283fd5b613fea87838801613cb1565b93506040860135915080821115613fff578283fd5b5061400c86828701613cb1565b9150509250925092565b60008060408385031215614028578182fd5b823561403381614889565b915060208301358015158114613e87578182fd5b60008060408385031215614059578182fd5b823561406481614889565b946020939093013593505050565b600080600060608486031215614086578081fd5b833561409181614889565b95602085013595506040909401359392505050565b600080604083850312156140b8578182fd5b823567ffffffffffffffff808211156140cf578384fd5b818501915085601f8301126140e2578384fd5b813560206140f2613ba9836147a2565b82815281810190858301838502870184018b101561410e578889fd5b8896505b8487101561413957803561412581614889565b835260019690960195918301918301614112565b509650508601359250508082111561414f578283fd5b5061415c85828601613cb1565b9150509250929050565b600060208284031215614177578081fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146112ff578182fd5b6000602082840312156141b7578081fd5b813567ffffffffffffffff8111156141cd578182fd5b6141d984828501613d0b565b949350505050565b600080600080608085870312156141f6578182fd5b843567ffffffffffffffff8082111561420d578384fd5b61421988838901613d0b565b9550602087013591508082111561422e578384fd5b61423a88838901613d0b565b9450604087013591508082111561424f578384fd5b61425b88838901613d0b565b93506060870135915080821115614270578283fd5b5061427d87828801613d0b565b91505092959194509250565b60006020828403121561429a578081fd5b813567ffffffffffffffff8111156142b0578182fd5b6141d984828501613d70565b6000806000606084860312156142d0578081fd5b833567ffffffffffffffff8111156142e6578182fd5b6142f286828701613d70565b935050602084013561430381614889565b929592945050506040919091013590565b600060208284031215614325578081fd5b5035919050565b6000806040838503121561433e578182fd5b82359150602083013567ffffffffffffffff81111561435b578182fd5b61415c85828601613d0b565b60008060408385031215614379578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b838110156143d957815180516001600160a01b031688528301516bffffffffffffffffffffffff16838801526040909601959082019060010161439b565b509495945050505050565b60008151808452815b81811015614409576020818501810151868301820152016143ed565b8181111561441a5782602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039290921682526bffffffffffffffffffffffff16602082015260400190565b60006001600160a01b03841682526020604081840152835160408401528084015160c060608501526144a06101008501826143e4565b90506040850151608085015260608501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0808684030160a08701526144e68383614388565b925060808701519150808684030160c08701526145038383614388565b60a088015187820390920160e0880152815180825290935090840191508383019084810284018501865b8281101561455b57601f198683030184526145498286516143e4565b9487019493870193915060010161452d565b509998505050505050505050565b6000602082526112ff6020830184614388565b6020808252825182820181905260009190848201906040850190845b818110156145b457835183529284019291840191600101614598565b50909695505050505050565b901515815260200190565b6000602082526112ff60208301846143e4565b60208082526010908201527f737570706c7920696e636f727265637400000000000000000000000000000000604082015260600190565b60208082526011908201527f746f6b656e496420696e636f7272656374000000000000000000000000000000604082015260600190565b60208082526010908201527f616d6f756e7420696e636f727265637400000000000000000000000000000000604082015260600190565b60208082526028908201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060408201527f617070726f766564000000000000000000000000000000000000000000000000606082015260800190565b60208082526010908201527f6d6f7265207468616e20737570706c7900000000000000000000000000000000604082015260600190565b60208082526011908201527f7572692073686f756c6420626520736574000000000000000000000000000000604082015260600190565b90815260200190565b6000838252604060208301526141d96040830184614388565b918252602082015260400190565b60405181810167ffffffffffffffff8111828210171561479a57fe5b604052919050565b600067ffffffffffffffff8211156147b657fe5b5060209081020190565b60e01c90565b600060443d10156147d657610dff565b600481823e6308c379a06147ea82516147c0565b146147f457610dff565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3d016004823e80513d67ffffffffffffffff81602484011181841117156148425750505050610dff565b8284019250825191508082111561485c5750505050610dff565b503d8301602082840101111561487457505050610dff565b601f01601f1916810160200160405291505090565b6001600160a01b0381168114610c8e57600080fdfe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656445434453413a20696e76616c6964207369676e6174757265202773272076616c7565455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a656445434453413a20696e76616c6964207369676e6174757265202776272076616c7565455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a2646970667358221220594e207234c6a8352aaea2ef3d098d18814aa5928a068211fb64f25ed30f4b5764736f6c63430007060033

Loading...
Loading
Loading...
Loading
[ 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.