ETH Price: $3,482.15 (-1.50%)
Gas: 3 Gwei

Contract

0x86Fe55deCc6428BD94D9C51aA55501bEC340B601
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...191553952024-02-04 13:58:35169 days ago1707055115IN
0x86Fe55de...EC340B601
0 ETH0.0010718918.02255121
Set Approval For...179580602023-08-20 19:31:47337 days ago1692559907IN
0x86Fe55de...EC340B601
0 ETH0.001080518.16740395
Set Approval For...177165402023-07-18 0:26:23371 days ago1689639983IN
0x86Fe55de...EC340B601
0 ETH0.0010438117.55047363
Set Approval For...175576542023-06-25 16:22:47393 days ago1687710167IN
0x86Fe55de...EC340B601
0 ETH0.000782113.15007638
Safe Transfer Fr...174285332023-06-07 12:35:23411 days ago1686141323IN
0x86Fe55de...EC340B601
0 ETH0.0010432819.9810184
Set Approval For...173433732023-05-26 12:49:47423 days ago1685105387IN
0x86Fe55de...EC340B601
0 ETH0.001713528.81055675
Set Approval For...173433222023-05-26 12:39:23423 days ago1685104763IN
0x86Fe55de...EC340B601
0 ETH0.0018015330.29062409
Safe Transfer Fr...172642962023-05-15 9:28:47434 days ago1684142927IN
0x86Fe55de...EC340B601
0 ETH0.0022210642.53775698
Safe Transfer Fr...171245902023-04-25 16:53:35454 days ago1682441615IN
0x86Fe55de...EC340B601
0 ETH0.0018064638.7428039
Safe Transfer Fr...171245872023-04-25 16:52:59454 days ago1682441579IN
0x86Fe55de...EC340B601
0 ETH0.0016369935.10830432
Set Default Roya...170692782023-04-17 21:53:59462 days ago1681768439IN
0x86Fe55de...EC340B601
0 ETH0.0016921436.20185546
Set Approval For...170264952023-04-11 18:03:35468 days ago1681236215IN
0x86Fe55de...EC340B601
0 ETH0.0039118465.77298925
Set Approval For...170189392023-04-10 16:21:59469 days ago1681143719IN
0x86Fe55de...EC340B601
0 ETH0.0019840252.81870204
Set Approval For...170179742023-04-10 13:04:47469 days ago1681131887IN
0x86Fe55de...EC340B601
0 ETH0.0014931625.10567696
Safe Transfer Fr...169231672023-03-28 3:27:23482 days ago1679974043IN
0x86Fe55de...EC340B601
0 ETH0.0011962822.91116685
Set Approval For...169150362023-03-27 0:02:59484 days ago1679875379IN
0x86Fe55de...EC340B601
0 ETH0.0008210213.80454012
Set Approval For...169143222023-03-26 21:38:11484 days ago1679866691IN
0x86Fe55de...EC340B601
0 ETH0.0012665121.29497179
Set Approval For...168936282023-03-23 23:54:11487 days ago1679615651IN
0x86Fe55de...EC340B601
0 ETH0.0012137120.40716412
Set Approval For...168914922023-03-23 16:42:35487 days ago1679589755IN
0x86Fe55de...EC340B601
0 ETH0.0024142440.59263687
Set Approval For...168914482023-03-23 16:33:47487 days ago1679589227IN
0x86Fe55de...EC340B601
0 ETH0.0021434436.03934863
Safe Transfer Fr...168913342023-03-23 16:10:59487 days ago1679587859IN
0x86Fe55de...EC340B601
0 ETH0.0020344338.96349278
Set Approval For...168456612023-03-17 6:09:35493 days ago1679033375IN
0x86Fe55de...EC340B601
0 ETH0.0009654316.2326597
Set Approval For...167914022023-03-09 15:01:11501 days ago1678374071IN
0x86Fe55de...EC340B601
0 ETH0.0020067933.74174899
Set Approval For...167866952023-03-08 23:08:35502 days ago1678316915IN
0x86Fe55de...EC340B601
0 ETH0.0028538847.98466473
Set Approval For...167752112023-03-07 8:22:59503 days ago1678177379IN
0x86Fe55de...EC340B601
0 ETH0.0015092525.37627531
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
JohnRivas

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 22 : Contract.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.12;

import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";
import "./lib/IWCNFTErrorCodes.sol";
import "./lib/WCNFTToken.sol";

contract JohnRivas is
    ReentrancyGuard,
    WCNFTToken,
    IWCNFTErrorCodes,
    DefaultOperatorFilterer,
    ERC1155Supply
{
    using Strings for uint256;
    struct AirdropData {
        address receiver;
        uint8 tokenId; // expecting token ids less than 256
    }

    string private _baseURIextended;
    string public provenance;

    // for opensea
    string public name = "John Rivas";
    string public symbol = "JOHNRIVAS";
    uint256[] public maxSupply;

    error InvalidTokenId();
    error UnequalArrayLengths();

    /**************************************************************************
     * Constructor
     */
    constructor(uint256[] memory maxSupplyPerId) ERC1155("") WCNFTToken() {
        uint256 numberOfIds = maxSupplyPerId.length;

        maxSupply = new uint256[](numberOfIds);
        for (uint256 index; index < numberOfIds; index++) {
            maxSupply[index] = maxSupplyPerId[index];
        }
    }

    /***************************************************************************
     * Tokens
     */
    /**
     * @dev sets the base uri
     */
    function setBaseURI(string memory baseURI_)
        external
        onlyRole(SUPPORT_ROLE)
    {
        _baseURIextended = baseURI_;
    }

    /**
     * @dev See {IERC1155MetadataURI-uri}
     */
    function uri(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        return
            bytes(_baseURIextended).length > 0
                ? string(abi.encodePacked(_baseURIextended, tokenId.toString()))
                : "";
    }

    /**
     * @dev sets the provenance hash
     * @param provenance_ the provenance hash
     */
    function setProvenance(string memory provenance_)
        external
        onlyRole(SUPPORT_ROLE)
    {
        provenance = provenance_;
    }

    /**
     * @dev checks to see if amount of tokens to be minted would exceed the maximum supply allowed
     * @param tokenId the token id
     * @param numberOfTokens the amount of tokens to mint for the related tokenId
     */
    function supplyAvailable(uint256 tokenId, uint256 numberOfTokens)
        public
        view
        returns (bool)
    {
        if (tokenId >= maxSupply.length) revert InvalidTokenId();
        if (totalSupply(tokenId) + numberOfTokens > maxSupply[tokenId])
            revert ExceedsMaximumSupply();

        return true;
    }

    /**
     * @dev executes an airdrop
     * @param data an array of the struct AirdropData
     */
    function airdrop(AirdropData[] calldata data)
        external
        onlyRole(SUPPORT_ROLE)
        nonReentrant
    {
        uint256 airdropLength = data.length;

        for (uint256 index; index < airdropLength; index++) {
            address receiver = data[index].receiver;
            uint256 tokenId = data[index].tokenId;
            uint256 numberOfTokens = 1;

            supplyAvailable(tokenId, numberOfTokens);
            _mint(receiver, tokenId, numberOfTokens, "");
        }
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC1155, WCNFTToken)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

    /***************************************************************************
     * Operator Filterer
     */
    function setApprovalForAll(address operator, bool approved)
        public
        override
        onlyAllowedOperatorApproval(operator)
    {
        super.setApprovalForAll(operator, approved);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        uint256 amount,
        bytes memory data
    ) public override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId, amount, data);
    }

    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override onlyAllowedOperator(from) {
        super.safeBatchTransferFrom(from, to, ids, amounts, data);
    }
}

