ETH Price: $3,863.78 (+0.39%)

Token

One Truth Genesis (OTG)
 

Overview

Max Total Supply

500 OTG

Holders

299

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
2 OTG
0x26dbcf7bb0e7826e087c691228b5f337143fbe16
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
OneTruthGenesis

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 10 : OneTruthGenesis.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.15;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@divergencetech/ethier/contracts/erc721/ERC721APreApproval.sol";

/// @title OneTruthGenesis
/// @author Anthony Graignic (@agraignic)
/// @notice Genesis NFT by the artist duo One Truth (Pase & Dr.Drax)
/// We understand that the contract creation, the minting and the first transactions have a climate impact and decided to contribute to ClimeWorks to counterbalance it for many years.
contract OneTruthGenesis is ERC721APreApproval, Ownable {
    uint256 public constant LIMIT_PER_ADDRESS = 1;
    uint256 public limitPerPublicMint = 2; // 1+1
    uint256 public constant PRESALE_PRICE = 0.2 ether;
    uint256 public constant PUBLIC_PRICE = 0.25 ether;
    /// @notice Revenues & Royalties recipient
    address public beneficiary;

    uint256 public constant MAX_SUPPLY = 501; // 500+1
    uint256 public constant INTERNAL_SUPPLY = 28; // 27+1
    uint256 public constant ALLOWLIST_SUPPLY = 473;

    /// @dev Root hash of addresses for allow list
    bytes32 public allowlistMerkleRoot;

    /// @dev Root hash of addresses for wait list
    bytes32 public waitlistMerkleRoot;

    /// @notice 256-bitmap for claimed allow list
    mapping(uint256 => uint256) private claimedAllowlist;
    /// @notice 256-bitmap for claimed wait list
    mapping(uint256 => uint256) private claimedWaitlist;

    ///@notice Provenance hash of images
    uint256 public immutable provenanceHash;
    ///@notice Starting index, pseudo randomly set
    uint16 public startingIndex;

    /// @notice IPFS base URI for metadata
    string private baseURI;
    /// @dev Contract URI used by OpenSea to get contract details (owner, royalties...)
    string public contractURI;

    /// @notice Timestamp after which some functions will be frozen
    uint256 public freezeAt;

    /// @notice Mint steps
    /// CLOSED sale closed or sold out
    /// ALLOWLIST Allow list sale
    /// WAITLIST Wait list list sale
    /// PUBLIC Public sale
    enum MintStep {
        CLOSED,
        ALLOWLIST,
        WAITLIST,
        PUBLIC
    }
    MintStep public step;

    event MintStepUpdated(MintStep step);
    event AllowlistUpdated();
    event WaitlistUpdated();

    constructor(
        string memory initContractURI,
        string memory initBaseURI,
        address _owner,
        address _beneficiary,
        bytes32 _merkleRoot,
        uint256 _provenanceHash
    ) ERC721A("One Truth Genesis", "OTG") {
        contractURI = initContractURI;
        baseURI = initBaseURI;
        if (_owner != address(0)) {
            _transferOwnership(_owner);
        }
        if (_beneficiary != address(0)) {
            beneficiary = _beneficiary;
        }
        allowlistMerkleRoot = _merkleRoot;
        waitlistMerkleRoot = _merkleRoot;

        provenanceHash = _provenanceHash;

        freezeAt = block.timestamp + 8 weeks;
    }

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

    modifier rightPresalePrice(uint256 _quantity) {
        require(msg.value == PRESALE_PRICE * _quantity, "incorrect price");
        _;
    }

    modifier rightPublicPrice(uint256 _quantity) {
        require(msg.value == PUBLIC_PRICE * _quantity, "incorrect price");
        _;
    }

    modifier belowMaxAllowed(uint256 _quantity, uint8 _max) {
        require(_quantity <= _max, "quantity above max");
        _;
    }

    modifier belowTotalSupply(uint256 _quantity) {
        require(
            totalSupply() + _quantity < MAX_SUPPLY,
            "total supply exceeded"
        );
        _;
    }

    modifier frozen() {
        require(block.timestamp < freezeAt, "frozen function");
        _;
    }

    /// @notice Mint your NFT(s) (public sale)
    /// @param _quantity number of NFT to mint
    /// no gift allowed nor minting from other smartcontracts
    function mint(uint256 _quantity)
        external
        payable
        callerIsUser
        rightPublicPrice(_quantity)
        belowTotalSupply(_quantity)
    {
        require(step == MintStep.PUBLIC, "no public mint yet");
        require(_quantity < limitPerPublicMint, "quantity too high");

        _mint(msg.sender, _quantity);
    }

    /// @notice Mint NFT(s) during allowlist sale
    /// Can only be done once.
    /// @param _quantity number of NFT to mint
    /// @param _max Max number of token allowed to mint
    /// @param _proof Merkle Proof leaf for the sender address
    /// @param _index address index in allowlist
    function allowlistMint(
        uint256 _quantity,
        uint8 _max,
        uint256 _index,
        bytes32[] calldata _proof
    )
        external
        payable
        rightPresalePrice(_quantity)
        belowMaxAllowed(_quantity, _max)
    {
        require(step == MintStep.ALLOWLIST, "no allowlist sale");
        require(
            totalSupply() + _quantity < ALLOWLIST_SUPPLY + INTERNAL_SUPPLY,
            "allowlist supply exceeded"
        );
        require(!hasClaimedAllowlist(_index), "already claimed");
        require(
            isInAllowList(msg.sender, _max, _index, _proof),
            "invalid merkle proof"
        );

        _setClaimedAllowlist(_index);
        _mint(msg.sender, _quantity);
    }

    /// @notice Mint NFT(s) during waitlist sale
    /// Can only be done once.
    /// @param _quantity number of NFT to mint
    /// @param _proof Merkle Proof leaf for the sender address
    /// @param _max Max number of token allowed to mint
    /// @param _index address index in waitlist
    function waitlistMint(
        uint256 _quantity,
        uint8 _max,
        uint256 _index,
        bytes32[] calldata _proof
    )
        external
        payable
        rightPresalePrice(_quantity)
        belowTotalSupply(_quantity)
        belowMaxAllowed(_quantity, _max)
    {
        require(step == MintStep.WAITLIST, "no waitlist sale");
        require(!hasClaimedWaitlist(_index), "already claimed");
        require(
            isInWaitList(msg.sender, _max, _index, _proof),
            "invalid merkle proof"
        );

        _setClaimedWaitlist(_index);
        _mint(msg.sender, _quantity);
    }

    /// @notice Check if an address is in the allowlist with the correct data
    /// @dev Use OpenZeppelin MerkleProof code to compute leaf & verify itS
    /// @param _account address to verify
    /// @param _max max quantity to mint
    /// @param _index address index in waitlist
    /// @param _proof merkle proof to verify
    /// @return true if in allowlist merkle root, false otherwise
    function isInAllowList(
        address _account,
        uint8 _max,
        uint256 _index,
        bytes32[] calldata _proof
    ) public view returns (bool) {
        bytes32 leaf = keccak256(abi.encodePacked(_account, _max, _index));
        return MerkleProof.verify(_proof, allowlistMerkleRoot, leaf);
    }

    /// @notice Check if an address is in the waitlist with the correct data
    /// @dev Use OpenZeppelin MerkleProof code to compute leaf & verify itS
    /// @param _account address to verify
    /// @param _max max quantity to mint
    /// @param _index address index in waitlist
    /// @param _proof merkle proof to verify
    /// @return true if in waitlist merkle root, false otherwise
    function isInWaitList(
        address _account,
        uint8 _max,
        uint256 _index,
        bytes32[] calldata _proof
    ) public view returns (bool) {
        bytes32 leaf = keccak256(abi.encodePacked(_account, _max, _index));
        return MerkleProof.verify(_proof, waitlistMerkleRoot, leaf);
    }

    /// @inheritdoc ERC721A
    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }

    ///@dev Setting starting index only once
    function _setStartingIndex() internal {
        if (startingIndex == 0) {
            uint256 predictableRandom = uint256(
                keccak256(
                    abi.encodePacked(
                        blockhash(block.number - 1),
                        block.difficulty,
                        totalSupply()
                    )
                )
            );
            startingIndex = uint16(predictableRandom % (MAX_SUPPLY - 1));
        }
    }

    /// @notice Check if an index (corresponding to an address) has claimed its allowlist spot
    /// @param index address index in allowlist
    /// @return true if already claimed, false otherwise
    function hasClaimedAllowlist(uint256 index) public view returns (bool) {
        uint256 wordIndex = index / 256;
        uint256 bitIndex = index % 256;
        uint256 mask = (1 << bitIndex);

        return claimedAllowlist[wordIndex] & mask == mask;
    }

    /// @notice Set an index to claimed
    /// @param index address index in allowlist
    function _setClaimedAllowlist(uint256 index) private {
        uint256 wordIndex = index / 256;
        uint256 bitIndex = index % 256;
        claimedAllowlist[wordIndex] =
            claimedAllowlist[wordIndex] |
            (1 << bitIndex);
    }

    /// @notice Check if an index (corresponding to an address) has claimed its waitlist spot
    /// @param index address index in waitlist
    /// @return true if already claimed, false otherwise
    function hasClaimedWaitlist(uint256 index) public view returns (bool) {
        uint256 wordIndex = index / 256;
        uint256 bitIndex = index % 256;
        uint256 mask = (1 << bitIndex);

        return claimedWaitlist[wordIndex] & mask == mask;
    }

    /// @notice Set an index to claimed
    /// @param index address index in waitlist
    function _setClaimedWaitlist(uint256 index) private {
        uint256 wordIndex = index / 256;
        uint256 bitIndex = index % 256;
        claimedWaitlist[wordIndex] =
            claimedWaitlist[wordIndex] |
            (1 << bitIndex);
    }

    /// @inheritdoc ERC721A
    function supportsInterface(bytes4 interfaceId)
        public
        view
        override
        returns (bool)
    {
        return
            interfaceId == this.royaltyInfo.selector ||
            super.supportsInterface(interfaceId);
    }

    ////////////////////////////////////////////////////
    ///// Royalties                                   //
    ////////////////////////////////////////////////////

    /// @dev Royalties are the same for every token that's why we don't use OZ's impl.
    function royaltyInfo(uint256, uint256 amount)
        public
        view
        returns (address, uint256)
    {
        address recipient = beneficiary;
        if (recipient == address(0)) {
            recipient = owner();
        }

        // (royaltiesRecipient || owner), 7.5%
        return (recipient, (amount * 750) / 10000);
    }

    ////////////////////////////////////////////////////
    ///// Only Owner                                  //
    ////////////////////////////////////////////////////

    /// @notice Gift a NFT to someone i.e. a team member, only done by owner
    /// @param _to recipient address
    /// @param _quantity number of NFT to mint and gift
    function gift(address _to, uint256 _quantity) external onlyOwner {
        require(
            totalSupply() + _quantity < INTERNAL_SUPPLY,
            "internal supply exceeded"
        );
        _mint(_to, _quantity);
    }

    /// @notice Allow the owner to change the baseURI
    /// @param newBaseURI the new uri
    function setBaseURI(string calldata newBaseURI) external onlyOwner frozen {
        baseURI = newBaseURI;
    }

    /// @notice Allow owner to set the royalties recipient
    /// @param newBeneficiary the new contract uri
    function setBeneficiary(address newBeneficiary) external onlyOwner {
        beneficiary = newBeneficiary;
    }

    /// @notice Allow owner to set contract URI
    /// @param newContractURI the new contract URI
    function setContractURI(string calldata newContractURI)
        external
        onlyOwner
        frozen
    {
        contractURI = newContractURI;
    }

    /// @notice Allow owner to change minting step
    /// @param newStep the new step
    function setStep(MintStep newStep) external onlyOwner frozen {
        step = newStep;
        // Set starting index after people minted
        if (newStep == MintStep.ALLOWLIST) {
            _setStartingIndex();
        }
        emit MintStepUpdated(newStep);
    }

    /// @notice Allow owner to update the allowlist merkle root
    /// @param newAllowlistMerkleRoot the new merkle root for the allowlist
    function setAllowlistMerkleRoot(bytes32 newAllowlistMerkleRoot)
        external
        onlyOwner
        frozen
    {
        allowlistMerkleRoot = newAllowlistMerkleRoot;
        emit AllowlistUpdated();
    }

    /// @notice Allow owner to update the waitlist merkle root
    /// @param newWaitlistMerkleRoot the new merkle root for the waitlist
    function setWaitlistMerkleRoot(bytes32 newWaitlistMerkleRoot)
        external
        onlyOwner
        frozen
    {
        waitlistMerkleRoot = newWaitlistMerkleRoot;
        emit WaitlistUpdated();
    }

    /// @notice Allow owner to update the limit per wallet for public mint
    /// @param newLimit the new limit e.g. 7 for public mint per wallet
    function setLimitPerPublicMint(uint256 newLimit) external onlyOwner frozen {
        limitPerPublicMint = newLimit;
    }

    /// @notice Allow everyone to withdraw contract balance and send it to owner
    function withdraw() external {
        payable(beneficiary).transfer(address(this).balance);
    }

    /// @notice Allow everyone to withdraw contract ERC20 balance and send it to owner
    function withdrawERC20(IERC20 _erc20Token) external {
        _erc20Token.transfer(beneficiary, _erc20Token.balanceOf(address(this)));
    }
}

