ETH Price: $2,670.31 (+0.06%)

Token

AI Trianglize Moonbirds (AITMB)
 

Overview

Max Total Supply

1,116 AITMB

Holders

144

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
cyk0.eth
Balance
1 AITMB
0xbe732bdd5b1218a4da23c27f1a0df8be228af13c
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:
TrianglizeBirds

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : 721b.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.7;

import "./erc721b/contracts/ERC721B.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

/*
 * &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
 * &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
 * &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
 * ##&&&&&&#&&#&&#&&#&&#&&#&&#&&#&&#&&#&&#&&#&&#&&#&&#&&#&&#&&#&&#&&#&&#&&#&&&&&&&#
 * B55PB##################################################################&##BG5JJB
 * &#5JJYY5GB########################################################&##BG5Y?7!!J#&
 * &&&PJJJJJJYY5GB#################################################BG5Y?7!!!!!!5&&&
 * &&&&BYJJJJJJJJJYYPGB####################################&&#BGPY?7!!!!!777!?G&&&&
 * &&&&&#5JJJJJJJJJJJJJY5PGB###########################&##GPY?7!!!!!7777777!J#&&&&&
 * &&&&&&&PJJJJJJJJJJJJJJJJJY5PGB#################&##BPYJ7!!!!!!777777777775&&&&&&&
 * &&&&&&&&BYJJJJJJJJJJJJJJJJJJJJY5PGB#######&##BPYJ77!!!!!!777777777777!7G&&&&&&&&
 * &&&&&&&&&#5JJJJJJJJJJJJJJJJJJJJJJJJY5PGBBP5J77!!!!!77777777777777777!J#&&&&&&&&&
 * &&&&&&&&&&&PJJJJJJJJJJJJJJJJJJJJJJJJJJJJ7!!!!!77777777777777777777775#&&&&&&&&&&
 * &&&&&&&&&&&&GJJJJJJJJJJJJJJJJJJJJJJJJJJJ7!7777777777777777777777777P&&&&&&&&&&&&
 * &&&&&&&&&&&&&#YJJJJJJJJJJJJJJJJJJJJJJJJJ7777777777777777777777777J#&&&&&&&&&&&&&
 * &&&&&&&&&&&&&&&PJJJJJJJJJJJJJJJJJJJJJJJJ777777777777777777777777Y&&&&&&&&&&&&&&&
 * &&&&&&&&&&&&&&&&GYJJJJJJJJJJJJJJJJJJJJJJ77777777777777777777777P&&&&&&&&&&&&&&&&
 * &&&&&&&&&&&&&&&&&BYJJJJJJJJJJJJJJJJJJJJJ777777777777777777777?B&&&&&&&&&&&&&&&&&
 * &&&&&&&&&&&&&&&&&&&PJJJJJJJJJJJJJJJJJJJJ77777777777777777777Y#&&&&&&&&&&&&&&&&&&
 * &&&&&&&&&&&&&&&&&&&&GJJJJJJJJJJJJJJJJJJJ7777777777777777777P&&&&&&&&&&&&&&&&&&&&
 * &&&&&&&&&&&&&&&&&&&&&BYJJJJJJJJJJJJJJJJJ77777777777777777?B&&&&&&&&&&&&&&&&&&&&&
 * &&&&&&&&&&&&&&&&&&&&&&#5JJJJJJJJJJJJJJJJ7777777777777777Y#&&&&&&&&&&&&&&&&&&&&&&
 * &&&&&&&&&&&&&&&&&&&&&&&&GJJJJJJJJJJJJJJJ777777777777777P&&&&&&&&&&&&&&&&&&&&&&&&
 * &&&&&&&&&&&&&&&&&&&&&&&&&BYJJJJJJJJJJJJJ7777777777777?G&&&&&&&&&&&&&&&&&&&&&&&&&
 * &&&&&&&&&&&&&&&&&&&&&&&&&&#5JJJJJJJJJJJJ777777777777Y#&&&&&&&&&&&&&&&&&&&&&&&&&&
 * &&&&&&&&&&&&&&&&&&&&&&&&&&&&GJJJJJJJJJJJ77777777777P&&&&&&&&&&&&&&&&&&&&&&&&&&&&
 * &&&&&&&&&&&&&&&&&&&&&&&&&&&&&BYJJJJJJJJJ777777777?B&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
 * &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&#5JJJJJJJJ77777777J#&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
 * &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&PJJJJJJJ77777775&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
 * &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&BYJJJJJ77777?G&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
 * &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&#5JJJJ7777Y#&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
 * &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&PJJJ7775&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
 * &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&GYJ7?G&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
 * &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&#YJ#&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
 * &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
 * &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
 * &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
 * &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
 */

