ETH Price: $2,882.99 (+7.15%)
 

Overview

Max Total Supply

13,888 KMY

Holders

2,016

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
3 KMY
0xe273ef71274926b7dec32546af84db6e37efadbf
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:
Kamiyo

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 11 : kamiyo.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.9;

import "contract-allow-list/contracts/ERC721AntiScam/ERC721AntiScam.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract Kamiyo is ERC721AntiScam, Pausable {
    address public constant withdrawAddress = 0xe53f976b720a0Be0Fd60508f9E938185DfD43657;

    string public baseURI = "";
    string public baseExtension = ".json";

    uint256 public salesId = 1;
    uint256 public maxAmountPerMint = 2;
    uint256 public maxSupply = 13333;
    uint256 public mintCost = 0.001 ether;
    bytes32 merkleRoot;
    bool public isBurnMint = false;
    uint256 public maxBurnMint = 0;

    mapping(uint256 => mapping(address => uint256)) mintedAmountBySales;

    modifier isMintSale() {
        require(!isBurnMint, 'Current Sale is For Burn Mint');
        _;
    }
    modifier isBurnMintSale() {
        require(isBurnMint, 'Current Sale is For Mint');
        _;
    }
    modifier enoughEth(uint256 amount) {
        require(msg.value >= amount * mintCost, 'Not Enough Eth');
        _;
    }
    modifier withinMaxSupply(uint256 amount) {
        require(totalSupply() + amount <= maxSupply, 'Over Max Supply');
        _;
    }
    modifier withinMaxBurnMint(uint256 amount) {
        require(_totalBurned() + amount <= maxSupply, 'Over Max Burn Mint');
        _;
    }
    modifier withinMaxAmountPerMint(uint256 amount) {
        require(amount <= maxAmountPerMint, 'Over Max Amount Per Mint');
        _;
    }
    modifier withinMaxAmountPerAddress(uint256 amount, uint256 allowedAmount) {
        require(mintedAmountBySales[salesId][msg.sender] + amount <= allowedAmount, 'Over Max Amount Per Address');
        _;
    }
    modifier validProof(uint256 allowedAmount, bytes32[] calldata merkleProof) {
        bytes32 node = keccak256(abi.encodePacked(msg.sender, allowedAmount));
        require(MerkleProof.verify(merkleProof, merkleRoot, node), "Invalid proof");
        _;
    }

    constructor(address[] memory addresses, uint256[] memory amounts) ERC721A("Kamiyo", "KMY") {
        require (addresses.length == amounts.length);
        for (uint256 i = 0; i < addresses.length; i++) {
            _safeMint(addresses[i], amounts[i]);
        }
        _pause();
    }

    function pause() external onlyOwner {
        _pause();
    }
    function unpause() external onlyOwner {
        _unpause();
    }

    function setSalesInfo(uint256 _salesId, uint256 _maxAmountPerMint, uint256 _maxSupply, uint256 _mintCost, bytes32 _merkleRoot, bool _isBurnMint, uint256 _maxBurnMint) public onlyOwner {
        salesId = _salesId;
        maxAmountPerMint = _maxAmountPerMint;
        maxSupply = _maxSupply;
        mintCost = _mintCost;
        merkleRoot = _merkleRoot;
        isBurnMint = _isBurnMint;
        maxBurnMint = _maxBurnMint;
    }
    function setSalesId(uint256 _value) public onlyOwner {
        salesId = _value;
    }
    function setMaxAmountPerMint(uint256 _value) public onlyOwner {
        maxAmountPerMint = _value;
    }
    function setMaxSupply(uint256 _value) public onlyOwner {
        maxSupply = _value;
    }
    function setMintCost(uint256 _value) public onlyOwner {
        mintCost = _value;
    }
    function setMerkleRoot(bytes32 _value) public onlyOwner {
        merkleRoot = _value;
    }
    function setIsBurnMint(bool _value) public onlyOwner {
        isBurnMint = _value;
    }
    function setMaxBurnMint(uint256 _value) public onlyOwner {
        maxBurnMint = _value;
    }
    function getMintedAmount(address targetAddress) view public returns(uint256) {
        return mintedAmountBySales[salesId][targetAddress];
    }
    function getTotalBurned() view public returns (uint256) {
        return _totalBurned();
    }

    function mint(uint256 amount, uint256 allowedAmount, bytes32[] calldata merkleProof) external payable
        whenNotPaused
        isMintSale()
        enoughEth(amount)
        withinMaxSupply(amount)
        withinMaxAmountPerMint(amount)
        withinMaxAmountPerAddress(amount, allowedAmount)
        validProof(allowedAmount, merkleProof)
    {
        mintedAmountBySales[salesId][msg.sender] += amount;
        _safeMint(msg.sender, amount);
    }
    function burnMint(uint256[] memory burnTokenIds, uint256 allowedAmount, bytes32[] calldata merkleProof) external payable
        whenNotPaused
        isBurnMintSale()
        enoughEth(burnTokenIds.length)
        withinMaxBurnMint(burnTokenIds.length)
        withinMaxAmountPerMint(burnTokenIds.length)
        withinMaxAmountPerAddress(burnTokenIds.length, allowedAmount)
        validProof(allowedAmount, merkleProof)
    {
        for (uint256 i = 0; i < burnTokenIds.length; i++) {
            uint256 tokenId = burnTokenIds[i];
            require (msg.sender == ownerOf(tokenId));
            _burn(tokenId);
        }
        mintedAmountBySales[salesId][msg.sender] += burnTokenIds.length;
        _safeMint(msg.sender, burnTokenIds.length);
    }
    function withdraw() public payable onlyOwner {
        (bool os, ) = payable(withdrawAddress).call{value: address(this).balance}("");
        require(os);
    }

    function setBaseURI(string memory _value) external onlyOwner {
        baseURI = _value;
    }
    function setBaseExtension(string memory _value) external onlyOwner {
        baseExtension = _value;
    }
    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }
    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        return string(abi.encodePacked(ERC721A.tokenURI(tokenId), baseExtension));
    }
    function exists(uint256 tokenId) public view virtual returns (bool) {
        return _exists(tokenId);
    }
}

File 2 of 11 : ERC721AntiScam.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

import "erc721a/contracts/ERC721A.sol";
import './IERC721AntiScam.sol';
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "../proxy/interface/IContractAllowListProxy.sol";

/// @title AntiScam機能付きERC721A
/// @dev Readmeを見てください。

abstract contract ERC721AntiScam is ERC721A, IERC721AntiScam, Ownable {
    using EnumerableSet for EnumerableSet.AddressSet;

    IContractAllowListProxy public CAL;
    EnumerableSet.AddressSet localAllowedAddresses;

    /*//////////////////////////////////////////////////////////////
    ロック変数。トークンごとに個別ロック設定を行う
    //////////////////////////////////////////////////////////////*/

    // token lock
    mapping(uint256 => LockStatus) internal _tokenLockStatus;
    mapping(uint256 => uint256) internal _tokenCALLevel;

    // wallet lock
    mapping(address => LockStatus) internal _walletLockStatus;
    mapping(address => uint256) internal _walletCALLevel;

    // contract lock
    LockStatus public contractLockStatus = LockStatus.CalLock;
    uint256 public CALLevel = 1;

    /*///////////////////////////////////////////////////////////////
    ロック機能ロジック
    //////////////////////////////////////////////////////////////*/

    function getLockStatus(uint256 tokenId) public virtual view returns (LockStatus) {
        require(_exists(tokenId), "AntiScam: locking query for nonexistent token");
        return _getLockStatus(ownerOf(tokenId), tokenId);
    }

    function getTokenLocked(address operator, uint256 tokenId) public virtual view returns(bool isLocked) {
        address holder = ownerOf(tokenId);
        LockStatus status = _getLockStatus(holder, tokenId);
        uint256 level = _getCALLevel(holder, tokenId);

        if (status == LockStatus.CalLock) {
            if (ownerOf(tokenId) == msg.sender) {
                return false;
            }
        } else {
            return _getLocked(operator, status, level);
        }
    }
    
    // TODO 標準実装
    function getTokensUnderLock(address to) external view returns (uint256[] memory){
        return new uint256[](0);
    }

    // TODO 標準実装
    function getTokensUnderLock(address to, uint256 start, uint256 end) external view returns (uint256[] memory){
        return new uint256[](0);
    }
    
    // TODO 標準実装
    function getTokensUnderLock(address holder, address to) external view returns (uint256[] memory){
        return new uint256[](0);
    }

    // TODO 標準実装
    function getTokensUnderLock(address holder, address to, uint256 start, uint256 end) external view returns (uint256[] memory){
        return new uint256[](0);
    }

    function getLocked(address operator, address holder) public virtual view returns(bool) {
        LockStatus status = _getLockStatus(holder);
        uint256 level = _getCALLevel(holder);
        return _getLocked(operator, status, level);
    }

    function _getLocked(address operator, LockStatus status, uint256 level) internal virtual view returns(bool){
        if (status == LockStatus.UnLock) {
            return false;
        } else if (status == LockStatus.AllLock)  {
            return true;
        } else if (status == LockStatus.CalLock) {
            if (isLocalAllowed(operator)) {
                return false;
            }
            if (address(CAL) == address(0)) {
                return true;
            }
            if (CAL.isAllowed(operator, level)) {
                return false;
            } else {
                return true;
            }
        } else {
            revert("LockStatus is invalid");
        }
    }

    function addLocalContractAllowList(address _contract) external onlyOwner {
        localAllowedAddresses.add(_contract);
    }

    function removeLocalContractAllowList(address _contract) external onlyOwner {
        localAllowedAddresses.remove(_contract);
    }

    function isLocalAllowed(address _transferer)
        public
        view
        returns (bool)
    {
        bool Allowed = false;
        if(localAllowedAddresses.contains(_transferer) == true){
            Allowed = true;
        }
        return Allowed;
    }

    function _getLockStatus(address holder, uint256 tokenId) internal virtual view returns(LockStatus){
        if(_tokenLockStatus[tokenId] != LockStatus.UnSet) {
            return _tokenLockStatus[tokenId];
        }

        return _getLockStatus(holder);
    }

    function _getLockStatus(address holder) internal virtual view returns(LockStatus){
        if(_walletLockStatus[holder] != LockStatus.UnSet) {
            return _walletLockStatus[holder];
        }

        return contractLockStatus;
    }

    function _getCALLevel(address holder, uint256 tokenId) internal virtual view returns(uint256){
        if(_tokenCALLevel[tokenId] > 0) {
            return _tokenCALLevel[tokenId];
        }

        return _getCALLevel(holder);
    }

    function _getCALLevel(address holder) internal virtual view returns(uint256){
        if(_walletCALLevel[holder] > 0) {
            return _walletCALLevel[holder];
        }

        return CALLevel;
    }

    // For token lock
    function _lock(LockStatus status, uint256 id) internal virtual {
        _tokenLockStatus[id] = status;
        emit TokenLock(ownerOf(id), msg.sender, uint(status), id);
    }

    // For wallet lock
    function _setWalletLock(address to, LockStatus status) internal virtual {
        _walletLockStatus[to] = status;
    }

    function _setWalletCALLevel(address to ,uint256 level) internal virtual {
        _walletCALLevel[to] = level;
    }

    // For contract lock
    function setContractAllowListLevel(uint256 level) external onlyOwner{
        CALLevel = level;
    }

    function setContractLockStatus(LockStatus status) external onlyOwner {
       require(status != LockStatus.UnSet, "AntiScam: contract lock status can not set UNSET");
       contractLockStatus = status;
    }

    function setCAL(address _cal) external onlyOwner {
        CAL = IContractAllowListProxy(_cal);
    }

    /*///////////////////////////////////////////////////////////////
                              OVERRIDES
    //////////////////////////////////////////////////////////////*/

    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        if(getLocked(operator, owner)){
            return false;
        }
        return super.isApprovedForAll(owner, operator);
    }

    function setApprovalForAll(address operator, bool approved) public virtual override {
        require (getLocked(operator, msg.sender) == false || approved == false, "Can not approve locked token");
        super.setApprovalForAll(operator, approved);
    }

    function approve(address to, uint256 tokenId) public payable virtual override {
        require (getTokenLocked(to, tokenId) == false, "Can not approve locked token");
        super.approve(to, tokenId);
    }

    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 /*quantity*/
    ) internal virtual override {
        // 転送やバーンにおいては、常にstartTokenIdは TokenIDそのものとなります。
        if (from != address(0)) {
            // トークンがロックされている場合、転送を許可しない
            require(getTokenLocked(to, startTokenId) == false , "LOCKED");
        }
    }

    function _afterTokenTransfers(
        address from,
        address /*to*/,
        uint256 startTokenId,
        uint256 /*quantity*/
    ) internal virtual override {
        // 転送やバーンにおいては、常にstartTokenIdは TokenIDそのものとなります。
        if (from != address(0)) {
            // ロックをデフォルトに戻す。(デフォルトは、 contractのLock status)
            delete _tokenLockStatus[startTokenId];
            delete _tokenCALLevel[startTokenId];
        }
    }


    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override
        returns (bool)
    {
        return
            interfaceId == type(IERC721AntiScam).interfaceId ||
            super.supportsInterface(interfaceId);
    }

}

