ETH Price: $2,966.11 (-4.16%)
Gas: 2 Gwei

Contract

0xa1144d26fC7DA2775782cf60029c3a98b250F92c
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Set Approval For...201146802024-06-17 23:07:4718 days ago1718665667IN
Elemxnts: Token
0 ETH0.000309435.00855667
Safe Transfer Fr...199573592024-05-26 23:33:4740 days ago1716766427IN
Elemxnts: Token
0 ETH0.000190153.64783108
Set Approval For...199563832024-05-26 20:17:1140 days ago1716754631IN
Elemxnts: Token
0 ETH0.000527938.54519934
Safe Transfer Fr...198384112024-05-10 8:22:1156 days ago1715329331IN
Elemxnts: Token
0 ETH0.000241484.62804239
Set Approval For...198172182024-05-07 9:13:1159 days ago1715073191IN
Elemxnts: Token
0 ETH0.000276556.93656893
Set Approval For...198070992024-05-05 23:13:4761 days ago1714950827IN
Elemxnts: Token
0 ETH0.000256984.15470405
Set Approval For...197841212024-05-02 18:07:1164 days ago1714673231IN
Elemxnts: Token
0 ETH0.000567319.17202961
Set Approval For...197265062024-04-24 16:45:1172 days ago1713977111IN
Elemxnts: Token
0 ETH0.0011347418.34224353
Set Approval For...196656592024-04-16 4:27:1180 days ago1713241631IN
Elemxnts: Token
0 ETH0.0006464310.46330963
Set Approval For...196144302024-04-09 0:10:5988 days ago1712621459IN
Elemxnts: Token
0 ETH0.0013720922.1830958
Safe Transfer Fr...194097642024-03-11 5:27:23116 days ago1710134843IN
Elemxnts: Token
0 ETH0.0020934140.1598694
Set Approval For...193059722024-02-25 17:04:47131 days ago1708880687IN
Elemxnts: Token
0 ETH0.0021558834.89562785
Set Approval For...193032652024-02-25 7:59:59131 days ago1708847999IN
Elemxnts: Token
0 ETH0.0014715123.81822406
Set Approval For...192880822024-02-23 5:03:23133 days ago1708664603IN
Elemxnts: Token
0 ETH0.0013429533.68414405
Set Approval For...192527042024-02-18 5:45:59138 days ago1708235159IN
Elemxnts: Token
0 ETH0.0009597115.5341401
Set Approval For...191779532024-02-07 17:58:35149 days ago1707328715IN
Elemxnts: Token
0 ETH0.0023542959.0506972
Set Approval For...191724792024-02-06 23:32:47150 days ago1707262367IN
Elemxnts: Token
0 ETH0.0016318826.41398275
Safe Transfer Fr...191200702024-01-30 14:58:11157 days ago1706626691IN
Elemxnts: Token
0 ETH0.0022402842.97747408
Set Approval For...190936352024-01-26 22:04:47161 days ago1706306687IN
Elemxnts: Token
0 ETH0.0007709112.47825369
Set Approval For...190934592024-01-26 21:29:23161 days ago1706304563IN
Elemxnts: Token
0 ETH0.0008445613.67035474
Safe Transfer Fr...190483512024-01-20 13:23:35167 days ago1705757015IN
Elemxnts: Token
0 ETH0.0007981215.3110765
Safe Transfer Fr...190384212024-01-19 4:08:23168 days ago1705637303IN
Elemxnts: Token
0 ETH0.0014336127.50231145
Safe Transfer Fr...190378702024-01-19 2:17:47168 days ago1705630667IN
Elemxnts: Token
0 ETH0.0016730132.09501559
Set Approval For...190232832024-01-17 1:19:11171 days ago1705454351IN
Elemxnts: Token
0 ETH0.0020589433.32656078
Set Approval For...189766342024-01-10 12:45:11177 days ago1704890711IN
Elemxnts: Token
0 ETH0.0015359324.86091144
View all transactions

Latest 10 internal transactions

Advanced mode:
Parent Transaction Hash Block From To Value
168402782023-03-16 12:01:59477 days ago1678968119
Elemxnts: Token
1.2 ETH
168361892023-03-15 22:14:23478 days ago1678918463
Elemxnts: Token
7.08 ETH
168306242023-03-15 3:25:59478 days ago1678850759
Elemxnts: Token
1.08 ETH
168304832023-03-15 2:57:35478 days ago1678849055
Elemxnts: Token
0.72 ETH
168304452023-03-15 2:49:59478 days ago1678848599
Elemxnts: Token
9 ETH
168302652023-03-15 2:13:23478 days ago1678846403
Elemxnts: Token
25.2 ETH
168270682023-03-14 15:25:35479 days ago1678807535
Elemxnts: Token
3.06 ETH
168247402023-03-14 7:35:47479 days ago1678779347
Elemxnts: Token
1.56 ETH
168241682023-03-14 5:39:35479 days ago1678772375
Elemxnts: Token
3.54 ETH
168231092023-03-14 2:05:47479 days ago1678759547
Elemxnts: Token
11.4 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Elemxnts

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : Elemxnts.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.9;

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//                                                ..                                                                                                            //
//       ..::?G&@@@@@@5   .?.             ..:^JG&@@@@@@?     .7        :JJ:                  :YY^    .7               ~7!!!!7JYPB#&&@@@&~      .:^!?JYYY?!.     //
//   Y&@@@@@@@@@@@&BY:  .@@#          P&@@@@@@@@@@@&BJ.    7@@&.     B@@@@.     ?&&B?:    ~B@@@@:  !@@&~       ^?7  #@@@@@@@@@@@@@@@@@@G .!5B&@@@@@@@@@@@&      //
//   :@@@@@@BPJ!^.       ^@@&         ~@@@@@@B5?!:.        .@@@@@.   G@@@@@~     Y@@@@@&Y?&@@@@@!   Y@@@@P     :@@@B Y#&@@@@@@@@@&J?!^!G#@@@@@@@@&&&#B#&&@Y     //
//   .@@@@@!.:~?5GB#&5   ~@@P         :@@@@&^.^!J5G#&#J    P@@@@@&  5@@@@@@G      .5@@@@@@@@@@B.    G@@@@@&:   .@@@@^    ..!@@@@&.   ^@@@@@@@@&BGY?~:.          //
//   &@@@@@@@@@@@@@@P   G@@!         .@@@@@@@@@@@@@@@Y   .@@@@@@@BB@@@#@@@@        .P@@@@@@@#      &@@@@@@@?   &@@@5      ^@@@@J    5@@@@@@@@@@@@@@@@@#5:       //
//   &@@@@@&&#G5J~:    .@@@.          @@@@@@&&#G5?~.     G@@@^J@@@@@@~ &@@@!       .G@@@@@@@@@J    @@@@7&@@@B  &@@@?      Y@@@@7     .^~!7??????7775@@@@@~      //
//   P@@@@@!   .:!JG&&? J@@&          B@@@@@^   .:!YG&&~ :@@@B  &@@@@Y  G@@@B     :G@@@@&?.?@@@@&^ :@@@#  #@@@&J@@@@.      B@@@@7                .^7&@@@@#:     //
//   @@@@@@#B#&@@@@@@@B &@@B:!YG#&@@~.@@@@@@#B#@@@@@@@@P B@@@:  !@@@&   ^@@@@.  ^B@@@@@J    .G@@@@^^@@@&   Y@@@@@@@Y       &@@@@7         :!YG#&@@@@@@@G^       //
//   ?@@@@@@@@@@@&P7. .@@@@@@@@@@#7  .Y@@@@@@@@@@@#5!. ^@@@#    5@@?    B@@@: B@@@@@B.       :P&@5 &@@@    :B@@@@?        &@@@@7      .B@@@@@@@@@@&G!.          //
//   5@@@&BY!:       #@@@@&BY~.      .P@@@&GY~:      7@@#^     !7      P&J  ~&@@@?            .  :&@&.     ~GY.         !@@@@^      .B@@@@@&#P?:                //
//                                                                                                                                                              //
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/*   Created with love for the Pxin Gxng, by Rxmmy  */
/*   Special thank you to xtremetom for all of the incredible help and advice <3   */

import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/utils/structs/BitMaps.sol";
import "operator-filter-registry/src/UpdatableOperatorFilterer.sol";
import "operator-filter-registry/src/RevokableDefaultOperatorFilterer.sol";

/**
 * @title Elemxnts
 * @author Rammy
 * @notice Explore GxngYxng's take on the natural world in his classic PFP style.
 */