File 2 of 22 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

File 4 of 22 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 22 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

File 7 of 22 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 8 of 22 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

    // Mapping from account to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

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

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

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

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

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC1155-isApprovedForAll}.
     */
    function isApprovedForAll(address account, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[account][operator];
    }

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

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

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

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

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

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

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

        address operator = _msgSender();

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

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

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

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

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

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

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

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);

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

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

        address operator = _msgSender();

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

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

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

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

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

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 12 of 22 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 14 of 22 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

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

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

File 15 of 22 : IWCNFTErrorCodes.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

/**
 * @dev custom error codes common to many contracts are predefined here
 */
interface IWCNFTErrorCodes {
    /// Exceeds maximum tokens per transaction
    error ExceedsMaximumTokensPerTransaction();

    /// Exceeds maximum supply
    error ExceedsMaximumSupply();

    /// Exceeds maximum reserve supply
    error ExceedsReserveSupply();

    /// Attempted access to inactive public sale
    error PublicSaleIsNotActive();

    /// Failed withdrawal from contract
    error WithdrawFailed();

    /// The wrong ETH value has been sent with a transaction
    error WrongETHValueSent();

    /// The zero address 0x00..000 has been provided as an argument
    error ZeroAddressProvided();
}

File 16 of 22 : WCNFTToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";

/**
 * @dev include SUPPORT_ROLE access control
 */
contract WCNFTAccessControl is AccessControl {
    bytes32 public constant SUPPORT_ROLE = keccak256("SUPPORT");
}

/**
 * @dev collect common elements for multiple contracts.
 *  Includes SUPPORT_ROLE access control and ERC2981 on chain royalty info.
 */
contract WCNFTToken is WCNFTAccessControl, Ownable, ERC2981 {
    constructor() {
        // set up roles
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(SUPPORT_ROLE, msg.sender);
    }

    /***************************************************************************
     * Royalties
     */

    /**
     * @dev See {ERC2981-_setDefaultRoyalty}.
     */
    function setDefaultRoyalty(address receiver, uint96 feeNumerator)
        external
        onlyRole(SUPPORT_ROLE)
    {
        _setDefaultRoyalty(receiver, feeNumerator);
    }

    /**
     * @dev See {ERC2981-_deleteDefaultRoyalty}.
     */
    function deleteDefaultRoyalty() external onlyRole(SUPPORT_ROLE) {
        _deleteDefaultRoyalty();
    }

    /**
     * @dev See {ERC2981-_setTokenRoyalty}.
     */
    function setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) external onlyRole(SUPPORT_ROLE) {
        _setTokenRoyalty(tokenId, receiver, feeNumerator);
    }

    /**
     * @dev See {ERC2981-_resetTokenRoyalty}.
     */
    function resetTokenRoyalty(uint256 tokenId)
        external
        onlyRole(SUPPORT_ROLE)
    {
        _resetTokenRoyalty(tokenId);
    }

    /***************************************************************************
     * Overrides
     */

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(AccessControl, ERC2981)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
}

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

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../ERC1155.sol";

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

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

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

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

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

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

File 20 of 22 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

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

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

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

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

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

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

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

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

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

File 21 of 22 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