File 3 of 11 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree 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 Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

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

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

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

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

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

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

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

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

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

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

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

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

File 5 of 11 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // 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 `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID 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 => TokenApprovalRef) private _tokenApprovals;

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

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

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

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

    /**
     * @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 virtual 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 virtual 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 virtual 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 virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual 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 virtual {
        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;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    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: [ERC165](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.
    }

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

    /**
     * @dev Returns the token collection name.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    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 '';
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

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

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

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

    /**
     * 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 initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev 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);
    }

    /**
     * @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 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))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @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) public payable virtual override {
        address owner = ownerOf(tokenId);

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

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

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @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. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

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

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

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

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

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(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 `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @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 memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @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 Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns 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))
                }
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @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 virtual {
        uint256 startTokenId = _currentIndex;
        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 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

            _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 virtual {
        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 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 virtual {
        _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 Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @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) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(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++;
        }
    }

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        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 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 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;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @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 virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

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

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 7 of 11 : IERC721AntiScam.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

/// @title IERC721AntiScam
/// @dev 詐欺防止機能付きコントラクトのインターフェース
/// @author hayatti.eth

interface IERC721AntiScam {

   enum LockStatus {
      UnSet,
      UnLock,
      CalLock,
      AllLock
   }

    /**
     * @dev 個別ロックが指定された場合のイベント
     */
    event TokenLock(address indexed owner, address indexed from, uint lockStatus, uint256 indexed tokenId);

    /**
     * @dev 該当トークンIDにおけるロックレベルを return で返す。
     */
    function getLockStatus(uint256 tokenId) external view returns (LockStatus);

    /**
     * @dev 該当トークンIDにおいて、該当コントラクトの転送が許可されているかを返す
     */
    function getTokenLocked(address to ,uint256 tokenId) external view returns (bool);
    
    /**
     * @dev 該当コントラクトの転送が拒否されているトークンを全て返す
     */
    function getTokensUnderLock(address to) external view returns (uint256[] memory);

    /**
     * @dev 該当コントラクトの転送が拒否されているstartからstopまでのトークンIDを返す
     */
    function getTokensUnderLock(address to, uint256 start, uint256 end) external view returns (uint256[] memory);

    
    /**
     * @dev holderが所有するトークンのうち、該当コントラクトの転送が拒否されているトークンを全て返す
     */
    function getTokensUnderLock(address holder, address to) external view returns (uint256[] memory);

    /**
     * @dev holderが所有するトークンのうち、該当コントラクトの転送が拒否されているstartからstopまでのトークンIDを返す
     */
    function getTokensUnderLock(address holder, address to, uint256 start, uint256 end) external view returns (uint256[] memory);

    /**
     * @dev 該当ウォレットアドレスにおいて、該当コントラクトの転送が許可されているかを返す
     */
    function getLocked(address to ,address holder) external view returns (bool);

    /**
     * @dev CALのリストに無い独自の許可アドレスを追加する場合、こちらにアドレスを記載する。
     */
    function addLocalContractAllowList(address _contract) external;

    /**
     * @dev CALのリストにある独自の許可アドレスを削除する場合、こちらにアドレスを記載する。
     */
    function removeLocalContractAllowList(address _contract) external;


    /**
     * @dev CALを利用する場合のCALのレベルを設定する。レベルが高いほど、許可されるコントラクトの範囲が狭い。
     */
    function setContractAllowListLevel(uint256 level) external;

    /**
     * @dev デフォルトでのロックレベルを指定する。
     */
    function setContractLockStatus(LockStatus status) external;

}

File 8 of 11 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 *  Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable.
 *  See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 *  In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

File 9 of 11 : IContractAllowListProxy.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;

interface IContractAllowListProxy {
    function isAllowed(address _transferer, uint256 _level)
        external
        view
        returns (bool);
}

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