contract Elemxnts is
    ERC1155Supply,
    Ownable,
    ERC2981,
    RevokableDefaultOperatorFilterer
{
    using BitMaps for BitMaps.BitMap;

    string public website = "https://ghxsts.com";
    string public constant name_ = "Elemxnts";
    string public constant symbol_ = "ELEMXNTS";
    uint256 public mintPrice = .06 ether;
    uint256 public waitlistMintPrice = .12 ether;

    event PermanentURI(string _value, uint256 indexed _id);

    bool public Frozen;
    bool public saleOpen;
    bool public waitlistSaleOpen;
    bytes32 public merkleRoot;

    struct MINT {
        uint256 id; // ID of the Elemxnt to mint
        uint256 qty; // How many
    }

    struct Elemxnt {
        string metadataURI;
        uint256 maxSupply;
    }

    mapping(uint256 => Elemxnt) public ELEMXNTS;

    // Address => Minted?
    BitMaps.BitMap minted;
    BitMaps.BitMap waitlistMinted;

    constructor(Elemxnt[] memory els) ERC1155("ipfs://") {
        createElemxnts(els);
        _setDefaultRoyalty(msg.sender, 1000);
    }

    /**
     * @notice Create the elemxnts.
     * @param els An array of ELEMXNT structs.
     */
    function createElemxnts(Elemxnt[] memory els) internal {
        uint256 i;
        unchecked {
            do {
                ELEMXNTS[i] = els[i];
            } while (++i < els.length);
        }
    }

    modifier callerIsUser() {
        require(tx.origin == msg.sender, "The caller is another contract");
        _;
    }

    /**
     * @notice Mint a set of elemxnts as the owner.
     * @param _to The wallet address to mint to.
     * @param mintData An array of MINT structs to mint.
     */
    function ownerMint(
        address _to,
        MINT[] calldata mintData
    ) external onlyOwner {
        uint256 i;
        unchecked {
            do {
                require(!Frozen, "Frozen");
                require(
                    ELEMXNTS[mintData[i].id].maxSupply > 0,
                    "Elemxnt does not exist"
                );
                require(
                    totalSupply(mintData[i].id) + mintData[i].qty <=
                        ELEMXNTS[mintData[i].id].maxSupply,
                    "Max supply reached"
                );
                _mint(_to, mintData[i].id, mintData[i].qty, "");
            } while (++i < mintData.length);
        }
    }

    /**
     * @notice Waitlist minting.
     * @param mintData An array of MINT structs to mint.
     * @param merkleProof The merkle proof.
     */
    function waitlistMint(
        MINT[] calldata mintData,
        bytes32[] calldata merkleProof
    ) external payable callerIsUser {
        require(waitlistSaleOpen, "Sale not started");
        uint256 len = mintData.length;
        require(len < 3, "Maximum two mints allowed");
        require(!waitlistMinted.get(uint160(msg.sender)), "Already minted");
        require(!Frozen, "Frozen");

        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(
            MerkleProof.verify(merkleProof, merkleRoot, leaf),
            "Invalid proof"
        );

        uint256 totalPrice;
        uint256 i;
        uint256 id;
        uint256 qty;
        uint256 maxSupply;
        unchecked {
            do {
                id = mintData[i].id;
                qty = mintData[i].qty;
                maxSupply = ELEMXNTS[id].maxSupply;

                require(maxSupply > 0, "Elemxnt does not exist");
                require(
                    totalSupply(id) + qty <= maxSupply,
                    "Max supply reached"
                );
                require(qty == 1, "Can only mint one");

                totalPrice += waitlistMintPrice * qty;
            } while (++i < len);
        }

        // verify amount paid is sufficient
        require(msg.value == totalPrice, "Incorrect ETH amount");

        // track the address that minted
        waitlistMinted.set(uint160(msg.sender));

        i = 0;
        unchecked {
            do {
                id = mintData[i].id;
                qty = mintData[i].qty;

                if (qty > 0) _mint(msg.sender, id, qty, "");
            } while (++i < len);
        }
    }

    /**
     * @notice Allowlist minting.
     * @param mintData An array of MINT structs to mint.
     * @param merkleProof The merkle proof.
     * @param ticket The ticket.
     */
    function allowlistMint(
        MINT[] calldata mintData,
        bytes32[] calldata merkleProof,
        uint256[] calldata ticket
    ) external payable callerIsUser {
        require(saleOpen, "Sale not started");
        uint256 len = mintData.length;
        require(len == ticket.length, "Invalid mint request");
        require(!minted.get(uint160(msg.sender)), "Already minted");
        require(!Frozen, "Frozen");

        // save gas and check sig validity early
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender, ticket));
        require(
            MerkleProof.verify(merkleProof, merkleRoot, leaf),
            "Invalid proof"
        );

        uint256 totalPrice;
        uint256 i;
        uint256 id;
        uint256 qty;
        uint256 maxSupply;
        unchecked {
            do {
                id = mintData[i].id;
                qty = mintData[i].qty;
                maxSupply = ELEMXNTS[id].maxSupply;

                require(maxSupply > 0, "Elemxnt does not exist");
                require(
                    totalSupply(id) + qty <= maxSupply,
                    "Max supply reached"
                );
                require(qty <= ticket[i], "Exceeds allocation");

                totalPrice += mintPrice * qty;
            } while (++i < len);
        }

        // verify amount paid is sufficient
        require(msg.value == totalPrice, "Incorrect ETH amount");

        // track the address that minted
        minted.set(uint160(msg.sender));

        i = 0;
        unchecked {
            do {
                id = mintData[i].id;
                qty = mintData[i].qty;

                if (qty > 0) _mint(msg.sender, id, qty, "");
            } while (++i < len);
        }
    }

    /**
     * @notice Update the URI for a given elemxnt
     * @param id The ID of the elemxnt to update
     * @param _uri The new URI
     */
    function updateURI(uint256 id, string calldata _uri) external onlyOwner {
        require(!Frozen, "Frozen");
        require(ELEMXNTS[id].maxSupply > 0, "Elemxnt does not exist");
        ELEMXNTS[id].metadataURI = _uri;
    }

    /**
     * @notice Update the mint price.
     * @param price The new price.
     */
    function updateMintPrice(uint256 price) external onlyOwner {
        mintPrice = price;
    }

    /**
     * @notice Update the mint price.
     * @param price The new price.
     */
    function updateWaitlistMintPrice(uint256 price) external onlyOwner {
        waitlistMintPrice = price;
    }

    /**
     * @notice Toggle the sale.
     */
    function toggleSale() external onlyOwner {
        saleOpen = !saleOpen;
    }

    /**
     * @notice Toggle the waitlist sale.
     */
    function toggleWaitlistSale() external onlyOwner {
        waitlistSaleOpen = !waitlistSaleOpen;
    }

    /**
     * @notice Set the website url.
     * @param url The new url.
     */
    function setWebsite(string calldata url) external onlyOwner {
        website = url;
    }

    /**
     * @notice Set the merkle root.
     * @param _merkleRoot The new merkle root.
     */
    function updateMerkleRoot(bytes32 _merkleRoot) external onlyOwner {
        merkleRoot = _merkleRoot;
    }

    // Permanently freeze metadata and minting functions.

    function freeze() external onlyOwner {
        Frozen = true;
        emit PermanentURI(ELEMXNTS[0].metadataURI, 0);
        emit PermanentURI(ELEMXNTS[1].metadataURI, 1);
        emit PermanentURI(ELEMXNTS[2].metadataURI, 2);
        emit PermanentURI(ELEMXNTS[3].metadataURI, 3);
        emit PermanentURI(ELEMXNTS[4].metadataURI, 4);
        emit PermanentURI(ELEMXNTS[5].metadataURI, 5);
        emit PermanentURI(ELEMXNTS[6].metadataURI, 6);
        emit PermanentURI(ELEMXNTS[7].metadataURI, 7);
        emit PermanentURI(ELEMXNTS[8].metadataURI, 8);
        emit PermanentURI(ELEMXNTS[9].metadataURI, 9);
        emit PermanentURI(ELEMXNTS[9].metadataURI, 10);
        emit PermanentURI(ELEMXNTS[9].metadataURI, 11);
        emit PermanentURI(ELEMXNTS[9].metadataURI, 12);
        emit PermanentURI(ELEMXNTS[9].metadataURI, 13);
        emit PermanentURI(ELEMXNTS[9].metadataURI, 14);
        emit PermanentURI(ELEMXNTS[9].metadataURI, 15);
    }

    /**
     * @notice Get the metadata uri for a specific Elemxnt.
     * @param id The Elemxnt to return metadata for.
     * @return metadataURI URI for the Elemxnt.
     */
    function uri(uint256 id) public view override returns (string memory) {
        require(exists(id), "URI: nonexistent token");

        return ELEMXNTS[id].metadataURI;
    }

    // ** - ADMIN - ** //
    /**
     * @notice Withdraw ETH from the contract.
     * @param _to The address to send the ETH to.
     * @param _amount The amount of ETH to send.
     */
    function withdrawEther(
        address payable _to,
        uint256 _amount
    ) external onlyOwner {
        _to.transfer(_amount);
    }

    /**
     * @notice Withdraw all ETH from the contract.
     * @param _to The address to send the ETH to.
     */
    function withdrawAll(address payable _to) external onlyOwner {
        _to.transfer(address(this).balance);
    }

    /**
     * @notice Give approval to an operator to transfer all tokens on behalf of the caller. Cannot be called by a filtered operator.
     * @param operator The address to give approval to.
     * @param approved True if the operator is approved, false to revoke approval.
     */
    function setApprovalForAll(
        address operator,
        bool approved
    ) public override onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    /**
     * @notice Transfer a token from one address to another.
     * @param from The address to transfer from.
     * @param to The address to transfer to.
     * @param tokenId The token ID to transfer.
     * @param amount The amount to transfer.
     * @param data The data to pass to the receiver.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        uint256 amount,
        bytes memory data
    ) public override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId, amount, data);
    }

    /**
     * @notice Transfer multiple tokens from one address to another.
     * @param from The address to transfer from.
     * @param to The address to transfer to.
     * @param ids The token IDs to transfer.
     * @param amounts The amounts to transfer.
     * @param data The data to pass to the receiver.
     */
    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);
    }

    /**
     * @notice Override. Check if contract supports interface.
     * @param interfaceId The interface to check.
     * @return bool If the contract supports the interface.
     */
    function supportsInterface(
        bytes4 interfaceId
    ) public view override(ERC1155, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    // ** - VIEW - ** //
    /**
     * @notice Get the Elemxnt struct for a given ID.
     * @param id The ID of the Elemxnt to return.
     * @return Elemxnt The Elemxnt struct.
     */
    function getElemxnt(uint256 id) public view returns (Elemxnt memory) {
        return ELEMXNTS[id];
    }

    /**
     * @notice Check if a given address has already minted
     * @param _address The address to check
     * @return bool If the address has already minted
     */
    function hasMinted(address _address) public view returns (bool) {
        return minted.get(uint160(_address));
    }

    /**
     * @notice Get the owner of the contract.
     * @return address The owner of the contract.
     */
    function owner()
        public
        view
        override(Ownable, UpdatableOperatorFilterer)
        returns (address)
    {
        return Ownable.owner();
    }

    //** - ROYALTIES - ** //
    /**
     * @notice Update the default royalty fee the wallet that will receive it.
     * @param receiver The address of the wallet that will receive the royalty fee.
     * @param feeNumerator The basis points for the royalty.
     */
    function updateDefaultRoyalty(
        address receiver,
        uint96 feeNumerator
    ) external onlyOwner {
        _setDefaultRoyalty(receiver, feeNumerator);
    }

    /**
     * @notice Delete the default royalty fee.
     */
    function deleteDefaultRoyalty() external onlyOwner {
        _deleteDefaultRoyalty();
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 4 of 19 : 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 5 of 19 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

        return array;
    }
}

File 6 of 19 : 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 7 of 19 : 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 8 of 19 : 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 9 of 19 : 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 10 of 19 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 19 : 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 12 of 19 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 13 of 19 : 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 14 of 19 : 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 15 of 19 : BitMaps.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/BitMaps.sol)
pragma solidity ^0.8.0;

/**
 * @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential.
 * Largely inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor].
 */
library BitMaps {
    struct BitMap {
        mapping(uint256 => uint256) _data;
    }

    /**
     * @dev Returns whether the bit at `index` is set.
     */
    function get(BitMap storage bitmap, uint256 index) internal view returns (bool) {
        uint256 bucket = index >> 8;
        uint256 mask = 1 << (index & 0xff);
        return bitmap._data[bucket] & mask != 0;
    }

    /**
     * @dev Sets the bit at `index` to the boolean `value`.
     */
    function setTo(
        BitMap storage bitmap,
        uint256 index,
        bool value
    ) internal {
        if (value) {
            set(bitmap, index);
        } else {
            unset(bitmap, index);
        }
    }

    /**
     * @dev Sets the bit at `index`.
     */
    function set(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = 1 << (index & 0xff);
        bitmap._data[bucket] |= mask;
    }

    /**
     * @dev Unsets the bit at `index`.
     */
    function unset(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = 1 << (index & 0xff);
        bitmap._data[bucket] &= ~mask;
    }
}

File 16 of 19 : 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 17 of 19 : RevokableDefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

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

/**
 * @title  RevokableDefaultOperatorFilterer
 * @notice Inherits from RevokableOperatorFilterer and automatically subscribes to the default OpenSea subscription.
 *         Note that OpenSea will disable creator fee enforcement if filtered operators begin fulfilling orders
 *         on-chain, eg, if the registry is revoked or bypassed.
 */
abstract contract RevokableDefaultOperatorFilterer is RevokableOperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() RevokableOperatorFilterer(0x000000000000AAeB6D7670E522A718067333cd4E, DEFAULT_SUBSCRIPTION, true) {}
}

File 18 of 19 : RevokableOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

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

/**
 * @title  RevokableOperatorFilterer
 * @notice This contract is meant to allow contracts to permanently skip OperatorFilterRegistry checks if desired. The
 *         Registry itself has an "unregister" function, but if the contract is ownable, the owner can re-register at
 *         any point. As implemented, this abstract contract allows the contract owner to permanently skip the
 *         OperatorFilterRegistry checks by calling revokeOperatorFilterRegistry. Once done, the registry
 *         address cannot be further updated.
 *         Note that OpenSea will still disable creator fee enforcement if filtered operators begin fulfilling orders
 *         on-chain, eg, if the registry is revoked or bypassed.
 */
abstract contract RevokableOperatorFilterer is UpdatableOperatorFilterer {
    error RegistryHasBeenRevoked();
    error InitialRegistryAddressCannotBeZeroAddress();

    bool public isOperatorFilterRegistryRevoked;

    constructor(address _registry, address subscriptionOrRegistrantToCopy, bool subscribe)
        UpdatableOperatorFilterer(_registry, subscriptionOrRegistrantToCopy, subscribe)
    {
        // don't allow creating a contract with a permanently revoked registry
        if (_registry == address(0)) {
            revert InitialRegistryAddressCannotBeZeroAddress();
        }
    }

    function _checkFilterOperator(address operator) internal view virtual override {
        if (address(operatorFilterRegistry) != address(0)) {
            super._checkFilterOperator(operator);
        }
    }

    /**
     * @notice Update the address that the contract will make OperatorFilter checks against. When set to the zero
     *         address, checks will be permanently bypassed, and the address cannot be updated again. OnlyOwner.
     */
    function updateOperatorFilterRegistryAddress(address newRegistry) public override {
        if (msg.sender != owner()) {
            revert OnlyOwner();
        }
        // if registry has been revoked, do not allow further updates
        if (isOperatorFilterRegistryRevoked) {
            revert RegistryHasBeenRevoked();
        }

        operatorFilterRegistry = IOperatorFilterRegistry(newRegistry);
    }

    /**
     * @notice Revoke the OperatorFilterRegistry address, permanently bypassing checks. OnlyOwner.
     */
    function revokeOperatorFilterRegistry() public {
        if (msg.sender != owner()) {
            revert OnlyOwner();
        }
        // if registry has been revoked, do not allow further updates
        if (isOperatorFilterRegistryRevoked) {
            revert RegistryHasBeenRevoked();
        }

        // set to zero address to bypass checks
        operatorFilterRegistry = IOperatorFilterRegistry(address(0));
        isOperatorFilterRegistryRevoked = true;
    }
}

File 19 of 19 : UpdatableOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

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

