Overview
TokenID
198
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AEdgeAdobotsGen1
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./ERC721Tradable.sol"; // ************************************************* // _____ ___________ .___ // / _ \ \_ _____/ __| _/ ____ ____ // / /_\ \ | __)_ / __ | / ___\ _/ __ \ // / | \ | \/ /_/ | / /_/ >\ ___/ // \____|__ //_______ /\____ | \___ / \___ > // \/ \/ \//_____/ \/ // ************************************************** contract AEdgeAdobotsGen1 is ERC721Tradable, IERC2981, ReentrancyGuard { uint256 public MINT_PRICE = 0.3 ether; uint256 public WHITELIST_PRICE = 0.25 ether; uint256 public maxSupply = 4096; uint256 public maxPerWallet = 6; bytes32 public merkleRoot; string private baseURI = "https://adobots.mypinata.cloud/ipfs/QmYTAxCo2M54jTtXKC1VeNrMxsqaTtqfV1gCDL6vfivzLD/"; address public constant WITHDRAW_ADDRESS = 0xe37E7F684c38daCA4628f2C418366BA43FE2525D; address public constant ROYALTY_RECEIVER = 0xe37E7F684c38daCA4628f2C418366BA43FE2525D; bool private mintingClosed = false; bool private mintingEnabled = false; struct MintSettings { uint256 maxSupply; uint256 maxPerWallet; uint256 mintPrice; uint256 whitelistPrice; uint256 count; bytes32 merkleRoot; bool mintingEnabled; bool mintingClosed; } constructor() ERC721Tradable( "AEdge Adobots Generation One", "AEdgeAdobotsGen1", 0xa5409ec958C83C3f309868babACA7c86DCB077c1 ) { } function setMintPrice(uint256 newMintPrice, uint256 newWhitelistPrice) external onlyOwner { MINT_PRICE = newMintPrice; WHITELIST_PRICE = newWhitelistPrice; } function whitelistMint( uint256 num, bytes32[] calldata merkleProof ) external nonReentrant payable returns (uint256) { require(isMintingEnabled(), "Minting is not enabled"); bulkRequire(num, WHITELIST_PRICE); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require( MerkleProof.verify(merkleProof, merkleRoot, leaf), "Your address is not whitelisted" ); _safeMint(msg.sender, num); return _totalMinted(); } function payToMint(uint256 num) external nonReentrant payable returns (uint256) { require(isMintingEnabled(), "Minting is not enabled"); bulkRequire(num, MINT_PRICE); _safeMint(msg.sender, num); return _totalMinted(); } function ownerMint(uint256 num, address to) external onlyOwner returns (uint256) { require(_totalMinted() + num <= maxSupply, "Maximum number of tokens minted"); _safeMint(to, num); return _totalMinted(); } function setBaseURI(string calldata newBaseURI) external onlyOwner { baseURI = newBaseURI; } function closeMinting() external onlyOwner { mintingClosed = true; } function setMaxPerWallet(uint256 maxPerWalletValue) external onlyOwner { maxPerWallet = maxPerWalletValue; } function setMerkleRoot(bytes32 newMerkleRoot) external onlyOwner { merkleRoot = newMerkleRoot; } function setNewMaxSupply(uint256 newMaxSupply) external onlyOwner { require(newMaxSupply <= 4096, "New max supply can not be over 4096"); require(newMaxSupply >= totalSupply(), "New max must be greater than current supply"); maxSupply = newMaxSupply; } function setMintingEnabled(bool mintingEnabledValue) external onlyOwner { mintingEnabled = mintingEnabledValue; } function withdrawAll() external onlyOwner returns (bool) { (bool sent,) = WITHDRAW_ADDRESS.call{value: address(this).balance}(""); require(sent, "WITHDRAW_FAILED"); return sent; } function getAddressTokens(address addr) external view returns (uint256[] memory) { uint256[] memory myTokenIds = new uint256[](balanceOf(addr)); uint256 c = 0; for (uint256 i = _startTokenId(); i < _nextTokenId(); i++) { if (ownerOf(i) == addr) { myTokenIds[c++] = i; } } return myTokenIds; } function getTokenHolders() external view returns (address[] memory) { address[] memory tokenHolders = new address[](totalSupply()); uint256 c = 0; for (uint256 i = _startTokenId(); i < _nextTokenId(); i++) { tokenHolders[c++] = ownerOf(i); } return tokenHolders; } function getMintSettings() external view returns (MintSettings memory) { MintSettings memory mintSettings = MintSettings( maxSupply, maxPerWallet, MINT_PRICE, WHITELIST_PRICE, totalSupply(), merkleRoot, mintingEnabled, mintingClosed ); return mintSettings; } function isWhitelisted(address addr, bytes32[] calldata merkleProof) external view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(addr)); return MerkleProof.verify(merkleProof, merkleRoot, leaf); } /** * @dev Interface implementation for the NFT Royalty Standard (ERC-2981). * Called by marketplaces that supports the standard with the sale price to determine how much royalty * is owed and to whom. * The first parameter tokenId (the NFT asset queried for royalty information) is not used as royalties * are calculated equally for all tokens. * @param salePrice - the sale price of the NFT asset specified by `tokenId` * @return receiver - address of who should be sent the royalty payment * @return royaltyAmount - the royalty payment amount for `salePrice` */ function royaltyInfo(uint256, uint256 salePrice) external pure override returns (address, uint256) { return (ROYALTY_RECEIVER, salePrice / 10); } function isMintingEnabled() public view returns (bool) { return mintingEnabled && !mintingClosed; } function supportsInterface( bytes4 interfaceId ) public view override(ERC721A, IERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } function _baseURI() internal view override returns (string memory) { return baseURI; } function _startTokenId() internal pure override returns (uint256) { return 1; } function bulkRequire(uint256 num, uint256 mintPrice) private { require(msg.value == (mintPrice * num), "Incorrect amount of ether provided for the mint!"); require(_totalMinted() + num <= maxSupply, "Maximum number of tokens minted"); require(num + _numberMinted(msg.sender) <= maxPerWallet, "Max mints per wallet reached"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./common/meta-transactions/ContentMixin.sol"; import "./common/meta-transactions/NativeMetaTransaction.sol"; contract OwnableDelegateProxy {} /** * Used to delegate ownership of a contract to another address, to save on unneeded transactions to approve contract use for users */ contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } /** * @title ERC721Tradable * ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality. */ abstract contract ERC721Tradable is ERC721A, ContextMixin, NativeMetaTransaction, Ownable { address proxyRegistryAddress; constructor( string memory _name, string memory _symbol, address _proxyRegistryAddress ) ERC721A(_name, _symbol) { proxyRegistryAddress = _proxyRegistryAddress; _initializeEIP712(_name); } /** * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) public view override returns (bool) { // Whitelist OpenSea proxy contract for easy trading. ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } /** * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea. */ function _msgSenderERC721A() internal view override returns (address sender) { return ContextMixin.msgSender(); } }
// 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 // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, * including the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at `_startTokenId()` * (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with `_mintERC2309`. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to `_mintERC2309` // is required to cause an overflow, which is unrealistic. uint256 private constant MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to `_startTokenId()` unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> BITPOS_EXTRA_DATA); } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, BITMASK_ADDRESS) // `owner | (block.timestamp << BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << BITPOS_NEXT_INITIALIZED`. result := shl(BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal { 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` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 tokenId = startTokenId; uint256 end = startTokenId + quantity; do { emit Transfer(address(0), to, tokenId++); } while (tokenId < end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { // Compute the slot. mstore(0x00, tokenId) mstore(0x20, tokenApprovalsPtr.slot) approvedAddressSlot := keccak256(0x00, 0x40) // Load the slot's value from storage. approvedAddress := sload(approvedAddressSlot) } } /** * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`. */ function _isOwnerOrApproved( address approvedAddress, address from, address msgSender ) private pure returns (bool result) { assembly { // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from := and(from, BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, BITMASK_ADDRESS) // `msgSender == from || msgSender == approvedAddress`. result := or(eq(msgSender, from), eq(msgSender, approvedAddress)) } } /** * @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 transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (BITMASK_BURNED | BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << BITPOS_EXTRA_DATA; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. * This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. * This includes minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function _toString(uint256 value) internal pure returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// 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 pragma solidity ^0.8.0; abstract contract ContextMixin { function msgSender() internal view returns (address payable sender) { if (msg.sender == address(this)) { bytes memory array = msg.data; uint256 index = msg.data.length; assembly { // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those. sender := and( mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff ) } } else { sender = payable(msg.sender); } return sender; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {SafeMath} from "@openzeppelin/contracts/utils/math/SafeMath.sol"; import {EIP712Base} from "./EIP712Base.sol"; contract NativeMetaTransaction is EIP712Base { using SafeMath for uint256; bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256( bytes( "MetaTransaction(uint256 nonce,address from,bytes functionSignature)" ) ); event MetaTransactionExecuted( address userAddress, address payable relayerAddress, bytes functionSignature ); mapping(address => uint256) nonces; /* * Meta transaction structure. * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas * He should call the desired function directly in that case. */ struct MetaTransaction { uint256 nonce; address from; bytes functionSignature; } function executeMetaTransaction( address userAddress, bytes memory functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV ) public payable returns (bytes memory) { MetaTransaction memory metaTx = MetaTransaction({ nonce: nonces[userAddress], from: userAddress, functionSignature: functionSignature }); require( verify(userAddress, metaTx, sigR, sigS, sigV), "Signer and signature do not match" ); // increase nonce for user (to avoid re-use) nonces[userAddress] = nonces[userAddress].add(1); emit MetaTransactionExecuted( userAddress, payable(msg.sender), functionSignature ); // Append userAddress and relayer address at the end to extract it from calling context (bool success, bytes memory returnData) = address(this).call( abi.encodePacked(functionSignature, userAddress) ); require(success, "Function call not successful"); return returnData; } function hashMetaTransaction(MetaTransaction memory metaTx) internal pure returns (bytes32) { return keccak256( abi.encode( META_TRANSACTION_TYPEHASH, metaTx.nonce, metaTx.from, keccak256(metaTx.functionSignature) ) ); } function getNonce(address user) public view returns (uint256 nonce) { nonce = nonces[user]; } function verify( address signer, MetaTransaction memory metaTx, bytes32 sigR, bytes32 sigS, uint8 sigV ) internal view returns (bool) { require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER"); return signer == ecrecover( toTypedMessageHash(hashMetaTransaction(metaTx)), sigV, sigR, sigS ); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set through `_extraData`. uint24 extraData; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // IERC165 // ============================== /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================== // IERC721 // ============================== /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // IERC721Metadata // ============================== /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================== // IERC2309 // ============================== /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`, * as defined in the ERC2309 standard. See `_mintERC2309` for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {Initializable} from "./Initializable.sol"; contract EIP712Base is Initializable { struct EIP712Domain { string name; string version; address verifyingContract; bytes32 salt; } string constant public ERC712_VERSION = "1"; bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256( bytes( "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)" ) ); bytes32 internal domainSeperator; // supposed to be called once while initializing. // one of the contracts that inherits this contract follows proxy pattern // so it is not possible to do this in a constructor function _initializeEIP712( string memory name ) internal initializer { _setDomainSeperator(name); } function _setDomainSeperator(string memory name) internal { domainSeperator = keccak256( abi.encode( EIP712_DOMAIN_TYPEHASH, keccak256(bytes(name)), keccak256(bytes(ERC712_VERSION)), address(this), bytes32(getChainId()) ) ); } function getDomainSeperator() public view returns (bytes32) { return domainSeperator; } function getChainId() public view returns (uint256) { uint256 id; assembly { id := chainid() } return id; } /** * Accept message hash and returns hash message in EIP712 compatible form * So that it can be used to recover signer from signature signed using EIP712 formatted data * https://eips.ethereum.org/EIPS/eip-712 * "\\x19" makes the encoding deterministic * "\\x01" is the version byte to make it compatible to EIP-191 */ function toTypedMessageHash(bytes32 messageHash) internal view returns (bytes32) { return keccak256( abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash) ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Initializable { bool inited = false; modifier initializer() { require(!inited, "already inited"); _; inited = true; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","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":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROYALTY_RECEIVER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WITHDRAW_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"closeMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getAddressTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintSettings","outputs":[{"components":[{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"whitelistPrice","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"bool","name":"mintingEnabled","type":"bool"},{"internalType":"bool","name":"mintingClosed","type":"bool"}],"internalType":"struct AEdgeAdobotsGen1.MintSettings","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenHolders","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":"isMintingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"ownerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"}],"name":"payToMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","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":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxPerWalletValue","type":"uint256"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newMerkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMintPrice","type":"uint256"},{"internalType":"uint256","name":"newWhitelistPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"mintingEnabledValue","type":"bool"}],"name":"setMintingEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxSupply","type":"uint256"}],"name":"setNewMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":[{"internalType":"uint256","name":"num","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600860006101000a81548160ff021916908315150217905550670429d069189e0000600e556703782dace9d90000600f556110006010556006601155604051806080016040528060538152602001620051e86053913960139080519060200190620000739291906200041d565b506000601460006101000a81548160ff0219169083151502179055506000601460016101000a81548160ff021916908315150217905550348015620000b757600080fd5b506040518060400160405280601c81526020017f41456467652041646f626f74732047656e65726174696f6e204f6e65000000008152506040518060400160405280601081526020017f414564676541646f626f747347656e310000000000000000000000000000000081525073a5409ec958c83c3f309868babaca7c86dcb077c182828160029080519060200190620001539291906200041d565b5080600390805190602001906200016c9291906200041d565b506200017d6200020860201b60201c565b6000819055505050620001a5620001996200021160201b60201c565b6200021960201b60201c565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620001f783620002df60201b60201c565b5050506001600d8190555062000671565b60006001905090565b600033905090565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600860009054906101000a900460ff161562000332576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000329906200052e565b60405180910390fd5b62000343816200036160201b60201c565b6001600860006101000a81548160ff02191690831515021790555050565b6040518060800160405280604f815260200162005199604f91398051906020012081805190602001206040518060400160405280600181526020017f31000000000000000000000000000000000000000000000000000000000000008152508051906020012030620003d86200041060201b60201c565b60001b604051602001620003f1959493929190620005b0565b6040516020818303038152906040528051906020012060098190555050565b6000804690508091505090565b8280546200042b906200063c565b90600052602060002090601f0160209004810192826200044f57600085556200049b565b82601f106200046a57805160ff19168380011785556200049b565b828001600101855582156200049b579182015b828111156200049a5782518255916020019190600101906200047d565b5b509050620004aa9190620004ae565b5090565b5b80821115620004c9576000816000905550600101620004af565b5090565b600082825260208201905092915050565b7f616c726561647920696e69746564000000000000000000000000000000000000600082015250565b600062000516600e83620004cd565b91506200052382620004de565b602082019050919050565b60006020820190508181036000830152620005498162000507565b9050919050565b6000819050919050565b620005658162000550565b82525050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000598826200056b565b9050919050565b620005aa816200058b565b82525050565b600060a082019050620005c760008301886200055a565b620005d660208301876200055a565b620005e560408301866200055a565b620005f460608301856200059f565b6200060360808301846200055a565b9695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200065557607f821691505b6020821081036200066b576200066a6200060d565b5b50919050565b614b1880620006816000396000f3fe60806040526004361061027d5760003560e01c80635abae4cd1161014f578063a22cb465116100c1578063d52c57e01161007a578063d52c57e0146109b0578063d55eb496146109ed578063d5abeb0114610a18578063e268e4d314610a43578063e985e9c514610a6c578063f2fde38b14610aa95761027d565b8063a22cb4651461089d578063b7c7d9a7146108c6578063b88d4fde146108ef578063c002d23d14610918578063c87b56dd14610943578063d2cab056146109805761027d565b80637cb64759116101135780637cb64759146107b1578063853828b6146107da57806387491c6014610805578063876b15661461081c5780638da5cb5b1461084757806395d89b41146108725761027d565b80635abae4cd146106b35780635c4c94ae146106f05780636352211e1461072057806370a082311461075d578063715018a61461079a5761027d565b806320379ee5116101f357806342842e0e116101ac57806342842e0e146105a5578063453c2310146105ce5780634ea3871a146105f957806355c7ba141461062257806355f804b31461064d5780635a23dd99146106765761027d565b806320379ee51461048057806323b872dd146104ab5780632a55205a146104d45780632d0335ab146105125780632eb4a7ab1461054f5780633408e4701461057a5761027d565b80630c53c51c116102455780630c53c51c146103795780630d0c6af6146103a95780630f7e5970146103d4578063122e04a8146103ff57806317e7f2951461042a57806318160ddd146104555761027d565b806301ffc9a7146102825780630442bfa8146102bf57806306fdde03146102e8578063081812fc14610313578063095ea7b314610350575b600080fd5b34801561028e57600080fd5b506102a960048036038101906102a4919061314f565b610ad2565b6040516102b69190613197565b60405180910390f35b3480156102cb57600080fd5b506102e660048036038101906102e191906131e8565b610b4c565b005b3480156102f457600080fd5b506102fd610b66565b60405161030a91906132c1565b60405180910390f35b34801561031f57600080fd5b5061033a600480360381019061033591906132e3565b610bf8565b6040516103479190613351565b60405180910390f35b34801561035c57600080fd5b5061037760048036038101906103729190613398565b610c74565b005b610393600480360381019061038e919061357c565b610db5565b6040516103a09190613668565b60405180910390f35b3480156103b557600080fd5b506103be611027565b6040516103cb9190613351565b60405180910390f35b3480156103e057600080fd5b506103e961103f565b6040516103f691906132c1565b60405180910390f35b34801561040b57600080fd5b50610414611078565b6040516104219190613351565b60405180910390f35b34801561043657600080fd5b5061043f611090565b60405161044c9190613699565b60405180910390f35b34801561046157600080fd5b5061046a611096565b6040516104779190613699565b60405180910390f35b34801561048c57600080fd5b506104956110ad565b6040516104a291906136c3565b60405180910390f35b3480156104b757600080fd5b506104d260048036038101906104cd91906136de565b6110b7565b005b3480156104e057600080fd5b506104fb60048036038101906104f691906131e8565b6113d9565b604051610509929190613731565b60405180910390f35b34801561051e57600080fd5b506105396004803603810190610534919061375a565b611409565b6040516105469190613699565b60405180910390f35b34801561055b57600080fd5b50610564611452565b60405161057191906136c3565b60405180910390f35b34801561058657600080fd5b5061058f611458565b60405161059c9190613699565b60405180910390f35b3480156105b157600080fd5b506105cc60048036038101906105c791906136de565b611465565b005b3480156105da57600080fd5b506105e3611485565b6040516105f09190613699565b60405180910390f35b34801561060557600080fd5b50610620600480360381019061061b91906137b3565b61148b565b005b34801561062e57600080fd5b506106376114b0565b6040516106449190613197565b60405180910390f35b34801561065957600080fd5b50610674600480360381019061066f9190613840565b6114e0565b005b34801561068257600080fd5b5061069d600480360381019061069891906138e3565b6114fe565b6040516106aa9190613197565b60405180910390f35b3480156106bf57600080fd5b506106da60048036038101906106d5919061375a565b611582565b6040516106e79190613a01565b60405180910390f35b61070a600480360381019061070591906132e3565b61167c565b6040516107179190613699565b60405180910390f35b34801561072c57600080fd5b50610747600480360381019061074291906132e3565b61173f565b6040516107549190613351565b60405180910390f35b34801561076957600080fd5b50610784600480360381019061077f919061375a565b611751565b6040516107919190613699565b60405180910390f35b3480156107a657600080fd5b506107af611809565b005b3480156107bd57600080fd5b506107d860048036038101906107d39190613a23565b61181d565b005b3480156107e657600080fd5b506107ef61182f565b6040516107fc9190613197565b60405180910390f35b34801561081157600080fd5b5061081a611900565b005b34801561082857600080fd5b50610831611925565b60405161083e9190613b0e565b60405180910390f35b34801561085357600080fd5b5061085c611a16565b6040516108699190613351565b60405180910390f35b34801561087e57600080fd5b50610887611a40565b60405161089491906132c1565b60405180910390f35b3480156108a957600080fd5b506108c460048036038101906108bf9190613b30565b611ad2565b005b3480156108d257600080fd5b506108ed60048036038101906108e891906132e3565b611c49565b005b3480156108fb57600080fd5b5061091660048036038101906109119190613b70565b611cea565b005b34801561092457600080fd5b5061092d611d5d565b60405161093a9190613699565b60405180910390f35b34801561094f57600080fd5b5061096a600480360381019061096591906132e3565b611d63565b60405161097791906132c1565b60405180910390f35b61099a60048036038101906109959190613bf3565b611e01565b6040516109a79190613699565b60405180910390f35b3480156109bc57600080fd5b506109d760048036038101906109d29190613c53565b611f7f565b6040516109e49190613699565b60405180910390f35b3480156109f957600080fd5b50610a02611ffa565b604051610a0f9190613d53565b60405180910390f35b348015610a2457600080fd5b50610a2d61207a565b604051610a3a9190613699565b60405180910390f35b348015610a4f57600080fd5b50610a6a6004803603810190610a6591906132e3565b612080565b005b348015610a7857600080fd5b50610a936004803603810190610a8e9190613d6f565b612092565b604051610aa09190613197565b60405180910390f35b348015610ab557600080fd5b50610ad06004803603810190610acb919061375a565b612184565b005b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b455750610b4482612207565b5b9050919050565b610b54612299565b81600e8190555080600f819055505050565b606060028054610b7590613dde565b80601f0160208091040260200160405190810160405280929190818152602001828054610ba190613dde565b8015610bee5780601f10610bc357610100808354040283529160200191610bee565b820191906000526020600020905b815481529060010190602001808311610bd157829003601f168201915b5050505050905090565b6000610c0382612317565b610c39576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c7f8261173f565b90508073ffffffffffffffffffffffffffffffffffffffff16610ca0612376565b73ffffffffffffffffffffffffffffffffffffffff1614610d0357610ccc81610cc7612376565b612092565b610d02576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b606060006040518060600160405280600a60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152509050610e388782878787612385565b610e77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6e90613e81565b60405180910390fd5b610eca6001600a60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461248d90919063ffffffff16565b600a60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b873388604051610f4093929190613ec2565b60405180910390a16000803073ffffffffffffffffffffffffffffffffffffffff16888a604051602001610f75929190613f84565b604051602081830303815290604052604051610f919190613fac565b6000604051808303816000865af19150503d8060008114610fce576040519150601f19603f3d011682016040523d82523d6000602084013e610fd3565b606091505b509150915081611018576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100f9061400f565b60405180910390fd5b80935050505095945050505050565b73e37e7f684c38daca4628f2c418366ba43fe2525d81565b6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b73e37e7f684c38daca4628f2c418366ba43fe2525d81565b600f5481565b60006110a06124a3565b6001546000540303905090565b6000600954905090565b60006110c2826124ac565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611129576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061113584612578565b9150915061114b8187611146612376565b61259a565b611197576111608661115b612376565b612092565b611196576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036111fd576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61120a86868660016125de565b801561121557600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506112e3856112bf8888876125e4565b7c02000000000000000000000000000000000000000000000000000000001761260c565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036113695760006001850190506000600460008381526020019081526020016000205403611367576000548114611366578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46113d18686866001612637565b505050505050565b60008073e37e7f684c38daca4628f2c418366ba43fe2525d600a846113fe919061408d565b915091509250929050565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60125481565b6000804690508091505090565b61148083838360405180602001604052806000815250611cea565b505050565b60115481565b611493612299565b80601460016101000a81548160ff02191690831515021790555050565b6000601460019054906101000a900460ff1680156114db5750601460009054906101000a900460ff16155b905090565b6114e8612299565b8181601391906114f9929190612ff4565b505050565b6000808460405160200161151291906140be565b604051602081830303815290604052805190602001209050611578848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506012548361263d565b9150509392505050565b6060600061158f83611751565b67ffffffffffffffff8111156115a8576115a76133e2565b5b6040519080825280602002602001820160405280156115d65781602001602082028036833780820191505090505b5090506000806115e46124a3565b90505b6115ef612654565b811015611671578473ffffffffffffffffffffffffffffffffffffffff166116168261173f565b73ffffffffffffffffffffffffffffffffffffffff160361165e578083838061163e906140d9565b94508151811061165157611650614121565b5b6020026020010181815250505b8080611669906140d9565b9150506115e7565b508192505050919050565b60006002600d54036116c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ba9061419c565b60405180910390fd5b6002600d819055506116d36114b0565b611712576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170990614208565b60405180910390fd5b61171e82600e5461265d565b611728338361275d565b61173061277b565b90506001600d81905550919050565b600061174a826124ac565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036117b8576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611811612299565b61181b600061278e565b565b611825612299565b8060128190555050565b6000611839612299565b600073e37e7f684c38daca4628f2c418366ba43fe2525d73ffffffffffffffffffffffffffffffffffffffff16476040516118739061424e565b60006040518083038185875af1925050503d80600081146118b0576040519150601f19603f3d011682016040523d82523d6000602084013e6118b5565b606091505b50509050806118f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118f0906142af565b60405180910390fd5b8091505090565b611908612299565b6001601460006101000a81548160ff021916908315150217905550565b60606000611931611096565b67ffffffffffffffff81111561194a576119496133e2565b5b6040519080825280602002602001820160405280156119785781602001602082028036833780820191505090505b5090506000806119866124a3565b90505b611991612654565b811015611a0d576119a18161173f565b8383806119ad906140d9565b9450815181106119c0576119bf614121565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508080611a05906140d9565b915050611989565b50819250505090565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611a4f90613dde565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7b90613dde565b8015611ac85780601f10611a9d57610100808354040283529160200191611ac8565b820191906000526020600020905b815481529060010190602001808311611aab57829003601f168201915b5050505050905090565b611ada612376565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611b3e576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611b4b612376565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611bf8612376565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611c3d9190613197565b60405180910390a35050565b611c51612299565b611000811115611c96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8d90614341565b60405180910390fd5b611c9e611096565b811015611ce0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd7906143d3565b60405180910390fd5b8060108190555050565b611cf58484846110b7565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611d5757611d2084848484612854565b611d56576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600e5481565b6060611d6e82612317565b611da4576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611dae6129a4565b90506000815103611dce5760405180602001604052806000815250611df9565b80611dd884612a36565b604051602001611de992919061442f565b6040516020818303038152906040525b915050919050565b60006002600d5403611e48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3f9061419c565b60405180910390fd5b6002600d81905550611e586114b0565b611e97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8e90614208565b60405180910390fd5b611ea384600f5461265d565b600033604051602001611eb691906140be565b604051602081830303815290604052805190602001209050611f1c848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506012548361263d565b611f5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f529061449f565b60405180910390fd5b611f65338661275d565b611f6d61277b565b9150506001600d819055509392505050565b6000611f89612299565b60105483611f9561277b565b611f9f91906144bf565b1115611fe0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd790614561565b60405180910390fd5b611fea828461275d565b611ff261277b565b905092915050565b61200261307a565b600060405180610100016040528060105481526020016011548152602001600e548152602001600f548152602001612038611096565b81526020016012548152602001601460019054906101000a900460ff1615158152602001601460009054906101000a900460ff16151581525090508091505090565b60105481565b612088612299565b8060118190555050565b600080600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b815260040161210a9190613351565b602060405180830381865afa158015612127573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061214b91906145bf565b73ffffffffffffffffffffffffffffffffffffffff160361217057600191505061217e565b61217a8484612a90565b9150505b92915050565b61218c612299565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036121fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121f29061465e565b60405180910390fd5b6122048161278e565b50565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061226257506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806122925750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6122a1612b24565b73ffffffffffffffffffffffffffffffffffffffff166122bf611a16565b73ffffffffffffffffffffffffffffffffffffffff1614612315576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230c906146ca565b60405180910390fd5b565b6000816123226124a3565b11158015612331575060005482105b801561236f575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b6000612380612b2c565b905090565b60008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16036123f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ec9061475c565b60405180910390fd5b600161240861240387612bdc565b612c44565b83868660405160008152602001604052604051612428949392919061478b565b6020604051602081039080840390855afa15801561244a573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614905095945050505050565b6000818361249b91906144bf565b905092915050565b60006001905090565b600080829050806124bb6124a3565b11612541576000548110156125405760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082160361253e575b6000810361253457600460008360019003935083815260200190815260200160002054905061250a565b8092505050612573565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86125fb868684612c7d565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60008261264a8584612c86565b1490509392505050565b60008054905090565b818161266991906147d0565b34146126aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126a19061489c565b60405180910390fd5b601054826126b661277b565b6126c091906144bf565b1115612701576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f890614561565b60405180910390fd5b60115461270d33612cdc565b8361271891906144bf565b1115612759576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161275090614908565b60405180910390fd5b5050565b612777828260405180602001604052806000815250612d33565b5050565b60006127856124a3565b60005403905090565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261287a612376565b8786866040518563ffffffff1660e01b815260040161289c9493929190614928565b6020604051808303816000875af19250505080156128d857506040513d601f19601f820116820180604052508101906128d59190614989565b60015b612951573d8060008114612908576040519150601f19603f3d011682016040523d82523d6000602084013e61290d565b606091505b506000815103612949576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060601380546129b390613dde565b80601f01602080910402602001604051908101604052809291908181526020018280546129df90613dde565b8015612a2c5780601f10612a0157610100808354040283529160200191612a2c565b820191906000526020600020905b815481529060010190602001808311612a0f57829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b8015612a7c57600183039250600a81066030018353600a81049050612a5c565b508181036020830392508083525050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1603612bd557600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff818301511692505050612bd9565b3390505b90565b6000604051806080016040528060438152602001614aa0604391398051906020012082600001518360200151846040015180519060200120604051602001612c2794939291906149b6565b604051602081830303815290604052805190602001209050919050565b6000612c4e6110ad565b82604051602001612c60929190614a68565b604051602081830303815290604052805190602001209050919050565b60009392505050565b60008082905060005b8451811015612cd157612cbc82868381518110612caf57612cae614121565b5b6020026020010151612dd0565b91508080612cc9906140d9565b915050612c8f565b508091505092915050565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b612d3d8383612dfb565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612dcb57600080549050600083820390505b612d7d6000868380600101945086612854565b612db3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612d6a578160005414612dc857600080fd5b50505b505050565b6000818310612de857612de38284612fcd565b612df3565b612df28383612fcd565b5b905092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612e67576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008203612ea1576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612eae60008483856125de565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612f2583612f1660008660006125e4565b612f1f85612fe4565b1761260c565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612f4957806000819055505050612fc86000848385612637565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b82805461300090613dde565b90600052602060002090601f0160209004810192826130225760008555613069565b82601f1061303b57803560ff1916838001178555613069565b82800160010185558215613069579182015b8281111561306857823582559160200191906001019061304d565b5b50905061307691906130c6565b5090565b6040518061010001604052806000815260200160008152602001600081526020016000815260200160008152602001600080191681526020016000151581526020016000151581525090565b5b808211156130df5760008160009055506001016130c7565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61312c816130f7565b811461313757600080fd5b50565b60008135905061314981613123565b92915050565b600060208284031215613165576131646130ed565b5b60006131738482850161313a565b91505092915050565b60008115159050919050565b6131918161317c565b82525050565b60006020820190506131ac6000830184613188565b92915050565b6000819050919050565b6131c5816131b2565b81146131d057600080fd5b50565b6000813590506131e2816131bc565b92915050565b600080604083850312156131ff576131fe6130ed565b5b600061320d858286016131d3565b925050602061321e858286016131d3565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613262578082015181840152602081019050613247565b83811115613271576000848401525b50505050565b6000601f19601f8301169050919050565b600061329382613228565b61329d8185613233565b93506132ad818560208601613244565b6132b681613277565b840191505092915050565b600060208201905081810360008301526132db8184613288565b905092915050565b6000602082840312156132f9576132f86130ed565b5b6000613307848285016131d3565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061333b82613310565b9050919050565b61334b81613330565b82525050565b60006020820190506133666000830184613342565b92915050565b61337581613330565b811461338057600080fd5b50565b6000813590506133928161336c565b92915050565b600080604083850312156133af576133ae6130ed565b5b60006133bd85828601613383565b92505060206133ce858286016131d3565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61341a82613277565b810181811067ffffffffffffffff82111715613439576134386133e2565b5b80604052505050565b600061344c6130e3565b90506134588282613411565b919050565b600067ffffffffffffffff821115613478576134776133e2565b5b61348182613277565b9050602081019050919050565b82818337600083830152505050565b60006134b06134ab8461345d565b613442565b9050828152602081018484840111156134cc576134cb6133dd565b5b6134d784828561348e565b509392505050565b600082601f8301126134f4576134f36133d8565b5b813561350484826020860161349d565b91505092915050565b6000819050919050565b6135208161350d565b811461352b57600080fd5b50565b60008135905061353d81613517565b92915050565b600060ff82169050919050565b61355981613543565b811461356457600080fd5b50565b60008135905061357681613550565b92915050565b600080600080600060a08688031215613598576135976130ed565b5b60006135a688828901613383565b955050602086013567ffffffffffffffff8111156135c7576135c66130f2565b5b6135d3888289016134df565b94505060406135e48882890161352e565b93505060606135f58882890161352e565b925050608061360688828901613567565b9150509295509295909350565b600081519050919050565b600082825260208201905092915050565b600061363a82613613565b613644818561361e565b9350613654818560208601613244565b61365d81613277565b840191505092915050565b60006020820190508181036000830152613682818461362f565b905092915050565b613693816131b2565b82525050565b60006020820190506136ae600083018461368a565b92915050565b6136bd8161350d565b82525050565b60006020820190506136d860008301846136b4565b92915050565b6000806000606084860312156136f7576136f66130ed565b5b600061370586828701613383565b935050602061371686828701613383565b9250506040613727868287016131d3565b9150509250925092565b60006040820190506137466000830185613342565b613753602083018461368a565b9392505050565b6000602082840312156137705761376f6130ed565b5b600061377e84828501613383565b91505092915050565b6137908161317c565b811461379b57600080fd5b50565b6000813590506137ad81613787565b92915050565b6000602082840312156137c9576137c86130ed565b5b60006137d78482850161379e565b91505092915050565b600080fd5b600080fd5b60008083601f840112613800576137ff6133d8565b5b8235905067ffffffffffffffff81111561381d5761381c6137e0565b5b602083019150836001820283011115613839576138386137e5565b5b9250929050565b60008060208385031215613857576138566130ed565b5b600083013567ffffffffffffffff811115613875576138746130f2565b5b613881858286016137ea565b92509250509250929050565b60008083601f8401126138a3576138a26133d8565b5b8235905067ffffffffffffffff8111156138c0576138bf6137e0565b5b6020830191508360208202830111156138dc576138db6137e5565b5b9250929050565b6000806000604084860312156138fc576138fb6130ed565b5b600061390a86828701613383565b935050602084013567ffffffffffffffff81111561392b5761392a6130f2565b5b6139378682870161388d565b92509250509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613978816131b2565b82525050565b600061398a838361396f565b60208301905092915050565b6000602082019050919050565b60006139ae82613943565b6139b8818561394e565b93506139c38361395f565b8060005b838110156139f45781516139db888261397e565b97506139e683613996565b9250506001810190506139c7565b5085935050505092915050565b60006020820190508181036000830152613a1b81846139a3565b905092915050565b600060208284031215613a3957613a386130ed565b5b6000613a478482850161352e565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613a8581613330565b82525050565b6000613a978383613a7c565b60208301905092915050565b6000602082019050919050565b6000613abb82613a50565b613ac58185613a5b565b9350613ad083613a6c565b8060005b83811015613b01578151613ae88882613a8b565b9750613af383613aa3565b925050600181019050613ad4565b5085935050505092915050565b60006020820190508181036000830152613b288184613ab0565b905092915050565b60008060408385031215613b4757613b466130ed565b5b6000613b5585828601613383565b9250506020613b668582860161379e565b9150509250929050565b60008060008060808587031215613b8a57613b896130ed565b5b6000613b9887828801613383565b9450506020613ba987828801613383565b9350506040613bba878288016131d3565b925050606085013567ffffffffffffffff811115613bdb57613bda6130f2565b5b613be7878288016134df565b91505092959194509250565b600080600060408486031215613c0c57613c0b6130ed565b5b6000613c1a868287016131d3565b935050602084013567ffffffffffffffff811115613c3b57613c3a6130f2565b5b613c478682870161388d565b92509250509250925092565b60008060408385031215613c6a57613c696130ed565b5b6000613c78858286016131d3565b9250506020613c8985828601613383565b9150509250929050565b613c9c8161350d565b82525050565b613cab8161317c565b82525050565b61010082016000820151613cc8600085018261396f565b506020820151613cdb602085018261396f565b506040820151613cee604085018261396f565b506060820151613d01606085018261396f565b506080820151613d14608085018261396f565b5060a0820151613d2760a0850182613c93565b5060c0820151613d3a60c0850182613ca2565b5060e0820151613d4d60e0850182613ca2565b50505050565b600061010082019050613d696000830184613cb1565b92915050565b60008060408385031215613d8657613d856130ed565b5b6000613d9485828601613383565b9250506020613da585828601613383565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613df657607f821691505b602082108103613e0957613e08613daf565b5b50919050565b7f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360008201527f6800000000000000000000000000000000000000000000000000000000000000602082015250565b6000613e6b602183613233565b9150613e7682613e0f565b604082019050919050565b60006020820190508181036000830152613e9a81613e5e565b9050919050565b6000613eac82613310565b9050919050565b613ebc81613ea1565b82525050565b6000606082019050613ed76000830186613342565b613ee46020830185613eb3565b8181036040830152613ef6818461362f565b9050949350505050565b600081905092915050565b6000613f1682613613565b613f208185613f00565b9350613f30818560208601613244565b80840191505092915050565b60008160601b9050919050565b6000613f5482613f3c565b9050919050565b6000613f6682613f49565b9050919050565b613f7e613f7982613330565b613f5b565b82525050565b6000613f908285613f0b565b9150613f9c8284613f6d565b6014820191508190509392505050565b6000613fb88284613f0b565b915081905092915050565b7f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000600082015250565b6000613ff9601c83613233565b915061400482613fc3565b602082019050919050565b6000602082019050818103600083015261402881613fec565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614098826131b2565b91506140a3836131b2565b9250826140b3576140b261402f565b5b828204905092915050565b60006140ca8284613f6d565b60148201915081905092915050565b60006140e4826131b2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036141165761411561405e565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614186601f83613233565b915061419182614150565b602082019050919050565b600060208201905081810360008301526141b581614179565b9050919050565b7f4d696e74696e67206973206e6f7420656e61626c656400000000000000000000600082015250565b60006141f2601683613233565b91506141fd826141bc565b602082019050919050565b60006020820190508181036000830152614221816141e5565b9050919050565b50565b6000614238600083613f00565b915061424382614228565b600082019050919050565b60006142598261422b565b9150819050919050565b7f57495448445241575f4641494c45440000000000000000000000000000000000600082015250565b6000614299600f83613233565b91506142a482614263565b602082019050919050565b600060208201905081810360008301526142c88161428c565b9050919050565b7f4e6577206d617820737570706c792063616e206e6f74206265206f766572203460008201527f3039360000000000000000000000000000000000000000000000000000000000602082015250565b600061432b602383613233565b9150614336826142cf565b604082019050919050565b6000602082019050818103600083015261435a8161431e565b9050919050565b7f4e6577206d6178206d7573742062652067726561746572207468616e2063757260008201527f72656e7420737570706c79000000000000000000000000000000000000000000602082015250565b60006143bd602b83613233565b91506143c882614361565b604082019050919050565b600060208201905081810360008301526143ec816143b0565b9050919050565b600081905092915050565b600061440982613228565b61441381856143f3565b9350614423818560208601613244565b80840191505092915050565b600061443b82856143fe565b915061444782846143fe565b91508190509392505050565b7f596f75722061646472657373206973206e6f742077686974656c697374656400600082015250565b6000614489601f83613233565b915061449482614453565b602082019050919050565b600060208201905081810360008301526144b88161447c565b9050919050565b60006144ca826131b2565b91506144d5836131b2565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561450a5761450961405e565b5b828201905092915050565b7f4d6178696d756d206e756d626572206f6620746f6b656e73206d696e74656400600082015250565b600061454b601f83613233565b915061455682614515565b602082019050919050565b6000602082019050818103600083015261457a8161453e565b9050919050565b600061458c82613330565b9050919050565b61459c81614581565b81146145a757600080fd5b50565b6000815190506145b981614593565b92915050565b6000602082840312156145d5576145d46130ed565b5b60006145e3848285016145aa565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614648602683613233565b9150614653826145ec565b604082019050919050565b600060208201905081810360008301526146778161463b565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006146b4602083613233565b91506146bf8261467e565b602082019050919050565b600060208201905081810360008301526146e3816146a7565b9050919050565b7f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360008201527f49474e4552000000000000000000000000000000000000000000000000000000602082015250565b6000614746602583613233565b9150614751826146ea565b604082019050919050565b6000602082019050818103600083015261477581614739565b9050919050565b61478581613543565b82525050565b60006080820190506147a060008301876136b4565b6147ad602083018661477c565b6147ba60408301856136b4565b6147c760608301846136b4565b95945050505050565b60006147db826131b2565b91506147e6836131b2565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561481f5761481e61405e565b5b828202905092915050565b7f496e636f727265637420616d6f756e74206f662065746865722070726f76696460008201527f656420666f7220746865206d696e742100000000000000000000000000000000602082015250565b6000614886603083613233565b91506148918261482a565b604082019050919050565b600060208201905081810360008301526148b581614879565b9050919050565b7f4d6178206d696e7473207065722077616c6c6574207265616368656400000000600082015250565b60006148f2601c83613233565b91506148fd826148bc565b602082019050919050565b60006020820190508181036000830152614921816148e5565b9050919050565b600060808201905061493d6000830187613342565b61494a6020830186613342565b614957604083018561368a565b8181036060830152614969818461362f565b905095945050505050565b60008151905061498381613123565b92915050565b60006020828403121561499f5761499e6130ed565b5b60006149ad84828501614974565b91505092915050565b60006080820190506149cb60008301876136b4565b6149d8602083018661368a565b6149e56040830185613342565b6149f260608301846136b4565b95945050505050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b6000614a316002836143f3565b9150614a3c826149fb565b600282019050919050565b6000819050919050565b614a62614a5d8261350d565b614a47565b82525050565b6000614a7382614a24565b9150614a7f8285614a51565b602082019150614a8f8284614a51565b602082019150819050939250505056fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a26469706673582212209d2f5713bdc2267a3d06840b07a4460f56904ae0e743e2b2eab1a9ebb5dbc1dd64736f6c634300080d0033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c742968747470733a2f2f61646f626f74732e6d7970696e6174612e636c6f75642f697066732f516d59544178436f324d35346a5474584b433156654e724d787371615474716656316743444c36766669767a4c442f
Deployed Bytecode
0x60806040526004361061027d5760003560e01c80635abae4cd1161014f578063a22cb465116100c1578063d52c57e01161007a578063d52c57e0146109b0578063d55eb496146109ed578063d5abeb0114610a18578063e268e4d314610a43578063e985e9c514610a6c578063f2fde38b14610aa95761027d565b8063a22cb4651461089d578063b7c7d9a7146108c6578063b88d4fde146108ef578063c002d23d14610918578063c87b56dd14610943578063d2cab056146109805761027d565b80637cb64759116101135780637cb64759146107b1578063853828b6146107da57806387491c6014610805578063876b15661461081c5780638da5cb5b1461084757806395d89b41146108725761027d565b80635abae4cd146106b35780635c4c94ae146106f05780636352211e1461072057806370a082311461075d578063715018a61461079a5761027d565b806320379ee5116101f357806342842e0e116101ac57806342842e0e146105a5578063453c2310146105ce5780634ea3871a146105f957806355c7ba141461062257806355f804b31461064d5780635a23dd99146106765761027d565b806320379ee51461048057806323b872dd146104ab5780632a55205a146104d45780632d0335ab146105125780632eb4a7ab1461054f5780633408e4701461057a5761027d565b80630c53c51c116102455780630c53c51c146103795780630d0c6af6146103a95780630f7e5970146103d4578063122e04a8146103ff57806317e7f2951461042a57806318160ddd146104555761027d565b806301ffc9a7146102825780630442bfa8146102bf57806306fdde03146102e8578063081812fc14610313578063095ea7b314610350575b600080fd5b34801561028e57600080fd5b506102a960048036038101906102a4919061314f565b610ad2565b6040516102b69190613197565b60405180910390f35b3480156102cb57600080fd5b506102e660048036038101906102e191906131e8565b610b4c565b005b3480156102f457600080fd5b506102fd610b66565b60405161030a91906132c1565b60405180910390f35b34801561031f57600080fd5b5061033a600480360381019061033591906132e3565b610bf8565b6040516103479190613351565b60405180910390f35b34801561035c57600080fd5b5061037760048036038101906103729190613398565b610c74565b005b610393600480360381019061038e919061357c565b610db5565b6040516103a09190613668565b60405180910390f35b3480156103b557600080fd5b506103be611027565b6040516103cb9190613351565b60405180910390f35b3480156103e057600080fd5b506103e961103f565b6040516103f691906132c1565b60405180910390f35b34801561040b57600080fd5b50610414611078565b6040516104219190613351565b60405180910390f35b34801561043657600080fd5b5061043f611090565b60405161044c9190613699565b60405180910390f35b34801561046157600080fd5b5061046a611096565b6040516104779190613699565b60405180910390f35b34801561048c57600080fd5b506104956110ad565b6040516104a291906136c3565b60405180910390f35b3480156104b757600080fd5b506104d260048036038101906104cd91906136de565b6110b7565b005b3480156104e057600080fd5b506104fb60048036038101906104f691906131e8565b6113d9565b604051610509929190613731565b60405180910390f35b34801561051e57600080fd5b506105396004803603810190610534919061375a565b611409565b6040516105469190613699565b60405180910390f35b34801561055b57600080fd5b50610564611452565b60405161057191906136c3565b60405180910390f35b34801561058657600080fd5b5061058f611458565b60405161059c9190613699565b60405180910390f35b3480156105b157600080fd5b506105cc60048036038101906105c791906136de565b611465565b005b3480156105da57600080fd5b506105e3611485565b6040516105f09190613699565b60405180910390f35b34801561060557600080fd5b50610620600480360381019061061b91906137b3565b61148b565b005b34801561062e57600080fd5b506106376114b0565b6040516106449190613197565b60405180910390f35b34801561065957600080fd5b50610674600480360381019061066f9190613840565b6114e0565b005b34801561068257600080fd5b5061069d600480360381019061069891906138e3565b6114fe565b6040516106aa9190613197565b60405180910390f35b3480156106bf57600080fd5b506106da60048036038101906106d5919061375a565b611582565b6040516106e79190613a01565b60405180910390f35b61070a600480360381019061070591906132e3565b61167c565b6040516107179190613699565b60405180910390f35b34801561072c57600080fd5b50610747600480360381019061074291906132e3565b61173f565b6040516107549190613351565b60405180910390f35b34801561076957600080fd5b50610784600480360381019061077f919061375a565b611751565b6040516107919190613699565b60405180910390f35b3480156107a657600080fd5b506107af611809565b005b3480156107bd57600080fd5b506107d860048036038101906107d39190613a23565b61181d565b005b3480156107e657600080fd5b506107ef61182f565b6040516107fc9190613197565b60405180910390f35b34801561081157600080fd5b5061081a611900565b005b34801561082857600080fd5b50610831611925565b60405161083e9190613b0e565b60405180910390f35b34801561085357600080fd5b5061085c611a16565b6040516108699190613351565b60405180910390f35b34801561087e57600080fd5b50610887611a40565b60405161089491906132c1565b60405180910390f35b3480156108a957600080fd5b506108c460048036038101906108bf9190613b30565b611ad2565b005b3480156108d257600080fd5b506108ed60048036038101906108e891906132e3565b611c49565b005b3480156108fb57600080fd5b5061091660048036038101906109119190613b70565b611cea565b005b34801561092457600080fd5b5061092d611d5d565b60405161093a9190613699565b60405180910390f35b34801561094f57600080fd5b5061096a600480360381019061096591906132e3565b611d63565b60405161097791906132c1565b60405180910390f35b61099a60048036038101906109959190613bf3565b611e01565b6040516109a79190613699565b60405180910390f35b3480156109bc57600080fd5b506109d760048036038101906109d29190613c53565b611f7f565b6040516109e49190613699565b60405180910390f35b3480156109f957600080fd5b50610a02611ffa565b604051610a0f9190613d53565b60405180910390f35b348015610a2457600080fd5b50610a2d61207a565b604051610a3a9190613699565b60405180910390f35b348015610a4f57600080fd5b50610a6a6004803603810190610a6591906132e3565b612080565b005b348015610a7857600080fd5b50610a936004803603810190610a8e9190613d6f565b612092565b604051610aa09190613197565b60405180910390f35b348015610ab557600080fd5b50610ad06004803603810190610acb919061375a565b612184565b005b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b455750610b4482612207565b5b9050919050565b610b54612299565b81600e8190555080600f819055505050565b606060028054610b7590613dde565b80601f0160208091040260200160405190810160405280929190818152602001828054610ba190613dde565b8015610bee5780601f10610bc357610100808354040283529160200191610bee565b820191906000526020600020905b815481529060010190602001808311610bd157829003601f168201915b5050505050905090565b6000610c0382612317565b610c39576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c7f8261173f565b90508073ffffffffffffffffffffffffffffffffffffffff16610ca0612376565b73ffffffffffffffffffffffffffffffffffffffff1614610d0357610ccc81610cc7612376565b612092565b610d02576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b606060006040518060600160405280600a60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152509050610e388782878787612385565b610e77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6e90613e81565b60405180910390fd5b610eca6001600a60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461248d90919063ffffffff16565b600a60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b873388604051610f4093929190613ec2565b60405180910390a16000803073ffffffffffffffffffffffffffffffffffffffff16888a604051602001610f75929190613f84565b604051602081830303815290604052604051610f919190613fac565b6000604051808303816000865af19150503d8060008114610fce576040519150601f19603f3d011682016040523d82523d6000602084013e610fd3565b606091505b509150915081611018576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100f9061400f565b60405180910390fd5b80935050505095945050505050565b73e37e7f684c38daca4628f2c418366ba43fe2525d81565b6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b73e37e7f684c38daca4628f2c418366ba43fe2525d81565b600f5481565b60006110a06124a3565b6001546000540303905090565b6000600954905090565b60006110c2826124ac565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611129576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061113584612578565b9150915061114b8187611146612376565b61259a565b611197576111608661115b612376565b612092565b611196576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036111fd576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61120a86868660016125de565b801561121557600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506112e3856112bf8888876125e4565b7c02000000000000000000000000000000000000000000000000000000001761260c565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036113695760006001850190506000600460008381526020019081526020016000205403611367576000548114611366578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46113d18686866001612637565b505050505050565b60008073e37e7f684c38daca4628f2c418366ba43fe2525d600a846113fe919061408d565b915091509250929050565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60125481565b6000804690508091505090565b61148083838360405180602001604052806000815250611cea565b505050565b60115481565b611493612299565b80601460016101000a81548160ff02191690831515021790555050565b6000601460019054906101000a900460ff1680156114db5750601460009054906101000a900460ff16155b905090565b6114e8612299565b8181601391906114f9929190612ff4565b505050565b6000808460405160200161151291906140be565b604051602081830303815290604052805190602001209050611578848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506012548361263d565b9150509392505050565b6060600061158f83611751565b67ffffffffffffffff8111156115a8576115a76133e2565b5b6040519080825280602002602001820160405280156115d65781602001602082028036833780820191505090505b5090506000806115e46124a3565b90505b6115ef612654565b811015611671578473ffffffffffffffffffffffffffffffffffffffff166116168261173f565b73ffffffffffffffffffffffffffffffffffffffff160361165e578083838061163e906140d9565b94508151811061165157611650614121565b5b6020026020010181815250505b8080611669906140d9565b9150506115e7565b508192505050919050565b60006002600d54036116c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ba9061419c565b60405180910390fd5b6002600d819055506116d36114b0565b611712576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170990614208565b60405180910390fd5b61171e82600e5461265d565b611728338361275d565b61173061277b565b90506001600d81905550919050565b600061174a826124ac565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036117b8576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611811612299565b61181b600061278e565b565b611825612299565b8060128190555050565b6000611839612299565b600073e37e7f684c38daca4628f2c418366ba43fe2525d73ffffffffffffffffffffffffffffffffffffffff16476040516118739061424e565b60006040518083038185875af1925050503d80600081146118b0576040519150601f19603f3d011682016040523d82523d6000602084013e6118b5565b606091505b50509050806118f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118f0906142af565b60405180910390fd5b8091505090565b611908612299565b6001601460006101000a81548160ff021916908315150217905550565b60606000611931611096565b67ffffffffffffffff81111561194a576119496133e2565b5b6040519080825280602002602001820160405280156119785781602001602082028036833780820191505090505b5090506000806119866124a3565b90505b611991612654565b811015611a0d576119a18161173f565b8383806119ad906140d9565b9450815181106119c0576119bf614121565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508080611a05906140d9565b915050611989565b50819250505090565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611a4f90613dde565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7b90613dde565b8015611ac85780601f10611a9d57610100808354040283529160200191611ac8565b820191906000526020600020905b815481529060010190602001808311611aab57829003601f168201915b5050505050905090565b611ada612376565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611b3e576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611b4b612376565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611bf8612376565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611c3d9190613197565b60405180910390a35050565b611c51612299565b611000811115611c96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8d90614341565b60405180910390fd5b611c9e611096565b811015611ce0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd7906143d3565b60405180910390fd5b8060108190555050565b611cf58484846110b7565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611d5757611d2084848484612854565b611d56576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600e5481565b6060611d6e82612317565b611da4576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611dae6129a4565b90506000815103611dce5760405180602001604052806000815250611df9565b80611dd884612a36565b604051602001611de992919061442f565b6040516020818303038152906040525b915050919050565b60006002600d5403611e48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3f9061419c565b60405180910390fd5b6002600d81905550611e586114b0565b611e97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8e90614208565b60405180910390fd5b611ea384600f5461265d565b600033604051602001611eb691906140be565b604051602081830303815290604052805190602001209050611f1c848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506012548361263d565b611f5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f529061449f565b60405180910390fd5b611f65338661275d565b611f6d61277b565b9150506001600d819055509392505050565b6000611f89612299565b60105483611f9561277b565b611f9f91906144bf565b1115611fe0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd790614561565b60405180910390fd5b611fea828461275d565b611ff261277b565b905092915050565b61200261307a565b600060405180610100016040528060105481526020016011548152602001600e548152602001600f548152602001612038611096565b81526020016012548152602001601460019054906101000a900460ff1615158152602001601460009054906101000a900460ff16151581525090508091505090565b60105481565b612088612299565b8060118190555050565b600080600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b815260040161210a9190613351565b602060405180830381865afa158015612127573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061214b91906145bf565b73ffffffffffffffffffffffffffffffffffffffff160361217057600191505061217e565b61217a8484612a90565b9150505b92915050565b61218c612299565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036121fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121f29061465e565b60405180910390fd5b6122048161278e565b50565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061226257506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806122925750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6122a1612b24565b73ffffffffffffffffffffffffffffffffffffffff166122bf611a16565b73ffffffffffffffffffffffffffffffffffffffff1614612315576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230c906146ca565b60405180910390fd5b565b6000816123226124a3565b11158015612331575060005482105b801561236f575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b6000612380612b2c565b905090565b60008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16036123f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ec9061475c565b60405180910390fd5b600161240861240387612bdc565b612c44565b83868660405160008152602001604052604051612428949392919061478b565b6020604051602081039080840390855afa15801561244a573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614905095945050505050565b6000818361249b91906144bf565b905092915050565b60006001905090565b600080829050806124bb6124a3565b11612541576000548110156125405760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082160361253e575b6000810361253457600460008360019003935083815260200190815260200160002054905061250a565b8092505050612573565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86125fb868684612c7d565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60008261264a8584612c86565b1490509392505050565b60008054905090565b818161266991906147d0565b34146126aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126a19061489c565b60405180910390fd5b601054826126b661277b565b6126c091906144bf565b1115612701576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f890614561565b60405180910390fd5b60115461270d33612cdc565b8361271891906144bf565b1115612759576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161275090614908565b60405180910390fd5b5050565b612777828260405180602001604052806000815250612d33565b5050565b60006127856124a3565b60005403905090565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261287a612376565b8786866040518563ffffffff1660e01b815260040161289c9493929190614928565b6020604051808303816000875af19250505080156128d857506040513d601f19601f820116820180604052508101906128d59190614989565b60015b612951573d8060008114612908576040519150601f19603f3d011682016040523d82523d6000602084013e61290d565b606091505b506000815103612949576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060601380546129b390613dde565b80601f01602080910402602001604051908101604052809291908181526020018280546129df90613dde565b8015612a2c5780601f10612a0157610100808354040283529160200191612a2c565b820191906000526020600020905b815481529060010190602001808311612a0f57829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b8015612a7c57600183039250600a81066030018353600a81049050612a5c565b508181036020830392508083525050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1603612bd557600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff818301511692505050612bd9565b3390505b90565b6000604051806080016040528060438152602001614aa0604391398051906020012082600001518360200151846040015180519060200120604051602001612c2794939291906149b6565b604051602081830303815290604052805190602001209050919050565b6000612c4e6110ad565b82604051602001612c60929190614a68565b604051602081830303815290604052805190602001209050919050565b60009392505050565b60008082905060005b8451811015612cd157612cbc82868381518110612caf57612cae614121565b5b6020026020010151612dd0565b91508080612cc9906140d9565b915050612c8f565b508091505092915050565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b612d3d8383612dfb565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612dcb57600080549050600083820390505b612d7d6000868380600101945086612854565b612db3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612d6a578160005414612dc857600080fd5b50505b505050565b6000818310612de857612de38284612fcd565b612df3565b612df28383612fcd565b5b905092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612e67576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008203612ea1576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612eae60008483856125de565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612f2583612f1660008660006125e4565b612f1f85612fe4565b1761260c565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612f4957806000819055505050612fc86000848385612637565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b82805461300090613dde565b90600052602060002090601f0160209004810192826130225760008555613069565b82601f1061303b57803560ff1916838001178555613069565b82800160010185558215613069579182015b8281111561306857823582559160200191906001019061304d565b5b50905061307691906130c6565b5090565b6040518061010001604052806000815260200160008152602001600081526020016000815260200160008152602001600080191681526020016000151581526020016000151581525090565b5b808211156130df5760008160009055506001016130c7565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61312c816130f7565b811461313757600080fd5b50565b60008135905061314981613123565b92915050565b600060208284031215613165576131646130ed565b5b60006131738482850161313a565b91505092915050565b60008115159050919050565b6131918161317c565b82525050565b60006020820190506131ac6000830184613188565b92915050565b6000819050919050565b6131c5816131b2565b81146131d057600080fd5b50565b6000813590506131e2816131bc565b92915050565b600080604083850312156131ff576131fe6130ed565b5b600061320d858286016131d3565b925050602061321e858286016131d3565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613262578082015181840152602081019050613247565b83811115613271576000848401525b50505050565b6000601f19601f8301169050919050565b600061329382613228565b61329d8185613233565b93506132ad818560208601613244565b6132b681613277565b840191505092915050565b600060208201905081810360008301526132db8184613288565b905092915050565b6000602082840312156132f9576132f86130ed565b5b6000613307848285016131d3565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061333b82613310565b9050919050565b61334b81613330565b82525050565b60006020820190506133666000830184613342565b92915050565b61337581613330565b811461338057600080fd5b50565b6000813590506133928161336c565b92915050565b600080604083850312156133af576133ae6130ed565b5b60006133bd85828601613383565b92505060206133ce858286016131d3565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61341a82613277565b810181811067ffffffffffffffff82111715613439576134386133e2565b5b80604052505050565b600061344c6130e3565b90506134588282613411565b919050565b600067ffffffffffffffff821115613478576134776133e2565b5b61348182613277565b9050602081019050919050565b82818337600083830152505050565b60006134b06134ab8461345d565b613442565b9050828152602081018484840111156134cc576134cb6133dd565b5b6134d784828561348e565b509392505050565b600082601f8301126134f4576134f36133d8565b5b813561350484826020860161349d565b91505092915050565b6000819050919050565b6135208161350d565b811461352b57600080fd5b50565b60008135905061353d81613517565b92915050565b600060ff82169050919050565b61355981613543565b811461356457600080fd5b50565b60008135905061357681613550565b92915050565b600080600080600060a08688031215613598576135976130ed565b5b60006135a688828901613383565b955050602086013567ffffffffffffffff8111156135c7576135c66130f2565b5b6135d3888289016134df565b94505060406135e48882890161352e565b93505060606135f58882890161352e565b925050608061360688828901613567565b9150509295509295909350565b600081519050919050565b600082825260208201905092915050565b600061363a82613613565b613644818561361e565b9350613654818560208601613244565b61365d81613277565b840191505092915050565b60006020820190508181036000830152613682818461362f565b905092915050565b613693816131b2565b82525050565b60006020820190506136ae600083018461368a565b92915050565b6136bd8161350d565b82525050565b60006020820190506136d860008301846136b4565b92915050565b6000806000606084860312156136f7576136f66130ed565b5b600061370586828701613383565b935050602061371686828701613383565b9250506040613727868287016131d3565b9150509250925092565b60006040820190506137466000830185613342565b613753602083018461368a565b9392505050565b6000602082840312156137705761376f6130ed565b5b600061377e84828501613383565b91505092915050565b6137908161317c565b811461379b57600080fd5b50565b6000813590506137ad81613787565b92915050565b6000602082840312156137c9576137c86130ed565b5b60006137d78482850161379e565b91505092915050565b600080fd5b600080fd5b60008083601f840112613800576137ff6133d8565b5b8235905067ffffffffffffffff81111561381d5761381c6137e0565b5b602083019150836001820283011115613839576138386137e5565b5b9250929050565b60008060208385031215613857576138566130ed565b5b600083013567ffffffffffffffff811115613875576138746130f2565b5b613881858286016137ea565b92509250509250929050565b60008083601f8401126138a3576138a26133d8565b5b8235905067ffffffffffffffff8111156138c0576138bf6137e0565b5b6020830191508360208202830111156138dc576138db6137e5565b5b9250929050565b6000806000604084860312156138fc576138fb6130ed565b5b600061390a86828701613383565b935050602084013567ffffffffffffffff81111561392b5761392a6130f2565b5b6139378682870161388d565b92509250509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613978816131b2565b82525050565b600061398a838361396f565b60208301905092915050565b6000602082019050919050565b60006139ae82613943565b6139b8818561394e565b93506139c38361395f565b8060005b838110156139f45781516139db888261397e565b97506139e683613996565b9250506001810190506139c7565b5085935050505092915050565b60006020820190508181036000830152613a1b81846139a3565b905092915050565b600060208284031215613a3957613a386130ed565b5b6000613a478482850161352e565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613a8581613330565b82525050565b6000613a978383613a7c565b60208301905092915050565b6000602082019050919050565b6000613abb82613a50565b613ac58185613a5b565b9350613ad083613a6c565b8060005b83811015613b01578151613ae88882613a8b565b9750613af383613aa3565b925050600181019050613ad4565b5085935050505092915050565b60006020820190508181036000830152613b288184613ab0565b905092915050565b60008060408385031215613b4757613b466130ed565b5b6000613b5585828601613383565b9250506020613b668582860161379e565b9150509250929050565b60008060008060808587031215613b8a57613b896130ed565b5b6000613b9887828801613383565b9450506020613ba987828801613383565b9350506040613bba878288016131d3565b925050606085013567ffffffffffffffff811115613bdb57613bda6130f2565b5b613be7878288016134df565b91505092959194509250565b600080600060408486031215613c0c57613c0b6130ed565b5b6000613c1a868287016131d3565b935050602084013567ffffffffffffffff811115613c3b57613c3a6130f2565b5b613c478682870161388d565b92509250509250925092565b60008060408385031215613c6a57613c696130ed565b5b6000613c78858286016131d3565b9250506020613c8985828601613383565b9150509250929050565b613c9c8161350d565b82525050565b613cab8161317c565b82525050565b61010082016000820151613cc8600085018261396f565b506020820151613cdb602085018261396f565b506040820151613cee604085018261396f565b506060820151613d01606085018261396f565b506080820151613d14608085018261396f565b5060a0820151613d2760a0850182613c93565b5060c0820151613d3a60c0850182613ca2565b5060e0820151613d4d60e0850182613ca2565b50505050565b600061010082019050613d696000830184613cb1565b92915050565b60008060408385031215613d8657613d856130ed565b5b6000613d9485828601613383565b9250506020613da585828601613383565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613df657607f821691505b602082108103613e0957613e08613daf565b5b50919050565b7f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360008201527f6800000000000000000000000000000000000000000000000000000000000000602082015250565b6000613e6b602183613233565b9150613e7682613e0f565b604082019050919050565b60006020820190508181036000830152613e9a81613e5e565b9050919050565b6000613eac82613310565b9050919050565b613ebc81613ea1565b82525050565b6000606082019050613ed76000830186613342565b613ee46020830185613eb3565b8181036040830152613ef6818461362f565b9050949350505050565b600081905092915050565b6000613f1682613613565b613f208185613f00565b9350613f30818560208601613244565b80840191505092915050565b60008160601b9050919050565b6000613f5482613f3c565b9050919050565b6000613f6682613f49565b9050919050565b613f7e613f7982613330565b613f5b565b82525050565b6000613f908285613f0b565b9150613f9c8284613f6d565b6014820191508190509392505050565b6000613fb88284613f0b565b915081905092915050565b7f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000600082015250565b6000613ff9601c83613233565b915061400482613fc3565b602082019050919050565b6000602082019050818103600083015261402881613fec565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614098826131b2565b91506140a3836131b2565b9250826140b3576140b261402f565b5b828204905092915050565b60006140ca8284613f6d565b60148201915081905092915050565b60006140e4826131b2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036141165761411561405e565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614186601f83613233565b915061419182614150565b602082019050919050565b600060208201905081810360008301526141b581614179565b9050919050565b7f4d696e74696e67206973206e6f7420656e61626c656400000000000000000000600082015250565b60006141f2601683613233565b91506141fd826141bc565b602082019050919050565b60006020820190508181036000830152614221816141e5565b9050919050565b50565b6000614238600083613f00565b915061424382614228565b600082019050919050565b60006142598261422b565b9150819050919050565b7f57495448445241575f4641494c45440000000000000000000000000000000000600082015250565b6000614299600f83613233565b91506142a482614263565b602082019050919050565b600060208201905081810360008301526142c88161428c565b9050919050565b7f4e6577206d617820737570706c792063616e206e6f74206265206f766572203460008201527f3039360000000000000000000000000000000000000000000000000000000000602082015250565b600061432b602383613233565b9150614336826142cf565b604082019050919050565b6000602082019050818103600083015261435a8161431e565b9050919050565b7f4e6577206d6178206d7573742062652067726561746572207468616e2063757260008201527f72656e7420737570706c79000000000000000000000000000000000000000000602082015250565b60006143bd602b83613233565b91506143c882614361565b604082019050919050565b600060208201905081810360008301526143ec816143b0565b9050919050565b600081905092915050565b600061440982613228565b61441381856143f3565b9350614423818560208601613244565b80840191505092915050565b600061443b82856143fe565b915061444782846143fe565b91508190509392505050565b7f596f75722061646472657373206973206e6f742077686974656c697374656400600082015250565b6000614489601f83613233565b915061449482614453565b602082019050919050565b600060208201905081810360008301526144b88161447c565b9050919050565b60006144ca826131b2565b91506144d5836131b2565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561450a5761450961405e565b5b828201905092915050565b7f4d6178696d756d206e756d626572206f6620746f6b656e73206d696e74656400600082015250565b600061454b601f83613233565b915061455682614515565b602082019050919050565b6000602082019050818103600083015261457a8161453e565b9050919050565b600061458c82613330565b9050919050565b61459c81614581565b81146145a757600080fd5b50565b6000815190506145b981614593565b92915050565b6000602082840312156145d5576145d46130ed565b5b60006145e3848285016145aa565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614648602683613233565b9150614653826145ec565b604082019050919050565b600060208201905081810360008301526146778161463b565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006146b4602083613233565b91506146bf8261467e565b602082019050919050565b600060208201905081810360008301526146e3816146a7565b9050919050565b7f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360008201527f49474e4552000000000000000000000000000000000000000000000000000000602082015250565b6000614746602583613233565b9150614751826146ea565b604082019050919050565b6000602082019050818103600083015261477581614739565b9050919050565b61478581613543565b82525050565b60006080820190506147a060008301876136b4565b6147ad602083018661477c565b6147ba60408301856136b4565b6147c760608301846136b4565b95945050505050565b60006147db826131b2565b91506147e6836131b2565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561481f5761481e61405e565b5b828202905092915050565b7f496e636f727265637420616d6f756e74206f662065746865722070726f76696460008201527f656420666f7220746865206d696e742100000000000000000000000000000000602082015250565b6000614886603083613233565b91506148918261482a565b604082019050919050565b600060208201905081810360008301526148b581614879565b9050919050565b7f4d6178206d696e7473207065722077616c6c6574207265616368656400000000600082015250565b60006148f2601c83613233565b91506148fd826148bc565b602082019050919050565b60006020820190508181036000830152614921816148e5565b9050919050565b600060808201905061493d6000830187613342565b61494a6020830186613342565b614957604083018561368a565b8181036060830152614969818461362f565b905095945050505050565b60008151905061498381613123565b92915050565b60006020828403121561499f5761499e6130ed565b5b60006149ad84828501614974565b91505092915050565b60006080820190506149cb60008301876136b4565b6149d8602083018661368a565b6149e56040830185613342565b6149f260608301846136b4565b95945050505050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b6000614a316002836143f3565b9150614a3c826149fb565b600282019050919050565b6000819050919050565b614a62614a5d8261350d565b614a47565b82525050565b6000614a7382614a24565b9150614a7f8285614a51565b602082019150614a8f8284614a51565b602082019150819050939250505056fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a26469706673582212209d2f5713bdc2267a3d06840b07a4460f56904ae0e743e2b2eab1a9ebb5dbc1dd64736f6c634300080d0033
Loading...
Loading
Loading...
Loading
[ 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.