Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
2,000 TROSTEN
Holders
1,524
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 TROSTENLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Trosten
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-10-21 */ // File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } // File: @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 (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: erc721a/contracts/IERC721A.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * 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(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @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](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File: erc721a/contracts/ERC721A.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Reference type for token approval. struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 0x80 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: 0x20 + 3 * 0x20 = 0x80. str := add(mload(0x40), 0x80) // Update the free memory pointer to allocate. mstore(0x40, str) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } // File: contracts/Trosten.sol pragma solidity ^0.8.17; contract Trosten is Ownable, ERC721A { uint256 public MAX_SUPPLY = 2000; // Price of each token uint256 public TROSTLIST_PRICE = 0.035 ether; uint256 public PUBLIC_PRICE = 0.039 ether; // Start time of the sale uint256 public PRIVATE_SALE_TIME; uint256 public PUBLIC_SALE_TIME; // Merkle root of the trostlist bytes32 public MERKLE_TROSTLIST; string private _baseTokenURI; constructor() ERC721A("Trosten - Trost Island", "TROSTEN") {} // Public functions function privateMint(bytes32[] memory _proof) external payable { uint256 supply = totalSupply(); require( block.timestamp >= PRIVATE_SALE_TIME, "Sale has not yet started" ); require(_numberMinted(msg.sender) < 1, "Already minted"); require( MerkleProof.verify( _proof, MERKLE_TROSTLIST, keccak256(abi.encodePacked(msg.sender)) ), "Address not whitelisted" ); require(supply + 1 <= MAX_SUPPLY, "Reached max supply"); require(msg.value >= TROSTLIST_PRICE); _mint(msg.sender, 1); } function publicMint() external payable { uint256 supply = totalSupply(); require( block.timestamp >= PUBLIC_SALE_TIME, "Sale has not yet started" ); require(supply + 1 <= MAX_SUPPLY, "Reached max supply"); require(msg.value >= PUBLIC_PRICE); _mint(msg.sender, 1); } function getMinted() public view returns (uint256) { return _numberMinted(msg.sender); } // Override functions function _startTokenId() internal view virtual override returns (uint256) { return 1; } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } // Only owner functions function devMint(uint256 _qty) external onlyOwner { require(totalSupply() + _qty <= MAX_SUPPLY, "Reached max supply"); _mint(msg.sender, _qty); } function setBaseURI(string calldata baseURI) external onlyOwner { _baseTokenURI = baseURI; } function setTrostListPrice(uint256 _price) external onlyOwner { TROSTLIST_PRICE = _price; } function setPublicPrice(uint256 _price) external onlyOwner { PUBLIC_PRICE = _price; } function setPrivateSaleTime(uint256 _timestamp) external onlyOwner { PRIVATE_SALE_TIME = _timestamp; } function setPublicSaleTime(uint256 _timestamp) external onlyOwner { PUBLIC_SALE_TIME = _timestamp; } function setMerkleRoot(bytes32 _root) external onlyOwner { MERKLE_TROSTLIST = _root; } function withdraw() external onlyOwner { uint256 funds = address(this).balance; (bool succ, ) = payable(msg.sender).call{value: funds}(""); require(succ, "transfer failed"); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":"MERKLE_TROSTLIST","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRIVATE_SALE_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_SALE_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TROSTLIST_PRICE","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":[{"internalType":"uint256","name":"_qty","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"privateMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"bytes32","name":"_root","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"setPrivateSaleTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"setPublicSaleTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setTrostListPrice","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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526107d0600955667c585087238000600a55668a8e4b1a3d8000600b553480156200002d57600080fd5b506040518060400160405280601681526020017f54726f7374656e202d2054726f73742049736c616e6400000000000000000000815250604051806040016040528060078152602001662a2927a9aa22a760c91b8152506200009e62000098620000c860201b60201c565b620000cc565b6003620000ac8382620001c1565b506004620000bb8282620001c1565b505060018055506200028d565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200014757607f821691505b6020821081036200016857634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001bc57600081815260208120601f850160051c81016020861015620001975750805b601f850160051c820191505b81811015620001b857828155600101620001a3565b5050505b505050565b81516001600160401b03811115620001dd57620001dd6200011c565b620001f581620001ee845462000132565b846200016e565b602080601f8311600181146200022d5760008415620002145750858301515b600019600386901b1c1916600185901b178555620001b8565b600085815260208120601f198616915b828110156200025e578886015182559484019460019091019084016200023d565b50858210156200027d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6119f8806200029d6000396000f3fe6080604052600436106101f95760003560e01c806368f31fcd1161010d578063a4ca8849116100a0578063c784a6a21161006f578063c784a6a21461057b578063c87b56dd14610591578063e985e9c5146105b1578063eaaaf269146105d1578063f2fde38b146105e757600080fd5b8063a4ca8849146104f8578063ac72200d1461050b578063b88d4fde1461053b578063c62752551461055b57600080fd5b80637cb64759116100dc5780637cb64759146104855780638da5cb5b146104a557806395d89b41146104c3578063a22cb465146104d857600080fd5b806368f31fcd146104105780636b0cd56a1461043057806370a0823114610450578063715018a61461047057600080fd5b806326092b83116101905780633ccfd60b1161015f5780633ccfd60b1461038557806342842e0e1461039a57806355f804b3146103ba578063611f3f10146103da5780636352211e146103f057600080fd5b806326092b8314610331578063314da5341461033957806332cb6b0c1461034f578063375a069a1461036557600080fd5b806311b7e5e7116101cc57806311b7e5e7146102af57806318160ddd146102cf57806323b872dd146102fb57806325ef50fd1461031b57600080fd5b806301ffc9a7146101fe57806306fdde0314610233578063081812fc14610255578063095ea7b31461028d575b600080fd5b34801561020a57600080fd5b5061021e6102193660046113b0565b610607565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b50610248610659565b60405161022a919061141d565b34801561026157600080fd5b50610275610270366004611430565b6106eb565b6040516001600160a01b03909116815260200161022a565b34801561029957600080fd5b506102ad6102a8366004611465565b61072f565b005b3480156102bb57600080fd5b506102ad6102ca366004611430565b6107cf565b3480156102db57600080fd5b506102ed600254600154036000190190565b60405190815260200161022a565b34801561030757600080fd5b506102ad61031636600461148f565b6107dc565b34801561032757600080fd5b506102ed600a5481565b6102ad610975565b34801561034557600080fd5b506102ed600d5481565b34801561035b57600080fd5b506102ed60095481565b34801561037157600080fd5b506102ad610380366004611430565b610a25565b34801561039157600080fd5b506102ad610a74565b3480156103a657600080fd5b506102ad6103b536600461148f565b610b0c565b3480156103c657600080fd5b506102ad6103d53660046114cb565b610b2c565b3480156103e657600080fd5b506102ed600b5481565b3480156103fc57600080fd5b5061027561040b366004611430565b610b41565b34801561041c57600080fd5b506102ad61042b366004611430565b610b4c565b34801561043c57600080fd5b506102ad61044b366004611430565b610b59565b34801561045c57600080fd5b506102ed61046b36600461153d565b610b66565b34801561047c57600080fd5b506102ad610bb5565b34801561049157600080fd5b506102ad6104a0366004611430565b610bc9565b3480156104b157600080fd5b506000546001600160a01b0316610275565b3480156104cf57600080fd5b50610248610bd6565b3480156104e457600080fd5b506102ad6104f3366004611558565b610be5565b6102ad6105063660046115db565b610c7a565b34801561051757600080fd5b5033600090815260066020526040908190205467ffffffffffffffff911c166102ed565b34801561054757600080fd5b506102ad610556366004611681565b610e0e565b34801561056757600080fd5b506102ad610576366004611430565b610e58565b34801561058757600080fd5b506102ed600e5481565b34801561059d57600080fd5b506102486105ac366004611430565b610e65565b3480156105bd57600080fd5b5061021e6105cc366004611741565b610ee9565b3480156105dd57600080fd5b506102ed600c5481565b3480156105f357600080fd5b506102ad61060236600461153d565b610f17565b60006301ffc9a760e01b6001600160e01b03198316148061063857506380ac58cd60e01b6001600160e01b03198316145b806106535750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606003805461066890611774565b80601f016020809104026020016040519081016040528092919081815260200182805461069490611774565b80156106e15780601f106106b6576101008083540402835291602001916106e1565b820191906000526020600020905b8154815290600101906020018083116106c457829003601f168201915b5050505050905090565b60006106f682610f8d565b610713576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061073a82610b41565b9050336001600160a01b03821614610773576107568133610ee9565b610773576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6107d7610fc2565b600d55565b60006107e78261101c565b9050836001600160a01b0316816001600160a01b03161461081a5760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b038816909114176108675761084a8633610ee9565b61086757604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661088e57604051633a954ecd60e21b815260040160405180910390fd5b801561089957600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b8416900361092b576001840160008181526005602052604081205490036109295760015481146109295760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6000610988600254600154036000190190565b9050600d544210156109dc5760405162461bcd60e51b815260206004820152601860248201527714d85b19481a185cc81b9bdd081e595d081cdd185c9d195960421b60448201526064015b60405180910390fd5b6009546109ea8260016117c4565b1115610a085760405162461bcd60e51b81526004016109d3906117d7565b600b54341015610a1757600080fd5b610a2233600161108b565b50565b610a2d610fc2565b60095481610a42600254600154036000190190565b610a4c91906117c4565b1115610a6a5760405162461bcd60e51b81526004016109d3906117d7565b610a22338261108b565b610a7c610fc2565b6040514790600090339083908381818185875af1925050503d8060008114610ac0576040519150601f19603f3d011682016040523d82523d6000602084013e610ac5565b606091505b5050905080610b085760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b60448201526064016109d3565b5050565b610b2783838360405180602001604052806000815250610e0e565b505050565b610b34610fc2565b600f610b27828483611849565b60006106538261101c565b610b54610fc2565b600a55565b610b61610fc2565b600c55565b60006001600160a01b038216610b8f576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b610bbd610fc2565b610bc76000611189565b565b610bd1610fc2565b600e55565b60606004805461066890611774565b336001600160a01b03831603610c0e5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000610c8d600254600154036000190190565b9050600c54421015610cdc5760405162461bcd60e51b815260206004820152601860248201527714d85b19481a185cc81b9bdd081e595d081cdd185c9d195960421b60448201526064016109d3565b3360009081526006602052604090819020546001911c67ffffffffffffffff1610610d3a5760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481b5a5b9d195960921b60448201526064016109d3565b600e546040516bffffffffffffffffffffffff193360601b166020820152610d7c918491603401604051602081830303815290604052805190602001206111d9565b610dc85760405162461bcd60e51b815260206004820152601760248201527f41646472657373206e6f742077686974656c697374656400000000000000000060448201526064016109d3565b600954610dd68260016117c4565b1115610df45760405162461bcd60e51b81526004016109d3906117d7565b600a54341015610e0357600080fd5b610b0833600161108b565b610e198484846107dc565b6001600160a01b0383163b15610e5257610e35848484846111ef565b610e52576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b610e60610fc2565b600b55565b6060610e7082610f8d565b610e8d57604051630a14c4b560e41b815260040160405180910390fd5b6000610e976112da565b90508051600003610eb75760405180602001604052806000815250610ee2565b80610ec1846112e9565b604051602001610ed292919061190a565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b610f1f610fc2565b6001600160a01b038116610f845760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109d3565b610a2281611189565b600081600111158015610fa1575060015482105b8015610653575050600090815260056020526040902054600160e01b161590565b6000546001600160a01b03163314610bc75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b60008180600111611072576001548110156110725760008181526005602052604081205490600160e01b82169003611070575b80600003610ee257506000190160008181526005602052604090205461104f565b505b604051636f96cda160e11b815260040160405180910390fd5b60015460008290036110b05760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600590915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461115f57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611127565b508160000361118057604051622e076360e81b815260040160405180910390fd5b60015550505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000826111e68584611321565b14949350505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611224903390899088908890600401611939565b6020604051808303816000875af192505050801561125f575060408051601f3d908101601f1916820190925261125c91810190611976565b60015b6112bd573d80801561128d576040519150601f19603f3d011682016040523d82523d6000602084013e611292565b606091505b5080516000036112b5576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600f805461066890611774565b604080516080019081905280825b600183039250600a81066030018353600a9004806112f75750819003601f19909101908152919050565b600081815b8451811015611366576113528286838151811061134557611345611993565b602002602001015161136e565b91508061135e816119a9565b915050611326565b509392505050565b600081831061138a576000828152602084905260409020610ee2565b5060009182526020526040902090565b6001600160e01b031981168114610a2257600080fd5b6000602082840312156113c257600080fd5b8135610ee28161139a565b60005b838110156113e85781810151838201526020016113d0565b50506000910152565b600081518084526114098160208601602086016113cd565b601f01601f19169290920160200192915050565b602081526000610ee260208301846113f1565b60006020828403121561144257600080fd5b5035919050565b80356001600160a01b038116811461146057600080fd5b919050565b6000806040838503121561147857600080fd5b61148183611449565b946020939093013593505050565b6000806000606084860312156114a457600080fd5b6114ad84611449565b92506114bb60208501611449565b9150604084013590509250925092565b600080602083850312156114de57600080fd5b823567ffffffffffffffff808211156114f657600080fd5b818501915085601f83011261150a57600080fd5b81358181111561151957600080fd5b86602082850101111561152b57600080fd5b60209290920196919550909350505050565b60006020828403121561154f57600080fd5b610ee282611449565b6000806040838503121561156b57600080fd5b61157483611449565b91506020830135801515811461158957600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156115d3576115d3611594565b604052919050565b600060208083850312156115ee57600080fd5b823567ffffffffffffffff8082111561160657600080fd5b818501915085601f83011261161a57600080fd5b81358181111561162c5761162c611594565b8060051b915061163d8483016115aa565b818152918301840191848101908884111561165757600080fd5b938501935b838510156116755784358252938501939085019061165c565b98975050505050505050565b6000806000806080858703121561169757600080fd5b6116a085611449565b935060206116af818701611449565b935060408601359250606086013567ffffffffffffffff808211156116d357600080fd5b818801915088601f8301126116e757600080fd5b8135818111156116f9576116f9611594565b61170b601f8201601f191685016115aa565b9150808252898482850101111561172157600080fd5b808484018584013760008482840101525080935050505092959194509250565b6000806040838503121561175457600080fd5b61175d83611449565b915061176b60208401611449565b90509250929050565b600181811c9082168061178857607f821691505b6020821081036117a857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610653576106536117ae565b60208082526012908201527152656163686564206d617820737570706c7960701b604082015260600190565b601f821115610b2757600081815260208120601f850160051c8101602086101561182a5750805b601f850160051c820191505b8181101561096d57828155600101611836565b67ffffffffffffffff83111561186157611861611594565b6118758361186f8354611774565b83611803565b6000601f8411600181146118a957600085156118915750838201355b600019600387901b1c1916600186901b178355611903565b600083815260209020601f19861690835b828110156118da57868501358255602094850194600190920191016118ba565b50868210156118f75760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b6000835161191c8184602088016113cd565b8351908301906119308183602088016113cd565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061196c908301846113f1565b9695505050505050565b60006020828403121561198857600080fd5b8151610ee28161139a565b634e487b7160e01b600052603260045260246000fd5b6000600182016119bb576119bb6117ae565b506001019056fea2646970667358221220eeecdbf367056ee4ba803cb2e433897310aaf73f5520929725bc411bdcc70a9964736f6c63430008110033
Deployed Bytecode
0x6080604052600436106101f95760003560e01c806368f31fcd1161010d578063a4ca8849116100a0578063c784a6a21161006f578063c784a6a21461057b578063c87b56dd14610591578063e985e9c5146105b1578063eaaaf269146105d1578063f2fde38b146105e757600080fd5b8063a4ca8849146104f8578063ac72200d1461050b578063b88d4fde1461053b578063c62752551461055b57600080fd5b80637cb64759116100dc5780637cb64759146104855780638da5cb5b146104a557806395d89b41146104c3578063a22cb465146104d857600080fd5b806368f31fcd146104105780636b0cd56a1461043057806370a0823114610450578063715018a61461047057600080fd5b806326092b83116101905780633ccfd60b1161015f5780633ccfd60b1461038557806342842e0e1461039a57806355f804b3146103ba578063611f3f10146103da5780636352211e146103f057600080fd5b806326092b8314610331578063314da5341461033957806332cb6b0c1461034f578063375a069a1461036557600080fd5b806311b7e5e7116101cc57806311b7e5e7146102af57806318160ddd146102cf57806323b872dd146102fb57806325ef50fd1461031b57600080fd5b806301ffc9a7146101fe57806306fdde0314610233578063081812fc14610255578063095ea7b31461028d575b600080fd5b34801561020a57600080fd5b5061021e6102193660046113b0565b610607565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b50610248610659565b60405161022a919061141d565b34801561026157600080fd5b50610275610270366004611430565b6106eb565b6040516001600160a01b03909116815260200161022a565b34801561029957600080fd5b506102ad6102a8366004611465565b61072f565b005b3480156102bb57600080fd5b506102ad6102ca366004611430565b6107cf565b3480156102db57600080fd5b506102ed600254600154036000190190565b60405190815260200161022a565b34801561030757600080fd5b506102ad61031636600461148f565b6107dc565b34801561032757600080fd5b506102ed600a5481565b6102ad610975565b34801561034557600080fd5b506102ed600d5481565b34801561035b57600080fd5b506102ed60095481565b34801561037157600080fd5b506102ad610380366004611430565b610a25565b34801561039157600080fd5b506102ad610a74565b3480156103a657600080fd5b506102ad6103b536600461148f565b610b0c565b3480156103c657600080fd5b506102ad6103d53660046114cb565b610b2c565b3480156103e657600080fd5b506102ed600b5481565b3480156103fc57600080fd5b5061027561040b366004611430565b610b41565b34801561041c57600080fd5b506102ad61042b366004611430565b610b4c565b34801561043c57600080fd5b506102ad61044b366004611430565b610b59565b34801561045c57600080fd5b506102ed61046b36600461153d565b610b66565b34801561047c57600080fd5b506102ad610bb5565b34801561049157600080fd5b506102ad6104a0366004611430565b610bc9565b3480156104b157600080fd5b506000546001600160a01b0316610275565b3480156104cf57600080fd5b50610248610bd6565b3480156104e457600080fd5b506102ad6104f3366004611558565b610be5565b6102ad6105063660046115db565b610c7a565b34801561051757600080fd5b5033600090815260066020526040908190205467ffffffffffffffff911c166102ed565b34801561054757600080fd5b506102ad610556366004611681565b610e0e565b34801561056757600080fd5b506102ad610576366004611430565b610e58565b34801561058757600080fd5b506102ed600e5481565b34801561059d57600080fd5b506102486105ac366004611430565b610e65565b3480156105bd57600080fd5b5061021e6105cc366004611741565b610ee9565b3480156105dd57600080fd5b506102ed600c5481565b3480156105f357600080fd5b506102ad61060236600461153d565b610f17565b60006301ffc9a760e01b6001600160e01b03198316148061063857506380ac58cd60e01b6001600160e01b03198316145b806106535750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606003805461066890611774565b80601f016020809104026020016040519081016040528092919081815260200182805461069490611774565b80156106e15780601f106106b6576101008083540402835291602001916106e1565b820191906000526020600020905b8154815290600101906020018083116106c457829003601f168201915b5050505050905090565b60006106f682610f8d565b610713576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061073a82610b41565b9050336001600160a01b03821614610773576107568133610ee9565b610773576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6107d7610fc2565b600d55565b60006107e78261101c565b9050836001600160a01b0316816001600160a01b03161461081a5760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b038816909114176108675761084a8633610ee9565b61086757604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661088e57604051633a954ecd60e21b815260040160405180910390fd5b801561089957600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b8416900361092b576001840160008181526005602052604081205490036109295760015481146109295760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6000610988600254600154036000190190565b9050600d544210156109dc5760405162461bcd60e51b815260206004820152601860248201527714d85b19481a185cc81b9bdd081e595d081cdd185c9d195960421b60448201526064015b60405180910390fd5b6009546109ea8260016117c4565b1115610a085760405162461bcd60e51b81526004016109d3906117d7565b600b54341015610a1757600080fd5b610a2233600161108b565b50565b610a2d610fc2565b60095481610a42600254600154036000190190565b610a4c91906117c4565b1115610a6a5760405162461bcd60e51b81526004016109d3906117d7565b610a22338261108b565b610a7c610fc2565b6040514790600090339083908381818185875af1925050503d8060008114610ac0576040519150601f19603f3d011682016040523d82523d6000602084013e610ac5565b606091505b5050905080610b085760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b60448201526064016109d3565b5050565b610b2783838360405180602001604052806000815250610e0e565b505050565b610b34610fc2565b600f610b27828483611849565b60006106538261101c565b610b54610fc2565b600a55565b610b61610fc2565b600c55565b60006001600160a01b038216610b8f576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b610bbd610fc2565b610bc76000611189565b565b610bd1610fc2565b600e55565b60606004805461066890611774565b336001600160a01b03831603610c0e5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000610c8d600254600154036000190190565b9050600c54421015610cdc5760405162461bcd60e51b815260206004820152601860248201527714d85b19481a185cc81b9bdd081e595d081cdd185c9d195960421b60448201526064016109d3565b3360009081526006602052604090819020546001911c67ffffffffffffffff1610610d3a5760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481b5a5b9d195960921b60448201526064016109d3565b600e546040516bffffffffffffffffffffffff193360601b166020820152610d7c918491603401604051602081830303815290604052805190602001206111d9565b610dc85760405162461bcd60e51b815260206004820152601760248201527f41646472657373206e6f742077686974656c697374656400000000000000000060448201526064016109d3565b600954610dd68260016117c4565b1115610df45760405162461bcd60e51b81526004016109d3906117d7565b600a54341015610e0357600080fd5b610b0833600161108b565b610e198484846107dc565b6001600160a01b0383163b15610e5257610e35848484846111ef565b610e52576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b610e60610fc2565b600b55565b6060610e7082610f8d565b610e8d57604051630a14c4b560e41b815260040160405180910390fd5b6000610e976112da565b90508051600003610eb75760405180602001604052806000815250610ee2565b80610ec1846112e9565b604051602001610ed292919061190a565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b610f1f610fc2565b6001600160a01b038116610f845760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109d3565b610a2281611189565b600081600111158015610fa1575060015482105b8015610653575050600090815260056020526040902054600160e01b161590565b6000546001600160a01b03163314610bc75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b60008180600111611072576001548110156110725760008181526005602052604081205490600160e01b82169003611070575b80600003610ee257506000190160008181526005602052604090205461104f565b505b604051636f96cda160e11b815260040160405180910390fd5b60015460008290036110b05760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600590915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461115f57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611127565b508160000361118057604051622e076360e81b815260040160405180910390fd5b60015550505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000826111e68584611321565b14949350505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611224903390899088908890600401611939565b6020604051808303816000875af192505050801561125f575060408051601f3d908101601f1916820190925261125c91810190611976565b60015b6112bd573d80801561128d576040519150601f19603f3d011682016040523d82523d6000602084013e611292565b606091505b5080516000036112b5576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600f805461066890611774565b604080516080019081905280825b600183039250600a81066030018353600a9004806112f75750819003601f19909101908152919050565b600081815b8451811015611366576113528286838151811061134557611345611993565b602002602001015161136e565b91508061135e816119a9565b915050611326565b509392505050565b600081831061138a576000828152602084905260409020610ee2565b5060009182526020526040902090565b6001600160e01b031981168114610a2257600080fd5b6000602082840312156113c257600080fd5b8135610ee28161139a565b60005b838110156113e85781810151838201526020016113d0565b50506000910152565b600081518084526114098160208601602086016113cd565b601f01601f19169290920160200192915050565b602081526000610ee260208301846113f1565b60006020828403121561144257600080fd5b5035919050565b80356001600160a01b038116811461146057600080fd5b919050565b6000806040838503121561147857600080fd5b61148183611449565b946020939093013593505050565b6000806000606084860312156114a457600080fd5b6114ad84611449565b92506114bb60208501611449565b9150604084013590509250925092565b600080602083850312156114de57600080fd5b823567ffffffffffffffff808211156114f657600080fd5b818501915085601f83011261150a57600080fd5b81358181111561151957600080fd5b86602082850101111561152b57600080fd5b60209290920196919550909350505050565b60006020828403121561154f57600080fd5b610ee282611449565b6000806040838503121561156b57600080fd5b61157483611449565b91506020830135801515811461158957600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156115d3576115d3611594565b604052919050565b600060208083850312156115ee57600080fd5b823567ffffffffffffffff8082111561160657600080fd5b818501915085601f83011261161a57600080fd5b81358181111561162c5761162c611594565b8060051b915061163d8483016115aa565b818152918301840191848101908884111561165757600080fd5b938501935b838510156116755784358252938501939085019061165c565b98975050505050505050565b6000806000806080858703121561169757600080fd5b6116a085611449565b935060206116af818701611449565b935060408601359250606086013567ffffffffffffffff808211156116d357600080fd5b818801915088601f8301126116e757600080fd5b8135818111156116f9576116f9611594565b61170b601f8201601f191685016115aa565b9150808252898482850101111561172157600080fd5b808484018584013760008482840101525080935050505092959194509250565b6000806040838503121561175457600080fd5b61175d83611449565b915061176b60208401611449565b90509250929050565b600181811c9082168061178857607f821691505b6020821081036117a857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610653576106536117ae565b60208082526012908201527152656163686564206d617820737570706c7960701b604082015260600190565b601f821115610b2757600081815260208120601f850160051c8101602086101561182a5750805b601f850160051c820191505b8181101561096d57828155600101611836565b67ffffffffffffffff83111561186157611861611594565b6118758361186f8354611774565b83611803565b6000601f8411600181146118a957600085156118915750838201355b600019600387901b1c1916600186901b178355611903565b600083815260209020601f19861690835b828110156118da57868501358255602094850194600190920191016118ba565b50868210156118f75760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b6000835161191c8184602088016113cd565b8351908301906119308183602088016113cd565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061196c908301846113f1565b9695505050505050565b60006020828403121561198857600080fd5b8151610ee28161139a565b634e487b7160e01b600052603260045260246000fd5b6000600182016119bb576119bb6117ae565b506001019056fea2646970667358221220eeecdbf367056ee4ba803cb2e433897310aaf73f5520929725bc411bdcc70a9964736f6c63430008110033
Deployed Bytecode Sourcemap
63220:3257:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30753:639;;;;;;;;;;-1:-1:-1;30753:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;30753:639:0;;;;;;;;31655:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;38138:218::-;;;;;;;;;;-1:-1:-1;38138:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;38138:218:0;1533:203:1;37579:400:0;;;;;;;;;;-1:-1:-1;37579:400:0;;;;;:::i;:::-;;:::i;:::-;;66011:118;;;;;;;;;;-1:-1:-1;66011:118:0;;;;;:::i;:::-;;:::i;27406:323::-;;;;;;;;;;;;27680:12;;65147:1;27664:13;:28;-1:-1:-1;;27664:46:0;;27406:323;;;;2324:25:1;;;2312:2;2297:18;27406:323:0;2178:177:1;41845:2817:0;;;;;;;;;;-1:-1:-1;41845:2817:0;;;;;:::i;:::-;;:::i;63341:44::-;;;;;;;;;;;;;;;;64522:368;;;:::i;63522:31::-;;;;;;;;;;;;;;;;63266:32;;;;;;;;;;;;;;;;65335:174;;;;;;;;;;-1:-1:-1;65335:174:0;;;;;:::i;:::-;;:::i;66257:215::-;;;;;;;;;;;;;:::i;44758:185::-;;;;;;;;;;-1:-1:-1;44758:185:0;;;;;:::i;:::-;;:::i;65521:110::-;;;;;;;;;;-1:-1:-1;65521:110:0;;;;;:::i;:::-;;:::i;63394:41::-;;;;;;;;;;;;;;;;33048:152;;;;;;;;;;-1:-1:-1;33048:152:0;;;;;:::i;:::-;;:::i;65643:109::-;;;;;;;;;;-1:-1:-1;65643:109:0;;;;;:::i;:::-;;:::i;65879:120::-;;;;;;;;;;-1:-1:-1;65879:120:0;;;;;:::i;:::-;;:::i;28590:233::-;;;;;;;;;;-1:-1:-1;28590:233:0;;;;;:::i;:::-;;:::i;11501:103::-;;;;;;;;;;;;;:::i;66141:104::-;;;;;;;;;;-1:-1:-1;66141:104:0;;;;;:::i;:::-;;:::i;10853:87::-;;;;;;;;;;-1:-1:-1;10899:7:0;10926:6;-1:-1:-1;;;;;10926:6:0;10853:87;;31831:104;;;;;;;;;;;;;:::i;38696:308::-;;;;;;;;;;-1:-1:-1;38696:308:0;;;;;:::i;:::-;;:::i;63794:716::-;;;;;;:::i;:::-;;:::i;64902:106::-;;;;;;;;;;-1:-1:-1;64987:10:0;64944:7;28994:25;;;:18;:25;;22887:2;28994:25;;;;;22749:13;28994:50;;28993:82;64902:106;;45541:399;;;;;;;;;;-1:-1:-1;45541:399:0;;;;;:::i;:::-;;:::i;65764:103::-;;;;;;;;;;-1:-1:-1;65764:103:0;;;;;:::i;:::-;;:::i;63605:31::-;;;;;;;;;;;;;;;;32041:318;;;;;;;;;;-1:-1:-1;32041:318:0;;;;;:::i;:::-;;:::i;39161:164::-;;;;;;;;;;-1:-1:-1;39161:164:0;;;;;:::i;:::-;;:::i;63481:32::-;;;;;;;;;;;;;;;;11759:201;;;;;;;;;;-1:-1:-1;11759:201:0;;;;;:::i;:::-;;:::i;30753:639::-;30838:4;-1:-1:-1;;;;;;;;;31162:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;31239:25:0;;;31162:102;:179;;;-1:-1:-1;;;;;;;;;;31316:25:0;;;31162:179;31142:199;30753:639;-1:-1:-1;;30753:639:0:o;31655:100::-;31709:13;31742:5;31735:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31655:100;:::o;38138:218::-;38214:7;38239:16;38247:7;38239;:16::i;:::-;38234:64;;38264:34;;-1:-1:-1;;;38264:34:0;;;;;;;;;;;38234:64;-1:-1:-1;38318:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;38318:30:0;;38138:218::o;37579:400::-;37660:13;37676:16;37684:7;37676;:16::i;:::-;37660:32;-1:-1:-1;61436:10:0;-1:-1:-1;;;;;37709:28:0;;;37705:175;;37757:44;37774:5;61436:10;39161:164;:::i;37757:44::-;37752:128;;37829:35;;-1:-1:-1;;;37829:35:0;;;;;;;;;;;37752:128;37892:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;37892:35:0;-1:-1:-1;;;;;37892:35:0;;;;;;;;;37943:28;;37892:24;;37943:28;;;;;;;37649:330;37579:400;;:::o;66011:118::-;10739:13;:11;:13::i;:::-;66090:16:::1;:29:::0;66011:118::o;41845:2817::-;41979:27;42009;42028:7;42009:18;:27::i;:::-;41979:57;;42094:4;-1:-1:-1;;;;;42053:45:0;42069:19;-1:-1:-1;;;;;42053:45:0;;42049:86;;42107:28;;-1:-1:-1;;;42107:28:0;;;;;;;;;;;42049:86;42149:27;40959:24;;;:15;:24;;;;;41181:26;;61436:10;40584:30;;;-1:-1:-1;;;;;40277:28:0;;40562:20;;;40559:56;42335:180;;42428:43;42445:4;61436:10;39161:164;:::i;42428:43::-;42423:92;;42480:35;;-1:-1:-1;;;42480:35:0;;;;;;;;;;;42423:92;-1:-1:-1;;;;;42532:16:0;;42528:52;;42557:23;;-1:-1:-1;;;42557:23:0;;;;;;;;;;;42528:52;42729:15;42726:160;;;42869:1;42848:19;42841:30;42726:160;-1:-1:-1;;;;;43266:24:0;;;;;;;:18;:24;;;;;;43264:26;;-1:-1:-1;;43264:26:0;;;43335:22;;;;;;;;;43333:24;;-1:-1:-1;43333:24:0;;;36437:11;36412:23;36408:41;36395:63;-1:-1:-1;;;36395:63:0;43628:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;43923:47:0;;:52;;43919:627;;44028:1;44018:11;;43996:19;44151:30;;;:17;:30;;;;;;:35;;44147:384;;44289:13;;44274:11;:28;44270:242;;44436:30;;;;:17;:30;;;;;:52;;;44270:242;43977:569;43919:627;44593:7;44589:2;-1:-1:-1;;;;;44574:27:0;44583:4;-1:-1:-1;;;;;44574:27:0;;;;;;;;;;;44612:42;41968:2694;;;41845:2817;;;:::o;64522:368::-;64574:14;64591:13;27680:12;;65147:1;27664:13;:28;-1:-1:-1;;27664:46:0;;27406:323;64591:13;64574:30;;64660:16;;64641:15;:35;;64617:115;;;;-1:-1:-1;;;64617:115:0;;7400:2:1;64617:115:0;;;7382:21:1;7439:2;7419:18;;;7412:30;-1:-1:-1;;;7458:18:1;;;7451:54;7522:18;;64617:115:0;;;;;;;;;64767:10;;64753;:6;64762:1;64753:10;:::i;:::-;:24;;64745:55;;;;-1:-1:-1;;;64745:55:0;;;;;;;:::i;:::-;64834:12;;64821:9;:25;;64813:34;;;;;;64860:20;64866:10;64878:1;64860:5;:20::i;:::-;64561:329;64522:368::o;65335:174::-;10739:13;:11;:13::i;:::-;65430:10:::1;;65422:4;65406:13;27680:12:::0;;65147:1;27664:13;:28;-1:-1:-1;;27664:46:0;;27406:323;65406:13:::1;:20;;;;:::i;:::-;:34;;65398:65;;;;-1:-1:-1::0;;;65398:65:0::1;;;;;;;:::i;:::-;65476:23;65482:10;65494:4;65476:5;:23::i;66257:215::-:0;10739:13;:11;:13::i;:::-;66375:42:::1;::::0;66325:21:::1;::::0;66309:13:::1;::::0;66383:10:::1;::::0;66325:21;;66309:13;66375:42;66309:13;66375:42;66325:21;66383:10;66375:42:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66359:58;;;66438:4;66430:32;;;::::0;-1:-1:-1;;;66430:32:0;;8572:2:1;66430:32:0::1;::::0;::::1;8554:21:1::0;8611:2;8591:18;;;8584:30;-1:-1:-1;;;8630:18:1;;;8623:45;8685:18;;66430:32:0::1;8370:339:1::0;66430:32:0::1;66296:176;;66257:215::o:0;44758:185::-;44896:39;44913:4;44919:2;44923:7;44896:39;;;;;;;;;;;;:16;:39::i;:::-;44758:185;;;:::o;65521:110::-;10739:13;:11;:13::i;:::-;65598::::1;:23;65614:7:::0;;65598:13;:23:::1;:::i;33048:152::-:0;33120:7;33163:27;33182:7;33163:18;:27::i;65643:109::-;10739:13;:11;:13::i;:::-;65718:15:::1;:24:::0;65643:109::o;65879:120::-;10739:13;:11;:13::i;:::-;65959:17:::1;:30:::0;65879:120::o;28590:233::-;28662:7;-1:-1:-1;;;;;28686:19:0;;28682:60;;28714:28;;-1:-1:-1;;;28714:28:0;;;;;;;;;;;28682:60;-1:-1:-1;;;;;;28760:25:0;;;;;:18;:25;;;;;;22749:13;28760:55;;28590:233::o;11501:103::-;10739:13;:11;:13::i;:::-;11566:30:::1;11593:1;11566:18;:30::i;:::-;11501:103::o:0;66141:104::-;10739:13;:11;:13::i;:::-;66211:16:::1;:24:::0;66141:104::o;31831:::-;31887:13;31920:7;31913:14;;;;;:::i;38696:308::-;61436:10;-1:-1:-1;;;;;38795:31:0;;;38791:61;;38835:17;;-1:-1:-1;;;38835:17:0;;;;;;;;;;;38791:61;61436:10;38865:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;38865:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;38865:60:0;;;;;;;;;;38941:55;;540:41:1;;;38865:49:0;;61436:10;38941:55;;513:18:1;38941:55:0;;;;;;;38696:308;;:::o;63794:716::-;63870:14;63887:13;27680:12;;65147:1;27664:13;:28;-1:-1:-1;;27664:46:0;;27406:323;63887:13;63870:30;;63956:17;;63937:15;:36;;63913:116;;;;-1:-1:-1;;;63913:116:0;;7400:2:1;63913:116:0;;;7382:21:1;7439:2;7419:18;;;7412:30;-1:-1:-1;;;7458:18:1;;;7451:54;7522:18;;63913:116:0;7198:348:1;63913:116:0;64064:10;28966:7;28994:25;;;:18;:25;;22887:2;28994:25;;;;;64078:1;;28994:50;22749:13;28993:82;64050:29;64042:56;;;;-1:-1:-1;;;64042:56:0;;10974:2:1;64042:56:0;;;10956:21:1;11013:2;10993:18;;;10986:30;-1:-1:-1;;;11032:18:1;;;11025:44;11086:18;;64042:56:0;10772:338:1;64042:56:0;64201:16;;64248:28;;-1:-1:-1;;64265:10:0;11264:2:1;11260:15;11256:53;64248:28:0;;;11244:66:1;64135:159:0;;64174:6;;11326:12:1;;64248:28:0;;;;;;;;;;;;64238:39;;;;;;64135:18;:159::i;:::-;64111:238;;;;-1:-1:-1;;;64111:238:0;;11551:2:1;64111:238:0;;;11533:21:1;11590:2;11570:18;;;11563:30;11629:25;11609:18;;;11602:53;11672:18;;64111:238:0;11349:347:1;64111:238:0;64384:10;;64370;:6;64379:1;64370:10;:::i;:::-;:24;;64362:55;;;;-1:-1:-1;;;64362:55:0;;;;;;;:::i;:::-;64451:15;;64438:9;:28;;64430:37;;;;;;64480:20;64486:10;64498:1;64480:5;:20::i;45541:399::-;45708:31;45721:4;45727:2;45731:7;45708:12;:31::i;:::-;-1:-1:-1;;;;;45754:14:0;;;:19;45750:183;;45793:56;45824:4;45830:2;45834:7;45843:5;45793:30;:56::i;:::-;45788:145;;45877:40;;-1:-1:-1;;;45877:40:0;;;;;;;;;;;45788:145;45541:399;;;;:::o;65764:103::-;10739:13;:11;:13::i;:::-;65836:12:::1;:21:::0;65764:103::o;32041:318::-;32114:13;32145:16;32153:7;32145;:16::i;:::-;32140:59;;32170:29;;-1:-1:-1;;;32170:29:0;;;;;;;;;;;32140:59;32212:21;32236:10;:8;:10::i;:::-;32212:34;;32270:7;32264:21;32289:1;32264:26;:87;;;;;;;;;;;;;;;;;32317:7;32326:18;32336:7;32326:9;:18::i;:::-;32300:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;32264:87;32257:94;32041:318;-1:-1:-1;;;32041:318:0:o;39161:164::-;-1:-1:-1;;;;;39282:25:0;;;39258:4;39282:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;39161:164::o;11759:201::-;10739:13;:11;:13::i;:::-;-1:-1:-1;;;;;11848:22:0;::::1;11840:73;;;::::0;-1:-1:-1;;;11840:73:0;;12404:2:1;11840:73:0::1;::::0;::::1;12386:21:1::0;12443:2;12423:18;;;12416:30;12482:34;12462:18;;;12455:62;-1:-1:-1;;;12533:18:1;;;12526:36;12579:19;;11840:73:0::1;12202:402:1::0;11840:73:0::1;11924:28;11943:8;11924:18;:28::i;39583:282::-:0;39648:4;39704:7;65147:1;39685:26;;:66;;;;;39738:13;;39728:7;:23;39685:66;:153;;;;-1:-1:-1;;39789:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;39789:44:0;:49;;39583:282::o;11018:132::-;10899:7;10926:6;-1:-1:-1;;;;;10926:6:0;61436:10;11082:23;11074:68;;;;-1:-1:-1;;;11074:68:0;;12811:2:1;11074:68:0;;;12793:21:1;;;12830:18;;;12823:30;12889:34;12869:18;;;12862:62;12941:18;;11074:68:0;12609:356:1;34203:1275:0;34270:7;34305;;65147:1;34354:23;34350:1061;;34407:13;;34400:4;:20;34396:1015;;;34445:14;34462:23;;;:17;:23;;;;;;;-1:-1:-1;;;34551:24:0;;:29;;34547:845;;35216:113;35223:6;35233:1;35223:11;35216:113;;-1:-1:-1;;;35294:6:0;35276:25;;;;:17;:25;;;;;;35216:113;;34547:845;34422:989;34396:1015;35439:31;;-1:-1:-1;;;35439:31:0;;;;;;;;;;;49202:2454;49298:13;;49275:20;49326:13;;;49322:44;;49348:18;;-1:-1:-1;;;49348:18:0;;;;;;;;;;;49322:44;-1:-1:-1;;;;;49854:22:0;;;;;;:18;:22;;;;22887:2;49854:22;;;:71;;49892:32;49880:45;;49854:71;;;50168:31;;;:17;:31;;;;;-1:-1:-1;36868:15:0;;36842:24;36838:46;36437:11;36412:23;36408:41;36405:52;36395:63;;50168:173;;50403:23;;;;50168:31;;49854:22;;50902:25;49854:22;;50755:335;51170:1;51156:12;51152:20;51110:346;51211:3;51202:7;51199:16;51110:346;;51429:7;51419:8;51416:1;51389:25;51386:1;51383;51378:59;51264:1;51251:15;51110:346;;;51114:77;51489:8;51501:1;51489:13;51485:45;;51511:19;;-1:-1:-1;;;51511:19:0;;;;;;;;;;;51485:45;51547:13;:19;-1:-1:-1;44758:185:0;;;:::o;12120:191::-;12194:16;12213:6;;-1:-1:-1;;;;;12230:17:0;;;-1:-1:-1;;;;;;12230:17:0;;;;;;12263:40;;12213:6;;;;;;;12263:40;;12194:16;12263:40;12183:128;12120:191;:::o;1219:190::-;1344:4;1397;1368:25;1381:5;1388:4;1368:12;:25::i;:::-;:33;;1219:190;-1:-1:-1;;;;1219:190:0:o;48024:716::-;48208:88;;-1:-1:-1;;;48208:88:0;;48187:4;;-1:-1:-1;;;;;48208:45:0;;;;;:88;;61436:10;;48275:4;;48281:7;;48290:5;;48208:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48208:88:0;;;;;;;;-1:-1:-1;;48208:88:0;;;;;;;;;;;;:::i;:::-;;;48204:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48491:6;:13;48508:1;48491:18;48487:235;;48537:40;;-1:-1:-1;;;48537:40:0;;;;;;;;;;;48487:235;48680:6;48674:13;48665:6;48661:2;48657:15;48650:38;48204:529;-1:-1:-1;;;;;;48367:64:0;-1:-1:-1;;;48367:64:0;;-1:-1:-1;48024:716:0;;;;;;:::o;65170:118::-;65230:13;65265;65258:20;;;;;:::i;61556:1581::-;62039:4;62033:11;;62046:4;62029:22;62125:17;;;;62029:22;62483:5;62465:428;62531:1;62526:3;62522:11;62515:18;;62702:2;62696:4;62692:13;62688:2;62684:22;62679:3;62671:36;62796:2;62786:13;;62853:25;62465:428;62853:25;-1:-1:-1;62923:13:0;;;-1:-1:-1;;63038:14:0;;;63100:19;;;63038:14;61556:1581;-1:-1:-1;61556:1581:0:o;2086:296::-;2169:7;2212:4;2169:7;2227:118;2251:5;:12;2247:1;:16;2227:118;;;2300:33;2310:12;2324:5;2330:1;2324:8;;;;;;;;:::i;:::-;;;;;;;2300:9;:33::i;:::-;2285:48;-1:-1:-1;2265:3:0;;;;:::i;:::-;;;;2227:118;;;-1:-1:-1;2362:12:0;2086:296;-1:-1:-1;;;2086:296:0:o;8293:149::-;8356:7;8387:1;8383;:5;:51;;8518:13;8612:15;;;8648:4;8641:15;;;8695:4;8679:21;;8383:51;;;-1:-1:-1;8518:13:0;8612:15;;;8648:4;8641:15;8695:4;8679:21;;;8293:149::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2360:328::-;2437:6;2445;2453;2506:2;2494:9;2485:7;2481:23;2477:32;2474:52;;;2522:1;2519;2512:12;2474:52;2545:29;2564:9;2545:29;:::i;:::-;2535:39;;2593:38;2627:2;2616:9;2612:18;2593:38;:::i;:::-;2583:48;;2678:2;2667:9;2663:18;2650:32;2640:42;;2360:328;;;;;:::o;2693:592::-;2764:6;2772;2825:2;2813:9;2804:7;2800:23;2796:32;2793:52;;;2841:1;2838;2831:12;2793:52;2881:9;2868:23;2910:18;2951:2;2943:6;2940:14;2937:34;;;2967:1;2964;2957:12;2937:34;3005:6;2994:9;2990:22;2980:32;;3050:7;3043:4;3039:2;3035:13;3031:27;3021:55;;3072:1;3069;3062:12;3021:55;3112:2;3099:16;3138:2;3130:6;3127:14;3124:34;;;3154:1;3151;3144:12;3124:34;3199:7;3194:2;3185:6;3181:2;3177:15;3173:24;3170:37;3167:57;;;3220:1;3217;3210:12;3167:57;3251:2;3243:11;;;;;3273:6;;-1:-1:-1;2693:592:1;;-1:-1:-1;;;;2693:592:1:o;3290:186::-;3349:6;3402:2;3390:9;3381:7;3377:23;3373:32;3370:52;;;3418:1;3415;3408:12;3370:52;3441:29;3460:9;3441:29;:::i;3666:347::-;3731:6;3739;3792:2;3780:9;3771:7;3767:23;3763:32;3760:52;;;3808:1;3805;3798:12;3760:52;3831:29;3850:9;3831:29;:::i;:::-;3821:39;;3910:2;3899:9;3895:18;3882:32;3957:5;3950:13;3943:21;3936:5;3933:32;3923:60;;3979:1;3976;3969:12;3923:60;4002:5;3992:15;;;3666:347;;;;;:::o;4018:127::-;4079:10;4074:3;4070:20;4067:1;4060:31;4110:4;4107:1;4100:15;4134:4;4131:1;4124:15;4150:275;4221:2;4215:9;4286:2;4267:13;;-1:-1:-1;;4263:27:1;4251:40;;4321:18;4306:34;;4342:22;;;4303:62;4300:88;;;4368:18;;:::i;:::-;4404:2;4397:22;4150:275;;-1:-1:-1;4150:275:1:o;4430:946::-;4514:6;4545:2;4588;4576:9;4567:7;4563:23;4559:32;4556:52;;;4604:1;4601;4594:12;4556:52;4644:9;4631:23;4673:18;4714:2;4706:6;4703:14;4700:34;;;4730:1;4727;4720:12;4700:34;4768:6;4757:9;4753:22;4743:32;;4813:7;4806:4;4802:2;4798:13;4794:27;4784:55;;4835:1;4832;4825:12;4784:55;4871:2;4858:16;4893:2;4889;4886:10;4883:36;;;4899:18;;:::i;:::-;4945:2;4942:1;4938:10;4928:20;;4968:28;4992:2;4988;4984:11;4968:28;:::i;:::-;5030:15;;;5100:11;;;5096:20;;;5061:12;;;;5128:19;;;5125:39;;;5160:1;5157;5150:12;5125:39;5184:11;;;;5204:142;5220:6;5215:3;5212:15;5204:142;;;5286:17;;5274:30;;5237:12;;;;5324;;;;5204:142;;;5365:5;4430:946;-1:-1:-1;;;;;;;;4430:946:1:o;5381:980::-;5476:6;5484;5492;5500;5553:3;5541:9;5532:7;5528:23;5524:33;5521:53;;;5570:1;5567;5560:12;5521:53;5593:29;5612:9;5593:29;:::i;:::-;5583:39;;5641:2;5662:38;5696:2;5685:9;5681:18;5662:38;:::i;:::-;5652:48;;5747:2;5736:9;5732:18;5719:32;5709:42;;5802:2;5791:9;5787:18;5774:32;5825:18;5866:2;5858:6;5855:14;5852:34;;;5882:1;5879;5872:12;5852:34;5920:6;5909:9;5905:22;5895:32;;5965:7;5958:4;5954:2;5950:13;5946:27;5936:55;;5987:1;5984;5977:12;5936:55;6023:2;6010:16;6045:2;6041;6038:10;6035:36;;;6051:18;;:::i;:::-;6093:53;6136:2;6117:13;;-1:-1:-1;;6113:27:1;6109:36;;6093:53;:::i;:::-;6080:66;;6169:2;6162:5;6155:17;6209:7;6204:2;6199;6195;6191:11;6187:20;6184:33;6181:53;;;6230:1;6227;6220:12;6181:53;6285:2;6280;6276;6272:11;6267:2;6260:5;6256:14;6243:45;6329:1;6324:2;6319;6312:5;6308:14;6304:23;6297:34;;6350:5;6340:15;;;;;5381:980;;;;;;;:::o;6548:260::-;6616:6;6624;6677:2;6665:9;6656:7;6652:23;6648:32;6645:52;;;6693:1;6690;6683:12;6645:52;6716:29;6735:9;6716:29;:::i;:::-;6706:39;;6764:38;6798:2;6787:9;6783:18;6764:38;:::i;:::-;6754:48;;6548:260;;;;;:::o;6813:380::-;6892:1;6888:12;;;;6935;;;6956:61;;7010:4;7002:6;6998:17;6988:27;;6956:61;7063:2;7055:6;7052:14;7032:18;7029:38;7026:161;;7109:10;7104:3;7100:20;7097:1;7090:31;7144:4;7141:1;7134:15;7172:4;7169:1;7162:15;7026:161;;6813:380;;;:::o;7551:127::-;7612:10;7607:3;7603:20;7600:1;7593:31;7643:4;7640:1;7633:15;7667:4;7664:1;7657:15;7683:125;7748:9;;;7769:10;;;7766:36;;;7782:18;;:::i;7813:342::-;8015:2;7997:21;;;8054:2;8034:18;;;8027:30;-1:-1:-1;;;8088:2:1;8073:18;;8066:48;8146:2;8131:18;;7813:342::o;8840:545::-;8942:2;8937:3;8934:11;8931:448;;;8978:1;9003:5;8999:2;8992:17;9048:4;9044:2;9034:19;9118:2;9106:10;9102:19;9099:1;9095:27;9089:4;9085:38;9154:4;9142:10;9139:20;9136:47;;;-1:-1:-1;9177:4:1;9136:47;9232:2;9227:3;9223:12;9220:1;9216:20;9210:4;9206:31;9196:41;;9287:82;9305:2;9298:5;9295:13;9287:82;;;9350:17;;;9331:1;9320:13;9287:82;;9561:1206;9685:18;9680:3;9677:27;9674:53;;;9707:18;;:::i;:::-;9736:94;9826:3;9786:38;9818:4;9812:11;9786:38;:::i;:::-;9780:4;9736:94;:::i;:::-;9856:1;9881:2;9876:3;9873:11;9898:1;9893:616;;;;10553:1;10570:3;10567:93;;;-1:-1:-1;10626:19:1;;;10613:33;10567:93;-1:-1:-1;;9518:1:1;9514:11;;;9510:24;9506:29;9496:40;9542:1;9538:11;;;9493:57;10673:78;;9866:895;;9893:616;8787:1;8780:14;;;8824:4;8811:18;;-1:-1:-1;;9929:17:1;;;10030:9;10052:229;10066:7;10063:1;10060:14;10052:229;;;10155:19;;;10142:33;10127:49;;10262:4;10247:20;;;;10215:1;10203:14;;;;10082:12;10052:229;;;10056:3;10309;10300:7;10297:16;10294:159;;;10433:1;10429:6;10423:3;10417;10414:1;10410:11;10406:21;10402:34;10398:39;10385:9;10380:3;10376:19;10363:33;10359:79;10351:6;10344:95;10294:159;;;10496:1;10490:3;10487:1;10483:11;10479:19;10473:4;10466:33;9866:895;;;9561:1206;;;:::o;11701:496::-;11880:3;11918:6;11912:13;11934:66;11993:6;11988:3;11981:4;11973:6;11969:17;11934:66;:::i;:::-;12063:13;;12022:16;;;;12085:70;12063:13;12022:16;12132:4;12120:17;;12085:70;:::i;:::-;12171:20;;11701:496;-1:-1:-1;;;;11701:496:1:o;12970:489::-;-1:-1:-1;;;;;13239:15:1;;;13221:34;;13291:15;;13286:2;13271:18;;13264:43;13338:2;13323:18;;13316:34;;;13386:3;13381:2;13366:18;;13359:31;;;13164:4;;13407:46;;13433:19;;13425:6;13407:46;:::i;:::-;13399:54;12970:489;-1:-1:-1;;;;;;12970:489:1:o;13464:249::-;13533:6;13586:2;13574:9;13565:7;13561:23;13557:32;13554:52;;;13602:1;13599;13592:12;13554:52;13634:9;13628:16;13653:30;13677:5;13653:30;:::i;13718:127::-;13779:10;13774:3;13770:20;13767:1;13760:31;13810:4;13807:1;13800:15;13834:4;13831:1;13824:15;13850:135;13889:3;13910:17;;;13907:43;;13930:18;;:::i;:::-;-1:-1:-1;13977:1:1;13966:13;;13850:135::o
Swarm Source
ipfs://eeecdbf367056ee4ba803cb2e433897310aaf73f5520929725bc411bdcc70a99
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.