ERC-721
Overview
Max Total Supply
1,000 AR
Holders
488
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 ARLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AbstractRealm
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 "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract AbstractRealm is ERC721A, Pausable, Ownable { enum SaleStates { CLOSED, PUBLIC, WHITELIST } SaleStates public saleState; bytes32 public whitelistMerkleRoot; uint256 public maxSupply = 1000; uint256 public maxPublicTokens = 475; uint256 public publicSalePrice = 0.05 ether; uint64 public maxPublicTokensPerWallet = 3; uint64 public maxWLTokensPerWallet = 1; string public baseURL; string public unRevealedURL; bool public isRevealed = false; constructor() ERC721A("AbstractRealm", "AR") { _mintERC2309(msg.sender, 50); } modifier isValidMerkleProof(bytes32[] calldata merkleProof, bytes32 root) { require( MerkleProof.verify( merkleProof, root, keccak256(abi.encodePacked(msg.sender)) ), "Address does not exist in list" ); _; } modifier canMint(uint256 numberOfTokens) { require(_totalMinted() + numberOfTokens <= maxSupply, "Not enough tokens remaining to mint"); _; } modifier checkState(SaleStates _saleState) { require(saleState == _saleState, "sale is not active"); _; } function whitelistMint(bytes32[] calldata merkleProof, uint64 numberOfTokens) external payable whenNotPaused isValidMerkleProof(merkleProof, whitelistMerkleRoot) canMint(numberOfTokens) checkState(SaleStates.WHITELIST) { uint64 userAuxilary = _getAux(msg.sender); require(userAuxilary + numberOfTokens <= maxWLTokensPerWallet, "Maximum minting limit exceeded"); /// @dev Set non-zero auxilary value to acknowledge that the caller has claimed their token. _setAux(msg.sender, userAuxilary + numberOfTokens); _mint(msg.sender, numberOfTokens); } function publicMint(uint64 numberOfTokens) external payable whenNotPaused canMint(numberOfTokens) checkState(SaleStates.PUBLIC) { require(_totalMinted() + numberOfTokens <= maxPublicTokens, "Minted the maximum no of public tokens"); require((_numberMinted(msg.sender) - _getAux(msg.sender)) + numberOfTokens <= maxPublicTokensPerWallet, "Maximum minting limit exceeded"); require(msg.value >= publicSalePrice * numberOfTokens, "Not enough ETH"); _mint(msg.sender, numberOfTokens); } function mintTo(address to, uint256 numberOfTokens) external canMint(numberOfTokens) onlyOwner{ _mint(to, numberOfTokens); } function tokenURI(uint256 _tokenId) public view override returns (string memory) { require( _exists(_tokenId), "ERC721Metadata: URI query for nonexistent token" ); if (!isRevealed) { return unRevealedURL; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string( abi.encodePacked(currentBaseURI, Strings.toString(_tokenId), ".json") ) : ""; } function _baseURI() internal view override returns (string memory) { return baseURL; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } function numberMintedWl(address _account) external view returns (uint64) { return _getAux(_account); } function numberMinted(address _account) external view returns (uint256) { return _numberMinted(_account); } // Metadata function setBaseURL(string memory _baseURL) external onlyOwner { baseURL = _baseURL; } function setUnRevealedURL(string memory _unRevealedURL) external onlyOwner { unRevealedURL = _unRevealedURL; } function toggleRevealed() external onlyOwner { isRevealed = !isRevealed; } // Sale Price function setPublicSalePrice(uint256 _price) external onlyOwner { publicSalePrice = _price; } // CLOSED = 0, PUBLIC = 1, WHITELIST = 2 function setSaleState(uint256 newSaleState) external onlyOwner { require(newSaleState <= uint256(SaleStates.WHITELIST), "sale state not valid"); saleState = SaleStates(newSaleState); } // Max Tokens Per Wallet function setMaxPublicTokensPerWallet(uint64 _maxPublicTokensPerWallet) external onlyOwner{ maxPublicTokensPerWallet = _maxPublicTokensPerWallet; } function setMaxWLTokensPerWallet(uint64 _maxWLTokensPerWallet) external onlyOwner{ maxWLTokensPerWallet = _maxWLTokensPerWallet; } function setWhitelistMerkleRoot(bytes32 merkleRoot) external onlyOwner { whitelistMerkleRoot = merkleRoot; } function setMaxPublicTokens(uint256 _maxPublicTokens) external onlyOwner { maxPublicTokens = _maxPublicTokens; } function withdraw() external onlyOwner { (bool hs, ) = payable(0x6a80Ee76D9cba41a1Cc24A2fA39fed0b1e37AD99).call{value: address(this).balance * 3 / 100}(''); require(hs); (bool os, ) = payable(owner()).call{value: address(this).balance}(""); require(os); } }
// 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 // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // 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 { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). 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 payable 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 { _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 payable 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 payable 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 payable 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. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. 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`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. 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 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // 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.3 // 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(); /** * 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 payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @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 payable; /** * @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 payable; /** * @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":"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURL","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublicTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublicTokensPerWallet","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWLTokensPerWallet","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"numberMintedWl","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"numberOfTokens","type":"uint64"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","type":"function"},{"inputs":[],"name":"saleState","outputs":[{"internalType":"enum AbstractRealm.SaleStates","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURL","type":"string"}],"name":"setBaseURL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPublicTokens","type":"uint256"}],"name":"setMaxPublicTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_maxPublicTokensPerWallet","type":"uint64"}],"name":"setMaxPublicTokensPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_maxWLTokensPerWallet","type":"uint64"}],"name":"setMaxWLTokensPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPublicSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newSaleState","type":"uint256"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_unRevealedURL","type":"string"}],"name":"setUnRevealedURL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setWhitelistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleRevealed","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unRevealedURL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint64","name":"numberOfTokens","type":"uint64"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526103e8600a556101db600b5566b1a2bc2ec50000600c556003600d60006101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600d60086101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000601060006101000a81548160ff0219169083151502179055503480156200009757600080fd5b506040518060400160405280600d81526020017f41627374726163745265616c6d000000000000000000000000000000000000008152506040518060400160405280600281526020017f415200000000000000000000000000000000000000000000000000000000000081525081600290805190602001906200011c9291906200052c565b508060039080519060200190620001359291906200052c565b5062000146620001a260201b60201c565b60008190555050506000600860006101000a81548160ff021916908315150217905550620001896200017d620001ab60201b60201c565b620001b360201b60201c565b6200019c3360326200027960201b60201c565b62000679565b60006001905090565b600033905090565b6000600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415620002e7576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082141562000323576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61138882111562000360576040517f3db1f9af00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b620003756000848385620004ac60201b60201c565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506200040483620003e66000866000620004b260201b60201c565b620003f785620004e260201b60201c565b17620004f260201b60201c565b60046000838152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff16827fdeaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d600186860103604051620004819190620005ed565b60405180910390a4818101600081905550620004a760008483856200051d60201b60201c565b505050565b50505050565b60008060e883901c905060e8620004d18686846200052360201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60009392505050565b8280546200053a9062000614565b90600052602060002090601f0160209004810192826200055e5760008555620005aa565b82601f106200057957805160ff1916838001178555620005aa565b82800160010185558215620005aa579182015b82811115620005a95782518255916020019190600101906200058c565b5b509050620005b99190620005bd565b5090565b5b80821115620005d8576000816000905550600101620005be565b5090565b620005e7816200060a565b82525050565b6000602082019050620006046000830184620005dc565b92915050565b6000819050919050565b600060028204905060018216806200062d57607f821691505b602082108114156200064457620006436200064a565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b613ff380620006896000396000f3fe6080604052600436106102725760003560e01c8063603f4d521161014f578063aa98e0c6116100c1578063d5abeb011161007a578063d5abeb01146108a0578063d93ecff9146108cb578063dc33e681146108f6578063e922fa3c14610933578063e985e9c51461095c578063f2fde38b1461099957610272565b8063aa98e0c61461079d578063b88d4fde146107c8578063bca9b530146107e4578063bd32fb661461080f578063c87b56dd14610838578063d447c7581461087557610272565b8063791a251911610113578063791a2519146106b35780638456cb59146106dc5780638da5cb5b146106f357806395d89b411461071e5780639b6860c814610749578063a22cb4651461077457610272565b8063603f4d52146105db5780636352211e146106065780636afcb7b01461064357806370a082311461065f578063715018a61461069c57610272565b80633ccfd60b116101e857806349f2553a116101ac57806349f2553a146104df5780635117fb881461050857806352dc6ad91461053157806354214f691461056e5780635bc020bc146105995780635c975abb146105b057610272565b80633ccfd60b146104415780633f4ba83a1461045857806340c84b0e1461046f57806342842e0e1461049a578063449a52f8146104b657610272565b8063095ea7b31161023a578063095ea7b31461037057806318160ddd1461038c5780631b004d25146103b7578063213f3ea2146103d357806323b872dd146103fc57806332366a611461041857610272565b806301ffc9a71461027757806306fdde03146102b4578063081812fc146102df578063084c40881461031c57806309008f0a14610345575b600080fd5b34801561028357600080fd5b5061029e6004803603810190610299919061300d565b6109c2565b6040516102ab91906134ce565b60405180910390f35b3480156102c057600080fd5b506102c9610a54565b6040516102d6919061351f565b60405180910390f35b3480156102eb57600080fd5b50610306600480360381019061030191906130b0565b610ae6565b6040516103139190613467565b60405180910390f35b34801561032857600080fd5b50610343600480360381019061033e91906130b0565b610b65565b005b34801561035157600080fd5b5061035a610c01565b604051610367919061351f565b60405180910390f35b61038a60048036038101906103859190612f40565b610c8f565b005b34801561039857600080fd5b506103a1610dd3565b6040516103ae91906136c1565b60405180910390f35b6103d160048036038101906103cc9190612f80565b610dea565b005b3480156103df57600080fd5b506103fa60048036038101906103f591906130b0565b61103a565b005b61041660048036038101906104119190612e2a565b61104c565b005b34801561042457600080fd5b5061043f600480360381019061043a91906130dd565b611371565b005b34801561044d57600080fd5b506104566113a5565b005b34801561046457600080fd5b5061046d6114d0565b005b34801561047b57600080fd5b506104846114e2565b604051610491919061351f565b60405180910390f35b6104b460048036038101906104af9190612e2a565b611570565b005b3480156104c257600080fd5b506104dd60048036038101906104d89190612f40565b611590565b005b3480156104eb57600080fd5b5061050660048036038101906105019190613067565b6115ff565b005b34801561051457600080fd5b5061052f600480360381019061052a91906130dd565b611621565b005b34801561053d57600080fd5b5061055860048036038101906105539190612dbd565b611655565b60405161056591906136dc565b60405180910390f35b34801561057a57600080fd5b50610583611667565b60405161059091906134ce565b60405180910390f35b3480156105a557600080fd5b506105ae61167a565b005b3480156105bc57600080fd5b506105c56116ae565b6040516105d291906134ce565b60405180910390f35b3480156105e757600080fd5b506105f06116c5565b6040516105fd9190613504565b60405180910390f35b34801561061257600080fd5b5061062d600480360381019061062891906130b0565b6116d8565b60405161063a9190613467565b60405180910390f35b61065d600480360381019061065891906130dd565b6116ea565b005b34801561066b57600080fd5b5061068660048036038101906106819190612dbd565b61193c565b60405161069391906136c1565b60405180910390f35b3480156106a857600080fd5b506106b16119f5565b005b3480156106bf57600080fd5b506106da60048036038101906106d591906130b0565b611a09565b005b3480156106e857600080fd5b506106f1611a1b565b005b3480156106ff57600080fd5b50610708611a2d565b6040516107159190613467565b60405180910390f35b34801561072a57600080fd5b50610733611a57565b604051610740919061351f565b60405180910390f35b34801561075557600080fd5b5061075e611ae9565b60405161076b91906136c1565b60405180910390f35b34801561078057600080fd5b5061079b60048036038101906107969190612f00565b611aef565b005b3480156107a957600080fd5b506107b2611bfa565b6040516107bf91906134e9565b60405180910390f35b6107e260048036038101906107dd9190612e7d565b611c00565b005b3480156107f057600080fd5b506107f9611c73565b60405161080691906136dc565b60405180910390f35b34801561081b57600080fd5b5061083660048036038101906108319190612fe0565b611c8d565b005b34801561084457600080fd5b5061085f600480360381019061085a91906130b0565b611c9f565b60405161086c919061351f565b60405180910390f35b34801561088157600080fd5b5061088a611ded565b60405161089791906136c1565b60405180910390f35b3480156108ac57600080fd5b506108b5611df3565b6040516108c291906136c1565b60405180910390f35b3480156108d757600080fd5b506108e0611df9565b6040516108ed91906136dc565b60405180910390f35b34801561090257600080fd5b5061091d60048036038101906109189190612dbd565b611e13565b60405161092a91906136c1565b60405180910390f35b34801561093f57600080fd5b5061095a60048036038101906109559190613067565b611e25565b005b34801561096857600080fd5b50610983600480360381019061097e9190612dea565b611e47565b60405161099091906134ce565b60405180910390f35b3480156109a557600080fd5b506109c060048036038101906109bb9190612dbd565b611edb565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a1d57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a4d5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610a6390613a18565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8f90613a18565b8015610adc5780601f10610ab157610100808354040283529160200191610adc565b820191906000526020600020905b815481529060010190602001808311610abf57829003601f168201915b5050505050905090565b6000610af182611f5f565b610b27576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610b6d611fbe565b600280811115610b8057610b7f613b77565b5b811115610bc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb990613681565b60405180910390fd5b806002811115610bd557610bd4613b77565b5b600860156101000a81548160ff02191690836002811115610bf957610bf8613b77565b5b021790555050565b600f8054610c0e90613a18565b80601f0160208091040260200160405190810160405280929190818152602001828054610c3a90613a18565b8015610c875780601f10610c5c57610100808354040283529160200191610c87565b820191906000526020600020905b815481529060010190602001808311610c6a57829003601f168201915b505050505081565b6000610c9a826116d8565b90508073ffffffffffffffffffffffffffffffffffffffff16610cbb61203c565b73ffffffffffffffffffffffffffffffffffffffff1614610d1e57610ce781610ce261203c565b611e47565b610d1d576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610ddd612044565b6001546000540303905090565b610df261204d565b8282600954610e69838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050508233604051602001610e4e9190613408565b60405160208183030381529060405280519060200120612097565b610ea8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9f906135e1565b60405180910390fd5b8367ffffffffffffffff16600a5481610ebf6120ae565b610ec991906137cc565b1115610f0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f01906135a1565b60405180910390fd5b6002806002811115610f1f57610f1e613b77565b5b600860159054906101000a900460ff166002811115610f4157610f40613b77565b5b14610f81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f78906135c1565b60405180910390fd5b6000610f8c336120c1565b9050600d60089054906101000a900467ffffffffffffffff1667ffffffffffffffff168782610fbb9190613822565b67ffffffffffffffff161115611006576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ffd90613541565b60405180910390fd5b61101b3388836110169190613822565b61210e565b61102f338867ffffffffffffffff166121c4565b505050505050505050565b611042611fbe565b80600b8190555050565b600061105782612381565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146110be576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806110ca8461244f565b915091506110e081876110db61203c565b612476565b61112c576110f5866110f061203c565b611e47565b61112b576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611193576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111a086868660016124ba565b80156111ab57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550611279856112558888876124c0565b7c0200000000000000000000000000000000000000000000000000000000176124e8565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841614156113015760006001850190506000600460008381526020019081526020016000205414156112ff5760005481146112fe578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46113698686866001612513565b505050505050565b611379611fbe565b80600d60086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555050565b6113ad611fbe565b6000736a80ee76d9cba41a1cc24a2fa39fed0b1e37ad9973ffffffffffffffffffffffffffffffffffffffff1660646003476113e99190613891565b6113f39190613860565b6040516113ff90613452565b60006040518083038185875af1925050503d806000811461143c576040519150601f19603f3d011682016040523d82523d6000602084013e611441565b606091505b505090508061144f57600080fd5b6000611459611a2d565b73ffffffffffffffffffffffffffffffffffffffff164760405161147c90613452565b60006040518083038185875af1925050503d80600081146114b9576040519150601f19603f3d011682016040523d82523d6000602084013e6114be565b606091505b50509050806114cc57600080fd5b5050565b6114d8611fbe565b6114e0612519565b565b600e80546114ef90613a18565b80601f016020809104026020016040519081016040528092919081815260200182805461151b90613a18565b80156115685780601f1061153d57610100808354040283529160200191611568565b820191906000526020600020905b81548152906001019060200180831161154b57829003601f168201915b505050505081565b61158b83838360405180602001604052806000815250611c00565b505050565b80600a548161159d6120ae565b6115a791906137cc565b11156115e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115df906135a1565b60405180910390fd5b6115f0611fbe565b6115fa83836121c4565b505050565b611607611fbe565b80600e908051906020019061161d929190612b51565b5050565b611629611fbe565b80600d60006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555050565b6000611660826120c1565b9050919050565b601060009054906101000a900460ff1681565b611682611fbe565b601060009054906101000a900460ff1615601060006101000a81548160ff021916908315150217905550565b6000600860009054906101000a900460ff16905090565b600860159054906101000a900460ff1681565b60006116e382612381565b9050919050565b6116f261204d565b8067ffffffffffffffff16600a54816117096120ae565b61171391906137cc565b1115611754576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174b906135a1565b60405180910390fd5b600180600281111561176957611768613b77565b5b600860159054906101000a900460ff16600281111561178b5761178a613b77565b5b146117cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c2906135c1565b60405180910390fd5b600b548367ffffffffffffffff166117e16120ae565b6117eb91906137cc565b111561182c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611823906136a1565b60405180910390fd5b600d60009054906101000a900467ffffffffffffffff1667ffffffffffffffff168367ffffffffffffffff16611861336120c1565b67ffffffffffffffff166118743361257c565b61187e91906138eb565b61188891906137cc565b11156118c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c090613541565b60405180910390fd5b8267ffffffffffffffff16600c546118e19190613891565b341015611923576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191a90613621565b60405180910390fd5b611937338467ffffffffffffffff166121c4565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119a4576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6119fd611fbe565b611a0760006125d3565b565b611a11611fbe565b80600c8190555050565b611a23611fbe565b611a2b612699565b565b6000600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611a6690613a18565b80601f0160208091040260200160405190810160405280929190818152602001828054611a9290613a18565b8015611adf5780601f10611ab457610100808354040283529160200191611adf565b820191906000526020600020905b815481529060010190602001808311611ac257829003601f168201915b5050505050905090565b600c5481565b8060076000611afc61203c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611ba961203c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611bee91906134ce565b60405180910390a35050565b60095481565b611c0b84848461104c565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611c6d57611c36848484846126fc565b611c6c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600d60009054906101000a900467ffffffffffffffff1681565b611c95611fbe565b8060098190555050565b6060611caa82611f5f565b611ce9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce090613661565b60405180910390fd5b601060009054906101000a900460ff16611d8f57600f8054611d0a90613a18565b80601f0160208091040260200160405190810160405280929190818152602001828054611d3690613a18565b8015611d835780601f10611d5857610100808354040283529160200191611d83565b820191906000526020600020905b815481529060010190602001808311611d6657829003601f168201915b50505050509050611de8565b6000611d9961285c565b90506000815111611db95760405180602001604052806000815250611de4565b80611dc3846128ee565b604051602001611dd4929190613423565b6040516020818303038152906040525b9150505b919050565b600b5481565b600a5481565b600d60089054906101000a900467ffffffffffffffff1681565b6000611e1e8261257c565b9050919050565b611e2d611fbe565b80600f9080519060200190611e43929190612b51565b5050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611ee3611fbe565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611f53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4a90613581565b60405180910390fd5b611f5c816125d3565b50565b600081611f6a612044565b11158015611f79575060005482105b8015611fb7575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b611fc6612a4f565b73ffffffffffffffffffffffffffffffffffffffff16611fe4611a2d565b73ffffffffffffffffffffffffffffffffffffffff161461203a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203190613641565b60405180910390fd5b565b600033905090565b60006001905090565b6120556116ae565b15612095576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208c90613601565b60405180910390fd5b565b6000826120a48584612a57565b1490509392505050565b60006120b8612044565b60005403905090565b600060c0600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c9050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600082905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff831617915081600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b6000805490506000821415612205576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61221260008483856124ba565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506122898361227a60008660006124c0565b61228385612aad565b176124e8565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461232a57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506122ef565b506000821415612366576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061237c6000848385612513565b505050565b60008082905080612390612044565b11612418576000548110156124175760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612415575b600081141561240b5760046000836001900393508381526020019081526020016000205490506123e0565b809250505061244a565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86124d7868684612abd565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b612521612ac6565b6000600860006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612565612a4f565b6040516125729190613467565b60405180910390a1565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b6000600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6126a161204d565b6001600860006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586126e5612a4f565b6040516126f29190613467565b60405180910390a1565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261272261203c565b8786866040518563ffffffff1660e01b81526004016127449493929190613482565b602060405180830381600087803b15801561275e57600080fd5b505af192505050801561278f57506040513d601f19601f8201168201806040525081019061278c919061303a565b60015b612809573d80600081146127bf576040519150601f19603f3d011682016040523d82523d6000602084013e6127c4565b606091505b50600081511415612801576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600e805461286b90613a18565b80601f016020809104026020016040519081016040528092919081815260200182805461289790613a18565b80156128e45780601f106128b9576101008083540402835291602001916128e4565b820191906000526020600020905b8154815290600101906020018083116128c757829003601f168201915b5050505050905090565b60606000821415612936576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612a4a565b600082905060005b6000821461296857808061295190613a7b565b915050600a826129619190613860565b915061293e565b60008167ffffffffffffffff81111561298457612983613c04565b5b6040519080825280601f01601f1916602001820160405280156129b65781602001600182028036833780820191505090505b5090505b60008514612a43576001826129cf91906138eb565b9150600a856129de9190613ae8565b60306129ea91906137cc565b60f81b818381518110612a00576129ff613bd5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612a3c9190613860565b94506129ba565b8093505050505b919050565b600033905090565b60008082905060005b8451811015612aa257612a8d82868381518110612a8057612a7f613bd5565b5b6020026020010151612b0f565b91508080612a9a90613a7b565b915050612a60565b508091505092915050565b60006001821460e11b9050919050565b60009392505050565b612ace6116ae565b612b0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b0490613561565b60405180910390fd5b565b6000818310612b2757612b228284612b3a565b612b32565b612b318383612b3a565b5b905092915050565b600082600052816020526040600020905092915050565b828054612b5d90613a18565b90600052602060002090601f016020900481019282612b7f5760008555612bc6565b82601f10612b9857805160ff1916838001178555612bc6565b82800160010185558215612bc6579182015b82811115612bc5578251825591602001919060010190612baa565b5b509050612bd39190612bd7565b5090565b5b80821115612bf0576000816000905550600101612bd8565b5090565b6000612c07612c028461371c565b6136f7565b905082815260208101848484011115612c2357612c22613c42565b5b612c2e8482856139d6565b509392505050565b6000612c49612c448461374d565b6136f7565b905082815260208101848484011115612c6557612c64613c42565b5b612c708482856139d6565b509392505050565b600081359050612c8781613f33565b92915050565b60008083601f840112612ca357612ca2613c38565b5b8235905067ffffffffffffffff811115612cc057612cbf613c33565b5b602083019150836020820283011115612cdc57612cdb613c3d565b5b9250929050565b600081359050612cf281613f4a565b92915050565b600081359050612d0781613f61565b92915050565b600081359050612d1c81613f78565b92915050565b600081519050612d3181613f78565b92915050565b600082601f830112612d4c57612d4b613c38565b5b8135612d5c848260208601612bf4565b91505092915050565b600082601f830112612d7a57612d79613c38565b5b8135612d8a848260208601612c36565b91505092915050565b600081359050612da281613f8f565b92915050565b600081359050612db781613fa6565b92915050565b600060208284031215612dd357612dd2613c4c565b5b6000612de184828501612c78565b91505092915050565b60008060408385031215612e0157612e00613c4c565b5b6000612e0f85828601612c78565b9250506020612e2085828601612c78565b9150509250929050565b600080600060608486031215612e4357612e42613c4c565b5b6000612e5186828701612c78565b9350506020612e6286828701612c78565b9250506040612e7386828701612d93565b9150509250925092565b60008060008060808587031215612e9757612e96613c4c565b5b6000612ea587828801612c78565b9450506020612eb687828801612c78565b9350506040612ec787828801612d93565b925050606085013567ffffffffffffffff811115612ee857612ee7613c47565b5b612ef487828801612d37565b91505092959194509250565b60008060408385031215612f1757612f16613c4c565b5b6000612f2585828601612c78565b9250506020612f3685828601612ce3565b9150509250929050565b60008060408385031215612f5757612f56613c4c565b5b6000612f6585828601612c78565b9250506020612f7685828601612d93565b9150509250929050565b600080600060408486031215612f9957612f98613c4c565b5b600084013567ffffffffffffffff811115612fb757612fb6613c47565b5b612fc386828701612c8d565b93509350506020612fd686828701612da8565b9150509250925092565b600060208284031215612ff657612ff5613c4c565b5b600061300484828501612cf8565b91505092915050565b60006020828403121561302357613022613c4c565b5b600061303184828501612d0d565b91505092915050565b6000602082840312156130505761304f613c4c565b5b600061305e84828501612d22565b91505092915050565b60006020828403121561307d5761307c613c4c565b5b600082013567ffffffffffffffff81111561309b5761309a613c47565b5b6130a784828501612d65565b91505092915050565b6000602082840312156130c6576130c5613c4c565b5b60006130d484828501612d93565b91505092915050565b6000602082840312156130f3576130f2613c4c565b5b600061310184828501612da8565b91505092915050565b6131138161391f565b82525050565b61312a6131258261391f565b613ac4565b82525050565b61313981613931565b82525050565b6131488161393d565b82525050565b60006131598261377e565b6131638185613794565b93506131738185602086016139e5565b61317c81613c51565b840191505092915050565b613190816139c4565b82525050565b60006131a182613789565b6131ab81856137b0565b93506131bb8185602086016139e5565b6131c481613c51565b840191505092915050565b60006131da82613789565b6131e481856137c1565b93506131f48185602086016139e5565b80840191505092915050565b600061320d601e836137b0565b915061321882613c6f565b602082019050919050565b60006132306014836137b0565b915061323b82613c98565b602082019050919050565b60006132536026836137b0565b915061325e82613cc1565b604082019050919050565b60006132766023836137b0565b915061328182613d10565b604082019050919050565b60006132996012836137b0565b91506132a482613d5f565b602082019050919050565b60006132bc601e836137b0565b91506132c782613d88565b602082019050919050565b60006132df6010836137b0565b91506132ea82613db1565b602082019050919050565b6000613302600e836137b0565b915061330d82613dda565b602082019050919050565b60006133256005836137c1565b915061333082613e03565b600582019050919050565b60006133486020836137b0565b915061335382613e2c565b602082019050919050565b600061336b602f836137b0565b915061337682613e55565b604082019050919050565b600061338e6000836137a5565b915061339982613ea4565b600082019050919050565b60006133b16014836137b0565b91506133bc82613ea7565b602082019050919050565b60006133d46026836137b0565b91506133df82613ed0565b604082019050919050565b6133f3816139a6565b82525050565b613402816139b0565b82525050565b60006134148284613119565b60148201915081905092915050565b600061342f82856131cf565b915061343b82846131cf565b915061344682613318565b91508190509392505050565b600061345d82613381565b9150819050919050565b600060208201905061347c600083018461310a565b92915050565b6000608082019050613497600083018761310a565b6134a4602083018661310a565b6134b160408301856133ea565b81810360608301526134c3818461314e565b905095945050505050565b60006020820190506134e36000830184613130565b92915050565b60006020820190506134fe600083018461313f565b92915050565b60006020820190506135196000830184613187565b92915050565b600060208201905081810360008301526135398184613196565b905092915050565b6000602082019050818103600083015261355a81613200565b9050919050565b6000602082019050818103600083015261357a81613223565b9050919050565b6000602082019050818103600083015261359a81613246565b9050919050565b600060208201905081810360008301526135ba81613269565b9050919050565b600060208201905081810360008301526135da8161328c565b9050919050565b600060208201905081810360008301526135fa816132af565b9050919050565b6000602082019050818103600083015261361a816132d2565b9050919050565b6000602082019050818103600083015261363a816132f5565b9050919050565b6000602082019050818103600083015261365a8161333b565b9050919050565b6000602082019050818103600083015261367a8161335e565b9050919050565b6000602082019050818103600083015261369a816133a4565b9050919050565b600060208201905081810360008301526136ba816133c7565b9050919050565b60006020820190506136d660008301846133ea565b92915050565b60006020820190506136f160008301846133f9565b92915050565b6000613701613712565b905061370d8282613a4a565b919050565b6000604051905090565b600067ffffffffffffffff82111561373757613736613c04565b5b61374082613c51565b9050602081019050919050565b600067ffffffffffffffff82111561376857613767613c04565b5b61377182613c51565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006137d7826139a6565b91506137e2836139a6565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561381757613816613b19565b5b828201905092915050565b600061382d826139b0565b9150613838836139b0565b92508267ffffffffffffffff0382111561385557613854613b19565b5b828201905092915050565b600061386b826139a6565b9150613876836139a6565b92508261388657613885613b48565b5b828204905092915050565b600061389c826139a6565b91506138a7836139a6565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156138e0576138df613b19565b5b828202905092915050565b60006138f6826139a6565b9150613901836139a6565b92508282101561391457613913613b19565b5b828203905092915050565b600061392a82613986565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600081905061398182613f1f565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b60006139cf82613973565b9050919050565b82818337600083830152505050565b60005b83811015613a035780820151818401526020810190506139e8565b83811115613a12576000848401525b50505050565b60006002820490506001821680613a3057607f821691505b60208210811415613a4457613a43613ba6565b5b50919050565b613a5382613c51565b810181811067ffffffffffffffff82111715613a7257613a71613c04565b5b80604052505050565b6000613a86826139a6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613ab957613ab8613b19565b5b600182019050919050565b6000613acf82613ad6565b9050919050565b6000613ae182613c62565b9050919050565b6000613af3826139a6565b9150613afe836139a6565b925082613b0e57613b0d613b48565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4d6178696d756d206d696e74696e67206c696d69742065786365656465640000600082015250565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4e6f7420656e6f75676820746f6b656e732072656d61696e696e6720746f206d60008201527f696e740000000000000000000000000000000000000000000000000000000000602082015250565b7f73616c65206973206e6f74206163746976650000000000000000000000000000600082015250565b7f4164647265737320646f6573206e6f7420657869737420696e206c6973740000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f4e6f7420656e6f75676820455448000000000000000000000000000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b50565b7f73616c65207374617465206e6f742076616c6964000000000000000000000000600082015250565b7f4d696e74656420746865206d6178696d756d206e6f206f66207075626c69632060008201527f746f6b656e730000000000000000000000000000000000000000000000000000602082015250565b60038110613f3057613f2f613b77565b5b50565b613f3c8161391f565b8114613f4757600080fd5b50565b613f5381613931565b8114613f5e57600080fd5b50565b613f6a8161393d565b8114613f7557600080fd5b50565b613f8181613947565b8114613f8c57600080fd5b50565b613f98816139a6565b8114613fa357600080fd5b50565b613faf816139b0565b8114613fba57600080fd5b5056fea2646970667358221220defd865561e71f30113dc06eef75b7697d8819fb9b109fd6a84be5ebfedacff464736f6c63430008070033
Deployed Bytecode
0x6080604052600436106102725760003560e01c8063603f4d521161014f578063aa98e0c6116100c1578063d5abeb011161007a578063d5abeb01146108a0578063d93ecff9146108cb578063dc33e681146108f6578063e922fa3c14610933578063e985e9c51461095c578063f2fde38b1461099957610272565b8063aa98e0c61461079d578063b88d4fde146107c8578063bca9b530146107e4578063bd32fb661461080f578063c87b56dd14610838578063d447c7581461087557610272565b8063791a251911610113578063791a2519146106b35780638456cb59146106dc5780638da5cb5b146106f357806395d89b411461071e5780639b6860c814610749578063a22cb4651461077457610272565b8063603f4d52146105db5780636352211e146106065780636afcb7b01461064357806370a082311461065f578063715018a61461069c57610272565b80633ccfd60b116101e857806349f2553a116101ac57806349f2553a146104df5780635117fb881461050857806352dc6ad91461053157806354214f691461056e5780635bc020bc146105995780635c975abb146105b057610272565b80633ccfd60b146104415780633f4ba83a1461045857806340c84b0e1461046f57806342842e0e1461049a578063449a52f8146104b657610272565b8063095ea7b31161023a578063095ea7b31461037057806318160ddd1461038c5780631b004d25146103b7578063213f3ea2146103d357806323b872dd146103fc57806332366a611461041857610272565b806301ffc9a71461027757806306fdde03146102b4578063081812fc146102df578063084c40881461031c57806309008f0a14610345575b600080fd5b34801561028357600080fd5b5061029e6004803603810190610299919061300d565b6109c2565b6040516102ab91906134ce565b60405180910390f35b3480156102c057600080fd5b506102c9610a54565b6040516102d6919061351f565b60405180910390f35b3480156102eb57600080fd5b50610306600480360381019061030191906130b0565b610ae6565b6040516103139190613467565b60405180910390f35b34801561032857600080fd5b50610343600480360381019061033e91906130b0565b610b65565b005b34801561035157600080fd5b5061035a610c01565b604051610367919061351f565b60405180910390f35b61038a60048036038101906103859190612f40565b610c8f565b005b34801561039857600080fd5b506103a1610dd3565b6040516103ae91906136c1565b60405180910390f35b6103d160048036038101906103cc9190612f80565b610dea565b005b3480156103df57600080fd5b506103fa60048036038101906103f591906130b0565b61103a565b005b61041660048036038101906104119190612e2a565b61104c565b005b34801561042457600080fd5b5061043f600480360381019061043a91906130dd565b611371565b005b34801561044d57600080fd5b506104566113a5565b005b34801561046457600080fd5b5061046d6114d0565b005b34801561047b57600080fd5b506104846114e2565b604051610491919061351f565b60405180910390f35b6104b460048036038101906104af9190612e2a565b611570565b005b3480156104c257600080fd5b506104dd60048036038101906104d89190612f40565b611590565b005b3480156104eb57600080fd5b5061050660048036038101906105019190613067565b6115ff565b005b34801561051457600080fd5b5061052f600480360381019061052a91906130dd565b611621565b005b34801561053d57600080fd5b5061055860048036038101906105539190612dbd565b611655565b60405161056591906136dc565b60405180910390f35b34801561057a57600080fd5b50610583611667565b60405161059091906134ce565b60405180910390f35b3480156105a557600080fd5b506105ae61167a565b005b3480156105bc57600080fd5b506105c56116ae565b6040516105d291906134ce565b60405180910390f35b3480156105e757600080fd5b506105f06116c5565b6040516105fd9190613504565b60405180910390f35b34801561061257600080fd5b5061062d600480360381019061062891906130b0565b6116d8565b60405161063a9190613467565b60405180910390f35b61065d600480360381019061065891906130dd565b6116ea565b005b34801561066b57600080fd5b5061068660048036038101906106819190612dbd565b61193c565b60405161069391906136c1565b60405180910390f35b3480156106a857600080fd5b506106b16119f5565b005b3480156106bf57600080fd5b506106da60048036038101906106d591906130b0565b611a09565b005b3480156106e857600080fd5b506106f1611a1b565b005b3480156106ff57600080fd5b50610708611a2d565b6040516107159190613467565b60405180910390f35b34801561072a57600080fd5b50610733611a57565b604051610740919061351f565b60405180910390f35b34801561075557600080fd5b5061075e611ae9565b60405161076b91906136c1565b60405180910390f35b34801561078057600080fd5b5061079b60048036038101906107969190612f00565b611aef565b005b3480156107a957600080fd5b506107b2611bfa565b6040516107bf91906134e9565b60405180910390f35b6107e260048036038101906107dd9190612e7d565b611c00565b005b3480156107f057600080fd5b506107f9611c73565b60405161080691906136dc565b60405180910390f35b34801561081b57600080fd5b5061083660048036038101906108319190612fe0565b611c8d565b005b34801561084457600080fd5b5061085f600480360381019061085a91906130b0565b611c9f565b60405161086c919061351f565b60405180910390f35b34801561088157600080fd5b5061088a611ded565b60405161089791906136c1565b60405180910390f35b3480156108ac57600080fd5b506108b5611df3565b6040516108c291906136c1565b60405180910390f35b3480156108d757600080fd5b506108e0611df9565b6040516108ed91906136dc565b60405180910390f35b34801561090257600080fd5b5061091d60048036038101906109189190612dbd565b611e13565b60405161092a91906136c1565b60405180910390f35b34801561093f57600080fd5b5061095a60048036038101906109559190613067565b611e25565b005b34801561096857600080fd5b50610983600480360381019061097e9190612dea565b611e47565b60405161099091906134ce565b60405180910390f35b3480156109a557600080fd5b506109c060048036038101906109bb9190612dbd565b611edb565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a1d57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a4d5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610a6390613a18565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8f90613a18565b8015610adc5780601f10610ab157610100808354040283529160200191610adc565b820191906000526020600020905b815481529060010190602001808311610abf57829003601f168201915b5050505050905090565b6000610af182611f5f565b610b27576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610b6d611fbe565b600280811115610b8057610b7f613b77565b5b811115610bc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb990613681565b60405180910390fd5b806002811115610bd557610bd4613b77565b5b600860156101000a81548160ff02191690836002811115610bf957610bf8613b77565b5b021790555050565b600f8054610c0e90613a18565b80601f0160208091040260200160405190810160405280929190818152602001828054610c3a90613a18565b8015610c875780601f10610c5c57610100808354040283529160200191610c87565b820191906000526020600020905b815481529060010190602001808311610c6a57829003601f168201915b505050505081565b6000610c9a826116d8565b90508073ffffffffffffffffffffffffffffffffffffffff16610cbb61203c565b73ffffffffffffffffffffffffffffffffffffffff1614610d1e57610ce781610ce261203c565b611e47565b610d1d576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610ddd612044565b6001546000540303905090565b610df261204d565b8282600954610e69838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050508233604051602001610e4e9190613408565b60405160208183030381529060405280519060200120612097565b610ea8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9f906135e1565b60405180910390fd5b8367ffffffffffffffff16600a5481610ebf6120ae565b610ec991906137cc565b1115610f0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f01906135a1565b60405180910390fd5b6002806002811115610f1f57610f1e613b77565b5b600860159054906101000a900460ff166002811115610f4157610f40613b77565b5b14610f81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f78906135c1565b60405180910390fd5b6000610f8c336120c1565b9050600d60089054906101000a900467ffffffffffffffff1667ffffffffffffffff168782610fbb9190613822565b67ffffffffffffffff161115611006576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ffd90613541565b60405180910390fd5b61101b3388836110169190613822565b61210e565b61102f338867ffffffffffffffff166121c4565b505050505050505050565b611042611fbe565b80600b8190555050565b600061105782612381565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146110be576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806110ca8461244f565b915091506110e081876110db61203c565b612476565b61112c576110f5866110f061203c565b611e47565b61112b576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611193576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111a086868660016124ba565b80156111ab57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550611279856112558888876124c0565b7c0200000000000000000000000000000000000000000000000000000000176124e8565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841614156113015760006001850190506000600460008381526020019081526020016000205414156112ff5760005481146112fe578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46113698686866001612513565b505050505050565b611379611fbe565b80600d60086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555050565b6113ad611fbe565b6000736a80ee76d9cba41a1cc24a2fa39fed0b1e37ad9973ffffffffffffffffffffffffffffffffffffffff1660646003476113e99190613891565b6113f39190613860565b6040516113ff90613452565b60006040518083038185875af1925050503d806000811461143c576040519150601f19603f3d011682016040523d82523d6000602084013e611441565b606091505b505090508061144f57600080fd5b6000611459611a2d565b73ffffffffffffffffffffffffffffffffffffffff164760405161147c90613452565b60006040518083038185875af1925050503d80600081146114b9576040519150601f19603f3d011682016040523d82523d6000602084013e6114be565b606091505b50509050806114cc57600080fd5b5050565b6114d8611fbe565b6114e0612519565b565b600e80546114ef90613a18565b80601f016020809104026020016040519081016040528092919081815260200182805461151b90613a18565b80156115685780601f1061153d57610100808354040283529160200191611568565b820191906000526020600020905b81548152906001019060200180831161154b57829003601f168201915b505050505081565b61158b83838360405180602001604052806000815250611c00565b505050565b80600a548161159d6120ae565b6115a791906137cc565b11156115e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115df906135a1565b60405180910390fd5b6115f0611fbe565b6115fa83836121c4565b505050565b611607611fbe565b80600e908051906020019061161d929190612b51565b5050565b611629611fbe565b80600d60006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555050565b6000611660826120c1565b9050919050565b601060009054906101000a900460ff1681565b611682611fbe565b601060009054906101000a900460ff1615601060006101000a81548160ff021916908315150217905550565b6000600860009054906101000a900460ff16905090565b600860159054906101000a900460ff1681565b60006116e382612381565b9050919050565b6116f261204d565b8067ffffffffffffffff16600a54816117096120ae565b61171391906137cc565b1115611754576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174b906135a1565b60405180910390fd5b600180600281111561176957611768613b77565b5b600860159054906101000a900460ff16600281111561178b5761178a613b77565b5b146117cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c2906135c1565b60405180910390fd5b600b548367ffffffffffffffff166117e16120ae565b6117eb91906137cc565b111561182c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611823906136a1565b60405180910390fd5b600d60009054906101000a900467ffffffffffffffff1667ffffffffffffffff168367ffffffffffffffff16611861336120c1565b67ffffffffffffffff166118743361257c565b61187e91906138eb565b61188891906137cc565b11156118c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c090613541565b60405180910390fd5b8267ffffffffffffffff16600c546118e19190613891565b341015611923576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191a90613621565b60405180910390fd5b611937338467ffffffffffffffff166121c4565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119a4576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6119fd611fbe565b611a0760006125d3565b565b611a11611fbe565b80600c8190555050565b611a23611fbe565b611a2b612699565b565b6000600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611a6690613a18565b80601f0160208091040260200160405190810160405280929190818152602001828054611a9290613a18565b8015611adf5780601f10611ab457610100808354040283529160200191611adf565b820191906000526020600020905b815481529060010190602001808311611ac257829003601f168201915b5050505050905090565b600c5481565b8060076000611afc61203c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611ba961203c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611bee91906134ce565b60405180910390a35050565b60095481565b611c0b84848461104c565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611c6d57611c36848484846126fc565b611c6c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600d60009054906101000a900467ffffffffffffffff1681565b611c95611fbe565b8060098190555050565b6060611caa82611f5f565b611ce9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce090613661565b60405180910390fd5b601060009054906101000a900460ff16611d8f57600f8054611d0a90613a18565b80601f0160208091040260200160405190810160405280929190818152602001828054611d3690613a18565b8015611d835780601f10611d5857610100808354040283529160200191611d83565b820191906000526020600020905b815481529060010190602001808311611d6657829003601f168201915b50505050509050611de8565b6000611d9961285c565b90506000815111611db95760405180602001604052806000815250611de4565b80611dc3846128ee565b604051602001611dd4929190613423565b6040516020818303038152906040525b9150505b919050565b600b5481565b600a5481565b600d60089054906101000a900467ffffffffffffffff1681565b6000611e1e8261257c565b9050919050565b611e2d611fbe565b80600f9080519060200190611e43929190612b51565b5050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611ee3611fbe565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611f53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4a90613581565b60405180910390fd5b611f5c816125d3565b50565b600081611f6a612044565b11158015611f79575060005482105b8015611fb7575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b611fc6612a4f565b73ffffffffffffffffffffffffffffffffffffffff16611fe4611a2d565b73ffffffffffffffffffffffffffffffffffffffff161461203a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203190613641565b60405180910390fd5b565b600033905090565b60006001905090565b6120556116ae565b15612095576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208c90613601565b60405180910390fd5b565b6000826120a48584612a57565b1490509392505050565b60006120b8612044565b60005403905090565b600060c0600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c9050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600082905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff831617915081600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b6000805490506000821415612205576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61221260008483856124ba565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506122898361227a60008660006124c0565b61228385612aad565b176124e8565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461232a57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506122ef565b506000821415612366576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061237c6000848385612513565b505050565b60008082905080612390612044565b11612418576000548110156124175760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612415575b600081141561240b5760046000836001900393508381526020019081526020016000205490506123e0565b809250505061244a565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86124d7868684612abd565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b612521612ac6565b6000600860006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612565612a4f565b6040516125729190613467565b60405180910390a1565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b6000600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6126a161204d565b6001600860006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586126e5612a4f565b6040516126f29190613467565b60405180910390a1565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261272261203c565b8786866040518563ffffffff1660e01b81526004016127449493929190613482565b602060405180830381600087803b15801561275e57600080fd5b505af192505050801561278f57506040513d601f19601f8201168201806040525081019061278c919061303a565b60015b612809573d80600081146127bf576040519150601f19603f3d011682016040523d82523d6000602084013e6127c4565b606091505b50600081511415612801576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600e805461286b90613a18565b80601f016020809104026020016040519081016040528092919081815260200182805461289790613a18565b80156128e45780601f106128b9576101008083540402835291602001916128e4565b820191906000526020600020905b8154815290600101906020018083116128c757829003601f168201915b5050505050905090565b60606000821415612936576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612a4a565b600082905060005b6000821461296857808061295190613a7b565b915050600a826129619190613860565b915061293e565b60008167ffffffffffffffff81111561298457612983613c04565b5b6040519080825280601f01601f1916602001820160405280156129b65781602001600182028036833780820191505090505b5090505b60008514612a43576001826129cf91906138eb565b9150600a856129de9190613ae8565b60306129ea91906137cc565b60f81b818381518110612a00576129ff613bd5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612a3c9190613860565b94506129ba565b8093505050505b919050565b600033905090565b60008082905060005b8451811015612aa257612a8d82868381518110612a8057612a7f613bd5565b5b6020026020010151612b0f565b91508080612a9a90613a7b565b915050612a60565b508091505092915050565b60006001821460e11b9050919050565b60009392505050565b612ace6116ae565b612b0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b0490613561565b60405180910390fd5b565b6000818310612b2757612b228284612b3a565b612b32565b612b318383612b3a565b5b905092915050565b600082600052816020526040600020905092915050565b828054612b5d90613a18565b90600052602060002090601f016020900481019282612b7f5760008555612bc6565b82601f10612b9857805160ff1916838001178555612bc6565b82800160010185558215612bc6579182015b82811115612bc5578251825591602001919060010190612baa565b5b509050612bd39190612bd7565b5090565b5b80821115612bf0576000816000905550600101612bd8565b5090565b6000612c07612c028461371c565b6136f7565b905082815260208101848484011115612c2357612c22613c42565b5b612c2e8482856139d6565b509392505050565b6000612c49612c448461374d565b6136f7565b905082815260208101848484011115612c6557612c64613c42565b5b612c708482856139d6565b509392505050565b600081359050612c8781613f33565b92915050565b60008083601f840112612ca357612ca2613c38565b5b8235905067ffffffffffffffff811115612cc057612cbf613c33565b5b602083019150836020820283011115612cdc57612cdb613c3d565b5b9250929050565b600081359050612cf281613f4a565b92915050565b600081359050612d0781613f61565b92915050565b600081359050612d1c81613f78565b92915050565b600081519050612d3181613f78565b92915050565b600082601f830112612d4c57612d4b613c38565b5b8135612d5c848260208601612bf4565b91505092915050565b600082601f830112612d7a57612d79613c38565b5b8135612d8a848260208601612c36565b91505092915050565b600081359050612da281613f8f565b92915050565b600081359050612db781613fa6565b92915050565b600060208284031215612dd357612dd2613c4c565b5b6000612de184828501612c78565b91505092915050565b60008060408385031215612e0157612e00613c4c565b5b6000612e0f85828601612c78565b9250506020612e2085828601612c78565b9150509250929050565b600080600060608486031215612e4357612e42613c4c565b5b6000612e5186828701612c78565b9350506020612e6286828701612c78565b9250506040612e7386828701612d93565b9150509250925092565b60008060008060808587031215612e9757612e96613c4c565b5b6000612ea587828801612c78565b9450506020612eb687828801612c78565b9350506040612ec787828801612d93565b925050606085013567ffffffffffffffff811115612ee857612ee7613c47565b5b612ef487828801612d37565b91505092959194509250565b60008060408385031215612f1757612f16613c4c565b5b6000612f2585828601612c78565b9250506020612f3685828601612ce3565b9150509250929050565b60008060408385031215612f5757612f56613c4c565b5b6000612f6585828601612c78565b9250506020612f7685828601612d93565b9150509250929050565b600080600060408486031215612f9957612f98613c4c565b5b600084013567ffffffffffffffff811115612fb757612fb6613c47565b5b612fc386828701612c8d565b93509350506020612fd686828701612da8565b9150509250925092565b600060208284031215612ff657612ff5613c4c565b5b600061300484828501612cf8565b91505092915050565b60006020828403121561302357613022613c4c565b5b600061303184828501612d0d565b91505092915050565b6000602082840312156130505761304f613c4c565b5b600061305e84828501612d22565b91505092915050565b60006020828403121561307d5761307c613c4c565b5b600082013567ffffffffffffffff81111561309b5761309a613c47565b5b6130a784828501612d65565b91505092915050565b6000602082840312156130c6576130c5613c4c565b5b60006130d484828501612d93565b91505092915050565b6000602082840312156130f3576130f2613c4c565b5b600061310184828501612da8565b91505092915050565b6131138161391f565b82525050565b61312a6131258261391f565b613ac4565b82525050565b61313981613931565b82525050565b6131488161393d565b82525050565b60006131598261377e565b6131638185613794565b93506131738185602086016139e5565b61317c81613c51565b840191505092915050565b613190816139c4565b82525050565b60006131a182613789565b6131ab81856137b0565b93506131bb8185602086016139e5565b6131c481613c51565b840191505092915050565b60006131da82613789565b6131e481856137c1565b93506131f48185602086016139e5565b80840191505092915050565b600061320d601e836137b0565b915061321882613c6f565b602082019050919050565b60006132306014836137b0565b915061323b82613c98565b602082019050919050565b60006132536026836137b0565b915061325e82613cc1565b604082019050919050565b60006132766023836137b0565b915061328182613d10565b604082019050919050565b60006132996012836137b0565b91506132a482613d5f565b602082019050919050565b60006132bc601e836137b0565b91506132c782613d88565b602082019050919050565b60006132df6010836137b0565b91506132ea82613db1565b602082019050919050565b6000613302600e836137b0565b915061330d82613dda565b602082019050919050565b60006133256005836137c1565b915061333082613e03565b600582019050919050565b60006133486020836137b0565b915061335382613e2c565b602082019050919050565b600061336b602f836137b0565b915061337682613e55565b604082019050919050565b600061338e6000836137a5565b915061339982613ea4565b600082019050919050565b60006133b16014836137b0565b91506133bc82613ea7565b602082019050919050565b60006133d46026836137b0565b91506133df82613ed0565b604082019050919050565b6133f3816139a6565b82525050565b613402816139b0565b82525050565b60006134148284613119565b60148201915081905092915050565b600061342f82856131cf565b915061343b82846131cf565b915061344682613318565b91508190509392505050565b600061345d82613381565b9150819050919050565b600060208201905061347c600083018461310a565b92915050565b6000608082019050613497600083018761310a565b6134a4602083018661310a565b6134b160408301856133ea565b81810360608301526134c3818461314e565b905095945050505050565b60006020820190506134e36000830184613130565b92915050565b60006020820190506134fe600083018461313f565b92915050565b60006020820190506135196000830184613187565b92915050565b600060208201905081810360008301526135398184613196565b905092915050565b6000602082019050818103600083015261355a81613200565b9050919050565b6000602082019050818103600083015261357a81613223565b9050919050565b6000602082019050818103600083015261359a81613246565b9050919050565b600060208201905081810360008301526135ba81613269565b9050919050565b600060208201905081810360008301526135da8161328c565b9050919050565b600060208201905081810360008301526135fa816132af565b9050919050565b6000602082019050818103600083015261361a816132d2565b9050919050565b6000602082019050818103600083015261363a816132f5565b9050919050565b6000602082019050818103600083015261365a8161333b565b9050919050565b6000602082019050818103600083015261367a8161335e565b9050919050565b6000602082019050818103600083015261369a816133a4565b9050919050565b600060208201905081810360008301526136ba816133c7565b9050919050565b60006020820190506136d660008301846133ea565b92915050565b60006020820190506136f160008301846133f9565b92915050565b6000613701613712565b905061370d8282613a4a565b919050565b6000604051905090565b600067ffffffffffffffff82111561373757613736613c04565b5b61374082613c51565b9050602081019050919050565b600067ffffffffffffffff82111561376857613767613c04565b5b61377182613c51565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006137d7826139a6565b91506137e2836139a6565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561381757613816613b19565b5b828201905092915050565b600061382d826139b0565b9150613838836139b0565b92508267ffffffffffffffff0382111561385557613854613b19565b5b828201905092915050565b600061386b826139a6565b9150613876836139a6565b92508261388657613885613b48565b5b828204905092915050565b600061389c826139a6565b91506138a7836139a6565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156138e0576138df613b19565b5b828202905092915050565b60006138f6826139a6565b9150613901836139a6565b92508282101561391457613913613b19565b5b828203905092915050565b600061392a82613986565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600081905061398182613f1f565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b60006139cf82613973565b9050919050565b82818337600083830152505050565b60005b83811015613a035780820151818401526020810190506139e8565b83811115613a12576000848401525b50505050565b60006002820490506001821680613a3057607f821691505b60208210811415613a4457613a43613ba6565b5b50919050565b613a5382613c51565b810181811067ffffffffffffffff82111715613a7257613a71613c04565b5b80604052505050565b6000613a86826139a6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613ab957613ab8613b19565b5b600182019050919050565b6000613acf82613ad6565b9050919050565b6000613ae182613c62565b9050919050565b6000613af3826139a6565b9150613afe836139a6565b925082613b0e57613b0d613b48565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4d6178696d756d206d696e74696e67206c696d69742065786365656465640000600082015250565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4e6f7420656e6f75676820746f6b656e732072656d61696e696e6720746f206d60008201527f696e740000000000000000000000000000000000000000000000000000000000602082015250565b7f73616c65206973206e6f74206163746976650000000000000000000000000000600082015250565b7f4164647265737320646f6573206e6f7420657869737420696e206c6973740000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f4e6f7420656e6f75676820455448000000000000000000000000000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b50565b7f73616c65207374617465206e6f742076616c6964000000000000000000000000600082015250565b7f4d696e74656420746865206d6178696d756d206e6f206f66207075626c69632060008201527f746f6b656e730000000000000000000000000000000000000000000000000000602082015250565b60038110613f3057613f2f613b77565b5b50565b613f3c8161391f565b8114613f4757600080fd5b50565b613f5381613931565b8114613f5e57600080fd5b50565b613f6a8161393d565b8114613f7557600080fd5b50565b613f8181613947565b8114613f8c57600080fd5b50565b613f98816139a6565b8114613fa357600080fd5b50565b613faf816139b0565b8114613fba57600080fd5b5056fea2646970667358221220defd865561e71f30113dc06eef75b7697d8819fb9b109fd6a84be5ebfedacff464736f6c63430008070033
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.