ETH Price: $3,428.45 (+5.31%)
Gas: 9 Gwei

Token

TerraFirma (TF)
 

Overview

Max Total Supply

333 TF

Holders

210

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 TF
0xe7bad25778465bee33b523fb74736ee93dfb46e1
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:
TerraFirma

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-06-23
*/

// File: @openzeppelin/contracts/utils/Strings.sol


// 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: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;


/**
 * @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: erc721a/contracts/IERC721A.sol


// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: erc721a/contracts/ERC721A.sol


// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: contracts/terra.sol

//SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;






contract TerraFirma is Ownable, ERC721A {
    uint256 constant public MAX_SUPPLY = 333;
    

    uint256 public publicPrice = 0.005 ether;

    uint256 constant public PUBLIC_MINT_LIMIT_TXN = 1;
    uint256 constant public PUBLIC_MINT_LIMIT = 2;

    string private revealedURI = "ipfs://QmfYNGjgivKyMqTNBNbU3Tmd8gPvm7Non1reDh65aKg4p4/";

    // OpenSea CONTRACT_URI - https://docs.opensea.io/docs/contract-level-metadata
    string private CONTRACT_URI = "ipfs://IHAWPFPHGUBU5KRA175BYGA9FU56GPYZAF";

    bool public paused = true;
    bool public revealed = true;

    bool public freeSale = true;
    bool public publicSale = false;

    
    address constant internal DEV_ADDRESS = 0xcC3068499C0D498535C8b9534fa1CCb1A660a1cf;
    
    

    mapping(address => bool) public userMintedFree;
    mapping(address => uint256) public numUserMints;

    constructor(string memory _name, string memory _symbol, string memory _baseUri) ERC721A("TerraFirma", "TF") { }

    

    // This function is if you want to override the first Token ID# for ERC721A
    // Note: Fun fact - by overloading this method you save a small amount of gas for minting (technically just the first mint)
    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }

    function refundOverpay(uint256 price) private {
        if (msg.value > price) {
            (bool succ, ) = payable(msg.sender).call{
                value: (msg.value - price)
            }("");
            require(succ, "Transfer failed");
        }
        else if (msg.value < price) {
            revert("Not enough ETH sent");
        }
    }

    
    
    function freeMint(uint256 quantity) external payable mintCompliance(quantity) {
        require(freeSale, "Free sale inactive");
        require(msg.value == 0, "This phase is free");
        require(quantity == 1, "Only #1 free");

        uint256 newSupply = totalSupply() + quantity;
        
        require(newSupply <= 80, "Not enough free supply");

        require(!userMintedFree[msg.sender], "User max free limit");
        
        userMintedFree[msg.sender] = true;

        if(newSupply == 80) {
            freeSale = false;
            publicSale = true;
        }

        _safeMint(msg.sender, quantity);
    }

    function publicMint(uint256 quantity) external payable mintCompliance(quantity) {
        require(publicSale, "Public sale inactive");
        require(quantity <= PUBLIC_MINT_LIMIT_TXN, "Quantity too high");

        uint256 price = publicPrice;
        uint256 currMints = numUserMints[msg.sender];
                
        require(currMints + quantity <= PUBLIC_MINT_LIMIT, "User max mint limit");
        
        refundOverpay(price * quantity);

        numUserMints[msg.sender] = (currMints + quantity);

        _safeMint(msg.sender, quantity);
    }

   

    // Note: walletOfOwner is only really necessary for enumerability when staking/using on websites etc.
        // That said, it's a public view so we can keep it in.
        // This could also be optimized if someone REALLY wanted, but it's just a public view.
        // Check the pinned tweets of 0xInuarashi for more ideas on this method!
        // For now, this is just the version that existed in v1.
    function walletOfOwner(address _owner) public view returns (uint256[] memory)
    {
        uint256 ownerTokenCount = balanceOf(_owner);
        uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount);
        uint256 currentTokenId = 1;
        uint256 ownedTokenIndex = 0;

        while (ownedTokenIndex < ownerTokenCount && currentTokenId <= MAX_SUPPLY) {
            address currentTokenOwner = ownerOf(currentTokenId);

            if (currentTokenOwner == _owner) {
                ownedTokenIds[ownedTokenIndex] = currentTokenId;

                ownedTokenIndex++;
            }

        currentTokenId++;
        }

        return ownedTokenIds;
    }

    function tokenURI(uint256 _tokenId) public view override returns (string memory) {
        // Note: You don't REALLY need this require statement since nothing should be querying for non-existing tokens after reveal.
            // That said, it's a public view method so gas efficiency shouldn't come into play.
        require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token");
        
        if (revealed) {
            return string(abi.encodePacked(revealedURI, Strings.toString(_tokenId), ".json"));
        }
        else {
            return revealedURI;
        }
    }

    // https://docs.opensea.io/docs/contract-level-metadata
    // https://ethereum.stackexchange.com/questions/110924/how-to-properly-implement-a-contracturi-for-on-chain-nfts
    function contractURI() public view returns (string memory) {
        return CONTRACT_URI;
    }

   

    function setPublicPrice(uint256 _publicPrice) public onlyOwner {
        publicPrice = _publicPrice;
    }

    function setBaseURI(string memory _baseUri) public onlyOwner {
        revealedURI = _baseUri;
    }



    function setContractURI(string memory _contractURI) public onlyOwner {
        CONTRACT_URI = _contractURI;
    }

    // Note: Another option is to inherit Pausable without implementing the logic yourself.
       
    function setPaused(bool _state) public onlyOwner {
        paused = _state;
    }

    function setRevealed(bool _state) public onlyOwner {
        revealed = _state;
    }

    function setPublicEnabled(bool _state) public onlyOwner {
        publicSale = _state;
        freeSale = !_state;
    }
    function setFreeEnabled(bool _state) public onlyOwner {
        freeSale = _state;
        publicSale = !_state;
    }


    function withdraw() external payable onlyOwner {
        // Get the current funds to calculate initial percentages
        uint256 currBalance = address(this).balance;

        (bool succ, ) = payable(DEV_ADDRESS).call{
            value: (currBalance * 10000) / 10000
        }("0xcC3068499C0D498535C8b9534fa1CCb1A660a1cf");
        require(succ, "Dev transfer failed");

    }

    // Owner-only mint functionality to "Airdrop" mints to specific users
        // Note: These will likely end up hidden on OpenSea
    function mintToUser(uint256 quantity, address receiver) public onlyOwner mintCompliance(quantity) {
        _safeMint(receiver, quantity);
    }

   

    modifier mintCompliance(uint256 quantity) {
        require(!paused, "Contract is paused");
        require(totalSupply() + quantity <= MAX_SUPPLY, "Not enough mints left");
        require(tx.origin == msg.sender, "No contract minting");
        _;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_baseUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"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":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"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_MINT_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_MINT_LIMIT_TXN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"freeMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"freeSale","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":"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"},{"internalType":"address","name":"receiver","type":"address"}],"name":"mintToUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numUserMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setFreeEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPublicEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicPrice","type":"uint256"}],"name":"setPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRevealed","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userMintedFree","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

6611c37937e0800060095560e060405260366080818152906200272060a03980516200003491600a9160209091019062000190565b50604051806060016040528060298152602001620027566029913980516200006591600b9160209091019062000190565b50600c805463ffffffff1916620101011790553480156200008557600080fd5b506040516200277f3803806200277f833981016040819052620000a891620002ed565b6040518060400160405280600a81526020016954657272614669726d6160b01b815250604051806040016040528060028152602001612a2360f11b81525062000100620000fa6200013c60201b60201c565b62000140565b81516200011590600390602085019062000190565b5080516200012b90600490602084019062000190565b506001805550620003d19350505050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200019e906200037e565b90600052602060002090601f016020900481019282620001c257600085556200020d565b82601f10620001dd57805160ff19168380011785556200020d565b828001600101855582156200020d579182015b828111156200020d578251825591602001919060010190620001f0565b506200021b9291506200021f565b5090565b5b808211156200021b576000815560010162000220565b600082601f8301126200024857600080fd5b81516001600160401b0380821115620002655762000265620003bb565b604051601f8301601f19908116603f01168101908282118183101715620002905762000290620003bb565b81604052838152602092508683858801011115620002ad57600080fd5b600091505b83821015620002d15785820183015181830184015290820190620002b2565b83821115620002e35760008385830101525b9695505050505050565b6000806000606084860312156200030357600080fd5b83516001600160401b03808211156200031b57600080fd5b620003298783880162000236565b945060208601519150808211156200034057600080fd5b6200034e8783880162000236565b935060408601519150808211156200036557600080fd5b50620003748682870162000236565b9150509250925092565b600181811c908216806200039357607f821691505b60208210811415620003b557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61233f80620003e16000396000f3fe60806040526004361061023b5760003560e01c8063715018a61161012e578063a4b41a15116100ab578063c87b56dd1161006f578063c87b56dd14610684578063e0a80853146106a4578063e8a3d485146106c4578063e985e9c5146106d9578063f2fde38b1461072257600080fd5b8063a4b41a15146105f9578063a945bf8014610619578063b88d4fde1461062f578063bceae77b1461064f578063c62752551461066457600080fd5b80638da5cb5b116100f25780638da5cb5b146105665780639007bd7214610584578063938e3d7b146105a457806395d89b41146105c4578063a22cb465146105d957600080fd5b8063715018a6146104d15780637aeb7242146104e65780637af3a1af146105135780637c928fe91461053357806388dedc141461054657600080fd5b806333bc1c5c116101bc57806355f804b31161018057806355f804b3146104275780635c975abb146104475780636352211e1461046157806364f640761461048157806370a08231146104b157600080fd5b806333bc1c5c146103925780633ccfd60b146103b357806342842e0e146103bb578063438b6300146103db578063518302271461040857600080fd5b806318160ddd1161020357806318160ddd1461031157806323b872dd146103345780632db11544146103545780632fecf20b1461036757806332cb6b0c1461037c57600080fd5b806301ffc9a71461024057806306fdde0314610275578063081812fc14610297578063095ea7b3146102cf57806316c38b3c146102f1575b600080fd5b34801561024c57600080fd5b5061026061025b366004611e90565b610742565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b5061028a610794565b60405161026c91906120d3565b3480156102a357600080fd5b506102b76102b2366004611f13565b610826565b6040516001600160a01b03909116815260200161026c565b3480156102db57600080fd5b506102ef6102ea366004611e4b565b61086a565b005b3480156102fd57600080fd5b506102ef61030c366004611e75565b61090a565b34801561031d57600080fd5b50610326610950565b60405190815260200161026c565b34801561034057600080fd5b506102ef61034f366004611d69565b61095e565b6102ef610362366004611f13565b610aef565b34801561037357600080fd5b50610326600181565b34801561038857600080fd5b5061032661014d81565b34801561039e57600080fd5b50600c54610260906301000000900460ff1681565b6102ef610c9e565b3480156103c757600080fd5b506102ef6103d6366004611d69565b610dc0565b3480156103e757600080fd5b506103fb6103f6366004611d1b565b610de0565b60405161026c919061208f565b34801561041457600080fd5b50600c5461026090610100900460ff1681565b34801561043357600080fd5b506102ef610442366004611eca565b610ec1565b34801561045357600080fd5b50600c546102609060ff1681565b34801561046d57600080fd5b506102b761047c366004611f13565b610efe565b34801561048d57600080fd5b5061026061049c366004611d1b565b600d6020526000908152604090205460ff1681565b3480156104bd57600080fd5b506103266104cc366004611d1b565b610f09565b3480156104dd57600080fd5b506102ef610f58565b3480156104f257600080fd5b50610326610501366004611d1b565b600e6020526000908152604090205481565b34801561051f57600080fd5b506102ef61052e366004611e75565b610f8e565b6102ef610541366004611f13565b610fe7565b34801561055257600080fd5b506102ef610561366004611e75565b611226565b34801561057257600080fd5b506000546001600160a01b03166102b7565b34801561059057600080fd5b506102ef61059f366004611f2c565b611280565b3480156105b057600080fd5b506102ef6105bf366004611eca565b61132c565b3480156105d057600080fd5b5061028a611369565b3480156105e557600080fd5b506102ef6105f4366004611e21565b611378565b34801561060557600080fd5b50600c546102609062010000900460ff1681565b34801561062557600080fd5b5061032660095481565b34801561063b57600080fd5b506102ef61064a366004611da5565b61140e565b34801561065b57600080fd5b50610326600281565b34801561067057600080fd5b506102ef61067f366004611f13565b611452565b34801561069057600080fd5b5061028a61069f366004611f13565b611481565b3480156106b057600080fd5b506102ef6106bf366004611e75565b6115c9565b3480156106d057600080fd5b5061028a61160d565b3480156106e557600080fd5b506102606106f4366004611d36565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b34801561072e57600080fd5b506102ef61073d366004611d1b565b61161c565b60006301ffc9a760e01b6001600160e01b03198316148061077357506380ac58cd60e01b6001600160e01b03198316145b8061078e5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600380546107a390612231565b80601f01602080910402602001604051908101604052809291908181526020018280546107cf90612231565b801561081c5780601f106107f15761010080835404028352916020019161081c565b820191906000526020600020905b8154815290600101906020018083116107ff57829003601f168201915b5050505050905090565b6000610831826116b7565b61084e576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061087582610efe565b9050336001600160a01b038216146108ae5761089181336106f4565b6108ae576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000546001600160a01b0316331461093d5760405162461bcd60e51b815260040161093490612113565b60405180910390fd5b600c805460ff1916911515919091179055565b600254600154036000190190565b6000610969826116ec565b9050836001600160a01b0316816001600160a01b03161461099c5760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b038816909114176109e9576109cc86336106f4565b6109e957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610a1057604051633a954ecd60e21b815260040160405180910390fd5b8015610a1b57600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040902055600160e11b8316610aa65760018401600081815260056020526040902054610aa4576001548114610aa45760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b600c54819060ff1615610b145760405162461bcd60e51b815260040161093490612148565b61014d81610b20610950565b610b2a91906121a3565b1115610b485760405162461bcd60e51b815260040161093490612174565b323314610b675760405162461bcd60e51b8152600401610934906120e6565b600c546301000000900460ff16610bb75760405162461bcd60e51b81526020600482015260146024820152735075626c69632073616c6520696e61637469766560601b6044820152606401610934565b6001821115610bfc5760405162461bcd60e51b81526020600482015260116024820152700a2eac2dce8d2e8f240e8dede40d0d2ced607b1b6044820152606401610934565b600954336000908152600e60205260409020546002610c1b85836121a3565b1115610c5f5760405162461bcd60e51b8152602060048201526013602482015272155cd95c881b585e081b5a5b9d081b1a5b5a5d606a1b6044820152606401610934565b610c71610c6c85846121cf565b61175c565b610c7b84826121a3565b336000818152600e6020526040902091909155610c98908561183b565b50505050565b6000546001600160a01b03163314610cc85760405162461bcd60e51b815260040161093490612113565b47600073cc3068499c0d498535c8b9534fa1ccb1a660a1cf612710610ced84826121cf565b610cf791906121bb565b6040517f30786343333036383439394330443439383533354338623935333466613143438152693118a09b1b183098b1b360b11b6020820152602a0160006040518083038185875af1925050503d8060008114610d70576040519150601f19603f3d011682016040523d82523d6000602084013e610d75565b606091505b5050905080610dbc5760405162461bcd60e51b815260206004820152601360248201527211195d881d1c985b9cd9995c8819985a5b1959606a1b6044820152606401610934565b5050565b610ddb8383836040518060200160405280600081525061140e565b505050565b60606000610ded83610f09565b905060008167ffffffffffffffff811115610e0a57610e0a6122dd565b604051908082528060200260200182016040528015610e33578160200160208202803683370190505b509050600160005b8381108015610e4c575061014d8211155b15610eb7576000610e5c83610efe565b9050866001600160a01b0316816001600160a01b03161415610ea45782848381518110610e8b57610e8b6122c7565b602090810291909101015281610ea08161226c565b9250505b82610eae8161226c565b93505050610e3b565b5090949350505050565b6000546001600160a01b03163314610eeb5760405162461bcd60e51b815260040161093490612113565b8051610dbc90600a906020840190611be5565b600061078e826116ec565b60006001600160a01b038216610f32576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6000546001600160a01b03163314610f825760405162461bcd60e51b815260040161093490612113565b610f8c6000611855565b565b6000546001600160a01b03163314610fb85760405162461bcd60e51b815260040161093490612113565b600c805463ffff000019166301000000921580159390930262ff00001916176201000092909202919091179055565b600c54819060ff161561100c5760405162461bcd60e51b815260040161093490612148565b61014d81611018610950565b61102291906121a3565b11156110405760405162461bcd60e51b815260040161093490612174565b32331461105f5760405162461bcd60e51b8152600401610934906120e6565b600c5462010000900460ff166110ac5760405162461bcd60e51b8152602060048201526012602482015271467265652073616c6520696e61637469766560701b6044820152606401610934565b34156110ef5760405162461bcd60e51b815260206004820152601260248201527154686973207068617365206973206672656560701b6044820152606401610934565b8160011461112e5760405162461bcd60e51b815260206004820152600c60248201526b4f6e6c79202331206672656560a01b6044820152606401610934565b600082611139610950565b61114391906121a3565b9050605081111561118f5760405162461bcd60e51b81526020600482015260166024820152754e6f7420656e6f756768206672656520737570706c7960501b6044820152606401610934565b336000908152600d602052604090205460ff16156111e55760405162461bcd60e51b8152602060048201526013602482015272155cd95c881b585e08199c9959481b1a5b5a5d606a1b6044820152606401610934565b336000908152600d60205260409020805460ff19166001179055605081141561121c57600c805463ffff0000191663010000001790555b610ddb338461183b565b6000546001600160a01b031633146112505760405162461bcd60e51b815260040161093490612113565b600c805463ffff0000191662010000921580159390930263ff000000191617630100000092909202919091179055565b6000546001600160a01b031633146112aa5760405162461bcd60e51b815260040161093490612113565b600c54829060ff16156112cf5760405162461bcd60e51b815260040161093490612148565b61014d816112db610950565b6112e591906121a3565b11156113035760405162461bcd60e51b815260040161093490612174565b3233146113225760405162461bcd60e51b8152600401610934906120e6565b610ddb828461183b565b6000546001600160a01b031633146113565760405162461bcd60e51b815260040161093490612113565b8051610dbc90600b906020840190611be5565b6060600480546107a390612231565b6001600160a01b0382163314156113a25760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61141984848461095e565b6001600160a01b0383163b15610c9857611435848484846118a5565b610c98576040516368d2bf6b60e11b815260040160405180910390fd5b6000546001600160a01b0316331461147c5760405162461bcd60e51b815260040161093490612113565b600955565b606061148c826116b7565b6114f05760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610934565b600c54610100900460ff161561153257600a61150b8361199d565b60405160200161151c929190611f97565b6040516020818303038152906040529050919050565b600a805461153f90612231565b80601f016020809104026020016040519081016040528092919081815260200182805461156b90612231565b80156115b85780601f1061158d576101008083540402835291602001916115b8565b820191906000526020600020905b81548152906001019060200180831161159b57829003601f168201915b50505050509050919050565b919050565b6000546001600160a01b031633146115f35760405162461bcd60e51b815260040161093490612113565b600c80549115156101000261ff0019909216919091179055565b6060600b80546107a390612231565b6000546001600160a01b031633146116465760405162461bcd60e51b815260040161093490612113565b6001600160a01b0381166116ab5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610934565b6116b481611855565b50565b6000816001111580156116cb575060015482105b801561078e575050600090815260056020526040902054600160e01b161590565b600081806001116117435760015481101561174357600081815260056020526040902054600160e01b8116611741575b8061173a57506000190160008181526005602052604090205461171c565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b803411156117f55760003361177183346121ee565b604051600081818185875af1925050503d80600081146117ad576040519150601f19603f3d011682016040523d82523d6000602084013e6117b2565b606091505b5050905080610dbc5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606401610934565b803410156116b45760405162461bcd60e51b8152602060048201526013602482015272139bdd08195b9bdd59da08115512081cd95b9d606a1b6044820152606401610934565b610dbc828260405180602001604052806000815250611a9b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906118da903390899088908890600401612052565b602060405180830381600087803b1580156118f457600080fd5b505af1925050508015611924575060408051601f3d908101601f1916820190925261192191810190611ead565b60015b61197f573d808015611952576040519150601f19603f3d011682016040523d82523d6000602084013e611957565b606091505b508051611977576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816119c15750506040805180820190915260018152600360fc1b602082015290565b8160005b81156119eb57806119d58161226c565b91506119e49050600a836121bb565b91506119c5565b60008167ffffffffffffffff811115611a0657611a066122dd565b6040519080825280601f01601f191660200182016040528015611a30576020820181803683370190505b5090505b841561199557611a456001836121ee565b9150611a52600a86612287565b611a5d9060306121a3565b60f81b818381518110611a7257611a726122c7565b60200101906001600160f81b031916908160001a905350611a94600a866121bb565b9450611a34565b611aa58383611b08565b6001600160a01b0383163b15610ddb576001548281035b611acf60008683806001019450866118a5565b611aec576040516368d2bf6b60e11b815260040160405180910390fd5b818110611abc578160015414611b0157600080fd5b5050505050565b6001546001600160a01b038316611b3157604051622e076360e81b815260040160405180910390fd5b81611b4f5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260066020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260056020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611b995760015550505050565b828054611bf190612231565b90600052602060002090601f016020900481019282611c135760008555611c59565b82601f10611c2c57805160ff1916838001178555611c59565b82800160010185558215611c59579182015b82811115611c59578251825591602001919060010190611c3e565b50611c65929150611c69565b5090565b5b80821115611c655760008155600101611c6a565b600067ffffffffffffffff80841115611c9957611c996122dd565b604051601f8501601f19908116603f01168101908282118183101715611cc157611cc16122dd565b81604052809350858152868686011115611cda57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b03811681146115c457600080fd5b803580151581146115c457600080fd5b600060208284031215611d2d57600080fd5b61173a82611cf4565b60008060408385031215611d4957600080fd5b611d5283611cf4565b9150611d6060208401611cf4565b90509250929050565b600080600060608486031215611d7e57600080fd5b611d8784611cf4565b9250611d9560208501611cf4565b9150604084013590509250925092565b60008060008060808587031215611dbb57600080fd5b611dc485611cf4565b9350611dd260208601611cf4565b925060408501359150606085013567ffffffffffffffff811115611df557600080fd5b8501601f81018713611e0657600080fd5b611e1587823560208401611c7e565b91505092959194509250565b60008060408385031215611e3457600080fd5b611e3d83611cf4565b9150611d6060208401611d0b565b60008060408385031215611e5e57600080fd5b611e6783611cf4565b946020939093013593505050565b600060208284031215611e8757600080fd5b61173a82611d0b565b600060208284031215611ea257600080fd5b813561173a816122f3565b600060208284031215611ebf57600080fd5b815161173a816122f3565b600060208284031215611edc57600080fd5b813567ffffffffffffffff811115611ef357600080fd5b8201601f81018413611f0457600080fd5b61199584823560208401611c7e565b600060208284031215611f2557600080fd5b5035919050565b60008060408385031215611f3f57600080fd5b82359150611d6060208401611cf4565b60008151808452611f67816020860160208601612205565b601f01601f19169290920160200192915050565b60008151611f8d818560208601612205565b9290920192915050565b600080845481600182811c915080831680611fb357607f831692505b6020808410821415611fd357634e487b7160e01b86526022600452602486fd5b818015611fe75760018114611ff857612025565b60ff19861689528489019650612025565b60008b81526020902060005b8681101561201d5781548b820152908501908301612004565b505084890196505b5050505050506120496120388286611f7b565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061208590830184611f4f565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156120c7578351835292840192918401916001016120ab565b50909695505050505050565b60208152600061173a6020830184611f4f565b6020808252601390820152724e6f20636f6e7472616374206d696e74696e6760681b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526012908201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b604082015260600190565b602080825260159082015274139bdd08195b9bdd59da081b5a5b9d1cc81b19599d605a1b604082015260600190565b600082198211156121b6576121b661229b565b500190565b6000826121ca576121ca6122b1565b500490565b60008160001904831182151516156121e9576121e961229b565b500290565b6000828210156122005761220061229b565b500390565b60005b83811015612220578181015183820152602001612208565b83811115610c985750506000910152565b600181811c9082168061224557607f821691505b6020821081141561226657634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156122805761228061229b565b5060010190565b600082612296576122966122b1565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146116b457600080fdfea26469706673582212208eefff33594ed82eb9a4f59f12135398406be584e9fadd1a7cb1d33a0a16a60964736f6c63430008070033697066733a2f2f516d66594e476a6769764b794d71544e424e625533546d64386750766d374e6f6e31726544683635614b673470342f697066733a2f2f494841575046504847554255354b52413137354259474139465535364750595a4146000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000a54657272614669726d6100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000254460000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d66594e476a6769764b794d71544e424e625533546d64386750766d374e6f6e31726544683635614b673470342f00000000000000000000

Deployed Bytecode

0x60806040526004361061023b5760003560e01c8063715018a61161012e578063a4b41a15116100ab578063c87b56dd1161006f578063c87b56dd14610684578063e0a80853146106a4578063e8a3d485146106c4578063e985e9c5146106d9578063f2fde38b1461072257600080fd5b8063a4b41a15146105f9578063a945bf8014610619578063b88d4fde1461062f578063bceae77b1461064f578063c62752551461066457600080fd5b80638da5cb5b116100f25780638da5cb5b146105665780639007bd7214610584578063938e3d7b146105a457806395d89b41146105c4578063a22cb465146105d957600080fd5b8063715018a6146104d15780637aeb7242146104e65780637af3a1af146105135780637c928fe91461053357806388dedc141461054657600080fd5b806333bc1c5c116101bc57806355f804b31161018057806355f804b3146104275780635c975abb146104475780636352211e1461046157806364f640761461048157806370a08231146104b157600080fd5b806333bc1c5c146103925780633ccfd60b146103b357806342842e0e146103bb578063438b6300146103db578063518302271461040857600080fd5b806318160ddd1161020357806318160ddd1461031157806323b872dd146103345780632db11544146103545780632fecf20b1461036757806332cb6b0c1461037c57600080fd5b806301ffc9a71461024057806306fdde0314610275578063081812fc14610297578063095ea7b3146102cf57806316c38b3c146102f1575b600080fd5b34801561024c57600080fd5b5061026061025b366004611e90565b610742565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b5061028a610794565b60405161026c91906120d3565b3480156102a357600080fd5b506102b76102b2366004611f13565b610826565b6040516001600160a01b03909116815260200161026c565b3480156102db57600080fd5b506102ef6102ea366004611e4b565b61086a565b005b3480156102fd57600080fd5b506102ef61030c366004611e75565b61090a565b34801561031d57600080fd5b50610326610950565b60405190815260200161026c565b34801561034057600080fd5b506102ef61034f366004611d69565b61095e565b6102ef610362366004611f13565b610aef565b34801561037357600080fd5b50610326600181565b34801561038857600080fd5b5061032661014d81565b34801561039e57600080fd5b50600c54610260906301000000900460ff1681565b6102ef610c9e565b3480156103c757600080fd5b506102ef6103d6366004611d69565b610dc0565b3480156103e757600080fd5b506103fb6103f6366004611d1b565b610de0565b60405161026c919061208f565b34801561041457600080fd5b50600c5461026090610100900460ff1681565b34801561043357600080fd5b506102ef610442366004611eca565b610ec1565b34801561045357600080fd5b50600c546102609060ff1681565b34801561046d57600080fd5b506102b761047c366004611f13565b610efe565b34801561048d57600080fd5b5061026061049c366004611d1b565b600d6020526000908152604090205460ff1681565b3480156104bd57600080fd5b506103266104cc366004611d1b565b610f09565b3480156104dd57600080fd5b506102ef610f58565b3480156104f257600080fd5b50610326610501366004611d1b565b600e6020526000908152604090205481565b34801561051f57600080fd5b506102ef61052e366004611e75565b610f8e565b6102ef610541366004611f13565b610fe7565b34801561055257600080fd5b506102ef610561366004611e75565b611226565b34801561057257600080fd5b506000546001600160a01b03166102b7565b34801561059057600080fd5b506102ef61059f366004611f2c565b611280565b3480156105b057600080fd5b506102ef6105bf366004611eca565b61132c565b3480156105d057600080fd5b5061028a611369565b3480156105e557600080fd5b506102ef6105f4366004611e21565b611378565b34801561060557600080fd5b50600c546102609062010000900460ff1681565b34801561062557600080fd5b5061032660095481565b34801561063b57600080fd5b506102ef61064a366004611da5565b61140e565b34801561065b57600080fd5b50610326600281565b34801561067057600080fd5b506102ef61067f366004611f13565b611452565b34801561069057600080fd5b5061028a61069f366004611f13565b611481565b3480156106b057600080fd5b506102ef6106bf366004611e75565b6115c9565b3480156106d057600080fd5b5061028a61160d565b3480156106e557600080fd5b506102606106f4366004611d36565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b34801561072e57600080fd5b506102ef61073d366004611d1b565b61161c565b60006301ffc9a760e01b6001600160e01b03198316148061077357506380ac58cd60e01b6001600160e01b03198316145b8061078e5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600380546107a390612231565b80601f01602080910402602001604051908101604052809291908181526020018280546107cf90612231565b801561081c5780601f106107f15761010080835404028352916020019161081c565b820191906000526020600020905b8154815290600101906020018083116107ff57829003601f168201915b5050505050905090565b6000610831826116b7565b61084e576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061087582610efe565b9050336001600160a01b038216146108ae5761089181336106f4565b6108ae576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000546001600160a01b0316331461093d5760405162461bcd60e51b815260040161093490612113565b60405180910390fd5b600c805460ff1916911515919091179055565b600254600154036000190190565b6000610969826116ec565b9050836001600160a01b0316816001600160a01b03161461099c5760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b038816909114176109e9576109cc86336106f4565b6109e957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610a1057604051633a954ecd60e21b815260040160405180910390fd5b8015610a1b57600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040902055600160e11b8316610aa65760018401600081815260056020526040902054610aa4576001548114610aa45760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b600c54819060ff1615610b145760405162461bcd60e51b815260040161093490612148565b61014d81610b20610950565b610b2a91906121a3565b1115610b485760405162461bcd60e51b815260040161093490612174565b323314610b675760405162461bcd60e51b8152600401610934906120e6565b600c546301000000900460ff16610bb75760405162461bcd60e51b81526020600482015260146024820152735075626c69632073616c6520696e61637469766560601b6044820152606401610934565b6001821115610bfc5760405162461bcd60e51b81526020600482015260116024820152700a2eac2dce8d2e8f240e8dede40d0d2ced607b1b6044820152606401610934565b600954336000908152600e60205260409020546002610c1b85836121a3565b1115610c5f5760405162461bcd60e51b8152602060048201526013602482015272155cd95c881b585e081b5a5b9d081b1a5b5a5d606a1b6044820152606401610934565b610c71610c6c85846121cf565b61175c565b610c7b84826121a3565b336000818152600e6020526040902091909155610c98908561183b565b50505050565b6000546001600160a01b03163314610cc85760405162461bcd60e51b815260040161093490612113565b47600073cc3068499c0d498535c8b9534fa1ccb1a660a1cf612710610ced84826121cf565b610cf791906121bb565b6040517f30786343333036383439394330443439383533354338623935333466613143438152693118a09b1b183098b1b360b11b6020820152602a0160006040518083038185875af1925050503d8060008114610d70576040519150601f19603f3d011682016040523d82523d6000602084013e610d75565b606091505b5050905080610dbc5760405162461bcd60e51b815260206004820152601360248201527211195d881d1c985b9cd9995c8819985a5b1959606a1b6044820152606401610934565b5050565b610ddb8383836040518060200160405280600081525061140e565b505050565b60606000610ded83610f09565b905060008167ffffffffffffffff811115610e0a57610e0a6122dd565b604051908082528060200260200182016040528015610e33578160200160208202803683370190505b509050600160005b8381108015610e4c575061014d8211155b15610eb7576000610e5c83610efe565b9050866001600160a01b0316816001600160a01b03161415610ea45782848381518110610e8b57610e8b6122c7565b602090810291909101015281610ea08161226c565b9250505b82610eae8161226c565b93505050610e3b565b5090949350505050565b6000546001600160a01b03163314610eeb5760405162461bcd60e51b815260040161093490612113565b8051610dbc90600a906020840190611be5565b600061078e826116ec565b60006001600160a01b038216610f32576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6000546001600160a01b03163314610f825760405162461bcd60e51b815260040161093490612113565b610f8c6000611855565b565b6000546001600160a01b03163314610fb85760405162461bcd60e51b815260040161093490612113565b600c805463ffff000019166301000000921580159390930262ff00001916176201000092909202919091179055565b600c54819060ff161561100c5760405162461bcd60e51b815260040161093490612148565b61014d81611018610950565b61102291906121a3565b11156110405760405162461bcd60e51b815260040161093490612174565b32331461105f5760405162461bcd60e51b8152600401610934906120e6565b600c5462010000900460ff166110ac5760405162461bcd60e51b8152602060048201526012602482015271467265652073616c6520696e61637469766560701b6044820152606401610934565b34156110ef5760405162461bcd60e51b815260206004820152601260248201527154686973207068617365206973206672656560701b6044820152606401610934565b8160011461112e5760405162461bcd60e51b815260206004820152600c60248201526b4f6e6c79202331206672656560a01b6044820152606401610934565b600082611139610950565b61114391906121a3565b9050605081111561118f5760405162461bcd60e51b81526020600482015260166024820152754e6f7420656e6f756768206672656520737570706c7960501b6044820152606401610934565b336000908152600d602052604090205460ff16156111e55760405162461bcd60e51b8152602060048201526013602482015272155cd95c881b585e08199c9959481b1a5b5a5d606a1b6044820152606401610934565b336000908152600d60205260409020805460ff19166001179055605081141561121c57600c805463ffff0000191663010000001790555b610ddb338461183b565b6000546001600160a01b031633146112505760405162461bcd60e51b815260040161093490612113565b600c805463ffff0000191662010000921580159390930263ff000000191617630100000092909202919091179055565b6000546001600160a01b031633146112aa5760405162461bcd60e51b815260040161093490612113565b600c54829060ff16156112cf5760405162461bcd60e51b815260040161093490612148565b61014d816112db610950565b6112e591906121a3565b11156113035760405162461bcd60e51b815260040161093490612174565b3233146113225760405162461bcd60e51b8152600401610934906120e6565b610ddb828461183b565b6000546001600160a01b031633146113565760405162461bcd60e51b815260040161093490612113565b8051610dbc90600b906020840190611be5565b6060600480546107a390612231565b6001600160a01b0382163314156113a25760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61141984848461095e565b6001600160a01b0383163b15610c9857611435848484846118a5565b610c98576040516368d2bf6b60e11b815260040160405180910390fd5b6000546001600160a01b0316331461147c5760405162461bcd60e51b815260040161093490612113565b600955565b606061148c826116b7565b6114f05760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610934565b600c54610100900460ff161561153257600a61150b8361199d565b60405160200161151c929190611f97565b6040516020818303038152906040529050919050565b600a805461153f90612231565b80601f016020809104026020016040519081016040528092919081815260200182805461156b90612231565b80156115b85780601f1061158d576101008083540402835291602001916115b8565b820191906000526020600020905b81548152906001019060200180831161159b57829003601f168201915b50505050509050919050565b919050565b6000546001600160a01b031633146115f35760405162461bcd60e51b815260040161093490612113565b600c80549115156101000261ff0019909216919091179055565b6060600b80546107a390612231565b6000546001600160a01b031633146116465760405162461bcd60e51b815260040161093490612113565b6001600160a01b0381166116ab5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610934565b6116b481611855565b50565b6000816001111580156116cb575060015482105b801561078e575050600090815260056020526040902054600160e01b161590565b600081806001116117435760015481101561174357600081815260056020526040902054600160e01b8116611741575b8061173a57506000190160008181526005602052604090205461171c565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b803411156117f55760003361177183346121ee565b604051600081818185875af1925050503d80600081146117ad576040519150601f19603f3d011682016040523d82523d6000602084013e6117b2565b606091505b5050905080610dbc5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606401610934565b803410156116b45760405162461bcd60e51b8152602060048201526013602482015272139bdd08195b9bdd59da08115512081cd95b9d606a1b6044820152606401610934565b610dbc828260405180602001604052806000815250611a9b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906118da903390899088908890600401612052565b602060405180830381600087803b1580156118f457600080fd5b505af1925050508015611924575060408051601f3d908101601f1916820190925261192191810190611ead565b60015b61197f573d808015611952576040519150601f19603f3d011682016040523d82523d6000602084013e611957565b606091505b508051611977576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816119c15750506040805180820190915260018152600360fc1b602082015290565b8160005b81156119eb57806119d58161226c565b91506119e49050600a836121bb565b91506119c5565b60008167ffffffffffffffff811115611a0657611a066122dd565b6040519080825280601f01601f191660200182016040528015611a30576020820181803683370190505b5090505b841561199557611a456001836121ee565b9150611a52600a86612287565b611a5d9060306121a3565b60f81b818381518110611a7257611a726122c7565b60200101906001600160f81b031916908160001a905350611a94600a866121bb565b9450611a34565b611aa58383611b08565b6001600160a01b0383163b15610ddb576001548281035b611acf60008683806001019450866118a5565b611aec576040516368d2bf6b60e11b815260040160405180910390fd5b818110611abc578160015414611b0157600080fd5b5050505050565b6001546001600160a01b038316611b3157604051622e076360e81b815260040160405180910390fd5b81611b4f5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260066020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260056020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611b995760015550505050565b828054611bf190612231565b90600052602060002090601f016020900481019282611c135760008555611c59565b82601f10611c2c57805160ff1916838001178555611c59565b82800160010185558215611c59579182015b82811115611c59578251825591602001919060010190611c3e565b50611c65929150611c69565b5090565b5b80821115611c655760008155600101611c6a565b600067ffffffffffffffff80841115611c9957611c996122dd565b604051601f8501601f19908116603f01168101908282118183101715611cc157611cc16122dd565b81604052809350858152868686011115611cda57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b03811681146115c457600080fd5b803580151581146115c457600080fd5b600060208284031215611d2d57600080fd5b61173a82611cf4565b60008060408385031215611d4957600080fd5b611d5283611cf4565b9150611d6060208401611cf4565b90509250929050565b600080600060608486031215611d7e57600080fd5b611d8784611cf4565b9250611d9560208501611cf4565b9150604084013590509250925092565b60008060008060808587031215611dbb57600080fd5b611dc485611cf4565b9350611dd260208601611cf4565b925060408501359150606085013567ffffffffffffffff811115611df557600080fd5b8501601f81018713611e0657600080fd5b611e1587823560208401611c7e565b91505092959194509250565b60008060408385031215611e3457600080fd5b611e3d83611cf4565b9150611d6060208401611d0b565b60008060408385031215611e5e57600080fd5b611e6783611cf4565b946020939093013593505050565b600060208284031215611e8757600080fd5b61173a82611d0b565b600060208284031215611ea257600080fd5b813561173a816122f3565b600060208284031215611ebf57600080fd5b815161173a816122f3565b600060208284031215611edc57600080fd5b813567ffffffffffffffff811115611ef357600080fd5b8201601f81018413611f0457600080fd5b61199584823560208401611c7e565b600060208284031215611f2557600080fd5b5035919050565b60008060408385031215611f3f57600080fd5b82359150611d6060208401611cf4565b60008151808452611f67816020860160208601612205565b601f01601f19169290920160200192915050565b60008151611f8d818560208601612205565b9290920192915050565b600080845481600182811c915080831680611fb357607f831692505b6020808410821415611fd357634e487b7160e01b86526022600452602486fd5b818015611fe75760018114611ff857612025565b60ff19861689528489019650612025565b60008b81526020902060005b8681101561201d5781548b820152908501908301612004565b505084890196505b5050505050506120496120388286611f7b565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061208590830184611f4f565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156120c7578351835292840192918401916001016120ab565b50909695505050505050565b60208152600061173a6020830184611f4f565b6020808252601390820152724e6f20636f6e7472616374206d696e74696e6760681b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526012908201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b604082015260600190565b602080825260159082015274139bdd08195b9bdd59da081b5a5b9d1cc81b19599d605a1b604082015260600190565b600082198211156121b6576121b661229b565b500190565b6000826121ca576121ca6122b1565b500490565b60008160001904831182151516156121e9576121e961229b565b500290565b6000828210156122005761220061229b565b500390565b60005b83811015612220578181015183820152602001612208565b83811115610c985750506000910152565b600181811c9082168061224557607f821691505b6020821081141561226657634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156122805761228061229b565b5060010190565b600082612296576122966122b1565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146116b457600080fdfea26469706673582212208eefff33594ed82eb9a4f59f12135398406be584e9fadd1a7cb1d33a0a16a60964736f6c63430008070033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000a54657272614669726d6100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000254460000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d66594e476a6769764b794d71544e424e625533546d64386750766d374e6f6e31726544683635614b673470342f00000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): TerraFirma
Arg [1] : _symbol (string): TF
Arg [2] : _baseUri (string): ipfs://QmfYNGjgivKyMqTNBNbU3Tmd8gPvm7Non1reDh65aKg4p4/

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [4] : 54657272614669726d6100000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [6] : 5446000000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [8] : 697066733a2f2f516d66594e476a6769764b794d71544e424e625533546d6438
Arg [9] : 6750766d374e6f6e31726544683635614b673470342f00000000000000000000


Deployed Bytecode Sourcemap

50372:6822:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20139:615;;;;;;;;;;-1:-1:-1;20139:615:0;;;;;:::i;:::-;;:::i;:::-;;;8478:14:1;;8471:22;8453:41;;8441:2;8426:18;20139:615:0;;;;;;;;25786:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;27732:204::-;;;;;;;;;;-1:-1:-1;27732:204:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;7139:32:1;;;7121:51;;7109:2;7094:18;27732:204:0;6975:203:1;27280:386:0;;;;;;;;;;-1:-1:-1;27280:386:0;;;;;:::i;:::-;;:::i;:::-;;55793:83;;;;;;;;;;-1:-1:-1;55793:83:0;;;;;:::i;:::-;;:::i;19193:315::-;;;;;;;;;;;;;:::i;:::-;;;14921:25:1;;;14909:2;14894:18;19193:315:0;14775:177:1;36997:2800:0;;;;;;;;;;-1:-1:-1;36997:2800:0;;;;;:::i;:::-;;:::i;52731:571::-;;;;;;:::i;:::-;;:::i;50523:49::-;;;;;;;;;;;;50571:1;50523:49;;50419:40;;;;;;;;;;;;50456:3;50419:40;;50995:30;;;;;;;;;;-1:-1:-1;50995:30:0;;;;;;;;;;;56239:387;;;:::i;28622:185::-;;;;;;;;;;-1:-1:-1;28622:185:0;;;;;:::i;:::-;;:::i;53732:689::-;;;;;;;;;;-1:-1:-1;53732:689:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;50925:27::-;;;;;;;;;;-1:-1:-1;50925:27:0;;;;;;;;;;;55454:102;;;;;;;;;;-1:-1:-1;55454:102:0;;;;;:::i;:::-;;:::i;50893:25::-;;;;;;;;;;-1:-1:-1;50893:25:0;;;;;;;;25575:144;;;;;;;;;;-1:-1:-1;25575:144:0;;;;;:::i;:::-;;:::i;51143:46::-;;;;;;;;;;-1:-1:-1;51143:46:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;20818:224;;;;;;;;;;-1:-1:-1;20818:224:0;;;;;:::i;:::-;;:::i;4730:103::-;;;;;;;;;;;;;:::i;51196:47::-;;;;;;;;;;-1:-1:-1;51196:47:0;;;;;:::i;:::-;;;;;;;;;;;;;;55979:123;;;;;;;;;;-1:-1:-1;55979:123:0;;;;;:::i;:::-;;:::i;52077:646::-;;;;;;:::i;:::-;;:::i;56108:121::-;;;;;;;;;;-1:-1:-1;56108:121:0;;;;;:::i;:::-;;:::i;4079:87::-;;;;;;;;;;-1:-1:-1;4125:7:0;4152:6;-1:-1:-1;;;;;4152:6:0;4079:87;;56770:146;;;;;;;;;;-1:-1:-1;56770:146:0;;;;;:::i;:::-;;:::i;55568:115::-;;;;;;;;;;-1:-1:-1;55568:115:0;;;;;:::i;:::-;;:::i;25955:104::-;;;;;;;;;;;;;:::i;28008:308::-;;;;;;;;;;-1:-1:-1;28008:308:0;;;;;:::i;:::-;;:::i;50961:27::-;;;;;;;;;;-1:-1:-1;50961:27:0;;;;;;;;;;;50474:40;;;;;;;;;;;;;;;;28878:399;;;;;;;;;;-1:-1:-1;28878:399:0;;;;;:::i;:::-;;:::i;50579:45::-;;;;;;;;;;;;50623:1;50579:45;;55338:108;;;;;;;;;;-1:-1:-1;55338:108:0;;;;;:::i;:::-;;:::i;54429:610::-;;;;;;;;;;-1:-1:-1;54429:610:0;;;;;:::i;:::-;;:::i;55884:87::-;;;;;;;;;;-1:-1:-1;55884:87:0;;;;;:::i;:::-;;:::i;55226:97::-;;;;;;;;;;;;;:::i;28387:164::-;;;;;;;;;;-1:-1:-1;28387:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;28508:25:0;;;28484:4;28508:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;28387:164;4988:201;;;;;;;;;;-1:-1:-1;4988:201:0;;;;;:::i;:::-;;:::i;20139:615::-;20224:4;-1:-1:-1;;;;;;;;;20524:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;20601:25:0;;;20524:102;:179;;;-1:-1:-1;;;;;;;;;;20678:25:0;;;20524:179;20504:199;20139:615;-1:-1:-1;;20139:615:0:o;25786:100::-;25840:13;25873:5;25866:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25786:100;:::o;27732:204::-;27800:7;27825:16;27833:7;27825;:16::i;:::-;27820:64;;27850:34;;-1:-1:-1;;;27850:34:0;;;;;;;;;;;27820:64;-1:-1:-1;27904:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;27904:24:0;;27732:204::o;27280:386::-;27353:13;27369:16;27377:7;27369;:16::i;:::-;27353:32;-1:-1:-1;48180:10:0;-1:-1:-1;;;;;27402:28:0;;;27398:175;;27450:44;27467:5;48180:10;28387:164;:::i;27450:44::-;27445:128;;27522:35;;-1:-1:-1;;;27522:35:0;;;;;;;;;;;27445:128;27585:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;27585:29:0;-1:-1:-1;;;;;27585:29:0;;;;;;;;;27630:28;;27585:24;;27630:28;;;;;;;27342:324;27280:386;;:::o;55793:83::-;4125:7;4152:6;-1:-1:-1;;;;;4152:6:0;48180:10;4299:23;4291:68;;;;-1:-1:-1;;;4291:68:0;;;;;;;:::i;:::-;;;;;;;;;55853:6:::1;:15:::0;;-1:-1:-1;;55853:15:0::1;::::0;::::1;;::::0;;;::::1;::::0;;55793:83::o;19193:315::-;19459:12;;51681:1;19443:13;:28;-1:-1:-1;;19443:46:0;;19193:315::o;36997:2800::-;37131:27;37161;37180:7;37161:18;:27::i;:::-;37131:57;;37246:4;-1:-1:-1;;;;;37205:45:0;37221:19;-1:-1:-1;;;;;37205:45:0;;37201:86;;37259:28;;-1:-1:-1;;;37259:28:0;;;;;;;;;;;37201:86;37301:27;35727:21;;;35554:15;35769:4;35762:36;35851:4;35835:21;;35941:26;;48180:10;36694:30;;;-1:-1:-1;;;;;36392:26:0;;36673:19;;;36670:55;37480:174;;37567:43;37584:4;48180:10;28387:164;:::i;37567:43::-;37562:92;;37619:35;;-1:-1:-1;;;37619:35:0;;;;;;;;;;;37562:92;-1:-1:-1;;;;;37671:16:0;;37667:52;;37696:23;;-1:-1:-1;;;37696:23:0;;;;;;;;;;;37667:52;37868:15;37865:160;;;38008:1;37987:19;37980:30;37865:160;-1:-1:-1;;;;;38403:24:0;;;;;;;:18;:24;;;;;;38401:26;;-1:-1:-1;;38401:26:0;;;38472:22;;;;;;;;;38470:24;;-1:-1:-1;38470:24:0;;;25474:11;25450:22;25446:40;25433:62;-1:-1:-1;;;25433:62:0;38765:26;;;;:17;:26;;;;;:174;-1:-1:-1;;;39059:46:0;;39055:626;;39163:1;39153:11;;39131:19;39286:30;;;:17;:30;;;;;;39282:384;;39424:13;;39409:11;:28;39405:242;;39571:30;;;;:17;:30;;;;;:52;;;39405:242;39112:569;39055:626;39728:7;39724:2;-1:-1:-1;;;;;39709:27:0;39718:4;-1:-1:-1;;;;;39709:27:0;;;;;;;;;;;37120:2677;;;36997:2800;;;:::o;52731:571::-;56993:6;;52801:8;;56993:6;;56992:7;56984:38;;;;-1:-1:-1;;;56984:38:0;;;;;;;:::i;:::-;50456:3;57057:8;57041:13;:11;:13::i;:::-;:24;;;;:::i;:::-;:38;;57033:72;;;;-1:-1:-1;;;57033:72:0;;;;;;;:::i;:::-;57124:9;57137:10;57124:23;57116:55;;;;-1:-1:-1;;;57116:55:0;;;;;;;:::i;:::-;52830:10:::1;::::0;;;::::1;;;52822:43;;;::::0;-1:-1:-1;;;52822:43:0;;12886:2:1;52822:43:0::1;::::0;::::1;12868:21:1::0;12925:2;12905:18;;;12898:30;-1:-1:-1;;;12944:18:1;;;12937:50;13004:18;;52822:43:0::1;12684:344:1::0;52822:43:0::1;50571:1;52884:8;:33;;52876:63;;;::::0;-1:-1:-1;;;52876:63:0;;13235:2:1;52876:63:0::1;::::0;::::1;13217:21:1::0;13274:2;13254:18;;;13247:30;-1:-1:-1;;;13293:18:1;;;13286:47;13350:18;;52876:63:0::1;13033:341:1::0;52876:63:0::1;52968:11;::::0;53023:10:::1;52952:13;53010:24:::0;;;:12:::1;:24;::::0;;;;;50623:1:::1;53071:20;53083:8:::0;53010:24;53071:20:::1;:::i;:::-;:41;;53063:73;;;::::0;-1:-1:-1;;;53063:73:0;;10030:2:1;53063:73:0::1;::::0;::::1;10012:21:1::0;10069:2;10049:18;;;10042:30;-1:-1:-1;;;10088:18:1;;;10081:49;10147:18;;53063:73:0::1;9828:343:1::0;53063:73:0::1;53157:31;53171:16;53179:8:::0;53171:5;:16:::1;:::i;:::-;53157:13;:31::i;:::-;53229:20;53241:8:::0;53229:9;:20:::1;:::i;:::-;53214:10;53201:24;::::0;;;:12:::1;:24;::::0;;;;:49;;;;53263:31:::1;::::0;53285:8;53263:9:::1;:31::i;:::-;52811:491;;52731:571:::0;;:::o;56239:387::-;4125:7;4152:6;-1:-1:-1;;;;;4152:6:0;48180:10;4299:23;4291:68;;;;-1:-1:-1;;;4291:68:0;;;;;;;:::i;:::-;56386:21:::1;56364:19;51080:42;56507:5;56484:19;56386:21:::0;56507:5;56484:19:::1;:::i;:::-;56483:29;;;;:::i;:::-;56436:133;::::0;6648:34:1;6636:47;;-1:-1:-1;;;6708:2:1;6699:12;;6692:34;6751:2;6742:12;56436:133:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56420:149;;;56588:4;56580:36;;;::::0;-1:-1:-1;;;56580:36:0;;13581:2:1;56580:36:0::1;::::0;::::1;13563:21:1::0;13620:2;13600:18;;;13593:30;-1:-1:-1;;;13639:18:1;;;13632:49;13698:18;;56580:36:0::1;13379:343:1::0;56580:36:0::1;56286:340;;56239:387::o:0;28622:185::-;28760:39;28777:4;28783:2;28787:7;28760:39;;;;;;;;;;;;:16;:39::i;:::-;28622:185;;;:::o;53732:689::-;53792:16;53826:23;53852:17;53862:6;53852:9;:17::i;:::-;53826:43;;53880:30;53927:15;53913:30;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53913:30:0;-1:-1:-1;53880:63:0;-1:-1:-1;53979:1:0;53954:22;54031:350;54056:15;54038;:33;:65;;;;;50456:3;54075:14;:28;;54038:65;54031:350;;;54120:25;54148:23;54156:14;54148:7;:23::i;:::-;54120:51;;54213:6;-1:-1:-1;;;;;54192:27:0;:17;-1:-1:-1;;;;;54192:27:0;;54188:153;;;54273:14;54240:13;54254:15;54240:30;;;;;;;;:::i;:::-;;;;;;;;;;:47;54308:17;;;;:::i;:::-;;;;54188:153;54353:16;;;;:::i;:::-;;;;54105:276;54031:350;;;-1:-1:-1;54400:13:0;;53732:689;-1:-1:-1;;;;53732:689:0:o;55454:102::-;4125:7;4152:6;-1:-1:-1;;;;;4152:6:0;48180:10;4299:23;4291:68;;;;-1:-1:-1;;;4291:68:0;;;;;;;:::i;:::-;55526:22;;::::1;::::0;:11:::1;::::0;:22:::1;::::0;::::1;::::0;::::1;:::i;25575:144::-:0;25639:7;25682:27;25701:7;25682:18;:27::i;20818:224::-;20882:7;-1:-1:-1;;;;;20906:19:0;;20902:60;;20934:28;;-1:-1:-1;;;20934:28:0;;;;;;;;;;;20902:60;-1:-1:-1;;;;;;20980:25:0;;;;;:18;:25;;;;;;15373:13;20980:54;;20818:224::o;4730:103::-;4125:7;4152:6;-1:-1:-1;;;;;4152:6:0;48180:10;4299:23;4291:68;;;;-1:-1:-1;;;4291:68:0;;;;;;;:::i;:::-;4795:30:::1;4822:1;4795:18;:30::i;:::-;4730:103::o:0;55979:123::-;4125:7;4152:6;-1:-1:-1;;;;;4152:6:0;48180:10;4299:23;4291:68;;;;-1:-1:-1;;;4291:68:0;;;;;;;:::i;:::-;56046:10:::1;:19:::0;;-1:-1:-1;;56076:18:0;56046:19;;::::1;::::0;::::1;::::0;;;::::1;-1:-1:-1::0;;56076:18:0;;;;;;::::1;::::0;;;::::1;::::0;;55979:123::o;52077:646::-;56993:6;;52145:8;;56993:6;;56992:7;56984:38;;;;-1:-1:-1;;;56984:38:0;;;;;;;:::i;:::-;50456:3;57057:8;57041:13;:11;:13::i;:::-;:24;;;;:::i;:::-;:38;;57033:72;;;;-1:-1:-1;;;57033:72:0;;;;;;;:::i;:::-;57124:9;57137:10;57124:23;57116:55;;;;-1:-1:-1;;;57116:55:0;;;;;;;:::i;:::-;52174:8:::1;::::0;;;::::1;;;52166:39;;;::::0;-1:-1:-1;;;52166:39:0;;10719:2:1;52166:39:0::1;::::0;::::1;10701:21:1::0;10758:2;10738:18;;;10731:30;-1:-1:-1;;;10777:18:1;;;10770:48;10835:18;;52166:39:0::1;10517:342:1::0;52166:39:0::1;52224:9;:14:::0;52216:45:::1;;;::::0;-1:-1:-1;;;52216:45:0;;12191:2:1;52216:45:0::1;::::0;::::1;12173:21:1::0;12230:2;12210:18;;;12203:30;-1:-1:-1;;;12249:18:1;;;12242:48;12307:18;;52216:45:0::1;11989:342:1::0;52216:45:0::1;52280:8;52292:1;52280:13;52272:38;;;::::0;-1:-1:-1;;;52272:38:0;;10378:2:1;52272:38:0::1;::::0;::::1;10360:21:1::0;10417:2;10397:18;;;10390:30;-1:-1:-1;;;10436:18:1;;;10429:42;10488:18;;52272:38:0::1;10176:336:1::0;52272:38:0::1;52323:17;52359:8;52343:13;:11;:13::i;:::-;:24;;;;:::i;:::-;52323:44;;52409:2;52396:9;:15;;52388:50;;;::::0;-1:-1:-1;;;52388:50:0;;14276:2:1;52388:50:0::1;::::0;::::1;14258:21:1::0;14315:2;14295:18;;;14288:30;-1:-1:-1;;;14334:18:1;;;14327:52;14396:18;;52388:50:0::1;14074:346:1::0;52388:50:0::1;52475:10;52460:26;::::0;;;:14:::1;:26;::::0;;;;;::::1;;52459:27;52451:59;;;::::0;-1:-1:-1;;;52451:59:0;;11427:2:1;52451:59:0::1;::::0;::::1;11409:21:1::0;11466:2;11446:18;;;11439:30;-1:-1:-1;;;11485:18:1;;;11478:49;11544:18;;52451:59:0::1;11225:343:1::0;52451:59:0::1;52546:10;52531:26;::::0;;;:14:::1;:26;::::0;;;;:33;;-1:-1:-1;;52531:33:0::1;52560:4;52531:33;::::0;;52593:2:::1;52580:15:::0;::::1;52577:95;;;52612:8;:16:::0;;-1:-1:-1;;52643:17:0;;::::1;::::0;;52577:95:::1;52684:31;52694:10;52706:8;52684:9;:31::i;56108:121::-:0;4125:7;4152:6;-1:-1:-1;;;;;4152:6:0;48180:10;4299:23;4291:68;;;;-1:-1:-1;;;4291:68:0;;;;;;;:::i;:::-;56173:8:::1;:17:::0;;-1:-1:-1;;56201:20:0;56173:17;;::::1;::::0;::::1;::::0;;;::::1;-1:-1:-1::0;;56201:20:0;;;;;;::::1;::::0;;;::::1;::::0;;56108:121::o;56770:146::-;4125:7;4152:6;-1:-1:-1;;;;;4152:6:0;48180:10;4299:23;4291:68;;;;-1:-1:-1;;;4291:68:0;;;;;;;:::i;:::-;56993:6:::1;::::0;56858:8;;56993:6:::1;;56992:7;56984:38;;;;-1:-1:-1::0;;;56984:38:0::1;;;;;;;:::i;:::-;50456:3;57057:8;57041:13;:11;:13::i;:::-;:24;;;;:::i;:::-;:38;;57033:72;;;;-1:-1:-1::0;;;57033:72:0::1;;;;;;;:::i;:::-;57124:9;57137:10;57124:23;57116:55;;;;-1:-1:-1::0;;;57116:55:0::1;;;;;;;:::i;:::-;56879:29:::2;56889:8;56899;56879:9;:29::i;55568:115::-:0;4125:7;4152:6;-1:-1:-1;;;;;4152:6:0;48180:10;4299:23;4291:68;;;;-1:-1:-1;;;4291:68:0;;;;;;;:::i;:::-;55648:27;;::::1;::::0;:12:::1;::::0;:27:::1;::::0;::::1;::::0;::::1;:::i;25955:104::-:0;26011:13;26044:7;26037:14;;;;;:::i;28008:308::-;-1:-1:-1;;;;;28107:31:0;;48180:10;28107:31;28103:61;;;28147:17;;-1:-1:-1;;;28147:17:0;;;;;;;;;;;28103:61;48180:10;28177:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;28177:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;28177:60:0;;;;;;;;;;28253:55;;8453:41:1;;;28177:49:0;;48180:10;28253:55;;8426:18:1;28253:55:0;;;;;;;28008:308;;:::o;28878:399::-;29045:31;29058:4;29064:2;29068:7;29045:12;:31::i;:::-;-1:-1:-1;;;;;29091:14:0;;;:19;29087:183;;29130:56;29161:4;29167:2;29171:7;29180:5;29130:30;:56::i;:::-;29125:145;;29214:40;;-1:-1:-1;;;29214:40:0;;;;;;;;;;;55338:108;4125:7;4152:6;-1:-1:-1;;;;;4152:6:0;48180:10;4299:23;4291:68;;;;-1:-1:-1;;;4291:68:0;;;;;;;:::i;:::-;55412:11:::1;:26:::0;55338:108::o;54429:610::-;54495:13;54760:17;54768:8;54760:7;:17::i;:::-;54752:77;;;;-1:-1:-1;;;54752:77:0;;11775:2:1;54752:77:0;;;11757:21:1;11814:2;11794:18;;;11787:30;11853:34;11833:18;;;11826:62;-1:-1:-1;;;11904:18:1;;;11897:45;11959:19;;54752:77:0;11573:411:1;54752:77:0;54854:8;;;;;;;54850:182;;;54910:11;54923:26;54940:8;54923:16;:26::i;:::-;54893:66;;;;;;;;;:::i;:::-;;;;;;;;;;;;;54879:81;;54429:610;;;:::o;54850:182::-;55009:11;55002:18;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54429:610;;;:::o;54850:182::-;54429:610;;;:::o;55884:87::-;4125:7;4152:6;-1:-1:-1;;;;;4152:6:0;48180:10;4299:23;4291:68;;;;-1:-1:-1;;;4291:68:0;;;;;;;:::i;:::-;55946:8:::1;:17:::0;;;::::1;;;;-1:-1:-1::0;;55946:17:0;;::::1;::::0;;;::::1;::::0;;55884:87::o;55226:97::-;55270:13;55303:12;55296:19;;;;;:::i;4988:201::-;4125:7;4152:6;-1:-1:-1;;;;;4152:6:0;48180:10;4299:23;4291:68;;;;-1:-1:-1;;;4291:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;5077:22:0;::::1;5069:73;;;::::0;-1:-1:-1;;;5069:73:0;;8931:2:1;5069:73:0::1;::::0;::::1;8913:21:1::0;8970:2;8950:18;;;8943:30;9009:34;8989:18;;;8982:62;-1:-1:-1;;;9060:18:1;;;9053:36;9106:19;;5069:73:0::1;8729:402:1::0;5069:73:0::1;5153:28;5172:8;5153:18;:28::i;:::-;4988:201:::0;:::o;29532:273::-;29589:4;29645:7;51681:1;29626:26;;:66;;;;;29679:13;;29669:7;:23;29626:66;:152;;;;-1:-1:-1;;29730:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;29730:43:0;:48;;29532:273::o;22492:1129::-;22559:7;22594;;51681:1;22643:23;22639:915;;22696:13;;22689:4;:20;22685:869;;;22734:14;22751:23;;;:17;:23;;;;;;-1:-1:-1;;;22840:23:0;;22836:699;;23359:113;23366:11;23359:113;;-1:-1:-1;;;23437:6:0;23419:25;;;;:17;:25;;;;;;23359:113;;;23505:6;22492:1129;-1:-1:-1;;;22492:1129:0:o;22836:699::-;22711:843;22685:869;23582:31;;-1:-1:-1;;;23582:31:0;;;;;;;;;;;51698:359;51771:5;51759:9;:17;51755:295;;;51794:9;51817:10;51860:17;51872:5;51860:9;:17;:::i;:::-;51809:88;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51793:104;;;51920:4;51912:32;;;;-1:-1:-1;;;51912:32:0;;9338:2:1;51912:32:0;;;9320:21:1;9377:2;9357:18;;;9350:30;-1:-1:-1;;;9396:18:1;;;9389:45;9451:18;;51912:32:0;9136:339:1;51755:295:0;51987:5;51975:9;:17;51971:79;;;52009:29;;-1:-1:-1;;;52009:29:0;;12538:2:1;52009:29:0;;;12520:21:1;12577:2;12557:18;;;12550:30;-1:-1:-1;;;12596:18:1;;;12589:49;12655:18;;52009:29:0;12336:343:1;29889:104:0;29958:27;29968:2;29972:8;29958:27;;;;;;;;;;;;:9;:27::i;5349:191::-;5423:16;5442:6;;-1:-1:-1;;;;;5459:17:0;;;-1:-1:-1;;;;;;5459:17:0;;;;;;5492:40;;5442:6;;;;;;;5492:40;;5423:16;5492:40;5412:128;5349:191;:::o;43748:716::-;43932:88;;-1:-1:-1;;;43932:88:0;;43911:4;;-1:-1:-1;;;;;43932:45:0;;;;;:88;;48180:10;;43999:4;;44005:7;;44014:5;;43932:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43932:88:0;;;;;;;;-1:-1:-1;;43932:88:0;;;;;;;;;;;;:::i;:::-;;;43928:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44215:13:0;;44211:235;;44261:40;;-1:-1:-1;;;44261:40:0;;;;;;;;;;;44211:235;44404:6;44398:13;44389:6;44385:2;44381:15;44374:38;43928:529;-1:-1:-1;;;;;;44091:64:0;-1:-1:-1;;;44091:64:0;;-1:-1:-1;43928:529:0;43748:716;;;;;;:::o;365:723::-;421:13;642:10;638:53;;-1:-1:-1;;669:10:0;;;;;;;;;;;;-1:-1:-1;;;669:10:0;;;;;365:723::o;638:53::-;716:5;701:12;757:78;764:9;;757:78;;790:8;;;;:::i;:::-;;-1:-1:-1;813:10:0;;-1:-1:-1;821:2:0;813:10;;:::i;:::-;;;757:78;;;845:19;877:6;867:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;867:17:0;;845:39;;895:154;902:10;;895:154;;929:11;939:1;929:11;;:::i;:::-;;-1:-1:-1;998:10:0;1006:2;998:5;:10;:::i;:::-;985:24;;:2;:24;:::i;:::-;972:39;;955:6;962;955:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;955:56:0;;;;;;;;-1:-1:-1;1026:11:0;1035:2;1026:11;;:::i;:::-;;;895:154;;30409:681;30532:19;30538:2;30542:8;30532:5;:19::i;:::-;-1:-1:-1;;;;;30593:14:0;;;:19;30589:483;;30647:13;;30695:14;;;30728:233;30759:62;30798:1;30802:2;30806:7;;;;;;30815:5;30759:30;:62::i;:::-;30754:167;;30857:40;;-1:-1:-1;;;30857:40:0;;;;;;;;;;;30754:167;30956:3;30948:5;:11;30728:233;;31043:3;31026:13;;:20;31022:34;;31048:8;;;31022:34;30614:458;;30409:681;;;:::o;31363:1529::-;31451:13;;-1:-1:-1;;;;;31479:16:0;;31475:48;;31504:19;;-1:-1:-1;;;31504:19:0;;;;;;;;;;;31475:48;31538:13;31534:44;;31560:18;;-1:-1:-1;;;31560:18:0;;;;;;;;;;;31534:44;-1:-1:-1;;;;;32066:22:0;;;;;;:18;:22;;15510:2;32066:22;;:70;;32104:31;32092:44;;32066:70;;;25474:11;25450:22;25446:40;-1:-1:-1;27184:15:0;;27159:23;27155:45;25443:51;25433:62;32379:31;;;;:17;:31;;;;;:173;32397:12;32628:23;;;32666:101;32693:35;;32718:9;;;;;-1:-1:-1;;;;;32693:35:0;;;32710:1;;32693:35;;32710:1;;32693:35;32762:3;32752:7;:13;32666:101;;32783:13;:19;-1:-1:-1;28622:185:0;;;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:631:1;78:5;108:18;149:2;141:6;138:14;135:40;;;155:18;;:::i;:::-;230:2;224:9;198:2;284:15;;-1:-1:-1;;280:24:1;;;306:2;276:33;272:42;260:55;;;330:18;;;350:22;;;327:46;324:72;;;376:18;;:::i;:::-;416:10;412:2;405:22;445:6;436:15;;475:6;467;460:22;515:3;506:6;501:3;497:16;494:25;491:45;;;532:1;529;522:12;491:45;582:6;577:3;570:4;562:6;558:17;545:44;637:1;630:4;621:6;613;609:19;605:30;598:41;;;;14:631;;;;;:::o;650:173::-;718:20;;-1:-1:-1;;;;;767:31:1;;757:42;;747:70;;813:1;810;803:12;828:160;893:20;;949:13;;942:21;932:32;;922:60;;978:1;975;968:12;993:186;1052:6;1105:2;1093:9;1084:7;1080:23;1076:32;1073:52;;;1121:1;1118;1111:12;1073:52;1144:29;1163:9;1144:29;:::i;1184:260::-;1252:6;1260;1313:2;1301:9;1292:7;1288:23;1284:32;1281:52;;;1329:1;1326;1319:12;1281:52;1352:29;1371:9;1352:29;:::i;:::-;1342:39;;1400:38;1434:2;1423:9;1419:18;1400:38;:::i;:::-;1390:48;;1184:260;;;;;:::o;1449:328::-;1526:6;1534;1542;1595:2;1583:9;1574:7;1570:23;1566:32;1563:52;;;1611:1;1608;1601:12;1563:52;1634:29;1653:9;1634:29;:::i;:::-;1624:39;;1682:38;1716:2;1705:9;1701:18;1682:38;:::i;:::-;1672:48;;1767:2;1756:9;1752:18;1739:32;1729:42;;1449:328;;;;;:::o;1782:666::-;1877:6;1885;1893;1901;1954:3;1942:9;1933:7;1929:23;1925:33;1922:53;;;1971:1;1968;1961:12;1922:53;1994:29;2013:9;1994:29;:::i;:::-;1984:39;;2042:38;2076:2;2065:9;2061:18;2042:38;:::i;:::-;2032:48;;2127:2;2116:9;2112:18;2099:32;2089:42;;2182:2;2171:9;2167:18;2154:32;2209:18;2201:6;2198:30;2195:50;;;2241:1;2238;2231:12;2195:50;2264:22;;2317:4;2309:13;;2305:27;-1:-1:-1;2295:55:1;;2346:1;2343;2336:12;2295:55;2369:73;2434:7;2429:2;2416:16;2411:2;2407;2403:11;2369:73;:::i;:::-;2359:83;;;1782:666;;;;;;;:::o;2453:254::-;2518:6;2526;2579:2;2567:9;2558:7;2554:23;2550:32;2547:52;;;2595:1;2592;2585:12;2547:52;2618:29;2637:9;2618:29;:::i;:::-;2608:39;;2666:35;2697:2;2686:9;2682:18;2666:35;:::i;2712:254::-;2780:6;2788;2841:2;2829:9;2820:7;2816:23;2812:32;2809:52;;;2857:1;2854;2847:12;2809:52;2880:29;2899:9;2880:29;:::i;:::-;2870:39;2956:2;2941:18;;;;2928:32;;-1:-1:-1;;;2712:254:1:o;2971:180::-;3027:6;3080:2;3068:9;3059:7;3055:23;3051:32;3048:52;;;3096:1;3093;3086:12;3048:52;3119:26;3135:9;3119:26;:::i;3156:245::-;3214:6;3267:2;3255:9;3246:7;3242:23;3238:32;3235:52;;;3283:1;3280;3273:12;3235:52;3322:9;3309:23;3341:30;3365:5;3341:30;:::i;3406:249::-;3475:6;3528:2;3516:9;3507:7;3503:23;3499:32;3496:52;;;3544:1;3541;3534:12;3496:52;3576:9;3570:16;3595:30;3619:5;3595:30;:::i;3660:450::-;3729:6;3782:2;3770:9;3761:7;3757:23;3753:32;3750:52;;;3798:1;3795;3788:12;3750:52;3838:9;3825:23;3871:18;3863:6;3860:30;3857:50;;;3903:1;3900;3893:12;3857:50;3926:22;;3979:4;3971:13;;3967:27;-1:-1:-1;3957:55:1;;4008:1;4005;3998:12;3957:55;4031:73;4096:7;4091:2;4078:16;4073:2;4069;4065:11;4031:73;:::i;4115:180::-;4174:6;4227:2;4215:9;4206:7;4202:23;4198:32;4195:52;;;4243:1;4240;4233:12;4195:52;-1:-1:-1;4266:23:1;;4115:180;-1:-1:-1;4115:180:1:o;4300:254::-;4368:6;4376;4429:2;4417:9;4408:7;4404:23;4400:32;4397:52;;;4445:1;4442;4435:12;4397:52;4481:9;4468:23;4458:33;;4510:38;4544:2;4533:9;4529:18;4510:38;:::i;4559:257::-;4600:3;4638:5;4632:12;4665:6;4660:3;4653:19;4681:63;4737:6;4730:4;4725:3;4721:14;4714:4;4707:5;4703:16;4681:63;:::i;:::-;4798:2;4777:15;-1:-1:-1;;4773:29:1;4764:39;;;;4805:4;4760:50;;4559:257;-1:-1:-1;;4559:257:1:o;4821:185::-;4863:3;4901:5;4895:12;4916:52;4961:6;4956:3;4949:4;4942:5;4938:16;4916:52;:::i;:::-;4984:16;;;;;4821:185;-1:-1:-1;;4821:185:1:o;5129:1301::-;5406:3;5435:1;5468:6;5462:13;5498:3;5520:1;5548:9;5544:2;5540:18;5530:28;;5608:2;5597:9;5593:18;5630;5620:61;;5674:4;5666:6;5662:17;5652:27;;5620:61;5700:2;5748;5740:6;5737:14;5717:18;5714:38;5711:165;;;-1:-1:-1;;;5775:33:1;;5831:4;5828:1;5821:15;5861:4;5782:3;5849:17;5711:165;5892:18;5919:104;;;;6037:1;6032:320;;;;5885:467;;5919:104;-1:-1:-1;;5952:24:1;;5940:37;;5997:16;;;;-1:-1:-1;5919:104:1;;6032:320;15030:1;15023:14;;;15067:4;15054:18;;6127:1;6141:165;6155:6;6152:1;6149:13;6141:165;;;6233:14;;6220:11;;;6213:35;6276:16;;;;6170:10;;6141:165;;;6145:3;;6335:6;6330:3;6326:16;6319:23;;5885:467;;;;;;;6368:56;6393:30;6419:3;6411:6;6393:30;:::i;:::-;-1:-1:-1;;;5071:20:1;;5116:1;5107:11;;5011:113;6368:56;6361:63;5129:1301;-1:-1:-1;;;;;5129:1301:1:o;7183:488::-;-1:-1:-1;;;;;7452:15:1;;;7434:34;;7504:15;;7499:2;7484:18;;7477:43;7551:2;7536:18;;7529:34;;;7599:3;7594:2;7579:18;;7572:31;;;7377:4;;7620:45;;7645:19;;7637:6;7620:45;:::i;:::-;7612:53;7183:488;-1:-1:-1;;;;;;7183:488:1:o;7676:632::-;7847:2;7899:21;;;7969:13;;7872:18;;;7991:22;;;7818:4;;7847:2;8070:15;;;;8044:2;8029:18;;;7818:4;8113:169;8127:6;8124:1;8121:13;8113:169;;;8188:13;;8176:26;;8257:15;;;;8222:12;;;;8149:1;8142:9;8113:169;;;-1:-1:-1;8299:3:1;;7676:632;-1:-1:-1;;;;;;7676:632:1:o;8505:219::-;8654:2;8643:9;8636:21;8617:4;8674:44;8714:2;8703:9;8699:18;8691:6;8674:44;:::i;9480:343::-;9682:2;9664:21;;;9721:2;9701:18;;;9694:30;-1:-1:-1;;;9755:2:1;9740:18;;9733:49;9814:2;9799:18;;9480:343::o;10864:356::-;11066:2;11048:21;;;11085:18;;;11078:30;11144:34;11139:2;11124:18;;11117:62;11211:2;11196:18;;10864:356::o;13727:342::-;13929:2;13911:21;;;13968:2;13948:18;;;13941:30;-1:-1:-1;;;14002:2:1;13987:18;;13980:48;14060:2;14045:18;;13727:342::o;14425:345::-;14627:2;14609:21;;;14666:2;14646:18;;;14639:30;-1:-1:-1;;;14700:2:1;14685:18;;14678:51;14761:2;14746:18;;14425:345::o;15083:128::-;15123:3;15154:1;15150:6;15147:1;15144:13;15141:39;;;15160:18;;:::i;:::-;-1:-1:-1;15196:9:1;;15083:128::o;15216:120::-;15256:1;15282;15272:35;;15287:18;;:::i;:::-;-1:-1:-1;15321:9:1;;15216:120::o;15341:168::-;15381:7;15447:1;15443;15439:6;15435:14;15432:1;15429:21;15424:1;15417:9;15410:17;15406:45;15403:71;;;15454:18;;:::i;:::-;-1:-1:-1;15494:9:1;;15341:168::o;15514:125::-;15554:4;15582:1;15579;15576:8;15573:34;;;15587:18;;:::i;:::-;-1:-1:-1;15624:9:1;;15514:125::o;15644:258::-;15716:1;15726:113;15740:6;15737:1;15734:13;15726:113;;;15816:11;;;15810:18;15797:11;;;15790:39;15762:2;15755:10;15726:113;;;15857:6;15854:1;15851:13;15848:48;;;-1:-1:-1;;15892:1:1;15874:16;;15867:27;15644:258::o;15907:380::-;15986:1;15982:12;;;;16029;;;16050:61;;16104:4;16096:6;16092:17;16082:27;;16050:61;16157:2;16149:6;16146:14;16126:18;16123:38;16120:161;;;16203:10;16198:3;16194:20;16191:1;16184:31;16238:4;16235:1;16228:15;16266:4;16263:1;16256:15;16120:161;;15907:380;;;:::o;16292:135::-;16331:3;-1:-1:-1;;16352:17:1;;16349:43;;;16372:18;;:::i;:::-;-1:-1:-1;16419:1:1;16408:13;;16292:135::o;16432:112::-;16464:1;16490;16480:35;;16495:18;;:::i;:::-;-1:-1:-1;16529:9:1;;16432:112::o;16549:127::-;16610:10;16605:3;16601:20;16598:1;16591:31;16641:4;16638:1;16631:15;16665:4;16662:1;16655:15;16681:127;16742:10;16737:3;16733:20;16730:1;16723:31;16773:4;16770:1;16763:15;16797:4;16794:1;16787:15;16813:127;16874:10;16869:3;16865:20;16862:1;16855:31;16905:4;16902:1;16895:15;16929:4;16926:1;16919:15;16945:127;17006:10;17001:3;16997:20;16994:1;16987:31;17037:4;17034:1;17027:15;17061:4;17058:1;17051:15;17077:131;-1:-1:-1;;;;;;17151:32:1;;17141:43;;17131:71;;17198:1;17195;17188:12

Swarm Source

ipfs://8eefff33594ed82eb9a4f59f12135398406be584e9fadd1a7cb1d33a0a16a609
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.