File 2 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _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 10 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 4 of 10 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * 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.
 */
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 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++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 5 of 10 : ERC721APreApproval.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;

import "@openzeppelin/contracts/utils/Context.sol";
import "../thirdparty/opensea/OpenSeaGasFreeListing.sol";
import "erc721a/contracts/ERC721A.sol";

/// @notice Pre-approval of OpenSea proxies for gas-less listing
/// @dev This wrapper allows users to revoke the pre-approval of their
/// associated proxy and emits the corresponding events. This is necessary for
/// external tools to index approvals correctly and inform the user.
/// @dev The pre-approval is triggered on a per-wallet basis during the first
/// transfer transactions. It will only be enabled for wallets with an existing
/// proxy. Not having a proxy incurs a gas overhead.
/// @dev This wrapper optimizes for the following scenario:
/// - The majority of users already have a wyvern proxy
/// - Most of them want to transfer tokens via wyvern exchanges
abstract contract ERC721APreApproval is ERC721A, Context {
    /// @dev It is important that Active remains at first position, since this
    /// is the scenario that we are trying to optimize for.
    enum State {
        Active,
        Inactive
    }

    /// @notice The state of the pre-approval for a given owner
    mapping(address => State) private state;

    /// @dev Returns true if either standard `isApprovedForAll()` or if the
    /// `operator` is the OpenSea proxy for the `owner` provided the
    /// pre-approval is active.
    function isApprovedForAll(address owner, address operator)
        public
        view
        virtual
        override
        returns (bool)
    {
        if (super.isApprovedForAll(owner, operator)) {
            return true;
        }

        return
            state[owner] == State.Active &&
            OpenSeaGasFreeListing.isApprovedForAll(owner, operator);
    }

    /// @dev Uses the standard `setApprovalForAll` or toggles the pre-approval
    /// state if `operator` is the OpenSea proxy for the sender.
    function setApprovalForAll(address operator, bool approved)
        public
        virtual
        override
    {
        address owner = _msgSender();
        if (operator == OpenSeaGasFreeListing.proxyFor(owner)) {
            state[owner] = approved ? State.Active : State.Inactive;
            emit ApprovalForAll(owner, operator, approved);
        } else {
            super.setApprovalForAll(operator, approved);
        }
    }

    /// @dev Checks if the receiver has an existing proxy. If not, the
    /// pre-approval is disabled.
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual override {
        super._beforeTokenTransfers(from, to, startTokenId, quantity);

        // Exclude burns and inactive pre-approvals
        if (to == address(0) || state[to] == State.Inactive) {
            return;
        }

        address operator = OpenSeaGasFreeListing.proxyFor(to);

        // Disable if `to` has no proxy
        if (operator == address(0)) {
            state[to] = State.Inactive;
            return;
        }

        // Avoid emitting unnecessary events.
        if (balanceOf(to) == 0) {
            emit ApprovalForAll(to, operator, true);
        }
    }
}

File 6 of 10 : 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 7 of 10 : OpenSeaGasFreeListing.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;

// Inspired by BaseOpenSea by Simon Fremaux (@dievardump) but without the need
// to pass specific addresses depending on deployment network.
// https://gist.github.com/dievardump/483eb43bc6ed30b14f01e01842e3339b/

import "./ProxyRegistry.sol";

/// @notice Library to achieve gas-free listings on OpenSea.
library OpenSeaGasFreeListing {
    /**
    @notice Returns whether the operator is an OpenSea proxy for the owner, thus
    allowing it to list without the token owner paying gas.
    @dev ERC{721,1155}.isApprovedForAll should be overriden to also check if
    this function returns true.
     */
    function isApprovedForAll(address owner, address operator)
        internal
        view
        returns (bool)
    {
        address proxy = proxyFor(owner);
        return proxy != address(0) && proxy == operator;
    }

    /**
    @notice Returns the OpenSea proxy address for the owner.
     */
    function proxyFor(address owner) internal view returns (address) {
        address registry;
        uint256 chainId;

        assembly {
            chainId := chainid()
            switch chainId
            // Production networks are placed higher to minimise the number of
            // checks performed and therefore reduce gas. By the same rationale,
            // mainnet comes before Polygon as it's more expensive.
            case 1 {
                // mainnet
                registry := 0xa5409ec958c83c3f309868babaca7c86dcb077c1
            }
            case 137 {
                // polygon
                registry := 0x58807baD0B376efc12F5AD86aAc70E78ed67deaE
            }
            case 4 {
                // rinkeby
                registry := 0xf57b2c51ded3a29e6891aba85459d600256cf317
            }
            case 80001 {
                // mumbai
                registry := 0xff7Ca10aF37178BdD056628eF42fD7F799fAc77c
            }
            case 1337 {
                // The geth SimulatedBackend iff used with the ethier
                // openseatest package. This is mocked as a Wyvern proxy as it's
                // more complex than the 0x ones.
                registry := 0xE1a2bbc877b29ADBC56D2659DBcb0ae14ee62071
            }
        }

        // Unlike Wyvern, the registry itself is the proxy for all owners on 0x
        // chains.
        if (registry == address(0) || chainId == 137 || chainId == 80001) {
            return registry;
        }

        return address(ProxyRegistry(registry).proxies(owner));
    }
}

