ERC-721
Overview
Max Total Supply
2,222 DREAM
Holders
319
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 DREAMLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Dream
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "https://github.com/chiru-labs/ERC721A/blob/main/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract Dream is ERC721A, Ownable { uint256 public TOTAL_SUPPLY = 8888; uint256 public RESERVED_SUPPLY = 1600; // reserved for free mint bytes32 public presaleRoot; bytes32 public freeMintRoot; uint256 public presalePrice = 0.08 ether; uint256 public mintPrice = 0.10 ether; bool public isPublicSale; bool public isPresale; bool public isFreeMint; uint256 public maxPublicMint = 6; bool isRevealed = false; string public baseURI = ""; string public preRevealedURI = ""; mapping(address => uint256) public publicMintCount; mapping(address => uint256) public freeMintCount; mapping(address => uint256) public presaleMintCount; constructor() ERC721A("Dream", "DREAM") {} // ======== PUBLIC MINTING FUNCTIONS ======== function presaleMint( uint256 _quantity, bytes32[] calldata _proof, uint256 _maxQuantity ) external payable { require(isPresale, "presale has not started"); require( _quantity + totalSupply() <= TOTAL_SUPPLY - RESERVED_SUPPLY, "Exceed total supply" ); require( _quantity + presaleMintCount[msg.sender] <= _maxQuantity, "Exceed max mint amount" ); require(msg.value >= presalePrice * _quantity, "Not enough eth sent"); require( MerkleProof.verify( _proof, presaleRoot, _convertLeaf(msg.sender, _maxQuantity) ), "Invalid proof" ); presaleMintCount[msg.sender] += _quantity; _mint(msg.sender, _quantity); } function publicSaleMint(uint256 _quantity) public payable { require(isPublicSale, "Public sale has not started"); require(msg.value >= mintPrice * _quantity, "Not enough eth sent"); require( publicMintCount[msg.sender] + _quantity <= maxPublicMint, "Max public mint" ); require( _quantity + totalSupply() <= TOTAL_SUPPLY - RESERVED_SUPPLY, "Exceed total supply" ); publicMintCount[msg.sender] += _quantity; _mint(msg.sender, _quantity); } function freeMint( uint256 _quantity, bytes32[] calldata _proof, uint256 _maxQuantity ) external { require(isFreeMint, "Free mint has not started"); require( _quantity + totalSupply() <= TOTAL_SUPPLY, "Exceed total supply" ); require( _quantity + freeMintCount[msg.sender] <= _maxQuantity, "Exceed max mint amount" ); require( MerkleProof.verify( _proof, freeMintRoot, _convertLeaf(msg.sender, _maxQuantity) ), "Invalid proof" ); freeMintCount[msg.sender] += _quantity; _mint(msg.sender, _quantity); } // ======== UTILS ======== function _convertLeaf(address _user, uint256 _quantity) internal pure returns (bytes32) { string memory quantity_string = Strings.toString(_quantity); string memory address_string = Strings.toHexString( uint256(uint160(_user)), 20 ); return keccak256(abi.encodePacked(quantity_string, address_string)); } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!isRevealed) { return preRevealedURI; } return string( abi.encodePacked(baseURI, Strings.toString(tokenId), ".json") ); } function _startTokenId() internal view virtual override(ERC721A) returns (uint256) { return 1; } // ======== WITHDRAW ======== function withdraw() external onlyOwner { (bool os, ) = payable(owner()).call{value: address(this).balance}(""); require(os); } // ======== SETTERS ======== function teamMint(uint256 _quantity) external onlyOwner { require(_quantity + totalSupply() <= TOTAL_SUPPLY, "Exceed total supply"); _mint(msg.sender, _quantity); } function setRevealed(bool _isRevealed) external onlyOwner { isRevealed = _isRevealed; } function setMaxPublicMint(uint256 _max) external onlyOwner { maxPublicMint = _max; } function setFreeMintRoot(bytes32 _root) public onlyOwner { freeMintRoot = _root; } function setPresaleRoot(bytes32 _root) public onlyOwner { presaleRoot = _root; } function setMintPrice(uint256 _presale, uint256 _public) public onlyOwner { presalePrice = _presale; mintPrice = _public; } function setBaseURI(string calldata _baseURI) public onlyOwner { baseURI = _baseURI; } function setPrerevealedURI(string calldata _preRevealedURI) public onlyOwner { preRevealedURI = _preRevealedURI; } function setTotalSupply(uint256 _supply) public onlyOwner { TOTAL_SUPPLY = _supply; } function setReservedSupply(uint256 _supply) public onlyOwner { RESERVED_SUPPLY = _supply; } function setMintBatch( bool _public, bool _presale, bool _free ) public onlyOwner { isPublicSale = _public; isPresale = _presale; isFreeMint = _free; } }
// SPDX-License-Identifier: MIT // 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) } } }
// SPDX-License-Identifier: MIT // 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @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].value`. 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) } } }
// SPDX-License-Identifier: MIT // 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"RESERVED_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"uint256","name":"_maxQuantity","type":"uint256"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freeMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMintRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFreeMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublicMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preRevealedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"uint256","name":"_maxQuantity","type":"uint256"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setFreeMintRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setMaxPublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_public","type":"bool"},{"internalType":"bool","name":"_presale","type":"bool"},{"internalType":"bool","name":"_free","type":"bool"}],"name":"setMintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_presale","type":"uint256"},{"internalType":"uint256","name":"_public","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_preRevealedURI","type":"string"}],"name":"setPrerevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setPresaleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"setReservedSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isRevealed","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"setTotalSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"teamMint","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
60806040526122b8600955610640600a5567011c37937e080000600d5567016345785d8a0000600e5560066010556000601160006101000a81548160ff02191690831515021790555060405180602001604052806000815250601290805190602001906200006f92919062000259565b5060405180602001604052806000815250601390805190602001906200009792919062000259565b50348015620000a557600080fd5b506040518060400160405280600581526020017f447265616d0000000000000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f445245414d00000000000000000000000000000000000000000000000000000081525081600290805190602001906200012a92919062000259565b5080600390805190602001906200014392919062000259565b50620001546200018260201b60201c565b60008190555050506200017c620001706200018b60201b60201c565b6200019360201b60201c565b6200036e565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002679062000309565b90600052602060002090601f0160209004810192826200028b5760008555620002d7565b82601f10620002a657805160ff1916838001178555620002d7565b82800160010185558215620002d7579182015b82811115620002d6578251825591602001919060010190620002b9565b5b509050620002e69190620002ea565b5090565b5b8082111562000305576000816000905550600101620002eb565b5090565b600060028204905060018216806200032257607f821691505b602082108114156200033957620003386200033f565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b613fa5806200037e6000396000f3fe6080604052600436106102875760003560e01c80636c0360eb1161015a578063a886c377116100c1578063cabadaa01161007a578063cabadaa01461099b578063de210ab3146109c6578063e0a80853146109f1578063e985e9c514610a1a578063f2fde38b14610a57578063f7ea7a3d14610a8057610287565b8063a886c3771461089a578063b3ab66b0146108c5578063b658b60f146108e1578063b88d4fde1461090a578063c2d05a6e14610933578063c87b56dd1461095e57610287565b8063902d55a511610113578063902d55a51461078857806395364a84146107b357806395d89b41146107de57806396330b5f14610809578063a22cb46514610846578063a5a865dc1461086f57610287565b80636c0360eb1461068a57806370a08231146106b557806370c42575146106f2578063715018a61461071b57806385449697146107325780638da5cb5b1461075d57610287565b806323b872dd116101fe5780633ccfd60b116101b75780633ccfd60b1461057c57806342842e0e1461059357806355f804b3146105bc5780635ecf8a80146105e55780636352211e146106225780636817c76c1461065f57610287565b806323b872dd146104915780632656c57f146104ba578063270ab52c146104e35780632fbba1151461050c5780632ff5e3871461053557806331a53e9a1461055157610287565b8063081812fc11610250578063081812fc14610371578063094e4072146103ae578063095ea7b3146103eb57806318160ddd1461041457806318f6855d1461043f5780631e13f86b1461046857610287565b80620e7fa81461028c57806301ffc9a7146102b75780630442bfa8146102f4578063048130ef1461031d57806306fdde0314610346575b600080fd5b34801561029857600080fd5b506102a1610aa9565b6040516102ae919061381d565b60405180910390f35b3480156102c357600080fd5b506102de60048036038101906102d991906130e9565b610aaf565b6040516102eb9190613665565b60405180910390f35b34801561030057600080fd5b5061031b60048036038101906103169190613231565b610b41565b005b34801561032957600080fd5b50610344600480360381019061033f9190613143565b610b5b565b005b34801561035257600080fd5b5061035b610b79565b604051610368919061369b565b60405180910390f35b34801561037d57600080fd5b5061039860048036038101906103939190613190565b610c0b565b6040516103a591906135fe565b60405180910390f35b3480156103ba57600080fd5b506103d560048036038101906103d09190612e79565b610c8a565b6040516103e2919061381d565b60405180910390f35b3480156103f757600080fd5b50610412600480360381019061040d9190612ffc565b610ca2565b005b34801561042057600080fd5b50610429610de6565b604051610436919061381d565b60405180910390f35b34801561044b57600080fd5b5061046660048036038101906104619190613069565b610dfd565b005b34801561047457600080fd5b5061048f600480360381019061048a9190613190565b610e58565b005b34801561049d57600080fd5b506104b860048036038101906104b39190612ee6565b610e6a565b005b3480156104c657600080fd5b506104e160048036038101906104dc91906131bd565b61118f565b005b3480156104ef57600080fd5b5061050a60048036038101906105059190613190565b6113be565b005b34801561051857600080fd5b50610533600480360381019061052e9190613190565b6113d0565b005b61054f600480360381019061054a91906131bd565b61143c565b005b34801561055d57600080fd5b506105666116c8565b604051610573919061381d565b60405180910390f35b34801561058857600080fd5b506105916116ce565b005b34801561059f57600080fd5b506105ba60048036038101906105b59190612ee6565b611756565b005b3480156105c857600080fd5b506105e360048036038101906105de9190613143565b611776565b005b3480156105f157600080fd5b5061060c60048036038101906106079190612e79565b611794565b604051610619919061381d565b60405180910390f35b34801561062e57600080fd5b5061064960048036038101906106449190613190565b6117ac565b60405161065691906135fe565b60405180910390f35b34801561066b57600080fd5b506106746117be565b604051610681919061381d565b60405180910390f35b34801561069657600080fd5b5061069f6117c4565b6040516106ac919061369b565b60405180910390f35b3480156106c157600080fd5b506106dc60048036038101906106d79190612e79565b611852565b6040516106e9919061381d565b60405180910390f35b3480156106fe57600080fd5b50610719600480360381019061071491906130bc565b61190b565b005b34801561072757600080fd5b5061073061191d565b005b34801561073e57600080fd5b50610747611931565b6040516107549190613680565b60405180910390f35b34801561076957600080fd5b50610772611937565b60405161077f91906135fe565b60405180910390f35b34801561079457600080fd5b5061079d611961565b6040516107aa919061381d565b60405180910390f35b3480156107bf57600080fd5b506107c8611967565b6040516107d59190613665565b60405180910390f35b3480156107ea57600080fd5b506107f361197a565b604051610800919061369b565b60405180910390f35b34801561081557600080fd5b50610830600480360381019061082b9190612e79565b611a0c565b60405161083d919061381d565b60405180910390f35b34801561085257600080fd5b5061086d60048036038101906108689190612fbc565b611a24565b005b34801561087b57600080fd5b50610884611b9c565b6040516108919190613665565b60405180910390f35b3480156108a657600080fd5b506108af611baf565b6040516108bc9190613680565b60405180910390f35b6108df60048036038101906108da9190613190565b611bb5565b005b3480156108ed57600080fd5b50610908600480360381019061090391906130bc565b611daa565b005b34801561091657600080fd5b50610931600480360381019061092c9190612f39565b611dbc565b005b34801561093f57600080fd5b50610948611e2f565b6040516109559190613665565b60405180910390f35b34801561096a57600080fd5b5061098560048036038101906109809190613190565b611e42565b604051610992919061369b565b60405180910390f35b3480156109a757600080fd5b506109b0611f1d565b6040516109bd919061381d565b60405180910390f35b3480156109d257600080fd5b506109db611f23565b6040516109e8919061369b565b60405180910390f35b3480156109fd57600080fd5b50610a186004803603810190610a13919061303c565b611fb1565b005b348015610a2657600080fd5b50610a416004803603810190610a3c9190612ea6565b611fd6565b604051610a4e9190613665565b60405180910390f35b348015610a6357600080fd5b50610a7e6004803603810190610a799190612e79565b61206a565b005b348015610a8c57600080fd5b50610aa76004803603810190610aa29190613190565b6120ee565b005b600d5481565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b0a57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b3a5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610b49612100565b81600d8190555080600e819055505050565b610b63612100565b818160139190610b74929190612c3c565b505050565b606060028054610b8890613af0565b80601f0160208091040260200160405190810160405280929190818152602001828054610bb490613af0565b8015610c015780601f10610bd657610100808354040283529160200191610c01565b820191906000526020600020905b815481529060010190602001808311610be457829003601f168201915b5050505050905090565b6000610c168261217e565b610c4c576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60166020528060005260406000206000915090505481565b6000610cad826117ac565b90508073ffffffffffffffffffffffffffffffffffffffff16610cce6121dd565b73ffffffffffffffffffffffffffffffffffffffff1614610d3157610cfa81610cf56121dd565b611fd6565b610d30576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610df06121e5565b6001546000540303905090565b610e05612100565b82600f60006101000a81548160ff02191690831515021790555081600f60016101000a81548160ff02191690831515021790555080600f60026101000a81548160ff021916908315150217905550505050565b610e60612100565b80600a8190555050565b6000610e75826121ee565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610edc576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610ee8846122bc565b91509150610efe8187610ef96121dd565b6122e3565b610f4a57610f1386610f0e6121dd565b611fd6565b610f49576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610fb1576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610fbe8686866001612327565b8015610fc957600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506110978561107388888761232d565b7c020000000000000000000000000000000000000000000000000000000017612355565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416141561111f57600060018501905060006004600083815260200190815260200160002054141561111d57600054811461111c578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46111878686866001612380565b505050505050565b600f60029054906101000a900460ff166111de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d59061371d565b60405180910390fd5b6009546111e9610de6565b856111f491906138f1565b1115611235576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122c9061375d565b60405180910390fd5b80601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548561128191906138f1565b11156112c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b99061379d565b60405180910390fd5b611319838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600c546113143385612386565b6123ec565b611358576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134f906137dd565b60405180910390fd5b83601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546113a791906138f1565b925050819055506113b83385612403565b50505050565b6113c6612100565b8060108190555050565b6113d8612100565b6009546113e3610de6565b826113ee91906138f1565b111561142f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114269061375d565b60405180910390fd5b6114393382612403565b50565b600f60019054906101000a900460ff1661148b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611482906137bd565b60405180910390fd5b600a5460095461149b91906139d2565b6114a3610de6565b856114ae91906138f1565b11156114ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e69061375d565b60405180910390fd5b80601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548561153b91906138f1565b111561157c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115739061379d565b60405180910390fd5b83600d5461158a9190613978565b3410156115cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c39061377d565b60405180910390fd5b611623838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600b5461161e3385612386565b6123ec565b611662576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611659906137dd565b60405180910390fd5b83601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546116b191906138f1565b925050819055506116c23385612403565b50505050565b600a5481565b6116d6612100565b60006116e0611937565b73ffffffffffffffffffffffffffffffffffffffff1647604051611703906135e9565b60006040518083038185875af1925050503d8060008114611740576040519150601f19603f3d011682016040523d82523d6000602084013e611745565b606091505b505090508061175357600080fd5b50565b61177183838360405180602001604052806000815250611dbc565b505050565b61177e612100565b81816012919061178f929190612c3c565b505050565b60156020528060005260406000206000915090505481565b60006117b7826121ee565b9050919050565b600e5481565b601280546117d190613af0565b80601f01602080910402602001604051908101604052809291908181526020018280546117fd90613af0565b801561184a5780601f1061181f5761010080835404028352916020019161184a565b820191906000526020600020905b81548152906001019060200180831161182d57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118ba576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611913612100565b80600c8190555050565b611925612100565b61192f60006125c0565b565b600b5481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60095481565b600f60019054906101000a900460ff1681565b60606003805461198990613af0565b80601f01602080910402602001604051908101604052809291908181526020018280546119b590613af0565b8015611a025780601f106119d757610100808354040283529160200191611a02565b820191906000526020600020905b8154815290600101906020018083116119e557829003601f168201915b5050505050905090565b60146020528060005260406000206000915090505481565b611a2c6121dd565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a91576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611a9e6121dd565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b4b6121dd565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b909190613665565b60405180910390a35050565b600f60009054906101000a900460ff1681565b600c5481565b600f60009054906101000a900460ff16611c04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bfb906136fd565b60405180910390fd5b80600e54611c129190613978565b341015611c54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4b9061377d565b60405180910390fd5b60105481601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ca291906138f1565b1115611ce3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cda906137fd565b60405180910390fd5b600a54600954611cf391906139d2565b611cfb610de6565b82611d0691906138f1565b1115611d47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3e9061375d565b60405180910390fd5b80601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d9691906138f1565b92505081905550611da73382612403565b50565b611db2612100565b80600b8190555050565b611dc7848484610e6a565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611e2957611df284848484612686565b611e28576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600f60029054906101000a900460ff1681565b6060601160009054906101000a900460ff16611eea5760138054611e6590613af0565b80601f0160208091040260200160405190810160405280929190818152602001828054611e9190613af0565b8015611ede5780601f10611eb357610100808354040283529160200191611ede565b820191906000526020600020905b815481529060010190602001808311611ec157829003601f168201915b50505050509050611f18565b6012611ef5836127e6565b604051602001611f069291906135ba565b60405160208183030381529060405290505b919050565b60105481565b60138054611f3090613af0565b80601f0160208091040260200160405190810160405280929190818152602001828054611f5c90613af0565b8015611fa95780601f10611f7e57610100808354040283529160200191611fa9565b820191906000526020600020905b815481529060010190602001808311611f8c57829003601f168201915b505050505081565b611fb9612100565b80601160006101000a81548160ff02191690831515021790555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612072612100565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156120e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d9906136dd565b60405180910390fd5b6120eb816125c0565b50565b6120f6612100565b8060098190555050565b612108612947565b73ffffffffffffffffffffffffffffffffffffffff16612126611937565b73ffffffffffffffffffffffffffffffffffffffff161461217c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121739061373d565b60405180910390fd5b565b6000816121896121e5565b11158015612198575060005482105b80156121d6575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b600080829050806121fd6121e5565b11612285576000548110156122845760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612282575b600081141561227857600460008360019003935083815260200190815260200160002054905061224d565b80925050506122b7565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861234486868461294f565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600080612392836127e6565b905060006123b78573ffffffffffffffffffffffffffffffffffffffff166014612958565b905081816040516020016123cc929190613596565b604051602081830303815290604052805190602001209250505092915050565b6000826123f98584612b94565b1490509392505050565b6000805490506000821415612444576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6124516000848385612327565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506124c8836124b9600086600061232d565b6124c285612bea565b17612355565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461256957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905061252e565b5060008214156125a5576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506125bb6000848385612380565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026126ac6121dd565b8786866040518563ffffffff1660e01b81526004016126ce9493929190613619565b602060405180830381600087803b1580156126e857600080fd5b505af192505050801561271957506040513d601f19601f820116820180604052508101906127169190613116565b60015b612793573d8060008114612749576040519150601f19603f3d011682016040523d82523d6000602084013e61274e565b606091505b5060008151141561278b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600082141561282e576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612942565b600082905060005b6000821461286057808061284990613b53565b915050600a826128599190613947565b9150612836565b60008167ffffffffffffffff81111561287c5761287b613c89565b5b6040519080825280601f01601f1916602001820160405280156128ae5781602001600182028036833780820191505090505b5090505b6000851461293b576001826128c791906139d2565b9150600a856128d69190613b9c565b60306128e291906138f1565b60f81b8183815181106128f8576128f7613c5a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856129349190613947565b94506128b2565b8093505050505b919050565b600033905090565b60009392505050565b60606000600283600261296b9190613978565b61297591906138f1565b67ffffffffffffffff81111561298e5761298d613c89565b5b6040519080825280601f01601f1916602001820160405280156129c05781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106129f8576129f7613c5a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612a5c57612a5b613c5a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002612a9c9190613978565b612aa691906138f1565b90505b6001811115612b46577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612ae857612ae7613c5a565b5b1a60f81b828281518110612aff57612afe613c5a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612b3f90613ac6565b9050612aa9565b5060008414612b8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b81906136bd565b60405180910390fd5b8091505092915050565b60008082905060005b8451811015612bdf57612bca82868381518110612bbd57612bbc613c5a565b5b6020026020010151612bfa565b91508080612bd790613b53565b915050612b9d565b508091505092915050565b60006001821460e11b9050919050565b6000818310612c1257612c0d8284612c25565b612c1d565b612c1c8383612c25565b5b905092915050565b600082600052816020526040600020905092915050565b828054612c4890613af0565b90600052602060002090601f016020900481019282612c6a5760008555612cb1565b82601f10612c8357803560ff1916838001178555612cb1565b82800160010185558215612cb1579182015b82811115612cb0578235825591602001919060010190612c95565b5b509050612cbe9190612cc2565b5090565b5b80821115612cdb576000816000905550600101612cc3565b5090565b6000612cf2612ced8461385d565b613838565b905082815260208101848484011115612d0e57612d0d613cc7565b5b612d19848285613a84565b509392505050565b600081359050612d3081613efc565b92915050565b60008083601f840112612d4c57612d4b613cbd565b5b8235905067ffffffffffffffff811115612d6957612d68613cb8565b5b602083019150836020820283011115612d8557612d84613cc2565b5b9250929050565b600081359050612d9b81613f13565b92915050565b600081359050612db081613f2a565b92915050565b600081359050612dc581613f41565b92915050565b600081519050612dda81613f41565b92915050565b600082601f830112612df557612df4613cbd565b5b8135612e05848260208601612cdf565b91505092915050565b60008083601f840112612e2457612e23613cbd565b5b8235905067ffffffffffffffff811115612e4157612e40613cb8565b5b602083019150836001820283011115612e5d57612e5c613cc2565b5b9250929050565b600081359050612e7381613f58565b92915050565b600060208284031215612e8f57612e8e613cd1565b5b6000612e9d84828501612d21565b91505092915050565b60008060408385031215612ebd57612ebc613cd1565b5b6000612ecb85828601612d21565b9250506020612edc85828601612d21565b9150509250929050565b600080600060608486031215612eff57612efe613cd1565b5b6000612f0d86828701612d21565b9350506020612f1e86828701612d21565b9250506040612f2f86828701612e64565b9150509250925092565b60008060008060808587031215612f5357612f52613cd1565b5b6000612f6187828801612d21565b9450506020612f7287828801612d21565b9350506040612f8387828801612e64565b925050606085013567ffffffffffffffff811115612fa457612fa3613ccc565b5b612fb087828801612de0565b91505092959194509250565b60008060408385031215612fd357612fd2613cd1565b5b6000612fe185828601612d21565b9250506020612ff285828601612d8c565b9150509250929050565b6000806040838503121561301357613012613cd1565b5b600061302185828601612d21565b925050602061303285828601612e64565b9150509250929050565b60006020828403121561305257613051613cd1565b5b600061306084828501612d8c565b91505092915050565b60008060006060848603121561308257613081613cd1565b5b600061309086828701612d8c565b93505060206130a186828701612d8c565b92505060406130b286828701612d8c565b9150509250925092565b6000602082840312156130d2576130d1613cd1565b5b60006130e084828501612da1565b91505092915050565b6000602082840312156130ff576130fe613cd1565b5b600061310d84828501612db6565b91505092915050565b60006020828403121561312c5761312b613cd1565b5b600061313a84828501612dcb565b91505092915050565b6000806020838503121561315a57613159613cd1565b5b600083013567ffffffffffffffff81111561317857613177613ccc565b5b61318485828601612e0e565b92509250509250929050565b6000602082840312156131a6576131a5613cd1565b5b60006131b484828501612e64565b91505092915050565b600080600080606085870312156131d7576131d6613cd1565b5b60006131e587828801612e64565b945050602085013567ffffffffffffffff81111561320657613205613ccc565b5b61321287828801612d36565b9350935050604061322587828801612e64565b91505092959194509250565b6000806040838503121561324857613247613cd1565b5b600061325685828601612e64565b925050602061326785828601612e64565b9150509250929050565b61327a81613a06565b82525050565b61328981613a18565b82525050565b61329881613a24565b82525050565b60006132a9826138a3565b6132b381856138b9565b93506132c3818560208601613a93565b6132cc81613cd6565b840191505092915050565b60006132e2826138ae565b6132ec81856138d5565b93506132fc818560208601613a93565b61330581613cd6565b840191505092915050565b600061331b826138ae565b61332581856138e6565b9350613335818560208601613a93565b80840191505092915050565b6000815461334e81613af0565b61335881866138e6565b945060018216600081146133735760018114613384576133b7565b60ff198316865281860193506133b7565b61338d8561388e565b60005b838110156133af57815481890152600182019150602081019050613390565b838801955050505b50505092915050565b60006133cd6020836138d5565b91506133d882613ce7565b602082019050919050565b60006133f06026836138d5565b91506133fb82613d10565b604082019050919050565b6000613413601b836138d5565b915061341e82613d5f565b602082019050919050565b60006134366019836138d5565b915061344182613d88565b602082019050919050565b60006134596005836138e6565b915061346482613db1565b600582019050919050565b600061347c6020836138d5565b915061348782613dda565b602082019050919050565b600061349f6013836138d5565b91506134aa82613e03565b602082019050919050565b60006134c26013836138d5565b91506134cd82613e2c565b602082019050919050565b60006134e56016836138d5565b91506134f082613e55565b602082019050919050565b60006135086000836138ca565b915061351382613e7e565b600082019050919050565b600061352b6017836138d5565b915061353682613e81565b602082019050919050565b600061354e600d836138d5565b915061355982613eaa565b602082019050919050565b6000613571600f836138d5565b915061357c82613ed3565b602082019050919050565b61359081613a7a565b82525050565b60006135a28285613310565b91506135ae8284613310565b91508190509392505050565b60006135c68285613341565b91506135d28284613310565b91506135dd8261344c565b91508190509392505050565b60006135f4826134fb565b9150819050919050565b60006020820190506136136000830184613271565b92915050565b600060808201905061362e6000830187613271565b61363b6020830186613271565b6136486040830185613587565b818103606083015261365a818461329e565b905095945050505050565b600060208201905061367a6000830184613280565b92915050565b6000602082019050613695600083018461328f565b92915050565b600060208201905081810360008301526136b581846132d7565b905092915050565b600060208201905081810360008301526136d6816133c0565b9050919050565b600060208201905081810360008301526136f6816133e3565b9050919050565b6000602082019050818103600083015261371681613406565b9050919050565b6000602082019050818103600083015261373681613429565b9050919050565b600060208201905081810360008301526137568161346f565b9050919050565b6000602082019050818103600083015261377681613492565b9050919050565b60006020820190508181036000830152613796816134b5565b9050919050565b600060208201905081810360008301526137b6816134d8565b9050919050565b600060208201905081810360008301526137d68161351e565b9050919050565b600060208201905081810360008301526137f681613541565b9050919050565b6000602082019050818103600083015261381681613564565b9050919050565b60006020820190506138326000830184613587565b92915050565b6000613842613853565b905061384e8282613b22565b919050565b6000604051905090565b600067ffffffffffffffff82111561387857613877613c89565b5b61388182613cd6565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006138fc82613a7a565b915061390783613a7a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561393c5761393b613bcd565b5b828201905092915050565b600061395282613a7a565b915061395d83613a7a565b92508261396d5761396c613bfc565b5b828204905092915050565b600061398382613a7a565b915061398e83613a7a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156139c7576139c6613bcd565b5b828202905092915050565b60006139dd82613a7a565b91506139e883613a7a565b9250828210156139fb576139fa613bcd565b5b828203905092915050565b6000613a1182613a5a565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015613ab1578082015181840152602081019050613a96565b83811115613ac0576000848401525b50505050565b6000613ad182613a7a565b91506000821415613ae557613ae4613bcd565b5b600182039050919050565b60006002820490506001821680613b0857607f821691505b60208210811415613b1c57613b1b613c2b565b5b50919050565b613b2b82613cd6565b810181811067ffffffffffffffff82111715613b4a57613b49613c89565b5b80604052505050565b6000613b5e82613a7a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613b9157613b90613bcd565b5b600182019050919050565b6000613ba782613a7a565b9150613bb283613a7a565b925082613bc257613bc1613bfc565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f5075626c69632073616c6520686173206e6f7420737461727465640000000000600082015250565b7f46726565206d696e7420686173206e6f74207374617274656400000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f45786365656420746f74616c20737570706c7900000000000000000000000000600082015250565b7f4e6f7420656e6f756768206574682073656e7400000000000000000000000000600082015250565b7f457863656564206d6178206d696e7420616d6f756e7400000000000000000000600082015250565b50565b7f70726573616c6520686173206e6f742073746172746564000000000000000000600082015250565b7f496e76616c69642070726f6f6600000000000000000000000000000000000000600082015250565b7f4d6178207075626c6963206d696e740000000000000000000000000000000000600082015250565b613f0581613a06565b8114613f1057600080fd5b50565b613f1c81613a18565b8114613f2757600080fd5b50565b613f3381613a24565b8114613f3e57600080fd5b50565b613f4a81613a2e565b8114613f5557600080fd5b50565b613f6181613a7a565b8114613f6c57600080fd5b5056fea2646970667358221220e164884b5369c6c1e21b5ac145eda0a51c2c2913eee5e144d470dd70d50c7b6564736f6c63430008070033
Deployed Bytecode
0x6080604052600436106102875760003560e01c80636c0360eb1161015a578063a886c377116100c1578063cabadaa01161007a578063cabadaa01461099b578063de210ab3146109c6578063e0a80853146109f1578063e985e9c514610a1a578063f2fde38b14610a57578063f7ea7a3d14610a8057610287565b8063a886c3771461089a578063b3ab66b0146108c5578063b658b60f146108e1578063b88d4fde1461090a578063c2d05a6e14610933578063c87b56dd1461095e57610287565b8063902d55a511610113578063902d55a51461078857806395364a84146107b357806395d89b41146107de57806396330b5f14610809578063a22cb46514610846578063a5a865dc1461086f57610287565b80636c0360eb1461068a57806370a08231146106b557806370c42575146106f2578063715018a61461071b57806385449697146107325780638da5cb5b1461075d57610287565b806323b872dd116101fe5780633ccfd60b116101b75780633ccfd60b1461057c57806342842e0e1461059357806355f804b3146105bc5780635ecf8a80146105e55780636352211e146106225780636817c76c1461065f57610287565b806323b872dd146104915780632656c57f146104ba578063270ab52c146104e35780632fbba1151461050c5780632ff5e3871461053557806331a53e9a1461055157610287565b8063081812fc11610250578063081812fc14610371578063094e4072146103ae578063095ea7b3146103eb57806318160ddd1461041457806318f6855d1461043f5780631e13f86b1461046857610287565b80620e7fa81461028c57806301ffc9a7146102b75780630442bfa8146102f4578063048130ef1461031d57806306fdde0314610346575b600080fd5b34801561029857600080fd5b506102a1610aa9565b6040516102ae919061381d565b60405180910390f35b3480156102c357600080fd5b506102de60048036038101906102d991906130e9565b610aaf565b6040516102eb9190613665565b60405180910390f35b34801561030057600080fd5b5061031b60048036038101906103169190613231565b610b41565b005b34801561032957600080fd5b50610344600480360381019061033f9190613143565b610b5b565b005b34801561035257600080fd5b5061035b610b79565b604051610368919061369b565b60405180910390f35b34801561037d57600080fd5b5061039860048036038101906103939190613190565b610c0b565b6040516103a591906135fe565b60405180910390f35b3480156103ba57600080fd5b506103d560048036038101906103d09190612e79565b610c8a565b6040516103e2919061381d565b60405180910390f35b3480156103f757600080fd5b50610412600480360381019061040d9190612ffc565b610ca2565b005b34801561042057600080fd5b50610429610de6565b604051610436919061381d565b60405180910390f35b34801561044b57600080fd5b5061046660048036038101906104619190613069565b610dfd565b005b34801561047457600080fd5b5061048f600480360381019061048a9190613190565b610e58565b005b34801561049d57600080fd5b506104b860048036038101906104b39190612ee6565b610e6a565b005b3480156104c657600080fd5b506104e160048036038101906104dc91906131bd565b61118f565b005b3480156104ef57600080fd5b5061050a60048036038101906105059190613190565b6113be565b005b34801561051857600080fd5b50610533600480360381019061052e9190613190565b6113d0565b005b61054f600480360381019061054a91906131bd565b61143c565b005b34801561055d57600080fd5b506105666116c8565b604051610573919061381d565b60405180910390f35b34801561058857600080fd5b506105916116ce565b005b34801561059f57600080fd5b506105ba60048036038101906105b59190612ee6565b611756565b005b3480156105c857600080fd5b506105e360048036038101906105de9190613143565b611776565b005b3480156105f157600080fd5b5061060c60048036038101906106079190612e79565b611794565b604051610619919061381d565b60405180910390f35b34801561062e57600080fd5b5061064960048036038101906106449190613190565b6117ac565b60405161065691906135fe565b60405180910390f35b34801561066b57600080fd5b506106746117be565b604051610681919061381d565b60405180910390f35b34801561069657600080fd5b5061069f6117c4565b6040516106ac919061369b565b60405180910390f35b3480156106c157600080fd5b506106dc60048036038101906106d79190612e79565b611852565b6040516106e9919061381d565b60405180910390f35b3480156106fe57600080fd5b50610719600480360381019061071491906130bc565b61190b565b005b34801561072757600080fd5b5061073061191d565b005b34801561073e57600080fd5b50610747611931565b6040516107549190613680565b60405180910390f35b34801561076957600080fd5b50610772611937565b60405161077f91906135fe565b60405180910390f35b34801561079457600080fd5b5061079d611961565b6040516107aa919061381d565b60405180910390f35b3480156107bf57600080fd5b506107c8611967565b6040516107d59190613665565b60405180910390f35b3480156107ea57600080fd5b506107f361197a565b604051610800919061369b565b60405180910390f35b34801561081557600080fd5b50610830600480360381019061082b9190612e79565b611a0c565b60405161083d919061381d565b60405180910390f35b34801561085257600080fd5b5061086d60048036038101906108689190612fbc565b611a24565b005b34801561087b57600080fd5b50610884611b9c565b6040516108919190613665565b60405180910390f35b3480156108a657600080fd5b506108af611baf565b6040516108bc9190613680565b60405180910390f35b6108df60048036038101906108da9190613190565b611bb5565b005b3480156108ed57600080fd5b50610908600480360381019061090391906130bc565b611daa565b005b34801561091657600080fd5b50610931600480360381019061092c9190612f39565b611dbc565b005b34801561093f57600080fd5b50610948611e2f565b6040516109559190613665565b60405180910390f35b34801561096a57600080fd5b5061098560048036038101906109809190613190565b611e42565b604051610992919061369b565b60405180910390f35b3480156109a757600080fd5b506109b0611f1d565b6040516109bd919061381d565b60405180910390f35b3480156109d257600080fd5b506109db611f23565b6040516109e8919061369b565b60405180910390f35b3480156109fd57600080fd5b50610a186004803603810190610a13919061303c565b611fb1565b005b348015610a2657600080fd5b50610a416004803603810190610a3c9190612ea6565b611fd6565b604051610a4e9190613665565b60405180910390f35b348015610a6357600080fd5b50610a7e6004803603810190610a799190612e79565b61206a565b005b348015610a8c57600080fd5b50610aa76004803603810190610aa29190613190565b6120ee565b005b600d5481565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b0a57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b3a5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610b49612100565b81600d8190555080600e819055505050565b610b63612100565b818160139190610b74929190612c3c565b505050565b606060028054610b8890613af0565b80601f0160208091040260200160405190810160405280929190818152602001828054610bb490613af0565b8015610c015780601f10610bd657610100808354040283529160200191610c01565b820191906000526020600020905b815481529060010190602001808311610be457829003601f168201915b5050505050905090565b6000610c168261217e565b610c4c576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60166020528060005260406000206000915090505481565b6000610cad826117ac565b90508073ffffffffffffffffffffffffffffffffffffffff16610cce6121dd565b73ffffffffffffffffffffffffffffffffffffffff1614610d3157610cfa81610cf56121dd565b611fd6565b610d30576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610df06121e5565b6001546000540303905090565b610e05612100565b82600f60006101000a81548160ff02191690831515021790555081600f60016101000a81548160ff02191690831515021790555080600f60026101000a81548160ff021916908315150217905550505050565b610e60612100565b80600a8190555050565b6000610e75826121ee565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610edc576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610ee8846122bc565b91509150610efe8187610ef96121dd565b6122e3565b610f4a57610f1386610f0e6121dd565b611fd6565b610f49576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610fb1576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610fbe8686866001612327565b8015610fc957600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506110978561107388888761232d565b7c020000000000000000000000000000000000000000000000000000000017612355565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416141561111f57600060018501905060006004600083815260200190815260200160002054141561111d57600054811461111c578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46111878686866001612380565b505050505050565b600f60029054906101000a900460ff166111de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d59061371d565b60405180910390fd5b6009546111e9610de6565b856111f491906138f1565b1115611235576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122c9061375d565b60405180910390fd5b80601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548561128191906138f1565b11156112c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b99061379d565b60405180910390fd5b611319838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600c546113143385612386565b6123ec565b611358576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134f906137dd565b60405180910390fd5b83601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546113a791906138f1565b925050819055506113b83385612403565b50505050565b6113c6612100565b8060108190555050565b6113d8612100565b6009546113e3610de6565b826113ee91906138f1565b111561142f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114269061375d565b60405180910390fd5b6114393382612403565b50565b600f60019054906101000a900460ff1661148b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611482906137bd565b60405180910390fd5b600a5460095461149b91906139d2565b6114a3610de6565b856114ae91906138f1565b11156114ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e69061375d565b60405180910390fd5b80601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548561153b91906138f1565b111561157c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115739061379d565b60405180910390fd5b83600d5461158a9190613978565b3410156115cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c39061377d565b60405180910390fd5b611623838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600b5461161e3385612386565b6123ec565b611662576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611659906137dd565b60405180910390fd5b83601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546116b191906138f1565b925050819055506116c23385612403565b50505050565b600a5481565b6116d6612100565b60006116e0611937565b73ffffffffffffffffffffffffffffffffffffffff1647604051611703906135e9565b60006040518083038185875af1925050503d8060008114611740576040519150601f19603f3d011682016040523d82523d6000602084013e611745565b606091505b505090508061175357600080fd5b50565b61177183838360405180602001604052806000815250611dbc565b505050565b61177e612100565b81816012919061178f929190612c3c565b505050565b60156020528060005260406000206000915090505481565b60006117b7826121ee565b9050919050565b600e5481565b601280546117d190613af0565b80601f01602080910402602001604051908101604052809291908181526020018280546117fd90613af0565b801561184a5780601f1061181f5761010080835404028352916020019161184a565b820191906000526020600020905b81548152906001019060200180831161182d57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118ba576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611913612100565b80600c8190555050565b611925612100565b61192f60006125c0565b565b600b5481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60095481565b600f60019054906101000a900460ff1681565b60606003805461198990613af0565b80601f01602080910402602001604051908101604052809291908181526020018280546119b590613af0565b8015611a025780601f106119d757610100808354040283529160200191611a02565b820191906000526020600020905b8154815290600101906020018083116119e557829003601f168201915b5050505050905090565b60146020528060005260406000206000915090505481565b611a2c6121dd565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a91576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611a9e6121dd565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b4b6121dd565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b909190613665565b60405180910390a35050565b600f60009054906101000a900460ff1681565b600c5481565b600f60009054906101000a900460ff16611c04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bfb906136fd565b60405180910390fd5b80600e54611c129190613978565b341015611c54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4b9061377d565b60405180910390fd5b60105481601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ca291906138f1565b1115611ce3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cda906137fd565b60405180910390fd5b600a54600954611cf391906139d2565b611cfb610de6565b82611d0691906138f1565b1115611d47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3e9061375d565b60405180910390fd5b80601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d9691906138f1565b92505081905550611da73382612403565b50565b611db2612100565b80600b8190555050565b611dc7848484610e6a565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611e2957611df284848484612686565b611e28576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600f60029054906101000a900460ff1681565b6060601160009054906101000a900460ff16611eea5760138054611e6590613af0565b80601f0160208091040260200160405190810160405280929190818152602001828054611e9190613af0565b8015611ede5780601f10611eb357610100808354040283529160200191611ede565b820191906000526020600020905b815481529060010190602001808311611ec157829003601f168201915b50505050509050611f18565b6012611ef5836127e6565b604051602001611f069291906135ba565b60405160208183030381529060405290505b919050565b60105481565b60138054611f3090613af0565b80601f0160208091040260200160405190810160405280929190818152602001828054611f5c90613af0565b8015611fa95780601f10611f7e57610100808354040283529160200191611fa9565b820191906000526020600020905b815481529060010190602001808311611f8c57829003601f168201915b505050505081565b611fb9612100565b80601160006101000a81548160ff02191690831515021790555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612072612100565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156120e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d9906136dd565b60405180910390fd5b6120eb816125c0565b50565b6120f6612100565b8060098190555050565b612108612947565b73ffffffffffffffffffffffffffffffffffffffff16612126611937565b73ffffffffffffffffffffffffffffffffffffffff161461217c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121739061373d565b60405180910390fd5b565b6000816121896121e5565b11158015612198575060005482105b80156121d6575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b600080829050806121fd6121e5565b11612285576000548110156122845760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612282575b600081141561227857600460008360019003935083815260200190815260200160002054905061224d565b80925050506122b7565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861234486868461294f565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600080612392836127e6565b905060006123b78573ffffffffffffffffffffffffffffffffffffffff166014612958565b905081816040516020016123cc929190613596565b604051602081830303815290604052805190602001209250505092915050565b6000826123f98584612b94565b1490509392505050565b6000805490506000821415612444576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6124516000848385612327565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506124c8836124b9600086600061232d565b6124c285612bea565b17612355565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461256957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905061252e565b5060008214156125a5576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506125bb6000848385612380565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026126ac6121dd565b8786866040518563ffffffff1660e01b81526004016126ce9493929190613619565b602060405180830381600087803b1580156126e857600080fd5b505af192505050801561271957506040513d601f19601f820116820180604052508101906127169190613116565b60015b612793573d8060008114612749576040519150601f19603f3d011682016040523d82523d6000602084013e61274e565b606091505b5060008151141561278b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600082141561282e576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612942565b600082905060005b6000821461286057808061284990613b53565b915050600a826128599190613947565b9150612836565b60008167ffffffffffffffff81111561287c5761287b613c89565b5b6040519080825280601f01601f1916602001820160405280156128ae5781602001600182028036833780820191505090505b5090505b6000851461293b576001826128c791906139d2565b9150600a856128d69190613b9c565b60306128e291906138f1565b60f81b8183815181106128f8576128f7613c5a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856129349190613947565b94506128b2565b8093505050505b919050565b600033905090565b60009392505050565b60606000600283600261296b9190613978565b61297591906138f1565b67ffffffffffffffff81111561298e5761298d613c89565b5b6040519080825280601f01601f1916602001820160405280156129c05781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106129f8576129f7613c5a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612a5c57612a5b613c5a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002612a9c9190613978565b612aa691906138f1565b90505b6001811115612b46577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612ae857612ae7613c5a565b5b1a60f81b828281518110612aff57612afe613c5a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612b3f90613ac6565b9050612aa9565b5060008414612b8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b81906136bd565b60405180910390fd5b8091505092915050565b60008082905060005b8451811015612bdf57612bca82868381518110612bbd57612bbc613c5a565b5b6020026020010151612bfa565b91508080612bd790613b53565b915050612b9d565b508091505092915050565b60006001821460e11b9050919050565b6000818310612c1257612c0d8284612c25565b612c1d565b612c1c8383612c25565b5b905092915050565b600082600052816020526040600020905092915050565b828054612c4890613af0565b90600052602060002090601f016020900481019282612c6a5760008555612cb1565b82601f10612c8357803560ff1916838001178555612cb1565b82800160010185558215612cb1579182015b82811115612cb0578235825591602001919060010190612c95565b5b509050612cbe9190612cc2565b5090565b5b80821115612cdb576000816000905550600101612cc3565b5090565b6000612cf2612ced8461385d565b613838565b905082815260208101848484011115612d0e57612d0d613cc7565b5b612d19848285613a84565b509392505050565b600081359050612d3081613efc565b92915050565b60008083601f840112612d4c57612d4b613cbd565b5b8235905067ffffffffffffffff811115612d6957612d68613cb8565b5b602083019150836020820283011115612d8557612d84613cc2565b5b9250929050565b600081359050612d9b81613f13565b92915050565b600081359050612db081613f2a565b92915050565b600081359050612dc581613f41565b92915050565b600081519050612dda81613f41565b92915050565b600082601f830112612df557612df4613cbd565b5b8135612e05848260208601612cdf565b91505092915050565b60008083601f840112612e2457612e23613cbd565b5b8235905067ffffffffffffffff811115612e4157612e40613cb8565b5b602083019150836001820283011115612e5d57612e5c613cc2565b5b9250929050565b600081359050612e7381613f58565b92915050565b600060208284031215612e8f57612e8e613cd1565b5b6000612e9d84828501612d21565b91505092915050565b60008060408385031215612ebd57612ebc613cd1565b5b6000612ecb85828601612d21565b9250506020612edc85828601612d21565b9150509250929050565b600080600060608486031215612eff57612efe613cd1565b5b6000612f0d86828701612d21565b9350506020612f1e86828701612d21565b9250506040612f2f86828701612e64565b9150509250925092565b60008060008060808587031215612f5357612f52613cd1565b5b6000612f6187828801612d21565b9450506020612f7287828801612d21565b9350506040612f8387828801612e64565b925050606085013567ffffffffffffffff811115612fa457612fa3613ccc565b5b612fb087828801612de0565b91505092959194509250565b60008060408385031215612fd357612fd2613cd1565b5b6000612fe185828601612d21565b9250506020612ff285828601612d8c565b9150509250929050565b6000806040838503121561301357613012613cd1565b5b600061302185828601612d21565b925050602061303285828601612e64565b9150509250929050565b60006020828403121561305257613051613cd1565b5b600061306084828501612d8c565b91505092915050565b60008060006060848603121561308257613081613cd1565b5b600061309086828701612d8c565b93505060206130a186828701612d8c565b92505060406130b286828701612d8c565b9150509250925092565b6000602082840312156130d2576130d1613cd1565b5b60006130e084828501612da1565b91505092915050565b6000602082840312156130ff576130fe613cd1565b5b600061310d84828501612db6565b91505092915050565b60006020828403121561312c5761312b613cd1565b5b600061313a84828501612dcb565b91505092915050565b6000806020838503121561315a57613159613cd1565b5b600083013567ffffffffffffffff81111561317857613177613ccc565b5b61318485828601612e0e565b92509250509250929050565b6000602082840312156131a6576131a5613cd1565b5b60006131b484828501612e64565b91505092915050565b600080600080606085870312156131d7576131d6613cd1565b5b60006131e587828801612e64565b945050602085013567ffffffffffffffff81111561320657613205613ccc565b5b61321287828801612d36565b9350935050604061322587828801612e64565b91505092959194509250565b6000806040838503121561324857613247613cd1565b5b600061325685828601612e64565b925050602061326785828601612e64565b9150509250929050565b61327a81613a06565b82525050565b61328981613a18565b82525050565b61329881613a24565b82525050565b60006132a9826138a3565b6132b381856138b9565b93506132c3818560208601613a93565b6132cc81613cd6565b840191505092915050565b60006132e2826138ae565b6132ec81856138d5565b93506132fc818560208601613a93565b61330581613cd6565b840191505092915050565b600061331b826138ae565b61332581856138e6565b9350613335818560208601613a93565b80840191505092915050565b6000815461334e81613af0565b61335881866138e6565b945060018216600081146133735760018114613384576133b7565b60ff198316865281860193506133b7565b61338d8561388e565b60005b838110156133af57815481890152600182019150602081019050613390565b838801955050505b50505092915050565b60006133cd6020836138d5565b91506133d882613ce7565b602082019050919050565b60006133f06026836138d5565b91506133fb82613d10565b604082019050919050565b6000613413601b836138d5565b915061341e82613d5f565b602082019050919050565b60006134366019836138d5565b915061344182613d88565b602082019050919050565b60006134596005836138e6565b915061346482613db1565b600582019050919050565b600061347c6020836138d5565b915061348782613dda565b602082019050919050565b600061349f6013836138d5565b91506134aa82613e03565b602082019050919050565b60006134c26013836138d5565b91506134cd82613e2c565b602082019050919050565b60006134e56016836138d5565b91506134f082613e55565b602082019050919050565b60006135086000836138ca565b915061351382613e7e565b600082019050919050565b600061352b6017836138d5565b915061353682613e81565b602082019050919050565b600061354e600d836138d5565b915061355982613eaa565b602082019050919050565b6000613571600f836138d5565b915061357c82613ed3565b602082019050919050565b61359081613a7a565b82525050565b60006135a28285613310565b91506135ae8284613310565b91508190509392505050565b60006135c68285613341565b91506135d28284613310565b91506135dd8261344c565b91508190509392505050565b60006135f4826134fb565b9150819050919050565b60006020820190506136136000830184613271565b92915050565b600060808201905061362e6000830187613271565b61363b6020830186613271565b6136486040830185613587565b818103606083015261365a818461329e565b905095945050505050565b600060208201905061367a6000830184613280565b92915050565b6000602082019050613695600083018461328f565b92915050565b600060208201905081810360008301526136b581846132d7565b905092915050565b600060208201905081810360008301526136d6816133c0565b9050919050565b600060208201905081810360008301526136f6816133e3565b9050919050565b6000602082019050818103600083015261371681613406565b9050919050565b6000602082019050818103600083015261373681613429565b9050919050565b600060208201905081810360008301526137568161346f565b9050919050565b6000602082019050818103600083015261377681613492565b9050919050565b60006020820190508181036000830152613796816134b5565b9050919050565b600060208201905081810360008301526137b6816134d8565b9050919050565b600060208201905081810360008301526137d68161351e565b9050919050565b600060208201905081810360008301526137f681613541565b9050919050565b6000602082019050818103600083015261381681613564565b9050919050565b60006020820190506138326000830184613587565b92915050565b6000613842613853565b905061384e8282613b22565b919050565b6000604051905090565b600067ffffffffffffffff82111561387857613877613c89565b5b61388182613cd6565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006138fc82613a7a565b915061390783613a7a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561393c5761393b613bcd565b5b828201905092915050565b600061395282613a7a565b915061395d83613a7a565b92508261396d5761396c613bfc565b5b828204905092915050565b600061398382613a7a565b915061398e83613a7a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156139c7576139c6613bcd565b5b828202905092915050565b60006139dd82613a7a565b91506139e883613a7a565b9250828210156139fb576139fa613bcd565b5b828203905092915050565b6000613a1182613a5a565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015613ab1578082015181840152602081019050613a96565b83811115613ac0576000848401525b50505050565b6000613ad182613a7a565b91506000821415613ae557613ae4613bcd565b5b600182039050919050565b60006002820490506001821680613b0857607f821691505b60208210811415613b1c57613b1b613c2b565b5b50919050565b613b2b82613cd6565b810181811067ffffffffffffffff82111715613b4a57613b49613c89565b5b80604052505050565b6000613b5e82613a7a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613b9157613b90613bcd565b5b600182019050919050565b6000613ba782613a7a565b9150613bb283613a7a565b925082613bc257613bc1613bfc565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f5075626c69632073616c6520686173206e6f7420737461727465640000000000600082015250565b7f46726565206d696e7420686173206e6f74207374617274656400000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f45786365656420746f74616c20737570706c7900000000000000000000000000600082015250565b7f4e6f7420656e6f756768206574682073656e7400000000000000000000000000600082015250565b7f457863656564206d6178206d696e7420616d6f756e7400000000000000000000600082015250565b50565b7f70726573616c6520686173206e6f742073746172746564000000000000000000600082015250565b7f496e76616c69642070726f6f6600000000000000000000000000000000000000600082015250565b7f4d6178207075626c6963206d696e740000000000000000000000000000000000600082015250565b613f0581613a06565b8114613f1057600080fd5b50565b613f1c81613a18565b8114613f2757600080fd5b50565b613f3381613a24565b8114613f3e57600080fd5b50565b613f4a81613a2e565b8114613f5557600080fd5b50565b613f6181613a7a565b8114613f6c57600080fd5b5056fea2646970667358221220e164884b5369c6c1e21b5ac145eda0a51c2c2913eee5e144d470dd70d50c7b6564736f6c63430008070033
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.