/**
 * @title  UpdatableOperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry. This contract allows the Owner to update the
 *         OperatorFilterRegistry address via updateOperatorFilterRegistryAddress, including to the zero address,
 *         which will bypass registry checks.
 *         Note that OpenSea will still disable creator fee enforcement if filtered operators begin fulfilling orders
 *         on-chain, eg, if the registry is revoked or bypassed.
 * @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 UpdatableOperatorFilterer {
    error OperatorNotAllowed(address operator);
    error OnlyOwner();

    IOperatorFilterRegistry public operatorFilterRegistry;

    constructor(address _registry, address subscriptionOrRegistrantToCopy, bool subscribe) {
        IOperatorFilterRegistry registry = IOperatorFilterRegistry(_registry);
        operatorFilterRegistry = registry;
        // 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(registry).code.length > 0) {
            if (subscribe) {
                registry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    registry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    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);
        _;
    }

    /**
     * @notice Update the address that the contract will make OperatorFilter checks against. When set to the zero
     *         address, checks will be bypassed. OnlyOwner.
     */
    function updateOperatorFilterRegistryAddress(address newRegistry) public virtual {
        if (msg.sender != owner()) {
            revert OnlyOwner();
        }
        operatorFilterRegistry = IOperatorFilterRegistry(newRegistry);
    }

    /**
     * @dev assume the contract has an owner, but leave specific Ownable implementation up to inheriting contract
     */
    function owner() public view virtual returns (address);

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"components":[{"internalType":"string","name":"metadataURI","type":"string"},{"internalType":"uint256","name":"maxSupply","type":"uint256"}],"internalType":"struct Elemxnts.Elemxnt[]","name":"els","type":"tuple[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InitialRegistryAddressCannotBeZeroAddress","type":"error"},{"inputs":[],"name":"OnlyOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"RegistryHasBeenRevoked","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":false,"internalType":"string","name":"_value","type":"string"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"PermanentURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ELEMXNTS","outputs":[{"internalType":"string","name":"metadataURI","type":"string"},{"internalType":"uint256","name":"maxSupply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Frozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"qty","type":"uint256"}],"internalType":"struct Elemxnts.MINT[]","name":"mintData","type":"tuple[]"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256[]","name":"ticket","type":"uint256[]"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","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":[],"name":"freeze","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getElemxnt","outputs":[{"components":[{"internalType":"string","name":"metadataURI","type":"string"},{"internalType":"uint256","name":"maxSupply","type":"uint256"}],"internalType":"struct Elemxnts.Elemxnt","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"hasMinted","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":[],"name":"isOperatorFilterRegistryRevoked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","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":"operatorFilterRegistry","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"qty","type":"uint256"}],"internalType":"struct Elemxnts.MINT[]","name":"mintData","type":"tuple[]"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revokeOperatorFilterRegistry","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":[],"name":"saleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"url","type":"string"}],"name":"setWebsite","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol_","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleWaitlistSale","outputs":[],"stateMutability":"nonpayable","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":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"updateDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"updateMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"updateMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRegistry","type":"address"}],"name":"updateOperatorFilterRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"}],"name":"updateURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"updateWaitlistMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"qty","type":"uint256"}],"internalType":"struct Elemxnts.MINT[]","name":"mintData","type":"tuple[]"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"waitlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"waitlistMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"waitlistSaleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"website","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"}],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c0604052601260808190527168747470733a2f2f6768787374732e636f6d60701b60a090815262000035916008919062000448565b5066d529ae9e8600006009556701aa535d3d0c0000600a553480156200005a57600080fd5b5060405162004338380380620043388339810160408190526200007d9162000562565b6daaeb6d7670e522a718067333cd4e733cc6cdda760b79bafa08df41ecfa224f810dceb6600182828260405180604001604052806007815260200166697066733a2f2f60c81b815250620000d7816200027260201b60201c565b50620000e3336200028b565b600780546001600160a01b0319166001600160a01b03851690811790915583903b156200021c5781156200017b57604051633e9f1edf60e11b81523060048201526001600160a01b038481166024830152821690637d3e3dbe906044015b600060405180830381600087803b1580156200015c57600080fd5b505af115801562000171573d6000803e3d6000fd5b505050506200021c565b6001600160a01b03831615620001c05760405163a0af290360e01b81523060048201526001600160a01b03848116602483015282169063a0af29039060440162000141565b604051632210724360e11b81523060048201526001600160a01b03821690634420e48690602401600060405180830381600087803b1580156200020257600080fd5b505af115801562000217573d6000803e3d6000fd5b505050505b5050506001600160a01b0384169050620002495760405163c49d17ad60e01b815260040160405180910390fd5b5050506200025d81620002dd60201b60201c565b6200026b336103e862000343565b506200073d565b80516200028790600290602084019062000448565b5050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b818181518110620002f557620002f5620006eb565b6020908102919091018101516000838152600d835260409020815180519293919262000325928492019062000448565b506020919091015160019182015582519101908110620002e0575050565b6127106001600160601b0382161115620003b75760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b0382166200040f5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620003ae565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600555565b828054620004569062000701565b90600052602060002090601f0160209004810192826200047a5760008555620004c5565b82601f106200049557805160ff1916838001178555620004c5565b82800160010185558215620004c5579182015b82811115620004c5578251825591602001919060010190620004a8565b50620004d3929150620004d7565b5090565b5b80821115620004d35760008155600101620004d8565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715620005295762000529620004ee565b60405290565b604051601f8201601f191681016001600160401b03811182821017156200055a576200055a620004ee565b604052919050565b600060208083850312156200057657600080fd5b82516001600160401b03808211156200058e57600080fd5b818501915085601f830112620005a357600080fd5b815181811115620005b857620005b8620004ee565b8060051b620005c98582016200052f565b9182528381018501918581019089841115620005e457600080fd5b86860192505b83831015620006de57825185811115620006045760008081fd5b86016040601f19828d0381018213156200061e5760008081fd5b6200062862000504565b8a840151898111156200063b5760008081fd5b8401603f81018f136200064e5760008081fd5b8b8101518a811115620006655762000665620004ee565b620006778d85601f840116016200052f565b93508084528f858284010111156200068f5760008081fd5b60005b81811015620006af578281018601518582018f01528d0162000692565b81811115620006c15760008e83870101525b5050509081529101518882015282529186019190860190620005ea565b9998505050505050505050565b634e487b7160e01b600052603260045260246000fd5b600181811c908216806200071657607f821691505b6020821081036200073757634e487b7160e01b600052602260045260246000fd5b50919050565b613beb806200074d6000396000f3fe6080604052600436106102705760003560e01c80637d8966e41161014f578063b8d1e532116100c1578063e985e9c51161007a578063e985e9c514610793578063ecba222a146107dc578063f242432a146107fd578063f2fde38b1461081d578063f87f44b91461083d578063fa09e6301461085d57600080fd5b8063b8d1e532146106c7578063bd85b039146106e7578063beb0a41614610714578063c5f6b7cd14610729578063d691e43c1461073f578063e2b9e1861461075f57600080fd5b80639b2f3f8f116101135780639b2f3f8f14610604578063a22cb46514610624578063a8cab3d114610644578063aa1b103f1461065e578063af17dea614610673578063b0ccc31e146106a757600080fd5b80637d8966e4146105565780638da5cb5b1461056b578063957f090f1461059857806399288dbb146105c55780639acbebee146105e457600080fd5b806338e21cce116101e85780635ef9432a116101ac5780635ef9432a146104be57806362a5af3b146104d35780636817c76c146104e85780636bbede2d146104fe5780636e58e4c714610513578063715018a61461054157600080fd5b806338e21cce146104025780634783f0ef146104225780634e1273f4146104425780634f558e791461046f578063522f68151461049e57600080fd5b80631b8478ed1161023a5780631b8478ed1461033a5780632a55205a1461034d5780632eb2c2d61461038c5780632eb4a7ab146103ac5780632fa0aa22146103c257806331d41c69146103e257600080fd5b8062728e4614610275578062fdd58e1461029757806301ffc9a7146102ca5780630e89341c146102fa578063126c2fa614610327575b600080fd5b34801561028157600080fd5b50610295610290366004612e15565b61087d565b005b3480156102a357600080fd5b506102b76102b2366004612e43565b61088a565b6040519081526020015b60405180910390f35b3480156102d657600080fd5b506102ea6102e5366004612e85565b610920565b60405190151581526020016102c1565b34801561030657600080fd5b5061031a610315366004612e15565b610931565b6040516102c19190612eef565b610295610335366004612f8a565b610a26565b610295610348366004612ff5565b610e43565b34801561035957600080fd5b5061036d61036836600461308e565b611266565b604080516001600160a01b0390931683526020830191909152016102c1565b34801561039857600080fd5b506102956103a73660046131f9565b611314565b3480156103b857600080fd5b506102b7600c5481565b3480156103ce57600080fd5b506102956103dd3660046132a6565b611343565b3480156103ee57600080fd5b506102956103fd36600461333b565b6114c1565b34801561040e57600080fd5b506102ea61041d366004613379565b611539565b34801561042e57600080fd5b5061029561043d366004612e15565b611571565b34801561044e57600080fd5b5061046261045d366004613396565b61157e565b6040516102c1919061349d565b34801561047b57600080fd5b506102ea61048a366004612e15565b600090815260036020526040902054151590565b3480156104aa57600080fd5b506102956104b9366004612e43565b6116a7565b3480156104ca57600080fd5b506102956116ea565b3480156104df57600080fd5b50610295611766565b3480156104f457600080fd5b506102b760095481565b34801561050a57600080fd5b50610295611c22565b34801561051f57600080fd5b5061053361052e366004612e15565b611c49565b6040516102c19291906134b0565b34801561054d57600080fd5b50610295611ced565b34801561056257600080fd5b50610295611d01565b34801561057757600080fd5b50610580611d26565b6040516001600160a01b0390911681526020016102c1565b3480156105a457600080fd5b506105b86105b3366004612e15565b611d3f565b6040516102c191906134d2565b3480156105d157600080fd5b50600b546102ea90610100900460ff1681565b3480156105f057600080fd5b506102956105ff366004612e15565b611e0e565b34801561061057600080fd5b50600b546102ea9062010000900460ff1681565b34801561063057600080fd5b5061029561063f366004613512565b611e1b565b34801561065057600080fd5b50600b546102ea9060ff1681565b34801561066a57600080fd5b50610295611e2f565b34801561067f57600080fd5b5061031a60405180604001604052806008815260200167454c454d584e545360c01b81525081565b3480156106b357600080fd5b50600754610580906001600160a01b031681565b3480156106d357600080fd5b506102956106e2366004613379565b611e41565b3480156106f357600080fd5b506102b7610702366004612e15565b60009081526003602052604090205490565b34801561072057600080fd5b5061031a611ec7565b34801561073557600080fd5b506102b7600a5481565b34801561074b57600080fd5b5061029561075a36600461354b565b611f55565b34801561076b57600080fd5b5061031a60405180604001604052806008815260200167456c656d786e747360c01b81525081565b34801561079f57600080fd5b506102ea6107ae366004613585565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156107e857600080fd5b506007546102ea90600160a01b900460ff1681565b34801561080957600080fd5b506102956108183660046135b3565b611f6b565b34801561082957600080fd5b50610295610838366004613379565b611f92565b34801561084957600080fd5b5061029561085836600461361b565b61200b565b34801561086957600080fd5b50610295610878366004613379565b61201f565b61088561205c565b600955565b60006001600160a01b0383166108fa5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b600061092b826120bb565b92915050565b6000818152600360205260409020546060906109885760405162461bcd60e51b81526020600482015260166024820152752aa9249d103737b732bc34b9ba32b73a103a37b5b2b760511b60448201526064016108f1565b6000828152600d6020526040902080546109a19061365c565b80601f01602080910402602001604051908101604052809291908181526020018280546109cd9061365c565b8015610a1a5780601f106109ef57610100808354040283529160200191610a1a565b820191906000526020600020905b8154815290600101906020018083116109fd57829003601f168201915b50505050509050919050565b323314610a755760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e7472616374000060448201526064016108f1565b600b5462010000900460ff16610ac05760405162461bcd60e51b815260206004820152601060248201526f14d85b19481b9bdd081cdd185c9d195960821b60448201526064016108f1565b8260038110610b115760405162461bcd60e51b815260206004820152601960248201527f4d6178696d756d2074776f206d696e747320616c6c6f7765640000000000000060448201526064016108f1565b33600881901c6000908152600f6020526040902054600160ff9092169190911b1615610b705760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481b5a5b9d195960921b60448201526064016108f1565b600b5460ff1615610b935760405162461bcd60e51b81526004016108f190613696565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610c0d84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600c5491508490506120e0565b610c495760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b60448201526064016108f1565b60008060008060005b8a8a85818110610c6457610c646136b6565b9050604002016000013592508a8a85818110610c8257610c826136b6565b905060400201602001359150600d600084815260200190815260200160002060010154905060008111610cc75760405162461bcd60e51b81526004016108f1906136cc565b8082610cdf8560009081526003602052604090205490565b011115610cfe5760405162461bcd60e51b81526004016108f1906136fc565b81600114610d425760405162461bcd60e51b815260206004820152601160248201527043616e206f6e6c79206d696e74206f6e6560781b60448201526064016108f1565b81600a540285019450868460010194508410610c5257843414610d9e5760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd0811551208185b5bdd5b9d60621b60448201526064016108f1565b33600881901c6000908152600f602052604090208054600160ff9093169290921b9091179055600093505b8a8a85818110610ddb57610ddb6136b6565b9050604002016000013592508a8a85818110610df957610df96136b6565b9050604002016020013591506000821115610e2957610e29338484604051806020016040528060008152506120f6565b868460010194508410610dc9575050505050505050505050565b323314610e925760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e7472616374000060448201526064016108f1565b600b54610100900460ff16610edc5760405162461bcd60e51b815260206004820152601060248201526f14d85b19481b9bdd081cdd185c9d195960821b60448201526064016108f1565b84818114610f235760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a59081b5a5b9d081c995c5d595cdd60621b60448201526064016108f1565b33600881901c6000908152600e6020526040902054600160ff9092169190911b1615610f825760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481b5a5b9d195960921b60448201526064016108f1565b600b5460ff1615610fa55760405162461bcd60e51b81526004016108f190613696565b6000338484604051602001610fbc93929190613728565b60405160208183030381529060405280519060200120905061101586868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600c5491508490506120e0565b6110515760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b60448201526064016108f1565b60008060008060005b8c8c8581811061106c5761106c6136b6565b9050604002016000013592508c8c8581811061108a5761108a6136b6565b905060400201602001359150600d6000848152602001908152602001600020600101549050600081116110cf5760405162461bcd60e51b81526004016108f1906136cc565b80826110e78560009081526003602052604090205490565b0111156111065760405162461bcd60e51b81526004016108f1906136fc565b888885818110611118576111186136b6565b905060200201358211156111635760405162461bcd60e51b815260206004820152601260248201527122bc31b2b2b2399030b63637b1b0ba34b7b760711b60448201526064016108f1565b81600954028501945086846001019450841061105a578434146111bf5760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd0811551208185b5bdd5b9d60621b60448201526064016108f1565b33600881901c6000908152600e602052604090208054600160ff9093169290921b9091179055600093505b8c8c858181106111fc576111fc6136b6565b9050604002016000013592508c8c8581811061121a5761121a6136b6565b905060400201602001359150600082111561124a5761124a338484604051806020016040528060008152506120f6565b8684600101945084106111ea5750505050505050505050505050565b60008281526006602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916112db5750604080518082019091526005546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906112fa906001600160601b031687613787565b61130491906137a6565b91519350909150505b9250929050565b846001600160a01b038116331461132e5761132e33612219565b61133b8686868686612233565b505050505050565b61134b61205c565b60005b600b5460ff16156113715760405162461bcd60e51b81526004016108f190613696565b6000600d6000858585818110611389576113896136b6565b90506040020160000135815260200190815260200160002060010154116113c25760405162461bcd60e51b81526004016108f1906136cc565b600d60008484848181106113d8576113d86136b6565b90506040020160000135815260200190815260200160002060010154838383818110611406576114066136b6565b90506040020160200135611441858585818110611425576114256136b6565b9050604002016000013560009081526003602052604090205490565b0111156114605760405162461bcd60e51b81526004016108f1906136fc565b6114b184848484818110611476576114766136b6565b90506040020160000135858585818110611492576114926136b6565b90506040020160200135604051806020016040528060008152506120f6565b60010181811061134e5750505050565b6114c961205c565b600b5460ff16156114ec5760405162461bcd60e51b81526004016108f190613696565b6000838152600d602052604090206001015461151a5760405162461bcd60e51b81526004016108f1906136cc565b6000838152600d60205260409020611533908383612d7c565b50505050565b72ffffffffffffffffffffffffffffffffffffff600882901c166000908152600e6020526040812054600160ff84161b16151561092b565b61157961205c565b600c55565b606081518351146115e35760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016108f1565b600083516001600160401b038111156115fe576115fe6130b0565b604051908082528060200260200182016040528015611627578160200160208202803683370190505b50905060005b845181101561169f5761167285828151811061164b5761164b6136b6565b6020026020010151858381518110611665576116656136b6565b602002602001015161088a565b828281518110611684576116846136b6565b6020908102919091010152611698816137c8565b905061162d565b509392505050565b6116af61205c565b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156116e5573d6000803e3d6000fd5b505050565b6116f2611d26565b6001600160a01b0316336001600160a01b03161461172357604051635fc483c560e01b815260040160405180910390fd5b600754600160a01b900460ff161561174e57604051631551a48f60e11b815260040160405180910390fd5b600780546001600160a81b031916600160a01b179055565b61176e61205c565b600b805460ff191660011790556000808052600d602052604051600080516020613b96833981519152906117c3907f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ee906137e1565b60405180910390a260016000819052600d602052604051600080516020613b9683398151915290611815907ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c5906137e1565b60405180910390a260026000819052600d602052604051600080516020613b9683398151915290611867907f10a81eed9d63d16face5e76357905348e6253d3394086026bb2bf2145d7cc249906137e1565b60405180910390a260036000819052600d602052604051600080516020613b96833981519152906118b9907f26b4a10d0f0b04925c23bd4480ee147c916e5e87a7d68206a533dad160ac81e2906137e1565b60405180910390a260046000819052600d602052604051600080516020613b968339815191529061190b907fafafe8948a4ed9d478b1e9a5780b119b5edd00ea7d07bc35bef7c814824eb94b906137e1565b60405180910390a260056000819052600d602052604051600080516020613b968339815191529061195d907fa5049387d9cb649c59f4bda666105ba636c2a103d8e2b232ba4d125737cd2149906137e1565b60405180910390a260066000819052600d602052604051600080516020613b96833981519152906119af907fa48544818c2c710afa9849c61ec9c60e8acdb3eaa2885f33b37e118cc8fd04ac906137e1565b60405180910390a260076000819052600d602052604051600080516020613b9683398151915290611a01907fb91432bedff11256dbe14161d3606a2657bc9dacf8742f6b817d871dd53fb976906137e1565b60405180910390a260086000819052600d602052604051600080516020613b9683398151915290611a53907f0b705463cf5f7356780ee6e96132d37412c1b5816a4d207b8dcd42c349767457906137e1565b60405180910390a260096000819052600d602052604051600080516020613b9683398151915290611a9390600080516020613b76833981519152906137e1565b60405180910390a26009600052600d602052604051600a90600080516020613b9683398151915290611ad490600080516020613b76833981519152906137e1565b60405180910390a26009600052600d602052604051600b90600080516020613b9683398151915290611b1590600080516020613b76833981519152906137e1565b60405180910390a26009600052600d602052604051600c90600080516020613b9683398151915290611b5690600080516020613b76833981519152906137e1565b60405180910390a26009600052600d6020819052604051600080516020613b9683398151915290611b9690600080516020613b76833981519152906137e1565b60405180910390a26009600052600d602052604051600e90600080516020613b9683398151915290611bd790600080516020613b76833981519152906137e1565b60405180910390a26009600052600d602052604051600f90600080516020613b9683398151915290611c1890600080516020613b76833981519152906137e1565b60405180910390a2565b611c2a61205c565b600b805462ff0000198116620100009182900460ff1615909102179055565b600d60205260009081526040902080548190611c649061365c565b80601f0160208091040260200160405190810160405280929190818152602001828054611c909061365c565b8015611cdd5780601f10611cb257610100808354040283529160200191611cdd565b820191906000526020600020905b815481529060010190602001808311611cc057829003601f168201915b5050505050908060010154905082565b611cf561205c565b611cff600061227f565b565b611d0961205c565b600b805461ff001981166101009182900460ff1615909102179055565b6000611d3a6004546001600160a01b031690565b905090565b6040805180820190915260608152600060208201526000828152600d6020526040908190208151808301909252805482908290611d7b9061365c565b80601f0160208091040260200160405190810160405280929190818152602001828054611da79061365c565b8015611df45780601f10611dc957610100808354040283529160200191611df4565b820191906000526020600020905b815481529060010190602001808311611dd757829003601f168201915b505050505081526020016001820154815250509050919050565b611e1661205c565b600a55565b81611e2581612219565b6116e583836122d1565b611e3761205c565b611cff6000600555565b611e49611d26565b6001600160a01b0316336001600160a01b031614611e7a57604051635fc483c560e01b815260040160405180910390fd5b600754600160a01b900460ff1615611ea557604051631551a48f60e11b815260040160405180910390fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b60088054611ed49061365c565b80601f0160208091040260200160405190810160405280929190818152602001828054611f009061365c565b8015611f4d5780601f10611f2257610100808354040283529160200191611f4d565b820191906000526020600020905b815481529060010190602001808311611f3057829003601f168201915b505050505081565b611f5d61205c565b611f6782826122dc565b5050565b846001600160a01b0381163314611f8557611f8533612219565b61133b86868686866123d9565b611f9a61205c565b6001600160a01b038116611fff5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108f1565b6120088161227f565b50565b61201361205c565b6116e560088383612d7c565b61202761205c565b6040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015611f67573d6000803e3d6000fd5b33612065611d26565b6001600160a01b031614611cff5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108f1565b60006001600160e01b0319821663152a902d60e11b148061092b575061092b8261241e565b6000826120ed858461246e565b14949350505050565b6001600160a01b0384166121565760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016108f1565b336000612162856124b3565b9050600061216f856124b3565b9050612180836000898585896124fe565b6000868152602081815260408083206001600160a01b038b168452909152812080548792906121b0908490613888565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461221083600089898989612677565b50505050505050565b6007546001600160a01b03161561200857612008816127d2565b6001600160a01b03851633148061224f575061224f85336107ae565b61226b5760405162461bcd60e51b81526004016108f1906138a0565b6122788585858585612894565b5050505050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611f67338383612a77565b6127106001600160601b038216111561234a5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016108f1565b6001600160a01b0382166123a05760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016108f1565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600555565b6001600160a01b0385163314806123f557506123f585336107ae565b6124115760405162461bcd60e51b81526004016108f1906138a0565b6122788585858585612b57565b60006001600160e01b03198216636cdb3d1360e11b148061244f57506001600160e01b031982166303a24d0760e21b145b8061092b57506301ffc9a760e01b6001600160e01b031983161461092b565b600081815b845181101561169f5761249f82868381518110612492576124926136b6565b6020026020010151612c8f565b9150806124ab816137c8565b915050612473565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106124ed576124ed6136b6565b602090810291909101015292915050565b6001600160a01b0385166125855760005b83518110156125835782818151811061252a5761252a6136b6565b602002602001015160036000868481518110612548576125486136b6565b60200260200101518152602001908152602001600020600082825461256d9190613888565b9091555061257c9050816137c8565b905061250f565b505b6001600160a01b03841661133b5760005b83518110156122105760008482815181106125b3576125b36136b6565b6020026020010151905060008483815181106125d1576125d16136b6565b60200260200101519050600060036000848152602001908152602001600020549050818110156126545760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b60648201526084016108f1565b60009283526003602052604090922091039055612670816137c8565b9050612596565b6001600160a01b0384163b1561133b5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906126bb90899089908890889088906004016138ee565b6020604051808303816000875af19250505080156126f6575060408051601f3d908101601f191682019092526126f391810190613933565b60015b6127a257612702613950565b806308c379a00361273b575061271661396c565b80612721575061273d565b8060405162461bcd60e51b81526004016108f19190612eef565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016108f1565b6001600160e01b0319811663f23a6e6160e01b146122105760405162461bcd60e51b81526004016108f1906139f5565b6007546001600160a01b031680158015906127f757506000816001600160a01b03163b115b15611f6757604051633185c44d60e21b81523060048201526001600160a01b03838116602483015282169063c617113490604401602060405180830381865afa158015612848573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061286c9190613a3d565b611f6757604051633b79c77360e21b81526001600160a01b03831660048201526024016108f1565b81518351146128f65760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016108f1565b6001600160a01b03841661291c5760405162461bcd60e51b81526004016108f190613a5a565b3361292b8187878787876124fe565b60005b8451811015612a1157600085828151811061294b5761294b6136b6565b602002602001015190506000858381518110612969576129696136b6565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156129b95760405162461bcd60e51b81526004016108f190613a9f565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906129f6908490613888565b9250508190555050505080612a0a906137c8565b905061292e565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612a61929190613ae9565b60405180910390a461133b818787878787612cc1565b816001600160a01b0316836001600160a01b031603612aea5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016108f1565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416612b7d5760405162461bcd60e51b81526004016108f190613a5a565b336000612b89856124b3565b90506000612b96856124b3565b9050612ba68389898585896124fe565b6000868152602081815260408083206001600160a01b038c16845290915290205485811015612be75760405162461bcd60e51b81526004016108f190613a9f565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290612c24908490613888565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612c84848a8a8a8a8a612677565b505050505050505050565b6000818310612cab576000828152602084905260409020612cba565b60008381526020839052604090205b9392505050565b6001600160a01b0384163b1561133b5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612d059089908990889088908890600401613b17565b6020604051808303816000875af1925050508015612d40575060408051601f3d908101601f19168201909252612d3d91810190613933565b60015b612d4c57612702613950565b6001600160e01b0319811663bc197c8160e01b146122105760405162461bcd60e51b81526004016108f1906139f5565b828054612d889061365c565b90600052602060002090601f016020900481019282612daa5760008555612df0565b82601f10612dc35782800160ff19823516178555612df0565b82800160010185558215612df0579182015b82811115612df0578235825591602001919060010190612dd5565b50612dfc929150612e00565b5090565b5b80821115612dfc5760008155600101612e01565b600060208284031215612e2757600080fd5b5035919050565b6001600160a01b038116811461200857600080fd5b60008060408385031215612e5657600080fd5b8235612e6181612e2e565b946020939093013593505050565b6001600160e01b03198116811461200857600080fd5b600060208284031215612e9757600080fd5b8135612cba81612e6f565b6000815180845260005b81811015612ec857602081850181015186830182015201612eac565b81811115612eda576000602083870101525b50601f01601f19169290920160200192915050565b602081526000612cba6020830184612ea2565b60008083601f840112612f1457600080fd5b5081356001600160401b03811115612f2b57600080fd5b6020830191508360208260061b850101111561130d57600080fd5b60008083601f840112612f5857600080fd5b5081356001600160401b03811115612f6f57600080fd5b6020830191508360208260051b850101111561130d57600080fd5b60008060008060408587031215612fa057600080fd5b84356001600160401b0380821115612fb757600080fd5b612fc388838901612f02565b90965094506020870135915080821115612fdc57600080fd5b50612fe987828801612f46565b95989497509550505050565b6000806000806000806060878903121561300e57600080fd5b86356001600160401b038082111561302557600080fd5b6130318a838b01612f02565b9098509650602089013591508082111561304a57600080fd5b6130568a838b01612f46565b9096509450604089013591508082111561306f57600080fd5b5061307c89828a01612f46565b979a9699509497509295939492505050565b600080604083850312156130a157600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156130eb576130eb6130b0565b6040525050565b60006001600160401b0382111561310b5761310b6130b0565b5060051b60200190565b600082601f83011261312657600080fd5b81356020613133826130f2565b60405161314082826130c6565b83815260059390931b850182019282810191508684111561316057600080fd5b8286015b8481101561317b5780358352918301918301613164565b509695505050505050565b600082601f83011261319757600080fd5b81356001600160401b038111156131b0576131b06130b0565b6040516131c7601f8301601f1916602001826130c6565b8181528460208386010111156131dc57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561321157600080fd5b853561321c81612e2e565b9450602086013561322c81612e2e565b935060408601356001600160401b038082111561324857600080fd5b61325489838a01613115565b9450606088013591508082111561326a57600080fd5b61327689838a01613115565b9350608088013591508082111561328c57600080fd5b5061329988828901613186565b9150509295509295909350565b6000806000604084860312156132bb57600080fd5b83356132c681612e2e565b925060208401356001600160401b038111156132e157600080fd5b6132ed86828701612f02565b9497909650939450505050565b60008083601f84011261330c57600080fd5b5081356001600160401b0381111561332357600080fd5b60208301915083602082850101111561130d57600080fd5b60008060006040848603121561335057600080fd5b8335925060208401356001600160401b0381111561336d57600080fd5b6132ed868287016132fa565b60006020828403121561338b57600080fd5b8135612cba81612e2e565b600080604083850312156133a957600080fd5b82356001600160401b03808211156133c057600080fd5b818501915085601f8301126133d457600080fd5b813560206133e1826130f2565b6040516133ee82826130c6565b83815260059390931b850182019282810191508984111561340e57600080fd5b948201945b8386101561343557853561342681612e2e565b82529482019490820190613413565b9650508601359250508082111561344b57600080fd5b5061345885828601613115565b9150509250929050565b600081518084526020808501945080840160005b8381101561349257815187529582019590820190600101613476565b509495945050505050565b602081526000612cba6020830184613462565b6040815260006134c36040830185612ea2565b90508260208301529392505050565b6020815260008251604060208401526134ee6060840182612ea2565b9050602084015160408401528091505092915050565b801515811461200857600080fd5b6000806040838503121561352557600080fd5b823561353081612e2e565b9150602083013561354081613504565b809150509250929050565b6000806040838503121561355e57600080fd5b823561356981612e2e565b915060208301356001600160601b038116811461354057600080fd5b6000806040838503121561359857600080fd5b82356135a381612e2e565b9150602083013561354081612e2e565b600080600080600060a086880312156135cb57600080fd5b85356135d681612e2e565b945060208601356135e681612e2e565b9350604086013592506060860135915060808601356001600160401b0381111561360f57600080fd5b61329988828901613186565b6000806020838503121561362e57600080fd5b82356001600160401b0381111561364457600080fd5b613650858286016132fa565b90969095509350505050565b600181811c9082168061367057607f821691505b60208210810361369057634e487b7160e01b600052602260045260246000fd5b50919050565b602080825260069082015265233937bd32b760d11b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b602080825260169082015275115b195b5e1b9d08191bd95cc81b9bdd08195e1a5cdd60521b604082015260600190565b60208082526012908201527113585e081cdd5c1c1b1e481c995858da195960721b604082015260600190565b606084901b6bffffffffffffffffffffffff1916815260006001600160fb1b0383111561375457600080fd5b8260051b8085601485013760009201601401918252509392505050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156137a1576137a1613771565b500290565b6000826137c357634e487b7160e01b600052601260045260246000fd5b500490565b6000600182016137da576137da613771565b5060010190565b600060208083526000845481600182811c91508083168061380357607f831692505b858310810361382057634e487b7160e01b85526022600452602485fd5b87860183815260200181801561383d576001811461384e57613879565b60ff19861682528782019650613879565b60008b81526020902060005b868110156138735781548482015290850190890161385a565b83019750505b50949998505050505050505050565b6000821982111561389b5761389b613771565b500190565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061392890830184612ea2565b979650505050505050565b60006020828403121561394557600080fd5b8151612cba81612e6f565b600060033d11156139695760046000803e5060005160e01c5b90565b600060443d101561397a5790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156139a957505050505090565b82850191508151818111156139c15750505050505090565b843d87010160208285010111156139db5750505050505090565b6139ea602082860101876130c6565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b600060208284031215613a4f57600080fd5b8151612cba81613504565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000613afc6040830185613462565b8281036020840152613b0e8185613462565b95945050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090613b4390830186613462565b8281036060840152613b558186613462565b90508281036080840152613b698185612ea2565b9897505050505050505056fe7b6f1ece0cbe5122a575776770f0494c2d57ed2a50e36c2ba0d811d70ee03b64a109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b55657207a264697066735822122007f6e091bc7695132802359f948c0d1b340e02a84e66a27fc66eb0b946c6d5a164736f6c634300080d003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002e000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000004a00000000000000000000000000000000000000000000000000000000000000580000000000000000000000000000000000000000000000000000000000000066000000000000000000000000000000000000000000000000000000000000007400000000000000000000000000000000000000000000000000000000000000820000000000000000000000000000000000000000000000000000000000000090000000000000000000000000000000000000000000000000000000000000009e00000000000000000000000000000000000000000000000000000000000000ac00000000000000000000000000000000000000000000000000000000000000ba00000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000d600000000000000000000000000000000000000000000000000000000000000e400000000000000000000000000000000000000000000000000000000000000f200000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f347a71646136696c6d35757a79756b3567733735636c347164796c7a7436707a6d6f72797964336833776f37766e7566617765612e617277656176652e6e65742f356d41776551746e615a78525854535f30532d514868655a2d666c6a6f3477505a3932642d7261464259670000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f706578786179626332667934776478656433767736716b6e356f7476746b65657971716674717267666561336b3569376f7277712e617277656176652e6e65742f6553397759434c526363734f354237726230464e3636645a7149544549466e434a696b42745855666447300000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f376d6463666e646667736e6d6d6a72376b78646f75786d6f76786d3773327a337437697677366e6a796a627665686d63346264712e617277656176652e6e65742f2d775969744755306d73596d50315847366c324f72646e35617a75663056743571634a44556832433445630000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f7566373569676963757674617032377a683470356f6a6b7a3778763768746f353576767679676f793278637a7233677a6e7964612e617277656176652e6e65742f6f585f5547514b6c5a6766722d5438663179565a5f65767a7a6433746131775a324e58466d4f7a5a6267590000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f776a777871676737333672797073736d346635333764686c65696476366d67646d6b65767364666c3633626f647562686b6e6b612e617277656176652e6e65742f736d3134474e5f666f34664b544f463776347a72496764664d4d4e6969566b4d715f62433464416e5531510000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f71356f75357a6c327363686f36327a79707972723436767963686733336c7a6665666b6f68376f7672366b366b756e34376475612e617277656176652e6e65742f6831314f355871516a7539724f48346a486e71344563323972795568564f503931592d56355647382d4f670000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f6161356e72703263706b37657a78346f6b6d6f6e616d667177796f6a63797a646179673536677664746a356b7468747a6c3336612e617277656176652e6e65742f4144725976304a36766b7a666a6c4d63304443777468795259794d47446438616f357036715a35355876770000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f716363347364793272326975343463686c6d636477707776757a36326337336662646a656b697237326c6332626a7668366f62612e617277656176652e6e65742f6749584a4478714f6b553577523173454f7a3756706e326866325549306b556950394c466f4b616e3834490000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f733336696374667933776d65616d3735656d726d6c337470786a36697576333478726634676e376267693769777135627a7474612e617277656176652e6e65742f6c767942544c6a646d45417a5f534d6978653576756e794b5633793853384d333454492d69304f687a4f590000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f66337264326d6870377535713236786f6b79333770796436616b3469616366657373676636377770323366323234757a736a34712e617277656176652e6e65742f4c7549394d4f5f394f773136376c5933392d422d41726941434b53556a46392d7a39624c72584b5a6b6e6b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f357a61726a73797a6771727363646d767464796364706c7279676c64626e77727a356c367071377a6978746137326e7a70796e712e617277656176652e6e65742f376b455579786b304979454e6c5a6a7749623178775a597774744850562d66442d55586d442d6d356668730000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f67666264797767706d62796c33646236726e74676e6c72636365786f617867376667736f6f7a767a3763787367646f6e326764712e617277656176652e6e65742f4d554938574d3967634c324d506f746d5a71346945533767584e3870704f646d756669764977334e3059630000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f62776937767666736c346b636673707363326a6d356f6f61676d6679746b6e643568693767647676757a776c3435336b786179612e617277656176652e6e65742f445a4836314c4a6646434c4a386861537a726e414d77754a7161507030664d4f74615a73766e64717544410000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f6569616664686f6a3433327a367372366f7666716335796f676879656f367664336666357070766c3466713761327468356c37612e617277656176652e6e65742f496742526e636e6d395a394b506e564c4158634f4d6642486571505a5339652d712d46683847706e3676340000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f7a73356c6935646e36736d7a6c7367796c746f666f6d636a6e3269746b6b6c627765346f66646278366662636c6c70766e6c76712e617277656176652e6e65742f7a4c7130644733306d5a584932467a63567a424a627045314b5747784f4f4b4d4e5f46434a61333161757300000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f646c6e716a7466357133733232647a6d79636b746b336b6c636135706a62707a6c706f716b35357777626c323674367a6a356f612e617277656176652e6e65742f477473457a4c3247356130504c4d43564e57314c4544723068666c62335156337472425872305f5a543177000000000000000000000000

