ERC-721
Overview
Max Total Supply
3,333 GS
Holders
1,090
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
5 GSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Graveyard
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 //MODESTE ART CLUB + BILLIONAIRE /* ,, .g8"""bgd `7MM .dP' `M MM dM' ` `7Mb,od8 ,6"Yb.`7M' `MF'.gP"Ya `7M' `MF',6"Yb. `7Mb,od8 ,M""bMM MM MM' "'8) MM VA ,V ,M' Yb VA ,V 8) MM MM' "',AP MM MM. `7MMF' MM ,pm9MM VA ,V 8M"""""" VA ,V ,pm9MM MM 8MI MM `Mb. MM MM 8M MM VVV YM. , VVV 8M MM MM `Mb MM `"bmmmdPY .JMML. `Moo9^Yo. W `Mbmmd' ,V `Moo9^Yo..JMML. `Wbmd"MML. ,V OOb" */ pragma solidity ^0.8.7; import "./ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract Graveyard is ERC721A, Ownable { using Strings for uint256; uint256 public constant MAX_SUPPLY = 3333; uint256 public constant MAX_QUANTITY = 2; uint256 public constant WHITELIST_MAX_QUANTITY = 5; uint256 public constant MINT_PRICE = 1; address public constant CREATOR1_WALLET = 0xDffC60457ac6F6Af63cC646B3f7c2241532EDa27; address public constant CREATOR2_WALLET = 0x6d0DAB7f71D9a05bb3a7e70F9a183b3FEeAcD223; address public constant CREATOR3_WALLET = 0x543CdFf197386ee54aB7a9865b048f7D54d1b71F; address public constant CREATOR4_WALLET = 0x8ffe89F69C33E5F4281e0D515cc447141653193b; mapping(address => bool) public presalerList; mapping(address => uint256) public presalerListPurchases; mapping(address => uint256) public publicMint; bool public wlMintTime = false; bool public publicMintTime = false; string private baseTokenUri = "https://crimson-rapid-worm-376.mypinata.cloud/ipfs/QmYd8SAT6BZZaomo3SREDvMp5NoCJfm2s1menrhvV4ZbY5/"; constructor() ERC721A("Gravestones", "GS") { _safeMint(CREATOR1_WALLET, 50); _safeMint(CREATOR2_WALLET, 50); _safeMint(CREATOR3_WALLET, 50); _safeMint(CREATOR4_WALLET, 50); } function presaleMint() external payable { uint256 _quantity = msg.value/MINT_PRICE; require(presalerList[msg.sender], "You are not Whitelisted!"); require(msg.sender == tx.origin, "No Bots"); require((totalSupply() + _quantity) <= MAX_SUPPLY, "Out Of Stock!"); require(wlMintTime, "It is not time to mint"); require(presalerListPurchases[msg.sender] + _quantity <= WHITELIST_MAX_QUANTITY, "Already Minted!"); presalerListPurchases[msg.sender]+= _quantity; _safeMint(msg.sender, _quantity); } function mint() external payable { uint256 _quantity = msg.value/MINT_PRICE; require(msg.sender == tx.origin, "No Bots"); require((totalSupply() + _quantity) <= MAX_SUPPLY, "Out Of Stock!"); require(publicMintTime, "It is not time to mint"); require(publicMint[msg.sender] + _quantity <= MAX_QUANTITY, "Already Minted!"); publicMint[msg.sender] += _quantity; _safeMint(msg.sender, _quantity); } function addToPresaleList(address[] calldata entries) external onlyOwner { for(uint256 i = 0; i < entries.length; i++) { address entry = entries[i]; require(entry != address(0), "NULL_ADDRESS"); require(!presalerList[entry], "DUPLICATE_ENTRY"); presalerList[entry] = true; } } function removeFromPresaleList(address[] calldata entries) external onlyOwner { for(uint256 i = 0; i < entries.length; i++) { address entry = entries[i]; require(entry != address(0), "NULL_ADDRESS"); presalerList[entry] = false; } } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); uint256 trueId = tokenId; return bytes(baseTokenUri).length > 0 ? string(abi.encodePacked(baseTokenUri, trueId.toString(), ".json")) : ""; } function setTokenURI(string memory _baseTokenUri) external onlyOwner { baseTokenUri = _baseTokenUri; } function flipStateWL() public onlyOwner { wlMintTime = !wlMintTime; } function flipStatePublic() public onlyOwner { publicMintTime = !publicMintTime; } function withdraw() external onlyOwner { uint256 balance = address(this).balance; Address.sendValue(payable(owner()), balance); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// 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 // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintedQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerIndexOutOfBounds(); error OwnerQueryForNonexistentToken(); error TokenIndexOutOfBounds(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error UnableDetermineTokenOwner(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). * * Assumes that an owner cannot have more than the 2**128 - 1 (max value of uint128) of supply */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 internal _currentIndex; // 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 ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { if (index >= totalSupply()) revert TokenIndexOutOfBounds(); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { if (index >= balanceOf(owner)) revert OwnerIndexOutOfBounds(); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx; address currOwnershipAddr; // Counter overflow is impossible as the loop breaks when uint256 i is equal to another uint256 numMintedSoFar. unchecked { for (uint256 i; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } } // Execution should never reach this point. assert(false); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { if (owner == address(0)) revert MintedQueryForZeroAddress(); return uint256(_addressData[owner].numberMinted); } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { if (!_exists(tokenId)) revert OwnerQueryForNonexistentToken(); unchecked { for (uint256 curr = tokenId; curr >= 0; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } revert UnableDetermineTokenOwner(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) revert ApprovalCallerNotOwnerNorApproved(); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); if (!_checkOnERC721Received(from, to, tokenId, _data)) revert TransferToNonERC721ReceiverImplementer(); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < _currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 3.4e38 (2**128) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.56e77 (2**256) - 1 unchecked { _addressData[to].balance += uint128(quantity); _addressData[to].numberMinted += uint128(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; for (uint256 i; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) { revert TransferToNonERC721ReceiverImplementer(); } updatedIndex++; } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // 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 { _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) revert TransferToNonERC721ReceiverImplementer(); else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * 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`. */ 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. * * 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` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _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) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _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 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
{ "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":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"UnableDetermineTokenOwner","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"CREATOR1_WALLET","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CREATOR2_WALLET","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CREATOR3_WALLET","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CREATOR4_WALLET","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_QUANTITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_MAX_QUANTITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"entries","type":"address[]"}],"name":"addToPresaleList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipStatePublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipStateWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presalerList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presalerListPurchases","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintTime","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"entries","type":"address[]"}],"name":"removeFromPresaleList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenUri","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wlMintTime","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526000600b60006101000a81548160ff0219169083151502179055506000600b60016101000a81548160ff0219169083151502179055506040518060a001604052806062815260200162004c7c60629139600c90805190602001906200006b9291906200084d565b503480156200007957600080fd5b506040518060400160405280600b81526020017f477261766573746f6e65730000000000000000000000000000000000000000008152506040518060400160405280600281526020017f47530000000000000000000000000000000000000000000000000000000000008152508160019080519060200190620000fe9291906200084d565b508060029080519060200190620001179291906200084d565b5050506200013a6200012e620001dc60201b60201c565b620001e460201b60201c565b6200016173dffc60457ac6f6af63cc646b3f7c2241532eda276032620002aa60201b60201c565b62000188736d0dab7f71d9a05bb3a7e70f9a183b3feeacd2236032620002aa60201b60201c565b620001af73543cdff197386ee54ab7a9865b048f7d54d1b71f6032620002aa60201b60201c565b620001d6738ffe89f69c33e5f4281e0d515cc447141653193b6032620002aa60201b60201c565b62000b4e565b600033905090565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002cc828260405180602001604052806000815250620002d060201b60201c565b5050565b620002e58383836001620002ea60201b60201c565b505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141562000358576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600084141562000394576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b620003a960008683876200066f60201b60201c565b83600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555083600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550846003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b858110156200064a57818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4838015620005fc5750620005fa60008884886200067560201b60201c565b155b1562000634576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8180600101925050808060010191505062000577565b5080600081905550506200066860008683876200082460201b60201c565b5050505050565b50505050565b6000620006a38473ffffffffffffffffffffffffffffffffffffffff166200082a60201b62001d391760201c565b1562000817578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02620006d5620001dc60201b60201c565b8786866040518563ffffffff1660e01b8152600401620006f99493929190620009a9565b602060405180830381600087803b1580156200071457600080fd5b505af19250505080156200074857506040513d601f19601f8201168201806040525081019062000745919062000914565b60015b620007c6573d80600081146200077b576040519150601f19603f3d011682016040523d82523d6000602084013e62000780565b606091505b50600081511415620007be576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506200081c565b600190505b949350505050565b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b8280546200085b9062000ab9565b90600052602060002090601f0160209004810192826200087f5760008555620008cb565b82601f106200089a57805160ff1916838001178555620008cb565b82800160010185558215620008cb579182015b82811115620008ca578251825591602001919060010190620008ad565b5b509050620008da9190620008de565b5090565b5b80821115620008f9576000816000905550600101620008df565b5090565b6000815190506200090e8162000b34565b92915050565b6000602082840312156200092d576200092c62000b1e565b5b60006200093d84828501620008fd565b91505092915050565b620009518162000a19565b82525050565b60006200096482620009fd565b62000970818562000a08565b93506200098281856020860162000a83565b6200098d8162000b23565b840191505092915050565b620009a38162000a79565b82525050565b6000608082019050620009c0600083018762000946565b620009cf602083018662000946565b620009de604083018562000998565b8181036060830152620009f2818462000957565b905095945050505050565b600081519050919050565b600082825260208201905092915050565b600062000a268262000a59565b9050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101562000aa357808201518184015260208101905062000a86565b8381111562000ab3576000848401525b50505050565b6000600282049050600182168062000ad257607f821691505b6020821081141562000ae95762000ae862000aef565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b62000b3f8162000a2d565b811462000b4b57600080fd5b50565b61411e8062000b5e6000396000f3fe60806040526004361061023b5760003560e01c80636352211e1161012e578063b179e060116100ab578063e0df5b6f1161006f578063e0df5b6f14610849578063e41ee46a14610872578063e985e9c51461089d578063f2fde38b146108da578063f55eb622146109035761023b565b8063b179e06014610764578063b88d4fde1461078d578063c002d23d146107b6578063c87b56dd146107e1578063dfc687501461081e5761023b565b80638f51ecda116100f25780638f51ecda1461066b57806395d89b41146106965780639bf80316146106c15780639cf2e8d6146106fe578063a22cb4651461073b5761023b565b80636352211e1461058657806370a08231146105c3578063715018a6146106005780637204a3c9146106175780638da5cb5b146106405761023b565b80632a516e8d116101bc57806342842e0e1161018057806342842e0e146104c05780634f6ccce7146104e957806359533d6c146105265780635ac80b9d146105305780635e4034721461055b5761023b565b80632a516e8d146103d95780632f745c591461040457806332a93a3a1461044157806332cb6b0c1461047e5780633ccfd60b146104a95761023b565b80631249c58b116102035780631249c58b146103395780631670ea861461034357806318160ddd1461035a57806323b872dd1461038557806325136f8a146103ae5761023b565b806301ffc9a71461024057806306fdde031461027d578063081812fc146102a8578063095ea7b3146102e55780630ebf8f5c1461030e575b600080fd5b34801561024c57600080fd5b506102676004803603810190610262919061335a565b61091a565b604051610274919061380e565b60405180910390f35b34801561028957600080fd5b50610292610a64565b60405161029f9190613829565b60405180910390f35b3480156102b457600080fd5b506102cf60048036038101906102ca91906133fd565b610af6565b6040516102dc91906137a7565b60405180910390f35b3480156102f157600080fd5b5061030c600480360381019061030791906132cd565b610b72565b005b34801561031a57600080fd5b50610323610c7d565b604051610330919061380e565b60405180910390f35b610341610c90565b005b34801561034f57600080fd5b50610358610ea6565b005b34801561036657600080fd5b5061036f610eda565b60405161037c91906139cb565b60405180910390f35b34801561039157600080fd5b506103ac60048036038101906103a791906131b7565b610ee3565b005b3480156103ba57600080fd5b506103c3610ef3565b6040516103d091906137a7565b60405180910390f35b3480156103e557600080fd5b506103ee610f0b565b6040516103fb91906137a7565b60405180910390f35b34801561041057600080fd5b5061042b600480360381019061042691906132cd565b610f23565b60405161043891906139cb565b60405180910390f35b34801561044d57600080fd5b506104686004803603810190610463919061314a565b6110e4565b60405161047591906139cb565b60405180910390f35b34801561048a57600080fd5b506104936110fc565b6040516104a091906139cb565b60405180910390f35b3480156104b557600080fd5b506104be611102565b005b3480156104cc57600080fd5b506104e760048036038101906104e291906131b7565b611123565b005b3480156104f557600080fd5b50610510600480360381019061050b91906133fd565b611143565b60405161051d91906139cb565b60405180910390f35b61052e61118d565b005b34801561053c57600080fd5b5061054561142f565b60405161055291906137a7565b60405180910390f35b34801561056757600080fd5b50610570611447565b60405161057d919061380e565b60405180910390f35b34801561059257600080fd5b506105ad60048036038101906105a891906133fd565b61145a565b6040516105ba91906137a7565b60405180910390f35b3480156105cf57600080fd5b506105ea60048036038101906105e5919061314a565b611470565b6040516105f791906139cb565b60405180910390f35b34801561060c57600080fd5b50610615611550565b005b34801561062357600080fd5b5061063e6004803603810190610639919061330d565b611564565b005b34801561064c57600080fd5b50610655611714565b60405161066291906137a7565b60405180910390f35b34801561067757600080fd5b5061068061173e565b60405161068d91906139cb565b60405180910390f35b3480156106a257600080fd5b506106ab611743565b6040516106b89190613829565b60405180910390f35b3480156106cd57600080fd5b506106e860048036038101906106e3919061314a565b6117d5565b6040516106f591906139cb565b60405180910390f35b34801561070a57600080fd5b506107256004803603810190610720919061314a565b6117ed565b604051610732919061380e565b60405180910390f35b34801561074757600080fd5b50610762600480360381019061075d919061328d565b61180d565b005b34801561077057600080fd5b5061078b6004803603810190610786919061330d565b611985565b005b34801561079957600080fd5b506107b460048036038101906107af919061320a565b611aa8565b005b3480156107c257600080fd5b506107cb611afb565b6040516107d891906139cb565b60405180910390f35b3480156107ed57600080fd5b50610808600480360381019061080391906133fd565b611b00565b6040516108159190613829565b60405180910390f35b34801561082a57600080fd5b50610833611bae565b60405161084091906137a7565b60405180910390f35b34801561085557600080fd5b50610870600480360381019061086b91906133b4565b611bc6565b005b34801561087e57600080fd5b50610887611be8565b60405161089491906139cb565b60405180910390f35b3480156108a957600080fd5b506108c460048036038101906108bf9190613177565b611bed565b6040516108d1919061380e565b60405180910390f35b3480156108e657600080fd5b5061090160048036038101906108fc919061314a565b611c81565b005b34801561090f57600080fd5b50610918611d05565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109e557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a4d57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a5d5750610a5c82611d5c565b5b9050919050565b606060018054610a7390613c0d565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9f90613c0d565b8015610aec5780601f10610ac157610100808354040283529160200191610aec565b820191906000526020600020905b815481529060010190602001808311610acf57829003601f168201915b5050505050905090565b6000610b0182611dc6565b610b37576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b7d8261145a565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610be5576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c04611dd3565b73ffffffffffffffffffffffffffffffffffffffff1614158015610c365750610c3481610c2f611dd3565b611bed565b155b15610c6d576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c78838383611ddb565b505050565b600b60009054906101000a900460ff1681565b6000600134610c9f9190613b26565b90503273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d06906139ab565b60405180910390fd5b610d0581610d1b610eda565b610d259190613ad0565b1115610d66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5d9061386b565b60405180910390fd5b600b60019054906101000a900460ff16610db5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dac9061396b565b60405180910390fd5b600281600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e029190613ad0565b1115610e43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3a906138ab565b60405180910390fd5b80600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610e929190613ad0565b92505081905550610ea33382611e8d565b50565b610eae611eab565b600b60019054906101000a900460ff1615600b60016101000a81548160ff021916908315150217905550565b60008054905090565b610eee838383611f29565b505050565b736d0dab7f71d9a05bb3a7e70f9a183b3feeacd22381565b73543cdff197386ee54ab7a9865b048f7d54d1b71f81565b6000610f2e83611470565b8210610f66576040517f0ddac30e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610f70610eda565b905060008060005b838110156110ca576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461106a57806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156110bc57868414156110b35781955050505050506110de565b83806001019450505b508080600101915050610f78565b5060006110da576110d9613cb9565b5b5050505b92915050565b600a6020528060005260406000206000915090505481565b610d0581565b61110a611eab565b600047905061112061111a611714565b8261244e565b50565b61113e83838360405180602001604052806000815250611aa8565b505050565b600061114d610eda565b8210611185576040517fa723001c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b819050919050565b600060013461119c9190613b26565b9050600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661122a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112219061398b565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611298576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128f906139ab565b60405180910390fd5b610d05816112a4610eda565b6112ae9190613ad0565b11156112ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e69061386b565b60405180910390fd5b600b60009054906101000a900460ff1661133e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113359061396b565b60405180910390fd5b600581600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461138b9190613ad0565b11156113cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c3906138ab565b60405180910390fd5b80600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461141b9190613ad0565b9250508190555061142c3382611e8d565b50565b73dffc60457ac6f6af63cc646b3f7c2241532eda2781565b600b60019054906101000a900460ff1681565b600061146582612542565b600001519050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156114d8576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b611558611eab565b61156260006126ca565b565b61156c611eab565b60005b8282905081101561170f57600083838381811061158f5761158e613d75565b5b90506020020160208101906115a4919061314a565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611616576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160d9061384b565b60405180910390fd5b600860008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156116a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169a9061390b565b60405180910390fd5b6001600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050808061170790613c70565b91505061156f565b505050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600581565b60606002805461175290613c0d565b80601f016020809104026020016040519081016040528092919081815260200182805461177e90613c0d565b80156117cb5780601f106117a0576101008083540402835291602001916117cb565b820191906000526020600020905b8154815290600101906020018083116117ae57829003601f168201915b5050505050905090565b60096020528060005260406000206000915090505481565b60086020528060005260406000206000915054906101000a900460ff1681565b611815611dd3565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561187a576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060066000611887611dd3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611934611dd3565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611979919061380e565b60405180910390a35050565b61198d611eab565b60005b82829050811015611aa35760008383838181106119b0576119af613d75565b5b90506020020160208101906119c5919061314a565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2e9061384b565b60405180910390fd5b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550508080611a9b90613c70565b915050611990565b505050565b611ab3848484611f29565b611abf84848484612790565b611af5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b600181565b6060611b0b82611dc6565b611b4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b419061394b565b60405180910390fd5b60008290506000600c8054611b5e90613c0d565b905011611b7a5760405180602001604052806000815250611ba6565b600c611b858261291e565b604051602001611b96929190613763565b6040516020818303038152906040525b915050919050565b738ffe89f69c33e5f4281e0d515cc447141653193b81565b611bce611eab565b80600c9080519060200190611be4929190612ece565b5050565b600281565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611c89611eab565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611cf9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf09061388b565b60405180910390fd5b611d02816126ca565b50565b611d0d611eab565b600b60009054906101000a900460ff1615600b60006101000a81548160ff021916908315150217905550565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000805482109050919050565b600033905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b611ea78282604051806020016040528060008152506129f6565b5050565b611eb3611dd3565b73ffffffffffffffffffffffffffffffffffffffff16611ed1611714565b73ffffffffffffffffffffffffffffffffffffffff1614611f27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1e9061392b565b60405180910390fd5b565b6000611f3482612542565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16611f5b611dd3565b73ffffffffffffffffffffffffffffffffffffffff161480611fb75750611f80611dd3565b73ffffffffffffffffffffffffffffffffffffffff16611f9f84610af6565b73ffffffffffffffffffffffffffffffffffffffff16145b80611fd35750611fd28260000151611fcd611dd3565b611bed565b5b90508061200c576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612075576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156120dc576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6120e98585856001612a08565b6120f96000848460000151611ddb565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160392506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550836003600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156123de5761233d81611dc6565b156123dd5782600001516003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46124478585856001612a0e565b5050505050565b80471015612491576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612488906138eb565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516124b790613792565b60006040518083038185875af1925050503d80600081146124f4576040519150601f19603f3d011682016040523d82523d6000602084013e6124f9565b606091505b505090508061253d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612534906138cb565b60405180910390fd5b505050565b61254a612f54565b61255382611dc6565b612589576040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008290505b60008110612692576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146126835780925050506126c5565b5080806001900391505061258f565b506040517fe7c0edfb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006127b18473ffffffffffffffffffffffffffffffffffffffff16611d39565b15612911578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026127da611dd3565b8786866040518563ffffffff1660e01b81526004016127fc94939291906137c2565b602060405180830381600087803b15801561281657600080fd5b505af192505050801561284757506040513d601f19601f820116820180604052508101906128449190613387565b60015b6128c1573d8060008114612877576040519150601f19603f3d011682016040523d82523d6000602084013e61287c565b606091505b506000815114156128b9576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612916565b600190505b949350505050565b60606000600161292d84612a14565b01905060008167ffffffffffffffff81111561294c5761294b613da4565b5b6040519080825280601f01601f19166020018201604052801561297e5781602001600182028036833780820191505090505b509050600082602001820190505b6001156129eb578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816129d5576129d4613d17565b5b04945060008514156129e6576129eb565b61298c565b819350505050919050565b612a038383836001612b67565b505050565b50505050565b50505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612a72577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612a6857612a67613d17565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612aaf576d04ee2d6d415b85acef81000000008381612aa557612aa4613d17565b5b0492506020810190505b662386f26fc100008310612ade57662386f26fc100008381612ad457612ad3613d17565b5b0492506010810190505b6305f5e1008310612b07576305f5e1008381612afd57612afc613d17565b5b0492506008810190505b6127108310612b2c576127108381612b2257612b21613d17565b5b0492506004810190505b60648310612b4f5760648381612b4557612b44613d17565b5b0492506002810190505b600a8310612b5e576001810190505b80915050919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415612bd4576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000841415612c0f576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612c1c6000868387612a08565b83600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555083600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550846003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b85811015612eb157818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4838015612e655750612e636000888488612790565b155b15612e9c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81806001019250508080600101915050612dea565b508060008190555050612ec76000868387612a0e565b5050505050565b828054612eda90613c0d565b90600052602060002090601f016020900481019282612efc5760008555612f43565b82601f10612f1557805160ff1916838001178555612f43565b82800160010185558215612f43579182015b82811115612f42578251825591602001919060010190612f27565b5b509050612f509190612f8e565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b80821115612fa7576000816000905550600101612f8f565b5090565b6000612fbe612fb984613a0b565b6139e6565b905082815260208101848484011115612fda57612fd9613de2565b5b612fe5848285613bcb565b509392505050565b6000613000612ffb84613a3c565b6139e6565b90508281526020810184848401111561301c5761301b613de2565b5b613027848285613bcb565b509392505050565b60008135905061303e8161408c565b92915050565b60008083601f84011261305a57613059613dd8565b5b8235905067ffffffffffffffff81111561307757613076613dd3565b5b60208301915083602082028301111561309357613092613ddd565b5b9250929050565b6000813590506130a9816140a3565b92915050565b6000813590506130be816140ba565b92915050565b6000815190506130d3816140ba565b92915050565b600082601f8301126130ee576130ed613dd8565b5b81356130fe848260208601612fab565b91505092915050565b600082601f83011261311c5761311b613dd8565b5b813561312c848260208601612fed565b91505092915050565b600081359050613144816140d1565b92915050565b6000602082840312156131605761315f613dec565b5b600061316e8482850161302f565b91505092915050565b6000806040838503121561318e5761318d613dec565b5b600061319c8582860161302f565b92505060206131ad8582860161302f565b9150509250929050565b6000806000606084860312156131d0576131cf613dec565b5b60006131de8682870161302f565b93505060206131ef8682870161302f565b925050604061320086828701613135565b9150509250925092565b6000806000806080858703121561322457613223613dec565b5b60006132328782880161302f565b94505060206132438782880161302f565b935050604061325487828801613135565b925050606085013567ffffffffffffffff81111561327557613274613de7565b5b613281878288016130d9565b91505092959194509250565b600080604083850312156132a4576132a3613dec565b5b60006132b28582860161302f565b92505060206132c38582860161309a565b9150509250929050565b600080604083850312156132e4576132e3613dec565b5b60006132f28582860161302f565b925050602061330385828601613135565b9150509250929050565b6000806020838503121561332457613323613dec565b5b600083013567ffffffffffffffff81111561334257613341613de7565b5b61334e85828601613044565b92509250509250929050565b6000602082840312156133705761336f613dec565b5b600061337e848285016130af565b91505092915050565b60006020828403121561339d5761339c613dec565b5b60006133ab848285016130c4565b91505092915050565b6000602082840312156133ca576133c9613dec565b5b600082013567ffffffffffffffff8111156133e8576133e7613de7565b5b6133f484828501613107565b91505092915050565b60006020828403121561341357613412613dec565b5b600061342184828501613135565b91505092915050565b61343381613b57565b82525050565b61344281613b69565b82525050565b600061345382613a82565b61345d8185613a98565b935061346d818560208601613bda565b61347681613df1565b840191505092915050565b600061348c82613a8d565b6134968185613ab4565b93506134a6818560208601613bda565b6134af81613df1565b840191505092915050565b60006134c582613a8d565b6134cf8185613ac5565b93506134df818560208601613bda565b80840191505092915050565b600081546134f881613c0d565b6135028186613ac5565b9450600182166000811461351d576001811461352e57613561565b60ff19831686528186019350613561565b61353785613a6d565b60005b838110156135595781548189015260018201915060208101905061353a565b838801955050505b50505092915050565b6000613577600c83613ab4565b915061358282613e02565b602082019050919050565b600061359a600d83613ab4565b91506135a582613e2b565b602082019050919050565b60006135bd602683613ab4565b91506135c882613e54565b604082019050919050565b60006135e0600f83613ab4565b91506135eb82613ea3565b602082019050919050565b6000613603603a83613ab4565b915061360e82613ecc565b604082019050919050565b6000613626601d83613ab4565b915061363182613f1b565b602082019050919050565b6000613649600f83613ab4565b915061365482613f44565b602082019050919050565b600061366c600583613ac5565b915061367782613f6d565b600582019050919050565b600061368f602083613ab4565b915061369a82613f96565b602082019050919050565b60006136b2602f83613ab4565b91506136bd82613fbf565b604082019050919050565b60006136d5601683613ab4565b91506136e08261400e565b602082019050919050565b60006136f8601883613ab4565b915061370382614037565b602082019050919050565b600061371b600083613aa9565b915061372682614060565b600082019050919050565b600061373e600783613ab4565b915061374982614063565b602082019050919050565b61375d81613bc1565b82525050565b600061376f82856134eb565b915061377b82846134ba565b91506137868261365f565b91508190509392505050565b600061379d8261370e565b9150819050919050565b60006020820190506137bc600083018461342a565b92915050565b60006080820190506137d7600083018761342a565b6137e4602083018661342a565b6137f16040830185613754565b81810360608301526138038184613448565b905095945050505050565b60006020820190506138236000830184613439565b92915050565b600060208201905081810360008301526138438184613481565b905092915050565b600060208201905081810360008301526138648161356a565b9050919050565b600060208201905081810360008301526138848161358d565b9050919050565b600060208201905081810360008301526138a4816135b0565b9050919050565b600060208201905081810360008301526138c4816135d3565b9050919050565b600060208201905081810360008301526138e4816135f6565b9050919050565b6000602082019050818103600083015261390481613619565b9050919050565b600060208201905081810360008301526139248161363c565b9050919050565b6000602082019050818103600083015261394481613682565b9050919050565b60006020820190508181036000830152613964816136a5565b9050919050565b60006020820190508181036000830152613984816136c8565b9050919050565b600060208201905081810360008301526139a4816136eb565b9050919050565b600060208201905081810360008301526139c481613731565b9050919050565b60006020820190506139e06000830184613754565b92915050565b60006139f0613a01565b90506139fc8282613c3f565b919050565b6000604051905090565b600067ffffffffffffffff821115613a2657613a25613da4565b5b613a2f82613df1565b9050602081019050919050565b600067ffffffffffffffff821115613a5757613a56613da4565b5b613a6082613df1565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613adb82613bc1565b9150613ae683613bc1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613b1b57613b1a613ce8565b5b828201905092915050565b6000613b3182613bc1565b9150613b3c83613bc1565b925082613b4c57613b4b613d17565b5b828204905092915050565b6000613b6282613ba1565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015613bf8578082015181840152602081019050613bdd565b83811115613c07576000848401525b50505050565b60006002820490506001821680613c2557607f821691505b60208210811415613c3957613c38613d46565b5b50919050565b613c4882613df1565b810181811067ffffffffffffffff82111715613c6757613c66613da4565b5b80604052505050565b6000613c7b82613bc1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613cae57613cad613ce8565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e554c4c5f414444524553530000000000000000000000000000000000000000600082015250565b7f4f7574204f662053746f636b2100000000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f416c7265616479204d696e746564210000000000000000000000000000000000600082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f4455504c49434154455f454e5452590000000000000000000000000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4974206973206e6f742074696d6520746f206d696e7400000000000000000000600082015250565b7f596f7520617265206e6f742057686974656c6973746564210000000000000000600082015250565b50565b7f4e6f20426f747300000000000000000000000000000000000000000000000000600082015250565b61409581613b57565b81146140a057600080fd5b50565b6140ac81613b69565b81146140b757600080fd5b50565b6140c381613b75565b81146140ce57600080fd5b50565b6140da81613bc1565b81146140e557600080fd5b5056fea2646970667358221220079199f56b71501eddd81b72883f67b43eaf1f4f3866301f1e1a8836935d562964736f6c6343000807003368747470733a2f2f6372696d736f6e2d72617069642d776f726d2d3337362e6d7970696e6174612e636c6f75642f697066732f516d59643853415436425a5a616f6d6f3353524544764d70354e6f434a666d3273316d656e72687656345a6259352f
Deployed Bytecode
0x60806040526004361061023b5760003560e01c80636352211e1161012e578063b179e060116100ab578063e0df5b6f1161006f578063e0df5b6f14610849578063e41ee46a14610872578063e985e9c51461089d578063f2fde38b146108da578063f55eb622146109035761023b565b8063b179e06014610764578063b88d4fde1461078d578063c002d23d146107b6578063c87b56dd146107e1578063dfc687501461081e5761023b565b80638f51ecda116100f25780638f51ecda1461066b57806395d89b41146106965780639bf80316146106c15780639cf2e8d6146106fe578063a22cb4651461073b5761023b565b80636352211e1461058657806370a08231146105c3578063715018a6146106005780637204a3c9146106175780638da5cb5b146106405761023b565b80632a516e8d116101bc57806342842e0e1161018057806342842e0e146104c05780634f6ccce7146104e957806359533d6c146105265780635ac80b9d146105305780635e4034721461055b5761023b565b80632a516e8d146103d95780632f745c591461040457806332a93a3a1461044157806332cb6b0c1461047e5780633ccfd60b146104a95761023b565b80631249c58b116102035780631249c58b146103395780631670ea861461034357806318160ddd1461035a57806323b872dd1461038557806325136f8a146103ae5761023b565b806301ffc9a71461024057806306fdde031461027d578063081812fc146102a8578063095ea7b3146102e55780630ebf8f5c1461030e575b600080fd5b34801561024c57600080fd5b506102676004803603810190610262919061335a565b61091a565b604051610274919061380e565b60405180910390f35b34801561028957600080fd5b50610292610a64565b60405161029f9190613829565b60405180910390f35b3480156102b457600080fd5b506102cf60048036038101906102ca91906133fd565b610af6565b6040516102dc91906137a7565b60405180910390f35b3480156102f157600080fd5b5061030c600480360381019061030791906132cd565b610b72565b005b34801561031a57600080fd5b50610323610c7d565b604051610330919061380e565b60405180910390f35b610341610c90565b005b34801561034f57600080fd5b50610358610ea6565b005b34801561036657600080fd5b5061036f610eda565b60405161037c91906139cb565b60405180910390f35b34801561039157600080fd5b506103ac60048036038101906103a791906131b7565b610ee3565b005b3480156103ba57600080fd5b506103c3610ef3565b6040516103d091906137a7565b60405180910390f35b3480156103e557600080fd5b506103ee610f0b565b6040516103fb91906137a7565b60405180910390f35b34801561041057600080fd5b5061042b600480360381019061042691906132cd565b610f23565b60405161043891906139cb565b60405180910390f35b34801561044d57600080fd5b506104686004803603810190610463919061314a565b6110e4565b60405161047591906139cb565b60405180910390f35b34801561048a57600080fd5b506104936110fc565b6040516104a091906139cb565b60405180910390f35b3480156104b557600080fd5b506104be611102565b005b3480156104cc57600080fd5b506104e760048036038101906104e291906131b7565b611123565b005b3480156104f557600080fd5b50610510600480360381019061050b91906133fd565b611143565b60405161051d91906139cb565b60405180910390f35b61052e61118d565b005b34801561053c57600080fd5b5061054561142f565b60405161055291906137a7565b60405180910390f35b34801561056757600080fd5b50610570611447565b60405161057d919061380e565b60405180910390f35b34801561059257600080fd5b506105ad60048036038101906105a891906133fd565b61145a565b6040516105ba91906137a7565b60405180910390f35b3480156105cf57600080fd5b506105ea60048036038101906105e5919061314a565b611470565b6040516105f791906139cb565b60405180910390f35b34801561060c57600080fd5b50610615611550565b005b34801561062357600080fd5b5061063e6004803603810190610639919061330d565b611564565b005b34801561064c57600080fd5b50610655611714565b60405161066291906137a7565b60405180910390f35b34801561067757600080fd5b5061068061173e565b60405161068d91906139cb565b60405180910390f35b3480156106a257600080fd5b506106ab611743565b6040516106b89190613829565b60405180910390f35b3480156106cd57600080fd5b506106e860048036038101906106e3919061314a565b6117d5565b6040516106f591906139cb565b60405180910390f35b34801561070a57600080fd5b506107256004803603810190610720919061314a565b6117ed565b604051610732919061380e565b60405180910390f35b34801561074757600080fd5b50610762600480360381019061075d919061328d565b61180d565b005b34801561077057600080fd5b5061078b6004803603810190610786919061330d565b611985565b005b34801561079957600080fd5b506107b460048036038101906107af919061320a565b611aa8565b005b3480156107c257600080fd5b506107cb611afb565b6040516107d891906139cb565b60405180910390f35b3480156107ed57600080fd5b50610808600480360381019061080391906133fd565b611b00565b6040516108159190613829565b60405180910390f35b34801561082a57600080fd5b50610833611bae565b60405161084091906137a7565b60405180910390f35b34801561085557600080fd5b50610870600480360381019061086b91906133b4565b611bc6565b005b34801561087e57600080fd5b50610887611be8565b60405161089491906139cb565b60405180910390f35b3480156108a957600080fd5b506108c460048036038101906108bf9190613177565b611bed565b6040516108d1919061380e565b60405180910390f35b3480156108e657600080fd5b5061090160048036038101906108fc919061314a565b611c81565b005b34801561090f57600080fd5b50610918611d05565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109e557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a4d57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a5d5750610a5c82611d5c565b5b9050919050565b606060018054610a7390613c0d565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9f90613c0d565b8015610aec5780601f10610ac157610100808354040283529160200191610aec565b820191906000526020600020905b815481529060010190602001808311610acf57829003601f168201915b5050505050905090565b6000610b0182611dc6565b610b37576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b7d8261145a565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610be5576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c04611dd3565b73ffffffffffffffffffffffffffffffffffffffff1614158015610c365750610c3481610c2f611dd3565b611bed565b155b15610c6d576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c78838383611ddb565b505050565b600b60009054906101000a900460ff1681565b6000600134610c9f9190613b26565b90503273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d06906139ab565b60405180910390fd5b610d0581610d1b610eda565b610d259190613ad0565b1115610d66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5d9061386b565b60405180910390fd5b600b60019054906101000a900460ff16610db5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dac9061396b565b60405180910390fd5b600281600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e029190613ad0565b1115610e43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3a906138ab565b60405180910390fd5b80600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610e929190613ad0565b92505081905550610ea33382611e8d565b50565b610eae611eab565b600b60019054906101000a900460ff1615600b60016101000a81548160ff021916908315150217905550565b60008054905090565b610eee838383611f29565b505050565b736d0dab7f71d9a05bb3a7e70f9a183b3feeacd22381565b73543cdff197386ee54ab7a9865b048f7d54d1b71f81565b6000610f2e83611470565b8210610f66576040517f0ddac30e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610f70610eda565b905060008060005b838110156110ca576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461106a57806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156110bc57868414156110b35781955050505050506110de565b83806001019450505b508080600101915050610f78565b5060006110da576110d9613cb9565b5b5050505b92915050565b600a6020528060005260406000206000915090505481565b610d0581565b61110a611eab565b600047905061112061111a611714565b8261244e565b50565b61113e83838360405180602001604052806000815250611aa8565b505050565b600061114d610eda565b8210611185576040517fa723001c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b819050919050565b600060013461119c9190613b26565b9050600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661122a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112219061398b565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611298576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128f906139ab565b60405180910390fd5b610d05816112a4610eda565b6112ae9190613ad0565b11156112ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e69061386b565b60405180910390fd5b600b60009054906101000a900460ff1661133e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113359061396b565b60405180910390fd5b600581600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461138b9190613ad0565b11156113cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c3906138ab565b60405180910390fd5b80600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461141b9190613ad0565b9250508190555061142c3382611e8d565b50565b73dffc60457ac6f6af63cc646b3f7c2241532eda2781565b600b60019054906101000a900460ff1681565b600061146582612542565b600001519050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156114d8576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b611558611eab565b61156260006126ca565b565b61156c611eab565b60005b8282905081101561170f57600083838381811061158f5761158e613d75565b5b90506020020160208101906115a4919061314a565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611616576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160d9061384b565b60405180910390fd5b600860008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156116a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169a9061390b565b60405180910390fd5b6001600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050808061170790613c70565b91505061156f565b505050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600581565b60606002805461175290613c0d565b80601f016020809104026020016040519081016040528092919081815260200182805461177e90613c0d565b80156117cb5780601f106117a0576101008083540402835291602001916117cb565b820191906000526020600020905b8154815290600101906020018083116117ae57829003601f168201915b5050505050905090565b60096020528060005260406000206000915090505481565b60086020528060005260406000206000915054906101000a900460ff1681565b611815611dd3565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561187a576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060066000611887611dd3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611934611dd3565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611979919061380e565b60405180910390a35050565b61198d611eab565b60005b82829050811015611aa35760008383838181106119b0576119af613d75565b5b90506020020160208101906119c5919061314a565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2e9061384b565b60405180910390fd5b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550508080611a9b90613c70565b915050611990565b505050565b611ab3848484611f29565b611abf84848484612790565b611af5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b600181565b6060611b0b82611dc6565b611b4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b419061394b565b60405180910390fd5b60008290506000600c8054611b5e90613c0d565b905011611b7a5760405180602001604052806000815250611ba6565b600c611b858261291e565b604051602001611b96929190613763565b6040516020818303038152906040525b915050919050565b738ffe89f69c33e5f4281e0d515cc447141653193b81565b611bce611eab565b80600c9080519060200190611be4929190612ece565b5050565b600281565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611c89611eab565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611cf9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf09061388b565b60405180910390fd5b611d02816126ca565b50565b611d0d611eab565b600b60009054906101000a900460ff1615600b60006101000a81548160ff021916908315150217905550565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000805482109050919050565b600033905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b611ea78282604051806020016040528060008152506129f6565b5050565b611eb3611dd3565b73ffffffffffffffffffffffffffffffffffffffff16611ed1611714565b73ffffffffffffffffffffffffffffffffffffffff1614611f27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1e9061392b565b60405180910390fd5b565b6000611f3482612542565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16611f5b611dd3565b73ffffffffffffffffffffffffffffffffffffffff161480611fb75750611f80611dd3565b73ffffffffffffffffffffffffffffffffffffffff16611f9f84610af6565b73ffffffffffffffffffffffffffffffffffffffff16145b80611fd35750611fd28260000151611fcd611dd3565b611bed565b5b90508061200c576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612075576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156120dc576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6120e98585856001612a08565b6120f96000848460000151611ddb565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160392506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550836003600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156123de5761233d81611dc6565b156123dd5782600001516003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46124478585856001612a0e565b5050505050565b80471015612491576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612488906138eb565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516124b790613792565b60006040518083038185875af1925050503d80600081146124f4576040519150601f19603f3d011682016040523d82523d6000602084013e6124f9565b606091505b505090508061253d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612534906138cb565b60405180910390fd5b505050565b61254a612f54565b61255382611dc6565b612589576040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008290505b60008110612692576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146126835780925050506126c5565b5080806001900391505061258f565b506040517fe7c0edfb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006127b18473ffffffffffffffffffffffffffffffffffffffff16611d39565b15612911578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026127da611dd3565b8786866040518563ffffffff1660e01b81526004016127fc94939291906137c2565b602060405180830381600087803b15801561281657600080fd5b505af192505050801561284757506040513d601f19601f820116820180604052508101906128449190613387565b60015b6128c1573d8060008114612877576040519150601f19603f3d011682016040523d82523d6000602084013e61287c565b606091505b506000815114156128b9576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612916565b600190505b949350505050565b60606000600161292d84612a14565b01905060008167ffffffffffffffff81111561294c5761294b613da4565b5b6040519080825280601f01601f19166020018201604052801561297e5781602001600182028036833780820191505090505b509050600082602001820190505b6001156129eb578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816129d5576129d4613d17565b5b04945060008514156129e6576129eb565b61298c565b819350505050919050565b612a038383836001612b67565b505050565b50505050565b50505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612a72577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612a6857612a67613d17565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612aaf576d04ee2d6d415b85acef81000000008381612aa557612aa4613d17565b5b0492506020810190505b662386f26fc100008310612ade57662386f26fc100008381612ad457612ad3613d17565b5b0492506010810190505b6305f5e1008310612b07576305f5e1008381612afd57612afc613d17565b5b0492506008810190505b6127108310612b2c576127108381612b2257612b21613d17565b5b0492506004810190505b60648310612b4f5760648381612b4557612b44613d17565b5b0492506002810190505b600a8310612b5e576001810190505b80915050919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415612bd4576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000841415612c0f576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612c1c6000868387612a08565b83600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555083600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550846003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b85811015612eb157818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4838015612e655750612e636000888488612790565b155b15612e9c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81806001019250508080600101915050612dea565b508060008190555050612ec76000868387612a0e565b5050505050565b828054612eda90613c0d565b90600052602060002090601f016020900481019282612efc5760008555612f43565b82601f10612f1557805160ff1916838001178555612f43565b82800160010185558215612f43579182015b82811115612f42578251825591602001919060010190612f27565b5b509050612f509190612f8e565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b80821115612fa7576000816000905550600101612f8f565b5090565b6000612fbe612fb984613a0b565b6139e6565b905082815260208101848484011115612fda57612fd9613de2565b5b612fe5848285613bcb565b509392505050565b6000613000612ffb84613a3c565b6139e6565b90508281526020810184848401111561301c5761301b613de2565b5b613027848285613bcb565b509392505050565b60008135905061303e8161408c565b92915050565b60008083601f84011261305a57613059613dd8565b5b8235905067ffffffffffffffff81111561307757613076613dd3565b5b60208301915083602082028301111561309357613092613ddd565b5b9250929050565b6000813590506130a9816140a3565b92915050565b6000813590506130be816140ba565b92915050565b6000815190506130d3816140ba565b92915050565b600082601f8301126130ee576130ed613dd8565b5b81356130fe848260208601612fab565b91505092915050565b600082601f83011261311c5761311b613dd8565b5b813561312c848260208601612fed565b91505092915050565b600081359050613144816140d1565b92915050565b6000602082840312156131605761315f613dec565b5b600061316e8482850161302f565b91505092915050565b6000806040838503121561318e5761318d613dec565b5b600061319c8582860161302f565b92505060206131ad8582860161302f565b9150509250929050565b6000806000606084860312156131d0576131cf613dec565b5b60006131de8682870161302f565b93505060206131ef8682870161302f565b925050604061320086828701613135565b9150509250925092565b6000806000806080858703121561322457613223613dec565b5b60006132328782880161302f565b94505060206132438782880161302f565b935050604061325487828801613135565b925050606085013567ffffffffffffffff81111561327557613274613de7565b5b613281878288016130d9565b91505092959194509250565b600080604083850312156132a4576132a3613dec565b5b60006132b28582860161302f565b92505060206132c38582860161309a565b9150509250929050565b600080604083850312156132e4576132e3613dec565b5b60006132f28582860161302f565b925050602061330385828601613135565b9150509250929050565b6000806020838503121561332457613323613dec565b5b600083013567ffffffffffffffff81111561334257613341613de7565b5b61334e85828601613044565b92509250509250929050565b6000602082840312156133705761336f613dec565b5b600061337e848285016130af565b91505092915050565b60006020828403121561339d5761339c613dec565b5b60006133ab848285016130c4565b91505092915050565b6000602082840312156133ca576133c9613dec565b5b600082013567ffffffffffffffff8111156133e8576133e7613de7565b5b6133f484828501613107565b91505092915050565b60006020828403121561341357613412613dec565b5b600061342184828501613135565b91505092915050565b61343381613b57565b82525050565b61344281613b69565b82525050565b600061345382613a82565b61345d8185613a98565b935061346d818560208601613bda565b61347681613df1565b840191505092915050565b600061348c82613a8d565b6134968185613ab4565b93506134a6818560208601613bda565b6134af81613df1565b840191505092915050565b60006134c582613a8d565b6134cf8185613ac5565b93506134df818560208601613bda565b80840191505092915050565b600081546134f881613c0d565b6135028186613ac5565b9450600182166000811461351d576001811461352e57613561565b60ff19831686528186019350613561565b61353785613a6d565b60005b838110156135595781548189015260018201915060208101905061353a565b838801955050505b50505092915050565b6000613577600c83613ab4565b915061358282613e02565b602082019050919050565b600061359a600d83613ab4565b91506135a582613e2b565b602082019050919050565b60006135bd602683613ab4565b91506135c882613e54565b604082019050919050565b60006135e0600f83613ab4565b91506135eb82613ea3565b602082019050919050565b6000613603603a83613ab4565b915061360e82613ecc565b604082019050919050565b6000613626601d83613ab4565b915061363182613f1b565b602082019050919050565b6000613649600f83613ab4565b915061365482613f44565b602082019050919050565b600061366c600583613ac5565b915061367782613f6d565b600582019050919050565b600061368f602083613ab4565b915061369a82613f96565b602082019050919050565b60006136b2602f83613ab4565b91506136bd82613fbf565b604082019050919050565b60006136d5601683613ab4565b91506136e08261400e565b602082019050919050565b60006136f8601883613ab4565b915061370382614037565b602082019050919050565b600061371b600083613aa9565b915061372682614060565b600082019050919050565b600061373e600783613ab4565b915061374982614063565b602082019050919050565b61375d81613bc1565b82525050565b600061376f82856134eb565b915061377b82846134ba565b91506137868261365f565b91508190509392505050565b600061379d8261370e565b9150819050919050565b60006020820190506137bc600083018461342a565b92915050565b60006080820190506137d7600083018761342a565b6137e4602083018661342a565b6137f16040830185613754565b81810360608301526138038184613448565b905095945050505050565b60006020820190506138236000830184613439565b92915050565b600060208201905081810360008301526138438184613481565b905092915050565b600060208201905081810360008301526138648161356a565b9050919050565b600060208201905081810360008301526138848161358d565b9050919050565b600060208201905081810360008301526138a4816135b0565b9050919050565b600060208201905081810360008301526138c4816135d3565b9050919050565b600060208201905081810360008301526138e4816135f6565b9050919050565b6000602082019050818103600083015261390481613619565b9050919050565b600060208201905081810360008301526139248161363c565b9050919050565b6000602082019050818103600083015261394481613682565b9050919050565b60006020820190508181036000830152613964816136a5565b9050919050565b60006020820190508181036000830152613984816136c8565b9050919050565b600060208201905081810360008301526139a4816136eb565b9050919050565b600060208201905081810360008301526139c481613731565b9050919050565b60006020820190506139e06000830184613754565b92915050565b60006139f0613a01565b90506139fc8282613c3f565b919050565b6000604051905090565b600067ffffffffffffffff821115613a2657613a25613da4565b5b613a2f82613df1565b9050602081019050919050565b600067ffffffffffffffff821115613a5757613a56613da4565b5b613a6082613df1565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613adb82613bc1565b9150613ae683613bc1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613b1b57613b1a613ce8565b5b828201905092915050565b6000613b3182613bc1565b9150613b3c83613bc1565b925082613b4c57613b4b613d17565b5b828204905092915050565b6000613b6282613ba1565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015613bf8578082015181840152602081019050613bdd565b83811115613c07576000848401525b50505050565b60006002820490506001821680613c2557607f821691505b60208210811415613c3957613c38613d46565b5b50919050565b613c4882613df1565b810181811067ffffffffffffffff82111715613c6757613c66613da4565b5b80604052505050565b6000613c7b82613bc1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613cae57613cad613ce8565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e554c4c5f414444524553530000000000000000000000000000000000000000600082015250565b7f4f7574204f662053746f636b2100000000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f416c7265616479204d696e746564210000000000000000000000000000000000600082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f4455504c49434154455f454e5452590000000000000000000000000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4974206973206e6f742074696d6520746f206d696e7400000000000000000000600082015250565b7f596f7520617265206e6f742057686974656c6973746564210000000000000000600082015250565b50565b7f4e6f20426f747300000000000000000000000000000000000000000000000000600082015250565b61409581613b57565b81146140a057600080fd5b50565b6140ac81613b69565b81146140b757600080fd5b50565b6140c381613b75565b81146140ce57600080fd5b50565b6140da81613bc1565b81146140e557600080fd5b5056fea2646970667358221220079199f56b71501eddd81b72883f67b43eaf1f4f3866301f1e1a8836935d562964736f6c63430008070033
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.