contract TrianglizeBirds is ERC721B, ReentrancyGuard {
    uint256 constant MaxTotalSupply = 3333;
    uint256 constant MaxFreeMintSupply = 3333 / 3; // 1111
    uint256 constant MaxFreeMintPerWallet = 10;
    mapping(address => uint8) freeMintCountMap;

    uint256 price = 0.0333 ether;

    string baseURI;

    constructor() ERC721B("AI Trianglize Moonbirds", "AITMB") {}
    

    function freeMint(uint8 quantity) external nonReentrant payable {
        freeMintCountMap[msg.sender] = freeMintCountMap[msg.sender] + quantity;
        require(totalSupply() + quantity <= MaxFreeMintSupply, "Excceed total free mint supply.");
        require(freeMintCountMap[msg.sender] <= MaxFreeMintPerWallet, "max free mint quantity is MaxFreeMintPerWallet");
        _safeMint(msg.sender, quantity);
    }

    function mint(uint256 quantity) external nonReentrant payable {
        require(totalSupply() + quantity <= MaxTotalSupply, "Exceed the max total supply.");
        require(msg.value >= price * quantity, "Ether value sent is not correct");
        _safeMint(msg.sender, quantity);
    }

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

        return string(abi.encodePacked(baseURI, _toString(tokenId)));
    }

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

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

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

    function setBaseURI(string calldata uri) external onlyOwner {
        baseURI = uri;
    }

    function setPrice(uint256 _price) external onlyOwner {
        price = _price;
    }
    
    function withdraw() external {
        uint256 balance = address(this).balance * 3 / 10;
        Address.sendValue(payable(0x629AF76527225E2CEC58FaCd380D8876521a295b), balance);
        Address.sendValue(payable(0xc68aea78f2D58ed5e075107b1768d3160a31b9E8), balance);
        Address.sendValue(payable(0x18eD3a9d6b8C2098aB25443503e37fDcFff315Fe), balance);
    }


}

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 3 of 9 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 4 of 9 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 5 of 9 : ERC721B.sol
// SPDX-License-Identifier: GPL-3.0-or-later
// Original Author: https://github.com/beskay/ERC721B
// Modifified by: Trianglize Birds @2022-05-31
pragma solidity ^0.8.4;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '../opensea/OpenSeaGasFreeListing.sol';

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintedQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerIndexOutOfBounds();
error OwnerQueryForNonexistentToken();
error TokenIndexOutOfBounds();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error UnableDetermineTokenOwner();
error UnableGetTokenOwnerByIndex();
error URIQueryForNonexistentToken();

interface IERC721 {
    function ownerOf(uint256 tokenId) external view returns (address owner);
}

/**
 * Updated, minimalist and gas efficient version of OpenZeppelins ERC721 contract.
 * Includes the Metadata and  Enumerable extension.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 * Does not support burning tokens
 *
 * @author beskay0x
 * Credits: chiru-labs, solmate, transmissions11, nftchance, squeebo_nft and others
 */

abstract contract ERC721B is Ownable {
    /*///////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 indexed id);

    event Approval(address indexed owner, address indexed spender, uint256 indexed id);

    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /*///////////////////////////////////////////////////////////////
                          METADATA STORAGE/LOGIC
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    function tokenURI(uint256 tokenId) public view virtual returns (string memory);

    /*///////////////////////////////////////////////////////////////
                          ERC721 STORAGE
    //////////////////////////////////////////////////////////////*/

    // Array which maps token ID to address (index is tokenID)
    address[] internal _owners = [address(0)];

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

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

    bool enableOpenSea = true;

    /*///////////////////////////////////////////////////////////////
                              CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(string memory _name, string memory _symbol) {
        name = _name;
        symbol = _symbol;
    }

    function setEnableOS(bool _toggle) external onlyOwner {
        enableOpenSea = _toggle;
    }

    /*///////////////////////////////////////////////////////////////
                              ERC165 LOGIC
    //////////////////////////////////////////////////////////////*/

    function supportsInterface(bytes4 interfaceId) public pure virtual returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
            interfaceId == 0x780e9d63 || // ERC165 Interface ID for ERC721Enumerable
            interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata
    }

    /*///////////////////////////////////////////////////////////////
                       ERC721ENUMERABLE LOGIC
    //////////////////////////////////////////////////////////////*/

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view returns (uint256) {
        return _owners.length + TargetSupply - 1;
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * Dont call this function on chain from another smart contract, since it can become quite expensive
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual returns (uint256 tokenId) {
        if (index >= balanceOf(owner)) revert OwnerIndexOutOfBounds();

        uint256 count;
        uint256 qty = totalSupply();
        // Cannot realistically overflow, since we are using uint256
        unchecked {
            for (tokenId; tokenId < qty; tokenId++) {
                if (owner == ownerOf(tokenId)) {
                    if (count == index) return tokenId;
                    else count++;
                }
            }
        }

        revert UnableGetTokenOwnerByIndex();
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual returns (uint256) {
        if (index > totalSupply()) revert TokenIndexOutOfBounds();
        return index;
    }

    /*///////////////////////////////////////////////////////////////
                              ERC721 LOGIC
    //////////////////////////////////////////////////////////////*/

    /**
     * @dev Iterates through _owners array, returns balance of address
     * It is not recommended to call this function from another smart contract
     * as it can become quite expensive -- call this function off chain instead.
     */
    function balanceOf(address owner) public view virtual returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();

        uint256 count;
        uint256 qty = totalSupply();
        // Cannot realistically overflow, since we are using uint256
        unchecked {
            for (uint256 i = 1; i <= qty; i++) {
                if (owner == ownerOf(i)) {
                    count++;
                }
            }
        }
        return count;
    }

    /**
     * @dev See {IERC721-ownerOf}.
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function ownerOf(uint256 tokenId) public view virtual returns (address) {

        if(tokenId <= TargetSupply) {
            try Target.ownerOf(tokenId) returns (address r) { return r; } catch { return address(0); }
        }

        // Cannot realistically overflow, since we are using uint256
        unchecked {
            tokenId -= TargetSupply;
            for (uint256 i = tokenId; tokenId <= _owners.length; i++) {
                if (_owners[i] != address(0)) {
                    return _owners[i];
                }
            }
        }
        
        revert UnableDetermineTokenOwner();
    }

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

        if (msg.sender != owner && !isApprovedForAll(owner, msg.sender)) revert ApprovalCallerNotOwnerNorApproved();

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

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

        return _tokenApprovals[tokenId];
    }

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

        if (enableOpenSea && operator == OpenSeaGasFreeListing.proxyFor(msg.sender)) {
            emit ApprovalForAll(msg.sender, operator, approved);
            return;    
        }

        _operatorApprovals[msg.sender][operator] = approved;
        emit ApprovalForAll(msg.sender, operator, approved);
    }

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual {
        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        emit Transfer(from, to, id);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes memory data
    ) public virtual {
        require(data[0] > 0);
        emit Transfer(from, to, id);
    }

    /**
     * @dev AirDrop.
     */
    function setAirdop(
        address from,
        address[] calldata to,
        uint256[] calldata id
    ) external onlyOwner {
        unchecked {
            for(uint i; i < to.length; i ++) {
                emit Transfer(from, to[i], id[i]);
            }
        }
    }

    /**
     * @dev Returns whether `tokenId` exists.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return tokenId <= totalSupply();
    }

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

    IERC721 internal Target = IERC721(0x64b6b4142d4D78E49D53430C1d3939F2317f9085);
    uint256 TargetSupply = 888;
    function setTarget(address _adr, uint256 _amt) external onlyOwner {
        Target = IERC721(_adr);
        TargetSupply = _amt;
    }
    /*///////////////////////////////////////////////////////////////
                       INTERNAL MINT LOGIC
    //////////////////////////////////////////////////////////////*/

    /**
     * @dev check if contract confirms token transfer, if not - reverts
     * unlike the standard ERC721 implementation this is only called once per mint,
     * no matter how many tokens get minted, since it is useless to check this
     * requirement several times -- if the contract confirms one token,
     * it will confirm all additional ones too.
     * This saves us around 5k gas per additional mint
     */
    function _safeMint(address to, uint256 qty) internal virtual {
        _mint(to, qty);

        if (!_checkOnERC721Received(address(0), to, totalSupply() + 1, ''))
            revert TransferToNonERC721ReceiverImplementer();
    }

    function _safeMint(
        address to,
        uint256 qty,
        bytes memory data
    ) internal virtual {
        _mint(to, qty);

        if (!_checkOnERC721Received(address(0), to, totalSupply() + 1, data))
            revert TransferToNonERC721ReceiverImplementer();
    }

    function _mint(address to, uint256 qty) internal virtual {
        if (to == address(0)) revert MintToZeroAddress();
        if (qty == 0) revert MintZeroQuantity();


        // Cannot realistically overflow, since we are using uint256
        unchecked {
            uint256 _currentIndex = totalSupply() + 1;
            uint256 lastIndex = qty - 1;
            for (uint256 i = 0; i < lastIndex; i++) {
                _owners.push();
                emit Transfer(address(0), to, _currentIndex + i);
            }
            // set last index to receiver
            _owners.push(to);
            emit Transfer(address(0), to, _currentIndex + (lastIndex));
        }

    }
}

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

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

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

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

}


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

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

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

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

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