Deployed Bytecode

0x6080604052600436106102705760003560e01c80637d8966e41161014f578063b8d1e532116100c1578063e985e9c51161007a578063e985e9c514610793578063ecba222a146107dc578063f242432a146107fd578063f2fde38b1461081d578063f87f44b91461083d578063fa09e6301461085d57600080fd5b8063b8d1e532146106c7578063bd85b039146106e7578063beb0a41614610714578063c5f6b7cd14610729578063d691e43c1461073f578063e2b9e1861461075f57600080fd5b80639b2f3f8f116101135780639b2f3f8f14610604578063a22cb46514610624578063a8cab3d114610644578063aa1b103f1461065e578063af17dea614610673578063b0ccc31e146106a757600080fd5b80637d8966e4146105565780638da5cb5b1461056b578063957f090f1461059857806399288dbb146105c55780639acbebee146105e457600080fd5b806338e21cce116101e85780635ef9432a116101ac5780635ef9432a146104be57806362a5af3b146104d35780636817c76c146104e85780636bbede2d146104fe5780636e58e4c714610513578063715018a61461054157600080fd5b806338e21cce146104025780634783f0ef146104225780634e1273f4146104425780634f558e791461046f578063522f68151461049e57600080fd5b80631b8478ed1161023a5780631b8478ed1461033a5780632a55205a1461034d5780632eb2c2d61461038c5780632eb4a7ab146103ac5780632fa0aa22146103c257806331d41c69146103e257600080fd5b8062728e4614610275578062fdd58e1461029757806301ffc9a7146102ca5780630e89341c146102fa578063126c2fa614610327575b600080fd5b34801561028157600080fd5b50610295610290366004612e15565b61087d565b005b3480156102a357600080fd5b506102b76102b2366004612e43565b61088a565b6040519081526020015b60405180910390f35b3480156102d657600080fd5b506102ea6102e5366004612e85565b610920565b60405190151581526020016102c1565b34801561030657600080fd5b5061031a610315366004612e15565b610931565b6040516102c19190612eef565b610295610335366004612f8a565b610a26565b610295610348366004612ff5565b610e43565b34801561035957600080fd5b5061036d61036836600461308e565b611266565b604080516001600160a01b0390931683526020830191909152016102c1565b34801561039857600080fd5b506102956103a73660046131f9565b611314565b3480156103b857600080fd5b506102b7600c5481565b3480156103ce57600080fd5b506102956103dd3660046132a6565b611343565b3480156103ee57600080fd5b506102956103fd36600461333b565b6114c1565b34801561040e57600080fd5b506102ea61041d366004613379565b611539565b34801561042e57600080fd5b5061029561043d366004612e15565b611571565b34801561044e57600080fd5b5061046261045d366004613396565b61157e565b6040516102c1919061349d565b34801561047b57600080fd5b506102ea61048a366004612e15565b600090815260036020526040902054151590565b3480156104aa57600080fd5b506102956104b9366004612e43565b6116a7565b3480156104ca57600080fd5b506102956116ea565b3480156104df57600080fd5b50610295611766565b3480156104f457600080fd5b506102b760095481565b34801561050a57600080fd5b50610295611c22565b34801561051f57600080fd5b5061053361052e366004612e15565b611c49565b6040516102c19291906134b0565b34801561054d57600080fd5b50610295611ced565b34801561056257600080fd5b50610295611d01565b34801561057757600080fd5b50610580611d26565b6040516001600160a01b0390911681526020016102c1565b3480156105a457600080fd5b506105b86105b3366004612e15565b611d3f565b6040516102c191906134d2565b3480156105d157600080fd5b50600b546102ea90610100900460ff1681565b3480156105f057600080fd5b506102956105ff366004612e15565b611e0e565b34801561061057600080fd5b50600b546102ea9062010000900460ff1681565b34801561063057600080fd5b5061029561063f366004613512565b611e1b565b34801561065057600080fd5b50600b546102ea9060ff1681565b34801561066a57600080fd5b50610295611e2f565b34801561067f57600080fd5b5061031a60405180604001604052806008815260200167454c454d584e545360c01b81525081565b3480156106b357600080fd5b50600754610580906001600160a01b031681565b3480156106d357600080fd5b506102956106e2366004613379565b611e41565b3480156106f357600080fd5b506102b7610702366004612e15565b60009081526003602052604090205490565b34801561072057600080fd5b5061031a611ec7565b34801561073557600080fd5b506102b7600a5481565b34801561074b57600080fd5b5061029561075a36600461354b565b611f55565b34801561076b57600080fd5b5061031a60405180604001604052806008815260200167456c656d786e747360c01b81525081565b34801561079f57600080fd5b506102ea6107ae366004613585565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156107e857600080fd5b506007546102ea90600160a01b900460ff1681565b34801561080957600080fd5b506102956108183660046135b3565b611f6b565b34801561082957600080fd5b50610295610838366004613379565b611f92565b34801561084957600080fd5b5061029561085836600461361b565b61200b565b34801561086957600080fd5b50610295610878366004613379565b61201f565b61088561205c565b600955565b60006001600160a01b0383166108fa5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b600061092b826120bb565b92915050565b6000818152600360205260409020546060906109885760405162461bcd60e51b81526020600482015260166024820152752aa9249d103737b732bc34b9ba32b73a103a37b5b2b760511b60448201526064016108f1565b6000828152600d6020526040902080546109a19061365c565b80601f01602080910402602001604051908101604052809291908181526020018280546109cd9061365c565b8015610a1a5780601f106109ef57610100808354040283529160200191610a1a565b820191906000526020600020905b8154815290600101906020018083116109fd57829003601f168201915b50505050509050919050565b323314610a755760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e7472616374000060448201526064016108f1565b600b5462010000900460ff16610ac05760405162461bcd60e51b815260206004820152601060248201526f14d85b19481b9bdd081cdd185c9d195960821b60448201526064016108f1565b8260038110610b115760405162461bcd60e51b815260206004820152601960248201527f4d6178696d756d2074776f206d696e747320616c6c6f7765640000000000000060448201526064016108f1565b33600881901c6000908152600f6020526040902054600160ff9092169190911b1615610b705760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481b5a5b9d195960921b60448201526064016108f1565b600b5460ff1615610b935760405162461bcd60e51b81526004016108f190613696565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610c0d84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600c5491508490506120e0565b610c495760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b60448201526064016108f1565b60008060008060005b8a8a85818110610c6457610c646136b6565b9050604002016000013592508a8a85818110610c8257610c826136b6565b905060400201602001359150600d600084815260200190815260200160002060010154905060008111610cc75760405162461bcd60e51b81526004016108f1906136cc565b8082610cdf8560009081526003602052604090205490565b011115610cfe5760405162461bcd60e51b81526004016108f1906136fc565b81600114610d425760405162461bcd60e51b815260206004820152601160248201527043616e206f6e6c79206d696e74206f6e6560781b60448201526064016108f1565b81600a540285019450868460010194508410610c5257843414610d9e5760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd0811551208185b5bdd5b9d60621b60448201526064016108f1565b33600881901c6000908152600f602052604090208054600160ff9093169290921b9091179055600093505b8a8a85818110610ddb57610ddb6136b6565b9050604002016000013592508a8a85818110610df957610df96136b6565b9050604002016020013591506000821115610e2957610e29338484604051806020016040528060008152506120f6565b868460010194508410610dc9575050505050505050505050565b323314610e925760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e7472616374000060448201526064016108f1565b600b54610100900460ff16610edc5760405162461bcd60e51b815260206004820152601060248201526f14d85b19481b9bdd081cdd185c9d195960821b60448201526064016108f1565b84818114610f235760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a59081b5a5b9d081c995c5d595cdd60621b60448201526064016108f1565b33600881901c6000908152600e6020526040902054600160ff9092169190911b1615610f825760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481b5a5b9d195960921b60448201526064016108f1565b600b5460ff1615610fa55760405162461bcd60e51b81526004016108f190613696565b6000338484604051602001610fbc93929190613728565b60405160208183030381529060405280519060200120905061101586868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600c5491508490506120e0565b6110515760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b60448201526064016108f1565b60008060008060005b8c8c8581811061106c5761106c6136b6565b9050604002016000013592508c8c8581811061108a5761108a6136b6565b905060400201602001359150600d6000848152602001908152602001600020600101549050600081116110cf5760405162461bcd60e51b81526004016108f1906136cc565b80826110e78560009081526003602052604090205490565b0111156111065760405162461bcd60e51b81526004016108f1906136fc565b888885818110611118576111186136b6565b905060200201358211156111635760405162461bcd60e51b815260206004820152601260248201527122bc31b2b2b2399030b63637b1b0ba34b7b760711b60448201526064016108f1565b81600954028501945086846001019450841061105a578434146111bf5760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd0811551208185b5bdd5b9d60621b60448201526064016108f1565b33600881901c6000908152600e602052604090208054600160ff9093169290921b9091179055600093505b8c8c858181106111fc576111fc6136b6565b9050604002016000013592508c8c8581811061121a5761121a6136b6565b905060400201602001359150600082111561124a5761124a338484604051806020016040528060008152506120f6565b8684600101945084106111ea5750505050505050505050505050565b60008281526006602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916112db5750604080518082019091526005546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906112fa906001600160601b031687613787565b61130491906137a6565b91519350909150505b9250929050565b846001600160a01b038116331461132e5761132e33612219565b61133b8686868686612233565b505050505050565b61134b61205c565b60005b600b5460ff16156113715760405162461bcd60e51b81526004016108f190613696565b6000600d6000858585818110611389576113896136b6565b90506040020160000135815260200190815260200160002060010154116113c25760405162461bcd60e51b81526004016108f1906136cc565b600d60008484848181106113d8576113d86136b6565b90506040020160000135815260200190815260200160002060010154838383818110611406576114066136b6565b90506040020160200135611441858585818110611425576114256136b6565b9050604002016000013560009081526003602052604090205490565b0111156114605760405162461bcd60e51b81526004016108f1906136fc565b6114b184848484818110611476576114766136b6565b90506040020160000135858585818110611492576114926136b6565b90506040020160200135604051806020016040528060008152506120f6565b60010181811061134e5750505050565b6114c961205c565b600b5460ff16156114ec5760405162461bcd60e51b81526004016108f190613696565b6000838152600d602052604090206001015461151a5760405162461bcd60e51b81526004016108f1906136cc565b6000838152600d60205260409020611533908383612d7c565b50505050565b72ffffffffffffffffffffffffffffffffffffff600882901c166000908152600e6020526040812054600160ff84161b16151561092b565b61157961205c565b600c55565b606081518351146115e35760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016108f1565b600083516001600160401b038111156115fe576115fe6130b0565b604051908082528060200260200182016040528015611627578160200160208202803683370190505b50905060005b845181101561169f5761167285828151811061164b5761164b6136b6565b6020026020010151858381518110611665576116656136b6565b602002602001015161088a565b828281518110611684576116846136b6565b6020908102919091010152611698816137c8565b905061162d565b509392505050565b6116af61205c565b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156116e5573d6000803e3d6000fd5b505050565b6116f2611d26565b6001600160a01b0316336001600160a01b03161461172357604051635fc483c560e01b815260040160405180910390fd5b600754600160a01b900460ff161561174e57604051631551a48f60e11b815260040160405180910390fd5b600780546001600160a81b031916600160a01b179055565b61176e61205c565b600b805460ff191660011790556000808052600d602052604051600080516020613b96833981519152906117c3907f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ee906137e1565b60405180910390a260016000819052600d602052604051600080516020613b9683398151915290611815907ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c5906137e1565b60405180910390a260026000819052600d602052604051600080516020613b9683398151915290611867907f10a81eed9d63d16face5e76357905348e6253d3394086026bb2bf2145d7cc249906137e1565b60405180910390a260036000819052600d602052604051600080516020613b96833981519152906118b9907f26b4a10d0f0b04925c23bd4480ee147c916e5e87a7d68206a533dad160ac81e2906137e1565b60405180910390a260046000819052600d602052604051600080516020613b968339815191529061190b907fafafe8948a4ed9d478b1e9a5780b119b5edd00ea7d07bc35bef7c814824eb94b906137e1565b60405180910390a260056000819052600d602052604051600080516020613b968339815191529061195d907fa5049387d9cb649c59f4bda666105ba636c2a103d8e2b232ba4d125737cd2149906137e1565b60405180910390a260066000819052600d602052604051600080516020613b96833981519152906119af907fa48544818c2c710afa9849c61ec9c60e8acdb3eaa2885f33b37e118cc8fd04ac906137e1565b60405180910390a260076000819052600d602052604051600080516020613b9683398151915290611a01907fb91432bedff11256dbe14161d3606a2657bc9dacf8742f6b817d871dd53fb976906137e1565b60405180910390a260086000819052600d602052604051600080516020613b9683398151915290611a53907f0b705463cf5f7356780ee6e96132d37412c1b5816a4d207b8dcd42c349767457906137e1565b60405180910390a260096000819052600d602052604051600080516020613b9683398151915290611a9390600080516020613b76833981519152906137e1565b60405180910390a26009600052600d602052604051600a90600080516020613b9683398151915290611ad490600080516020613b76833981519152906137e1565b60405180910390a26009600052600d602052604051600b90600080516020613b9683398151915290611b1590600080516020613b76833981519152906137e1565b60405180910390a26009600052600d602052604051600c90600080516020613b9683398151915290611b5690600080516020613b76833981519152906137e1565b60405180910390a26009600052600d6020819052604051600080516020613b9683398151915290611b9690600080516020613b76833981519152906137e1565b60405180910390a26009600052600d602052604051600e90600080516020613b9683398151915290611bd790600080516020613b76833981519152906137e1565b60405180910390a26009600052600d602052604051600f90600080516020613b9683398151915290611c1890600080516020613b76833981519152906137e1565b60405180910390a2565b611c2a61205c565b600b805462ff0000198116620100009182900460ff1615909102179055565b600d60205260009081526040902080548190611c649061365c565b80601f0160208091040260200160405190810160405280929190818152602001828054611c909061365c565b8015611cdd5780601f10611cb257610100808354040283529160200191611cdd565b820191906000526020600020905b815481529060010190602001808311611cc057829003601f168201915b5050505050908060010154905082565b611cf561205c565b611cff600061227f565b565b611d0961205c565b600b805461ff001981166101009182900460ff1615909102179055565b6000611d3a6004546001600160a01b031690565b905090565b6040805180820190915260608152600060208201526000828152600d6020526040908190208151808301909252805482908290611d7b9061365c565b80601f0160208091040260200160405190810160405280929190818152602001828054611da79061365c565b8015611df45780601f10611dc957610100808354040283529160200191611df4565b820191906000526020600020905b815481529060010190602001808311611dd757829003601f168201915b505050505081526020016001820154815250509050919050565b611e1661205c565b600a55565b81611e2581612219565b6116e583836122d1565b611e3761205c565b611cff6000600555565b611e49611d26565b6001600160a01b0316336001600160a01b031614611e7a57604051635fc483c560e01b815260040160405180910390fd5b600754600160a01b900460ff1615611ea557604051631551a48f60e11b815260040160405180910390fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b60088054611ed49061365c565b80601f0160208091040260200160405190810160405280929190818152602001828054611f009061365c565b8015611f4d5780601f10611f2257610100808354040283529160200191611f4d565b820191906000526020600020905b815481529060010190602001808311611f3057829003601f168201915b505050505081565b611f5d61205c565b611f6782826122dc565b5050565b846001600160a01b0381163314611f8557611f8533612219565b61133b86868686866123d9565b611f9a61205c565b6001600160a01b038116611fff5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108f1565b6120088161227f565b50565b61201361205c565b6116e560088383612d7c565b61202761205c565b6040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015611f67573d6000803e3d6000fd5b33612065611d26565b6001600160a01b031614611cff5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108f1565b60006001600160e01b0319821663152a902d60e11b148061092b575061092b8261241e565b6000826120ed858461246e565b14949350505050565b6001600160a01b0384166121565760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016108f1565b336000612162856124b3565b9050600061216f856124b3565b9050612180836000898585896124fe565b6000868152602081815260408083206001600160a01b038b168452909152812080548792906121b0908490613888565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461221083600089898989612677565b50505050505050565b6007546001600160a01b03161561200857612008816127d2565b6001600160a01b03851633148061224f575061224f85336107ae565b61226b5760405162461bcd60e51b81526004016108f1906138a0565b6122788585858585612894565b5050505050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611f67338383612a77565b6127106001600160601b038216111561234a5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016108f1565b6001600160a01b0382166123a05760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016108f1565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600555565b6001600160a01b0385163314806123f557506123f585336107ae565b6124115760405162461bcd60e51b81526004016108f1906138a0565b6122788585858585612b57565b60006001600160e01b03198216636cdb3d1360e11b148061244f57506001600160e01b031982166303a24d0760e21b145b8061092b57506301ffc9a760e01b6001600160e01b031983161461092b565b600081815b845181101561169f5761249f82868381518110612492576124926136b6565b6020026020010151612c8f565b9150806124ab816137c8565b915050612473565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106124ed576124ed6136b6565b602090810291909101015292915050565b6001600160a01b0385166125855760005b83518110156125835782818151811061252a5761252a6136b6565b602002602001015160036000868481518110612548576125486136b6565b60200260200101518152602001908152602001600020600082825461256d9190613888565b9091555061257c9050816137c8565b905061250f565b505b6001600160a01b03841661133b5760005b83518110156122105760008482815181106125b3576125b36136b6565b6020026020010151905060008483815181106125d1576125d16136b6565b60200260200101519050600060036000848152602001908152602001600020549050818110156126545760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b60648201526084016108f1565b60009283526003602052604090922091039055612670816137c8565b9050612596565b6001600160a01b0384163b1561133b5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906126bb90899089908890889088906004016138ee565b6020604051808303816000875af19250505080156126f6575060408051601f3d908101601f191682019092526126f391810190613933565b60015b6127a257612702613950565b806308c379a00361273b575061271661396c565b80612721575061273d565b8060405162461bcd60e51b81526004016108f19190612eef565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016108f1565b6001600160e01b0319811663f23a6e6160e01b146122105760405162461bcd60e51b81526004016108f1906139f5565b6007546001600160a01b031680158015906127f757506000816001600160a01b03163b115b15611f6757604051633185c44d60e21b81523060048201526001600160a01b03838116602483015282169063c617113490604401602060405180830381865afa158015612848573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061286c9190613a3d565b611f6757604051633b79c77360e21b81526001600160a01b03831660048201526024016108f1565b81518351146128f65760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016108f1565b6001600160a01b03841661291c5760405162461bcd60e51b81526004016108f190613a5a565b3361292b8187878787876124fe565b60005b8451811015612a1157600085828151811061294b5761294b6136b6565b602002602001015190506000858381518110612969576129696136b6565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156129b95760405162461bcd60e51b81526004016108f190613a9f565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906129f6908490613888565b9250508190555050505080612a0a906137c8565b905061292e565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612a61929190613ae9565b60405180910390a461133b818787878787612cc1565b816001600160a01b0316836001600160a01b031603612aea5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016108f1565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416612b7d5760405162461bcd60e51b81526004016108f190613a5a565b336000612b89856124b3565b90506000612b96856124b3565b9050612ba68389898585896124fe565b6000868152602081815260408083206001600160a01b038c16845290915290205485811015612be75760405162461bcd60e51b81526004016108f190613a9f565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290612c24908490613888565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612c84848a8a8a8a8a612677565b505050505050505050565b6000818310612cab576000828152602084905260409020612cba565b60008381526020839052604090205b9392505050565b6001600160a01b0384163b1561133b5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612d059089908990889088908890600401613b17565b6020604051808303816000875af1925050508015612d40575060408051601f3d908101601f19168201909252612d3d91810190613933565b60015b612d4c57612702613950565b6001600160e01b0319811663bc197c8160e01b146122105760405162461bcd60e51b81526004016108f1906139f5565b828054612d889061365c565b90600052602060002090601f016020900481019282612daa5760008555612df0565b82601f10612dc35782800160ff19823516178555612df0565b82800160010185558215612df0579182015b82811115612df0578235825591602001919060010190612dd5565b50612dfc929150612e00565b5090565b5b80821115612dfc5760008155600101612e01565b600060208284031215612e2757600080fd5b5035919050565b6001600160a01b038116811461200857600080fd5b60008060408385031215612e5657600080fd5b8235612e6181612e2e565b946020939093013593505050565b6001600160e01b03198116811461200857600080fd5b600060208284031215612e9757600080fd5b8135612cba81612e6f565b6000815180845260005b81811015612ec857602081850181015186830182015201612eac565b81811115612eda576000602083870101525b50601f01601f19169290920160200192915050565b602081526000612cba6020830184612ea2565b60008083601f840112612f1457600080fd5b5081356001600160401b03811115612f2b57600080fd5b6020830191508360208260061b850101111561130d57600080fd5b60008083601f840112612f5857600080fd5b5081356001600160401b03811115612f6f57600080fd5b6020830191508360208260051b850101111561130d57600080fd5b60008060008060408587031215612fa057600080fd5b84356001600160401b0380821115612fb757600080fd5b612fc388838901612f02565b90965094506020870135915080821115612fdc57600080fd5b50612fe987828801612f46565b95989497509550505050565b6000806000806000806060878903121561300e57600080fd5b86356001600160401b038082111561302557600080fd5b6130318a838b01612f02565b9098509650602089013591508082111561304a57600080fd5b6130568a838b01612f46565b9096509450604089013591508082111561306f57600080fd5b5061307c89828a01612f46565b979a9699509497509295939492505050565b600080604083850312156130a157600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156130eb576130eb6130b0565b6040525050565b60006001600160401b0382111561310b5761310b6130b0565b5060051b60200190565b600082601f83011261312657600080fd5b81356020613133826130f2565b60405161314082826130c6565b83815260059390931b850182019282810191508684111561316057600080fd5b8286015b8481101561317b5780358352918301918301613164565b509695505050505050565b600082601f83011261319757600080fd5b81356001600160401b038111156131b0576131b06130b0565b6040516131c7601f8301601f1916602001826130c6565b8181528460208386010111156131dc57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561321157600080fd5b853561321c81612e2e565b9450602086013561322c81612e2e565b935060408601356001600160401b038082111561324857600080fd5b61325489838a01613115565b9450606088013591508082111561326a57600080fd5b61327689838a01613115565b9350608088013591508082111561328c57600080fd5b5061329988828901613186565b9150509295509295909350565b6000806000604084860312156132bb57600080fd5b83356132c681612e2e565b925060208401356001600160401b038111156132e157600080fd5b6132ed86828701612f02565b9497909650939450505050565b60008083601f84011261330c57600080fd5b5081356001600160401b0381111561332357600080fd5b60208301915083602082850101111561130d57600080fd5b60008060006040848603121561335057600080fd5b8335925060208401356001600160401b0381111561336d57600080fd5b6132ed868287016132fa565b60006020828403121561338b57600080fd5b8135612cba81612e2e565b600080604083850312156133a957600080fd5b82356001600160401b03808211156133c057600080fd5b818501915085601f8301126133d457600080fd5b813560206133e1826130f2565b6040516133ee82826130c6565b83815260059390931b850182019282810191508984111561340e57600080fd5b948201945b8386101561343557853561342681612e2e565b82529482019490820190613413565b9650508601359250508082111561344b57600080fd5b5061345885828601613115565b9150509250929050565b600081518084526020808501945080840160005b8381101561349257815187529582019590820190600101613476565b509495945050505050565b602081526000612cba6020830184613462565b6040815260006134c36040830185612ea2565b90508260208301529392505050565b6020815260008251604060208401526134ee6060840182612ea2565b9050602084015160408401528091505092915050565b801515811461200857600080fd5b6000806040838503121561352557600080fd5b823561353081612e2e565b9150602083013561354081613504565b809150509250929050565b6000806040838503121561355e57600080fd5b823561356981612e2e565b915060208301356001600160601b038116811461354057600080fd5b6000806040838503121561359857600080fd5b82356135a381612e2e565b9150602083013561354081612e2e565b600080600080600060a086880312156135cb57600080fd5b85356135d681612e2e565b945060208601356135e681612e2e565b9350604086013592506060860135915060808601356001600160401b0381111561360f57600080fd5b61329988828901613186565b6000806020838503121561362e57600080fd5b82356001600160401b0381111561364457600080fd5b613650858286016132fa565b90969095509350505050565b600181811c9082168061367057607f821691505b60208210810361369057634e487b7160e01b600052602260045260246000fd5b50919050565b602080825260069082015265233937bd32b760d11b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b602080825260169082015275115b195b5e1b9d08191bd95cc81b9bdd08195e1a5cdd60521b604082015260600190565b60208082526012908201527113585e081cdd5c1c1b1e481c995858da195960721b604082015260600190565b606084901b6bffffffffffffffffffffffff1916815260006001600160fb1b0383111561375457600080fd5b8260051b8085601485013760009201601401918252509392505050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156137a1576137a1613771565b500290565b6000826137c357634e487b7160e01b600052601260045260246000fd5b500490565b6000600182016137da576137da613771565b5060010190565b600060208083526000845481600182811c91508083168061380357607f831692505b858310810361382057634e487b7160e01b85526022600452602485fd5b87860183815260200181801561383d576001811461384e57613879565b60ff19861682528782019650613879565b60008b81526020902060005b868110156138735781548482015290850190890161385a565b83019750505b50949998505050505050505050565b6000821982111561389b5761389b613771565b500190565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061392890830184612ea2565b979650505050505050565b60006020828403121561394557600080fd5b8151612cba81612e6f565b600060033d11156139695760046000803e5060005160e01c5b90565b600060443d101561397a5790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156139a957505050505090565b82850191508151818111156139c15750505050505090565b843d87010160208285010111156139db5750505050505090565b6139ea602082860101876130c6565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b600060208284031215613a4f57600080fd5b8151612cba81613504565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000613afc6040830185613462565b8281036020840152613b0e8185613462565b95945050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090613b4390830186613462565b8281036060840152613b558186613462565b90508281036080840152613b698185612ea2565b9897505050505050505056fe7b6f1ece0cbe5122a575776770f0494c2d57ed2a50e36c2ba0d811d70ee03b64a109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b55657207a264697066735822122007f6e091bc7695132802359f948c0d1b340e02a84e66a27fc66eb0b946c6d5a164736f6c634300080d0033

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