File 8 of 10 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev ERC721 token receiver interface.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard,
 * including the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at `_startTokenId()`
 * (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Mask of an entry in packed address data.
    uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with `_mintERC2309`.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to `_mintERC2309`
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The tokenId of the next token to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See `_packedOwnershipOf` implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

    // Mapping from token ID to approved address.
    mapping(uint256 => address) private _tokenApprovals;

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

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * @dev Returns the starting token ID.
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see `_totalMinted`.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to `_startTokenId()`
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view returns (uint256) {
        return _burnCounter;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes of the XOR of
        // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165
        // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> BITPOS_AUX);
    }

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an ownership that has an address and is not burned
                        // before an ownership that does not have an address and is not burned.
                        // Hence, curr will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed is zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP);
        ownership.burned = packed & BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> BITPOS_EXTRA_DATA);
    }

    /**
     * Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, BITMASK_ADDRESS)
            // `owner | (block.timestamp << BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << BITPOS_NEXT_INITIALIZED`.
            result := shl(BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ownerOf(tokenId);

        if (_msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                revert ApprovalCallerNotOwnerNorApproved();
            }

        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        if (operator == _msgSenderERC721A()) revert ApproveToCaller();

        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     *   {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _mint(address to, uint256 quantity) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 tokenId = startTokenId;
            uint256 end = startTokenId + quantity;
            do {
                emit Transfer(address(0), to, tokenId++);
            } while (tokenId < end);

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals;
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`.
        assembly {
            // Compute the slot.
            mstore(0x00, tokenId)
            mstore(0x20, tokenApprovalsPtr.slot)
            approvedAddressSlot := keccak256(0x00, 0x40)
            // Load the slot's value from storage.
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    /**
     * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`.
     */
    function _isOwnerOrApproved(
        address approvedAddress,
        address from,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean.
            from := and(from, BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, BITMASK_ADDRESS)
            // `msgSender == from || msgSender == approvedAddress`.
            result := or(eq(msgSender, from), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (BITMASK_BURNED | BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << BITPOS_EXTRA_DATA;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred.
     * This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred.
     * This includes minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function _toString(uint256 value) internal pure returns (string memory ptr) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit),
            // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length,
            // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
            ptr := add(mload(0x40), 128)
            // Update the free memory pointer to allocate.
            mstore(0x40, ptr)

            // Cache the end of the memory to calculate the length later.
            let end := ptr

            // We write the string from the rightmost digit to the leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // Costs a bit more than early returning for the zero case,
            // but cheaper in terms of deployment and overall runtime costs.
            for {
                // Initialize and perform the first pass without check.
                let temp := value
                // Move the pointer 1 byte leftwards to point to an empty character slot.
                ptr := sub(ptr, 1)
                // Write the character to the pointer. 48 is the ASCII index of '0'.
                mstore8(ptr, add(48, mod(temp, 10)))
                temp := div(temp, 10)
            } temp {
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
            } {
                // Body of the for loop.
                ptr := sub(ptr, 1)
                mstore8(ptr, add(48, mod(temp, 10)))
            }

            let length := sub(end, ptr)
            // Move the pointer 32 bytes leftwards to make room for the length.
            ptr := sub(ptr, 32)
            // Store the length.
            mstore(ptr, length)
        }
    }
}

File 9 of 10 : ProxyRegistry.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;

/// @notice A minimal interface describing OpenSea's Wyvern proxy registry.
contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

/**
@dev This pattern of using an empty contract is cargo-culted directly from
OpenSea's example code. TODO: it's likely that the above mapping can be changed
to address => address without affecting anything, but further investigation is
needed (i.e. is there a subtle reason that OpenSea released it like this?).
 */
// solhint-disable-next-line no-empty-blocks
contract OwnableDelegateProxy {

}