File 22 of 22 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256[]","name":"maxSupplyPerId","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ExceedsMaximumSupply","type":"error"},{"inputs":[],"name":"ExceedsMaximumTokensPerTransaction","type":"error"},{"inputs":[],"name":"ExceedsReserveSupply","type":"error"},{"inputs":[],"name":"InvalidTokenId","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"PublicSaleIsNotActive","type":"error"},{"inputs":[],"name":"UnequalArrayLengths","type":"error"},{"inputs":[],"name":"WithdrawFailed","type":"error"},{"inputs":[],"name":"WrongETHValueSent","type":"error"},{"inputs":[],"name":"ZeroAddressProvided","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SUPPORT_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint8","name":"tokenId","type":"uint8"}],"internalType":"struct JohnRivas.AirdropData[]","name":"data","type":"tuple[]"}],"name":"airdrop","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":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"provenance","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"resetTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","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":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"provenance_","type":"string"}],"name":"setProvenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"supplyAvailable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60c0604052600a6080819052694a6f686e20526976617360b01b60a09081526200002d91600b919062000408565b50604080518082019091526009808252684a4f484e524956415360b81b60209092019182526200006091600c9162000408565b503480156200006e57600080fd5b50604051620035f4380380620035f4833981016040819052620000919162000501565b60408051602081019091526000808252600190819055733cc6cdda760b79bafa08df41ecfa224f810dceb690620000c8336200031d565b620000d56000336200036f565b620001017fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b336200036f565b6daaeb6d7670e522a718067333cd4e3b15620002465780156200019457604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200017557600080fd5b505af11580156200018a573d6000803e3d6000fd5b5050505062000246565b6001600160a01b03821615620001e55760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200015a565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200022c57600080fd5b505af115801562000241573d6000803e3d6000fd5b505050505b5062000254905081620003f8565b508051806001600160401b03811115620002725762000272620004eb565b6040519080825280602002602001820160405280156200029c578160200160208202803683370190505b508051620002b391600d9160209091019062000497565b5060005b818110156200031457828181518110620002d557620002d5620005ca565b6020026020010151600d8281548110620002f357620002f3620005ca565b600091825260209091200155806200030b81620005e0565b915050620002b7565b50505062000644565b600280546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16620003f45760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45b5050565b8051620003f49060079060208401905b828054620004169062000608565b90600052602060002090601f0160209004810192826200043a576000855562000485565b82601f106200045557805160ff191683800117855562000485565b8280016001018555821562000485579182015b828111156200048557825182559160200191906001019062000468565b5062000493929150620004d4565b5090565b8280548282559060005260206000209081019282156200048557916020028201828111156200048557825182559160200191906001019062000468565b5b80821115620004935760008155600101620004d5565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200051557600080fd5b82516001600160401b03808211156200052d57600080fd5b818501915085601f8301126200054257600080fd5b815181811115620005575762000557620004eb565b8060051b604051601f19603f830116810181811085821117156200057f576200057f620004eb565b6040529182528482019250838101850191888311156200059e57600080fd5b938501935b82851015620005be57845184529385019392850192620005a3565b98975050505050505050565b634e487b7160e01b600052603260045260246000fd5b6000600182016200060157634e487b7160e01b600052601160045260246000fd5b5060010190565b600181811c908216806200061d57607f821691505b6020821081036200063e57634e487b7160e01b600052602260045260246000fd5b50919050565b612fa080620006546000396000f3fe608060405234801561001057600080fd5b50600436106102255760003560e01c8063869f75941161012a578063aa1b103f116100bd578063e985e9c51161008c578063f2fde38b11610071578063f2fde38b1461053b578063fab3473d1461054e578063ffe630b51461056157600080fd5b8063e985e9c5146104ec578063f242432a1461052857600080fd5b8063aa1b103f1461049e578063bd85b039146104a6578063d547741f146104c6578063e3cb20f1146104d957600080fd5b806394b059ab116100f957806394b059ab1461045457806395d89b411461047b578063a217fddf14610483578063a22cb4651461048b57600080fd5b8063869f7594146103e45780638a616bc0146103f75780638da5cb5b1461040a57806391d148541461041b57600080fd5b80632eb2c2d6116101bd5780634e1273f41161018c57806355f804b31161017157806355f804b3146103b65780635944c753146103c9578063715018a6146103dc57600080fd5b80634e1273f4146103745780634f558e791461039457600080fd5b80632eb2c2d61461030e5780632f2ff15d1461032157806336568abe1461033457806341f434341461034757600080fd5b80630e89341c116101f95780630e89341c1461029d5780630f7309e8146102b0578063248a9ca3146102b85780632a55205a146102dc57600080fd5b8062fdd58e1461022a57806301ffc9a71461025057806304634d8d1461027357806306fdde0314610288575b600080fd5b61023d6102383660046124c5565b610574565b6040519081526020015b60405180910390f35b61026361025e366004612505565b61061f565b6040519015158152602001610247565b61028661028136600461253e565b610630565b005b610290610669565b60405161024791906125c9565b6102906102ab3660046125dc565b6106f7565b610290610755565b61023d6102c63660046125dc565b6000908152600160208190526040909120015490565b6102ef6102ea3660046125f5565b610762565b604080516001600160a01b039093168352602083019190915201610247565b61028661031c36600461276d565b61081d565b61028661032f366004612817565b61084c565b610286610342366004612817565b610872565b61035c6daaeb6d7670e522a718067333cd4e81565b6040516001600160a01b039091168152602001610247565b61038761038236600461283a565b6108fe565b6040516102479190612940565b6102636103a23660046125dc565b600090815260086020526040902054151590565b6102866103c4366004612953565b610a3c565b6102866103d736600461299c565b610a79565b610286610ab4565b61023d6103f23660046125dc565b610ac8565b6102866104053660046125dc565b610ae9565b6002546001600160a01b031661035c565b610263610429366004612817565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61023d7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b81565b610290610b25565b61023d600081565b6102866104993660046129e6565b610b32565b610286610b46565b61023d6104b43660046125dc565b60009081526008602052604090205490565b6102866104d4366004612817565b610b7d565b6102866104e7366004612a1d565b610ba3565b6102636104fa366004612a92565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b610286610536366004612abc565b610cd8565b610286610549366004612b21565b610cff565b61026361055c3660046125f5565b610d8c565b61028661056f366004612953565b610e4a565b60006001600160a01b0383166105f75760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201527f616c6964206f776e65720000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526005602090815260408083206001600160a01b03949094168352929052205490565b600061062a82610e87565b92915050565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b61065a81610ef9565b6106648383610f03565b505050565b600b805461067690612b3c565b80601f01602080910402602001604051908101604052809291908181526020018280546106a290612b3c565b80156106ef5780601f106106c4576101008083540402835291602001916106ef565b820191906000526020600020905b8154815290600101906020018083116106d257829003601f168201915b505050505081565b606060006009805461070890612b3c565b905011610724576040518060200160405280600081525061062a565b600961072f8361100a565b604051602001610740929190612b92565b60405160208183030381529060405292915050565b600a805461067690612b3c565b60008281526004602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff169282019290925282916107e15750604080518082019091526003546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610805906bffffffffffffffffffffffff1687612c4e565b61080f9190612c83565b915196919550909350505050565b846001600160a01b03811633146108375761083733611113565b61084486868686866111fe565b505050505050565b6000828152600160208190526040909120015461086881610ef9565b61066483836112a0565b6001600160a01b03811633146108f05760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016105ee565b6108fa8282611327565b5050565b606081518351146109775760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d61746368000000000000000000000000000000000000000000000060648201526084016105ee565b6000835167ffffffffffffffff81111561099357610993612617565b6040519080825280602002602001820160405280156109bc578160200160208202803683370190505b50905060005b8451811015610a3457610a078582815181106109e0576109e0612c97565b60200260200101518583815181106109fa576109fa612c97565b6020026020010151610574565b828281518110610a1957610a19612c97565b6020908102919091010152610a2d81612cad565b90506109c2565b509392505050565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b610a6681610ef9565b8151610664906009906020850190612410565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b610aa381610ef9565b610aae8484846113aa565b50505050565b610abc6114c2565b610ac6600061151c565b565b600d8181548110610ad857600080fd5b600091825260209091200154905081565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b610b1381610ef9565b50600090815260046020526040812055565b600c805461067690612b3c565b81610b3c81611113565b6106648383611586565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b610b7081610ef9565b610b7a6000600355565b50565b60008281526001602081905260409091200154610b9981610ef9565b6106648383611327565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b610bcd81610ef9565b600260005403610c1f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105ee565b6002600090815582905b81811015610ccc576000858583818110610c4557610c45612c97565b610c5b9260206040909202019081019150612b21565b90506000868684818110610c7157610c71612c97565b9050604002016020016020810190610c899190612cc6565b60ff1690506001610c9a8282610d8c565b50610cb683838360405180602001604052806000815250611591565b5050508080610cc490612cad565b915050610c29565b50506001600055505050565b846001600160a01b0381163314610cf257610cf233611113565b61084486868686866116d2565b610d076114c2565b6001600160a01b038116610d835760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016105ee565b610b7a8161151c565b600d546000908310610dca576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d8381548110610ddd57610ddd612c97565b906000526020600020015482610dff8560009081526008602052604090205490565b610e099190612ce9565b1115610e41576040517f8f0c6ebf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50600192915050565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b610e7481610ef9565b815161066490600a906020850190612410565b60006001600160e01b031982167fd9b67a26000000000000000000000000000000000000000000000000000000001480610eea57506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061062a575061062a8261176d565b610b7a8133611778565b6127106bffffffffffffffffffffffff82161115610f765760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016105ee565b6001600160a01b038216610fcc5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016105ee565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600355565b6060816000036110315750506040805180820190915260018152600360fc1b602082015290565b8160005b811561105b578061104581612cad565b91506110549050600a83612c83565b9150611035565b60008167ffffffffffffffff81111561107657611076612617565b6040519080825280601f01601f1916602001820160405280156110a0576020820181803683370190505b5090505b841561110b576110b5600183612d01565b91506110c2600a86612d18565b6110cd906030612ce9565b60f81b8183815181106110e2576110e2612c97565b60200101906001600160f81b031916908160001a905350611104600a86612c83565b94506110a4565b949350505050565b6daaeb6d7670e522a718067333cd4e3b15610b7a576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611199573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111bd9190612d2c565b610b7a576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b03821660048201526024016105ee565b6001600160a01b03851633148061121a575061121a85336104fa565b61128c5760405162461bcd60e51b815260206004820152602f60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206e6f7220617070726f766564000000000000000000000000000000000060648201526084016105ee565b61129985858585856117f8565b5050505050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff166108fa5760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16156108fa5760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6127106bffffffffffffffffffffffff8216111561141d5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016105ee565b6001600160a01b0382166114735760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d6574657273000000000060448201526064016105ee565b6040805180820182526001600160a01b0393841681526bffffffffffffffffffffffff92831660208083019182526000968752600490529190942093519051909116600160a01b029116179055565b6002546001600160a01b03163314610ac65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105ee565b600280546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6108fa338383611a74565b6001600160a01b03841661160d5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016105ee565b33600061161985611b68565b9050600061162685611b68565b905061163783600089858589611bb3565b60008681526005602090815260408083206001600160a01b038b16845290915281208054879290611669908490612ce9565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46116c983600089898989611d41565b50505050505050565b6001600160a01b0385163314806116ee57506116ee85336104fa565b6117605760405162461bcd60e51b815260206004820152602f60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206e6f7220617070726f766564000000000000000000000000000000000060648201526084016105ee565b6112998585858585611ee6565b600061062a826120a3565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff166108fa576117b6816001600160a01b031660146120e1565b6117c18360206120e1565b6040516020016117d2929190612d49565b60408051601f198184030181529082905262461bcd60e51b82526105ee916004016125c9565b815183511461186f5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d6174636800000000000000000000000000000000000000000000000060648201526084016105ee565b6001600160a01b0384166118d35760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016105ee565b336118e2818787878787611bb3565b60005b8451811015611a0e57600085828151811061190257611902612c97565b60200260200101519050600085838151811061192057611920612c97565b60209081029190910181015160008481526005835260408082206001600160a01b038e1683529093529190912054909150818110156119b45760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016105ee565b60008381526005602090815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906119f3908490612ce9565b9250508190555050505080611a0790612cad565b90506118e5565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611a5e929190612dca565b60405180910390a46108448187878787876122ad565b816001600160a01b0316836001600160a01b031603611afb5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c66000000000000000000000000000000000000000000000060648201526084016105ee565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611ba257611ba2612c97565b602090810291909101015292915050565b6001600160a01b038516611c3a5760005b8351811015611c3857828181518110611bdf57611bdf612c97565b602002602001015160086000868481518110611bfd57611bfd612c97565b602002602001015181526020019081526020016000206000828254611c229190612ce9565b90915550611c31905081612cad565b9050611bc4565b505b6001600160a01b0384166108445760005b83518110156116c9576000848281518110611c6857611c68612c97565b602002602001015190506000848381518110611c8657611c86612c97565b6020026020010151905060006008600084815260200190815260200160002054905081811015611d1e5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f7460448201527f616c537570706c7900000000000000000000000000000000000000000000000060648201526084016105ee565b60009283526008602052604090922091039055611d3a81612cad565b9050611c4b565b6001600160a01b0384163b156108445760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611d859089908990889088908890600401612def565b6020604051808303816000875af1925050508015611dc0575060408051601f3d908101601f19168201909252611dbd91810190612e32565b60015b611e7557611dcc612e4f565b806308c379a003611e055750611de0612e6b565b80611deb5750611e07565b8060405162461bcd60e51b81526004016105ee91906125c9565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016105ee565b6001600160e01b0319811663f23a6e6160e01b146116c95760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016105ee565b6001600160a01b038416611f4a5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016105ee565b336000611f5685611b68565b90506000611f6385611b68565b9050611f73838989858589611bb3565b60008681526005602090815260408083206001600160a01b038c16845290915290205485811015611ff95760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016105ee565b60008781526005602090815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290612038908490612ce9565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612098848a8a8a8a8a611d41565b505050505050505050565b60006001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000148061062a575061062a826123a9565b606060006120f0836002612c4e565b6120fb906002612ce9565b67ffffffffffffffff81111561211357612113612617565b6040519080825280601f01601f19166020018201604052801561213d576020820181803683370190505b509050600360fc1b8160008151811061215857612158612c97565b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106121a3576121a3612c97565b60200101906001600160f81b031916908160001a90535060006121c7846002612c4e565b6121d2906001612ce9565b90505b6001811115612257577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061221357612213612c97565b1a60f81b82828151811061222957612229612c97565b60200101906001600160f81b031916908160001a90535060049490941c9361225081612ef5565b90506121d5565b5083156122a65760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105ee565b9392505050565b6001600160a01b0384163b156108445760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906122f19089908990889088908890600401612f0c565b6020604051808303816000875af192505050801561232c575060408051601f3d908101601f1916820190925261232991810190612e32565b60015b61233857611dcc612e4f565b6001600160e01b0319811663bc197c8160e01b146116c95760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016105ee565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061062a57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161461062a565b82805461241c90612b3c565b90600052602060002090601f01602090048101928261243e5760008555612484565b82601f1061245757805160ff1916838001178555612484565b82800160010185558215612484579182015b82811115612484578251825591602001919060010190612469565b50612490929150612494565b5090565b5b808211156124905760008155600101612495565b80356001600160a01b03811681146124c057600080fd5b919050565b600080604083850312156124d857600080fd5b6124e1836124a9565b946020939093013593505050565b6001600160e01b031981168114610b7a57600080fd5b60006020828403121561251757600080fd5b81356122a6816124ef565b80356bffffffffffffffffffffffff811681146124c057600080fd5b6000806040838503121561255157600080fd5b61255a836124a9565b915061256860208401612522565b90509250929050565b60005b8381101561258c578181015183820152602001612574565b83811115610aae5750506000910152565b600081518084526125b5816020860160208601612571565b601f01601f19169290920160200192915050565b6020815260006122a6602083018461259d565b6000602082840312156125ee57600080fd5b5035919050565b6000806040838503121561260857600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff8111828210171561265357612653612617565b6040525050565b600067ffffffffffffffff82111561267457612674612617565b5060051b60200190565b600082601f83011261268f57600080fd5b8135602061269c8261265a565b6040516126a9828261262d565b83815260059390931b85018201928281019150868411156126c957600080fd5b8286015b848110156126e457803583529183019183016126cd565b509695505050505050565b600067ffffffffffffffff83111561270957612709612617565b604051612720601f8501601f19166020018261262d565b80915083815284848401111561273557600080fd5b83836020830137600060208583010152509392505050565b600082601f83011261275e57600080fd5b6122a6838335602085016126ef565b600080600080600060a0868803121561278557600080fd5b61278e866124a9565b945061279c602087016124a9565b9350604086013567ffffffffffffffff808211156127b957600080fd5b6127c589838a0161267e565b945060608801359150808211156127db57600080fd5b6127e789838a0161267e565b935060808801359150808211156127fd57600080fd5b5061280a8882890161274d565b9150509295509295909350565b6000806040838503121561282a57600080fd5b82359150612568602084016124a9565b6000806040838503121561284d57600080fd5b823567ffffffffffffffff8082111561286557600080fd5b818501915085601f83011261287957600080fd5b813560206128868261265a565b604051612893828261262d565b83815260059390931b85018201928281019150898411156128b357600080fd5b948201945b838610156128d8576128c9866124a9565b825294820194908201906128b8565b965050860135925050808211156128ee57600080fd5b506128fb8582860161267e565b9150509250929050565b600081518084526020808501945080840160005b8381101561293557815187529582019590820190600101612919565b509495945050505050565b6020815260006122a66020830184612905565b60006020828403121561296557600080fd5b813567ffffffffffffffff81111561297c57600080fd5b8201601f8101841361298d57600080fd5b61110b848235602084016126ef565b6000806000606084860312156129b157600080fd5b833592506129c1602085016124a9565b91506129cf60408501612522565b90509250925092565b8015158114610b7a57600080fd5b600080604083850312156129f957600080fd5b612a02836124a9565b91506020830135612a12816129d8565b809150509250929050565b60008060208385031215612a3057600080fd5b823567ffffffffffffffff80821115612a4857600080fd5b818501915085601f830112612a5c57600080fd5b813581811115612a6b57600080fd5b8660208260061b8501011115612a8057600080fd5b60209290920196919550909350505050565b60008060408385031215612aa557600080fd5b612aae836124a9565b9150612568602084016124a9565b600080600080600060a08688031215612ad457600080fd5b612add866124a9565b9450612aeb602087016124a9565b93506040860135925060608601359150608086013567ffffffffffffffff811115612b1557600080fd5b61280a8882890161274d565b600060208284031215612b3357600080fd5b6122a6826124a9565b600181811c90821680612b5057607f821691505b602082108103612b7057634e487b7160e01b600052602260045260246000fd5b50919050565b60008151612b88818560208601612571565b9290920192915050565b600080845481600182811c915080831680612bae57607f831692505b60208084108203612bcd57634e487b7160e01b86526022600452602486fd5b818015612be15760018114612bf257612c1f565b60ff19861689528489019650612c1f565b60008b81526020902060005b86811015612c175781548b820152908501908301612bfe565b505084890196505b505050505050612c2f8185612b76565b95945050505050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612c6857612c68612c38565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612c9257612c92612c6d565b500490565b634e487b7160e01b600052603260045260246000fd5b600060018201612cbf57612cbf612c38565b5060010190565b600060208284031215612cd857600080fd5b813560ff811681146122a657600080fd5b60008219821115612cfc57612cfc612c38565b500190565b600082821015612d1357612d13612c38565b500390565b600082612d2757612d27612c6d565b500690565b600060208284031215612d3e57600080fd5b81516122a6816129d8565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612d81816017850160208801612571565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351612dbe816028840160208801612571565b01602801949350505050565b604081526000612ddd6040830185612905565b8281036020840152612c2f8185612905565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152612e2760a083018461259d565b979650505050505050565b600060208284031215612e4457600080fd5b81516122a6816124ef565b600060033d1115612e685760046000803e5060005160e01c5b90565b600060443d1015612e795790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715612ea957505050505090565b8285019150815181811115612ec15750505050505090565b843d8701016020828501011115612edb5750505050505090565b612eea6020828601018761262d565b509095945050505050565b600081612f0457612f04612c38565b506000190190565b60006001600160a01b03808816835280871660208401525060a06040830152612f3860a0830186612905565b8281036060840152612f4a8186612905565b90508281036080840152612f5e818561259d565b9897505050505050505056fea2646970667358221220dc419b3a291eabc2531a346aa832455c28bc8b31707d712c1e50b2c46b3a5f7c64736f6c634300080d00330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001900000000000000000000000000000000000000000000000000000000000000460000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000096000000000000000000000000000000000000000000000000000000000000009600000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000c8

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102255760003560e01c8063869f75941161012a578063aa1b103f116100bd578063e985e9c51161008c578063f2fde38b11610071578063f2fde38b1461053b578063fab3473d1461054e578063ffe630b51461056157600080fd5b8063e985e9c5146104ec578063f242432a1461052857600080fd5b8063aa1b103f1461049e578063bd85b039146104a6578063d547741f146104c6578063e3cb20f1146104d957600080fd5b806394b059ab116100f957806394b059ab1461045457806395d89b411461047b578063a217fddf14610483578063a22cb4651461048b57600080fd5b8063869f7594146103e45780638a616bc0146103f75780638da5cb5b1461040a57806391d148541461041b57600080fd5b80632eb2c2d6116101bd5780634e1273f41161018c57806355f804b31161017157806355f804b3146103b65780635944c753146103c9578063715018a6146103dc57600080fd5b80634e1273f4146103745780634f558e791461039457600080fd5b80632eb2c2d61461030e5780632f2ff15d1461032157806336568abe1461033457806341f434341461034757600080fd5b80630e89341c116101f95780630e89341c1461029d5780630f7309e8146102b0578063248a9ca3146102b85780632a55205a146102dc57600080fd5b8062fdd58e1461022a57806301ffc9a71461025057806304634d8d1461027357806306fdde0314610288575b600080fd5b61023d6102383660046124c5565b610574565b6040519081526020015b60405180910390f35b61026361025e366004612505565b61061f565b6040519015158152602001610247565b61028661028136600461253e565b610630565b005b610290610669565b60405161024791906125c9565b6102906102ab3660046125dc565b6106f7565b610290610755565b61023d6102c63660046125dc565b6000908152600160208190526040909120015490565b6102ef6102ea3660046125f5565b610762565b604080516001600160a01b039093168352602083019190915201610247565b61028661031c36600461276d565b61081d565b61028661032f366004612817565b61084c565b610286610342366004612817565b610872565b61035c6daaeb6d7670e522a718067333cd4e81565b6040516001600160a01b039091168152602001610247565b61038761038236600461283a565b6108fe565b6040516102479190612940565b6102636103a23660046125dc565b600090815260086020526040902054151590565b6102866103c4366004612953565b610a3c565b6102866103d736600461299c565b610a79565b610286610ab4565b61023d6103f23660046125dc565b610ac8565b6102866104053660046125dc565b610ae9565b6002546001600160a01b031661035c565b610263610429366004612817565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61023d7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b81565b610290610b25565b61023d600081565b6102866104993660046129e6565b610b32565b610286610b46565b61023d6104b43660046125dc565b60009081526008602052604090205490565b6102866104d4366004612817565b610b7d565b6102866104e7366004612a1d565b610ba3565b6102636104fa366004612a92565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b610286610536366004612abc565b610cd8565b610286610549366004612b21565b610cff565b61026361055c3660046125f5565b610d8c565b61028661056f366004612953565b610e4a565b60006001600160a01b0383166105f75760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201527f616c6964206f776e65720000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526005602090815260408083206001600160a01b03949094168352929052205490565b600061062a82610e87565b92915050565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b61065a81610ef9565b6106648383610f03565b505050565b600b805461067690612b3c565b80601f01602080910402602001604051908101604052809291908181526020018280546106a290612b3c565b80156106ef5780601f106106c4576101008083540402835291602001916106ef565b820191906000526020600020905b8154815290600101906020018083116106d257829003601f168201915b505050505081565b606060006009805461070890612b3c565b905011610724576040518060200160405280600081525061062a565b600961072f8361100a565b604051602001610740929190612b92565b60405160208183030381529060405292915050565b600a805461067690612b3c565b60008281526004602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff169282019290925282916107e15750604080518082019091526003546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610805906bffffffffffffffffffffffff1687612c4e565b61080f9190612c83565b915196919550909350505050565b846001600160a01b03811633146108375761083733611113565b61084486868686866111fe565b505050505050565b6000828152600160208190526040909120015461086881610ef9565b61066483836112a0565b6001600160a01b03811633146108f05760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016105ee565b6108fa8282611327565b5050565b606081518351146109775760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d61746368000000000000000000000000000000000000000000000060648201526084016105ee565b6000835167ffffffffffffffff81111561099357610993612617565b6040519080825280602002602001820160405280156109bc578160200160208202803683370190505b50905060005b8451811015610a3457610a078582815181106109e0576109e0612c97565b60200260200101518583815181106109fa576109fa612c97565b6020026020010151610574565b828281518110610a1957610a19612c97565b6020908102919091010152610a2d81612cad565b90506109c2565b509392505050565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b610a6681610ef9565b8151610664906009906020850190612410565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b610aa381610ef9565b610aae8484846113aa565b50505050565b610abc6114c2565b610ac6600061151c565b565b600d8181548110610ad857600080fd5b600091825260209091200154905081565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b610b1381610ef9565b50600090815260046020526040812055565b600c805461067690612b3c565b81610b3c81611113565b6106648383611586565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b610b7081610ef9565b610b7a6000600355565b50565b60008281526001602081905260409091200154610b9981610ef9565b6106648383611327565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b610bcd81610ef9565b600260005403610c1f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105ee565b6002600090815582905b81811015610ccc576000858583818110610c4557610c45612c97565b610c5b9260206040909202019081019150612b21565b90506000868684818110610c7157610c71612c97565b9050604002016020016020810190610c899190612cc6565b60ff1690506001610c9a8282610d8c565b50610cb683838360405180602001604052806000815250611591565b5050508080610cc490612cad565b915050610c29565b50506001600055505050565b846001600160a01b0381163314610cf257610cf233611113565b61084486868686866116d2565b610d076114c2565b6001600160a01b038116610d835760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016105ee565b610b7a8161151c565b600d546000908310610dca576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d8381548110610ddd57610ddd612c97565b906000526020600020015482610dff8560009081526008602052604090205490565b610e099190612ce9565b1115610e41576040517f8f0c6ebf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50600192915050565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b610e7481610ef9565b815161066490600a906020850190612410565b60006001600160e01b031982167fd9b67a26000000000000000000000000000000000000000000000000000000001480610eea57506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061062a575061062a8261176d565b610b7a8133611778565b6127106bffffffffffffffffffffffff82161115610f765760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016105ee565b6001600160a01b038216610fcc5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016105ee565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600355565b6060816000036110315750506040805180820190915260018152600360fc1b602082015290565b8160005b811561105b578061104581612cad565b91506110549050600a83612c83565b9150611035565b60008167ffffffffffffffff81111561107657611076612617565b6040519080825280601f01601f1916602001820160405280156110a0576020820181803683370190505b5090505b841561110b576110b5600183612d01565b91506110c2600a86612d18565b6110cd906030612ce9565b60f81b8183815181106110e2576110e2612c97565b60200101906001600160f81b031916908160001a905350611104600a86612c83565b94506110a4565b949350505050565b6daaeb6d7670e522a718067333cd4e3b15610b7a576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611199573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111bd9190612d2c565b610b7a576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b03821660048201526024016105ee565b6001600160a01b03851633148061121a575061121a85336104fa565b61128c5760405162461bcd60e51b815260206004820152602f60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206e6f7220617070726f766564000000000000000000000000000000000060648201526084016105ee565b61129985858585856117f8565b5050505050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff166108fa5760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16156108fa5760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6127106bffffffffffffffffffffffff8216111561141d5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016105ee565b6001600160a01b0382166114735760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d6574657273000000000060448201526064016105ee565b6040805180820182526001600160a01b0393841681526bffffffffffffffffffffffff92831660208083019182526000968752600490529190942093519051909116600160a01b029116179055565b6002546001600160a01b03163314610ac65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105ee565b600280546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6108fa338383611a74565b6001600160a01b03841661160d5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016105ee565b33600061161985611b68565b9050600061162685611b68565b905061163783600089858589611bb3565b60008681526005602090815260408083206001600160a01b038b16845290915281208054879290611669908490612ce9565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46116c983600089898989611d41565b50505050505050565b6001600160a01b0385163314806116ee57506116ee85336104fa565b6117605760405162461bcd60e51b815260206004820152602f60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206e6f7220617070726f766564000000000000000000000000000000000060648201526084016105ee565b6112998585858585611ee6565b600061062a826120a3565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff166108fa576117b6816001600160a01b031660146120e1565b6117c18360206120e1565b6040516020016117d2929190612d49565b60408051601f198184030181529082905262461bcd60e51b82526105ee916004016125c9565b815183511461186f5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d6174636800000000000000000000000000000000000000000000000060648201526084016105ee565b6001600160a01b0384166118d35760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016105ee565b336118e2818787878787611bb3565b60005b8451811015611a0e57600085828151811061190257611902612c97565b60200260200101519050600085838151811061192057611920612c97565b60209081029190910181015160008481526005835260408082206001600160a01b038e1683529093529190912054909150818110156119b45760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016105ee565b60008381526005602090815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906119f3908490612ce9565b9250508190555050505080611a0790612cad565b90506118e5565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611a5e929190612dca565b60405180910390a46108448187878787876122ad565b816001600160a01b0316836001600160a01b031603611afb5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c66000000000000000000000000000000000000000000000060648201526084016105ee565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611ba257611ba2612c97565b602090810291909101015292915050565b6001600160a01b038516611c3a5760005b8351811015611c3857828181518110611bdf57611bdf612c97565b602002602001015160086000868481518110611bfd57611bfd612c97565b602002602001015181526020019081526020016000206000828254611c229190612ce9565b90915550611c31905081612cad565b9050611bc4565b505b6001600160a01b0384166108445760005b83518110156116c9576000848281518110611c6857611c68612c97565b602002602001015190506000848381518110611c8657611c86612c97565b6020026020010151905060006008600084815260200190815260200160002054905081811015611d1e5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f7460448201527f616c537570706c7900000000000000000000000000000000000000000000000060648201526084016105ee565b60009283526008602052604090922091039055611d3a81612cad565b9050611c4b565b6001600160a01b0384163b156108445760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611d859089908990889088908890600401612def565b6020604051808303816000875af1925050508015611dc0575060408051601f3d908101601f19168201909252611dbd91810190612e32565b60015b611e7557611dcc612e4f565b806308c379a003611e055750611de0612e6b565b80611deb5750611e07565b8060405162461bcd60e51b81526004016105ee91906125c9565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016105ee565b6001600160e01b0319811663f23a6e6160e01b146116c95760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016105ee565b6001600160a01b038416611f4a5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016105ee565b336000611f5685611b68565b90506000611f6385611b68565b9050611f73838989858589611bb3565b60008681526005602090815260408083206001600160a01b038c16845290915290205485811015611ff95760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016105ee565b60008781526005602090815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290612038908490612ce9565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612098848a8a8a8a8a611d41565b505050505050505050565b60006001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000148061062a575061062a826123a9565b606060006120f0836002612c4e565b6120fb906002612ce9565b67ffffffffffffffff81111561211357612113612617565b6040519080825280601f01601f19166020018201604052801561213d576020820181803683370190505b509050600360fc1b8160008151811061215857612158612c97565b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106121a3576121a3612c97565b60200101906001600160f81b031916908160001a90535060006121c7846002612c4e565b6121d2906001612ce9565b90505b6001811115612257577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061221357612213612c97565b1a60f81b82828151811061222957612229612c97565b60200101906001600160f81b031916908160001a90535060049490941c9361225081612ef5565b90506121d5565b5083156122a65760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105ee565b9392505050565b6001600160a01b0384163b156108445760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906122f19089908990889088908890600401612f0c565b6020604051808303816000875af192505050801561232c575060408051601f3d908101601f1916820190925261232991810190612e32565b60015b61233857611dcc612e4f565b6001600160e01b0319811663bc197c8160e01b146116c95760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016105ee565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061062a57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161461062a565b82805461241c90612b3c565b90600052602060002090601f01602090048101928261243e5760008555612484565b82601f1061245757805160ff1916838001178555612484565b82800160010185558215612484579182015b82811115612484578251825591602001919060010190612469565b50612490929150612494565b5090565b5b808211156124905760008155600101612495565b80356001600160a01b03811681146124c057600080fd5b919050565b600080604083850312156124d857600080fd5b6124e1836124a9565b946020939093013593505050565b6001600160e01b031981168114610b7a57600080fd5b60006020828403121561251757600080fd5b81356122a6816124ef565b80356bffffffffffffffffffffffff811681146124c057600080fd5b6000806040838503121561255157600080fd5b61255a836124a9565b915061256860208401612522565b90509250929050565b60005b8381101561258c578181015183820152602001612574565b83811115610aae5750506000910152565b600081518084526125b5816020860160208601612571565b601f01601f19169290920160200192915050565b6020815260006122a6602083018461259d565b6000602082840312156125ee57600080fd5b5035919050565b6000806040838503121561260857600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff8111828210171561265357612653612617565b6040525050565b600067ffffffffffffffff82111561267457612674612617565b5060051b60200190565b600082601f83011261268f57600080fd5b8135602061269c8261265a565b6040516126a9828261262d565b83815260059390931b85018201928281019150868411156126c957600080fd5b8286015b848110156126e457803583529183019183016126cd565b509695505050505050565b600067ffffffffffffffff83111561270957612709612617565b604051612720601f8501601f19166020018261262d565b80915083815284848401111561273557600080fd5b83836020830137600060208583010152509392505050565b600082601f83011261275e57600080fd5b6122a6838335602085016126ef565b600080600080600060a0868803121561278557600080fd5b61278e866124a9565b945061279c602087016124a9565b9350604086013567ffffffffffffffff808211156127b957600080fd5b6127c589838a0161267e565b945060608801359150808211156127db57600080fd5b6127e789838a0161267e565b935060808801359150808211156127fd57600080fd5b5061280a8882890161274d565b9150509295509295909350565b6000806040838503121561282a57600080fd5b82359150612568602084016124a9565b6000806040838503121561284d57600080fd5b823567ffffffffffffffff8082111561286557600080fd5b818501915085601f83011261287957600080fd5b813560206128868261265a565b604051612893828261262d565b83815260059390931b85018201928281019150898411156128b357600080fd5b948201945b838610156128d8576128c9866124a9565b825294820194908201906128b8565b965050860135925050808211156128ee57600080fd5b506128fb8582860161267e565b9150509250929050565b600081518084526020808501945080840160005b8381101561293557815187529582019590820190600101612919565b509495945050505050565b6020815260006122a66020830184612905565b60006020828403121561296557600080fd5b813567ffffffffffffffff81111561297c57600080fd5b8201601f8101841361298d57600080fd5b61110b848235602084016126ef565b6000806000606084860312156129b157600080fd5b833592506129c1602085016124a9565b91506129cf60408501612522565b90509250925092565b8015158114610b7a57600080fd5b600080604083850312156129f957600080fd5b612a02836124a9565b91506020830135612a12816129d8565b809150509250929050565b60008060208385031215612a3057600080fd5b823567ffffffffffffffff80821115612a4857600080fd5b818501915085601f830112612a5c57600080fd5b813581811115612a6b57600080fd5b8660208260061b8501011115612a8057600080fd5b60209290920196919550909350505050565b60008060408385031215612aa557600080fd5b612aae836124a9565b9150612568602084016124a9565b600080600080600060a08688031215612ad457600080fd5b612add866124a9565b9450612aeb602087016124a9565b93506040860135925060608601359150608086013567ffffffffffffffff811115612b1557600080fd5b61280a8882890161274d565b600060208284031215612b3357600080fd5b6122a6826124a9565b600181811c90821680612b5057607f821691505b602082108103612b7057634e487b7160e01b600052602260045260246000fd5b50919050565b60008151612b88818560208601612571565b9290920192915050565b600080845481600182811c915080831680612bae57607f831692505b60208084108203612bcd57634e487b7160e01b86526022600452602486fd5b818015612be15760018114612bf257612c1f565b60ff19861689528489019650612c1f565b60008b81526020902060005b86811015612c175781548b820152908501908301612bfe565b505084890196505b505050505050612c2f8185612b76565b95945050505050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612c6857612c68612c38565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612c9257612c92612c6d565b500490565b634e487b7160e01b600052603260045260246000fd5b600060018201612cbf57612cbf612c38565b5060010190565b600060208284031215612cd857600080fd5b813560ff811681146122a657600080fd5b60008219821115612cfc57612cfc612c38565b500190565b600082821015612d1357612d13612c38565b500390565b600082612d2757612d27612c6d565b500690565b600060208284031215612d3e57600080fd5b81516122a6816129d8565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612d81816017850160208801612571565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351612dbe816028840160208801612571565b01602801949350505050565b604081526000612ddd6040830185612905565b8281036020840152612c2f8185612905565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152612e2760a083018461259d565b979650505050505050565b600060208284031215612e4457600080fd5b81516122a6816124ef565b600060033d1115612e685760046000803e5060005160e01c5b90565b600060443d1015612e795790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715612ea957505050505090565b8285019150815181811115612ec15750505050505090565b843d8701016020828501011115612edb5750505050505090565b612eea6020828601018761262d565b509095945050505050565b600081612f0457612f04612c38565b506000190190565b60006001600160a01b03808816835280871660208401525060a06040830152612f3860a0830186612905565b8281036060840152612f4a8186612905565b90508281036080840152612f5e818561259d565b9897505050505050505056fea2646970667358221220dc419b3a291eabc2531a346aa832455c28bc8b31707d712c1e50b2c46b3a5f7c64736f6c634300080d0033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001900000000000000000000000000000000000000000000000000000000000000460000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000096000000000000000000000000000000000000000000000000000000000000009600000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000c8

-----Decoded View---------------
Arg [0] : maxSupplyPerId (uint256[]): 10,25,70,70,100,100,150,150,200,200

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000046
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000046
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000096
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000096
Arg [10] : 00000000000000000000000000000000000000000000000000000000000000c8
Arg [11] : 00000000000000000000000000000000000000000000000000000000000000c8


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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