00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002e000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000004a00000000000000000000000000000000000000000000000000000000000000580000000000000000000000000000000000000000000000000000000000000066000000000000000000000000000000000000000000000000000000000000007400000000000000000000000000000000000000000000000000000000000000820000000000000000000000000000000000000000000000000000000000000090000000000000000000000000000000000000000000000000000000000000009e00000000000000000000000000000000000000000000000000000000000000ac00000000000000000000000000000000000000000000000000000000000000ba00000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000d600000000000000000000000000000000000000000000000000000000000000e400000000000000000000000000000000000000000000000000000000000000f200000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f347a71646136696c6d35757a79756b3567733735636c347164796c7a7436707a6d6f72797964336833776f37766e7566617765612e617277656176652e6e65742f356d41776551746e615a78525854535f30532d514868655a2d666c6a6f3477505a3932642d7261464259670000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f706578786179626332667934776478656433767736716b6e356f7476746b65657971716674717267666561336b3569376f7277712e617277656176652e6e65742f6553397759434c526363734f354237726230464e3636645a7149544549466e434a696b42745855666447300000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f376d6463666e646667736e6d6d6a72376b78646f75786d6f76786d3773327a337437697677366e6a796a627665686d63346264712e617277656176652e6e65742f2d775969744755306d73596d50315847366c324f72646e35617a75663056743571634a44556832433445630000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f7566373569676963757674617032377a683470356f6a6b7a3778763768746f353576767679676f793278637a7233677a6e7964612e617277656176652e6e65742f6f585f5547514b6c5a6766722d5438663179565a5f65767a7a6433746131775a324e58466d4f7a5a6267590000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f776a777871676737333672797073736d346635333764686c65696476366d67646d6b65767364666c3633626f647562686b6e6b612e617277656176652e6e65742f736d3134474e5f666f34664b544f463776347a72496764664d4d4e6969566b4d715f62433464416e5531510000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f71356f75357a6c327363686f36327a79707972723436767963686733336c7a6665666b6f68376f7672366b366b756e34376475612e617277656176652e6e65742f6831314f355871516a7539724f48346a486e71344563323972795568564f503931592d56355647382d4f670000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f6161356e72703263706b37657a78346f6b6d6f6e616d667177796f6a63797a646179673536677664746a356b7468747a6c3336612e617277656176652e6e65742f4144725976304a36766b7a666a6c4d63304443777468795259794d47446438616f357036715a35355876770000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f716363347364793272326975343463686c6d636477707776757a36326337336662646a656b697237326c6332626a7668366f62612e617277656176652e6e65742f6749584a4478714f6b553577523173454f7a3756706e326866325549306b556950394c466f4b616e3834490000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f733336696374667933776d65616d3735656d726d6c337470786a36697576333478726634676e376267693769777135627a7474612e617277656176652e6e65742f6c767942544c6a646d45417a5f534d6978653576756e794b5633793853384d333454492d69304f687a4f590000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f66337264326d6870377535713236786f6b79333770796436616b3469616366657373676636377770323366323234757a736a34712e617277656176652e6e65742f4c7549394d4f5f394f773136376c5933392d422d41726941434b53556a46392d7a39624c72584b5a6b6e6b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f357a61726a73797a6771727363646d767464796364706c7279676c64626e77727a356c367071377a6978746137326e7a70796e712e617277656176652e6e65742f376b455579786b304979454e6c5a6a7749623178775a597774744850562d66442d55586d442d6d356668730000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f67666264797767706d62796c33646236726e74676e6c72636365786f617867376667736f6f7a767a3763787367646f6e326764712e617277656176652e6e65742f4d554938574d3967634c324d506f746d5a71346945533767584e3870704f646d756669764977334e3059630000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f62776937767666736c346b636673707363326a6d356f6f61676d6679746b6e643568693767647676757a776c3435336b786179612e617277656176652e6e65742f445a4836314c4a6646434c4a386861537a726e414d77754a7161507030664d4f74615a73766e64717544410000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f6569616664686f6a3433327a367372366f7666716335796f676879656f367664336666357070766c3466713761327468356c37612e617277656176652e6e65742f496742526e636e6d395a394b506e564c4158634f4d6642486571505a5339652d712d46683847706e3676340000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f7a73356c6935646e36736d7a6c7367796c746f666f6d636a6e3269746b6b6c627765346f66646278366662636c6c70766e6c76712e617277656176652e6e65742f7a4c7130644733306d5a584932467a63567a424a627045314b5747784f4f4b4d4e5f46434a61333161757300000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000007468747470733a2f2f646c6e716a7466357133733232647a6d79636b746b336b6c636135706a62707a6c706f716b35357777626c323674367a6a356f612e617277656176652e6e65742f477473457a4c3247356130504c4d43564e57314c4544723068666c62335156337472425872305f5a543177000000000000000000000000