File 10 of 10 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of an ERC721A compliant contract.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set through `_extraData`.
        uint24 extraData;
    }

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     *
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);

    // ==============================
    //            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);

    // ==============================
    //            IERC721
    // ==============================

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    // ==============================
    //        IERC721Metadata
    // ==============================

    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);

    // ==============================
    //            IERC2309
    // ==============================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`,
     * as defined in the ERC2309 standard. See `_mintERC2309` for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"initContractURI","type":"string"},{"internalType":"string","name":"initBaseURI","type":"string"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_beneficiary","type":"address"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"_provenanceHash","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[],"name":"AllowlistUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum OneTruthGenesis.MintStep","name":"step","type":"uint8"}],"name":"MintStepUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[],"name":"WaitlistUpdated","type":"event"},{"inputs":[],"name":"ALLOWLIST_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INTERNAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LIMIT_PER_ADDRESS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowlistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"uint8","name":"_max","type":"uint8"},{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freezeAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"hasClaimedAllowlist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"hasClaimedWaitlist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint8","name":"_max","type":"uint8"},{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"isInAllowList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint8","name":"_max","type":"uint8"},{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"isInWaitList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limitPerPublicMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenanceHash","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"amount","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":"tokenId","type":"uint256"}],"name":"safeTransferFrom","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":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newAllowlistMerkleRoot","type":"bytes32"}],"name":"setAllowlistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newBeneficiary","type":"address"}],"name":"setBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newContractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newLimit","type":"uint256"}],"name":"setLimitPerPublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum OneTruthGenesis.MintStep","name":"newStep","type":"uint8"}],"name":"setStep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newWaitlistMerkleRoot","type":"bytes32"}],"name":"setWaitlistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startingIndex","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"step","outputs":[{"internalType":"enum OneTruthGenesis.MintStep","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"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":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"waitlistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"uint8","name":"_max","type":"uint8"},{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"waitlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_erc20Token","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040526002600a553480156200001657600080fd5b506040516200317938038062003179833981016040819052620000399162000280565b604051806040016040528060118152602001704f6e652054727574682047656e6573697360781b815250604051806040016040528060038152602001624f544760e81b8152508160029081620000909190620003b0565b5060036200009f8282620003b0565b50506000805550620000b13362000144565b6012620000bf8782620003b0565b506011620000ce8682620003b0565b506001600160a01b03841615620000ea57620000ea8462000144565b6001600160a01b038316156200011657600b80546001600160a01b0319166001600160a01b0385161790555b600c829055600d829055608081905262000134426249d4006200047c565b60135550620004a3945050505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001be57600080fd5b81516001600160401b0380821115620001db57620001db62000196565b604051601f8301601f19908116603f0116810190828211818310171562000206576200020662000196565b816040528381526020925086838588010111156200022357600080fd5b600091505b8382101562000247578582018301518183018401529082019062000228565b83821115620002595760008385830101525b9695505050505050565b80516001600160a01b03811681146200027b57600080fd5b919050565b60008060008060008060c087890312156200029a57600080fd5b86516001600160401b0380821115620002b257600080fd5b620002c08a838b01620001ac565b97506020890151915080821115620002d757600080fd5b50620002e689828a01620001ac565b955050620002f76040880162000263565b9350620003076060880162000263565b92506080870151915060a087015190509295509295509295565b600181811c908216806200033657607f821691505b6020821081036200035757634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003ab57600081815260208120601f850160051c81016020861015620003865750805b601f850160051c820191505b81811015620003a75782815560010162000392565b5050505b505050565b81516001600160401b03811115620003cc57620003cc62000196565b620003e481620003dd845462000321565b846200035d565b602080601f8311600181146200041c5760008415620004035750858301515b600019600386901b1c1916600185901b178555620003a7565b600085815260208120601f198616915b828110156200044d578886015182559484019460019091019084016200042c565b50858210156200046c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082198211156200049e57634e487b7160e01b600052601160045260246000fd5b500190565b608051612cba620004bf60003960006107590152612cba6000f3fe6080604052600436106102c95760003560e01c80638094590311610175578063c500c70b116100dc578063e25fe17511610095578063f2fde38b1161006f578063f2fde38b1461085b578063f4f3b2001461087b578063f8b89dfb1461089b578063f95df414146108bb57600080fd5b8063e25fe175146107ff578063e8a3d48514610826578063e985e9c51461083b57600080fd5b8063c500c70b14610727578063c6ab67a314610747578063c87b56dd1461077b578063cb774d471461079b578063cbce4c97146107c9578063d59fdac4146107e957600080fd5b806399bf40da1161012e57806399bf40da14610688578063a0712d681461069e578063a22cb465146106b1578063a3f3b3b2146106d1578063b88d4fde146106f1578063c21eb6c81461071157600080fd5b806380945903146105ec578063822a158b146105ff5780638da5cb5b1461061f578063938e3d7b1461063d57806395d89b411461065d578063978e8bd81461067257600080fd5b806338af3eed11610234578063611f3f10116101ed57806370a08231116101c757806370a0823114610577578063715018a61461059757806374613bb2146105ac57806376f2c490146105cc57600080fd5b8063611f3f101461051f57806362dc6e211461053b5780636352211e1461055757600080fd5b806338af3eed146104755780633ccfd60b146104955780633d133982146104aa578063417bac1a146104ca57806342842e0e146104df57806355f804b3146104ff57600080fd5b80631c31f710116102865780631c31f710146103b557806323b872dd146103d5578063293108e0146103f55780632a55205a1461040b5780632e34979e1461044a57806332cb6b0c1461045f57600080fd5b806301ffc9a7146102ce57806306fdde0314610303578063081812fc14610325578063095ea7b31461035d57806318160ddd1461037f5780631930af9b146103a2575b600080fd5b3480156102da57600080fd5b506102ee6102e9366004612447565b6108db565b60405190151581526020015b60405180910390f35b34801561030f57600080fd5b50610318610906565b6040516102fa91906124bc565b34801561033157600080fd5b506103456103403660046124cf565b610998565b6040516001600160a01b0390911681526020016102fa565b34801561036957600080fd5b5061037d6103783660046124fd565b6109dc565b005b34801561038b57600080fd5b50600154600054035b6040519081526020016102fa565b61037d6103b0366004612584565b610a7c565b3480156103c157600080fd5b5061037d6103d03660046125ec565b610c81565b3480156103e157600080fd5b5061037d6103f0366004612609565b610ccd565b34801561040157600080fd5b50610394600c5481565b34801561041757600080fd5b5061042b61042636600461264a565b610e73565b604080516001600160a01b0390931683526020830191909152016102fa565b34801561045657600080fd5b50610394601c81565b34801561046b57600080fd5b506103946101f581565b34801561048157600080fd5b50600b54610345906001600160a01b031681565b3480156104a157600080fd5b5061037d610ebe565b3480156104b657600080fd5b506102ee6104c536600461266c565b610efa565b3480156104d657600080fd5b50610394600181565b3480156104eb57600080fd5b5061037d6104fa366004612609565b610f76565b34801561050b57600080fd5b5061037d61051a36600461269d565b610f96565b34801561052b57600080fd5b506103946703782dace9d9000081565b34801561054757600080fd5b506103946702c68af0bb14000081565b34801561056357600080fd5b506103456105723660046124cf565b610fee565b34801561058357600080fd5b506103946105923660046125ec565b610ff9565b3480156105a357600080fd5b5061037d611048565b3480156105b857600080fd5b506102ee6105c73660046124cf565b61107e565b3480156105d857600080fd5b5061037d6105e73660046124cf565b6110bf565b61037d6105fa366004612584565b61110f565b34801561060b57600080fd5b506102ee61061a3660046124cf565b6112fa565b34801561062b57600080fd5b506009546001600160a01b0316610345565b34801561064957600080fd5b5061037d61065836600461269d565b61133b565b34801561066957600080fd5b50610318611393565b34801561067e57600080fd5b50610394600a5481565b34801561069457600080fd5b50610394600d5481565b61037d6106ac3660046124cf565b6113a2565b3480156106bd57600080fd5b5061037d6106cc36600461271d565b61152d565b3480156106dd57600080fd5b5061037d6106ec3660046124cf565b6115f2565b3480156106fd57600080fd5b5061037d61070c36600461276c565b61166e565b34801561071d57600080fd5b5061039460135481565b34801561073357600080fd5b506102ee61074236600461266c565b6116b8565b34801561075357600080fd5b506103947f000000000000000000000000000000000000000000000000000000000000000081565b34801561078757600080fd5b506103186107963660046124cf565b611729565b3480156107a757600080fd5b506010546107b69061ffff1681565b60405161ffff90911681526020016102fa565b3480156107d557600080fd5b5061037d6107e43660046124fd565b6117ad565b3480156107f557600080fd5b506103946101d981565b34801561080b57600080fd5b506014546108199060ff1681565b6040516102fa9190612862565b34801561083257600080fd5b5061031861184c565b34801561084757600080fd5b506102ee61085636600461288a565b6118da565b34801561086757600080fd5b5061037d6108763660046125ec565b611951565b34801561088757600080fd5b5061037d6108963660046125ec565b6119e9565b3480156108a757600080fd5b5061037d6108b63660046128b8565b611acf565b3480156108c757600080fd5b5061037d6108d63660046124cf565b611b99565b60006001600160e01b0319821663152a902d60e11b1480610900575061090082611c15565b92915050565b606060028054610915906128d9565b80601f0160208091040260200160405190810160405280929190818152602001828054610941906128d9565b801561098e5780601f106109635761010080835404028352916020019161098e565b820191906000526020600020905b81548152906001019060200180831161097157829003601f168201915b5050505050905090565b60006109a382611c63565b6109c0576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006109e782610fee565b9050336001600160a01b03821614610a2057610a0381336118da565b610a20576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b84610a8f816702c68af0bb140000612929565b3414610ab65760405162461bcd60e51b8152600401610aad90612948565b60405180910390fd5b85858060ff16821115610b005760405162461bcd60e51b81526020600482015260126024820152710e2eac2dce8d2e8f240c2c4deecca40dac2f60731b6044820152606401610aad565b600160145460ff166003811115610b1957610b1961284c565b14610b5a5760405162461bcd60e51b81526020600482015260116024820152706e6f20616c6c6f776c6973742073616c6560781b6044820152606401610aad565b610b67601c6101d9612971565b88610b756001546000540390565b610b7f9190612971565b10610bcc5760405162461bcd60e51b815260206004820152601960248201527f616c6c6f776c69737420737570706c79206578636565646564000000000000006044820152606401610aad565b610bd5866112fa565b15610c145760405162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e4818db185a5b5959608a1b6044820152606401610aad565b610c2133888888886116b8565b610c645760405162461bcd60e51b815260206004820152601460248201527334b73b30b634b21036b2b935b63290383937b7b360611b6044820152606401610aad565b610c6d86611c8a565b610c773389611cc8565b5050505050505050565b6009546001600160a01b03163314610cab5760405162461bcd60e51b8152600401610aad90612989565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000610cd882611db5565b9050836001600160a01b0316816001600160a01b031614610d0b5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610d5857610d3b86336118da565b610d5857604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610d7f57604051633a954ecd60e21b815260040160405180910390fd5b610d8c8686866001611e1c565b8015610d9757600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610e2957600184016000818152600460205260408120549003610e27576000548114610e275760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b600b5460009081906001600160a01b031680610e9757506009546001600160a01b03165b80612710610ea7866102ee612929565b610eb191906129d4565b92509250505b9250929050565b600b546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610ef7573d6000803e3d6000fd5b50565b600080868686604051602001610f12939291906129e8565b604051602081830303815290604052805190602001209050610f6b84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600d549150849050611f0e565b979650505050505050565b610f918383836040518060200160405280600081525061166e565b505050565b6009546001600160a01b03163314610fc05760405162461bcd60e51b8152600401610aad90612989565b6013544210610fe15760405162461bcd60e51b8152600401610aad90612a1f565b6011610f91828483612a8e565b600061090082611db5565b60006001600160a01b038216611022576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6009546001600160a01b031633146110725760405162461bcd60e51b8152600401610aad90612989565b61107c6000611f24565b565b60008061108d610100846129d4565b9050600061109d61010085612b4e565b6000928352600f602052604090922054600190921b9182169091149392505050565b6009546001600160a01b031633146110e95760405162461bcd60e51b8152600401610aad90612989565b601354421061110a5760405162461bcd60e51b8152600401610aad90612a1f565b600a55565b84611122816702c68af0bb140000612929565b34146111405760405162461bcd60e51b8152600401610aad90612948565b856101f5816111526001546000540390565b61115c9190612971565b106111a15760405162461bcd60e51b81526020600482015260156024820152741d1bdd185b081cdd5c1c1b1e48195e18d959591959605a1b6044820152606401610aad565b86868060ff168211156111eb5760405162461bcd60e51b81526020600482015260126024820152710e2eac2dce8d2e8f240c2c4deecca40dac2f60731b6044820152606401610aad565b600260145460ff1660038111156112045761120461284c565b146112445760405162461bcd60e51b815260206004820152601060248201526f6e6f20776169746c6973742073616c6560801b6044820152606401610aad565b61124d8761107e565b1561128c5760405162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e4818db185a5b5959608a1b6044820152606401610aad565b6112993389898989610efa565b6112dc5760405162461bcd60e51b815260206004820152601460248201527334b73b30b634b21036b2b935b63290383937b7b360611b6044820152606401610aad565b6112e587611f76565b6112ef338a611cc8565b505050505050505050565b600080611309610100846129d4565b9050600061131961010085612b4e565b6000928352600e602052604090922054600190921b9182169091149392505050565b6009546001600160a01b031633146113655760405162461bcd60e51b8152600401610aad90612989565b60135442106113865760405162461bcd60e51b8152600401610aad90612a1f565b6012610f91828483612a8e565b606060038054610915906128d9565b3233146113f15760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610aad565b80611404816703782dace9d90000612929565b34146114225760405162461bcd60e51b8152600401610aad90612948565b816101f5816114346001546000540390565b61143e9190612971565b106114835760405162461bcd60e51b81526020600482015260156024820152741d1bdd185b081cdd5c1c1b1e48195e18d959591959605a1b6044820152606401610aad565b600360145460ff16600381111561149c5761149c61284c565b146114de5760405162461bcd60e51b81526020600482015260126024820152711b9bc81c1d589b1a58c81b5a5b9d081e595d60721b6044820152606401610aad565b600a5483106115235760405162461bcd60e51b81526020600482015260116024820152700e2eac2dce8d2e8f240e8dede40d0d2ced607b1b6044820152606401610aad565b610f913384611cc8565b3361153781611fb4565b6001600160a01b0316836001600160a01b0316036115e8578161155b57600161155e565b60005b6001600160a01b0382166000908152600860205260409020805460ff19166001838181111561158f5761158f61284c565b0217905550826001600160a01b0316816001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31846040516115db911515815260200190565b60405180910390a3505050565b610f918383612113565b6009546001600160a01b0316331461161c5760405162461bcd60e51b8152600401610aad90612989565b601354421061163d5760405162461bcd60e51b8152600401610aad90612a1f565b600d8190556040517fedb32f3f75b117bf5c472287e1705c82681f14903c6aa7a885f3a93c31b6884690600090a150565b611679848484610ccd565b6001600160a01b0383163b156116b257611695848484846121a8565b6116b2576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6000808686866040516020016116d0939291906129e8565b604051602081830303815290604052805190602001209050610f6b84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600c549150849050611f0e565b606061173482611c63565b61175157604051630a14c4b560e41b815260040160405180910390fd5b600061175b612293565b9050805160000361177b57604051806020016040528060008152506117a6565b80611785846122a2565b604051602001611796929190612b62565b6040516020818303038152906040525b9392505050565b6009546001600160a01b031633146117d75760405162461bcd60e51b8152600401610aad90612989565b601c816117e76001546000540390565b6117f19190612971565b1061183e5760405162461bcd60e51b815260206004820152601860248201527f696e7465726e616c20737570706c7920657863656564656400000000000000006044820152606401610aad565b6118488282611cc8565b5050565b60128054611859906128d9565b80601f0160208091040260200160405190810160405280929190818152602001828054611885906128d9565b80156118d25780601f106118a7576101008083540402835291602001916118d2565b820191906000526020600020905b8154815290600101906020018083116118b557829003601f168201915b505050505081565b6001600160a01b03808316600090815260076020908152604080832093851683529290529081205460ff161561191257506001610900565b6001600160a01b03831660009081526008602052604081205460ff16600181111561193f5761193f61284c565b1480156117a657506117a683836122f1565b6009546001600160a01b0316331461197b5760405162461bcd60e51b8152600401610aad90612989565b6001600160a01b0381166119e05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610aad565b610ef781611f24565b600b546040516370a0823160e01b81523060048201526001600160a01b038381169263a9059cbb9291169083906370a0823190602401602060405180830381865afa158015611a3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a609190612b91565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015611aab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118489190612baa565b6009546001600160a01b03163314611af95760405162461bcd60e51b8152600401610aad90612989565b6013544210611b1a5760405162461bcd60e51b8152600401610aad90612a1f565b6014805482919060ff19166001836003811115611b3957611b3961284c565b02179055506001816003811115611b5257611b5261284c565b03611b5f57611b5f61232f565b7f87b8f17998ed00253352d147f387ebd1b05aa70ac64bc8f54972b3a58af1810581604051611b8e9190612862565b60405180910390a150565b6009546001600160a01b03163314611bc35760405162461bcd60e51b8152600401610aad90612989565b6013544210611be45760405162461bcd60e51b8152600401610aad90612a1f565b600c8190556040517fac4285832aea1fb9e403127173fc92934a4267438dac67c9e366c1640b56bd8690600090a150565b60006301ffc9a760e01b6001600160e01b031983161480611c4657506380ac58cd60e01b6001600160e01b03198316145b806109005750506001600160e01b031916635b5e139f60e01b1490565b6000805482108015610900575050600090815260046020526040902054600160e01b161590565b6000611c98610100836129d4565b90506000611ca861010084612b4e565b6000928352600e60205260409092208054600190931b9092179091555050565b6000546001600160a01b038316611cf157604051622e076360e81b815260040160405180910390fd5b81600003611d125760405163b562e8dd60e01b815260040160405180910390fd5b611d1f6000848385611e1c565b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611d695760005550505050565b600081600054811015611e035760008181526004602052604081205490600160e01b82169003611e01575b806000036117a6575060001901600081815260046020526040902054611de0565b505b604051636f96cda160e11b815260040160405180910390fd5b6001600160a01b0383161580611e5e575060016001600160a01b03841660009081526008602052604090205460ff166001811115611e5c57611e5c61284c565b145b6116b2576000611e6d84611fb4565b90506001600160a01b038116611ea657506001600160a01b0383166000908152600860205260409020805460ff191660011790556116b2565b611eaf84610ff9565b600003611f0757806001600160a01b0316846001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c316001604051611efe911515815260200190565b60405180910390a35b5050505050565b600082611f1b85846123bd565b14949350505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611f84610100836129d4565b90506000611f9461010084612b4e565b6000928352600f60205260409092208054600190931b9092179091555050565b600080468060018114611fe9576089811461200557600481146120215762013881811461203d57610539811461205957612071565b73a5409ec958c83c3f309868babaca7c86dcb077c19250612071565b7358807bad0b376efc12f5ad86aac70e78ed67deae9250612071565b73f57b2c51ded3a29e6891aba85459d600256cf3179250612071565b73ff7ca10af37178bdd056628ef42fd7f799fac77c9250612071565b73e1a2bbc877b29adbc56d2659dbcb0ae14ee6207192505b506001600160a01b03821615806120885750806089145b8061209557508062013881145b156120a1575092915050565b60405163c455279160e01b81526001600160a01b03858116600483015283169063c455279190602401602060405180830381865afa1580156120e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061210b9190612bc7565b949350505050565b336001600160a01b0383160361213c5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906121dd903390899088908890600401612be4565b6020604051808303816000875af1925050508015612218575060408051601f3d908101601f1916820190925261221591810190612c21565b60015b612276573d808015612246576040519150601f19603f3d011682016040523d82523d6000602084013e61224b565b606091505b50805160000361226e576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b606060118054610915906128d9565b604080516080810191829052607f0190826030600a8206018353600a90045b80156122df57600183039250600a81066030018353600a90046122c1565b50819003601f19909101908152919050565b6000806122fd84611fb4565b90506001600160a01b0381161580159061210b5750826001600160a01b0316816001600160a01b031614949350505050565b60105461ffff1660000361107c57600061234a600143612c3e565b40446123596001546000540390565b604080516020810194909452830191909152606082015260800160408051601f198184030181529190528051602090910120905061239a60016101f5612c3e565b6123a49082612b4e565b6010805461ffff191661ffff9290921691909117905550565b600081815b84518110156124295760008582815181106123df576123df612c55565b602002602001015190508083116124055760008381526020829052604090209250612416565b600081815260208490526040902092505b508061242181612c6b565b9150506123c2565b509392505050565b6001600160e01b031981168114610ef757600080fd5b60006020828403121561245957600080fd5b81356117a681612431565b60005b8381101561247f578181015183820152602001612467565b838111156116b25750506000910152565b600081518084526124a8816020860160208601612464565b601f01601f19169290920160200192915050565b6020815260006117a66020830184612490565b6000602082840312156124e157600080fd5b5035919050565b6001600160a01b0381168114610ef757600080fd5b6000806040838503121561251057600080fd5b823561251b816124e8565b946020939093013593505050565b803560ff8116811461253a57600080fd5b919050565b60008083601f84011261255157600080fd5b50813567ffffffffffffffff81111561256957600080fd5b6020830191508360208260051b8501011115610eb757600080fd5b60008060008060006080868803121561259c57600080fd5b853594506125ac60208701612529565b935060408601359250606086013567ffffffffffffffff8111156125cf57600080fd5b6125db8882890161253f565b969995985093965092949392505050565b6000602082840312156125fe57600080fd5b81356117a6816124e8565b60008060006060848603121561261e57600080fd5b8335612629816124e8565b92506020840135612639816124e8565b929592945050506040919091013590565b6000806040838503121561265d57600080fd5b50508035926020909101359150565b60008060008060006080868803121561268457600080fd5b853561268f816124e8565b94506125ac60208701612529565b600080602083850312156126b057600080fd5b823567ffffffffffffffff808211156126c857600080fd5b818501915085601f8301126126dc57600080fd5b8135818111156126eb57600080fd5b8660208285010111156126fd57600080fd5b60209290920196919550909350505050565b8015158114610ef757600080fd5b6000806040838503121561273057600080fd5b823561273b816124e8565b9150602083013561274b8161270f565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561278257600080fd5b843561278d816124e8565b9350602085013561279d816124e8565b925060408501359150606085013567ffffffffffffffff808211156127c157600080fd5b818701915087601f8301126127d557600080fd5b8135818111156127e7576127e7612756565b604051601f8201601f19908116603f0116810190838211818310171561280f5761280f612756565b816040528281528a602084870101111561282857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b634e487b7160e01b600052602160045260246000fd5b602081016004831061288457634e487b7160e01b600052602160045260246000fd5b91905290565b6000806040838503121561289d57600080fd5b82356128a8816124e8565b9150602083013561274b816124e8565b6000602082840312156128ca57600080fd5b8135600481106117a657600080fd5b600181811c908216806128ed57607f821691505b60208210810361290d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561294357612943612913565b500290565b6020808252600f908201526e696e636f727265637420707269636560881b604082015260600190565b6000821982111561298457612984612913565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601260045260246000fd5b6000826129e3576129e36129be565b500490565b60609390931b6bffffffffffffffffffffffff1916835260f89190911b6001600160f81b0319166014830152601582015260350190565b6020808252600f908201526e333937bd32b710333ab731ba34b7b760891b604082015260600190565b601f821115610f9157600081815260208120601f850160051c81016020861015612a6f5750805b601f850160051c820191505b81811015610e6b57828155600101612a7b565b67ffffffffffffffff831115612aa657612aa6612756565b612aba83612ab483546128d9565b83612a48565b6000601f841160018114612aee5760008515612ad65750838201355b600019600387901b1c1916600186901b178355611f07565b600083815260209020601f19861690835b82811015612b1f5786850135825560209485019460019092019101612aff565b5086821015612b3c5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b600082612b5d57612b5d6129be565b500690565b60008351612b74818460208801612464565b835190830190612b88818360208801612464565b01949350505050565b600060208284031215612ba357600080fd5b5051919050565b600060208284031215612bbc57600080fd5b81516117a68161270f565b600060208284031215612bd957600080fd5b81516117a6816124e8565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612c1790830184612490565b9695505050505050565b600060208284031215612c3357600080fd5b81516117a681612431565b600082821015612c5057612c50612913565b500390565b634e487b7160e01b600052603260045260246000fd5b600060018201612c7d57612c7d612913565b506001019056fea264697066735822122069df537fe01279d6ae008f292f559691905db10b0008956442db407986765c6164736f6c634300080f003300000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000127dd22b35c4f95aadf1ce3de081aa045252c3a3000000000000000000000000f3efacb4d7368077422910ebace0e5a42026824138ba9373ed60300c9279bdece5c09c320f486dde4103a33fc98ed88de9c4aaab14e60711174ed44bb97bb82af63de90387c351afcb167996aa71b4790bbbd34a0000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b7265696774736e626d6470717a6677737036696d7866736371646c6462783235757a726d6264686d78796c7361736f756d6637726366750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f6261667962656967796f756967336a616e6b7a767437666f616f6f7665796e76346a756a763566737a7276716178657468757a6c776934706568752f0000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102c95760003560e01c80638094590311610175578063c500c70b116100dc578063e25fe17511610095578063f2fde38b1161006f578063f2fde38b1461085b578063f4f3b2001461087b578063f8b89dfb1461089b578063f95df414146108bb57600080fd5b8063e25fe175146107ff578063e8a3d48514610826578063e985e9c51461083b57600080fd5b8063c500c70b14610727578063c6ab67a314610747578063c87b56dd1461077b578063cb774d471461079b578063cbce4c97146107c9578063d59fdac4146107e957600080fd5b806399bf40da1161012e57806399bf40da14610688578063a0712d681461069e578063a22cb465146106b1578063a3f3b3b2146106d1578063b88d4fde146106f1578063c21eb6c81461071157600080fd5b806380945903146105ec578063822a158b146105ff5780638da5cb5b1461061f578063938e3d7b1461063d57806395d89b411461065d578063978e8bd81461067257600080fd5b806338af3eed11610234578063611f3f10116101ed57806370a08231116101c757806370a0823114610577578063715018a61461059757806374613bb2146105ac57806376f2c490146105cc57600080fd5b8063611f3f101461051f57806362dc6e211461053b5780636352211e1461055757600080fd5b806338af3eed146104755780633ccfd60b146104955780633d133982146104aa578063417bac1a146104ca57806342842e0e146104df57806355f804b3146104ff57600080fd5b80631c31f710116102865780631c31f710146103b557806323b872dd146103d5578063293108e0146103f55780632a55205a1461040b5780632e34979e1461044a57806332cb6b0c1461045f57600080fd5b806301ffc9a7146102ce57806306fdde0314610303578063081812fc14610325578063095ea7b31461035d57806318160ddd1461037f5780631930af9b146103a2575b600080fd5b3480156102da57600080fd5b506102ee6102e9366004612447565b6108db565b60405190151581526020015b60405180910390f35b34801561030f57600080fd5b50610318610906565b6040516102fa91906124bc565b34801561033157600080fd5b506103456103403660046124cf565b610998565b6040516001600160a01b0390911681526020016102fa565b34801561036957600080fd5b5061037d6103783660046124fd565b6109dc565b005b34801561038b57600080fd5b50600154600054035b6040519081526020016102fa565b61037d6103b0366004612584565b610a7c565b3480156103c157600080fd5b5061037d6103d03660046125ec565b610c81565b3480156103e157600080fd5b5061037d6103f0366004612609565b610ccd565b34801561040157600080fd5b50610394600c5481565b34801561041757600080fd5b5061042b61042636600461264a565b610e73565b604080516001600160a01b0390931683526020830191909152016102fa565b34801561045657600080fd5b50610394601c81565b34801561046b57600080fd5b506103946101f581565b34801561048157600080fd5b50600b54610345906001600160a01b031681565b3480156104a157600080fd5b5061037d610ebe565b3480156104b657600080fd5b506102ee6104c536600461266c565b610efa565b3480156104d657600080fd5b50610394600181565b3480156104eb57600080fd5b5061037d6104fa366004612609565b610f76565b34801561050b57600080fd5b5061037d61051a36600461269d565b610f96565b34801561052b57600080fd5b506103946703782dace9d9000081565b34801561054757600080fd5b506103946702c68af0bb14000081565b34801561056357600080fd5b506103456105723660046124cf565b610fee565b34801561058357600080fd5b506103946105923660046125ec565b610ff9565b3480156105a357600080fd5b5061037d611048565b3480156105b857600080fd5b506102ee6105c73660046124cf565b61107e565b3480156105d857600080fd5b5061037d6105e73660046124cf565b6110bf565b61037d6105fa366004612584565b61110f565b34801561060b57600080fd5b506102ee61061a3660046124cf565b6112fa565b34801561062b57600080fd5b506009546001600160a01b0316610345565b34801561064957600080fd5b5061037d61065836600461269d565b61133b565b34801561066957600080fd5b50610318611393565b34801561067e57600080fd5b50610394600a5481565b34801561069457600080fd5b50610394600d5481565b61037d6106ac3660046124cf565b6113a2565b3480156106bd57600080fd5b5061037d6106cc36600461271d565b61152d565b3480156106dd57600080fd5b5061037d6106ec3660046124cf565b6115f2565b3480156106fd57600080fd5b5061037d61070c36600461276c565b61166e565b34801561071d57600080fd5b5061039460135481565b34801561073357600080fd5b506102ee61074236600461266c565b6116b8565b34801561075357600080fd5b506103947f14e60711174ed44bb97bb82af63de90387c351afcb167996aa71b4790bbbd34a81565b34801561078757600080fd5b506103186107963660046124cf565b611729565b3480156107a757600080fd5b506010546107b69061ffff1681565b60405161ffff90911681526020016102fa565b3480156107d557600080fd5b5061037d6107e43660046124fd565b6117ad565b3480156107f557600080fd5b506103946101d981565b34801561080b57600080fd5b506014546108199060ff1681565b6040516102fa9190612862565b34801561083257600080fd5b5061031861184c565b34801561084757600080fd5b506102ee61085636600461288a565b6118da565b34801561086757600080fd5b5061037d6108763660046125ec565b611951565b34801561088757600080fd5b5061037d6108963660046125ec565b6119e9565b3480156108a757600080fd5b5061037d6108b63660046128b8565b611acf565b3480156108c757600080fd5b5061037d6108d63660046124cf565b611b99565b60006001600160e01b0319821663152a902d60e11b1480610900575061090082611c15565b92915050565b606060028054610915906128d9565b80601f0160208091040260200160405190810160405280929190818152602001828054610941906128d9565b801561098e5780601f106109635761010080835404028352916020019161098e565b820191906000526020600020905b81548152906001019060200180831161097157829003601f168201915b5050505050905090565b60006109a382611c63565b6109c0576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006109e782610fee565b9050336001600160a01b03821614610a2057610a0381336118da565b610a20576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b84610a8f816702c68af0bb140000612929565b3414610ab65760405162461bcd60e51b8152600401610aad90612948565b60405180910390fd5b85858060ff16821115610b005760405162461bcd60e51b81526020600482015260126024820152710e2eac2dce8d2e8f240c2c4deecca40dac2f60731b6044820152606401610aad565b600160145460ff166003811115610b1957610b1961284c565b14610b5a5760405162461bcd60e51b81526020600482015260116024820152706e6f20616c6c6f776c6973742073616c6560781b6044820152606401610aad565b610b67601c6101d9612971565b88610b756001546000540390565b610b7f9190612971565b10610bcc5760405162461bcd60e51b815260206004820152601960248201527f616c6c6f776c69737420737570706c79206578636565646564000000000000006044820152606401610aad565b610bd5866112fa565b15610c145760405162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e4818db185a5b5959608a1b6044820152606401610aad565b610c2133888888886116b8565b610c645760405162461bcd60e51b815260206004820152601460248201527334b73b30b634b21036b2b935b63290383937b7b360611b6044820152606401610aad565b610c6d86611c8a565b610c773389611cc8565b5050505050505050565b6009546001600160a01b03163314610cab5760405162461bcd60e51b8152600401610aad90612989565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000610cd882611db5565b9050836001600160a01b0316816001600160a01b031614610d0b5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610d5857610d3b86336118da565b610d5857604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610d7f57604051633a954ecd60e21b815260040160405180910390fd5b610d8c8686866001611e1c565b8015610d9757600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610e2957600184016000818152600460205260408120549003610e27576000548114610e275760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b600b5460009081906001600160a01b031680610e9757506009546001600160a01b03165b80612710610ea7866102ee612929565b610eb191906129d4565b92509250505b9250929050565b600b546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610ef7573d6000803e3d6000fd5b50565b600080868686604051602001610f12939291906129e8565b604051602081830303815290604052805190602001209050610f6b84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600d549150849050611f0e565b979650505050505050565b610f918383836040518060200160405280600081525061166e565b505050565b6009546001600160a01b03163314610fc05760405162461bcd60e51b8152600401610aad90612989565b6013544210610fe15760405162461bcd60e51b8152600401610aad90612a1f565b6011610f91828483612a8e565b600061090082611db5565b60006001600160a01b038216611022576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6009546001600160a01b031633146110725760405162461bcd60e51b8152600401610aad90612989565b61107c6000611f24565b565b60008061108d610100846129d4565b9050600061109d61010085612b4e565b6000928352600f602052604090922054600190921b9182169091149392505050565b6009546001600160a01b031633146110e95760405162461bcd60e51b8152600401610aad90612989565b601354421061110a5760405162461bcd60e51b8152600401610aad90612a1f565b600a55565b84611122816702c68af0bb140000612929565b34146111405760405162461bcd60e51b8152600401610aad90612948565b856101f5816111526001546000540390565b61115c9190612971565b106111a15760405162461bcd60e51b81526020600482015260156024820152741d1bdd185b081cdd5c1c1b1e48195e18d959591959605a1b6044820152606401610aad565b86868060ff168211156111eb5760405162461bcd60e51b81526020600482015260126024820152710e2eac2dce8d2e8f240c2c4deecca40dac2f60731b6044820152606401610aad565b600260145460ff1660038111156112045761120461284c565b146112445760405162461bcd60e51b815260206004820152601060248201526f6e6f20776169746c6973742073616c6560801b6044820152606401610aad565b61124d8761107e565b1561128c5760405162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e4818db185a5b5959608a1b6044820152606401610aad565b6112993389898989610efa565b6112dc5760405162461bcd60e51b815260206004820152601460248201527334b73b30b634b21036b2b935b63290383937b7b360611b6044820152606401610aad565b6112e587611f76565b6112ef338a611cc8565b505050505050505050565b600080611309610100846129d4565b9050600061131961010085612b4e565b6000928352600e602052604090922054600190921b9182169091149392505050565b6009546001600160a01b031633146113655760405162461bcd60e51b8152600401610aad90612989565b60135442106113865760405162461bcd60e51b8152600401610aad90612a1f565b6012610f91828483612a8e565b606060038054610915906128d9565b3233146113f15760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610aad565b80611404816703782dace9d90000612929565b34146114225760405162461bcd60e51b8152600401610aad90612948565b816101f5816114346001546000540390565b61143e9190612971565b106114835760405162461bcd60e51b81526020600482015260156024820152741d1bdd185b081cdd5c1c1b1e48195e18d959591959605a1b6044820152606401610aad565b600360145460ff16600381111561149c5761149c61284c565b146114de5760405162461bcd60e51b81526020600482015260126024820152711b9bc81c1d589b1a58c81b5a5b9d081e595d60721b6044820152606401610aad565b600a5483106115235760405162461bcd60e51b81526020600482015260116024820152700e2eac2dce8d2e8f240e8dede40d0d2ced607b1b6044820152606401610aad565b610f913384611cc8565b3361153781611fb4565b6001600160a01b0316836001600160a01b0316036115e8578161155b57600161155e565b60005b6001600160a01b0382166000908152600860205260409020805460ff19166001838181111561158f5761158f61284c565b0217905550826001600160a01b0316816001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31846040516115db911515815260200190565b60405180910390a3505050565b610f918383612113565b6009546001600160a01b0316331461161c5760405162461bcd60e51b8152600401610aad90612989565b601354421061163d5760405162461bcd60e51b8152600401610aad90612a1f565b600d8190556040517fedb32f3f75b117bf5c472287e1705c82681f14903c6aa7a885f3a93c31b6884690600090a150565b611679848484610ccd565b6001600160a01b0383163b156116b257611695848484846121a8565b6116b2576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6000808686866040516020016116d0939291906129e8565b604051602081830303815290604052805190602001209050610f6b84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600c549150849050611f0e565b606061173482611c63565b61175157604051630a14c4b560e41b815260040160405180910390fd5b600061175b612293565b9050805160000361177b57604051806020016040528060008152506117a6565b80611785846122a2565b604051602001611796929190612b62565b6040516020818303038152906040525b9392505050565b6009546001600160a01b031633146117d75760405162461bcd60e51b8152600401610aad90612989565b601c816117e76001546000540390565b6117f19190612971565b1061183e5760405162461bcd60e51b815260206004820152601860248201527f696e7465726e616c20737570706c7920657863656564656400000000000000006044820152606401610aad565b6118488282611cc8565b5050565b60128054611859906128d9565b80601f0160208091040260200160405190810160405280929190818152602001828054611885906128d9565b80156118d25780601f106118a7576101008083540402835291602001916118d2565b820191906000526020600020905b8154815290600101906020018083116118b557829003601f168201915b505050505081565b6001600160a01b03808316600090815260076020908152604080832093851683529290529081205460ff161561191257506001610900565b6001600160a01b03831660009081526008602052604081205460ff16600181111561193f5761193f61284c565b1480156117a657506117a683836122f1565b6009546001600160a01b0316331461197b5760405162461bcd60e51b8152600401610aad90612989565b6001600160a01b0381166119e05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610aad565b610ef781611f24565b600b546040516370a0823160e01b81523060048201526001600160a01b038381169263a9059cbb9291169083906370a0823190602401602060405180830381865afa158015611a3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a609190612b91565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015611aab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118489190612baa565b6009546001600160a01b03163314611af95760405162461bcd60e51b8152600401610aad90612989565b6013544210611b1a5760405162461bcd60e51b8152600401610aad90612a1f565b6014805482919060ff19166001836003811115611b3957611b3961284c565b02179055506001816003811115611b5257611b5261284c565b03611b5f57611b5f61232f565b7f87b8f17998ed00253352d147f387ebd1b05aa70ac64bc8f54972b3a58af1810581604051611b8e9190612862565b60405180910390a150565b6009546001600160a01b03163314611bc35760405162461bcd60e51b8152600401610aad90612989565b6013544210611be45760405162461bcd60e51b8152600401610aad90612a1f565b600c8190556040517fac4285832aea1fb9e403127173fc92934a4267438dac67c9e366c1640b56bd8690600090a150565b60006301ffc9a760e01b6001600160e01b031983161480611c4657506380ac58cd60e01b6001600160e01b03198316145b806109005750506001600160e01b031916635b5e139f60e01b1490565b6000805482108015610900575050600090815260046020526040902054600160e01b161590565b6000611c98610100836129d4565b90506000611ca861010084612b4e565b6000928352600e60205260409092208054600190931b9092179091555050565b6000546001600160a01b038316611cf157604051622e076360e81b815260040160405180910390fd5b81600003611d125760405163b562e8dd60e01b815260040160405180910390fd5b611d1f6000848385611e1c565b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611d695760005550505050565b600081600054811015611e035760008181526004602052604081205490600160e01b82169003611e01575b806000036117a6575060001901600081815260046020526040902054611de0565b505b604051636f96cda160e11b815260040160405180910390fd5b6001600160a01b0383161580611e5e575060016001600160a01b03841660009081526008602052604090205460ff166001811115611e5c57611e5c61284c565b145b6116b2576000611e6d84611fb4565b90506001600160a01b038116611ea657506001600160a01b0383166000908152600860205260409020805460ff191660011790556116b2565b611eaf84610ff9565b600003611f0757806001600160a01b0316846001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c316001604051611efe911515815260200190565b60405180910390a35b5050505050565b600082611f1b85846123bd565b14949350505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611f84610100836129d4565b90506000611f9461010084612b4e565b6000928352600f60205260409092208054600190931b9092179091555050565b600080468060018114611fe9576089811461200557600481146120215762013881811461203d57610539811461205957612071565b73a5409ec958c83c3f309868babaca7c86dcb077c19250612071565b7358807bad0b376efc12f5ad86aac70e78ed67deae9250612071565b73f57b2c51ded3a29e6891aba85459d600256cf3179250612071565b73ff7ca10af37178bdd056628ef42fd7f799fac77c9250612071565b73e1a2bbc877b29adbc56d2659dbcb0ae14ee6207192505b506001600160a01b03821615806120885750806089145b8061209557508062013881145b156120a1575092915050565b60405163c455279160e01b81526001600160a01b03858116600483015283169063c455279190602401602060405180830381865afa1580156120e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061210b9190612bc7565b949350505050565b336001600160a01b0383160361213c5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906121dd903390899088908890600401612be4565b6020604051808303816000875af1925050508015612218575060408051601f3d908101601f1916820190925261221591810190612c21565b60015b612276573d808015612246576040519150601f19603f3d011682016040523d82523d6000602084013e61224b565b606091505b50805160000361226e576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b606060118054610915906128d9565b604080516080810191829052607f0190826030600a8206018353600a90045b80156122df57600183039250600a81066030018353600a90046122c1565b50819003601f19909101908152919050565b6000806122fd84611fb4565b90506001600160a01b0381161580159061210b5750826001600160a01b0316816001600160a01b031614949350505050565b60105461ffff1660000361107c57600061234a600143612c3e565b40446123596001546000540390565b604080516020810194909452830191909152606082015260800160408051601f198184030181529190528051602090910120905061239a60016101f5612c3e565b6123a49082612b4e565b6010805461ffff191661ffff9290921691909117905550565b600081815b84518110156124295760008582815181106123df576123df612c55565b602002602001015190508083116124055760008381526020829052604090209250612416565b600081815260208490526040902092505b508061242181612c6b565b9150506123c2565b509392505050565b6001600160e01b031981168114610ef757600080fd5b60006020828403121561245957600080fd5b81356117a681612431565b60005b8381101561247f578181015183820152602001612467565b838111156116b25750506000910152565b600081518084526124a8816020860160208601612464565b601f01601f19169290920160200192915050565b6020815260006117a66020830184612490565b6000602082840312156124e157600080fd5b5035919050565b6001600160a01b0381168114610ef757600080fd5b6000806040838503121561251057600080fd5b823561251b816124e8565b946020939093013593505050565b803560ff8116811461253a57600080fd5b919050565b60008083601f84011261255157600080fd5b50813567ffffffffffffffff81111561256957600080fd5b6020830191508360208260051b8501011115610eb757600080fd5b60008060008060006080868803121561259c57600080fd5b853594506125ac60208701612529565b935060408601359250606086013567ffffffffffffffff8111156125cf57600080fd5b6125db8882890161253f565b969995985093965092949392505050565b6000602082840312156125fe57600080fd5b81356117a6816124e8565b60008060006060848603121561261e57600080fd5b8335612629816124e8565b92506020840135612639816124e8565b929592945050506040919091013590565b6000806040838503121561265d57600080fd5b50508035926020909101359150565b60008060008060006080868803121561268457600080fd5b853561268f816124e8565b94506125ac60208701612529565b600080602083850312156126b057600080fd5b823567ffffffffffffffff808211156126c857600080fd5b818501915085601f8301126126dc57600080fd5b8135818111156126eb57600080fd5b8660208285010111156126fd57600080fd5b60209290920196919550909350505050565b8015158114610ef757600080fd5b6000806040838503121561273057600080fd5b823561273b816124e8565b9150602083013561274b8161270f565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561278257600080fd5b843561278d816124e8565b9350602085013561279d816124e8565b925060408501359150606085013567ffffffffffffffff808211156127c157600080fd5b818701915087601f8301126127d557600080fd5b8135818111156127e7576127e7612756565b604051601f8201601f19908116603f0116810190838211818310171561280f5761280f612756565b816040528281528a602084870101111561282857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b634e487b7160e01b600052602160045260246000fd5b602081016004831061288457634e487b7160e01b600052602160045260246000fd5b91905290565b6000806040838503121561289d57600080fd5b82356128a8816124e8565b9150602083013561274b816124e8565b6000602082840312156128ca57600080fd5b8135600481106117a657600080fd5b600181811c908216806128ed57607f821691505b60208210810361290d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561294357612943612913565b500290565b6020808252600f908201526e696e636f727265637420707269636560881b604082015260600190565b6000821982111561298457612984612913565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601260045260246000fd5b6000826129e3576129e36129be565b500490565b60609390931b6bffffffffffffffffffffffff1916835260f89190911b6001600160f81b0319166014830152601582015260350190565b6020808252600f908201526e333937bd32b710333ab731ba34b7b760891b604082015260600190565b601f821115610f9157600081815260208120601f850160051c81016020861015612a6f5750805b601f850160051c820191505b81811015610e6b57828155600101612a7b565b67ffffffffffffffff831115612aa657612aa6612756565b612aba83612ab483546128d9565b83612a48565b6000601f841160018114612aee5760008515612ad65750838201355b600019600387901b1c1916600186901b178355611f07565b600083815260209020601f19861690835b82811015612b1f5786850135825560209485019460019092019101612aff565b5086821015612b3c5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b600082612b5d57612b5d6129be565b500690565b60008351612b74818460208801612464565b835190830190612b88818360208801612464565b01949350505050565b600060208284031215612ba357600080fd5b5051919050565b600060208284031215612bbc57600080fd5b81516117a68161270f565b600060208284031215612bd957600080fd5b81516117a6816124e8565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612c1790830184612490565b9695505050505050565b600060208284031215612c3357600080fd5b81516117a681612431565b600082821015612c5057612c50612913565b500390565b634e487b7160e01b600052603260045260246000fd5b600060018201612c7d57612c7d612913565b506001019056fea264697066735822122069df537fe01279d6ae008f292f559691905db10b0008956442db407986765c6164736f6c634300080f0033

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

00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000127dd22b35c4f95aadf1ce3de081aa045252c3a3000000000000000000000000f3efacb4d7368077422910ebace0e5a42026824138ba9373ed60300c9279bdece5c09c320f486dde4103a33fc98ed88de9c4aaab14e60711174ed44bb97bb82af63de90387c351afcb167996aa71b4790bbbd34a0000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b7265696774736e626d6470717a6677737036696d7866736371646c6462783235757a726d6264686d78796c7361736f756d6637726366750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f6261667962656967796f756967336a616e6b7a767437666f616f6f7665796e76346a756a763566737a7276716178657468757a6c776934706568752f0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : initContractURI (string): ipfs://bafkreigtsnbmdpqzfwsp6imxfscqdldbx25uzrmbdhmxylsasoumf7rcfu
Arg [1] : initBaseURI (string): ipfs://bafybeigyouig3jankzvt7foaooveynv4jujv5fszrvqaxethuzlwi4pehu/
Arg [2] : _owner (address): 0x127dD22B35C4F95aADf1ce3de081AA045252c3a3
Arg [3] : _beneficiary (address): 0xF3efAcb4D7368077422910ebacE0E5A420268241
Arg [4] : _merkleRoot (bytes32): 0x38ba9373ed60300c9279bdece5c09c320f486dde4103a33fc98ed88de9c4aaab
Arg [5] : _provenanceHash (uint256): 9452680569562488232218658819213938715153021453163152711460003604020432982858

-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 000000000000000000000000127dd22b35c4f95aadf1ce3de081aa045252c3a3
Arg [3] : 000000000000000000000000f3efacb4d7368077422910ebace0e5a420268241
Arg [4] : 38ba9373ed60300c9279bdece5c09c320f486dde4103a33fc98ed88de9c4aaab
Arg [5] : 14e60711174ed44bb97bb82af63de90387c351afcb167996aa71b4790bbbd34a
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [7] : 697066733a2f2f6261666b7265696774736e626d6470717a6677737036696d78
Arg [8] : 66736371646c6462783235757a726d6264686d78796c7361736f756d66377263
Arg [9] : 6675000000000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [11] : 697066733a2f2f6261667962656967796f756967336a616e6b7a767437666f61
Arg [12] : 6f6f7665796e76346a756a763566737a7276716178657468757a6c7769347065
Arg [13] : 68752f0000000000000000000000000000000000000000000000000000000000


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

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