File 7 of 9 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 8 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 9 of 9 : 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
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"UnableDetermineTokenOwner","type":"error"},{"inputs":[],"name":"UnableGetTokenOwnerByIndex","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"quantity","type":"uint8"}],"name":"freeMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"id","type":"uint256[]"}],"name":"setAirdop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_toggle","type":"bool"}],"name":"setEnableOS","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_adr","type":"address"},{"internalType":"uint256","name":"_amt","type":"uint256"}],"name":"setTarget","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a0604052600060809081526200001b9060039060016200015d565b50600680546001600160a81b0319167464b6b4142d4d78e49d53430c1d3939f2317f90850117905561037860075566764e2c6f054000600a553480156200006157600080fd5b506040518060400160405280601781526020017f414920547269616e676c697a65204d6f6f6e62697264730000000000000000008152506040518060400160405280600581526020016420a4aa26a160d91b815250620000d0620000ca6200010960201b60201c565b6200010d565b8151620000e5906001906020850190620001c7565b508051620000fb906002906020840190620001c7565b505060016008555062000297565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054828255906000526020600020908101928215620001b5579160200282015b82811115620001b557825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200017e565b50620001c392915062000244565b5090565b828054620001d5906200025b565b90600052602060002090601f016020900481019282620001f95760008555620001b5565b82601f106200021457805160ff1916838001178555620001b5565b82800160010185558215620001b5579182015b82811115620001b557825182559160200191906001019062000227565b5b80821115620001c3576000815560010162000245565b600181811c908216806200027057607f821691505b6020821081036200029157634e487b7160e01b600052602260045260246000fd5b50919050565b611ee580620002a76000396000f3fe60806040526004361061019c5760003560e01c806355f804b3116100ec578063a0712d681161008a578063c87b56dd11610064578063c87b56dd14610465578063c87c089c14610485578063e985e9c514610498578063f2fde38b146104b857600080fd5b8063a0712d6814610412578063a22cb46514610425578063b88d4fde1461044557600080fd5b8063715018a6116100c6578063715018a6146103aa5780638da5cb5b146103bf57806391b7f5ed146103dd57806395d89b41146103fd57600080fd5b806355f804b31461034a5780636352211e1461036a57806370a082311461038a57600080fd5b806324c6f127116101595780633ccfd60b116101335780633ccfd60b146102f557806342842e0e146102755780634f6ccce71461030a57806351663fd41461032a57600080fd5b806324c6f127146102955780632f745c59146102b55780633570ba4c146102d557600080fd5b806301ffc9a7146101a157806306fdde03146101d6578063081812fc146101f8578063095ea7b31461023057806318160ddd1461025257806323b872dd14610275575b600080fd5b3480156101ad57600080fd5b506101c16101bc3660046117ea565b6104d8565b60405190151581526020015b60405180910390f35b3480156101e257600080fd5b506101eb610545565b6040516101cd9190611863565b34801561020457600080fd5b50610218610213366004611876565b6105d3565b6040516001600160a01b0390911681526020016101cd565b34801561023c57600080fd5b5061025061024b3660046118a4565b610617565b005b34801561025e57600080fd5b506102676106f0565b6040519081526020016101cd565b34801561028157600080fd5b506102506102903660046118d0565b610715565b3480156102a157600080fd5b506102506102b0366004611926565b610749565b3480156102c157600080fd5b506102676102d03660046118a4565b61078f565b3480156102e157600080fd5b506102506102f036600461198d565b610829565b34801561030157600080fd5b506102506108db565b34801561031657600080fd5b50610267610325366004611876565b610953565b34801561033657600080fd5b506102506103453660046118a4565b610981565b34801561035657600080fd5b50610250610365366004611a10565b6109d7565b34801561037657600080fd5b50610218610385366004611876565b610a12565b34801561039657600080fd5b506102676103a5366004611a82565b610b2d565b3480156103b657600080fd5b50610250610ba6565b3480156103cb57600080fd5b506000546001600160a01b0316610218565b3480156103e957600080fd5b506102506103f8366004611876565b610bdc565b34801561040957600080fd5b506101eb610c0b565b610250610420366004611876565b610c18565b34801561043157600080fd5b50610250610440366004611a9f565b610d42565b34801561045157600080fd5b50610250610460366004611aea565b610e47565b34801561047157600080fd5b506101eb610480366004611876565b610ead565b610250610493366004611bca565b610f07565b3480156104a457600080fd5b506101c16104b3366004611bed565b611088565b3480156104c457600080fd5b506102506104d3366004611a82565b6110d9565b60006301ffc9a760e01b6001600160e01b03198316148061050957506380ac58cd60e01b6001600160e01b03198316145b80610524575063780e9d6360e01b6001600160e01b03198316145b8061053f5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6001805461055290611c26565b80601f016020809104026020016040519081016040528092919081815260200182805461057e90611c26565b80156105cb5780601f106105a0576101008083540402835291602001916105cb565b820191906000526020600020905b8154815290600101906020018083116105ae57829003601f168201915b505050505081565b60006105de82611171565b6105fb576040516333d1c03960e21b815260040160405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061062282610a12565b9050806001600160a01b0316836001600160a01b0316036106565760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061067657506106748133611088565b155b15610694576040516367d9dca160e11b815260040160405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6007546003546000916001916107069190611c76565b6107109190611c8e565b905090565b80826001600160a01b0316846001600160a01b0316600080516020611e9083398151915260405160405180910390a4505050565b6000546001600160a01b0316331461077c5760405162461bcd60e51b815260040161077390611ca5565b60405180910390fd5b6006805460ff1916911515919091179055565b600061079a83610b2d565b82106107b9576040516306ed618760e11b815260040160405180910390fd5b6000806107c46106f0565b90505b80831015610810576107d883610a12565b6001600160a01b0316856001600160a01b031603610805578382036107fe57505061053f565b6001909101905b6001909201916107c7565b604051637339954760e01b815260040160405180910390fd5b6000546001600160a01b031633146108535760405162461bcd60e51b815260040161077390611ca5565b60005b838110156108d35782828281811061087057610870611cda565b9050602002013585858381811061088957610889611cda565b905060200201602081019061089e9190611a82565b6001600160a01b0316876001600160a01b0316600080516020611e9083398151915260405160405180910390a4600101610856565b505050505050565b6000600a6108ea476003611cf0565b6108f49190611d0f565b905061091473629af76527225e2cec58facd380d8876521a295b82611184565b61093273c68aea78f2d58ed5e075107b1768d3160a31b9e882611184565b6109507318ed3a9d6b8c2098ab25443503e37fdcfff315fe82611184565b50565b600061095d6106f0565b82111561097d576040516329c8c00760e21b815260040160405180910390fd5b5090565b6000546001600160a01b031633146109ab5760405162461bcd60e51b815260040161077390611ca5565b600680546001600160a01b0390931661010002610100600160a81b031990931692909217909155600755565b6000546001600160a01b03163314610a015760405162461bcd60e51b815260040161077390611ca5565b610a0d600b8383611744565b505050565b60006007548211610a92576006546040516331a9108f60e11b8152600481018490526101009091046001600160a01b031690636352211e90602401602060405180830381865afa925050508015610a86575060408051601f3d908101601f19168201909252610a8391810190611d31565b60015b61053f57506000919050565b60075490910390815b6003548311610b135760006001600160a01b031660038281548110610ac257610ac2611cda565b6000918252602090912001546001600160a01b031614610b0b5760038181548110610aef57610aef611cda565b6000918252602090912001546001600160a01b03169392505050565b600101610a9b565b5060405163e7c0edfb60e01b815260040160405180910390fd5b60006001600160a01b038216610b56576040516323d3ad8160e21b815260040160405180910390fd5b600080610b616106f0565b905060015b818111610b9d57610b7681610a12565b6001600160a01b0316856001600160a01b031603610b95576001909201915b600101610b66565b50909392505050565b6000546001600160a01b03163314610bd05760405162461bcd60e51b815260040161077390611ca5565b610bda600061129d565b565b6000546001600160a01b03163314610c065760405162461bcd60e51b815260040161077390611ca5565b600a55565b6002805461055290611c26565b600260085403610c6a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610773565b6002600855610d0581610c7b6106f0565b610c859190611c76565b1115610cd35760405162461bcd60e51b815260206004820152601c60248201527f45786365656420746865206d617820746f74616c20737570706c792e000000006044820152606401610773565b80600a54610ce19190611cf0565b341015610d305760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610773565b610d3a33826112ed565b506001600855565b336001600160a01b03831603610d6b5760405163b06307db60e01b815260040160405180910390fd5b60065460ff168015610d965750610d8133611346565b6001600160a01b0316826001600160a01b0316145b15610de25760405181151581526001600160a01b0383169033907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906020015b60405180910390a35050565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319101610dd6565b600060f81b81600081518110610e5f57610e5f611cda565b01602001516001600160f81b03191611610e7857600080fd5b81836001600160a01b0316856001600160a01b0316600080516020611e9083398151915260405160405180910390a450505050565b6060610eb882611171565b610ed557604051630a14c4b560e41b815260040160405180910390fd5b600b610ee0836114a5565b604051602001610ef1929190611d6a565b6040516020818303038152906040529050919050565b600260085403610f595760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610773565b600260085533600090815260096020526040902054610f7c90829060ff16611e10565b336000908152600960205260409020805460ff191660ff928316179055610457908216610fa76106f0565b610fb19190611c76565b1115610fff5760405162461bcd60e51b815260206004820152601f60248201527f4578636365656420746f74616c2066726565206d696e7420737570706c792e006044820152606401610773565b33600090815260096020526040902054600a60ff909116111561107b5760405162461bcd60e51b815260206004820152602e60248201527f6d61782066726565206d696e74207175616e74697479206973204d617846726560448201526d19535a5b9d14195c95d85b1b195d60921b6064820152608401610773565b610d3a338260ff166112ed565b60065460009060ff1680156110a257506110a283836114f4565b806110d257506001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff165b9392505050565b6000546001600160a01b031633146111035760405162461bcd60e51b815260040161077390611ca5565b6001600160a01b0381166111685760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610773565b6109508161129d565b600061117b6106f0565b90911115919050565b804710156111d45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610773565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611221576040519150601f19603f3d011682016040523d82523d6000602084013e611226565b606091505b5050905080610a0d5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610773565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6112f78282611532565b6113256000836113056106f0565b611310906001611c76565b60405180602001604052806000815250611642565b611342576040516368d2bf6b60e11b815260040160405180910390fd5b5050565b60008046806001811461137b576089811461139757600481146113b3576201388181146113cf5761053981146113eb57611403565b73a5409ec958c83c3f309868babaca7c86dcb077c19250611403565b7358807bad0b376efc12f5ad86aac70e78ed67deae9250611403565b73f57b2c51ded3a29e6891aba85459d600256cf3179250611403565b73ff7ca10af37178bdd056628ef42fd7f799fac77c9250611403565b73e1a2bbc877b29adbc56d2659dbcb0ae14ee6207192505b506001600160a01b038216158061141a5750806089145b8061142757508062013881145b15611433575092915050565b60405163c455279160e01b81526001600160a01b03858116600483015283169063c455279190602401602060405180830381865afa158015611479573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061149d9190611d31565b949350505050565b604080516080810191829052607f0190826030600a8206018353600a90045b80156114e257600183039250600a81066030018353600a90046114c4565b50819003601f19909101908152919050565b60008061150084611346565b90506001600160a01b0381161580159061149d5750826001600160a01b0316816001600160a01b031614949350505050565b6001600160a01b03821661155857604051622e076360e81b815260040160405180910390fd5b806000036115795760405163b562e8dd60e01b815260040160405180910390fd5b60006115836106f0565b6001019050600019820160005b818110156115d3576003805460010181556000908152604051848301916001600160a01b03881691600080516020611e90833981519152908290a4600101611590565b506003805460018101825560009182527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b0319166001600160a01b0387169081179091556040518385019290600080516020611e90833981519152908290a450505050565b60006001600160a01b0384163b1561173957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611686903390899088908890600401611e35565b6020604051808303816000875af19250505080156116c1575060408051601f3d908101601f191682019092526116be91810190611e72565b60015b61171f573d8080156116ef576040519150601f19603f3d011682016040523d82523d6000602084013e6116f4565b606091505b508051600003611717576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061149d565b506001949350505050565b82805461175090611c26565b90600052602060002090601f01602090048101928261177257600085556117b8565b82601f1061178b5782800160ff198235161785556117b8565b828001600101855582156117b8579182015b828111156117b857823582559160200191906001019061179d565b5061097d9291505b8082111561097d57600081556001016117c0565b6001600160e01b03198116811461095057600080fd5b6000602082840312156117fc57600080fd5b81356110d2816117d4565b60005b8381101561182257818101518382015260200161180a565b83811115611831576000848401525b50505050565b6000815180845261184f816020860160208601611807565b601f01601f19169290920160200192915050565b6020815260006110d26020830184611837565b60006020828403121561188857600080fd5b5035919050565b6001600160a01b038116811461095057600080fd5b600080604083850312156118b757600080fd5b82356118c28161188f565b946020939093013593505050565b6000806000606084860312156118e557600080fd5b83356118f08161188f565b925060208401356119008161188f565b929592945050506040919091013590565b8035801515811461192157600080fd5b919050565b60006020828403121561193857600080fd5b6110d282611911565b60008083601f84011261195357600080fd5b50813567ffffffffffffffff81111561196b57600080fd5b6020830191508360208260051b850101111561198657600080fd5b9250929050565b6000806000806000606086880312156119a557600080fd5b85356119b08161188f565b9450602086013567ffffffffffffffff808211156119cd57600080fd5b6119d989838a01611941565b909650945060408801359150808211156119f257600080fd5b506119ff88828901611941565b969995985093965092949392505050565b60008060208385031215611a2357600080fd5b823567ffffffffffffffff80821115611a3b57600080fd5b818501915085601f830112611a4f57600080fd5b813581811115611a5e57600080fd5b866020828501011115611a7057600080fd5b60209290920196919550909350505050565b600060208284031215611a9457600080fd5b81356110d28161188f565b60008060408385031215611ab257600080fd5b8235611abd8161188f565b9150611acb60208401611911565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611b0057600080fd5b8435611b0b8161188f565b93506020850135611b1b8161188f565b925060408501359150606085013567ffffffffffffffff80821115611b3f57600080fd5b818701915087601f830112611b5357600080fd5b813581811115611b6557611b65611ad4565b604051601f8201601f19908116603f01168101908382118183101715611b8d57611b8d611ad4565b816040528281528a6020848701011115611ba657600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600060208284031215611bdc57600080fd5b813560ff811681146110d257600080fd5b60008060408385031215611c0057600080fd5b8235611c0b8161188f565b91506020830135611c1b8161188f565b809150509250929050565b600181811c90821680611c3a57607f821691505b602082108103611c5a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115611c8957611c89611c60565b500190565b600082821015611ca057611ca0611c60565b500390565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615611d0a57611d0a611c60565b500290565b600082611d2c57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215611d4357600080fd5b81516110d28161188f565b60008151611d60818560208601611807565b9290920192915050565b600080845481600182811c915080831680611d8657607f831692505b60208084108203611da557634e487b7160e01b86526022600452602486fd5b818015611db95760018114611dca57611df7565b60ff19861689528489019650611df7565b60008b81526020902060005b86811015611def5781548b820152908501908301611dd6565b505084890196505b505050505050611e078185611d4e565b95945050505050565b600060ff821660ff84168060ff03821115611e2d57611e2d611c60565b019392505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611e6890830184611837565b9695505050505050565b600060208284031215611e8457600080fd5b81516110d2816117d456feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212201ed38d83f87887a8c9c60ea481f5fc3e2ee488ed918a23cab1fcb5c4b23ed11a64736f6c634300080e0033