-----Decoded View---------------
Arg [0] : els (tuple[]): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]

-----Encoded View---------------
130 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000010
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [3] : 00000000000000000000000000000000000000000000000000000000000002e0
Arg [4] : 00000000000000000000000000000000000000000000000000000000000003c0
Arg [5] : 00000000000000000000000000000000000000000000000000000000000004a0
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000580
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000660
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000740
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000820
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000900
Arg [11] : 00000000000000000000000000000000000000000000000000000000000009e0
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000ac0
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000ba0
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000c80
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000d60
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000e40
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000f20
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [19] : 000000000000000000000000000000000000000000000000000000000000003c
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000074
Arg [21] : 68747470733a2f2f347a71646136696c6d35757a79756b3567733735636c3471
Arg [22] : 64796c7a7436707a6d6f72797964336833776f37766e7566617765612e617277
Arg [23] : 656176652e6e65742f356d41776551746e615a78525854535f30532d51486865
Arg [24] : 5a2d666c6a6f3477505a3932642d726146425967000000000000000000000000
Arg [25] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [26] : 000000000000000000000000000000000000000000000000000000000000003c
Arg [27] : 0000000000000000000000000000000000000000000000000000000000000074
Arg [28] : 68747470733a2f2f706578786179626332667934776478656433767736716b6e
Arg [29] : 356f7476746b65657971716674717267666561336b3569376f7277712e617277
Arg [30] : 656176652e6e65742f6553397759434c526363734f354237726230464e363664
Arg [31] : 5a7149544549466e434a696b4274585566644730000000000000000000000000
Arg [32] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [33] : 000000000000000000000000000000000000000000000000000000000000003c
Arg [34] : 0000000000000000000000000000000000000000000000000000000000000074
Arg [35] : 68747470733a2f2f376d6463666e646667736e6d6d6a72376b78646f75786d6f
Arg [36] : 76786d3773327a337437697677366e6a796a627665686d63346264712e617277
Arg [37] : 656176652e6e65742f2d775969744755306d73596d50315847366c324f72646e
Arg [38] : 35617a75663056743571634a4455683243344563000000000000000000000000
Arg [39] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [40] : 000000000000000000000000000000000000000000000000000000000000003c
Arg [41] : 0000000000000000000000000000000000000000000000000000000000000074
Arg [42] : 68747470733a2f2f7566373569676963757674617032377a683470356f6a6b7a
Arg [43] : 3778763768746f353576767679676f793278637a7233677a6e7964612e617277
Arg [44] : 656176652e6e65742f6f585f5547514b6c5a6766722d5438663179565a5f6576
Arg [45] : 7a7a6433746131775a324e58466d4f7a5a626759000000000000000000000000
Arg [46] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [47] : 000000000000000000000000000000000000000000000000000000000000003c
Arg [48] : 0000000000000000000000000000000000000000000000000000000000000074
Arg [49] : 68747470733a2f2f776a777871676737333672797073736d346635333764686c
Arg [50] : 65696476366d67646d6b65767364666c3633626f647562686b6e6b612e617277
Arg [51] : 656176652e6e65742f736d3134474e5f666f34664b544f463776347a72496764
Arg [52] : 664d4d4e6969566b4d715f62433464416e553151000000000000000000000000
Arg [53] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [54] : 000000000000000000000000000000000000000000000000000000000000003c
Arg [55] : 0000000000000000000000000000000000000000000000000000000000000074
Arg [56] : 68747470733a2f2f71356f75357a6c327363686f36327a797079727234367679
Arg [57] : 63686733336c7a6665666b6f68376f7672366b366b756e34376475612e617277
Arg [58] : 656176652e6e65742f6831314f355871516a7539724f48346a486e7134456332
Arg [59] : 3972795568564f503931592d56355647382d4f67000000000000000000000000
Arg [60] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [61] : 000000000000000000000000000000000000000000000000000000000000003c
Arg [62] : 0000000000000000000000000000000000000000000000000000000000000074
Arg [63] : 68747470733a2f2f6161356e72703263706b37657a78346f6b6d6f6e616d6671
Arg [64] : 77796f6a63797a646179673536677664746a356b7468747a6c3336612e617277
Arg [65] : 656176652e6e65742f4144725976304a36766b7a666a6c4d6330444377746879
Arg [66] : 5259794d47446438616f357036715a3535587677000000000000000000000000
Arg [67] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [68] : 000000000000000000000000000000000000000000000000000000000000003c
Arg [69] : 0000000000000000000000000000000000000000000000000000000000000074
Arg [70] : 68747470733a2f2f716363347364793272326975343463686c6d636477707776
Arg [71] : 757a36326337336662646a656b697237326c6332626a7668366f62612e617277
Arg [72] : 656176652e6e65742f6749584a4478714f6b553577523173454f7a3756706e32
Arg [73] : 6866325549306b556950394c466f4b616e383449000000000000000000000000
Arg [74] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [75] : 000000000000000000000000000000000000000000000000000000000000003c
Arg [76] : 0000000000000000000000000000000000000000000000000000000000000074
Arg [77] : 68747470733a2f2f733336696374667933776d65616d3735656d726d6c337470
Arg [78] : 786a36697576333478726634676e376267693769777135627a7474612e617277
Arg [79] : 656176652e6e65742f6c767942544c6a646d45417a5f534d6978653576756e79
Arg [80] : 4b5633793853384d333454492d69304f687a4f59000000000000000000000000
Arg [81] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [82] : 000000000000000000000000000000000000000000000000000000000000003c
Arg [83] : 0000000000000000000000000000000000000000000000000000000000000074
Arg [84] : 68747470733a2f2f66337264326d6870377535713236786f6b79333770796436
Arg [85] : 616b3469616366657373676636377770323366323234757a736a34712e617277
Arg [86] : 656176652e6e65742f4c7549394d4f5f394f773136376c5933392d422d417269
Arg [87] : 41434b53556a46392d7a39624c72584b5a6b6e6b000000000000000000000000
Arg [88] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [89] : 000000000000000000000000000000000000000000000000000000000000003c
Arg [90] : 0000000000000000000000000000000000000000000000000000000000000074
Arg [91] : 68747470733a2f2f357a61726a73797a6771727363646d767464796364706c72
Arg [92] : 79676c64626e77727a356c367071377a6978746137326e7a70796e712e617277
Arg [93] : 656176652e6e65742f376b455579786b304979454e6c5a6a7749623178775a59
Arg [94] : 7774744850562d66442d55586d442d6d35666873000000000000000000000000
Arg [95] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [96] : 000000000000000000000000000000000000000000000000000000000000003c
Arg [97] : 0000000000000000000000000000000000000000000000000000000000000074
Arg [98] : 68747470733a2f2f67666264797767706d62796c33646236726e74676e6c7263
Arg [99] : 6365786f617867376667736f6f7a767a3763787367646f6e326764712e617277
Arg [100] : 656176652e6e65742f4d554938574d3967634c324d506f746d5a713469455337
Arg [101] : 67584e3870704f646d756669764977334e305963000000000000000000000000
Arg [102] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [103] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [104] : 0000000000000000000000000000000000000000000000000000000000000074
Arg [105] : 68747470733a2f2f62776937767666736c346b636673707363326a6d356f6f61
Arg [106] : 676d6679746b6e643568693767647676757a776c3435336b786179612e617277
Arg [107] : 656176652e6e65742f445a4836314c4a6646434c4a386861537a726e414d7775
Arg [108] : 4a7161507030664d4f74615a73766e6471754441000000000000000000000000
Arg [109] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [110] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [111] : 0000000000000000000000000000000000000000000000000000000000000074
Arg [112] : 68747470733a2f2f6569616664686f6a3433327a367372366f7666716335796f
Arg [113] : 676879656f367664336666357070766c3466713761327468356c37612e617277
Arg [114] : 656176652e6e65742f496742526e636e6d395a394b506e564c4158634f4d6642
Arg [115] : 486571505a5339652d712d46683847706e367634000000000000000000000000
Arg [116] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [117] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [118] : 0000000000000000000000000000000000000000000000000000000000000074
Arg [119] : 68747470733a2f2f7a73356c6935646e36736d7a6c7367796c746f666f6d636a
Arg [120] : 6e3269746b6b6c627765346f66646278366662636c6c70766e6c76712e617277
Arg [121] : 656176652e6e65742f7a4c7130644733306d5a584932467a63567a424a627045
Arg [122] : 314b5747784f4f4b4d4e5f46434a613331617573000000000000000000000000
Arg [123] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [124] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [125] : 0000000000000000000000000000000000000000000000000000000000000074
Arg [126] : 68747470733a2f2f646c6e716a7466357133733232647a6d79636b746b336b6c
Arg [127] : 636135706a62707a6c706f716b35357777626c323674367a6a356f612e617277
Arg [128] : 656176652e6e65742f477473457a4c3247356130504c4d43564e57314c454472
Arg [129] : 3068666c62335156337472425872305f5a543177000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

Elemxnts is a collection exploring the natural world, drawn by Ghxsts artist GxngYxng.There are 780 editions total. 12 Elemxnts have 60 editions each, and four are rare. Space has 30 editions, Energy has 15, Matter has 10, and Time has 5.

Validator Index Block Amount
View All Withdrawals

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

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