ERC-721
Overview
Max Total Supply
5,555 WW
Holders
3,017
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
6 WWLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
WildWest
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-08-08 */ // File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } // File: @openzeppelin/contracts/utils/math/SafeMath.sol // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } // File: @openzeppelin/contracts/security/ReentrancyGuard.sol // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: contracts/IERC721A.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File: contracts/ERC721A.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Reference type for token approval. struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 0x80 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 0x20 + 3 * 0x20 = 0x80. str := add(mload(0x40), 0x80) // Update the free memory pointer to allocate. mstore(0x40, str) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: contracts/WW.sol //SPDX-License-Identifier: MIT pragma solidity ^0.8.4; contract WildWest is ERC721A, Ownable, ReentrancyGuard { using Strings for uint256; using SafeMath for uint256; error MaxSupplyExceeded(); error NotAllowlisted(); error MaxPerWalletExceeded(); error InsufficientValue(); error PreSaleNotActive(); error PublicSaleNotActive(); error CannotIncreaseCost(); error NoContracts(); error CannotIncreaseTheSupply(); error MintWouldExceedAllowedForIndvidualInWhitelist(); error NotPrelisted(); error MintWouldExceedMaxSupply(); error PreSaleInactive(); error AllowListIsOver(); uint256 public publicCost = 0.0069 ether; uint16 public maxSupply = 5555; uint256 private allowListLimit = 1111; uint256 private allowlistCounter = 0; mapping (address => uint8) private vipClaimed; mapping (address => uint8) private _minted; uint8 public maxMintAmount = 2; string private _baseTokenURI = "https://wildwest.mypinata.cloud/ipfs/QmZgdfmwxXQZ96jyLf5zs2G9UowhTwJoLCD36UeLzkMm3X/"; bytes32 private presaleMerkleRoot; bool public presaleActive; bool public publicSaleActive; constructor() ERC721A("Wild West", "WW") { _mint(0xF4A265aE0845e903D155d3B4dB18cA6465049af2, 44); } modifier callerIsUser() { if (msg.sender != tx.origin) revert NoContracts(); _; } function setPresaleMerkleRoot(bytes32 _presaleMerkleRoot) external onlyOwner { presaleMerkleRoot = _presaleMerkleRoot; } function isValid(address _user, bytes32[] calldata _studentProof) external view returns (bool) { return MerkleProof.verify( _studentProof, presaleMerkleRoot, keccak256(abi.encodePacked(_user)) ); } function setAllowlistLimit(uint256 _allowListLimit)external onlyOwner{ allowListLimit = _allowListLimit; } function reduceSupply(uint16 _newReducedSupply) external onlyOwner { if (_newReducedSupply > maxSupply) revert CannotIncreaseTheSupply(); maxSupply = _newReducedSupply; } function setPublicSaleCost(uint256 _newPublicCost) external onlyOwner { if (_newPublicCost > publicCost) revert CannotIncreaseCost(); publicCost = _newPublicCost; } function presaleMint(bytes32[] calldata _studentProof) external callerIsUser { uint256 ts = totalSupply(); if(allowlistCounter > allowListLimit) revert AllowListIsOver(); if (!presaleActive) revert PreSaleInactive(); if (ts + 1 > maxSupply) revert MintWouldExceedMaxSupply(); if ( !MerkleProof.verify( _studentProof, presaleMerkleRoot, keccak256(abi.encodePacked(msg.sender)) ) ) revert NotPrelisted(); if (vipClaimed[msg.sender] + 1 > 1) revert MintWouldExceedAllowedForIndvidualInWhitelist(); allowlistCounter += 1; vipClaimed[msg.sender] += 1; _mint(msg.sender, 1); } function mint(uint8 _amount) external payable callerIsUser { uint256 ts = totalSupply(); if (!publicSaleActive) revert PublicSaleNotActive(); if (ts + _amount > maxSupply - allowListLimit) revert MaxSupplyExceeded(); if (_minted[msg.sender] + _amount > maxMintAmount) revert MaxPerWalletExceeded(); if (msg.value != publicCost * _amount) revert InsufficientValue(); _minted[msg.sender] += _amount; _mint(msg.sender, _amount); } function setMaxMintAmount(uint8 _maxMintAmount) external onlyOwner { maxMintAmount = _maxMintAmount; } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function setBaseURI(string calldata baseURI) external onlyOwner { _baseTokenURI = baseURI; } function togglePublicSale() external onlyOwner { publicSaleActive = !publicSaleActive; } function togglePresale() external onlyOwner { presaleActive = !presaleActive; } function withdraw() external onlyOwner nonReentrant { uint256 balance = address(this).balance; uint256 payoutDev = balance.mul(7).div(100); payable(0x3B09E02D37968f53E1de6217aB2317df6AC45824).transfer(payoutDev); balance = address(this).balance; payable(msg.sender).transfer(balance); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AllowListIsOver","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"CannotIncreaseCost","type":"error"},{"inputs":[],"name":"CannotIncreaseTheSupply","type":"error"},{"inputs":[],"name":"InsufficientValue","type":"error"},{"inputs":[],"name":"MaxPerWalletExceeded","type":"error"},{"inputs":[],"name":"MaxSupplyExceeded","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintWouldExceedAllowedForIndvidualInWhitelist","type":"error"},{"inputs":[],"name":"MintWouldExceedMaxSupply","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NoContracts","type":"error"},{"inputs":[],"name":"NotAllowlisted","type":"error"},{"inputs":[],"name":"NotPrelisted","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"PreSaleInactive","type":"error"},{"inputs":[],"name":"PreSaleNotActive","type":"error"},{"inputs":[],"name":"PublicSaleNotActive","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"bytes32[]","name":"_studentProof","type":"bytes32[]"}],"name":"isValid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_amount","type":"uint8"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_studentProof","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"publicCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_newReducedSupply","type":"uint16"}],"name":"reduceSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allowListLimit","type":"uint256"}],"name":"setAllowlistLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_maxMintAmount","type":"uint8"}],"name":"setMaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_presaleMerkleRoot","type":"bytes32"}],"name":"setPresaleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPublicCost","type":"uint256"}],"name":"setPublicSaleCost","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":[],"name":"togglePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6618838370f34000600a55600b805461ffff19166115b3179055610457600c556000600d556010805460ff19166002179055610100604052605460808181529062001fe760a03980516200005c916011916020909101906200023f565b503480156200006a57600080fd5b506040518060400160405280600981526020016815da5b190815d95cdd60ba1b81525060405180604001604052806002815260200161575760f01b8152508160029080519060200190620000c09291906200023f565b508051620000d69060039060208401906200023f565b50506000805550620000e83362000114565b60016009556200010e73f4a265ae0845e903d155d3b4db18ca6465049af2602c62000166565b62000322565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005481620001885760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083906000805160206200203b8339815191528180a4600183015b8181146200021757808360006000805160206200203b833981519152600080a4600101620001ee565b50816200023657604051622e076360e81b815260040160405180910390fd5b60005550505050565b8280546200024d90620002e5565b90600052602060002090601f016020900481019282620002715760008555620002bc565b82601f106200028c57805160ff1916838001178555620002bc565b82800160010185558215620002bc579182015b82811115620002bc5782518255916020019190600101906200029f565b50620002ca929150620002ce565b5090565b5b80821115620002ca5760008155600101620002cf565b600181811c90821680620002fa57607f821691505b602082108114156200031c57634e487b7160e01b600052602260045260246000fd5b50919050565b611cb580620003326000396000f3fe6080604052600436106101f95760003560e01c8063715018a61161010d578063b88d4fde116100a0578063e222c7f91161006f578063e222c7f9146105a0578063e985e9c5146105b5578063edc0c72c146105fe578063f2fde38b1461061e578063fd46d7871461063e57600080fd5b8063b88d4fde14610513578063bc8893b414610533578063c87b56dd14610552578063d5abeb011461057257600080fd5b806395d89b41116100dc57806395d89b411461049e578063987222b5146104b3578063a22cb465146104d3578063ad84b224146104f357600080fd5b8063715018a6146104355780638693da201461044a5780638da5cb5b146104605780638dbb7c061461047e57600080fd5b806328d7b2761161019057806353135ca01161015f57806353135ca0146103a857806355f804b3146103c25780636352211e146103e25780636ecd23061461040257806370a082311461041557600080fd5b806328d7b2761461033e578063343937431461035e5780633ccfd60b1461037357806342842e0e1461038857600080fd5b80630fc92096116101cc5780630fc92096146102af57806318160ddd146102cf578063239c70ae146102f257806323b872dd1461031e57600080fd5b806301ffc9a7146101fe57806306fdde0314610233578063081812fc14610255578063095ea7b31461028d575b600080fd5b34801561020a57600080fd5b5061021e610219366004611972565b61065e565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b506102486106b0565b60405161022a9190611afd565b34801561026157600080fd5b50610275610270366004611959565b610742565b6040516001600160a01b03909116815260200161022a565b34801561029957600080fd5b506102ad6102a83660046118ed565b610786565b005b3480156102bb57600080fd5b5061021e6102ca36600461185e565b610826565b3480156102db57600080fd5b50600154600054035b60405190815260200161022a565b3480156102fe57600080fd5b5060105461030c9060ff1681565b60405160ff909116815260200161022a565b34801561032a57600080fd5b506102ad610339366004611746565b6108a7565b34801561034a57600080fd5b506102ad610359366004611959565b610a38565b34801561036a57600080fd5b506102ad610a45565b34801561037f57600080fd5b506102ad610a61565b34801561039457600080fd5b506102ad6103a3366004611746565b610b5e565b3480156103b457600080fd5b5060135461021e9060ff1681565b3480156103ce57600080fd5b506102ad6103dd3660046119ac565b610b7e565b3480156103ee57600080fd5b506102756103fd366004611959565b610b92565b6102ad610410366004611a42565b610b9d565b34801561042157600080fd5b506102e46104303660046116f8565b610cf9565b34801561044157600080fd5b506102ad610d48565b34801561045657600080fd5b506102e4600a5481565b34801561046c57600080fd5b506008546001600160a01b0316610275565b34801561048a57600080fd5b506102ad610499366004611959565b610d5c565b3480156104aa57600080fd5b50610248610d8c565b3480156104bf57600080fd5b506102ad6104ce366004611a1e565b610d9b565b3480156104df57600080fd5b506102ad6104ee3660046118b1565b610de6565b3480156104ff57600080fd5b506102ad61050e366004611959565b610e7c565b34801561051f57600080fd5b506102ad61052e366004611782565b610e89565b34801561053f57600080fd5b5060135461021e90610100900460ff1681565b34801561055e57600080fd5b5061024861056d366004611959565b610ed3565b34801561057e57600080fd5b50600b5461058d9061ffff1681565b60405161ffff909116815260200161022a565b3480156105ac57600080fd5b506102ad610f58565b3480156105c157600080fd5b5061021e6105d0366004611713565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561060a57600080fd5b506102ad610619366004611917565b610f7d565b34801561062a57600080fd5b506102ad6106393660046116f8565b611143565b34801561064a57600080fd5b506102ad610659366004611a42565b6111bc565b60006301ffc9a760e01b6001600160e01b03198316148061068f57506380ac58cd60e01b6001600160e01b03198316145b806106aa5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546106bf90611bd1565b80601f01602080910402602001604051908101604052809291908181526020018280546106eb90611bd1565b80156107385780601f1061070d57610100808354040283529160200191610738565b820191906000526020600020905b81548152906001019060200180831161071b57829003601f168201915b5050505050905090565b600061074d826111da565b61076a576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061079182610b92565b9050336001600160a01b038216146107ca576107ad81336105d0565b6107ca576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061089f838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506012546040516bffffffffffffffffffffffff1960608b901b16602082015290925060340190505b60405160208183030381529060405280519060200120611201565b949350505050565b60006108b282611217565b9050836001600160a01b0316816001600160a01b0316146108e55760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176109325761091586336105d0565b61093257604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661095957604051633a954ecd60e21b815260040160405180910390fd5b801561096457600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b83166109ef57600184016000818152600460205260409020546109ed5760005481146109ed5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b610a40611278565b601255565b610a4d611278565b6013805460ff19811660ff90911615179055565b610a69611278565b60026009541415610ac15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600955476000610adf6064610ad98460076112d2565b906112de565b604051909150733b09e02d37968f53e1de6217ab2317df6ac458249082156108fc029083906000818181858888f19350505050158015610b23573d6000803e3d6000fd5b50604051479250339083156108fc029084906000818181858888f19350505050158015610b54573d6000803e3d6000fd5b5050600160095550565b610b7983838360405180602001604052806000815250610e89565b505050565b610b86611278565b610b79601183836115f7565b60006106aa82611217565b333214610bbd5760405163875fdad760e01b815260040160405180910390fd5b6000610bcc6001546000540390565b601354909150610100900460ff16610bf7576040516331f423c160e21b815260040160405180910390fd5b600c54600b54610c0b919061ffff16611b8e565b610c1860ff841683611b10565b1115610c3757604051638a164f6360e01b815260040160405180910390fd5b601054336000908152600f602052604090205460ff91821691610c5c91859116611b28565b60ff161115610c7e57604051637ab0312d60e11b815260040160405180910390fd5b8160ff16600a54610c8f9190611b6f565b3414610cae5760405163044044a560e21b815260040160405180910390fd5b336000908152600f602052604081208054849290610cd090849060ff16611b28565b92506101000a81548160ff021916908360ff160217905550610cf5338360ff166112ea565b5050565b60006001600160a01b038216610d22576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610d50611278565b610d5a60006113e1565b565b610d64611278565b600a54811115610d875760405163557a6b7f60e01b815260040160405180910390fd5b600a55565b6060600380546106bf90611bd1565b610da3611278565b600b5461ffff9081169082161115610dce5760405163f553fd7b60e01b815260040160405180910390fd5b600b805461ffff191661ffff92909216919091179055565b6001600160a01b038216331415610e105760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610e84611278565b600c55565b610e948484846108a7565b6001600160a01b0383163b15610ecd57610eb084848484611433565b610ecd576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610ede826111da565b610efb57604051630a14c4b560e41b815260040160405180910390fd5b6000610f0561152a565b9050805160001415610f265760405180602001604052806000815250610f51565b80610f3084611539565b604051602001610f41929190611a91565b6040516020818303038152906040525b9392505050565b610f60611278565b6013805461ff001981166101009182900460ff1615909102179055565b333214610f9d5760405163875fdad760e01b815260040160405180910390fd5b6000610fac6001546000540390565b9050600c54600d541115610fd35760405163d65de54160e01b815260040160405180910390fd5b60135460ff16610ff65760405163fc7d083760e01b815260040160405180910390fd5b600b5461ffff16611008826001611b10565b111561102757604051630f3ebdcd60e41b815260040160405180910390fd5b611086838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506012546040516bffffffffffffffffffffffff193360601b1660208201529092506034019050610884565b6110a35760405163ce43785f60e01b815260040160405180910390fd5b336000908152600e60205260409020546001906110c39060ff1682611b28565b60ff1611156110e55760405163099dd24760e01b815260040160405180910390fd5b6001600d60008282546110f89190611b10565b9091555050336000908152600e6020526040812080546001929061112090849060ff16611b28565b92506101000a81548160ff021916908360ff160217905550610b793360016112ea565b61114b611278565b6001600160a01b0381166111b05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ab8565b6111b9816113e1565b50565b6111c4611278565b6010805460ff191660ff92909216919091179055565b60008054821080156106aa575050600090815260046020526040902054600160e01b161590565b60008261120e858461157b565b14949350505050565b60008160005481101561125f57600081815260046020526040902054600160e01b811661125d575b80610f5157506000190160008181526004602052604090205461123f565b505b604051636f96cda160e11b815260040160405180910390fd5b6008546001600160a01b03163314610d5a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ab8565b6000610f518284611b6f565b6000610f518284611b4d565b6000548161130b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146113ba57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611382565b50816113d857604051622e076360e81b815260040160405180910390fd5b60005550505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611468903390899088908890600401611ac0565b602060405180830381600087803b15801561148257600080fd5b505af19250505080156114b2575060408051601f3d908101601f191682019092526114af9181019061198f565b60015b61150d573d8080156114e0576040519150601f19603f3d011682016040523d82523d6000602084013e6114e5565b606091505b508051611505576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060601180546106bf90611bd1565b604080516080019081905280825b600183039250600a81066030018353600a90048061156457611569565b611547565b50819003601f19909101908152919050565b600081815b84518110156115c0576115ac8286838151811061159f5761159f611c3d565b60200260200101516115c8565b9150806115b881611c0c565b915050611580565b509392505050565b60008183106115e4576000828152602084905260409020610f51565b6000838152602083905260409020610f51565b82805461160390611bd1565b90600052602060002090601f016020900481019282611625576000855561166b565b82601f1061163e5782800160ff1982351617855561166b565b8280016001018555821561166b579182015b8281111561166b578235825591602001919060010190611650565b5061167792915061167b565b5090565b5b80821115611677576000815560010161167c565b80356001600160a01b03811681146116a757600080fd5b919050565b60008083601f8401126116be57600080fd5b50813567ffffffffffffffff8111156116d657600080fd5b6020830191508360208260051b85010111156116f157600080fd5b9250929050565b60006020828403121561170a57600080fd5b610f5182611690565b6000806040838503121561172657600080fd5b61172f83611690565b915061173d60208401611690565b90509250929050565b60008060006060848603121561175b57600080fd5b61176484611690565b925061177260208501611690565b9150604084013590509250925092565b6000806000806080858703121561179857600080fd5b6117a185611690565b93506117af60208601611690565b925060408501359150606085013567ffffffffffffffff808211156117d357600080fd5b818701915087601f8301126117e757600080fd5b8135818111156117f9576117f9611c53565b604051601f8201601f19908116603f0116810190838211818310171561182157611821611c53565b816040528281528a602084870101111561183a57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060006040848603121561187357600080fd5b61187c84611690565b9250602084013567ffffffffffffffff81111561189857600080fd5b6118a4868287016116ac565b9497909650939450505050565b600080604083850312156118c457600080fd5b6118cd83611690565b9150602083013580151581146118e257600080fd5b809150509250929050565b6000806040838503121561190057600080fd5b61190983611690565b946020939093013593505050565b6000806020838503121561192a57600080fd5b823567ffffffffffffffff81111561194157600080fd5b61194d858286016116ac565b90969095509350505050565b60006020828403121561196b57600080fd5b5035919050565b60006020828403121561198457600080fd5b8135610f5181611c69565b6000602082840312156119a157600080fd5b8151610f5181611c69565b600080602083850312156119bf57600080fd5b823567ffffffffffffffff808211156119d757600080fd5b818501915085601f8301126119eb57600080fd5b8135818111156119fa57600080fd5b866020828501011115611a0c57600080fd5b60209290920196919550909350505050565b600060208284031215611a3057600080fd5b813561ffff81168114610f5157600080fd5b600060208284031215611a5457600080fd5b813560ff81168114610f5157600080fd5b60008151808452611a7d816020860160208601611ba5565b601f01601f19169290920160200192915050565b60008351611aa3818460208801611ba5565b835190830190611ab7818360208801611ba5565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611af390830184611a65565b9695505050505050565b602081526000610f516020830184611a65565b60008219821115611b2357611b23611c27565b500190565b600060ff821660ff84168060ff03821115611b4557611b45611c27565b019392505050565b600082611b6a57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611b8957611b89611c27565b500290565b600082821015611ba057611ba0611c27565b500390565b60005b83811015611bc0578181015183820152602001611ba8565b83811115610ecd5750506000910152565b600181811c90821680611be557607f821691505b60208210811415611c0657634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611c2057611c20611c27565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146111b957600080fdfea2646970667358221220dfb3dcb72ae31bb8ef614703188cbd611fe4a7fcafdc765cb1b6a39ce6f775c264736f6c6343000807003368747470733a2f2f77696c64776573742e6d7970696e6174612e636c6f75642f697066732f516d5a6764666d777858515a39366a794c66357a73324739556f776854774a6f4c4344333655654c7a6b4d6d33582fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
Deployed Bytecode
0x6080604052600436106101f95760003560e01c8063715018a61161010d578063b88d4fde116100a0578063e222c7f91161006f578063e222c7f9146105a0578063e985e9c5146105b5578063edc0c72c146105fe578063f2fde38b1461061e578063fd46d7871461063e57600080fd5b8063b88d4fde14610513578063bc8893b414610533578063c87b56dd14610552578063d5abeb011461057257600080fd5b806395d89b41116100dc57806395d89b411461049e578063987222b5146104b3578063a22cb465146104d3578063ad84b224146104f357600080fd5b8063715018a6146104355780638693da201461044a5780638da5cb5b146104605780638dbb7c061461047e57600080fd5b806328d7b2761161019057806353135ca01161015f57806353135ca0146103a857806355f804b3146103c25780636352211e146103e25780636ecd23061461040257806370a082311461041557600080fd5b806328d7b2761461033e578063343937431461035e5780633ccfd60b1461037357806342842e0e1461038857600080fd5b80630fc92096116101cc5780630fc92096146102af57806318160ddd146102cf578063239c70ae146102f257806323b872dd1461031e57600080fd5b806301ffc9a7146101fe57806306fdde0314610233578063081812fc14610255578063095ea7b31461028d575b600080fd5b34801561020a57600080fd5b5061021e610219366004611972565b61065e565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b506102486106b0565b60405161022a9190611afd565b34801561026157600080fd5b50610275610270366004611959565b610742565b6040516001600160a01b03909116815260200161022a565b34801561029957600080fd5b506102ad6102a83660046118ed565b610786565b005b3480156102bb57600080fd5b5061021e6102ca36600461185e565b610826565b3480156102db57600080fd5b50600154600054035b60405190815260200161022a565b3480156102fe57600080fd5b5060105461030c9060ff1681565b60405160ff909116815260200161022a565b34801561032a57600080fd5b506102ad610339366004611746565b6108a7565b34801561034a57600080fd5b506102ad610359366004611959565b610a38565b34801561036a57600080fd5b506102ad610a45565b34801561037f57600080fd5b506102ad610a61565b34801561039457600080fd5b506102ad6103a3366004611746565b610b5e565b3480156103b457600080fd5b5060135461021e9060ff1681565b3480156103ce57600080fd5b506102ad6103dd3660046119ac565b610b7e565b3480156103ee57600080fd5b506102756103fd366004611959565b610b92565b6102ad610410366004611a42565b610b9d565b34801561042157600080fd5b506102e46104303660046116f8565b610cf9565b34801561044157600080fd5b506102ad610d48565b34801561045657600080fd5b506102e4600a5481565b34801561046c57600080fd5b506008546001600160a01b0316610275565b34801561048a57600080fd5b506102ad610499366004611959565b610d5c565b3480156104aa57600080fd5b50610248610d8c565b3480156104bf57600080fd5b506102ad6104ce366004611a1e565b610d9b565b3480156104df57600080fd5b506102ad6104ee3660046118b1565b610de6565b3480156104ff57600080fd5b506102ad61050e366004611959565b610e7c565b34801561051f57600080fd5b506102ad61052e366004611782565b610e89565b34801561053f57600080fd5b5060135461021e90610100900460ff1681565b34801561055e57600080fd5b5061024861056d366004611959565b610ed3565b34801561057e57600080fd5b50600b5461058d9061ffff1681565b60405161ffff909116815260200161022a565b3480156105ac57600080fd5b506102ad610f58565b3480156105c157600080fd5b5061021e6105d0366004611713565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561060a57600080fd5b506102ad610619366004611917565b610f7d565b34801561062a57600080fd5b506102ad6106393660046116f8565b611143565b34801561064a57600080fd5b506102ad610659366004611a42565b6111bc565b60006301ffc9a760e01b6001600160e01b03198316148061068f57506380ac58cd60e01b6001600160e01b03198316145b806106aa5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546106bf90611bd1565b80601f01602080910402602001604051908101604052809291908181526020018280546106eb90611bd1565b80156107385780601f1061070d57610100808354040283529160200191610738565b820191906000526020600020905b81548152906001019060200180831161071b57829003601f168201915b5050505050905090565b600061074d826111da565b61076a576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061079182610b92565b9050336001600160a01b038216146107ca576107ad81336105d0565b6107ca576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061089f838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506012546040516bffffffffffffffffffffffff1960608b901b16602082015290925060340190505b60405160208183030381529060405280519060200120611201565b949350505050565b60006108b282611217565b9050836001600160a01b0316816001600160a01b0316146108e55760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176109325761091586336105d0565b61093257604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661095957604051633a954ecd60e21b815260040160405180910390fd5b801561096457600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b83166109ef57600184016000818152600460205260409020546109ed5760005481146109ed5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b610a40611278565b601255565b610a4d611278565b6013805460ff19811660ff90911615179055565b610a69611278565b60026009541415610ac15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600955476000610adf6064610ad98460076112d2565b906112de565b604051909150733b09e02d37968f53e1de6217ab2317df6ac458249082156108fc029083906000818181858888f19350505050158015610b23573d6000803e3d6000fd5b50604051479250339083156108fc029084906000818181858888f19350505050158015610b54573d6000803e3d6000fd5b5050600160095550565b610b7983838360405180602001604052806000815250610e89565b505050565b610b86611278565b610b79601183836115f7565b60006106aa82611217565b333214610bbd5760405163875fdad760e01b815260040160405180910390fd5b6000610bcc6001546000540390565b601354909150610100900460ff16610bf7576040516331f423c160e21b815260040160405180910390fd5b600c54600b54610c0b919061ffff16611b8e565b610c1860ff841683611b10565b1115610c3757604051638a164f6360e01b815260040160405180910390fd5b601054336000908152600f602052604090205460ff91821691610c5c91859116611b28565b60ff161115610c7e57604051637ab0312d60e11b815260040160405180910390fd5b8160ff16600a54610c8f9190611b6f565b3414610cae5760405163044044a560e21b815260040160405180910390fd5b336000908152600f602052604081208054849290610cd090849060ff16611b28565b92506101000a81548160ff021916908360ff160217905550610cf5338360ff166112ea565b5050565b60006001600160a01b038216610d22576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610d50611278565b610d5a60006113e1565b565b610d64611278565b600a54811115610d875760405163557a6b7f60e01b815260040160405180910390fd5b600a55565b6060600380546106bf90611bd1565b610da3611278565b600b5461ffff9081169082161115610dce5760405163f553fd7b60e01b815260040160405180910390fd5b600b805461ffff191661ffff92909216919091179055565b6001600160a01b038216331415610e105760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610e84611278565b600c55565b610e948484846108a7565b6001600160a01b0383163b15610ecd57610eb084848484611433565b610ecd576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610ede826111da565b610efb57604051630a14c4b560e41b815260040160405180910390fd5b6000610f0561152a565b9050805160001415610f265760405180602001604052806000815250610f51565b80610f3084611539565b604051602001610f41929190611a91565b6040516020818303038152906040525b9392505050565b610f60611278565b6013805461ff001981166101009182900460ff1615909102179055565b333214610f9d5760405163875fdad760e01b815260040160405180910390fd5b6000610fac6001546000540390565b9050600c54600d541115610fd35760405163d65de54160e01b815260040160405180910390fd5b60135460ff16610ff65760405163fc7d083760e01b815260040160405180910390fd5b600b5461ffff16611008826001611b10565b111561102757604051630f3ebdcd60e41b815260040160405180910390fd5b611086838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506012546040516bffffffffffffffffffffffff193360601b1660208201529092506034019050610884565b6110a35760405163ce43785f60e01b815260040160405180910390fd5b336000908152600e60205260409020546001906110c39060ff1682611b28565b60ff1611156110e55760405163099dd24760e01b815260040160405180910390fd5b6001600d60008282546110f89190611b10565b9091555050336000908152600e6020526040812080546001929061112090849060ff16611b28565b92506101000a81548160ff021916908360ff160217905550610b793360016112ea565b61114b611278565b6001600160a01b0381166111b05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ab8565b6111b9816113e1565b50565b6111c4611278565b6010805460ff191660ff92909216919091179055565b60008054821080156106aa575050600090815260046020526040902054600160e01b161590565b60008261120e858461157b565b14949350505050565b60008160005481101561125f57600081815260046020526040902054600160e01b811661125d575b80610f5157506000190160008181526004602052604090205461123f565b505b604051636f96cda160e11b815260040160405180910390fd5b6008546001600160a01b03163314610d5a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ab8565b6000610f518284611b6f565b6000610f518284611b4d565b6000548161130b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146113ba57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611382565b50816113d857604051622e076360e81b815260040160405180910390fd5b60005550505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611468903390899088908890600401611ac0565b602060405180830381600087803b15801561148257600080fd5b505af19250505080156114b2575060408051601f3d908101601f191682019092526114af9181019061198f565b60015b61150d573d8080156114e0576040519150601f19603f3d011682016040523d82523d6000602084013e6114e5565b606091505b508051611505576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060601180546106bf90611bd1565b604080516080019081905280825b600183039250600a81066030018353600a90048061156457611569565b611547565b50819003601f19909101908152919050565b600081815b84518110156115c0576115ac8286838151811061159f5761159f611c3d565b60200260200101516115c8565b9150806115b881611c0c565b915050611580565b509392505050565b60008183106115e4576000828152602084905260409020610f51565b6000838152602083905260409020610f51565b82805461160390611bd1565b90600052602060002090601f016020900481019282611625576000855561166b565b82601f1061163e5782800160ff1982351617855561166b565b8280016001018555821561166b579182015b8281111561166b578235825591602001919060010190611650565b5061167792915061167b565b5090565b5b80821115611677576000815560010161167c565b80356001600160a01b03811681146116a757600080fd5b919050565b60008083601f8401126116be57600080fd5b50813567ffffffffffffffff8111156116d657600080fd5b6020830191508360208260051b85010111156116f157600080fd5b9250929050565b60006020828403121561170a57600080fd5b610f5182611690565b6000806040838503121561172657600080fd5b61172f83611690565b915061173d60208401611690565b90509250929050565b60008060006060848603121561175b57600080fd5b61176484611690565b925061177260208501611690565b9150604084013590509250925092565b6000806000806080858703121561179857600080fd5b6117a185611690565b93506117af60208601611690565b925060408501359150606085013567ffffffffffffffff808211156117d357600080fd5b818701915087601f8301126117e757600080fd5b8135818111156117f9576117f9611c53565b604051601f8201601f19908116603f0116810190838211818310171561182157611821611c53565b816040528281528a602084870101111561183a57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060006040848603121561187357600080fd5b61187c84611690565b9250602084013567ffffffffffffffff81111561189857600080fd5b6118a4868287016116ac565b9497909650939450505050565b600080604083850312156118c457600080fd5b6118cd83611690565b9150602083013580151581146118e257600080fd5b809150509250929050565b6000806040838503121561190057600080fd5b61190983611690565b946020939093013593505050565b6000806020838503121561192a57600080fd5b823567ffffffffffffffff81111561194157600080fd5b61194d858286016116ac565b90969095509350505050565b60006020828403121561196b57600080fd5b5035919050565b60006020828403121561198457600080fd5b8135610f5181611c69565b6000602082840312156119a157600080fd5b8151610f5181611c69565b600080602083850312156119bf57600080fd5b823567ffffffffffffffff808211156119d757600080fd5b818501915085601f8301126119eb57600080fd5b8135818111156119fa57600080fd5b866020828501011115611a0c57600080fd5b60209290920196919550909350505050565b600060208284031215611a3057600080fd5b813561ffff81168114610f5157600080fd5b600060208284031215611a5457600080fd5b813560ff81168114610f5157600080fd5b60008151808452611a7d816020860160208601611ba5565b601f01601f19169290920160200192915050565b60008351611aa3818460208801611ba5565b835190830190611ab7818360208801611ba5565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611af390830184611a65565b9695505050505050565b602081526000610f516020830184611a65565b60008219821115611b2357611b23611c27565b500190565b600060ff821660ff84168060ff03821115611b4557611b45611c27565b019392505050565b600082611b6a57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611b8957611b89611c27565b500290565b600082821015611ba057611ba0611c27565b500390565b60005b83811015611bc0578181015183820152602001611ba8565b83811115610ecd5750506000910152565b600181811c90821680611be557607f821691505b60208210811415611c0657634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611c2057611c20611c27565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146111b957600080fdfea2646970667358221220dfb3dcb72ae31bb8ef614703188cbd611fe4a7fcafdc765cb1b6a39ce6f775c264736f6c63430008070033
Deployed Bytecode Sourcemap
75513:4689:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39439:639;;;;;;;;;;-1:-1:-1;39439:639:0;;;;;:::i;:::-;;:::i;:::-;;;7924:14:1;;7917:22;7899:41;;7887:2;7872:18;39439:639:0;;;;;;;;40341:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;46824:218::-;;;;;;;;;;-1:-1:-1;46824:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;7222:32:1;;;7204:51;;7192:2;7177:18;46824:218:0;7058:203:1;46265:400:0;;;;;;;;;;-1:-1:-1;46265:400:0;;;;;:::i;:::-;;:::i;:::-;;77083:320;;;;;;;;;;-1:-1:-1;77083:320:0;;;;;:::i;:::-;;:::i;36092:323::-;;;;;;;;;;-1:-1:-1;36366:12:0;;36153:7;36350:13;:28;36092:323;;;9642:25:1;;;9630:2;9615:18;36092:323:0;9496:177:1;76400:30:0;;;;;;;;;;-1:-1:-1;76400:30:0;;;;;;;;;;;9850:4:1;9838:17;;;9820:36;;9808:2;9793:18;76400:30:0;9678:184:1;50531:2817:0;;;;;;;;;;-1:-1:-1;50531:2817:0;;;;;:::i;:::-;;:::i;76918:157::-;;;;;;;;;;-1:-1:-1;76918:157:0;;;;;:::i;:::-;;:::i;79762:93::-;;;;;;;;;;;;;:::i;79863:336::-;;;;;;;;;;;;;:::i;53444:185::-;;;;;;;;;;-1:-1:-1;53444:185:0;;;;;:::i;:::-;;:::i;76616:25::-;;;;;;;;;;-1:-1:-1;76616:25:0;;;;;;;;79538:106;;;;;;;;;;-1:-1:-1;79538:106:0;;;;;:::i;:::-;;:::i;41734:152::-;;;;;;;;;;-1:-1:-1;41734:152:0;;;;;:::i;:::-;;:::i;78733:545::-;;;;;;:::i;:::-;;:::i;37276:233::-;;;;;;;;;;-1:-1:-1;37276:233:0;;;;;:::i;:::-;;:::i;74604:103::-;;;;;;;;;;;;;:::i;76120:40::-;;;;;;;;;;;;;;;;73956:87;;;;;;;;;;-1:-1:-1;74029:6:0;;-1:-1:-1;;;;;74029:6:0;73956:87;;77744:187;;;;;;;;;;-1:-1:-1;77744:187:0;;;;;:::i;:::-;;:::i;40517:104::-;;;;;;;;;;;;;:::i;77543:193::-;;;;;;;;;;-1:-1:-1;77543:193:0;;;;;:::i;:::-;;:::i;47382:308::-;;;;;;;;;;-1:-1:-1;47382:308:0;;;;;:::i;:::-;;:::i;77415:120::-;;;;;;;;;;-1:-1:-1;77415:120:0;;;;;:::i;:::-;;:::i;54227:399::-;;;;;;;;;;-1:-1:-1;54227:399:0;;;;;:::i;:::-;;:::i;76648:28::-;;;;;;;;;;-1:-1:-1;76648:28:0;;;;;;;;;;;40727:318;;;;;;;;;;-1:-1:-1;40727:318:0;;;;;:::i;:::-;;:::i;76167:30::-;;;;;;;;;;-1:-1:-1;76167:30:0;;;;;;;;;;;9477:6:1;9465:19;;;9447:38;;9435:2;9420:18;76167:30:0;9303:188:1;79652:102:0;;;;;;;;;;;;;:::i;47847:164::-;;;;;;;;;;-1:-1:-1;47847:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;47968:25:0;;;47944:4;47968:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;47847:164;77937:788;;;;;;;;;;-1:-1:-1;77937:788:0;;;;;:::i;:::-;;:::i;74862:201::-;;;;;;;;;;-1:-1:-1;74862:201:0;;;;;:::i;:::-;;:::i;79292:116::-;;;;;;;;;;-1:-1:-1;79292:116:0;;;;;:::i;:::-;;:::i;39439:639::-;39524:4;-1:-1:-1;;;;;;;;;39848:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;39925:25:0;;;39848:102;:179;;;-1:-1:-1;;;;;;;;;;40002:25:0;;;39848:179;39828:199;39439:639;-1:-1:-1;;39439:639:0:o;40341:100::-;40395:13;40428:5;40421:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40341:100;:::o;46824:218::-;46900:7;46925:16;46933:7;46925;:16::i;:::-;46920:64;;46950:34;;-1:-1:-1;;;46950:34:0;;;;;;;;;;;46920:64;-1:-1:-1;47004:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;47004:30:0;;46824:218::o;46265:400::-;46346:13;46362:16;46370:7;46362;:16::i;:::-;46346:32;-1:-1:-1;70122:10:0;-1:-1:-1;;;;;46395:28:0;;;46391:175;;46443:44;46460:5;70122:10;47847:164;:::i;46443:44::-;46438:128;;46515:35;;-1:-1:-1;;;46515:35:0;;;;;;;;;;;46438:128;46578:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;46578:35:0;-1:-1:-1;;;;;46578:35:0;;;;;;;;;46629:28;;46578:24;;46629:28;;;;;;;46335:330;46265:400;;:::o;77083:320::-;77199:4;77241:154;77278:13;;77241:154;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;77310:17:0;;77356:23;;-1:-1:-1;;6498:2:1;6494:15;;;6490:53;77356:23:0;;;6478:66:1;77310:17:0;;-1:-1:-1;6560:12:1;;;-1:-1:-1;77356:23:0;;;;;;;;;;;;;77346:34;;;;;;77241:18;:154::i;:::-;77221:174;77083:320;-1:-1:-1;;;;77083:320:0:o;50531:2817::-;50665:27;50695;50714:7;50695:18;:27::i;:::-;50665:57;;50780:4;-1:-1:-1;;;;;50739:45:0;50755:19;-1:-1:-1;;;;;50739:45:0;;50735:86;;50793:28;;-1:-1:-1;;;50793:28:0;;;;;;;;;;;50735:86;50835:27;49645:24;;;:15;:24;;;;;49867:26;;70122:10;49270:30;;;-1:-1:-1;;;;;48963:28:0;;49248:20;;;49245:56;51021:180;;51114:43;51131:4;70122:10;47847:164;:::i;51114:43::-;51109:92;;51166:35;;-1:-1:-1;;;51166:35:0;;;;;;;;;;;51109:92;-1:-1:-1;;;;;51218:16:0;;51214:52;;51243:23;;-1:-1:-1;;;51243:23:0;;;;;;;;;;;51214:52;51415:15;51412:160;;;51555:1;51534:19;51527:30;51412:160;-1:-1:-1;;;;;51952:24:0;;;;;;;:18;:24;;;;;;51950:26;;-1:-1:-1;;51950:26:0;;;52021:22;;;;;;;;;52019:24;;-1:-1:-1;52019:24:0;;;45123:11;45098:23;45094:41;45081:63;-1:-1:-1;;;45081:63:0;52314:26;;;;:17;:26;;;;;:175;-1:-1:-1;;;52609:47:0;;52605:627;;52714:1;52704:11;;52682:19;52837:30;;;:17;:30;;;;;;52833:384;;52975:13;;52960:11;:28;52956:242;;53122:30;;;;:17;:30;;;;;:52;;;52956:242;52663:569;52605:627;53279:7;53275:2;-1:-1:-1;;;;;53260:27:0;53269:4;-1:-1:-1;;;;;53260:27:0;;;;;;;;;;;50654:2694;;;50531:2817;;;:::o;76918:157::-;73842:13;:11;:13::i;:::-;77029:17:::1;:38:::0;76918:157::o;79762:93::-;73842:13;:11;:13::i;:::-;79834::::1;::::0;;-1:-1:-1;;79817:30:0;::::1;79834:13;::::0;;::::1;79833:14;79817:30;::::0;;79762:93::o;79863:336::-;73842:13;:11;:13::i;:::-;17578:1:::1;18176:7;;:19;;18168:63;;;::::0;-1:-1:-1;;;18168:63:0;;9145:2:1;18168:63:0::1;::::0;::::1;9127:21:1::0;9184:2;9164:18;;;9157:30;9223:33;9203:18;;;9196:61;9274:18;;18168:63:0::1;;;;;;;;;17578:1;18309:7;:18:::0;79944:21:::2;79926:15;79996:23;80015:3;79996:14;79944:21:::0;80008:1:::2;79996:11;:14::i;:::-;:18:::0;::::2;:23::i;:::-;80030:71;::::0;79976:43;;-1:-1:-1;80038:42:0::2;::::0;80030:71;::::2;;;::::0;79976:43;;80030:71:::2;::::0;;;79976:43;80038:42;80030:71;::::2;;;;;;;;;;;;;::::0;::::2;;;;;-1:-1:-1::0;80154:37:0::2;::::0;80122:21:::2;::::0;-1:-1:-1;80162:10:0::2;::::0;80154:37;::::2;;;::::0;80122:21;;80154:37:::2;::::0;;;80122:21;80162:10;80154:37;::::2;;;;;;;;;;;;;::::0;::::2;;;;;-1:-1:-1::0;;17534:1:0::1;18488:7;:22:::0;-1:-1:-1;79863:336:0:o;53444:185::-;53582:39;53599:4;53605:2;53609:7;53582:39;;;;;;;;;;;;:16;:39::i;:::-;53444:185;;;:::o;79538:106::-;73842:13;:11;:13::i;:::-;79613:23:::1;:13;79629:7:::0;;79613:23:::1;:::i;41734:152::-:0;41806:7;41849:27;41868:7;41849:18;:27::i;78733:545::-;76845:10;76859:9;76845:23;76841:49;;76877:13;;-1:-1:-1;;;76877:13:0;;;;;;;;;;;76841:49;78803:10:::1;78816:13;36366:12:::0;;36153:7;36350:13;:28;;36092:323;78816:13:::1;78849:16;::::0;78803:26;;-1:-1:-1;78849:16:0::1;::::0;::::1;;;78844:51;;78874:21;;-1:-1:-1::0;;;78874:21:0::1;;;;;;;;;;;78844:51;78941:14;::::0;78929:9:::1;::::0;:26:::1;::::0;78941:14;78929:9:::1;;:26;:::i;:::-;78914:12;;::::0;::::1;:2:::0;:12:::1;:::i;:::-;:41;78910:73;;;78964:19;;-1:-1:-1::0;;;78964:19:0::1;;;;;;;;;;;78910:73;79034:13;::::0;79010:10:::1;79034:13;79002:19:::0;;;:7:::1;:19;::::0;;;;;79034:13:::1;::::0;;::::1;::::0;79002:29:::1;::::0;79024:7;;79002:19:::1;:29;:::i;:::-;:45;;;78998:97;;;79073:22;;-1:-1:-1::0;;;79073:22:0::1;;;;;;;;;;;78998:97;79140:7;79127:20;;:10;;:20;;;;:::i;:::-;79114:9;:33;79110:65;;79156:19;;-1:-1:-1::0;;;79156:19:0::1;;;;;;;;;;;79110:65;79200:10;79192:19;::::0;;;:7:::1;:19;::::0;;;;:30;;79215:7;;79192:19;:30:::1;::::0;79215:7;;79192:30:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;79240:26;79246:10;79258:7;79240:26;;:5;:26::i;:::-;78792:486;78733:545:::0;:::o;37276:233::-;37348:7;-1:-1:-1;;;;;37372:19:0;;37368:60;;37400:28;;-1:-1:-1;;;37400:28:0;;;;;;;;;;;37368:60;-1:-1:-1;;;;;;37446:25:0;;;;;:18;:25;;;;;;31435:13;37446:55;;37276:233::o;74604:103::-;73842:13;:11;:13::i;:::-;74669:30:::1;74696:1;74669:18;:30::i;:::-;74604:103::o:0;77744:187::-;73842:13;:11;:13::i;:::-;77846:10:::1;;77829:14;:27;77825:60;;;77865:20;;-1:-1:-1::0;;;77865:20:0::1;;;;;;;;;;;77825:60;77896:10;:27:::0;77744:187::o;40517:104::-;40573:13;40606:7;40599:14;;;;;:::i;77543:193::-;73842:13;:11;:13::i;:::-;77645:9:::1;::::0;::::1;::::0;;::::1;77625:29:::0;;::::1;;77621:67;;;77663:25;;-1:-1:-1::0;;;77663:25:0::1;;;;;;;;;;;77621:67;77699:9;:29:::0;;-1:-1:-1;;77699:29:0::1;;::::0;;;::::1;::::0;;;::::1;::::0;;77543:193::o;47382:308::-;-1:-1:-1;;;;;47481:31:0;;70122:10;47481:31;47477:61;;;47521:17;;-1:-1:-1;;;47521:17:0;;;;;;;;;;;47477:61;70122:10;47551:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;47551:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;47551:60:0;;;;;;;;;;47627:55;;7899:41:1;;;47551:49:0;;70122:10;47627:55;;7872:18:1;47627:55:0;;;;;;;47382:308;;:::o;77415:120::-;73842:13;:11;:13::i;:::-;77495:14:::1;:32:::0;77415:120::o;54227:399::-;54394:31;54407:4;54413:2;54417:7;54394:12;:31::i;:::-;-1:-1:-1;;;;;54440:14:0;;;:19;54436:183;;54479:56;54510:4;54516:2;54520:7;54529:5;54479:30;:56::i;:::-;54474:145;;54563:40;;-1:-1:-1;;;54563:40:0;;;;;;;;;;;54474:145;54227:399;;;;:::o;40727:318::-;40800:13;40831:16;40839:7;40831;:16::i;:::-;40826:59;;40856:29;;-1:-1:-1;;;40856:29:0;;;;;;;;;;;40826:59;40898:21;40922:10;:8;:10::i;:::-;40898:34;;40956:7;40950:21;40975:1;40950:26;;:87;;;;;;;;;;;;;;;;;41003:7;41012:18;41022:7;41012:9;:18::i;:::-;40986:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;40950:87;40943:94;40727:318;-1:-1:-1;;;40727:318:0:o;79652:102::-;73842:13;:11;:13::i;:::-;79730:16:::1;::::0;;-1:-1:-1;;79710:36:0;::::1;79730:16;::::0;;;::::1;;;79729:17;79710:36:::0;;::::1;;::::0;;79652:102::o;77937:788::-;76845:10;76859:9;76845:23;76841:49;;76877:13;;-1:-1:-1;;;76877:13:0;;;;;;;;;;;76841:49;78048:10:::1;78061:13;36366:12:::0;;36153:7;36350:13;:28;;36092:323;78061:13:::1;78048:26;;78107:14;;78088:16;;:33;78085:62;;;78130:17;;-1:-1:-1::0;;;78130:17:0::1;;;;;;;;;;;78085:62;78163:13;::::0;::::1;;78158:44;;78185:17;;-1:-1:-1::0;;;78185:17:0::1;;;;;;;;;;;78158:44;78226:9;::::0;::::1;;78217:6;:2:::0;78226:9;78217:6:::1;:::i;:::-;:18;78213:57;;;78244:26;;-1:-1:-1::0;;;78244:26:0::1;;;;;;;;;;;78213:57;78300:159;78337:13;;78300:159;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;;78369:17:0::1;::::0;78415:28:::1;::::0;-1:-1:-1;;78432:10:0::1;6498:2:1::0;6494:15;6490:53;78415:28:0::1;::::0;::::1;6478:66:1::0;78369:17:0;;-1:-1:-1;6560:12:1;;;-1:-1:-1;78415:28:0::1;6349:229:1::0;78300:159:0::1;78281:211;;78478:14;;-1:-1:-1::0;;;78478:14:0::1;;;;;;;;;;;78281:211;78518:10;78507:22;::::0;;;:10:::1;:22;::::0;;;;;78536:1:::1;::::0;78507:26:::1;::::0;:22:::1;;78536:1:::0;78507:26:::1;:::i;:::-;:30;;;78503:103;;;78559:47;;-1:-1:-1::0;;;78559:47:0::1;;;;;;;;;;;78503:103;78639:1;78619:16;;:21;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;78662:10:0::1;78651:22;::::0;;;:10:::1;:22;::::0;;;;:27;;78677:1:::1;::::0;78651:22;:27:::1;::::0;78677:1;;78651:27:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;78689:20;78695:10;78707:1;78689:5;:20::i;74862:201::-:0;73842:13;:11;:13::i;:::-;-1:-1:-1;;;;;74951:22:0;::::1;74943:73;;;::::0;-1:-1:-1;;;74943:73:0;;8377:2:1;74943:73:0::1;::::0;::::1;8359:21:1::0;8416:2;8396:18;;;8389:30;8455:34;8435:18;;;8428:62;-1:-1:-1;;;8506:18:1;;;8499:36;8552:19;;74943:73:0::1;8175:402:1::0;74943:73:0::1;75027:28;75046:8;75027:18;:28::i;:::-;74862:201:::0;:::o;79292:116::-;73842:13;:11;:13::i;:::-;79370::::1;:30:::0;;-1:-1:-1;;79370:30:0::1;;::::0;;;::::1;::::0;;;::::1;::::0;;79292:116::o;48269:282::-;48334:4;48424:13;;48414:7;:23;48371:153;;;;-1:-1:-1;;48475:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;48475:44:0;:49;;48269:282::o;1219:190::-;1344:4;1397;1368:25;1381:5;1388:4;1368:12;:25::i;:::-;:33;;1219:190;-1:-1:-1;;;;1219:190:0:o;42889:1275::-;42956:7;42991;43093:13;;43086:4;:20;43082:1015;;;43131:14;43148:23;;;:17;:23;;;;;;-1:-1:-1;;;43237:24:0;;43233:845;;43902:113;43909:11;43902:113;;-1:-1:-1;;;43980:6:0;43962:25;;;;:17;:25;;;;;;43902:113;;43233:845;43108:989;43082:1015;44125:31;;-1:-1:-1;;;44125:31:0;;;;;;;;;;;74121:132;74029:6;;-1:-1:-1;;;;;74029:6:0;70122:10;74185:23;74177:68;;;;-1:-1:-1;;;74177:68:0;;8784:2:1;74177:68:0;;;8766:21:1;;;8803:18;;;8796:30;8862:34;8842:18;;;8835:62;8914:18;;74177:68:0;8582:356:1;12339:98:0;12397:7;12424:5;12428:1;12424;:5;:::i;12738:98::-;12796:7;12823:5;12827:1;12823;:5;:::i;57888:2454::-;57961:20;57984:13;58012;58008:44;;58034:18;;-1:-1:-1;;;58034:18:0;;;;;;;;;;;58008:44;-1:-1:-1;;;;;58540:22:0;;;;;;:18;:22;;;;31573:2;58540:22;;;:71;;58578:32;58566:45;;58540:71;;;58854:31;;;:17;:31;;;;;-1:-1:-1;45554:15:0;;45528:24;45524:46;45123:11;45098:23;45094:41;45091:52;45081:63;;58854:173;;59089:23;;;;58854:31;;58540:22;;59588:25;58540:22;;59441:335;59856:1;59842:12;59838:20;59796:346;59897:3;59888:7;59885:16;59796:346;;60115:7;60105:8;60102:1;60075:25;60072:1;60069;60064:59;59950:1;59937:15;59796:346;;;-1:-1:-1;60175:13:0;60171:45;;60197:19;;-1:-1:-1;;;60197:19:0;;;;;;;;;;;60171:45;60233:13;:19;-1:-1:-1;53444:185:0;;;:::o;75223:191::-;75316:6;;;-1:-1:-1;;;;;75333:17:0;;;-1:-1:-1;;;;;;75333:17:0;;;;;;;75366:40;;75316:6;;;75333:17;75316:6;;75366:40;;75297:16;;75366:40;75286:128;75223:191;:::o;56710:716::-;56894:88;;-1:-1:-1;;;56894:88:0;;56873:4;;-1:-1:-1;;;;;56894:45:0;;;;;:88;;70122:10;;56961:4;;56967:7;;56976:5;;56894:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;56894:88:0;;;;;;;;-1:-1:-1;;56894:88:0;;;;;;;;;;;;:::i;:::-;;;56890:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;57177:13:0;;57173:235;;57223:40;;-1:-1:-1;;;57223:40:0;;;;;;;;;;;57173:235;57366:6;57360:13;57351:6;57347:2;57343:15;57336:38;56890:529;-1:-1:-1;;;;;;57053:64:0;-1:-1:-1;;;57053:64:0;;-1:-1:-1;56710:716:0;;;;;;:::o;79416:114::-;79476:13;79509;79502:20;;;;;:::i;70242:1581::-;70725:4;70719:11;;70732:4;70715:22;70811:17;;;;70715:22;71169:5;71151:428;71217:1;71212:3;71208:11;71201:18;;71388:2;71382:4;71378:13;71374:2;71370:22;71365:3;71357:36;71482:2;71472:13;;;71539:25;;71557:5;;71539:25;71151:428;;;-1:-1:-1;71609:13:0;;;-1:-1:-1;;71724:14:0;;;71786:19;;;71724:14;70242:1581;-1:-1:-1;70242:1581:0:o;2086:296::-;2169:7;2212:4;2169:7;2227:118;2251:5;:12;2247:1;:16;2227:118;;;2300:33;2310:12;2324:5;2330:1;2324:8;;;;;;;;:::i;:::-;;;;;;;2300:9;:33::i;:::-;2285:48;-1:-1:-1;2265:3:0;;;;:::i;:::-;;;;2227:118;;;-1:-1:-1;2362:12:0;2086:296;-1:-1:-1;;;2086:296:0:o;8293:149::-;8356:7;8387:1;8383;:5;:51;;8518:13;8612:15;;;8648:4;8641:15;;;8695:4;8679:21;;8383:51;;;8518:13;8612:15;;;8648:4;8641:15;;;8695:4;8679:21;;8391:20;8450:268;-1:-1:-1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:173:1;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:367::-;255:8;265:6;319:3;312:4;304:6;300:17;296:27;286:55;;337:1;334;327:12;286:55;-1:-1:-1;360:20:1;;403:18;392:30;;389:50;;;435:1;432;425:12;389:50;472:4;464:6;460:17;448:29;;532:3;525:4;515:6;512:1;508:14;500:6;496:27;492:38;489:47;486:67;;;549:1;546;539:12;486:67;192:367;;;;;:::o;564:186::-;623:6;676:2;664:9;655:7;651:23;647:32;644:52;;;692:1;689;682:12;644:52;715:29;734:9;715:29;:::i;755:260::-;823:6;831;884:2;872:9;863:7;859:23;855:32;852:52;;;900:1;897;890:12;852:52;923:29;942:9;923:29;:::i;:::-;913:39;;971:38;1005:2;994:9;990:18;971:38;:::i;:::-;961:48;;755:260;;;;;:::o;1020:328::-;1097:6;1105;1113;1166:2;1154:9;1145:7;1141:23;1137:32;1134:52;;;1182:1;1179;1172:12;1134:52;1205:29;1224:9;1205:29;:::i;:::-;1195:39;;1253:38;1287:2;1276:9;1272:18;1253:38;:::i;:::-;1243:48;;1338:2;1327:9;1323:18;1310:32;1300:42;;1020:328;;;;;:::o;1353:1138::-;1448:6;1456;1464;1472;1525:3;1513:9;1504:7;1500:23;1496:33;1493:53;;;1542:1;1539;1532:12;1493:53;1565:29;1584:9;1565:29;:::i;:::-;1555:39;;1613:38;1647:2;1636:9;1632:18;1613:38;:::i;:::-;1603:48;;1698:2;1687:9;1683:18;1670:32;1660:42;;1753:2;1742:9;1738:18;1725:32;1776:18;1817:2;1809:6;1806:14;1803:34;;;1833:1;1830;1823:12;1803:34;1871:6;1860:9;1856:22;1846:32;;1916:7;1909:4;1905:2;1901:13;1897:27;1887:55;;1938:1;1935;1928:12;1887:55;1974:2;1961:16;1996:2;1992;1989:10;1986:36;;;2002:18;;:::i;:::-;2077:2;2071:9;2045:2;2131:13;;-1:-1:-1;;2127:22:1;;;2151:2;2123:31;2119:40;2107:53;;;2175:18;;;2195:22;;;2172:46;2169:72;;;2221:18;;:::i;:::-;2261:10;2257:2;2250:22;2296:2;2288:6;2281:18;2336:7;2331:2;2326;2322;2318:11;2314:20;2311:33;2308:53;;;2357:1;2354;2347:12;2308:53;2413:2;2408;2404;2400:11;2395:2;2387:6;2383:15;2370:46;2458:1;2453:2;2448;2440:6;2436:15;2432:24;2425:35;2479:6;2469:16;;;;;;;1353:1138;;;;;;;:::o;2496:511::-;2591:6;2599;2607;2660:2;2648:9;2639:7;2635:23;2631:32;2628:52;;;2676:1;2673;2666:12;2628:52;2699:29;2718:9;2699:29;:::i;:::-;2689:39;;2779:2;2768:9;2764:18;2751:32;2806:18;2798:6;2795:30;2792:50;;;2838:1;2835;2828:12;2792:50;2877:70;2939:7;2930:6;2919:9;2915:22;2877:70;:::i;:::-;2496:511;;2966:8;;-1:-1:-1;2851:96:1;;-1:-1:-1;;;;2496:511:1:o;3012:347::-;3077:6;3085;3138:2;3126:9;3117:7;3113:23;3109:32;3106:52;;;3154:1;3151;3144:12;3106:52;3177:29;3196:9;3177:29;:::i;:::-;3167:39;;3256:2;3245:9;3241:18;3228:32;3303:5;3296:13;3289:21;3282:5;3279:32;3269:60;;3325:1;3322;3315:12;3269:60;3348:5;3338:15;;;3012:347;;;;;:::o;3364:254::-;3432:6;3440;3493:2;3481:9;3472:7;3468:23;3464:32;3461:52;;;3509:1;3506;3499:12;3461:52;3532:29;3551:9;3532:29;:::i;:::-;3522:39;3608:2;3593:18;;;;3580:32;;-1:-1:-1;;;3364:254:1:o;3623:437::-;3709:6;3717;3770:2;3758:9;3749:7;3745:23;3741:32;3738:52;;;3786:1;3783;3776:12;3738:52;3826:9;3813:23;3859:18;3851:6;3848:30;3845:50;;;3891:1;3888;3881:12;3845:50;3930:70;3992:7;3983:6;3972:9;3968:22;3930:70;:::i;:::-;4019:8;;3904:96;;-1:-1:-1;3623:437:1;-1:-1:-1;;;;3623:437:1:o;4065:180::-;4124:6;4177:2;4165:9;4156:7;4152:23;4148:32;4145:52;;;4193:1;4190;4183:12;4145:52;-1:-1:-1;4216:23:1;;4065:180;-1:-1:-1;4065:180:1:o;4250:245::-;4308:6;4361:2;4349:9;4340:7;4336:23;4332:32;4329:52;;;4377:1;4374;4367:12;4329:52;4416:9;4403:23;4435:30;4459:5;4435:30;:::i;4500:249::-;4569:6;4622:2;4610:9;4601:7;4597:23;4593:32;4590:52;;;4638:1;4635;4628:12;4590:52;4670:9;4664:16;4689:30;4713:5;4689:30;:::i;4754:592::-;4825:6;4833;4886:2;4874:9;4865:7;4861:23;4857:32;4854:52;;;4902:1;4899;4892:12;4854:52;4942:9;4929:23;4971:18;5012:2;5004:6;5001:14;4998:34;;;5028:1;5025;5018:12;4998:34;5066:6;5055:9;5051:22;5041:32;;5111:7;5104:4;5100:2;5096:13;5092:27;5082:55;;5133:1;5130;5123:12;5082:55;5173:2;5160:16;5199:2;5191:6;5188:14;5185:34;;;5215:1;5212;5205:12;5185:34;5260:7;5255:2;5246:6;5242:2;5238:15;5234:24;5231:37;5228:57;;;5281:1;5278;5271:12;5228:57;5312:2;5304:11;;;;;5334:6;;-1:-1:-1;4754:592:1;;-1:-1:-1;;;;4754:592:1:o;5351:272::-;5409:6;5462:2;5450:9;5441:7;5437:23;5433:32;5430:52;;;5478:1;5475;5468:12;5430:52;5517:9;5504:23;5567:6;5560:5;5556:18;5549:5;5546:29;5536:57;;5589:1;5586;5579:12;5813:269;5870:6;5923:2;5911:9;5902:7;5898:23;5894:32;5891:52;;;5939:1;5936;5929:12;5891:52;5978:9;5965:23;6028:4;6021:5;6017:16;6010:5;6007:27;5997:55;;6048:1;6045;6038:12;6087:257;6128:3;6166:5;6160:12;6193:6;6188:3;6181:19;6209:63;6265:6;6258:4;6253:3;6249:14;6242:4;6235:5;6231:16;6209:63;:::i;:::-;6326:2;6305:15;-1:-1:-1;;6301:29:1;6292:39;;;;6333:4;6288:50;;6087:257;-1:-1:-1;;6087:257:1:o;6583:470::-;6762:3;6800:6;6794:13;6816:53;6862:6;6857:3;6850:4;6842:6;6838:17;6816:53;:::i;:::-;6932:13;;6891:16;;;;6954:57;6932:13;6891:16;6988:4;6976:17;;6954:57;:::i;:::-;7027:20;;6583:470;-1:-1:-1;;;;6583:470:1:o;7266:488::-;-1:-1:-1;;;;;7535:15:1;;;7517:34;;7587:15;;7582:2;7567:18;;7560:43;7634:2;7619:18;;7612:34;;;7682:3;7677:2;7662:18;;7655:31;;;7460:4;;7703:45;;7728:19;;7720:6;7703:45;:::i;:::-;7695:53;7266:488;-1:-1:-1;;;;;;7266:488:1:o;7951:219::-;8100:2;8089:9;8082:21;8063:4;8120:44;8160:2;8149:9;8145:18;8137:6;8120:44;:::i;9867:128::-;9907:3;9938:1;9934:6;9931:1;9928:13;9925:39;;;9944:18;;:::i;:::-;-1:-1:-1;9980:9:1;;9867:128::o;10000:204::-;10038:3;10074:4;10071:1;10067:12;10106:4;10103:1;10099:12;10141:3;10135:4;10131:14;10126:3;10123:23;10120:49;;;10149:18;;:::i;:::-;10185:13;;10000:204;-1:-1:-1;;;10000:204:1:o;10209:217::-;10249:1;10275;10265:132;;10319:10;10314:3;10310:20;10307:1;10300:31;10354:4;10351:1;10344:15;10382:4;10379:1;10372:15;10265:132;-1:-1:-1;10411:9:1;;10209:217::o;10431:168::-;10471:7;10537:1;10533;10529:6;10525:14;10522:1;10519:21;10514:1;10507:9;10500:17;10496:45;10493:71;;;10544:18;;:::i;:::-;-1:-1:-1;10584:9:1;;10431:168::o;10604:125::-;10644:4;10672:1;10669;10666:8;10663:34;;;10677:18;;:::i;:::-;-1:-1:-1;10714:9:1;;10604:125::o;10734:258::-;10806:1;10816:113;10830:6;10827:1;10824:13;10816:113;;;10906:11;;;10900:18;10887:11;;;10880:39;10852:2;10845:10;10816:113;;;10947:6;10944:1;10941:13;10938:48;;;-1:-1:-1;;10982:1:1;10964:16;;10957:27;10734:258::o;10997:380::-;11076:1;11072:12;;;;11119;;;11140:61;;11194:4;11186:6;11182:17;11172:27;;11140:61;11247:2;11239:6;11236:14;11216:18;11213:38;11210:161;;;11293:10;11288:3;11284:20;11281:1;11274:31;11328:4;11325:1;11318:15;11356:4;11353:1;11346:15;11210:161;;10997:380;;;:::o;11382:135::-;11421:3;-1:-1:-1;;11442:17:1;;11439:43;;;11462:18;;:::i;:::-;-1:-1:-1;11509:1:1;11498:13;;11382:135::o;11522:127::-;11583:10;11578:3;11574:20;11571:1;11564:31;11614:4;11611:1;11604:15;11638:4;11635:1;11628:15;11654:127;11715:10;11710:3;11706:20;11703:1;11696:31;11746:4;11743:1;11736:15;11770:4;11767:1;11760:15;11786:127;11847:10;11842:3;11838:20;11835:1;11828:31;11878:4;11875:1;11868:15;11902:4;11899:1;11892:15;11918:131;-1:-1:-1;;;;;;11992:32:1;;11982:43;;11972:71;;12039:1;12036;12029:12
Swarm Source
ipfs://dfb3dcb72ae31bb8ef614703188cbd611fe4a7fcafdc765cb1b6a39ce6f775c2
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.