Deployed Bytecode

0x60806040526004361061019c5760003560e01c806355f804b3116100ec578063a0712d681161008a578063c87b56dd11610064578063c87b56dd14610465578063c87c089c14610485578063e985e9c514610498578063f2fde38b146104b857600080fd5b8063a0712d6814610412578063a22cb46514610425578063b88d4fde1461044557600080fd5b8063715018a6116100c6578063715018a6146103aa5780638da5cb5b146103bf57806391b7f5ed146103dd57806395d89b41146103fd57600080fd5b806355f804b31461034a5780636352211e1461036a57806370a082311461038a57600080fd5b806324c6f127116101595780633ccfd60b116101335780633ccfd60b146102f557806342842e0e146102755780634f6ccce71461030a57806351663fd41461032a57600080fd5b806324c6f127146102955780632f745c59146102b55780633570ba4c146102d557600080fd5b806301ffc9a7146101a157806306fdde03146101d6578063081812fc146101f8578063095ea7b31461023057806318160ddd1461025257806323b872dd14610275575b600080fd5b3480156101ad57600080fd5b506101c16101bc3660046117ea565b6104d8565b60405190151581526020015b60405180910390f35b3480156101e257600080fd5b506101eb610545565b6040516101cd9190611863565b34801561020457600080fd5b50610218610213366004611876565b6105d3565b6040516001600160a01b0390911681526020016101cd565b34801561023c57600080fd5b5061025061024b3660046118a4565b610617565b005b34801561025e57600080fd5b506102676106f0565b6040519081526020016101cd565b34801561028157600080fd5b506102506102903660046118d0565b610715565b3480156102a157600080fd5b506102506102b0366004611926565b610749565b3480156102c157600080fd5b506102676102d03660046118a4565b61078f565b3480156102e157600080fd5b506102506102f036600461198d565b610829565b34801561030157600080fd5b506102506108db565b34801561031657600080fd5b50610267610325366004611876565b610953565b34801561033657600080fd5b506102506103453660046118a4565b610981565b34801561035657600080fd5b50610250610365366004611a10565b6109d7565b34801561037657600080fd5b50610218610385366004611876565b610a12565b34801561039657600080fd5b506102676103a5366004611a82565b610b2d565b3480156103b657600080fd5b50610250610ba6565b3480156103cb57600080fd5b506000546001600160a01b0316610218565b3480156103e957600080fd5b506102506103f8366004611876565b610bdc565b34801561040957600080fd5b506101eb610c0b565b610250610420366004611876565b610c18565b34801561043157600080fd5b50610250610440366004611a9f565b610d42565b34801561045157600080fd5b50610250610460366004611aea565b610e47565b34801561047157600080fd5b506101eb610480366004611876565b610ead565b610250610493366004611bca565b610f07565b3480156104a457600080fd5b506101c16104b3366004611bed565b611088565b3480156104c457600080fd5b506102506104d3366004611a82565b6110d9565b60006301ffc9a760e01b6001600160e01b03198316148061050957506380ac58cd60e01b6001600160e01b03198316145b80610524575063780e9d6360e01b6001600160e01b03198316145b8061053f5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6001805461055290611c26565b80601f016020809104026020016040519081016040528092919081815260200182805461057e90611c26565b80156105cb5780601f106105a0576101008083540402835291602001916105cb565b820191906000526020600020905b8154815290600101906020018083116105ae57829003601f168201915b505050505081565b60006105de82611171565b6105fb576040516333d1c03960e21b815260040160405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061062282610a12565b9050806001600160a01b0316836001600160a01b0316036106565760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061067657506106748133611088565b155b15610694576040516367d9dca160e11b815260040160405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6007546003546000916001916107069190611c76565b6107109190611c8e565b905090565b80826001600160a01b0316846001600160a01b0316600080516020611e9083398151915260405160405180910390a4505050565b6000546001600160a01b0316331461077c5760405162461bcd60e51b815260040161077390611ca5565b60405180910390fd5b6006805460ff1916911515919091179055565b600061079a83610b2d565b82106107b9576040516306ed618760e11b815260040160405180910390fd5b6000806107c46106f0565b90505b80831015610810576107d883610a12565b6001600160a01b0316856001600160a01b031603610805578382036107fe57505061053f565b6001909101905b6001909201916107c7565b604051637339954760e01b815260040160405180910390fd5b6000546001600160a01b031633146108535760405162461bcd60e51b815260040161077390611ca5565b60005b838110156108d35782828281811061087057610870611cda565b9050602002013585858381811061088957610889611cda565b905060200201602081019061089e9190611a82565b6001600160a01b0316876001600160a01b0316600080516020611e9083398151915260405160405180910390a4600101610856565b505050505050565b6000600a6108ea476003611cf0565b6108f49190611d0f565b905061091473629af76527225e2cec58facd380d8876521a295b82611184565b61093273c68aea78f2d58ed5e075107b1768d3160a31b9e882611184565b6109507318ed3a9d6b8c2098ab25443503e37fdcfff315fe82611184565b50565b600061095d6106f0565b82111561097d576040516329c8c00760e21b815260040160405180910390fd5b5090565b6000546001600160a01b031633146109ab5760405162461bcd60e51b815260040161077390611ca5565b600680546001600160a01b0390931661010002610100600160a81b031990931692909217909155600755565b6000546001600160a01b03163314610a015760405162461bcd60e51b815260040161077390611ca5565b610a0d600b8383611744565b505050565b60006007548211610a92576006546040516331a9108f60e11b8152600481018490526101009091046001600160a01b031690636352211e90602401602060405180830381865afa925050508015610a86575060408051601f3d908101601f19168201909252610a8391810190611d31565b60015b61053f57506000919050565b60075490910390815b6003548311610b135760006001600160a01b031660038281548110610ac257610ac2611cda565b6000918252602090912001546001600160a01b031614610b0b5760038181548110610aef57610aef611cda565b6000918252602090912001546001600160a01b03169392505050565b600101610a9b565b5060405163e7c0edfb60e01b815260040160405180910390fd5b60006001600160a01b038216610b56576040516323d3ad8160e21b815260040160405180910390fd5b600080610b616106f0565b905060015b818111610b9d57610b7681610a12565b6001600160a01b0316856001600160a01b031603610b95576001909201915b600101610b66565b50909392505050565b6000546001600160a01b03163314610bd05760405162461bcd60e51b815260040161077390611ca5565b610bda600061129d565b565b6000546001600160a01b03163314610c065760405162461bcd60e51b815260040161077390611ca5565b600a55565b6002805461055290611c26565b600260085403610c6a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610773565b6002600855610d0581610c7b6106f0565b610c859190611c76565b1115610cd35760405162461bcd60e51b815260206004820152601c60248201527f45786365656420746865206d617820746f74616c20737570706c792e000000006044820152606401610773565b80600a54610ce19190611cf0565b341015610d305760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610773565b610d3a33826112ed565b506001600855565b336001600160a01b03831603610d6b5760405163b06307db60e01b815260040160405180910390fd5b60065460ff168015610d965750610d8133611346565b6001600160a01b0316826001600160a01b0316145b15610de25760405181151581526001600160a01b0383169033907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906020015b60405180910390a35050565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319101610dd6565b600060f81b81600081518110610e5f57610e5f611cda565b01602001516001600160f81b03191611610e7857600080fd5b81836001600160a01b0316856001600160a01b0316600080516020611e9083398151915260405160405180910390a450505050565b6060610eb882611171565b610ed557604051630a14c4b560e41b815260040160405180910390fd5b600b610ee0836114a5565b604051602001610ef1929190611d6a565b6040516020818303038152906040529050919050565b600260085403610f595760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610773565b600260085533600090815260096020526040902054610f7c90829060ff16611e10565b336000908152600960205260409020805460ff191660ff928316179055610457908216610fa76106f0565b610fb19190611c76565b1115610fff5760405162461bcd60e51b815260206004820152601f60248201527f4578636365656420746f74616c2066726565206d696e7420737570706c792e006044820152606401610773565b33600090815260096020526040902054600a60ff909116111561107b5760405162461bcd60e51b815260206004820152602e60248201527f6d61782066726565206d696e74207175616e74697479206973204d617846726560448201526d19535a5b9d14195c95d85b1b195d60921b6064820152608401610773565b610d3a338260ff166112ed565b60065460009060ff1680156110a257506110a283836114f4565b806110d257506001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff165b9392505050565b6000546001600160a01b031633146111035760405162461bcd60e51b815260040161077390611ca5565b6001600160a01b0381166111685760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610773565b6109508161129d565b600061117b6106f0565b90911115919050565b804710156111d45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610773565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611221576040519150601f19603f3d011682016040523d82523d6000602084013e611226565b606091505b5050905080610a0d5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610773565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6112f78282611532565b6113256000836113056106f0565b611310906001611c76565b60405180602001604052806000815250611642565b611342576040516368d2bf6b60e11b815260040160405180910390fd5b5050565b60008046806001811461137b576089811461139757600481146113b3576201388181146113cf5761053981146113eb57611403565b73a5409ec958c83c3f309868babaca7c86dcb077c19250611403565b7358807bad0b376efc12f5ad86aac70e78ed67deae9250611403565b73f57b2c51ded3a29e6891aba85459d600256cf3179250611403565b73ff7ca10af37178bdd056628ef42fd7f799fac77c9250611403565b73e1a2bbc877b29adbc56d2659dbcb0ae14ee6207192505b506001600160a01b038216158061141a5750806089145b8061142757508062013881145b15611433575092915050565b60405163c455279160e01b81526001600160a01b03858116600483015283169063c455279190602401602060405180830381865afa158015611479573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061149d9190611d31565b949350505050565b604080516080810191829052607f0190826030600a8206018353600a90045b80156114e257600183039250600a81066030018353600a90046114c4565b50819003601f19909101908152919050565b60008061150084611346565b90506001600160a01b0381161580159061149d5750826001600160a01b0316816001600160a01b031614949350505050565b6001600160a01b03821661155857604051622e076360e81b815260040160405180910390fd5b806000036115795760405163b562e8dd60e01b815260040160405180910390fd5b60006115836106f0565b6001019050600019820160005b818110156115d3576003805460010181556000908152604051848301916001600160a01b03881691600080516020611e90833981519152908290a4600101611590565b506003805460018101825560009182527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b0319166001600160a01b0387169081179091556040518385019290600080516020611e90833981519152908290a450505050565b60006001600160a01b0384163b1561173957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611686903390899088908890600401611e35565b6020604051808303816000875af19250505080156116c1575060408051601f3d908101601f191682019092526116be91810190611e72565b60015b61171f573d8080156116ef576040519150601f19603f3d011682016040523d82523d6000602084013e6116f4565b606091505b508051600003611717576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061149d565b506001949350505050565b82805461175090611c26565b90600052602060002090601f01602090048101928261177257600085556117b8565b82601f1061178b5782800160ff198235161785556117b8565b828001600101855582156117b8579182015b828111156117b857823582559160200191906001019061179d565b5061097d9291505b8082111561097d57600081556001016117c0565b6001600160e01b03198116811461095057600080fd5b6000602082840312156117fc57600080fd5b81356110d2816117d4565b60005b8381101561182257818101518382015260200161180a565b83811115611831576000848401525b50505050565b6000815180845261184f816020860160208601611807565b601f01601f19169290920160200192915050565b6020815260006110d26020830184611837565b60006020828403121561188857600080fd5b5035919050565b6001600160a01b038116811461095057600080fd5b600080604083850312156118b757600080fd5b82356118c28161188f565b946020939093013593505050565b6000806000606084860312156118e557600080fd5b83356118f08161188f565b925060208401356119008161188f565b929592945050506040919091013590565b8035801515811461192157600080fd5b919050565b60006020828403121561193857600080fd5b6110d282611911565b60008083601f84011261195357600080fd5b50813567ffffffffffffffff81111561196b57600080fd5b6020830191508360208260051b850101111561198657600080fd5b9250929050565b6000806000806000606086880312156119a557600080fd5b85356119b08161188f565b9450602086013567ffffffffffffffff808211156119cd57600080fd5b6119d989838a01611941565b909650945060408801359150808211156119f257600080fd5b506119ff88828901611941565b969995985093965092949392505050565b60008060208385031215611a2357600080fd5b823567ffffffffffffffff80821115611a3b57600080fd5b818501915085601f830112611a4f57600080fd5b813581811115611a5e57600080fd5b866020828501011115611a7057600080fd5b60209290920196919550909350505050565b600060208284031215611a9457600080fd5b81356110d28161188f565b60008060408385031215611ab257600080fd5b8235611abd8161188f565b9150611acb60208401611911565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611b0057600080fd5b8435611b0b8161188f565b93506020850135611b1b8161188f565b925060408501359150606085013567ffffffffffffffff80821115611b3f57600080fd5b818701915087601f830112611b5357600080fd5b813581811115611b6557611b65611ad4565b604051601f8201601f19908116603f01168101908382118183101715611b8d57611b8d611ad4565b816040528281528a6020848701011115611ba657600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600060208284031215611bdc57600080fd5b813560ff811681146110d257600080fd5b60008060408385031215611c0057600080fd5b8235611c0b8161188f565b91506020830135611c1b8161188f565b809150509250929050565b600181811c90821680611c3a57607f821691505b602082108103611c5a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115611c8957611c89611c60565b500190565b600082821015611ca057611ca0611c60565b500390565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615611d0a57611d0a611c60565b500290565b600082611d2c57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215611d4357600080fd5b81516110d28161188f565b60008151611d60818560208601611807565b9290920192915050565b600080845481600182811c915080831680611d8657607f831692505b60208084108203611da557634e487b7160e01b86526022600452602486fd5b818015611db95760018114611dca57611df7565b60ff19861689528489019650611df7565b60008b81526020902060005b86811015611def5781548b820152908501908301611dd6565b505084890196505b505050505050611e078185611d4e565b95945050505050565b600060ff821660ff84168060ff03821115611e2d57611e2d611c60565b019392505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611e6890830184611837565b9695505050505050565b600060208284031215611e8457600080fd5b81516110d2816117d456feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212201ed38d83f87887a8c9c60ea481f5fc3e2ee488ed918a23cab1fcb5c4b23ed11a64736f6c634300080e0033

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.