pragma solidity ^0.8.4;

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

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

    /**
     * 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();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores 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 via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @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() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 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`,
     * 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,
        bytes calldata data
    ) external payable;

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @dev Transfers `tokenId` 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 payable;

    /**
     * @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 payable;

    /**
     * @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](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 11 of 11 : 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","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":[{"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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"lockStatus","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TokenLock","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":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"CAL","outputs":[{"internalType":"contract IContractAllowListProxy","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CALLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"addLocalContractAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"burnTokenIds","type":"uint256[]"},{"internalType":"uint256","name":"allowedAmount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"burnMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"contractLockStatus","outputs":[{"internalType":"enum IERC721AntiScam.LockStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"uint256","name":"tokenId","type":"uint256"}],"name":"getLockStatus","outputs":[{"internalType":"enum IERC721AntiScam.LockStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"holder","type":"address"}],"name":"getLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"targetAddress","type":"address"}],"name":"getMintedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenLocked","outputs":[{"internalType":"bool","name":"isLocked","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"getTokensUnderLock","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"getTokensUnderLock","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"name":"getTokensUnderLock","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"name":"getTokensUnderLock","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"isBurnMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_transferer","type":"address"}],"name":"isLocalAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxAmountPerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBurnMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"allowedAmount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"removeLocalContractAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","type":"function"},{"inputs":[],"name":"salesId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_value","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_value","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_cal","type":"address"}],"name":"setCAL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"level","type":"uint256"}],"name":"setContractAllowListLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum IERC721AntiScam.LockStatus","name":"status","type":"uint8"}],"name":"setContractLockStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_value","type":"bool"}],"name":"setIsBurnMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setMaxAmountPerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setMaxBurnMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_value","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setMintCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setSalesId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_salesId","type":"uint256"},{"internalType":"uint256","name":"_maxAmountPerMint","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_mintCost","type":"uint256"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"bool","name":"_isBurnMint","type":"bool"},{"internalType":"uint256","name":"_maxBurnMint","type":"uint256"}],"name":"setSalesInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60808060405234620000ce5762003f7e90813803809262000020826200010b565b823960408282019212620000ce5780516001600160401b0392909190838311620000ce5780609f84011215620000ce57828201516200005f816200019d565b936200006f604051958662000179565b81855260209160a08387019160051b83010191848311620000ce5760a001905b828210620000d3575050505060a051938411620000ce57620000be93620000b79201620001c7565b9062000432565b6040516133ed908162000b918239f35b600080fd5b81516001600160a01b0381168103620000ce5781529083019083016200008f565b50634e487b7160e01b600052604160045260246000fd5b6080601f91909101601f19168101906001600160401b038211908210176200013257604052565b6200013c620000f4565b604052565b604081019081106001600160401b038211176200013257604052565b602081019081106001600160401b038211176200013257604052565b601f909101601f19168101906001600160401b038211908210176200013257604052565b6020906001600160401b038111620001b7575b60051b0190565b620001c1620000f4565b620001b0565b81601f82011215620000ce57805191620001e1836200019d565b92620001f1604051948562000179565b808452602092838086019260051b820101928311620000ce578301905b8282106200021d575050505090565b815181529083019083016200020e565b90600182811c921680156200025f575b60208310146200024957565b634e487b7160e01b600052602260045260246000fd5b91607f16916200023d565b81811062000276575050565b600081556001016200026a565b90601f821162000291575050565b620002c29160026000526020600020906020601f840160051c83019310620002c4575b601f0160051c01906200026a565b565b9091508190620002b4565b90601f8211620002dd575050565b620002c29160036000526020600020906020601f840160051c83019310620002c457601f0160051c01906200026a565b6200031a6013546200022d565b601f81116200032c575b506000601355565b60136000526200036790601f0160051c7f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a090908101906200026a565b3862000324565b6200037b6014546200022d565b601f811162000397575b50600a64173539b7b760d91b01601455565b6014600052620003d290601f0160051c7fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec908101906200026a565b3862000385565b15620000ce57565b6000198114620003f15760010190565b634e487b7160e01b600052601160045260246000fd5b80518210156200041c5760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b9190916200047f604051620004478162000141565b60068152654b616d69796f60d01b602082015260405190620004698262000141565b60038252624b4d5960e81b602083015262000551565b620004896200030d565b620004936200036e565b6200049e6001601555565b620004a96002601655565b620004b5613415601755565b620004c666038d7ea4c68000601855565b620004d660ff19601a5416601a55565b620004e16000601b55565b620004f08151845114620003d9565b60005b81518110156200054357806200053762000523620005166200053d948662000407565b516001600160a01b031690565b6200052f838862000407565b51906200087b565b620003e1565b620004f3565b50509050620002c262000800565b80519091906001600160401b0381116200069e575b6200057e81620005786002546200022d565b62000283565b602080601f83116001146200060957508190620005b994600092620005fd575b50508160011b916000199060031b1c191617600255620006ae565b620005c46001600055565b620005cf33620007b2565b620005e2600260ff196010541617601055565b620005ed6001601155565b620002c260ff1960125416601255565b0151905038806200059e565b60026000529293919291601f1984167f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace936000905b82821062000685575050916001939185620005b9979694106200066b575b505050811b01600255620006ae565b015160001960f88460031b161c191690553880806200065c565b806001869782949787015181550196019401906200063e565b620006a8620000f4565b62000566565b80519091906001600160401b038111620007a2575b620006db81620006d56003546200022d565b620002cf565b602080601f83116001146200071a57508192936000926200070e575b50508160011b916000199060031b1c191617600355565b015190503880620006f7565b6003600052601f198316949091907fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b926000905b878210620007895750508360019596106200076f575b505050811b01600355565b015160001960f88460031b161c1916905538808062000764565b806001859682949686015181550195019301906200074e565b620007ac620000f4565b620006c3565b600880546001600160a01b039283166001600160a01b031982168117909255604051919216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3565b60125460ff8116620008435760019060ff1916176012557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a1565b60405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606490fd5b604080516200088a816200015d565b6000938482528454938115620009da576001600160a01b038116600090815260056020526040902080546801000000000000000184020190556000858152600460205260409020600192906001600160a01b038316904260a01b85841460e11b17821790558187019684807fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9280858d868180a4015b898103620009ca5750505015620009ba57858755813b62000945575b50505050505050565b85039180805b6200096e575b5050505050508154036200096b578080808080806200093c565b80fd5b15620009ab575b866200098e6200098a86848701968662000ad9565b1590565b6200099a57816200094b565b85516368d2bf6b60e11b8152600490fd5b85831062000975578062000951565b8451622e076360e81b8152600490fd5b80848c858180a401859062000920565b835163b562e8dd60e01b8152600490fd5b90816020910312620000ce57516001600160e01b031981168103620000ce5790565b919093929360018060a01b031682526020906000828401526040830152608060608301528351908160808401526000945b82861062000a6e5750508060a093941162000a60575b601f01601f1916010190565b600083828401015262000a54565b85810182015184870160a001529481019462000a3e565b3d1562000ad4573d906001600160401b03821162000ac4575b6040519162000ab8601f8201601f19166020018462000179565b82523d6000602084013e565b62000ace620000f4565b62000a9e565b606090565b62000b0460209160009394604051948580948193630a85bd0160e11b998a8452336004850162000a0d565b03926001600160a01b03165af16000918162000b59575b5062000b4b5762000b2b62000a85565b8051908162000b46576040516368d2bf6b60e11b8152600490fd5b602001fd5b6001600160e01b0319161490565b62000b8091925060203d811162000b88575b62000b77818362000179565b810190620009eb565b903862000b1b565b503d62000b6b56fe60806040526004361015610013575b600080fd5b60003560e01c8063018d9b50146104d757806301ffc9a7146104ce578063025e332e146104c557806306fdde03146104bc578063081812fc146104b3578063095ea7b3146104aa5780630eda8f56146104a157806310c395bf146104985780631581b6001461048f57806318160ddd1461048657806323b872dd1461047d57806327acc76d146104745780633656e9351461046b578063396e8f53146104625780633ccfd60b146104595780633f4ba83a1461045057806342842e0e146104475780634e4ab1221461043e5780634f3db346146104355780634f558e791461042c578063501c9be21461042357806355f804b31461041a5780635c975abb146104115780636352211e1461040857806363b266ba146103ff578063682a3ad6146103f65780636c0360eb146103ed5780636f8b44b0146103e457806370a08231146103db578063715018a6146103d257806372b44d71146103c95780637cb64759146103c05780637d79c86a146103b75780638456cb59146103ae5780638545f4ea146103a55780638978b2da1461039c5780638da5cb5b146103935780638df70c021461038a57806395d89b41146103815780639feeb9d714610378578063a210c8041461036f578063a22cb46514610366578063a30dd9881461035d578063a86e6ee414610354578063ad8e75aa1461034b578063af99415114610342578063b55cd04b14610339578063b88d4fde14610330578063bdb4b84814610327578063c66828621461031e578063c87b56dd14610315578063d5abeb011461030c578063da3ef23f14610303578063e6d37b88146102fa578063e985e9c5146102f1578063eabf719c146102e8578063f2fde38b146102df578063f678fbad146102d6578063f7510ba6146102cd578063fb684df6146102c45763ff768212146102bc57600080fd5b61000e611e38565b5061000e611e1e565b5061000e611d7e565b5061000e611d5c565b5061000e611c7b565b5061000e611c61565b5061000e611c34565b5061000e611a45565b5061000e611939565b5061000e61191a565b5061000e611814565b5061000e61176c565b5061000e61174d565b5061000e6116f1565b5061000e6116d2565b5061000e6116af565b5061000e61168d565b5061000e61164e565b5061000e61162f565b5061000e611560565b5061000e61153e565b5061000e611501565b5061000e611459565b5061000e6113b7565b5061000e611337565b5061000e61127f565b5061000e61125d565b5061000e611202565b5061000e6111a1565b5061000e611175565b5061000e611142565b5061000e6110e2565b5061000e611085565b5061000e611063565b5061000e610fbb565b5061000e610ea4565b5061000e610e55565b5061000e610e25565b5061000e610e01565b5061000e610cf5565b5061000e610bd3565b5061000e610bb4565b5061000e610b95565b5061000e610b6d565b5061000e610b49565b5061000e610aab565b5061000e610a63565b5061000e610a3b565b5061000e610a17565b5061000e6109f8565b5061000e6109e3565b5061000e610986565b5061000e610956565b5061000e61092f565b5061000e6108ca565b5061000e6107da565b5061000e610784565b5061000e61069e565b5061000e6105ed565b5061000e610564565b5061000e61050c565b600435906001600160a01b038216820361000e57565b602435906001600160a01b038216820361000e57565b503461000e57602036600319011261000e57602061053061052b6104e0565b61243a565b6040519015158152f35b7fffffffff0000000000000000000000000000000000000000000000000000000081160361000e57565b503461000e57602036600319011261000e5760206004356105848161053a565b63ffffffff60e01b16637aa3e02b60e11b81149081156105aa575b506040519015158152f35b6301ffc9a760e01b8114915081156105dc575b81156105cb575b503861059f565b635b5e139f60e01b149050386105c4565b6380ac58cd60e01b811491506105bd565b503461000e57602036600319011261000e576001600160a01b0361060f6104e0565b610617611e6b565b166001600160a01b031960095416176009556000604051f35b918091926000905b828210610650575011610649575050565b6000910152565b91508060209183015181860152018291610638565b9060209161067e81518092818552858086019101610630565b601f01601f1916010190565b90602061069b928181520190610665565b90565b503461000e576000806003193601126107815760405190806002546106c281610ec3565b8085529160019180831690811561075757506001146106fc575b6106f8856106ec81870382610c35565b6040519182918261068a565b0390f35b9250600283527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b82841061073f5750505081016020016106ec826106f86106dc565b80546020858701810191909152909301928101610724565b8695506106f8969350602092506106ec94915060ff191682840152151560051b82010192936106dc565b80fd5b503461000e57602036600319011261000e576004356107a281612cfc565b156107c857600052600660205260206001600160a01b0360406000205416604051908152f35b6040516333d1c03960e21b8152600490fd5b50604036600319011261000e576107ef6104e0565b602435906108066108008383611f2a565b156125cd565b6001600160a01b03918261081982612c84565b169182330361086f575b600093828552600660205260408520911690816001600160a01b0319825416179055604051927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258585a4f35b6108793384612573565b610823576040516367d9dca160e11b8152600490fd5b6020908160408183019282815285518094520193019160005b8281106108b6575050505090565b8351855293810193928101926001016108a8565b503461000e57602036600319011261000e576108e46104e0565b506106f86108f0611f7e565b6040519182918261088f565b6004111561090657565b634e487b7160e01b600052602160045260246000fd5b9190602083019260048210156109065752565b503461000e57600036600319011261000e576106f860ff601054166040519182918261091c565b503461000e57600036600319011261000e57602060405173e53f976b720a0be0fd60508f9e938185dfd436578152f35b503461000e57600036600319011261000e576000546001546040519103600019018152602090f35b606090600319011261000e576001600160a01b0390600435828116810361000e5791602435908116810361000e579060443590565b506109f66109f0366109ae565b91612d37565b005b503461000e57600036600319011261000e576020601654604051908152f35b503461000e57600036600319011261000e57602060ff601a54166040519015158152f35b503461000e57600036600319011261000e5760206001600160a01b0360095416604051908152f35b5060008060031936011261078157610a79611e6b565b808080476040519073e53f976b720a0be0fd60508f9e938185dfd436575af1610aa0612ad0565b501561078157604051f35b503461000e57600036600319011261000e57610ac5611e6b565b60125460ff811615610b045760ff19166012557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a1005b60405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606490fd5b506109f6610b56366109ae565b9060405192610b6484610c0c565b60008452612f6e565b503461000e57604036600319011261000e576020610530610b8c6104e0565b60243590611f2a565b503461000e57600036600319011261000e576020601154604051908152f35b503461000e57602036600319011261000e576020610530600435612cfc565b503461000e57602036600319011261000e57610bed611e6b565b600435601155005b50634e487b7160e01b600052604160045260246000fd5b6020810190811067ffffffffffffffff821117610c2857604052565b610c30610bf5565b604052565b90601f8019910116810190811067ffffffffffffffff821117610c2857604052565b60209067ffffffffffffffff8111610c75575b601f01601f19160190565b610c7d610bf5565b610c6a565b929192610c8e82610c57565b91610c9c6040519384610c35565b82948184528183011161000e578281602093846000960137010152565b602060031982011261000e576004359067ffffffffffffffff821161000e578060238301121561000e5781602461069b93600401359101610c82565b503461000e57610d0436610cb9565b610d0c611e6b565b805167ffffffffffffffff8111610df4575b610d3281610d2d601354610ec3565b612b00565b602080601f8311600114610d6d57508192600092610d62575b50508160011b916000199060031b1c191617601355005b015190503880610d4b565b90601f19831693610da060136000527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a09090565b926000905b868210610ddc5750508360019510610dc3575b505050811b01601355005b015160001960f88460031b161c19169055388080610db8565b80600185968294968601518155019501930190610da5565b610dfc610bf5565b610d1e565b503461000e57600036600319011261000e57602060ff601254166040519015158152f35b503461000e57602036600319011261000e5760206001600160a01b03610e4c600435612c84565b16604051908152f35b503461000e57602036600319011261000e576020610e9b610e746104e0565b601554600052601c83526040600020906001600160a01b0316600052602052604060002090565b54604051908152f35b503461000e57600036600319011261000e576020601b54604051908152f35b90600182811c92168015610ef3575b6020831014610edd57565b634e487b7160e01b600052602260045260246000fd5b91607f1691610ed2565b6040519060008260135491610f1183610ec3565b80835292600190818116908115610f995750600114610f3a575b50610f3892500383610c35565b565b6013600090815291507f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0905b848310610f7e5750610f38935050810160200138610f2b565b81935090816020925483858a01015201910190918592610f65565b905060209250610f3894915060ff191682840152151560051b82010138610f2b565b503461000e57600080600319360112610781576040519080601354610fdf81610ec3565b808552916001918083169081156107575750600114611008576106f8856106ec81870382610c35565b9250601383527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0905b82841061104b5750505081016020016106ec826106f86106dc565b80546020858701810191909152909301928101611030565b503461000e57602036600319011261000e5761107d611e6b565b600435601755005b503461000e57602036600319011261000e576001600160a01b036110a76104e0565b1680156110d0576000526005602052602067ffffffffffffffff60406000205416604051908152f35b6040516323d3ad8160e21b8152600490fd5b503461000e57600080600319360112610781576110fd611e6b565b6008546001600160a01b03198116600855816001600160a01b0360405192167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08284a3f35b503461000e57602036600319011261000e576109f66001600160a01b036111676104e0565b61116f611e6b565b16612334565b503461000e57602036600319011261000e5761118f611e6b565b600435601955005b8015150361000e57565b503461000e5760e036600319011261000e5760a4356111bf81611197565b6111c7611e6b565b60043560155560243560165560443560175560643560185560843560195560ff8019601a54169115151617601a5560c435601b556000604051f35b503461000e57600036600319011261000e5761121c611e6b565b611224612619565b600160ff1960125416176012557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a1005b503461000e57602036600319011261000e57611277611e6b565b600435601855005b503461000e57602036600319011261000e5760043561129d81612cfc565b156112cc576112c0816001600160a01b036112ba6106f894612c84565b1661245e565b6040519182918261091c565b60405162461bcd60e51b815260206004820152602d60248201527f416e74695363616d3a206c6f636b696e6720717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e000000000000000000000000000000000000006064820152608490fd5b503461000e57600036600319011261000e5760206001600160a01b0360085416604051908152f35b60209067ffffffffffffffff8111611379575b60051b0190565b611381610bf5565b611372565b9181601f8401121561000e5782359167ffffffffffffffff831161000e576020808501948460051b01011161000e57565b50606036600319011261000e5767ffffffffffffffff60043581811161000e573660238201121561000e5780600401356113f08161135f565b916113fe6040519384610c35565b81835260209160248385019160051b8301019136831161000e57602401905b82821061144a576044358587821161000e576114406109f6923690600401611386565b91602435906128ae565b8135815290830190830161141d565b503461000e5760008060031936011261078157604051908060035461147d81610ec3565b8085529160019180831690811561075757506001146114a6576106f8856106ec81870382610c35565b9250600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8284106114e95750505081016020016106ec826106f86106dc565b805460208587018101919091529093019281016114ce565b503461000e57602036600319011261000e5760043561151f81611197565b611527611e6b565b60ff8019601a54169115151617601a556000604051f35b503461000e57602036600319011261000e57611558611e6b565b600435601b55005b503461000e57604036600319011261000e5761157a6104e0565b6001600160a01b036024359161158f83611197565b6115ab61159b336124b0565b6115a433612530565b9083612110565b158015611627575b6115bc906125cd565b3360005260076020526115e6816040600020906001600160a01b0316600052602052604060002090565b9215159260ff1981541660ff851617905560405192835216907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b5082156115b3565b503461000e57600036600319011261000e576020601554604051908152f35b503461000e57604036600319011261000e57602061053061166d6104e0565b6116756104f6565b611687611681826124b0565b91612530565b91612110565b503461000e57602036600319011261000e576116a7611e6b565b600435601655005b503461000e57604036600319011261000e576116c96104e0565b506108e46104f6565b503461000e57600036600319011261000e576020600154604051908152f35b50608036600319011261000e576117066104e0565b61170e6104f6565b6064359167ffffffffffffffff831161000e573660238401121561000e576117436109f6933690602481600401359101610c82565b9160443591612f6e565b503461000e57600036600319011261000e576020601854604051908152f35b503461000e5760008060031936011261078157604051908060145461179081610ec3565b8085529160019180831690811561075757506001146117b9576106f8856106ec81870382610c35565b9250601483527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec5b8284106117fc5750505081016020016106ec826106f86106dc565b805460208587018101919091529093019281016117e1565b503461000e57602036600319011261000e5760043561183281612cfc565b156119085761183f610efd565b8051909190600090156118e757506040519060a08201604052608082019060008252905b6000190190600a906030828206018353049081611863576106ec91506118c16118af916106f8956118b56118d4966080601f199485810192030181526040519586936020850190612be2565b90612be2565b03908101835282610c35565b6118d96040519384926020840190612be2565b612bf5565b03601f198101835282610c35565b6040516106f893506118d492506106ec9161190182610c0c565b81526118c1565b604051630a14c4b560e41b8152600490fd5b503461000e57600036600319011261000e576020601754604051908152f35b503461000e5761194836610cb9565b611950611e6b565b805167ffffffffffffffff8111611a38575b61197681611971601454610ec3565b612b71565b602080601f83116001146119b1575081926000926119a6575b50508160011b916000199060031b1c191617601455005b01519050388061198f565b90601f198316936119e460146000527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec90565b926000905b868210611a205750508360019510611a07575b505050811b01601455005b015160001960f88460031b161c191690553880806119fc565b806001859682949686015181550195019301906119e9565b611a40610bf5565b611962565b50606036600319011261000e5760043560243560443567ffffffffffffffff811161000e57611a78903690600401611386565b9290611a82612619565b60ff601a5416611bef57611aa3611a9b6018548461266a565b341015612689565b600093611abb838654600019906001549003016126d5565b60175410611baa57611b668592611b6b92611b61611ba597611ae16016548911156126ed565b611b2081611b198a611b1360406015549c8d8152601c60205220336001600160a01b0316600052602052604060002090565b546126d5565b1115612739565b6040513360601b6bffffffffffffffffffffffff1916602082019081526034820192909252611b5281605481016118d9565b51902092601954923691612785565b61281f565b6127d3565b8352601c602052611b923360408520906001600160a01b0316600052602052604060002090565b611b9d8282546126d5565b905533613114565b604051f35b60405162461bcd60e51b815260206004820152600f60248201527f4f766572204d617820537570706c7900000000000000000000000000000000006044820152606490fd5b60405162461bcd60e51b815260206004820152601d60248201527f43757272656e742053616c6520697320466f72204275726e204d696e740000006044820152606490fd5b503461000e57604036600319011261000e576020610530611c536104e0565b611c5b6104f6565b90612573565b503461000e57606036600319011261000e576108e46104e0565b503461000e57602036600319011261000e57611c956104e0565b611c9d611e6b565b6001600160a01b03809116908115611cf15760009160085491816001600160a01b031984161760085560405192167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08484a3f35b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608490fd5b503461000e57602036600319011261000e57611d76611e6b565b600435601555005b503461000e57602036600319011261000e57600435600481101561000e57611da4611e6b565b8015611db3576109f69061255a565b60405162461bcd60e51b815260206004820152603060248201527f416e74695363616d3a20636f6e7472616374206c6f636b20737461747573206360448201527f616e206e6f742073657420554e534554000000000000000000000000000000006064820152608490fd5b503461000e57608036600319011261000e576116c96104e0565b503461000e57602036600319011261000e576109f66001600160a01b03611e5d6104e0565b611e65611e6b565b16612224565b6001600160a01b03600854163303611e7f57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b906000916001600160a01b039081611eda82612c84565b16611eef82611ee9818461245e565b9261250a565b90611ef9816108fc565b60028103611f1b575050611f0c90612c84565b163314611f1557565b60009150565b9150915061069b929350611fba565b600092916001600160a01b039182611f4183612c84565b16611f5083611ee9818461245e565b91611f5a826108fc565b60028203611f6e57505050611f0c90612c84565b919350915061069b939450612110565b60405190611f8b82610c0c565b6000808352366020840137565b9081602091031261000e575161069b81611197565b506040513d6000823e3d90fd5b611fc3816108fc565b60018103611fd2575050600090565b611fdb816108fc565b60038103611fea575050600190565b80611ff66002926108fc565b036120cb576120036123fc565b6120c55761202861201c6009546001600160a01b031690565b6001600160a01b031690565b6001600160a01b038116156120be57604051630f8350ed60e41b815260006004820152602481019290925260209082908180604481015b03915afa9081156120b1575b600091612083575b501561207e57600090565b600190565b6120a4915060203d81116120aa575b61209c8183610c35565b810190611f98565b38612073565b503d612092565b6120b9611fad565b61206b565b5050600190565b50600090565b60405162461bcd60e51b815260206004820152601560248201527f4c6f636b53746174757320697320696e76616c696400000000000000000000006044820152606490fd5b9061211a816108fc565b6001810361212a57505050600090565b612133816108fc565b6003810361214357505050600190565b8061214f6002926108fc565b036120cb5761215d8161243a565b6121c15761217661201c6009546001600160a01b031690565b916001600160a01b038316156121b957604051630f8350ed60e41b81526001600160a01b039092166004830152602482015290602090829081806044810161205f565b505050600190565b5050600090565b50634e487b7160e01b600052603260045260246000fd5b600a54811015612217575b600a6000527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80190600090565b61221f6121c8565b6121ea565b80600052600b602052604060002054156000146120c55780600a54680100000000000000008110156122a8575b6001810180600a5581101561229b575b7fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155600a5490600052600b602052604060002055600190565b6122a36121c8565b612261565b6122b0610bf5565b612251565b50634e487b7160e01b600052601160045260246000fd5b600a54801561231e5760007fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a7811983019280841015612311575b600a83520155600a55565b6123196121c8565b612306565b634e487b7160e01b600052603160045260246000fd5b6000818152600b602052604090205480156121c15760009181600161239093106123ef575b831980820190600a54600181106123e2575b0190808203612396575b5050506123806122cc565b600052600b602052604060002090565b55600190565b6123806123be916123b66123ac6123d9956121df565b90549060031b1c90565b9283916121df565b90919082549060031b600019811b9283911b16911916179055565b55388080612375565b6123ea6122b5565b61236b565b6123f76122b5565b612359565b6000808052600b6020527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f765415156001146124345790565b50600190565b6001600160a01b03600091168152600b602052600160408220541515146124345790565b6000828152600c60205260ff604082205416600481101561249c57612488575061069b91506124b0565b6040915060ff928152600c60205220541690565b634e487b7160e01b82526021600452602482fd5b6001600160a01b0316600090808252600e60205260ff60408320541660048110156124f6576124e457505060ff6010541690565b8152600e602052604090205460ff1690565b634e487b7160e01b83526021600452602483fd5b90600052600d6020526040600020546125265761069b90612530565b5060406000205490565b6001600160a01b0316600052600f6020526040600020546125515760115490565b60406000205490565b60048110156109065760ff801960105416911617601055565b61258f61257f826124b0565b61258883612530565b9084612110565b6121c15760ff916001600160a01b036125c8921660005260076020526040600020906001600160a01b0316600052602052604060002090565b541690565b156125d457565b60405162461bcd60e51b815260206004820152601c60248201527f43616e206e6f7420617070726f7665206c6f636b656420746f6b656e000000006044820152606490fd5b60ff6012541661262557565b60405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606490fd5b806000190482118115151661267d570290565b6126856122b5565b0290565b1561269057565b60405162461bcd60e51b815260206004820152600e60248201527f4e6f7420456e6f756768204574680000000000000000000000000000000000006044820152606490fd5b811981116126e1570190565b6126e96122b5565b0190565b156126f457565b60405162461bcd60e51b815260206004820152601860248201527f4f766572204d617820416d6f756e7420506572204d696e7400000000000000006044820152606490fd5b1561274057565b60405162461bcd60e51b815260206004820152601b60248201527f4f766572204d617820416d6f756e7420506572204164647265737300000000006044820152606490fd5b92916127908261135f565b9161279e6040519384610c35565b829481845260208094019160051b810192831161000e57905b8282106127c45750505050565b813581529083019083016127b7565b156127da57565b60405162461bcd60e51b815260206004820152600d60248201527f496e76616c69642070726f6f66000000000000000000000000000000000000006044820152606490fd5b929091906000915b84518310156128745761283a838661288c565b5190600082821015612862575060005260205261285c60406000205b9261287c565b91612827565b60409161285c93825260205220612856565b915092501490565b60019060001981146126e1570190565b60209181518110156128a1575b60051b010190565b6128a96121c8565b612899565b919093926128ba612619565b60ff601a541615612a8b576128d6611a9b84516018549061266a565b8251916128e660019384546126d5565b60175410612a4657835160165410156128fe906126ed565b83519580601554976000988952601c602052604089203361293191906001600160a01b0316600052602052604060002090565b549061293c916126d5565b111561294790612739565b6040516bffffffffffffffffffffffff193360601b166020820190815260348083019390935291815261297b605482610c35565b5190209060195492369061298e92612785565b916129989261281f565b6129a1906127d3565b83815b6129f9575b5050610f3891925080516129f06129e8336129d0601554600052601c602052604060002090565b906001600160a01b0316600052602052604060002090565b9182546126d5565b90555133613114565b8251811015612a4157612a0c818461288c565b51906001600160a01b03612a1f83612c84565b163303612a3d57612a32612a3792613273565b61287c565b816129a4565b8580fd5b6129a9565b60405162461bcd60e51b815260206004820152601260248201527f4f766572204d6178204275726e204d696e7400000000000000000000000000006044820152606490fd5b60405162461bcd60e51b815260206004820152601860248201527f43757272656e742053616c6520697320466f72204d696e7400000000000000006044820152606490fd5b3d15612afb573d90612ae182610c57565b91612aef6040519384610c35565b82523d6000602084013e565b606090565b601f8111612b0c575050565b600090601382527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a090906020601f850160051c83019410612b67575b601f0160051c01915b828110612b5c57505050565b818155600101612b50565b9092508290612b47565b601f8111612b7d575050565b600090601482527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec906020601f850160051c83019410612bd8575b601f0160051c01915b828110612bcd57505050565b818155600101612bc1565b9092508290612bb8565b906126e960209282815194859201610630565b60145460009291612c0582610ec3565b91600190818116908115612c715750600114612c2057505050565b909192935060146000527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec906000915b848310612c5e575050500190565b8181602092548587015201920191612c50565b60ff191683525050811515909102019150565b6000818060011115612ca3575b604051636f96cda160e11b8152600490fd5b8154811015612c915781526004906020918083526040928383205494600160e01b861615612cd357505050612c91565b93929190935b8515612ce757505050505090565b60001901808352818552838320549550612cd9565b80600111159081612d2b575b81612d11575090565b90506000526004602052600160e01b604060002054161590565b60005481109150612d08565b919091612d4382612c84565b6001600160a01b03908183168083831603612ed957600085815260066020526040902080549093909290612d8a6001600160a01b03871633908114908614171590565b1590565b612eb5575b8716928315612ea357878795612df192612dad88610f389c8b612eea565b612e99575b50612dd0876001600160a01b03166000526005602052604060002090565b80546000190190556001600160a01b03166000526005602052604060002090565b80546001019055600160e11b804260a01b851717612e19866000526004602052604060002090565b55811615612e4f575b507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6000604051a4612f3b565b60018401612e67816000526004602052604060002090565b5415612e74575b50612e22565b6000548114612e6e57612e91906000526004602052604060002090565b553880612e6e565b6000905538612db2565b604051633a954ecd60e21b8152600490fd5b612ec2612d863388612573565b15612d8f57604051632ce44b5f60e11b8152600490fd5b60405162a1148160e81b8152600490fd5b9091906001600160a01b0316612efe575050565b612f0791611f2a565b612f0d57565b60405162461bcd60e51b81526020600482015260066024820152651313d0d2d15160d21b6044820152606490fd5b6001600160a01b0316612f4b5750565b600052600c602052604060002060ff198154169055600d60205260006040812055565b929190612f7c828286612d37565b803b612f89575b50505050565b612f92936130e3565b15612fa05738808080612f83565b6040516368d2bf6b60e11b8152600490fd5b9081602091031261000e575161069b8161053a565b61069b93926001600160a01b036080931682526000602083015260408201528160608201520190610665565b909261069b94936080936001600160a01b03809216845216602083015260408201528160608201520190610665565b6130536020916001600160a01b0393946000604051958680958194630a85bd0160e11b9a8b84523360048501612fc7565b0393165af1600091816130b3575b5061308d5761306e612ad0565b80519081613088576040516368d2bf6b60e11b8152600490fd5b602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000161490565b6130d591925060203d81116130dc575b6130cd8183610c35565b810190612fb2565b9038613061565b503d6130c3565b926020916130539360006001600160a01b03604051809781968295630a85bd0160e11b9b8c85523360048601612ff3565b6040805161312181610c0c565b60009384825284549381156132625761314d816001600160a01b03166000526005602052604060002090565b68010000000000000001830281540190556001916001600160a01b03821683821460e11b4260a01b17811761318c886000526004602052604060002090565b558187019684807fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9280858d868180a4015b898103613253575050501561324357858755813b6131e0575b50505050505050565b85039180805b613203575b505050505050815403610781578080808080806131d7565b15613236575b8661321b612d86868487019686613022565b61322557816131e6565b85516368d2bf6b60e11b8152600490fd5b85831061320957806131eb565b8451622e076360e81b8152600490fd5b80848c858180a40185906131be565b835163b562e8dd60e01b8152600490fd5b61327c81612c84565b906001600160a01b03821661329e826000526006602052604060002090815490565b9390826133a4575b61333c9461339a575b506132cd826001600160a01b03166000526005602052604060002090565b80546fffffffffffffffffffffffffffffffff01905560008381526004602052604090204260a01b8317600360e01b179055600160e11b811615613350575b50816000827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef82604051a4612f3b565b610f3861334b60015460010190565b600155565b60018301613368816000526004602052604060002090565b5415613375575b5061330c565b600054811461336f57613392906000526004602052604060002090565b55388061336f565b60009055386132af565b6133ad84611ec3565b156132a65760405162461bcd60e51b81526020600482015260066024820152651313d0d2d15160d21b6044820152606490fdfea164736f6c634300080f000a00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000002d00000000000000000000000011dd935d65dbc8425e8ba1d9ce4d85e8e6000737000000000000000000000000c30520029fae14783c5712d3eccea2524da3cb5100000000000000000000000090c1185d8322ed3daabf44b09a40519c71e03af5000000000000000000000000004fb342f4b36e504f667a4fe6932e0a1e20e52900000000000000000000000043c9a7e362c6ad43896e962cec9a3096302b154e000000000000000000000000c3168e773b7fceaae5bd92d345bdef5eb1ea3a4d00000000000000000000000097c544bb08bd793eb56cc9452d15e77f067a66bb000000000000000000000000498699432b19bb8718c7f5ba61f1b2a1165838030000000000000000000000009f38d150384cc6cb4d95b40ac8b0d4207e164548000000000000000000000000802a99652be6c4da692345a44b745f9dbdc2a60a0000000000000000000000002ac651150309ad369d5b7278bbe11ff7e76b5ead0000000000000000000000002fee88dbb7dacc9701d8b6096185dbd80369bcc4000000000000000000000000166fa7c9d2e936a100c049c86c1bf7527cc1bc5d00000000000000000000000004b0fd43c4bd6cec82ce90cc0656ae1cc62eccf60000000000000000000000000f677d37ffedf0cb7f9107c4cca789f4a12c63360000000000000000000000000de734a325b3ef814a3a090ab1a7ee870c25fd650000000000000000000000002f9087d8a9701dd7adee061823bab529877a10430000000000000000000000009cc1d4af4bd2f9123e66433313be82afa802393f0000000000000000000000008c2954065bbb15e12743f6c3dd4b31b57c7ed26e000000000000000000000000b994b684f1bf1e5f34c718f04f893887a1b884cf00000000000000000000000072e0f3ca569a7887fd5ff485e480863616f38ed5000000000000000000000000d80090c6c6e45ee8ae141215ead4cb63baa9882c0000000000000000000000004ea84a06f011495b99aa7202fdca60443107042f00000000000000000000000061b9413f4199e575d6d4536b075b4748146d346500000000000000000000000094aa05015e17ebd6da5b3ec1150c4b35850e5740000000000000000000000000474f057ffd4184ce80236d39c88e8ecfe85899310000000000000000000000000be0d1cca528c3870e4187e2bde9b3861b12f6220000000000000000000000001d80deb558a52992679703d901113854023be06900000000000000000000000082fd3d04b25a13c3cc2b172ecb99394aabd05f64000000000000000000000000486322a072f760adbfecc75b239b561e259b3deb000000000000000000000000a8a424860acdaf83d92b4af71a98b99d13aeadd20000000000000000000000002eebce78801f0c581ad94ad3c8ef6312f9ec2cbe00000000000000000000000037b3fd6750962481fac73bb70dde3bc514bbbfa500000000000000000000000012e68ceea158569d351ab6aa573907d52e627cb10000000000000000000000000570d7983fc3cd1d57018d49f384cc3528caf6fa0000000000000000000000003fc1c25a2eb6d13dbe4df64a6c8eb247f11df1e900000000000000000000000084c60cf84b4c0cb711d9f216efb56465b95484f1000000000000000000000000a853cba97e1533888d5025209edccce19f225b4e0000000000000000000000007aa9480920156e1f7961fc3e995227ba6b134d390000000000000000000000002dc81b5ee6545290d0ec206df6c3b22512649b0900000000000000000000000088efa4d32cde9f6378926e7156bd6fb6b98f0a1a00000000000000000000000066aa50d9b057d7946c8a4fa6986598534f3806c8000000000000000000000000a3380cbe670a1c5874d3fbf726e1104a6a019a710000000000000000000000002565a64fa2efe3604031670ca892bbb4b122f999000000000000000000000000e53f976b720a0be0fd60508f9e938185dfd43657000000000000000000000000000000000000000000000000000000000000002d000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000000f0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000019000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000280000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000003200000000000000000000000000000000000000000000000000000000000000370000000000000000000000000000000000000000000000000000000000000041000000000000000000000000000000000000000000000000000000000000003200000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000039b

Deployed Bytecode

0x60806040526004361015610013575b600080fd5b60003560e01c8063018d9b50146104d757806301ffc9a7146104ce578063025e332e146104c557806306fdde03146104bc578063081812fc146104b3578063095ea7b3146104aa5780630eda8f56146104a157806310c395bf146104985780631581b6001461048f57806318160ddd1461048657806323b872dd1461047d57806327acc76d146104745780633656e9351461046b578063396e8f53146104625780633ccfd60b146104595780633f4ba83a1461045057806342842e0e146104475780634e4ab1221461043e5780634f3db346146104355780634f558e791461042c578063501c9be21461042357806355f804b31461041a5780635c975abb146104115780636352211e1461040857806363b266ba146103ff578063682a3ad6146103f65780636c0360eb146103ed5780636f8b44b0146103e457806370a08231146103db578063715018a6146103d257806372b44d71146103c95780637cb64759146103c05780637d79c86a146103b75780638456cb59146103ae5780638545f4ea146103a55780638978b2da1461039c5780638da5cb5b146103935780638df70c021461038a57806395d89b41146103815780639feeb9d714610378578063a210c8041461036f578063a22cb46514610366578063a30dd9881461035d578063a86e6ee414610354578063ad8e75aa1461034b578063af99415114610342578063b55cd04b14610339578063b88d4fde14610330578063bdb4b84814610327578063c66828621461031e578063c87b56dd14610315578063d5abeb011461030c578063da3ef23f14610303578063e6d37b88146102fa578063e985e9c5146102f1578063eabf719c146102e8578063f2fde38b146102df578063f678fbad146102d6578063f7510ba6146102cd578063fb684df6146102c45763ff768212146102bc57600080fd5b61000e611e38565b5061000e611e1e565b5061000e611d7e565b5061000e611d5c565b5061000e611c7b565b5061000e611c61565b5061000e611c34565b5061000e611a45565b5061000e611939565b5061000e61191a565b5061000e611814565b5061000e61176c565b5061000e61174d565b5061000e6116f1565b5061000e6116d2565b5061000e6116af565b5061000e61168d565b5061000e61164e565b5061000e61162f565b5061000e611560565b5061000e61153e565b5061000e611501565b5061000e611459565b5061000e6113b7565b5061000e611337565b5061000e61127f565b5061000e61125d565b5061000e611202565b5061000e6111a1565b5061000e611175565b5061000e611142565b5061000e6110e2565b5061000e611085565b5061000e611063565b5061000e610fbb565b5061000e610ea4565b5061000e610e55565b5061000e610e25565b5061000e610e01565b5061000e610cf5565b5061000e610bd3565b5061000e610bb4565b5061000e610b95565b5061000e610b6d565b5061000e610b49565b5061000e610aab565b5061000e610a63565b5061000e610a3b565b5061000e610a17565b5061000e6109f8565b5061000e6109e3565b5061000e610986565b5061000e610956565b5061000e61092f565b5061000e6108ca565b5061000e6107da565b5061000e610784565b5061000e61069e565b5061000e6105ed565b5061000e610564565b5061000e61050c565b600435906001600160a01b038216820361000e57565b602435906001600160a01b038216820361000e57565b503461000e57602036600319011261000e57602061053061052b6104e0565b61243a565b6040519015158152f35b7fffffffff0000000000000000000000000000000000000000000000000000000081160361000e57565b503461000e57602036600319011261000e5760206004356105848161053a565b63ffffffff60e01b16637aa3e02b60e11b81149081156105aa575b506040519015158152f35b6301ffc9a760e01b8114915081156105dc575b81156105cb575b503861059f565b635b5e139f60e01b149050386105c4565b6380ac58cd60e01b811491506105bd565b503461000e57602036600319011261000e576001600160a01b0361060f6104e0565b610617611e6b565b166001600160a01b031960095416176009556000604051f35b918091926000905b828210610650575011610649575050565b6000910152565b91508060209183015181860152018291610638565b9060209161067e81518092818552858086019101610630565b601f01601f1916010190565b90602061069b928181520190610665565b90565b503461000e576000806003193601126107815760405190806002546106c281610ec3565b8085529160019180831690811561075757506001146106fc575b6106f8856106ec81870382610c35565b6040519182918261068a565b0390f35b9250600283527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b82841061073f5750505081016020016106ec826106f86106dc565b80546020858701810191909152909301928101610724565b8695506106f8969350602092506106ec94915060ff191682840152151560051b82010192936106dc565b80fd5b503461000e57602036600319011261000e576004356107a281612cfc565b156107c857600052600660205260206001600160a01b0360406000205416604051908152f35b6040516333d1c03960e21b8152600490fd5b50604036600319011261000e576107ef6104e0565b602435906108066108008383611f2a565b156125cd565b6001600160a01b03918261081982612c84565b169182330361086f575b600093828552600660205260408520911690816001600160a01b0319825416179055604051927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258585a4f35b6108793384612573565b610823576040516367d9dca160e11b8152600490fd5b6020908160408183019282815285518094520193019160005b8281106108b6575050505090565b8351855293810193928101926001016108a8565b503461000e57602036600319011261000e576108e46104e0565b506106f86108f0611f7e565b6040519182918261088f565b6004111561090657565b634e487b7160e01b600052602160045260246000fd5b9190602083019260048210156109065752565b503461000e57600036600319011261000e576106f860ff601054166040519182918261091c565b503461000e57600036600319011261000e57602060405173e53f976b720a0be0fd60508f9e938185dfd436578152f35b503461000e57600036600319011261000e576000546001546040519103600019018152602090f35b606090600319011261000e576001600160a01b0390600435828116810361000e5791602435908116810361000e579060443590565b506109f66109f0366109ae565b91612d37565b005b503461000e57600036600319011261000e576020601654604051908152f35b503461000e57600036600319011261000e57602060ff601a54166040519015158152f35b503461000e57600036600319011261000e5760206001600160a01b0360095416604051908152f35b5060008060031936011261078157610a79611e6b565b808080476040519073e53f976b720a0be0fd60508f9e938185dfd436575af1610aa0612ad0565b501561078157604051f35b503461000e57600036600319011261000e57610ac5611e6b565b60125460ff811615610b045760ff19166012557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a1005b60405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606490fd5b506109f6610b56366109ae565b9060405192610b6484610c0c565b60008452612f6e565b503461000e57604036600319011261000e576020610530610b8c6104e0565b60243590611f2a565b503461000e57600036600319011261000e576020601154604051908152f35b503461000e57602036600319011261000e576020610530600435612cfc565b503461000e57602036600319011261000e57610bed611e6b565b600435601155005b50634e487b7160e01b600052604160045260246000fd5b6020810190811067ffffffffffffffff821117610c2857604052565b610c30610bf5565b604052565b90601f8019910116810190811067ffffffffffffffff821117610c2857604052565b60209067ffffffffffffffff8111610c75575b601f01601f19160190565b610c7d610bf5565b610c6a565b929192610c8e82610c57565b91610c9c6040519384610c35565b82948184528183011161000e578281602093846000960137010152565b602060031982011261000e576004359067ffffffffffffffff821161000e578060238301121561000e5781602461069b93600401359101610c82565b503461000e57610d0436610cb9565b610d0c611e6b565b805167ffffffffffffffff8111610df4575b610d3281610d2d601354610ec3565b612b00565b602080601f8311600114610d6d57508192600092610d62575b50508160011b916000199060031b1c191617601355005b015190503880610d4b565b90601f19831693610da060136000527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a09090565b926000905b868210610ddc5750508360019510610dc3575b505050811b01601355005b015160001960f88460031b161c19169055388080610db8565b80600185968294968601518155019501930190610da5565b610dfc610bf5565b610d1e565b503461000e57600036600319011261000e57602060ff601254166040519015158152f35b503461000e57602036600319011261000e5760206001600160a01b03610e4c600435612c84565b16604051908152f35b503461000e57602036600319011261000e576020610e9b610e746104e0565b601554600052601c83526040600020906001600160a01b0316600052602052604060002090565b54604051908152f35b503461000e57600036600319011261000e576020601b54604051908152f35b90600182811c92168015610ef3575b6020831014610edd57565b634e487b7160e01b600052602260045260246000fd5b91607f1691610ed2565b6040519060008260135491610f1183610ec3565b80835292600190818116908115610f995750600114610f3a575b50610f3892500383610c35565b565b6013600090815291507f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0905b848310610f7e5750610f38935050810160200138610f2b565b81935090816020925483858a01015201910190918592610f65565b905060209250610f3894915060ff191682840152151560051b82010138610f2b565b503461000e57600080600319360112610781576040519080601354610fdf81610ec3565b808552916001918083169081156107575750600114611008576106f8856106ec81870382610c35565b9250601383527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0905b82841061104b5750505081016020016106ec826106f86106dc565b80546020858701810191909152909301928101611030565b503461000e57602036600319011261000e5761107d611e6b565b600435601755005b503461000e57602036600319011261000e576001600160a01b036110a76104e0565b1680156110d0576000526005602052602067ffffffffffffffff60406000205416604051908152f35b6040516323d3ad8160e21b8152600490fd5b503461000e57600080600319360112610781576110fd611e6b565b6008546001600160a01b03198116600855816001600160a01b0360405192167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08284a3f35b503461000e57602036600319011261000e576109f66001600160a01b036111676104e0565b61116f611e6b565b16612334565b503461000e57602036600319011261000e5761118f611e6b565b600435601955005b8015150361000e57565b503461000e5760e036600319011261000e5760a4356111bf81611197565b6111c7611e6b565b60043560155560243560165560443560175560643560185560843560195560ff8019601a54169115151617601a5560c435601b556000604051f35b503461000e57600036600319011261000e5761121c611e6b565b611224612619565b600160ff1960125416176012557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a1005b503461000e57602036600319011261000e57611277611e6b565b600435601855005b503461000e57602036600319011261000e5760043561129d81612cfc565b156112cc576112c0816001600160a01b036112ba6106f894612c84565b1661245e565b6040519182918261091c565b60405162461bcd60e51b815260206004820152602d60248201527f416e74695363616d3a206c6f636b696e6720717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e000000000000000000000000000000000000006064820152608490fd5b503461000e57600036600319011261000e5760206001600160a01b0360085416604051908152f35b60209067ffffffffffffffff8111611379575b60051b0190565b611381610bf5565b611372565b9181601f8401121561000e5782359167ffffffffffffffff831161000e576020808501948460051b01011161000e57565b50606036600319011261000e5767ffffffffffffffff60043581811161000e573660238201121561000e5780600401356113f08161135f565b916113fe6040519384610c35565b81835260209160248385019160051b8301019136831161000e57602401905b82821061144a576044358587821161000e576114406109f6923690600401611386565b91602435906128ae565b8135815290830190830161141d565b503461000e5760008060031936011261078157604051908060035461147d81610ec3565b8085529160019180831690811561075757506001146114a6576106f8856106ec81870382610c35565b9250600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8284106114e95750505081016020016106ec826106f86106dc565b805460208587018101919091529093019281016114ce565b503461000e57602036600319011261000e5760043561151f81611197565b611527611e6b565b60ff8019601a54169115151617601a556000604051f35b503461000e57602036600319011261000e57611558611e6b565b600435601b55005b503461000e57604036600319011261000e5761157a6104e0565b6001600160a01b036024359161158f83611197565b6115ab61159b336124b0565b6115a433612530565b9083612110565b158015611627575b6115bc906125cd565b3360005260076020526115e6816040600020906001600160a01b0316600052602052604060002090565b9215159260ff1981541660ff851617905560405192835216907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b5082156115b3565b503461000e57600036600319011261000e576020601554604051908152f35b503461000e57604036600319011261000e57602061053061166d6104e0565b6116756104f6565b611687611681826124b0565b91612530565b91612110565b503461000e57602036600319011261000e576116a7611e6b565b600435601655005b503461000e57604036600319011261000e576116c96104e0565b506108e46104f6565b503461000e57600036600319011261000e576020600154604051908152f35b50608036600319011261000e576117066104e0565b61170e6104f6565b6064359167ffffffffffffffff831161000e573660238401121561000e576117436109f6933690602481600401359101610c82565b9160443591612f6e565b503461000e57600036600319011261000e576020601854604051908152f35b503461000e5760008060031936011261078157604051908060145461179081610ec3565b8085529160019180831690811561075757506001146117b9576106f8856106ec81870382610c35565b9250601483527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec5b8284106117fc5750505081016020016106ec826106f86106dc565b805460208587018101919091529093019281016117e1565b503461000e57602036600319011261000e5760043561183281612cfc565b156119085761183f610efd565b8051909190600090156118e757506040519060a08201604052608082019060008252905b6000190190600a906030828206018353049081611863576106ec91506118c16118af916106f8956118b56118d4966080601f199485810192030181526040519586936020850190612be2565b90612be2565b03908101835282610c35565b6118d96040519384926020840190612be2565b612bf5565b03601f198101835282610c35565b6040516106f893506118d492506106ec9161190182610c0c565b81526118c1565b604051630a14c4b560e41b8152600490fd5b503461000e57600036600319011261000e576020601754604051908152f35b503461000e5761194836610cb9565b611950611e6b565b805167ffffffffffffffff8111611a38575b61197681611971601454610ec3565b612b71565b602080601f83116001146119b1575081926000926119a6575b50508160011b916000199060031b1c191617601455005b01519050388061198f565b90601f198316936119e460146000527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec90565b926000905b868210611a205750508360019510611a07575b505050811b01601455005b015160001960f88460031b161c191690553880806119fc565b806001859682949686015181550195019301906119e9565b611a40610bf5565b611962565b50606036600319011261000e5760043560243560443567ffffffffffffffff811161000e57611a78903690600401611386565b9290611a82612619565b60ff601a5416611bef57611aa3611a9b6018548461266a565b341015612689565b600093611abb838654600019906001549003016126d5565b60175410611baa57611b668592611b6b92611b61611ba597611ae16016548911156126ed565b611b2081611b198a611b1360406015549c8d8152601c60205220336001600160a01b0316600052602052604060002090565b546126d5565b1115612739565b6040513360601b6bffffffffffffffffffffffff1916602082019081526034820192909252611b5281605481016118d9565b51902092601954923691612785565b61281f565b6127d3565b8352601c602052611b923360408520906001600160a01b0316600052602052604060002090565b611b9d8282546126d5565b905533613114565b604051f35b60405162461bcd60e51b815260206004820152600f60248201527f4f766572204d617820537570706c7900000000000000000000000000000000006044820152606490fd5b60405162461bcd60e51b815260206004820152601d60248201527f43757272656e742053616c6520697320466f72204275726e204d696e740000006044820152606490fd5b503461000e57604036600319011261000e576020610530611c536104e0565b611c5b6104f6565b90612573565b503461000e57606036600319011261000e576108e46104e0565b503461000e57602036600319011261000e57611c956104e0565b611c9d611e6b565b6001600160a01b03809116908115611cf15760009160085491816001600160a01b031984161760085560405192167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08484a3f35b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608490fd5b503461000e57602036600319011261000e57611d76611e6b565b600435601555005b503461000e57602036600319011261000e57600435600481101561000e57611da4611e6b565b8015611db3576109f69061255a565b60405162461bcd60e51b815260206004820152603060248201527f416e74695363616d3a20636f6e7472616374206c6f636b20737461747573206360448201527f616e206e6f742073657420554e534554000000000000000000000000000000006064820152608490fd5b503461000e57608036600319011261000e576116c96104e0565b503461000e57602036600319011261000e576109f66001600160a01b03611e5d6104e0565b611e65611e6b565b16612224565b6001600160a01b03600854163303611e7f57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b906000916001600160a01b039081611eda82612c84565b16611eef82611ee9818461245e565b9261250a565b90611ef9816108fc565b60028103611f1b575050611f0c90612c84565b163314611f1557565b60009150565b9150915061069b929350611fba565b600092916001600160a01b039182611f4183612c84565b16611f5083611ee9818461245e565b91611f5a826108fc565b60028203611f6e57505050611f0c90612c84565b919350915061069b939450612110565b60405190611f8b82610c0c565b6000808352366020840137565b9081602091031261000e575161069b81611197565b506040513d6000823e3d90fd5b611fc3816108fc565b60018103611fd2575050600090565b611fdb816108fc565b60038103611fea575050600190565b80611ff66002926108fc565b036120cb576120036123fc565b6120c55761202861201c6009546001600160a01b031690565b6001600160a01b031690565b6001600160a01b038116156120be57604051630f8350ed60e41b815260006004820152602481019290925260209082908180604481015b03915afa9081156120b1575b600091612083575b501561207e57600090565b600190565b6120a4915060203d81116120aa575b61209c8183610c35565b810190611f98565b38612073565b503d612092565b6120b9611fad565b61206b565b5050600190565b50600090565b60405162461bcd60e51b815260206004820152601560248201527f4c6f636b53746174757320697320696e76616c696400000000000000000000006044820152606490fd5b9061211a816108fc565b6001810361212a57505050600090565b612133816108fc565b6003810361214357505050600190565b8061214f6002926108fc565b036120cb5761215d8161243a565b6121c15761217661201c6009546001600160a01b031690565b916001600160a01b038316156121b957604051630f8350ed60e41b81526001600160a01b039092166004830152602482015290602090829081806044810161205f565b505050600190565b5050600090565b50634e487b7160e01b600052603260045260246000fd5b600a54811015612217575b600a6000527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80190600090565b61221f6121c8565b6121ea565b80600052600b602052604060002054156000146120c55780600a54680100000000000000008110156122a8575b6001810180600a5581101561229b575b7fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155600a5490600052600b602052604060002055600190565b6122a36121c8565b612261565b6122b0610bf5565b612251565b50634e487b7160e01b600052601160045260246000fd5b600a54801561231e5760007fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a7811983019280841015612311575b600a83520155600a55565b6123196121c8565b612306565b634e487b7160e01b600052603160045260246000fd5b6000818152600b602052604090205480156121c15760009181600161239093106123ef575b831980820190600a54600181106123e2575b0190808203612396575b5050506123806122cc565b600052600b602052604060002090565b55600190565b6123806123be916123b66123ac6123d9956121df565b90549060031b1c90565b9283916121df565b90919082549060031b600019811b9283911b16911916179055565b55388080612375565b6123ea6122b5565b61236b565b6123f76122b5565b612359565b6000808052600b6020527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f765415156001146124345790565b50600190565b6001600160a01b03600091168152600b602052600160408220541515146124345790565b6000828152600c60205260ff604082205416600481101561249c57612488575061069b91506124b0565b6040915060ff928152600c60205220541690565b634e487b7160e01b82526021600452602482fd5b6001600160a01b0316600090808252600e60205260ff60408320541660048110156124f6576124e457505060ff6010541690565b8152600e602052604090205460ff1690565b634e487b7160e01b83526021600452602483fd5b90600052600d6020526040600020546125265761069b90612530565b5060406000205490565b6001600160a01b0316600052600f6020526040600020546125515760115490565b60406000205490565b60048110156109065760ff801960105416911617601055565b61258f61257f826124b0565b61258883612530565b9084612110565b6121c15760ff916001600160a01b036125c8921660005260076020526040600020906001600160a01b0316600052602052604060002090565b541690565b156125d457565b60405162461bcd60e51b815260206004820152601c60248201527f43616e206e6f7420617070726f7665206c6f636b656420746f6b656e000000006044820152606490fd5b60ff6012541661262557565b60405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606490fd5b806000190482118115151661267d570290565b6126856122b5565b0290565b1561269057565b60405162461bcd60e51b815260206004820152600e60248201527f4e6f7420456e6f756768204574680000000000000000000000000000000000006044820152606490fd5b811981116126e1570190565b6126e96122b5565b0190565b156126f457565b60405162461bcd60e51b815260206004820152601860248201527f4f766572204d617820416d6f756e7420506572204d696e7400000000000000006044820152606490fd5b1561274057565b60405162461bcd60e51b815260206004820152601b60248201527f4f766572204d617820416d6f756e7420506572204164647265737300000000006044820152606490fd5b92916127908261135f565b9161279e6040519384610c35565b829481845260208094019160051b810192831161000e57905b8282106127c45750505050565b813581529083019083016127b7565b156127da57565b60405162461bcd60e51b815260206004820152600d60248201527f496e76616c69642070726f6f66000000000000000000000000000000000000006044820152606490fd5b929091906000915b84518310156128745761283a838661288c565b5190600082821015612862575060005260205261285c60406000205b9261287c565b91612827565b60409161285c93825260205220612856565b915092501490565b60019060001981146126e1570190565b60209181518110156128a1575b60051b010190565b6128a96121c8565b612899565b919093926128ba612619565b60ff601a541615612a8b576128d6611a9b84516018549061266a565b8251916128e660019384546126d5565b60175410612a4657835160165410156128fe906126ed565b83519580601554976000988952601c602052604089203361293191906001600160a01b0316600052602052604060002090565b549061293c916126d5565b111561294790612739565b6040516bffffffffffffffffffffffff193360601b166020820190815260348083019390935291815261297b605482610c35565b5190209060195492369061298e92612785565b916129989261281f565b6129a1906127d3565b83815b6129f9575b5050610f3891925080516129f06129e8336129d0601554600052601c602052604060002090565b906001600160a01b0316600052602052604060002090565b9182546126d5565b90555133613114565b8251811015612a4157612a0c818461288c565b51906001600160a01b03612a1f83612c84565b163303612a3d57612a32612a3792613273565b61287c565b816129a4565b8580fd5b6129a9565b60405162461bcd60e51b815260206004820152601260248201527f4f766572204d6178204275726e204d696e7400000000000000000000000000006044820152606490fd5b60405162461bcd60e51b815260206004820152601860248201527f43757272656e742053616c6520697320466f72204d696e7400000000000000006044820152606490fd5b3d15612afb573d90612ae182610c57565b91612aef6040519384610c35565b82523d6000602084013e565b606090565b601f8111612b0c575050565b600090601382527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a090906020601f850160051c83019410612b67575b601f0160051c01915b828110612b5c57505050565b818155600101612b50565b9092508290612b47565b601f8111612b7d575050565b600090601482527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec906020601f850160051c83019410612bd8575b601f0160051c01915b828110612bcd57505050565b818155600101612bc1565b9092508290612bb8565b906126e960209282815194859201610630565b60145460009291612c0582610ec3565b91600190818116908115612c715750600114612c2057505050565b909192935060146000527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec906000915b848310612c5e575050500190565b8181602092548587015201920191612c50565b60ff191683525050811515909102019150565b6000818060011115612ca3575b604051636f96cda160e11b8152600490fd5b8154811015612c915781526004906020918083526040928383205494600160e01b861615612cd357505050612c91565b93929190935b8515612ce757505050505090565b60001901808352818552838320549550612cd9565b80600111159081612d2b575b81612d11575090565b90506000526004602052600160e01b604060002054161590565b60005481109150612d08565b919091612d4382612c84565b6001600160a01b03908183168083831603612ed957600085815260066020526040902080549093909290612d8a6001600160a01b03871633908114908614171590565b1590565b612eb5575b8716928315612ea357878795612df192612dad88610f389c8b612eea565b612e99575b50612dd0876001600160a01b03166000526005602052604060002090565b80546000190190556001600160a01b03166000526005602052604060002090565b80546001019055600160e11b804260a01b851717612e19866000526004602052604060002090565b55811615612e4f575b507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6000604051a4612f3b565b60018401612e67816000526004602052604060002090565b5415612e74575b50612e22565b6000548114612e6e57612e91906000526004602052604060002090565b553880612e6e565b6000905538612db2565b604051633a954ecd60e21b8152600490fd5b612ec2612d863388612573565b15612d8f57604051632ce44b5f60e11b8152600490fd5b60405162a1148160e81b8152600490fd5b9091906001600160a01b0316612efe575050565b612f0791611f2a565b612f0d57565b60405162461bcd60e51b81526020600482015260066024820152651313d0d2d15160d21b6044820152606490fd5b6001600160a01b0316612f4b5750565b600052600c602052604060002060ff198154169055600d60205260006040812055565b929190612f7c828286612d37565b803b612f89575b50505050565b612f92936130e3565b15612fa05738808080612f83565b6040516368d2bf6b60e11b8152600490fd5b9081602091031261000e575161069b8161053a565b61069b93926001600160a01b036080931682526000602083015260408201528160608201520190610665565b909261069b94936080936001600160a01b03809216845216602083015260408201528160608201520190610665565b6130536020916001600160a01b0393946000604051958680958194630a85bd0160e11b9a8b84523360048501612fc7565b0393165af1600091816130b3575b5061308d5761306e612ad0565b80519081613088576040516368d2bf6b60e11b8152600490fd5b602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000161490565b6130d591925060203d81116130dc575b6130cd8183610c35565b810190612fb2565b9038613061565b503d6130c3565b926020916130539360006001600160a01b03604051809781968295630a85bd0160e11b9b8c85523360048601612ff3565b6040805161312181610c0c565b60009384825284549381156132625761314d816001600160a01b03166000526005602052604060002090565b68010000000000000001830281540190556001916001600160a01b03821683821460e11b4260a01b17811761318c886000526004602052604060002090565b558187019684807fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9280858d868180a4015b898103613253575050501561324357858755813b6131e0575b50505050505050565b85039180805b613203575b505050505050815403610781578080808080806131d7565b15613236575b8661321b612d86868487019686613022565b61322557816131e6565b85516368d2bf6b60e11b8152600490fd5b85831061320957806131eb565b8451622e076360e81b8152600490fd5b80848c858180a40185906131be565b835163b562e8dd60e01b8152600490fd5b61327c81612c84565b906001600160a01b03821661329e826000526006602052604060002090815490565b9390826133a4575b61333c9461339a575b506132cd826001600160a01b03166000526005602052604060002090565b80546fffffffffffffffffffffffffffffffff01905560008381526004602052604090204260a01b8317600360e01b179055600160e11b811615613350575b50816000827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef82604051a4612f3b565b610f3861334b60015460010190565b600155565b60018301613368816000526004602052604060002090565b5415613375575b5061330c565b600054811461336f57613392906000526004602052604060002090565b55388061336f565b60009055386132af565b6133ad84611ec3565b156132a65760405162461bcd60e51b81526020600482015260066024820152651313d0d2d15160d21b6044820152606490fdfea164736f6c634300080f000a

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

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000002d00000000000000000000000011dd935d65dbc8425e8ba1d9ce4d85e8e6000737000000000000000000000000c30520029fae14783c5712d3eccea2524da3cb5100000000000000000000000090c1185d8322ed3daabf44b09a40519c71e03af5000000000000000000000000004fb342f4b36e504f667a4fe6932e0a1e20e52900000000000000000000000043c9a7e362c6ad43896e962cec9a3096302b154e000000000000000000000000c3168e773b7fceaae5bd92d345bdef5eb1ea3a4d00000000000000000000000097c544bb08bd793eb56cc9452d15e77f067a66bb000000000000000000000000498699432b19bb8718c7f5ba61f1b2a1165838030000000000000000000000009f38d150384cc6cb4d95b40ac8b0d4207e164548000000000000000000000000802a99652be6c4da692345a44b745f9dbdc2a60a0000000000000000000000002ac651150309ad369d5b7278bbe11ff7e76b5ead0000000000000000000000002fee88dbb7dacc9701d8b6096185dbd80369bcc4000000000000000000000000166fa7c9d2e936a100c049c86c1bf7527cc1bc5d00000000000000000000000004b0fd43c4bd6cec82ce90cc0656ae1cc62eccf60000000000000000000000000f677d37ffedf0cb7f9107c4cca789f4a12c63360000000000000000000000000de734a325b3ef814a3a090ab1a7ee870c25fd650000000000000000000000002f9087d8a9701dd7adee061823bab529877a10430000000000000000000000009cc1d4af4bd2f9123e66433313be82afa802393f0000000000000000000000008c2954065bbb15e12743f6c3dd4b31b57c7ed26e000000000000000000000000b994b684f1bf1e5f34c718f04f893887a1b884cf00000000000000000000000072e0f3ca569a7887fd5ff485e480863616f38ed5000000000000000000000000d80090c6c6e45ee8ae141215ead4cb63baa9882c0000000000000000000000004ea84a06f011495b99aa7202fdca60443107042f00000000000000000000000061b9413f4199e575d6d4536b075b4748146d346500000000000000000000000094aa05015e17ebd6da5b3ec1150c4b35850e5740000000000000000000000000474f057ffd4184ce80236d39c88e8ecfe85899310000000000000000000000000be0d1cca528c3870e4187e2bde9b3861b12f6220000000000000000000000001d80deb558a52992679703d901113854023be06900000000000000000000000082fd3d04b25a13c3cc2b172ecb99394aabd05f64000000000000000000000000486322a072f760adbfecc75b239b561e259b3deb000000000000000000000000a8a424860acdaf83d92b4af71a98b99d13aeadd20000000000000000000000002eebce78801f0c581ad94ad3c8ef6312f9ec2cbe00000000000000000000000037b3fd6750962481fac73bb70dde3bc514bbbfa500000000000000000000000012e68ceea158569d351ab6aa573907d52e627cb10000000000000000000000000570d7983fc3cd1d57018d49f384cc3528caf6fa0000000000000000000000003fc1c25a2eb6d13dbe4df64a6c8eb247f11df1e900000000000000000000000084c60cf84b4c0cb711d9f216efb56465b95484f1000000000000000000000000a853cba97e1533888d5025209edccce19f225b4e0000000000000000000000007aa9480920156e1f7961fc3e995227ba6b134d390000000000000000000000002dc81b5ee6545290d0ec206df6c3b22512649b0900000000000000000000000088efa4d32cde9f6378926e7156bd6fb6b98f0a1a00000000000000000000000066aa50d9b057d7946c8a4fa6986598534f3806c8000000000000000000000000a3380cbe670a1c5874d3fbf726e1104a6a019a710000000000000000000000002565a64fa2efe3604031670ca892bbb4b122f999000000000000000000000000e53f976b720a0be0fd60508f9e938185dfd43657000000000000000000000000000000000000000000000000000000000000002d000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000000f0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000019000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000280000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000003200000000000000000000000000000000000000000000000000000000000000370000000000000000000000000000000000000000000000000000000000000041000000000000000000000000000000000000000000000000000000000000003200000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000039b

-----Decoded View---------------
Arg [0] : addresses (address[]): 0x11dd935d65dbc8425e8BA1d9cE4d85E8E6000737,0xc30520029FaE14783C5712D3eccea2524DA3cB51,0x90C1185D8322eD3DaAbf44B09a40519C71e03AF5,0x004fb342F4B36e504f667a4fe6932E0a1e20E529,0x43C9a7e362c6aD43896E962CEC9A3096302B154E,0xc3168E773b7FCeAaE5bD92d345bDef5eB1Ea3A4d,0x97c544BB08BD793eB56cc9452D15e77F067a66bb,0x498699432B19Bb8718c7f5BA61f1B2a116583803,0x9f38D150384cC6CB4d95B40Ac8B0d4207e164548,0x802A99652BE6c4da692345A44b745F9DBDC2a60a,0x2aC651150309ad369d5b7278bBe11FF7e76B5EAd,0x2fEe88dbB7Dacc9701d8B6096185dBd80369bCC4,0x166fA7C9D2e936A100C049c86c1BF7527Cc1bC5D,0x04b0fD43C4bD6CEC82CE90cc0656ae1cc62EccF6,0x0F677d37fFEdF0cb7f9107C4ccA789f4a12C6336,0x0De734a325b3Ef814a3A090ab1A7EE870C25fD65,0x2F9087D8A9701DD7adEE061823BAb529877a1043,0x9Cc1d4AF4BD2F9123e66433313be82aFa802393f,0x8C2954065bbb15e12743f6c3dd4b31b57c7Ed26E,0xB994b684f1bF1E5f34C718f04F893887A1B884cf,0x72e0f3ca569A7887FD5FF485E480863616f38eD5,0xD80090C6C6E45ee8Ae141215eaD4CB63Baa9882c,0x4eA84A06F011495B99Aa7202fDca60443107042F,0x61B9413f4199e575D6d4536b075B4748146D3465,0x94aa05015E17ebD6Da5B3Ec1150c4B35850E5740,0x474f057fFd4184cE80236d39C88E8ECFe8589931,0x0Be0d1CCA528c3870E4187E2bDe9b3861B12F622,0x1d80DEb558A52992679703D901113854023be069,0x82Fd3d04b25A13c3CC2B172ecb99394AABd05F64,0x486322a072F760ADbFECc75B239b561E259b3DEb,0xa8a424860ACDAf83D92B4aF71A98b99D13aeaDD2,0x2eEbcE78801F0c581Ad94AD3C8ef6312f9Ec2cBE,0x37B3Fd6750962481FAc73BB70DDE3bC514bbBfa5,0x12E68CeEA158569D351AB6aA573907D52E627CB1,0x0570d7983FC3cd1d57018d49f384cc3528CaF6FA,0x3fc1C25a2EB6d13DbE4df64A6C8EB247F11DF1e9,0x84c60Cf84B4C0Cb711d9f216EFB56465b95484f1,0xA853cbA97e1533888D5025209EdCcCE19F225B4E,0x7aa9480920156e1F7961fC3E995227bA6b134d39,0x2Dc81B5EE6545290D0ec206df6C3b22512649b09,0x88efa4d32CDe9F6378926E7156Bd6FB6B98F0A1A,0x66Aa50D9B057D7946C8a4fa6986598534F3806C8,0xA3380cbe670A1C5874d3FBf726E1104A6A019A71,0x2565a64Fa2eFe3604031670CA892bBB4B122F999,0xe53f976b720a0Be0Fd60508f9E938185DfD43657
Arg [1] : amounts (uint256[]): 5,5,5,15,15,20,20,20,20,20,20,20,20,20,20,20,25,25,30,30,30,50,40,40,40,50,50,55,65,50,100,50,100,100,100,100,100,100,30,30,10,100,100,100,923

-----Encoded View---------------
94 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000600
Arg [2] : 000000000000000000000000000000000000000000000000000000000000002d
Arg [3] : 00000000000000000000000011dd935d65dbc8425e8ba1d9ce4d85e8e6000737
Arg [4] : 000000000000000000000000c30520029fae14783c5712d3eccea2524da3cb51
Arg [5] : 00000000000000000000000090c1185d8322ed3daabf44b09a40519c71e03af5
Arg [6] : 000000000000000000000000004fb342f4b36e504f667a4fe6932e0a1e20e529
Arg [7] : 00000000000000000000000043c9a7e362c6ad43896e962cec9a3096302b154e
Arg [8] : 000000000000000000000000c3168e773b7fceaae5bd92d345bdef5eb1ea3a4d
Arg [9] : 00000000000000000000000097c544bb08bd793eb56cc9452d15e77f067a66bb
Arg [10] : 000000000000000000000000498699432b19bb8718c7f5ba61f1b2a116583803
Arg [11] : 0000000000000000000000009f38d150384cc6cb4d95b40ac8b0d4207e164548
Arg [12] : 000000000000000000000000802a99652be6c4da692345a44b745f9dbdc2a60a
Arg [13] : 0000000000000000000000002ac651150309ad369d5b7278bbe11ff7e76b5ead
Arg [14] : 0000000000000000000000002fee88dbb7dacc9701d8b6096185dbd80369bcc4
Arg [15] : 000000000000000000000000166fa7c9d2e936a100c049c86c1bf7527cc1bc5d
Arg [16] : 00000000000000000000000004b0fd43c4bd6cec82ce90cc0656ae1cc62eccf6
Arg [17] : 0000000000000000000000000f677d37ffedf0cb7f9107c4cca789f4a12c6336
Arg [18] : 0000000000000000000000000de734a325b3ef814a3a090ab1a7ee870c25fd65
Arg [19] : 0000000000000000000000002f9087d8a9701dd7adee061823bab529877a1043
Arg [20] : 0000000000000000000000009cc1d4af4bd2f9123e66433313be82afa802393f
Arg [21] : 0000000000000000000000008c2954065bbb15e12743f6c3dd4b31b57c7ed26e
Arg [22] : 000000000000000000000000b994b684f1bf1e5f34c718f04f893887a1b884cf
Arg [23] : 00000000000000000000000072e0f3ca569a7887fd5ff485e480863616f38ed5
Arg [24] : 000000000000000000000000d80090c6c6e45ee8ae141215ead4cb63baa9882c
Arg [25] : 0000000000000000000000004ea84a06f011495b99aa7202fdca60443107042f
Arg [26] : 00000000000000000000000061b9413f4199e575d6d4536b075b4748146d3465
Arg [27] : 00000000000000000000000094aa05015e17ebd6da5b3ec1150c4b35850e5740
Arg [28] : 000000000000000000000000474f057ffd4184ce80236d39c88e8ecfe8589931
Arg [29] : 0000000000000000000000000be0d1cca528c3870e4187e2bde9b3861b12f622
Arg [30] : 0000000000000000000000001d80deb558a52992679703d901113854023be069
Arg [31] : 00000000000000000000000082fd3d04b25a13c3cc2b172ecb99394aabd05f64
Arg [32] : 000000000000000000000000486322a072f760adbfecc75b239b561e259b3deb
Arg [33] : 000000000000000000000000a8a424860acdaf83d92b4af71a98b99d13aeadd2
Arg [34] : 0000000000000000000000002eebce78801f0c581ad94ad3c8ef6312f9ec2cbe
Arg [35] : 00000000000000000000000037b3fd6750962481fac73bb70dde3bc514bbbfa5
Arg [36] : 00000000000000000000000012e68ceea158569d351ab6aa573907d52e627cb1
Arg [37] : 0000000000000000000000000570d7983fc3cd1d57018d49f384cc3528caf6fa
Arg [38] : 0000000000000000000000003fc1c25a2eb6d13dbe4df64a6c8eb247f11df1e9
Arg [39] : 00000000000000000000000084c60cf84b4c0cb711d9f216efb56465b95484f1
Arg [40] : 000000000000000000000000a853cba97e1533888d5025209edccce19f225b4e
Arg [41] : 0000000000000000000000007aa9480920156e1f7961fc3e995227ba6b134d39
Arg [42] : 0000000000000000000000002dc81b5ee6545290d0ec206df6c3b22512649b09
Arg [43] : 00000000000000000000000088efa4d32cde9f6378926e7156bd6fb6b98f0a1a
Arg [44] : 00000000000000000000000066aa50d9b057d7946c8a4fa6986598534f3806c8
Arg [45] : 000000000000000000000000a3380cbe670a1c5874d3fbf726e1104a6a019a71
Arg [46] : 0000000000000000000000002565a64fa2efe3604031670ca892bbb4b122f999
Arg [47] : 000000000000000000000000e53f976b720a0be0fd60508f9e938185dfd43657
Arg [48] : 000000000000000000000000000000000000000000000000000000000000002d
Arg [49] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [50] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [51] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [52] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [53] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [54] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [55] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [56] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [57] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [58] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [59] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [60] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [61] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [62] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [63] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [64] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [65] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [66] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [67] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [68] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [69] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [70] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [71] : 0000000000000000000000000000000000000000000000000000000000000028
Arg [72] : 0000000000000000000000000000000000000000000000000000000000000028
Arg [73] : 0000000000000000000000000000000000000000000000000000000000000028
Arg [74] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [75] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [76] : 0000000000000000000000000000000000000000000000000000000000000037
Arg [77] : 0000000000000000000000000000000000000000000000000000000000000041
Arg [78] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [79] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [80] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [81] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [82] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [83] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [84] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [85] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [86] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [87] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [88] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [89] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [90] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [91] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [92] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [93] : 000000000000000000000000000000000000000000000000000000000000039b


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.