Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
293 OMUSHA
Holders
123
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 OMUSHALoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
OnnaMusha
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * 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. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ 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 simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _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} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _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 sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _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}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _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: IOperatorFilterRegistry.sol pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); } // File: OperatorFilterer.sol pragma solidity ^0.8.13; contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry constant operatorFilterRegistry = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(operatorFilterRegistry).code.length > 0) { if (subscribe) { operatorFilterRegistry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { operatorFilterRegistry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { operatorFilterRegistry.register(address(this)); } } } } modifier onlyAllowedOperator() virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(operatorFilterRegistry).code.length > 0) { if (!operatorFilterRegistry.isOperatorAllowed(address(this), msg.sender)) { revert OperatorNotAllowed(msg.sender); } } _; } } // File: DefaultOperatorFilterer.sol pragma solidity ^0.8.13; contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} } // File: OnnaMusha.sol pragma solidity ^0.8.13; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * 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(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // IERC165 // ============================== /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================== // IERC721 // ============================== /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // IERC721Metadata // ============================== /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } pragma solidity ^0.8.4; /** * @dev Interface of an ERC721AQueryable compliant contract. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); } pragma solidity ^0.8.4; /** * @dev Interface of an ERC721ABurnable compliant contract. */ interface IERC721ABurnable is IERC721A { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) external; } pragma solidity ^0.8.4; /** * @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; } } pragma solidity ^0.8.4; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } pragma solidity ^0.8.4; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } pragma solidity ^0.8.4; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to `_startTokenId()` unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxillary 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 auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; assembly {// Cast aux without masking. auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; return ownership; } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Casts the address to uint256 without masking. */ function _addressToUint256(address value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev Casts the boolean to uint256 without branching. */ function _boolToUint256(bool value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = address(uint160(_packedOwnershipOf(tokenId))); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _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] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.code.length != 0) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @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. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _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] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // 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] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_NEXT_INITIALIZED; // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); if (approvalCheck) { bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // 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] = _addressToUint256(from) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_BURNED | BITMASK_NEXT_INITIALIZED; // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function _toString(uint256 value) internal pure returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } {// Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } } pragma solidity ^0.8.4; /** * @title ERC721A Burnable Token * @dev ERC721A Token that can be irreversibly burned (destroyed). */ abstract contract ERC721ABurnable is ERC721A, IERC721ABurnable { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual override { _burn(tokenId, true); } } pragma solidity ^0.8.4; /** * @title ERC721A Queryable * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) public view override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } } pragma solidity ^0.8.4; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } } pragma solidity ^0.8.4; contract OnnaMusha is ERC721AQueryable, ERC721ABurnable, Ownable, DefaultOperatorFilterer { using EnumerableSet for EnumerableSet.UintSet; uint256 public constant MAX_SUPPLY = 777; uint256 public maxByWallet = 10; mapping(address => uint256) public mintedByWallet; mapping(address => uint256) public wlMintedByWallet; // 0:close | 1:open uint256 public saleState = 0; bool public collectMarketing = true; //baseURI string public baseURI; //uriSuffix string public uriSuffix; bytes32 private root = 0x5e46ce5c1eb9cfddcce5e3a5290d567dd5f7034555bdfd6bc697cdae17de47f7; constructor( string memory name, string memory symbol, string memory baseURI_, string memory uriSuffix_ ) ERC721A(name, symbol) { baseURI = baseURI_; uriSuffix = uriSuffix_; } uint256 public MINT_PRICE = .005 ether; function verify( bytes32[] memory proof, address addr, uint256 amount ) internal view returns(bool) { bytes32 leaf = keccak256(bytes.concat(keccak256(abi.encode(addr, amount)))); require(MerkleProof.verify(proof, root, leaf), "Invalid proof"); return true; } /******************** PUBLIC ********************/ function mint(uint256 amount) external payable { require(msg.sender == tx.origin, "not allowed"); require(saleState == 2, "Sale is closed!"); require(_totalMinted() + amount <= MAX_SUPPLY, "Exceed MAX_SUPPLY"); require(amount > 0, "Amount can't be 0"); require(amount + mintedByWallet[msg.sender] <= maxByWallet, "Exceed maxByWallet"); if (collectMarketing) { require(amount * MINT_PRICE <= msg.value, "Invalid payment amount"); } mintedByWallet[msg.sender] += amount; _safeMint(msg.sender, amount); } function mintwl(uint256 amount, uint256 allowance, bytes32[] memory proof) external payable { require(msg.sender == tx.origin, "not allowed"); require(saleState == 1, "Sale is closed!"); require(_totalMinted() + amount <= MAX_SUPPLY, "Exceed MAX_SUPPLY"); require(amount > 0, "Amount can't be 0"); require(verify(proof, msg.sender, allowance),"Not Whitelisted"); require(amount + wlMintedByWallet[msg.sender] <= allowance, "Exceed maxByWallet"); wlMintedByWallet[msg.sender] += amount; _safeMint(msg.sender, amount); } /******************** OVERRIDES ********************/ function _startTokenId() internal view virtual override returns (uint256) { return 1; } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function tokenURI(uint256 tokenId) public view virtual override(ERC721A, IERC721A) returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); if (bytes(baseURI).length == 0) { return _toString(tokenId); } return string(abi.encodePacked(baseURI, _toString(tokenId), uriSuffix)); } function transferFrom(address from, address to, uint256 tokenId) public override(ERC721A, IERC721A) onlyAllowedOperator { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public override(ERC721A, IERC721A) onlyAllowedOperator { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public override(ERC721A, IERC721A) onlyAllowedOperator { super.safeTransferFrom(from, to, tokenId, data); } /******************** OWNER ********************/ /// @notice Set baseURI. /// @param newBaseURI New baseURI. /// @param newUriSuffix New uriSuffix. function setBaseURI(string memory newBaseURI, string memory newUriSuffix) external onlyOwner { baseURI = newBaseURI; uriSuffix = newUriSuffix; } /// @notice Set saleState. /// @param newSaleState New sale state. function setSaleState(uint256 newSaleState) external onlyOwner { saleState = newSaleState; } /// @notice Set collectMarketing. /// @param newCollectMarketing New collect marketing flag. function setCollectMarketing(bool newCollectMarketing) external onlyOwner { collectMarketing = newCollectMarketing; } /// @notice Set maxByWallet. /// @param newMaxByWallet New max by wallet function setMaxByWallet(uint256 newMaxByWallet) external onlyOwner { maxByWallet = newMaxByWallet; } /******************** ALPHA MINT ********************/ function alphaMint(address[] calldata addresses, uint256[] calldata count) external onlyOwner { require(saleState == 0, "sale is open!"); require(addresses.length == count.length, "mismatching lengths!"); for (uint256 i; i < addresses.length; i++) { _safeMint(addresses[i], count[i]); } require(_totalMinted() <= MAX_SUPPLY, "Exceed MAX_SUPPLY"); } function setPrice(uint256 _mintPrice) external onlyOwner { MINT_PRICE = _mintPrice; } function setRoot(bytes32 _root) external onlyOwner { root = _root; } function withdraw() external onlyOwner { payable(owner()).transfer(address(this).balance); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseURI_","type":"string"},{"internalType":"string","name":"uriSuffix_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","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":"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":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"count","type":"uint256[]"}],"name":"alphaMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectMarketing","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxByWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedByWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintwl","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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":[],"name":"saleState","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"},{"internalType":"string","name":"newUriSuffix","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newCollectMarketing","type":"bool"}],"name":"setCollectMarketing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxByWallet","type":"uint256"}],"name":"setMaxByWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newSaleState","type":"uint256"}],"name":"setSaleState","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wlMintedByWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052600a6009556000600c55600d805460ff191660011790557f5e46ce5c1eb9cfddcce5e3a5290d567dd5f7034555bdfd6bc697cdae17de47f76010556611c37937e080006011553480156200005757600080fd5b50604051620030d1380380620030d18339810160408190526200007a9162000416565b733cc6cdda760b79bafa08df41ecfa224f810dceb6600185858160029080519060200190620000ab929190620002a3565b508051620000c1906003906020840190620002a3565b5050600160005550620000d43362000251565b6daaeb6d7670e522a718067333cd4e3b15620002195780156200016757604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200014857600080fd5b505af11580156200015d573d6000803e3d6000fd5b5050505062000219565b6001600160a01b03821615620001b85760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200012d565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001ff57600080fd5b505af115801562000214573d6000803e3d6000fd5b505050505b505081516200023090600e906020850190620002a3565b5080516200024690600f906020840190620002a3565b50505050506200050b565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620002b190620004cf565b90600052602060002090601f016020900481019282620002d5576000855562000320565b82601f10620002f057805160ff191683800117855562000320565b8280016001018555821562000320579182015b828111156200032057825182559160200191906001019062000303565b506200032e92915062000332565b5090565b5b808211156200032e576000815560010162000333565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200037157600080fd5b81516001600160401b03808211156200038e576200038e62000349565b604051601f8301601f19908116603f01168101908282118183101715620003b957620003b962000349565b81604052838152602092508683858801011115620003d657600080fd5b600091505b83821015620003fa5785820183015181830184015290820190620003db565b838211156200040c5760008385830101525b9695505050505050565b600080600080608085870312156200042d57600080fd5b84516001600160401b03808211156200044557600080fd5b62000453888389016200035f565b955060208701519150808211156200046a57600080fd5b62000478888389016200035f565b945060408701519150808211156200048f57600080fd5b6200049d888389016200035f565b93506060870151915080821115620004b457600080fd5b50620004c3878288016200035f565b91505092959194509250565b600181811c90821680620004e457607f821691505b6020821081036200050557634e487b7160e01b600052602260045260246000fd5b50919050565b612bb6806200051b6000396000f3fe6080604052600436106102465760003560e01c80636790a9de11610139578063a0712d68116100b6578063c87b56dd1161007a578063c87b56dd146106b4578063da3eab0e146106d4578063dab5f340146106e7578063e985e9c514610707578063f09a03c014610727578063f2fde38b1461074757600080fd5b8063a0712d681461061e578063a22cb46514610631578063b88d4fde14610651578063c002d23d14610671578063c23dc68f1461068757600080fd5b80638da5cb5b116100fd5780638da5cb5b1461059157806391b7f5ed146105af5780639434b805146105cf57806395d89b41146105e957806399a2557a146105fe57600080fd5b80636790a9de146104fa5780636c0360eb1461051a57806370a082311461052f578063715018a61461054f5780638462151c1461056457600080fd5b80632e067421116101c757806342966c681161018b57806342966c68146104625780635503a0e8146104825780635bbb217714610497578063603f4d52146104c45780636352211e146104da57600080fd5b80632e067421146103e157806332cb6b0c1461040157806334ecc70a146104175780633ccfd60b1461042d57806342842e0e1461044257600080fd5b80630d7581111161020e5780630d7581111461031c57806317d985141461035757806318160ddd1461037757806323b872dd146103945780632b1e2cb5146103b457600080fd5b806301ffc9a71461024b57806306fdde0314610280578063081812fc146102a2578063084c4088146102da578063095ea7b3146102fc575b600080fd5b34801561025757600080fd5b5061026b610266366004612287565b610767565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b506102956107b9565b60405161027791906122fc565b3480156102ae57600080fd5b506102c26102bd36600461230f565b61084b565b6040516001600160a01b039091168152602001610277565b3480156102e657600080fd5b506102fa6102f536600461230f565b61088f565b005b34801561030857600080fd5b506102fa610317366004612344565b6108c7565b34801561032857600080fd5b5061034961033736600461236e565b600a6020526000908152604090205481565b604051908152602001610277565b34801561036357600080fd5b506102fa610372366004612397565b610999565b34801561038357600080fd5b506001546000540360001901610349565b3480156103a057600080fd5b506102fa6103af3660046123b4565b6109d6565b3480156103c057600080fd5b506103496103cf36600461236e565b600b6020526000908152604090205481565b3480156103ed57600080fd5b506102fa6103fc36600461230f565b610a8f565b34801561040d57600080fd5b5061034961030981565b34801561042357600080fd5b5061034960095481565b34801561043957600080fd5b506102fa610abe565b34801561044e57600080fd5b506102fa61045d3660046123b4565b610b24565b34801561046e57600080fd5b506102fa61047d36600461230f565b610bd8565b34801561048e57600080fd5b50610295610be3565b3480156104a357600080fd5b506104b76104b2366004612459565b610c71565b60405161027791906124ee565b3480156104d057600080fd5b50610349600c5481565b3480156104e657600080fd5b506102c26104f536600461230f565b610d37565b34801561050657600080fd5b506102fa6105153660046125cf565b610d42565b34801561052657600080fd5b50610295610d93565b34801561053b57600080fd5b5061034961054a36600461236e565b610da0565b34801561055b57600080fd5b506102fa610dee565b34801561057057600080fd5b5061058461057f36600461236e565b610e24565b6040516102779190612632565b34801561059d57600080fd5b506008546001600160a01b03166102c2565b3480156105bb57600080fd5b506102fa6105ca36600461230f565b610f25565b3480156105db57600080fd5b50600d5461026b9060ff1681565b3480156105f557600080fd5b50610295610f54565b34801561060a57600080fd5b5061058461061936600461266a565b610f63565b6102fa61062c36600461230f565b6110ea565b34801561063d57600080fd5b506102fa61064c36600461269d565b6112d8565b34801561065d57600080fd5b506102fa61066c3660046126d4565b61136d565b34801561067d57600080fd5b5061034960115481565b34801561069357600080fd5b506106a76106a236600461230f565b611428565b604051610277919061274f565b3480156106c057600080fd5b506102956106cf36600461230f565b61149d565b6102fa6106e2366004612784565b611519565b3480156106f357600080fd5b506102fa61070236600461230f565b6116ee565b34801561071357600080fd5b5061026b610722366004612829565b61171d565b34801561073357600080fd5b506102fa6107423660046128a7565b61174b565b34801561075357600080fd5b506102fa61076236600461236e565b61188f565b60006301ffc9a760e01b6001600160e01b03198316148061079857506380ac58cd60e01b6001600160e01b03198316145b806107b35750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546107c890612912565b80601f01602080910402602001604051908101604052809291908181526020018280546107f490612912565b80156108415780601f1061081657610100808354040283529160200191610841565b820191906000526020600020905b81548152906001019060200180831161082457829003601f168201915b5050505050905090565b600061085682611927565b610873576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6008546001600160a01b031633146108c25760405162461bcd60e51b81526004016108b99061294c565b60405180910390fd5b600c55565b60006108d28261195c565b9050806001600160a01b0316836001600160a01b0316036109065760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161461093d57610920813361171d565b61093d576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6008546001600160a01b031633146109c35760405162461bcd60e51b81526004016108b99061294c565b600d805460ff1916911515919091179055565b6daaeb6d7670e522a718067333cd4e3b15610a7f57604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af1158015610a3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a609190612981565b610a7f57604051633b79c77360e21b81523360048201526024016108b9565b610a8a8383836119cb565b505050565b6008546001600160a01b03163314610ab95760405162461bcd60e51b81526004016108b99061294c565b600955565b6008546001600160a01b03163314610ae85760405162461bcd60e51b81526004016108b99061294c565b6008546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610b21573d6000803e3d6000fd5b50565b6daaeb6d7670e522a718067333cd4e3b15610bcd57604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af1158015610b8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bae9190612981565b610bcd57604051633b79c77360e21b81523360048201526024016108b9565b610a8a8383836119d6565b610b218160016119f1565b600f8054610bf090612912565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1c90612912565b8015610c695780601f10610c3e57610100808354040283529160200191610c69565b820191906000526020600020905b815481529060010190602001808311610c4c57829003601f168201915b505050505081565b80516060906000816001600160401b03811115610c9057610c906123f0565b604051908082528060200260200182016040528015610cdb57816020015b6040805160608101825260008082526020808301829052928201528252600019909201910181610cae5790505b50905060005b828114610d2f57610d0a858281518110610cfd57610cfd61299e565b6020026020010151611428565b828281518110610d1c57610d1c61299e565b6020908102919091010152600101610ce1565b509392505050565b60006107b38261195c565b6008546001600160a01b03163314610d6c5760405162461bcd60e51b81526004016108b99061294c565b8151610d7f90600e9060208501906121d8565b508051610a8a90600f9060208401906121d8565b600e8054610bf090612912565b60006001600160a01b038216610dc9576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b03163314610e185760405162461bcd60e51b81526004016108b99061294c565b610e226000611b37565b565b60606000806000610e3485610da0565b90506000816001600160401b03811115610e5057610e506123f0565b604051908082528060200260200182016040528015610e79578160200160208202803683370190505b509050610e9f604080516060810182526000808252602082018190529181019190915290565b60015b838614610f1957610eb281611b89565b91508160400151610f115781516001600160a01b031615610ed257815194505b876001600160a01b0316856001600160a01b031603610f115780838780600101985081518110610f0457610f0461299e565b6020026020010181815250505b600101610ea2565b50909695505050505050565b6008546001600160a01b03163314610f4f5760405162461bcd60e51b81526004016108b99061294c565b601155565b6060600380546107c890612912565b6060818310610f8557604051631960ccad60e11b815260040160405180910390fd5b600080610f9160005490565b90506001851015610fa157600194505b80841115610fad578093505b6000610fb887610da0565b905084861015610fd75785850381811015610fd1578091505b50610fdb565b5060005b6000816001600160401b03811115610ff557610ff56123f0565b60405190808252806020026020018201604052801561101e578160200160208202803683370190505b509050816000036110345793506110e392505050565b600061103f88611428565b905060008160400151611050575080515b885b8881141580156110625750848714155b156110d75761107081611b89565b925082604001516110cf5782516001600160a01b03161561109057825191505b8a6001600160a01b0316826001600160a01b0316036110cf57808488806001019950815181106110c2576110c261299e565b6020026020010181815250505b600101611052565b50505092835250909150505b9392505050565b3332146111275760405162461bcd60e51b815260206004820152600b60248201526a1b9bdd08185b1b1bddd95960aa1b60448201526064016108b9565b600c5460021461116b5760405162461bcd60e51b815260206004820152600f60248201526e53616c6520697320636c6f7365642160881b60448201526064016108b9565b6103098161117c6000546000190190565b61118691906129ca565b11156111a45760405162461bcd60e51b81526004016108b9906129e2565b600081116111e85760405162461bcd60e51b81526020600482015260116024820152700416d6f756e742063616e2774206265203607c1b60448201526064016108b9565b600954336000908152600a602052604090205461120590836129ca565b11156112485760405162461bcd60e51b8152602060048201526012602482015271115e18d95959081b585e109e55d85b1b195d60721b60448201526064016108b9565b600d5460ff16156112a95734601154826112629190612a0d565b11156112a95760405162461bcd60e51b8152602060048201526016602482015275125b9d985b1a59081c185e5b595b9d08185b5bdd5b9d60521b60448201526064016108b9565b336000908152600a6020526040812080548392906112c89084906129ca565b90915550610b2190503382611bbe565b336001600160a01b038316036113015760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6daaeb6d7670e522a718067333cd4e3b1561141657604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af11580156113d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113f79190612981565b61141657604051633b79c77360e21b81523360048201526024016108b9565b61142284848484611bdc565b50505050565b6040805160608082018352600080835260208084018290528385018290528451928301855281835282018190529281019290925290600183108061146e57506000548310155b156114795792915050565b61148283611b89565b90508060400151156114945792915050565b6110e383611c20565b60606114a882611927565b6114c557604051630a14c4b560e41b815260040160405180910390fd5b600e80546114d290612912565b90506000036114e4576107b382611c4e565b600e6114ef83611c4e565b600f60405160200161150393929190612ac5565b6040516020818303038152906040529050919050565b3332146115565760405162461bcd60e51b815260206004820152600b60248201526a1b9bdd08185b1b1bddd95960aa1b60448201526064016108b9565b600c5460011461159a5760405162461bcd60e51b815260206004820152600f60248201526e53616c6520697320636c6f7365642160881b60448201526064016108b9565b610309836115ab6000546000190190565b6115b591906129ca565b11156115d35760405162461bcd60e51b81526004016108b9906129e2565b600083116116175760405162461bcd60e51b81526020600482015260116024820152700416d6f756e742063616e2774206265203607c1b60448201526064016108b9565b611622813384611c9d565b6116605760405162461bcd60e51b815260206004820152600f60248201526e139bdd0815da1a5d195b1a5cdd1959608a1b60448201526064016108b9565b336000908152600b6020526040902054829061167c90856129ca565b11156116bf5760405162461bcd60e51b8152602060048201526012602482015271115e18d95959081b585e109e55d85b1b195d60721b60448201526064016108b9565b336000908152600b6020526040812080548592906116de9084906129ca565b90915550610a8a90503384611bbe565b6008546001600160a01b031633146117185760405162461bcd60e51b81526004016108b99061294c565b601055565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6008546001600160a01b031633146117755760405162461bcd60e51b81526004016108b99061294c565b600c54156117b55760405162461bcd60e51b815260206004820152600d60248201526c73616c65206973206f70656e2160981b60448201526064016108b9565b8281146117fb5760405162461bcd60e51b81526020600482015260146024820152736d69736d61746368696e67206c656e677468732160601b60448201526064016108b9565b60005b838110156118605761184e85858381811061181b5761181b61299e565b9050602002016020810190611830919061236e565b8484848181106118425761184261299e565b90506020020135611bbe565b8061185881612aed565b9150506117fe565b506103096118716000546000190190565b11156114225760405162461bcd60e51b81526004016108b9906129e2565b6008546001600160a01b031633146118b95760405162461bcd60e51b81526004016108b99061294c565b6001600160a01b03811661191e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108b9565b610b2181611b37565b60008160011115801561193b575060005482105b80156107b3575050600090815260046020526040902054600160e01b161590565b600081806001116119b2576000548110156119b25760008181526004602052604081205490600160e01b821690036119b0575b806000036110e357506000190160008181526004602052604090205461198f565b505b604051636f96cda160e11b815260040160405180910390fd5b610a8a838383611d47565b610a8a8383836040518060200160405280600081525061136d565b60006119fc8361195c565b9050808215611a60576000336001600160a01b0383161480611a235750611a23823361171d565b80611a3e575033611a338661084b565b6001600160a01b0316145b905080611a5e57604051632ce44b5f60e11b815260040160405180910390fd5b505b600084815260066020908152604080832080546001600160a01b03191690556001600160a01b03841683526005825280832080546fffffffffffffffffffffffffffffffff01905586835260049091528120600360e01b4260a01b8417179055600160e11b83169003611b0357600184016000818152600460205260408120549003611b01576000548114611b015760008181526004602052604090208390555b505b60405184906000906001600160a01b03841690600080516020612b61833981519152908390a4505060018054810190555050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60408051606081018252600080825260208201819052918101919091526000828152600460205260409020546107b390611edc565b611bd8828260405180602001604052806000815250611f16565b5050565b611be7848484611d47565b6001600160a01b0383163b1561142257611c0384848484612066565b611422576040516368d2bf6b60e11b815260040160405180910390fd5b60408051606081018252600080825260208201819052918101919091526107b3611c498361195c565b611edc565b604080516080810191829052607f0190826030600a8206018353600a90045b8015611c8b57600183039250600a81066030018353600a9004611c6d565b50819003601f19909101908152919050565b604080516001600160a01b0384166020820152908101829052600090819060600160408051601f1981840301815282825280516020918201209083015201604051602081830303815290604052805190602001209050611d008560105483612151565b611d3c5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b60448201526064016108b9565b506001949350505050565b6000611d528261195c565b9050836001600160a01b0316816001600160a01b031614611d855760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611da35750611da3853361171d565b80611dbe575033611db38461084b565b6001600160a01b0316145b905080611dde57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611e0557604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091528120600160e11b4260a01b8717811790915583169003611ea657600183016000818152600460205260408120549003611ea4576000548114611ea45760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b0316600080516020612b6183398151915260405160405180910390a45050505050565b604080516060810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b90921615159082015290565b6000546001600160a01b038416611f3f57604051622e076360e81b815260040160405180910390fd5b82600003611f605760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15612023575b60405182906001600160a01b03881690600090600080516020612b61833981519152908290a4611fec6000878480600101955087612066565b612009576040516368d2bf6b60e11b815260040160405180910390fd5b808210611fb357826000541461201e57600080fd5b612056565b5b6040516001830192906001600160a01b03881690600090600080516020612b61833981519152908290a4808210612024575b5060009081556114229085838684565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061209b903390899088908890600401612b06565b6020604051808303816000875af19250505080156120d6575060408051601f3d908101601f191682019092526120d391810190612b43565b60015b612134573d808015612104576040519150601f19603f3d011682016040523d82523d6000602084013e612109565b606091505b50805160000361212c576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60008261215e8584612167565b14949350505050565b600081815b8451811015610d2f576121988286838151811061218b5761218b61299e565b60200260200101516121ac565b9150806121a481612aed565b91505061216c565b60008183106121c85760008281526020849052604090206110e3565b5060009182526020526040902090565b8280546121e490612912565b90600052602060002090601f016020900481019282612206576000855561224c565b82601f1061221f57805160ff191683800117855561224c565b8280016001018555821561224c579182015b8281111561224c578251825591602001919060010190612231565b5061225892915061225c565b5090565b5b80821115612258576000815560010161225d565b6001600160e01b031981168114610b2157600080fd5b60006020828403121561229957600080fd5b81356110e381612271565b60005b838110156122bf5781810151838201526020016122a7565b838111156114225750506000910152565b600081518084526122e88160208601602086016122a4565b601f01601f19169290920160200192915050565b6020815260006110e360208301846122d0565b60006020828403121561232157600080fd5b5035919050565b80356001600160a01b038116811461233f57600080fd5b919050565b6000806040838503121561235757600080fd5b61236083612328565b946020939093013593505050565b60006020828403121561238057600080fd5b6110e382612328565b8015158114610b2157600080fd5b6000602082840312156123a957600080fd5b81356110e381612389565b6000806000606084860312156123c957600080fd5b6123d284612328565b92506123e060208501612328565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561242e5761242e6123f0565b604052919050565b60006001600160401b0382111561244f5761244f6123f0565b5060051b60200190565b6000602080838503121561246c57600080fd5b82356001600160401b0381111561248257600080fd5b8301601f8101851361249357600080fd5b80356124a66124a182612436565b612406565b81815260059190911b820183019083810190878311156124c557600080fd5b928401925b828410156124e3578335825292840192908401906124ca565b979650505050505050565b6020808252825182820181905260009190848201906040850190845b81811015610f195761254583855180516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b928401926060929092019160010161250a565b60006001600160401b03831115612571576125716123f0565b612584601f8401601f1916602001612406565b905082815283838301111561259857600080fd5b828260208301376000602084830101529392505050565b600082601f8301126125c057600080fd5b6110e383833560208501612558565b600080604083850312156125e257600080fd5b82356001600160401b03808211156125f957600080fd5b612605868387016125af565b9350602085013591508082111561261b57600080fd5b50612628858286016125af565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b81811015610f195783518352928401929184019160010161264e565b60008060006060848603121561267f57600080fd5b61268884612328565b95602085013595506040909401359392505050565b600080604083850312156126b057600080fd5b6126b983612328565b915060208301356126c981612389565b809150509250929050565b600080600080608085870312156126ea57600080fd5b6126f385612328565b935061270160208601612328565b92506040850135915060608501356001600160401b0381111561272357600080fd5b8501601f8101871361273457600080fd5b61274387823560208401612558565b91505092959194509250565b81516001600160a01b031681526020808301516001600160401b031690820152604080830151151590820152606081016107b3565b60008060006060848603121561279957600080fd5b83359250602080850135925060408501356001600160401b038111156127be57600080fd5b8501601f810187136127cf57600080fd5b80356127dd6124a182612436565b81815260059190911b820183019083810190898311156127fc57600080fd5b928401925b8284101561281a57833582529284019290840190612801565b80955050505050509250925092565b6000806040838503121561283c57600080fd5b61284583612328565b915061285360208401612328565b90509250929050565b60008083601f84011261286e57600080fd5b5081356001600160401b0381111561288557600080fd5b6020830191508360208260051b85010111156128a057600080fd5b9250929050565b600080600080604085870312156128bd57600080fd5b84356001600160401b03808211156128d457600080fd5b6128e08883890161285c565b909650945060208701359150808211156128f957600080fd5b506129068782880161285c565b95989497509550505050565b600181811c9082168061292657607f821691505b60208210810361294657634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561299357600080fd5b81516110e381612389565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156129dd576129dd6129b4565b500190565b602080825260119082015270457863656564204d41585f535550504c5960781b604082015260600190565b6000816000190483118215151615612a2757612a276129b4565b500290565b8054600090600181811c9080831680612a4657607f831692505b60208084108203612a6757634e487b7160e01b600052602260045260246000fd5b818015612a7b5760018114612a8c57612ab9565b60ff19861689528489019650612ab9565b60008881526020902060005b86811015612ab15781548b820152908501908301612a98565b505084890196505b50505050505092915050565b6000612ad18286612a2c565b8451612ae18183602089016122a4565b6124e381830186612a2c565b600060018201612aff57612aff6129b4565b5060010190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b39908301846122d0565b9695505050505050565b600060208284031215612b5557600080fd5b81516110e38161227156feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212208037313aa1a55a39b954e2dfcd209a56d4ef425a6c7aca849dfdf304c4a96d5264736f6c634300080d0033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000094f6e6e614d75736861000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064f4d555348410000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c68747470733a2f2f6d696e742e637962657273616d757261692e6172742f6170692f6d6574615f6f6e6e612f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102465760003560e01c80636790a9de11610139578063a0712d68116100b6578063c87b56dd1161007a578063c87b56dd146106b4578063da3eab0e146106d4578063dab5f340146106e7578063e985e9c514610707578063f09a03c014610727578063f2fde38b1461074757600080fd5b8063a0712d681461061e578063a22cb46514610631578063b88d4fde14610651578063c002d23d14610671578063c23dc68f1461068757600080fd5b80638da5cb5b116100fd5780638da5cb5b1461059157806391b7f5ed146105af5780639434b805146105cf57806395d89b41146105e957806399a2557a146105fe57600080fd5b80636790a9de146104fa5780636c0360eb1461051a57806370a082311461052f578063715018a61461054f5780638462151c1461056457600080fd5b80632e067421116101c757806342966c681161018b57806342966c68146104625780635503a0e8146104825780635bbb217714610497578063603f4d52146104c45780636352211e146104da57600080fd5b80632e067421146103e157806332cb6b0c1461040157806334ecc70a146104175780633ccfd60b1461042d57806342842e0e1461044257600080fd5b80630d7581111161020e5780630d7581111461031c57806317d985141461035757806318160ddd1461037757806323b872dd146103945780632b1e2cb5146103b457600080fd5b806301ffc9a71461024b57806306fdde0314610280578063081812fc146102a2578063084c4088146102da578063095ea7b3146102fc575b600080fd5b34801561025757600080fd5b5061026b610266366004612287565b610767565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b506102956107b9565b60405161027791906122fc565b3480156102ae57600080fd5b506102c26102bd36600461230f565b61084b565b6040516001600160a01b039091168152602001610277565b3480156102e657600080fd5b506102fa6102f536600461230f565b61088f565b005b34801561030857600080fd5b506102fa610317366004612344565b6108c7565b34801561032857600080fd5b5061034961033736600461236e565b600a6020526000908152604090205481565b604051908152602001610277565b34801561036357600080fd5b506102fa610372366004612397565b610999565b34801561038357600080fd5b506001546000540360001901610349565b3480156103a057600080fd5b506102fa6103af3660046123b4565b6109d6565b3480156103c057600080fd5b506103496103cf36600461236e565b600b6020526000908152604090205481565b3480156103ed57600080fd5b506102fa6103fc36600461230f565b610a8f565b34801561040d57600080fd5b5061034961030981565b34801561042357600080fd5b5061034960095481565b34801561043957600080fd5b506102fa610abe565b34801561044e57600080fd5b506102fa61045d3660046123b4565b610b24565b34801561046e57600080fd5b506102fa61047d36600461230f565b610bd8565b34801561048e57600080fd5b50610295610be3565b3480156104a357600080fd5b506104b76104b2366004612459565b610c71565b60405161027791906124ee565b3480156104d057600080fd5b50610349600c5481565b3480156104e657600080fd5b506102c26104f536600461230f565b610d37565b34801561050657600080fd5b506102fa6105153660046125cf565b610d42565b34801561052657600080fd5b50610295610d93565b34801561053b57600080fd5b5061034961054a36600461236e565b610da0565b34801561055b57600080fd5b506102fa610dee565b34801561057057600080fd5b5061058461057f36600461236e565b610e24565b6040516102779190612632565b34801561059d57600080fd5b506008546001600160a01b03166102c2565b3480156105bb57600080fd5b506102fa6105ca36600461230f565b610f25565b3480156105db57600080fd5b50600d5461026b9060ff1681565b3480156105f557600080fd5b50610295610f54565b34801561060a57600080fd5b5061058461061936600461266a565b610f63565b6102fa61062c36600461230f565b6110ea565b34801561063d57600080fd5b506102fa61064c36600461269d565b6112d8565b34801561065d57600080fd5b506102fa61066c3660046126d4565b61136d565b34801561067d57600080fd5b5061034960115481565b34801561069357600080fd5b506106a76106a236600461230f565b611428565b604051610277919061274f565b3480156106c057600080fd5b506102956106cf36600461230f565b61149d565b6102fa6106e2366004612784565b611519565b3480156106f357600080fd5b506102fa61070236600461230f565b6116ee565b34801561071357600080fd5b5061026b610722366004612829565b61171d565b34801561073357600080fd5b506102fa6107423660046128a7565b61174b565b34801561075357600080fd5b506102fa61076236600461236e565b61188f565b60006301ffc9a760e01b6001600160e01b03198316148061079857506380ac58cd60e01b6001600160e01b03198316145b806107b35750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546107c890612912565b80601f01602080910402602001604051908101604052809291908181526020018280546107f490612912565b80156108415780601f1061081657610100808354040283529160200191610841565b820191906000526020600020905b81548152906001019060200180831161082457829003601f168201915b5050505050905090565b600061085682611927565b610873576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6008546001600160a01b031633146108c25760405162461bcd60e51b81526004016108b99061294c565b60405180910390fd5b600c55565b60006108d28261195c565b9050806001600160a01b0316836001600160a01b0316036109065760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161461093d57610920813361171d565b61093d576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6008546001600160a01b031633146109c35760405162461bcd60e51b81526004016108b99061294c565b600d805460ff1916911515919091179055565b6daaeb6d7670e522a718067333cd4e3b15610a7f57604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af1158015610a3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a609190612981565b610a7f57604051633b79c77360e21b81523360048201526024016108b9565b610a8a8383836119cb565b505050565b6008546001600160a01b03163314610ab95760405162461bcd60e51b81526004016108b99061294c565b600955565b6008546001600160a01b03163314610ae85760405162461bcd60e51b81526004016108b99061294c565b6008546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610b21573d6000803e3d6000fd5b50565b6daaeb6d7670e522a718067333cd4e3b15610bcd57604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af1158015610b8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bae9190612981565b610bcd57604051633b79c77360e21b81523360048201526024016108b9565b610a8a8383836119d6565b610b218160016119f1565b600f8054610bf090612912565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1c90612912565b8015610c695780601f10610c3e57610100808354040283529160200191610c69565b820191906000526020600020905b815481529060010190602001808311610c4c57829003601f168201915b505050505081565b80516060906000816001600160401b03811115610c9057610c906123f0565b604051908082528060200260200182016040528015610cdb57816020015b6040805160608101825260008082526020808301829052928201528252600019909201910181610cae5790505b50905060005b828114610d2f57610d0a858281518110610cfd57610cfd61299e565b6020026020010151611428565b828281518110610d1c57610d1c61299e565b6020908102919091010152600101610ce1565b509392505050565b60006107b38261195c565b6008546001600160a01b03163314610d6c5760405162461bcd60e51b81526004016108b99061294c565b8151610d7f90600e9060208501906121d8565b508051610a8a90600f9060208401906121d8565b600e8054610bf090612912565b60006001600160a01b038216610dc9576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b03163314610e185760405162461bcd60e51b81526004016108b99061294c565b610e226000611b37565b565b60606000806000610e3485610da0565b90506000816001600160401b03811115610e5057610e506123f0565b604051908082528060200260200182016040528015610e79578160200160208202803683370190505b509050610e9f604080516060810182526000808252602082018190529181019190915290565b60015b838614610f1957610eb281611b89565b91508160400151610f115781516001600160a01b031615610ed257815194505b876001600160a01b0316856001600160a01b031603610f115780838780600101985081518110610f0457610f0461299e565b6020026020010181815250505b600101610ea2565b50909695505050505050565b6008546001600160a01b03163314610f4f5760405162461bcd60e51b81526004016108b99061294c565b601155565b6060600380546107c890612912565b6060818310610f8557604051631960ccad60e11b815260040160405180910390fd5b600080610f9160005490565b90506001851015610fa157600194505b80841115610fad578093505b6000610fb887610da0565b905084861015610fd75785850381811015610fd1578091505b50610fdb565b5060005b6000816001600160401b03811115610ff557610ff56123f0565b60405190808252806020026020018201604052801561101e578160200160208202803683370190505b509050816000036110345793506110e392505050565b600061103f88611428565b905060008160400151611050575080515b885b8881141580156110625750848714155b156110d75761107081611b89565b925082604001516110cf5782516001600160a01b03161561109057825191505b8a6001600160a01b0316826001600160a01b0316036110cf57808488806001019950815181106110c2576110c261299e565b6020026020010181815250505b600101611052565b50505092835250909150505b9392505050565b3332146111275760405162461bcd60e51b815260206004820152600b60248201526a1b9bdd08185b1b1bddd95960aa1b60448201526064016108b9565b600c5460021461116b5760405162461bcd60e51b815260206004820152600f60248201526e53616c6520697320636c6f7365642160881b60448201526064016108b9565b6103098161117c6000546000190190565b61118691906129ca565b11156111a45760405162461bcd60e51b81526004016108b9906129e2565b600081116111e85760405162461bcd60e51b81526020600482015260116024820152700416d6f756e742063616e2774206265203607c1b60448201526064016108b9565b600954336000908152600a602052604090205461120590836129ca565b11156112485760405162461bcd60e51b8152602060048201526012602482015271115e18d95959081b585e109e55d85b1b195d60721b60448201526064016108b9565b600d5460ff16156112a95734601154826112629190612a0d565b11156112a95760405162461bcd60e51b8152602060048201526016602482015275125b9d985b1a59081c185e5b595b9d08185b5bdd5b9d60521b60448201526064016108b9565b336000908152600a6020526040812080548392906112c89084906129ca565b90915550610b2190503382611bbe565b336001600160a01b038316036113015760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6daaeb6d7670e522a718067333cd4e3b1561141657604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af11580156113d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113f79190612981565b61141657604051633b79c77360e21b81523360048201526024016108b9565b61142284848484611bdc565b50505050565b6040805160608082018352600080835260208084018290528385018290528451928301855281835282018190529281019290925290600183108061146e57506000548310155b156114795792915050565b61148283611b89565b90508060400151156114945792915050565b6110e383611c20565b60606114a882611927565b6114c557604051630a14c4b560e41b815260040160405180910390fd5b600e80546114d290612912565b90506000036114e4576107b382611c4e565b600e6114ef83611c4e565b600f60405160200161150393929190612ac5565b6040516020818303038152906040529050919050565b3332146115565760405162461bcd60e51b815260206004820152600b60248201526a1b9bdd08185b1b1bddd95960aa1b60448201526064016108b9565b600c5460011461159a5760405162461bcd60e51b815260206004820152600f60248201526e53616c6520697320636c6f7365642160881b60448201526064016108b9565b610309836115ab6000546000190190565b6115b591906129ca565b11156115d35760405162461bcd60e51b81526004016108b9906129e2565b600083116116175760405162461bcd60e51b81526020600482015260116024820152700416d6f756e742063616e2774206265203607c1b60448201526064016108b9565b611622813384611c9d565b6116605760405162461bcd60e51b815260206004820152600f60248201526e139bdd0815da1a5d195b1a5cdd1959608a1b60448201526064016108b9565b336000908152600b6020526040902054829061167c90856129ca565b11156116bf5760405162461bcd60e51b8152602060048201526012602482015271115e18d95959081b585e109e55d85b1b195d60721b60448201526064016108b9565b336000908152600b6020526040812080548592906116de9084906129ca565b90915550610a8a90503384611bbe565b6008546001600160a01b031633146117185760405162461bcd60e51b81526004016108b99061294c565b601055565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6008546001600160a01b031633146117755760405162461bcd60e51b81526004016108b99061294c565b600c54156117b55760405162461bcd60e51b815260206004820152600d60248201526c73616c65206973206f70656e2160981b60448201526064016108b9565b8281146117fb5760405162461bcd60e51b81526020600482015260146024820152736d69736d61746368696e67206c656e677468732160601b60448201526064016108b9565b60005b838110156118605761184e85858381811061181b5761181b61299e565b9050602002016020810190611830919061236e565b8484848181106118425761184261299e565b90506020020135611bbe565b8061185881612aed565b9150506117fe565b506103096118716000546000190190565b11156114225760405162461bcd60e51b81526004016108b9906129e2565b6008546001600160a01b031633146118b95760405162461bcd60e51b81526004016108b99061294c565b6001600160a01b03811661191e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108b9565b610b2181611b37565b60008160011115801561193b575060005482105b80156107b3575050600090815260046020526040902054600160e01b161590565b600081806001116119b2576000548110156119b25760008181526004602052604081205490600160e01b821690036119b0575b806000036110e357506000190160008181526004602052604090205461198f565b505b604051636f96cda160e11b815260040160405180910390fd5b610a8a838383611d47565b610a8a8383836040518060200160405280600081525061136d565b60006119fc8361195c565b9050808215611a60576000336001600160a01b0383161480611a235750611a23823361171d565b80611a3e575033611a338661084b565b6001600160a01b0316145b905080611a5e57604051632ce44b5f60e11b815260040160405180910390fd5b505b600084815260066020908152604080832080546001600160a01b03191690556001600160a01b03841683526005825280832080546fffffffffffffffffffffffffffffffff01905586835260049091528120600360e01b4260a01b8417179055600160e11b83169003611b0357600184016000818152600460205260408120549003611b01576000548114611b015760008181526004602052604090208390555b505b60405184906000906001600160a01b03841690600080516020612b61833981519152908390a4505060018054810190555050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60408051606081018252600080825260208201819052918101919091526000828152600460205260409020546107b390611edc565b611bd8828260405180602001604052806000815250611f16565b5050565b611be7848484611d47565b6001600160a01b0383163b1561142257611c0384848484612066565b611422576040516368d2bf6b60e11b815260040160405180910390fd5b60408051606081018252600080825260208201819052918101919091526107b3611c498361195c565b611edc565b604080516080810191829052607f0190826030600a8206018353600a90045b8015611c8b57600183039250600a81066030018353600a9004611c6d565b50819003601f19909101908152919050565b604080516001600160a01b0384166020820152908101829052600090819060600160408051601f1981840301815282825280516020918201209083015201604051602081830303815290604052805190602001209050611d008560105483612151565b611d3c5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b60448201526064016108b9565b506001949350505050565b6000611d528261195c565b9050836001600160a01b0316816001600160a01b031614611d855760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611da35750611da3853361171d565b80611dbe575033611db38461084b565b6001600160a01b0316145b905080611dde57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611e0557604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091528120600160e11b4260a01b8717811790915583169003611ea657600183016000818152600460205260408120549003611ea4576000548114611ea45760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b0316600080516020612b6183398151915260405160405180910390a45050505050565b604080516060810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b90921615159082015290565b6000546001600160a01b038416611f3f57604051622e076360e81b815260040160405180910390fd5b82600003611f605760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15612023575b60405182906001600160a01b03881690600090600080516020612b61833981519152908290a4611fec6000878480600101955087612066565b612009576040516368d2bf6b60e11b815260040160405180910390fd5b808210611fb357826000541461201e57600080fd5b612056565b5b6040516001830192906001600160a01b03881690600090600080516020612b61833981519152908290a4808210612024575b5060009081556114229085838684565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061209b903390899088908890600401612b06565b6020604051808303816000875af19250505080156120d6575060408051601f3d908101601f191682019092526120d391810190612b43565b60015b612134573d808015612104576040519150601f19603f3d011682016040523d82523d6000602084013e612109565b606091505b50805160000361212c576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60008261215e8584612167565b14949350505050565b600081815b8451811015610d2f576121988286838151811061218b5761218b61299e565b60200260200101516121ac565b9150806121a481612aed565b91505061216c565b60008183106121c85760008281526020849052604090206110e3565b5060009182526020526040902090565b8280546121e490612912565b90600052602060002090601f016020900481019282612206576000855561224c565b82601f1061221f57805160ff191683800117855561224c565b8280016001018555821561224c579182015b8281111561224c578251825591602001919060010190612231565b5061225892915061225c565b5090565b5b80821115612258576000815560010161225d565b6001600160e01b031981168114610b2157600080fd5b60006020828403121561229957600080fd5b81356110e381612271565b60005b838110156122bf5781810151838201526020016122a7565b838111156114225750506000910152565b600081518084526122e88160208601602086016122a4565b601f01601f19169290920160200192915050565b6020815260006110e360208301846122d0565b60006020828403121561232157600080fd5b5035919050565b80356001600160a01b038116811461233f57600080fd5b919050565b6000806040838503121561235757600080fd5b61236083612328565b946020939093013593505050565b60006020828403121561238057600080fd5b6110e382612328565b8015158114610b2157600080fd5b6000602082840312156123a957600080fd5b81356110e381612389565b6000806000606084860312156123c957600080fd5b6123d284612328565b92506123e060208501612328565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561242e5761242e6123f0565b604052919050565b60006001600160401b0382111561244f5761244f6123f0565b5060051b60200190565b6000602080838503121561246c57600080fd5b82356001600160401b0381111561248257600080fd5b8301601f8101851361249357600080fd5b80356124a66124a182612436565b612406565b81815260059190911b820183019083810190878311156124c557600080fd5b928401925b828410156124e3578335825292840192908401906124ca565b979650505050505050565b6020808252825182820181905260009190848201906040850190845b81811015610f195761254583855180516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b928401926060929092019160010161250a565b60006001600160401b03831115612571576125716123f0565b612584601f8401601f1916602001612406565b905082815283838301111561259857600080fd5b828260208301376000602084830101529392505050565b600082601f8301126125c057600080fd5b6110e383833560208501612558565b600080604083850312156125e257600080fd5b82356001600160401b03808211156125f957600080fd5b612605868387016125af565b9350602085013591508082111561261b57600080fd5b50612628858286016125af565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b81811015610f195783518352928401929184019160010161264e565b60008060006060848603121561267f57600080fd5b61268884612328565b95602085013595506040909401359392505050565b600080604083850312156126b057600080fd5b6126b983612328565b915060208301356126c981612389565b809150509250929050565b600080600080608085870312156126ea57600080fd5b6126f385612328565b935061270160208601612328565b92506040850135915060608501356001600160401b0381111561272357600080fd5b8501601f8101871361273457600080fd5b61274387823560208401612558565b91505092959194509250565b81516001600160a01b031681526020808301516001600160401b031690820152604080830151151590820152606081016107b3565b60008060006060848603121561279957600080fd5b83359250602080850135925060408501356001600160401b038111156127be57600080fd5b8501601f810187136127cf57600080fd5b80356127dd6124a182612436565b81815260059190911b820183019083810190898311156127fc57600080fd5b928401925b8284101561281a57833582529284019290840190612801565b80955050505050509250925092565b6000806040838503121561283c57600080fd5b61284583612328565b915061285360208401612328565b90509250929050565b60008083601f84011261286e57600080fd5b5081356001600160401b0381111561288557600080fd5b6020830191508360208260051b85010111156128a057600080fd5b9250929050565b600080600080604085870312156128bd57600080fd5b84356001600160401b03808211156128d457600080fd5b6128e08883890161285c565b909650945060208701359150808211156128f957600080fd5b506129068782880161285c565b95989497509550505050565b600181811c9082168061292657607f821691505b60208210810361294657634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561299357600080fd5b81516110e381612389565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156129dd576129dd6129b4565b500190565b602080825260119082015270457863656564204d41585f535550504c5960781b604082015260600190565b6000816000190483118215151615612a2757612a276129b4565b500290565b8054600090600181811c9080831680612a4657607f831692505b60208084108203612a6757634e487b7160e01b600052602260045260246000fd5b818015612a7b5760018114612a8c57612ab9565b60ff19861689528489019650612ab9565b60008881526020902060005b86811015612ab15781548b820152908501908301612a98565b505084890196505b50505050505092915050565b6000612ad18286612a2c565b8451612ae18183602089016122a4565b6124e381830186612a2c565b600060018201612aff57612aff6129b4565b5060010190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b39908301846122d0565b9695505050505050565b600060208284031215612b5557600080fd5b81516110e38161227156feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212208037313aa1a55a39b954e2dfcd209a56d4ef425a6c7aca849dfdf304c4a96d5264736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000094f6e6e614d75736861000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064f4d555348410000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c68747470733a2f2f6d696e742e637962657273616d757261692e6172742f6170692f6d6574615f6f6e6e612f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): OnnaMusha
Arg [1] : symbol (string): OMUSHA
Arg [2] : baseURI_ (string): https://mint.cybersamurai.art/api/meta_onna/
Arg [3] : uriSuffix_ (string):
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [5] : 4f6e6e614d757368610000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [7] : 4f4d555348410000000000000000000000000000000000000000000000000000
Arg [8] : 000000000000000000000000000000000000000000000000000000000000002c
Arg [9] : 68747470733a2f2f6d696e742e637962657273616d757261692e6172742f6170
Arg [10] : 692f6d6574615f6f6e6e612f0000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000000
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.