Overview
TokenID
790
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:
FanzJohnMotson
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "erc721a/contracts/ERC721A.sol"; contract FanzJohnMotson is Ownable, ERC721A, ReentrancyGuard, Pausable { using ECDSA for bytes32; event UpdatePublicSaleActive(bool publicSaleActive); event UpdatePrivateSaleActive(bool privateSaleActive); event UpdateMaxPerTx(uint256 maxPerTx); event UpdateReserveTeamTokens(uint256 reserveTeamTokens); event UpdateTreasury(address treasury); event UpdateWhitelistSigner(address whitelistSigner); event UpdateBaseURI(string baseURI); event UpdatePlaceholderURI(string placeholderURI); event UpdatePublicSalePrice(uint256 publicSalePrice); event UpdatePrivateSalePrice(uint256 privateSalePrice); event UpdateStartingIndex(uint256 startingIndex); event UpdatePrivateSaleMaxMint(uint256 privateSaleMaxMint); event UpdateMaxMintTotalPerAddress(uint256 maxMintTotalPerAddress); event UpdateStartingIndexBlock(uint256 startingIndex); bool public publicSaleActive; bool public privateSaleActive = true; uint256 public maxPerTx = 5; uint256 public collectionSupply = 5000; uint256 public reserveTeamTokens = 600; uint256 public publicSalePrice = .1 ether; uint256 public privateSalePrice = .07 ether; uint256 public maxMintTotalPerAddress = 50; uint256 public privateSaleMaxMint = 2; uint256 private startingIndex; uint256 private startingIndexBlock; address public treasury; address public whitelistSigner; string public baseURI; string public placeholderURI; bytes32 public DOMAIN_SEPARATOR; bytes32 public constant PRESALE_TYPEHASH = keccak256("PrivateSale(address buyer)"); constructor() ERC721A("FANZJM", "MOTTY") { _pause(); uint256 chainId; assembly { chainId := chainid() } DOMAIN_SEPARATOR = keccak256( abi.encode( keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ), keccak256(bytes("FANZJM")), keccak256(bytes("1")), chainId, address(this) ) ); whitelistSigner = owner(); } /* ======== MODIFIERS ======== */ modifier callerIsUser() { require(tx.origin == _msgSender(), "The caller is another contract"); _; } modifier callerIsTreasury() { require(treasury == _msgSender(), "The caller is another address"); _; } modifier callerIsTreasuryOrOwner() { require( treasury == _msgSender() || owner() == _msgSender(), "The caller is another address" ); _; } /* ======== SETTERS ======== */ function setPaused(bool paused_) external onlyOwner { if (paused_) _pause(); else _unpause(); } function setSales(bool publicSaleActive_, bool privateSaleActive_) external onlyOwner { require( publicSaleActive_ != privateSaleActive_, "FanzJohnMotson: Only 1 sale can be active" ); publicSaleActive = publicSaleActive_; privateSaleActive = privateSaleActive_; emit UpdatePublicSaleActive(publicSaleActive_); emit UpdatePrivateSaleActive(privateSaleActive_); } function setPrivateSalePrice(uint256 privateSalePrice_) external onlyOwner { privateSalePrice = privateSalePrice_; emit UpdatePrivateSalePrice(privateSalePrice_); } function setPublicSalePrice(uint256 publicSalePrice_) external onlyOwner { publicSalePrice = publicSalePrice_; emit UpdatePublicSalePrice(publicSalePrice_); } function setMaxPerTx(uint256 maxPerTx_) external onlyOwner { maxPerTx = maxPerTx_; emit UpdateMaxPerTx(maxPerTx_); } function setReserveTeamTokens(uint256 reserveTeamTokens_) external onlyOwner { reserveTeamTokens = reserveTeamTokens_; emit UpdateReserveTeamTokens(reserveTeamTokens_); } function setBaseURI(string memory baseURI_) external onlyOwner { baseURI = baseURI_; emit UpdateBaseURI(baseURI_); } function setPlaceholderURI(string memory placeholderURI_) external onlyOwner { placeholderURI = placeholderURI_; emit UpdatePlaceholderURI(placeholderURI_); } function setTreasury(address treasury_) external onlyOwner { treasury = treasury_; emit UpdateTreasury(treasury_); } function setPrivateSaleMaxMint(uint256 privateSaleMaxMint_) external onlyOwner { privateSaleMaxMint = privateSaleMaxMint_; emit UpdatePrivateSaleMaxMint(privateSaleMaxMint_); } function setMaxMintTotalPerAddress(uint256 maxMintTotalPerAddress_) external onlyOwner { maxMintTotalPerAddress = maxMintTotalPerAddress_; emit UpdateMaxMintTotalPerAddress(maxMintTotalPerAddress_); } function setWhitelistSigner(address whitelistSigner_) external onlyOwner { whitelistSigner = whitelistSigner_; emit UpdateWhitelistSigner(whitelistSigner_); } function setStartingIndex() external onlyOwner { require( startingIndex == 0, "FanzJohnMotson: Starting index is already set" ); require( startingIndexBlock != 0, "FanzJohnMotson: Starting index block must be set" ); startingIndex = uint256(blockhash(startingIndexBlock)) % collectionSupply; // Just a sanity case in the worst case if this function is called late (EVM only stores last 256 block hashes) if ((block.number - startingIndexBlock) > 255) { startingIndex = uint256(blockhash(block.number - 1)) % collectionSupply; } emit UpdateStartingIndex(startingIndex); } /* ======== INTERNAL ======== */ function _validateMint( bool sale, uint256 price_, uint256 quantity_ ) private { require(sale, "FanzJohnMotson: Sale has not begun yet"); require( (totalSupply() + quantity_) <= collectionSupply, "FanzJohnMotson: Reached max supply" ); require( quantity_ > 0 && quantity_ <= maxPerTx, "FanzJohnMotson: Reached max mint per tx" ); require( (_numberMinted(_msgSender()) + quantity_) <= maxMintTotalPerAddress, "FanzJohnMotson: Reached max mint" ); refundIfOver(price_ * quantity_); } function _startIndex() private { if (startingIndexBlock == 0) { startingIndexBlock = block.number; emit UpdateStartingIndexBlock(block.number); } } function _validatePrivateSaleSignature(bytes memory signature_) private view { // Verify EIP-712 signature bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR, keccak256(abi.encode(PRESALE_TYPEHASH, _msgSender())) ) ); address recoveredAddress = digest.recover(signature_); require( recoveredAddress != address(0) && recoveredAddress == address(whitelistSigner), "FanzJohnMotson: Invalid signature" ); } function refundIfOver(uint256 price) private { require(msg.value >= price, "Need to send more ETH."); if (msg.value > price) { payable(msg.sender).transfer(msg.value - price); } } /* ======== EXTERNAL ======== */ function numberMinted(address owner) external view returns (uint256) { return _numberMinted(owner); } function publicSaleMint(uint256 quantity_) external payable whenNotPaused { _validateMint(publicSaleActive, publicSalePrice, quantity_); _safeMint(_msgSender(), quantity_); _startIndex(); } function privateSaleMint(uint256 quantity_, bytes memory signature_) external payable whenNotPaused { require( (_numberMinted(_msgSender()) + quantity_) <= privateSaleMaxMint, "FanzJohnMotson: Reached max mint" ); _validateMint(privateSaleActive, privateSalePrice, quantity_); _validatePrivateSaleSignature(signature_); _safeMint(_msgSender(), quantity_); _startIndex(); } function teamTokensMint(address to_, uint256 quantity_) external callerIsTreasuryOrOwner { require( (totalSupply() + quantity_) <= collectionSupply, "FanzJohnMotson: Reached max supply" ); require( (reserveTeamTokens - quantity_) >= 0, "FanzJohnMotson: Reached team tokens mint" ); reserveTeamTokens = reserveTeamTokens - quantity_; emit UpdateReserveTeamTokens(reserveTeamTokens); _safeMint(to_, quantity_); } function withdrawEth() external callerIsTreasury nonReentrant { payable(address(treasury)).transfer(address(this).balance); } function withdrawPortionOfEth(uint256 withdrawAmount_) external callerIsTreasury nonReentrant { payable(address(treasury)).transfer(withdrawAmount_); } function burn(uint256 tokenId) external { address owner = ownerOf(tokenId); require( _msgSender() == owner, "FanzJohnMotson: Is not the owner of this token" ); _burn(tokenId); } /* ======== OVERRIDES ======== */ function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "URI query for nonexistent token"); if (startingIndex == 0) { return placeholderURI; } uint256 moddedId = (tokenId + startingIndex) % collectionSupply; string memory uri = _baseURI(); return string(abi.encodePacked(uri, Strings.toString(moddedId))); } }
// SPDX-License-Identifier: MIT 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() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { 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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT 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 make 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 "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintedQueryForZeroAddress(); error BurnedQueryForZeroAddress(); error AuxQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerIndexOutOfBounds(); error OwnerQueryForNonexistentToken(); error TokenIndexOutOfBounds(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @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 Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. 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; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _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 ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev See {IERC721Enumerable-totalSupply}. * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * 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 See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { if (owner == address(0)) revert MintedQueryForZeroAddress(); return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { if (owner == address(0)) revert BurnedQueryForZeroAddress(); return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { if (owner == address(0)) revert AuxQueryForZeroAddress(); return _addressData[owner].aux; } /** * Sets the auxillary 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 { if (owner == address(0)) revert AuxQueryForZeroAddress(); _addressData[owner].aux = aux; } /** * 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) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr && curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // 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. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract() && !_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 && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (safe && to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex != end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || isApprovedForAll(prevOwnership.addr, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { TokenOwnership memory prevOwnership = ownershipOf(tokenId); _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[prevOwnership.addr].balance -= 1; _addressData[prevOwnership.addr].numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. _ownerships[tokenId].addr = prevOwnership.addr; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); _ownerships[tokenId].burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(prevOwnership.addr, address(0), tokenId); _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @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 {} }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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 Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT 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); }
{ "optimizer": { "enabled": true, "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":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintedQueryForZeroAddress","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"UpdateBaseURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxMintTotalPerAddress","type":"uint256"}],"name":"UpdateMaxMintTotalPerAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxPerTx","type":"uint256"}],"name":"UpdateMaxPerTx","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"placeholderURI","type":"string"}],"name":"UpdatePlaceholderURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"privateSaleActive","type":"bool"}],"name":"UpdatePrivateSaleActive","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"privateSaleMaxMint","type":"uint256"}],"name":"UpdatePrivateSaleMaxMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"privateSalePrice","type":"uint256"}],"name":"UpdatePrivateSalePrice","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"publicSaleActive","type":"bool"}],"name":"UpdatePublicSaleActive","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"publicSalePrice","type":"uint256"}],"name":"UpdatePublicSalePrice","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reserveTeamTokens","type":"uint256"}],"name":"UpdateReserveTeamTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"startingIndex","type":"uint256"}],"name":"UpdateStartingIndex","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"startingIndex","type":"uint256"}],"name":"UpdateStartingIndexBlock","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"treasury","type":"address"}],"name":"UpdateTreasury","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"whitelistSigner","type":"address"}],"name":"UpdateWhitelistSigner","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectionSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintTotalPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"placeholderURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateSaleMaxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity_","type":"uint256"},{"internalType":"bytes","name":"signature_","type":"bytes"}],"name":"privateSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"privateSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity_","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveTeamTokens","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxMintTotalPerAddress_","type":"uint256"}],"name":"setMaxMintTotalPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxPerTx_","type":"uint256"}],"name":"setMaxPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"paused_","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"placeholderURI_","type":"string"}],"name":"setPlaceholderURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"privateSaleMaxMint_","type":"uint256"}],"name":"setPrivateSaleMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"privateSalePrice_","type":"uint256"}],"name":"setPrivateSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"publicSalePrice_","type":"uint256"}],"name":"setPublicSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"reserveTeamTokens_","type":"uint256"}],"name":"setReserveTeamTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"publicSaleActive_","type":"bool"},{"internalType":"bool","name":"privateSaleActive_","type":"bool"}],"name":"setSales","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setStartingIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"treasury_","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"whitelistSigner_","type":"address"}],"name":"setWhitelistSigner","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":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"quantity_","type":"uint256"}],"name":"teamTokensMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"withdrawAmount_","type":"uint256"}],"name":"withdrawPortionOfEth","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600a805462ff00001916620100001790556005600b55611388600c55610258600d5567016345785d8a0000600e5566f8b0a10e470000600f55603260105560026011553480156200005457600080fd5b506040518060400160405280600681526020016546414e5a4a4d60d01b815250604051806040016040528060058152602001644d4f54545960d81b815250620000ac620000a6620001ed60201b60201c565b620001f1565b8151620000c1906003906020850190620002df565b508051620000d7906004906020840190620002df565b50600060019081556009555050600a805460ff19169055620000f862000241565b604080518082018252600681526546414e5a4a4d60d01b6020918201528151808301835260018152603160f81b9082015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818301527f13fb62271dd6796e4d8c2c6aa76563e476cff1eeb6d3be6400037ba083a1c6d7818401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a0808301919091528351808303909101815260c09091019092528151910120601855600054601580546001600160a01b0319166001600160a01b03909216919091179055620003c2565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600a5460ff16156200028c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640160405180910390fd5b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620002c23390565b6040516001600160a01b03909116815260200160405180910390a1565b828054620002ed9062000385565b90600052602060002090601f0160209004810192826200031157600085556200035c565b82601f106200032c57805160ff19168380011785556200035c565b828001600101855582156200035c579182015b828111156200035c5782518255916020019190600101906200033f565b506200036a9291506200036e565b5090565b5b808211156200036a57600081556001016200036f565b600181811c908216806200039a57607f821691505b60208210811415620003bc57634e487b7160e01b600052602260045260246000fd5b50919050565b61331b80620003d26000396000f3fe60806040526004361061031a5760003560e01c80637313cba9116101ab578063bc8893b4116100f7578063e985e9c511610095578063f0f442601161006f578063f0f4426014610911578063f2fde38b14610931578063f560d41514610951578063f968adbe1461096757600080fd5b8063e985e9c514610893578063e9866550146108dc578063ef81b4d4146108f157600080fd5b8063d3381438116100d1578063d338143814610809578063d4ae752214610829578063dc33e6811461085d578063df272e671461087d57600080fd5b8063bc8893b4146107aa578063c6f6f216146107c9578063c87b56dd146107e957600080fd5b806395d89b4111610164578063a22cb4651161013e578063a22cb46514610737578063b3ab66b014610757578063b53277eb1461076a578063b88d4fde1461078a57600080fd5b806395d89b41146106f75780639b6860c81461070c578063a0ef91df1461072257600080fd5b80637313cba91461064457806373ea9fad14610659578063791a2519146106795780637a07b5ef146106995780637bc36e04146106b95780638da5cb5b146106d957600080fd5b80634f1fab8c1161026a5780636352211e116102235780636c0360eb116101fd5780636c0360eb146105e75780636f86b0c8146105fc57806370a082311461060f578063715018a61461062f57600080fd5b80636352211e146105915780636490f6db146105b15780636ab92086146105d157600080fd5b80634f1fab8c146104e357806355f804b3146105035780635a9021e4146105235780635c975abb1461054357806360bbcf4e1461055b57806361d027b31461057157600080fd5b806318160ddd116102d75780633574a2dd116102b15780633574a2dd1461046d5780633644e5151461048d57806342842e0e146104a357806342966c68146104c357600080fd5b806318160ddd1461041457806323b872dd1461042d5780632a237bb61461044d57600080fd5b806301ffc9a71461031f57806306fdde0314610354578063081812fc14610376578063095ea7b3146103ae57806310855973146103d057806316c38b3c146103f4575b600080fd5b34801561032b57600080fd5b5061033f61033a366004612cb7565b61097d565b60405190151581526020015b60405180910390f35b34801561036057600080fd5b506103696109cf565b60405161034b9190612d33565b34801561038257600080fd5b50610396610391366004612d46565b610a61565b6040516001600160a01b03909116815260200161034b565b3480156103ba57600080fd5b506103ce6103c9366004612d7b565b610aa5565b005b3480156103dc57600080fd5b506103e660115481565b60405190815260200161034b565b34801561040057600080fd5b506103ce61040f366004612db5565b610b33565b34801561042057600080fd5b50600254600154036103e6565b34801561043957600080fd5b506103ce610448366004612dd0565b610b7f565b34801561045957600080fd5b50600a5461033f9062010000900460ff1681565b34801561047957600080fd5b506103ce610488366004612e97565b610b8a565b34801561049957600080fd5b506103e660185481565b3480156104af57600080fd5b506103ce6104be366004612dd0565b610c02565b3480156104cf57600080fd5b506103ce6104de366004612d46565b610c1d565b3480156104ef57600080fd5b506103ce6104fe366004612d46565b610ca6565b34801561050f57600080fd5b506103ce61051e366004612e97565b610d05565b34801561052f57600080fd5b506103ce61053e366004612d7b565b610d72565b34801561054f57600080fd5b50600a5460ff1661033f565b34801561056757600080fd5b506103e660105481565b34801561057d57600080fd5b50601454610396906001600160a01b031681565b34801561059d57600080fd5b506103966105ac366004612d46565b610ea9565b3480156105bd57600080fd5b506103ce6105cc366004612d46565b610ebb565b3480156105dd57600080fd5b506103e6600c5481565b3480156105f357600080fd5b50610369610f1a565b6103ce61060a366004612eff565b610fa8565b34801561061b57600080fd5b506103e661062a366004612f45565b611065565b34801561063b57600080fd5b506103ce6110b3565b34801561065057600080fd5b506103696110e9565b34801561066557600080fd5b506103ce610674366004612d46565b6110f6565b34801561068557600080fd5b506103ce610694366004612d46565b611155565b3480156106a557600080fd5b506103ce6106b4366004612f60565b6111b4565b3480156106c557600080fd5b506103ce6106d4366004612d46565b6112d8565b3480156106e557600080fd5b506000546001600160a01b0316610396565b34801561070357600080fd5b50610369611337565b34801561071857600080fd5b506103e6600e5481565b34801561072e57600080fd5b506103ce611346565b34801561074357600080fd5b506103ce610752366004612f93565b611409565b6103ce610765366004612d46565b61149f565b34801561077657600080fd5b506103ce610785366004612d46565b6114ed565b34801561079657600080fd5b506103ce6107a5366004612faf565b6115b2565b3480156107b657600080fd5b50600a5461033f90610100900460ff1681565b3480156107d557600080fd5b506103ce6107e4366004612d46565b611603565b3480156107f557600080fd5b50610369610804366004612d46565b611662565b34801561081557600080fd5b506103ce610824366004612f45565b6117b0565b34801561083557600080fd5b506103e67f4dfdc40c587c7b6d3c5c8f9c04c90b899ebfe162f19568448c564b1f42701e9381565b34801561086957600080fd5b506103e6610878366004612f45565b611828565b34801561088957600080fd5b506103e6600d5481565b34801561089f57600080fd5b5061033f6108ae366004613016565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b3480156108e857600080fd5b506103ce611833565b3480156108fd57600080fd5b50601554610396906001600160a01b031681565b34801561091d57600080fd5b506103ce61092c366004612f45565b6119af565b34801561093d57600080fd5b506103ce61094c366004612f45565b611a27565b34801561095d57600080fd5b506103e6600f5481565b34801561097357600080fd5b506103e6600b5481565b60006001600160e01b031982166380ac58cd60e01b14806109ae57506001600160e01b03198216635b5e139f60e01b145b806109c957506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600380546109de90613040565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0a90613040565b8015610a575780601f10610a2c57610100808354040283529160200191610a57565b820191906000526020600020905b815481529060010190602001808311610a3a57829003601f168201915b5050505050905090565b6000610a6c82611abf565b610a89576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610ab082610ea9565b9050806001600160a01b0316836001600160a01b03161415610ae55760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610b055750610b0381336108ae565b155b15610b23576040516367d9dca160e11b815260040160405180910390fd5b610b2e838383611aeb565b505050565b6000546001600160a01b03163314610b665760405162461bcd60e51b8152600401610b5d9061307b565b60405180910390fd5b8015610b7757610b74611b47565b50565b610b74611bb7565b610b2e838383611c31565b6000546001600160a01b03163314610bb45760405162461bcd60e51b8152600401610b5d9061307b565b8051610bc7906017906020840190612c08565b507f4c0b5770ef4b7d927d2dd9a1b970656f8e02cafa4bc1814c35ed3bc8de0cd75b81604051610bf79190612d33565b60405180910390a150565b610b2e838383604051806020016040528060008152506115b2565b6000610c2882610ea9565b9050336001600160a01b03821614610c995760405162461bcd60e51b815260206004820152602e60248201527f46616e7a4a6f686e4d6f74736f6e3a204973206e6f7420746865206f776e657260448201526d1037b3103a3434b9903a37b5b2b760911b6064820152608401610b5d565b610ca282611e33565b5050565b6000546001600160a01b03163314610cd05760405162461bcd60e51b8152600401610b5d9061307b565b60118190556040518181527f561fbd7b747dd71b11ec7f01f975b5547bcf4a4e34444663bed65aec1ffcb74290602001610bf7565b6000546001600160a01b03163314610d2f5760405162461bcd60e51b8152600401610b5d9061307b565b8051610d42906016906020840190612c08565b507f157d450c8fb1377294d9db75af1de2753efc52d8e5578551d70d2c7d9cd74df981604051610bf79190612d33565b6014546001600160a01b0316331480610d9557506000546001600160a01b031633145b610db15760405162461bcd60e51b8152600401610b5d906130b0565b600c5481610dc26002546001540390565b610dcc91906130fd565b1115610dea5760405162461bcd60e51b8152600401610b5d90613115565b600081600d54610dfa9190613157565b1015610e595760405162461bcd60e51b815260206004820152602860248201527f46616e7a4a6f686e4d6f74736f6e3a2052656163686564207465616d20746f6b604482015267195b9cc81b5a5b9d60c21b6064820152608401610b5d565b80600d54610e679190613157565b600d8190556040519081527f9587dc0f49459be9005c376c4f4d388d2fa8d812604a82c8b5fe4cdf77ef7a019060200160405180910390a1610ca28282611f9e565b6000610eb482611fb8565b5192915050565b6000546001600160a01b03163314610ee55760405162461bcd60e51b8152600401610b5d9061307b565b600d8190556040518181527f9587dc0f49459be9005c376c4f4d388d2fa8d812604a82c8b5fe4cdf77ef7a0190602001610bf7565b60168054610f2790613040565b80601f0160208091040260200160405190810160405280929190818152602001828054610f5390613040565b8015610fa05780601f10610f7557610100808354040283529160200191610fa0565b820191906000526020600020905b815481529060010190602001808311610f8357829003601f168201915b505050505081565b600a5460ff1615610fcb5760405162461bcd60e51b8152600401610b5d9061316e565b60115482610fd8336120d2565b610fe291906130fd565b11156110305760405162461bcd60e51b815260206004820181905260248201527f46616e7a4a6f686e4d6f74736f6e3a2052656163686564206d6178206d696e746044820152606401610b5d565b600a54600f5461104a9162010000900460ff169084612127565b611053816122a1565b61105d3383611f9e565b610ca26123d1565b60006001600160a01b03821661108e576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6000546001600160a01b031633146110dd5760405162461bcd60e51b8152600401610b5d9061307b565b6110e7600061240e565b565b60178054610f2790613040565b6000546001600160a01b031633146111205760405162461bcd60e51b8152600401610b5d9061307b565b60108190556040518181527fa9b7c785c96739380f3f308a146c9ef892a7b861f9721c47cb6f8a2c294cd47890602001610bf7565b6000546001600160a01b0316331461117f5760405162461bcd60e51b8152600401610b5d9061307b565b600e8190556040518181527ff0837e5a8b03f37e0a02991e3af7be4b870c978046718af59511f3f644fca7ff90602001610bf7565b6000546001600160a01b031633146111de5760405162461bcd60e51b8152600401610b5d9061307b565b80151582151514156112445760405162461bcd60e51b815260206004820152602960248201527f46616e7a4a6f686e4d6f74736f6e3a204f6e6c7920312073616c652063616e2060448201526862652061637469766560b81b6064820152608401610b5d565b600a805462ffff00191661010084151590810262ff00001916919091176201000084151502179091556040519081527fa7f1d6692c34cde0ab0e7f046d2a61e54ff457d1bc74463c54a1240436e97d4e9060200160405180910390a160405181151581527eae155da4b16482f1f1de21b801a3b841d5967fe2a1e3fe8d5355d3582e47479060200160405180910390a15050565b6000546001600160a01b031633146113025760405162461bcd60e51b8152600401610b5d9061307b565b600f8190556040518181527f60184c1d3dafb0da9292ec4c904b84ce75399bc8476dfd9a308439a220691c1b90602001610bf7565b6060600480546109de90613040565b6014546001600160a01b031633146113705760405162461bcd60e51b8152600401610b5d906130b0565b600260095414156113c35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b5d565b60026009556014546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015611401573d6000803e3d6000fd5b506001600955565b6001600160a01b0382163314156114335760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a5460ff16156114c25760405162461bcd60e51b8152600401610b5d9061316e565b600a54600e546114db91610100900460ff169083612127565b6114e53382611f9e565b610b746123d1565b6014546001600160a01b031633146115175760405162461bcd60e51b8152600401610b5d906130b0565b6002600954141561156a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b5d565b60026009556014546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156115a9573d6000803e3d6000fd5b50506001600955565b6115bd848484611c31565b6001600160a01b0383163b151580156115df57506115dd8484848461245e565b155b156115fd576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6000546001600160a01b0316331461162d5760405162461bcd60e51b8152600401610b5d9061307b565b600b8190556040518181527f5af3c0ea139feb589ca6a45cdcfd3aab2221a9f0e5e17200257740759dbee52a90602001610bf7565b606061166d82611abf565b6116b95760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610b5d565b60125461175257601780546116cd90613040565b80601f01602080910402602001604051908101604052809291908181526020018280546116f990613040565b80156117465780601f1061171b57610100808354040283529160200191611746565b820191906000526020600020905b81548152906001019060200180831161172957829003601f168201915b50505050509050919050565b6000600c546012548461176591906130fd565b61176f91906131ae565b9050600061177b612556565b90508061178783612565565b6040516020016117989291906131c2565b60405160208183030381529060405292505050919050565b6000546001600160a01b031633146117da5760405162461bcd60e51b8152600401610b5d9061307b565b601580546001600160a01b0319166001600160a01b0383169081179091556040519081527f4fae1dd8011a0c123d814d1e6d18dda34e3a36e8014868303adaf26e25ea0c8d90602001610bf7565b60006109c9826120d2565b6000546001600160a01b0316331461185d5760405162461bcd60e51b8152600401610b5d9061307b565b601254156118c35760405162461bcd60e51b815260206004820152602d60248201527f46616e7a4a6f686e4d6f74736f6e3a205374617274696e6720696e646578206960448201526c1cc8185b1c9958591e481cd95d609a1b6064820152608401610b5d565b60135461192b5760405162461bcd60e51b815260206004820152603060248201527f46616e7a4a6f686e4d6f74736f6e3a205374617274696e6720696e646578206260448201526f1b1bd8dac81b5d5cdd081899481cd95d60821b6064820152608401610b5d565b600c5460135461193c9190406131ae565b60125560135460ff9061194f9043613157565b111561197257600c54611963600143613157565b61196e9190406131ae565b6012555b7fb44bf42d72eeb8ef2ef9726586efdb444cd10689260823119edb750626b5536d6012546040516119a591815260200190565b60405180910390a1565b6000546001600160a01b031633146119d95760405162461bcd60e51b8152600401610b5d9061307b565b601480546001600160a01b0319166001600160a01b0383169081179091556040519081527f1f54d231bb9d500b1923e4a1cb25e600f366a8368873d9af7c1c623814df19fc90602001610bf7565b6000546001600160a01b03163314611a515760405162461bcd60e51b8152600401610b5d9061307b565b6001600160a01b038116611ab65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b5d565b610b748161240e565b6000600154821080156109c9575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600a5460ff1615611b6a5760405162461bcd60e51b8152600401610b5d9061316e565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611b9f3390565b6040516001600160a01b0390911681526020016119a5565b600a5460ff16611c005760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610b5d565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611b9f565b6000611c3c82611fb8565b80519091506000906001600160a01b0316336001600160a01b03161480611c6a57508151611c6a90336108ae565b80611c85575033611c7a84610a61565b6001600160a01b0316145b905080611ca557604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611cda5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416611d0157604051633a954ecd60e21b815260040160405180910390fd5b611d116000848460000151611aeb565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116611dfb57600154811015611dfb57825160008281526005602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03166000805160206132c683398151915260405160405180910390a45b5050505050565b6000611e3e82611fb8565b9050611e506000838360000151611aeb565b80516001600160a01b039081166000908152600660209081526040808320805467ffffffffffffffff1981166001600160401b0391821660001901821617909155855185168452818420805467ffffffffffffffff60801b198116600160801b9182900484166001908101851690920217909155865188865260059094528285208054600160e01b9588166001600160e01b031990911617600160a01b42909416939093029290921760ff60e01b1916939093179055908501808352912054909116611f6757600154811015611f6757815160008281526005602090815260409091208054918501516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b50805160405183916000916001600160a01b03909116906000805160206132c6833981519152908390a45050600280546001019055565b610ca2828260405180602001604052806000815250612662565b6040805160608101825260008082526020820181905291810191909152816001548110156120b957600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906120b75780516001600160a01b03161561204e579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156120b2579392505050565b61204e565b505b604051636f96cda160e11b815260040160405180910390fd5b60006001600160a01b0382166120fb576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b0316600090815260066020526040902054600160401b90046001600160401b031690565b826121835760405162461bcd60e51b815260206004820152602660248201527f46616e7a4a6f686e4d6f74736f6e3a2053616c6520686173206e6f74206265676044820152651d5b881e595d60d21b6064820152608401610b5d565b600c54816121946002546001540390565b61219e91906130fd565b11156121bc5760405162461bcd60e51b8152600401610b5d90613115565b6000811180156121ce5750600b548111155b61222a5760405162461bcd60e51b815260206004820152602760248201527f46616e7a4a6f686e4d6f74736f6e3a2052656163686564206d6178206d696e74604482015266040e0cae440e8f60cb1b6064820152608401610b5d565b60105481612237336120d2565b61224191906130fd565b111561228f5760405162461bcd60e51b815260206004820181905260248201527f46616e7a4a6f686e4d6f74736f6e3a2052656163686564206d6178206d696e746044820152606401610b5d565b610b2e61229c82846131f1565b61266f565b60006018547f4dfdc40c587c7b6d3c5c8f9c04c90b899ebfe162f19568448c564b1f42701e936122ce3390565b6040516020016122f19291909182526001600160a01b0316602082015260400190565b6040516020818303038152906040528051906020012060405160200161232e92919061190160f01b81526002810192909252602282015260420190565b60408051601f1981840301815291905280516020909101209050600061235482846126f6565b90506001600160a01b0381161580159061237b57506015546001600160a01b038281169116145b610b2e5760405162461bcd60e51b815260206004820152602160248201527f46616e7a4a6f686e4d6f74736f6e3a20496e76616c6964207369676e617475726044820152606560f81b6064820152608401610b5d565b6013546110e7574360138190556040519081527f952eb00bbe2dfa91f4a29d08691733ae707c4a079e2a4a61cb0609418c7abc40906020016119a5565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612493903390899088908890600401613210565b602060405180830381600087803b1580156124ad57600080fd5b505af19250505080156124dd575060408051601f3d908101601f191682019092526124da9181019061324d565b60015b612538573d80801561250b576040519150601f19603f3d011682016040523d82523d6000602084013e612510565b606091505b508051612530576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060601680546109de90613040565b6060816125895750506040805180820190915260018152600360fc1b602082015290565b8160005b81156125b3578061259d8161326a565b91506125ac9050600a83613285565b915061258d565b6000816001600160401b038111156125cd576125cd612e0c565b6040519080825280601f01601f1916602001820160405280156125f7576020820181803683370190505b5090505b841561254e5761260c600183613157565b9150612619600a866131ae565b6126249060306130fd565b60f81b81838151811061263957612639613299565b60200101906001600160f81b031916908160001a90535061265b600a86613285565b94506125fb565b610b2e838383600161271a565b803410156126b85760405162461bcd60e51b81526020600482015260166024820152752732b2b2103a379039b2b7321036b7b9329022aa241760511b6044820152606401610b5d565b80341115610b7457336108fc6126ce8334613157565b6040518115909202916000818181858888f19350505050158015610ca2573d6000803e3d6000fd5b600080600061270585856128c1565b9150915061271281612931565b509392505050565b6001546001600160a01b03851661274357604051622e076360e81b815260040160405180910390fd5b836127615760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561280d57506001600160a01b0387163b15155b15612884575b60405182906001600160a01b038916906000906000805160206132c6833981519152908290a461284c600088848060010195508861245e565b612869576040516368d2bf6b60e11b815260040160405180910390fd5b8082141561281357826001541461287f57600080fd5b6128b8565b5b6040516001830192906001600160a01b038916906000906000805160206132c6833981519152908290a480821415612885575b50600155611e2c565b6000808251604114156128f85760208301516040840151606085015160001a6128ec87828585612aec565b9450945050505061292a565b8251604014156129225760208301516040840151612917868383612bd9565b93509350505061292a565b506000905060025b9250929050565b6000816004811115612945576129456132af565b141561294e5750565b6001816004811115612962576129626132af565b14156129b05760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b5d565b60028160048111156129c4576129c46132af565b1415612a125760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b5d565b6003816004811115612a2657612a266132af565b1415612a7f5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610b5d565b6004816004811115612a9357612a936132af565b1415610b745760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610b5d565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612b235750600090506003612bd0565b8460ff16601b14158015612b3b57508460ff16601c14155b15612b4c5750600090506004612bd0565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612ba0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612bc957600060019250925050612bd0565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612bfa87828885612aec565b935093505050935093915050565b828054612c1490613040565b90600052602060002090601f016020900481019282612c365760008555612c7c565b82601f10612c4f57805160ff1916838001178555612c7c565b82800160010185558215612c7c579182015b82811115612c7c578251825591602001919060010190612c61565b50612c88929150612c8c565b5090565b5b80821115612c885760008155600101612c8d565b6001600160e01b031981168114610b7457600080fd5b600060208284031215612cc957600080fd5b8135612cd481612ca1565b9392505050565b60005b83811015612cf6578181015183820152602001612cde565b838111156115fd5750506000910152565b60008151808452612d1f816020860160208601612cdb565b601f01601f19169290920160200192915050565b602081526000612cd46020830184612d07565b600060208284031215612d5857600080fd5b5035919050565b80356001600160a01b0381168114612d7657600080fd5b919050565b60008060408385031215612d8e57600080fd5b612d9783612d5f565b946020939093013593505050565b80358015158114612d7657600080fd5b600060208284031215612dc757600080fd5b612cd482612da5565b600080600060608486031215612de557600080fd5b612dee84612d5f565b9250612dfc60208501612d5f565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115612e3c57612e3c612e0c565b604051601f8501601f19908116603f01168101908282118183101715612e6457612e64612e0c565b81604052809350858152868686011115612e7d57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612ea957600080fd5b81356001600160401b03811115612ebf57600080fd5b8201601f81018413612ed057600080fd5b61254e84823560208401612e22565b600082601f830112612ef057600080fd5b612cd483833560208501612e22565b60008060408385031215612f1257600080fd5b8235915060208301356001600160401b03811115612f2f57600080fd5b612f3b85828601612edf565b9150509250929050565b600060208284031215612f5757600080fd5b612cd482612d5f565b60008060408385031215612f7357600080fd5b612f7c83612da5565b9150612f8a60208401612da5565b90509250929050565b60008060408385031215612fa657600080fd5b612f7c83612d5f565b60008060008060808587031215612fc557600080fd5b612fce85612d5f565b9350612fdc60208601612d5f565b92506040850135915060608501356001600160401b03811115612ffe57600080fd5b61300a87828801612edf565b91505092959194509250565b6000806040838503121561302957600080fd5b61303283612d5f565b9150612f8a60208401612d5f565b600181811c9082168061305457607f821691505b6020821081141561307557634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601d908201527f5468652063616c6c657220697320616e6f746865722061646472657373000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115613110576131106130e7565b500190565b60208082526022908201527f46616e7a4a6f686e4d6f74736f6e3a2052656163686564206d617820737570706040820152616c7960f01b606082015260800190565b600082821015613169576131696130e7565b500390565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b634e487b7160e01b600052601260045260246000fd5b6000826131bd576131bd613198565b500690565b600083516131d4818460208801612cdb565b8351908301906131e8818360208801612cdb565b01949350505050565b600081600019048311821515161561320b5761320b6130e7565b500290565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061324390830184612d07565b9695505050505050565b60006020828403121561325f57600080fd5b8151612cd481612ca1565b600060001982141561327e5761327e6130e7565b5060010190565b60008261329457613294613198565b500490565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052602160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122052eecf804222fa81e7b5650ef3847c03f8c7db535e1d56173e4fd068b274e92264736f6c63430008090033
Deployed Bytecode
0x60806040526004361061031a5760003560e01c80637313cba9116101ab578063bc8893b4116100f7578063e985e9c511610095578063f0f442601161006f578063f0f4426014610911578063f2fde38b14610931578063f560d41514610951578063f968adbe1461096757600080fd5b8063e985e9c514610893578063e9866550146108dc578063ef81b4d4146108f157600080fd5b8063d3381438116100d1578063d338143814610809578063d4ae752214610829578063dc33e6811461085d578063df272e671461087d57600080fd5b8063bc8893b4146107aa578063c6f6f216146107c9578063c87b56dd146107e957600080fd5b806395d89b4111610164578063a22cb4651161013e578063a22cb46514610737578063b3ab66b014610757578063b53277eb1461076a578063b88d4fde1461078a57600080fd5b806395d89b41146106f75780639b6860c81461070c578063a0ef91df1461072257600080fd5b80637313cba91461064457806373ea9fad14610659578063791a2519146106795780637a07b5ef146106995780637bc36e04146106b95780638da5cb5b146106d957600080fd5b80634f1fab8c1161026a5780636352211e116102235780636c0360eb116101fd5780636c0360eb146105e75780636f86b0c8146105fc57806370a082311461060f578063715018a61461062f57600080fd5b80636352211e146105915780636490f6db146105b15780636ab92086146105d157600080fd5b80634f1fab8c146104e357806355f804b3146105035780635a9021e4146105235780635c975abb1461054357806360bbcf4e1461055b57806361d027b31461057157600080fd5b806318160ddd116102d75780633574a2dd116102b15780633574a2dd1461046d5780633644e5151461048d57806342842e0e146104a357806342966c68146104c357600080fd5b806318160ddd1461041457806323b872dd1461042d5780632a237bb61461044d57600080fd5b806301ffc9a71461031f57806306fdde0314610354578063081812fc14610376578063095ea7b3146103ae57806310855973146103d057806316c38b3c146103f4575b600080fd5b34801561032b57600080fd5b5061033f61033a366004612cb7565b61097d565b60405190151581526020015b60405180910390f35b34801561036057600080fd5b506103696109cf565b60405161034b9190612d33565b34801561038257600080fd5b50610396610391366004612d46565b610a61565b6040516001600160a01b03909116815260200161034b565b3480156103ba57600080fd5b506103ce6103c9366004612d7b565b610aa5565b005b3480156103dc57600080fd5b506103e660115481565b60405190815260200161034b565b34801561040057600080fd5b506103ce61040f366004612db5565b610b33565b34801561042057600080fd5b50600254600154036103e6565b34801561043957600080fd5b506103ce610448366004612dd0565b610b7f565b34801561045957600080fd5b50600a5461033f9062010000900460ff1681565b34801561047957600080fd5b506103ce610488366004612e97565b610b8a565b34801561049957600080fd5b506103e660185481565b3480156104af57600080fd5b506103ce6104be366004612dd0565b610c02565b3480156104cf57600080fd5b506103ce6104de366004612d46565b610c1d565b3480156104ef57600080fd5b506103ce6104fe366004612d46565b610ca6565b34801561050f57600080fd5b506103ce61051e366004612e97565b610d05565b34801561052f57600080fd5b506103ce61053e366004612d7b565b610d72565b34801561054f57600080fd5b50600a5460ff1661033f565b34801561056757600080fd5b506103e660105481565b34801561057d57600080fd5b50601454610396906001600160a01b031681565b34801561059d57600080fd5b506103966105ac366004612d46565b610ea9565b3480156105bd57600080fd5b506103ce6105cc366004612d46565b610ebb565b3480156105dd57600080fd5b506103e6600c5481565b3480156105f357600080fd5b50610369610f1a565b6103ce61060a366004612eff565b610fa8565b34801561061b57600080fd5b506103e661062a366004612f45565b611065565b34801561063b57600080fd5b506103ce6110b3565b34801561065057600080fd5b506103696110e9565b34801561066557600080fd5b506103ce610674366004612d46565b6110f6565b34801561068557600080fd5b506103ce610694366004612d46565b611155565b3480156106a557600080fd5b506103ce6106b4366004612f60565b6111b4565b3480156106c557600080fd5b506103ce6106d4366004612d46565b6112d8565b3480156106e557600080fd5b506000546001600160a01b0316610396565b34801561070357600080fd5b50610369611337565b34801561071857600080fd5b506103e6600e5481565b34801561072e57600080fd5b506103ce611346565b34801561074357600080fd5b506103ce610752366004612f93565b611409565b6103ce610765366004612d46565b61149f565b34801561077657600080fd5b506103ce610785366004612d46565b6114ed565b34801561079657600080fd5b506103ce6107a5366004612faf565b6115b2565b3480156107b657600080fd5b50600a5461033f90610100900460ff1681565b3480156107d557600080fd5b506103ce6107e4366004612d46565b611603565b3480156107f557600080fd5b50610369610804366004612d46565b611662565b34801561081557600080fd5b506103ce610824366004612f45565b6117b0565b34801561083557600080fd5b506103e67f4dfdc40c587c7b6d3c5c8f9c04c90b899ebfe162f19568448c564b1f42701e9381565b34801561086957600080fd5b506103e6610878366004612f45565b611828565b34801561088957600080fd5b506103e6600d5481565b34801561089f57600080fd5b5061033f6108ae366004613016565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b3480156108e857600080fd5b506103ce611833565b3480156108fd57600080fd5b50601554610396906001600160a01b031681565b34801561091d57600080fd5b506103ce61092c366004612f45565b6119af565b34801561093d57600080fd5b506103ce61094c366004612f45565b611a27565b34801561095d57600080fd5b506103e6600f5481565b34801561097357600080fd5b506103e6600b5481565b60006001600160e01b031982166380ac58cd60e01b14806109ae57506001600160e01b03198216635b5e139f60e01b145b806109c957506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600380546109de90613040565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0a90613040565b8015610a575780601f10610a2c57610100808354040283529160200191610a57565b820191906000526020600020905b815481529060010190602001808311610a3a57829003601f168201915b5050505050905090565b6000610a6c82611abf565b610a89576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610ab082610ea9565b9050806001600160a01b0316836001600160a01b03161415610ae55760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610b055750610b0381336108ae565b155b15610b23576040516367d9dca160e11b815260040160405180910390fd5b610b2e838383611aeb565b505050565b6000546001600160a01b03163314610b665760405162461bcd60e51b8152600401610b5d9061307b565b60405180910390fd5b8015610b7757610b74611b47565b50565b610b74611bb7565b610b2e838383611c31565b6000546001600160a01b03163314610bb45760405162461bcd60e51b8152600401610b5d9061307b565b8051610bc7906017906020840190612c08565b507f4c0b5770ef4b7d927d2dd9a1b970656f8e02cafa4bc1814c35ed3bc8de0cd75b81604051610bf79190612d33565b60405180910390a150565b610b2e838383604051806020016040528060008152506115b2565b6000610c2882610ea9565b9050336001600160a01b03821614610c995760405162461bcd60e51b815260206004820152602e60248201527f46616e7a4a6f686e4d6f74736f6e3a204973206e6f7420746865206f776e657260448201526d1037b3103a3434b9903a37b5b2b760911b6064820152608401610b5d565b610ca282611e33565b5050565b6000546001600160a01b03163314610cd05760405162461bcd60e51b8152600401610b5d9061307b565b60118190556040518181527f561fbd7b747dd71b11ec7f01f975b5547bcf4a4e34444663bed65aec1ffcb74290602001610bf7565b6000546001600160a01b03163314610d2f5760405162461bcd60e51b8152600401610b5d9061307b565b8051610d42906016906020840190612c08565b507f157d450c8fb1377294d9db75af1de2753efc52d8e5578551d70d2c7d9cd74df981604051610bf79190612d33565b6014546001600160a01b0316331480610d9557506000546001600160a01b031633145b610db15760405162461bcd60e51b8152600401610b5d906130b0565b600c5481610dc26002546001540390565b610dcc91906130fd565b1115610dea5760405162461bcd60e51b8152600401610b5d90613115565b600081600d54610dfa9190613157565b1015610e595760405162461bcd60e51b815260206004820152602860248201527f46616e7a4a6f686e4d6f74736f6e3a2052656163686564207465616d20746f6b604482015267195b9cc81b5a5b9d60c21b6064820152608401610b5d565b80600d54610e679190613157565b600d8190556040519081527f9587dc0f49459be9005c376c4f4d388d2fa8d812604a82c8b5fe4cdf77ef7a019060200160405180910390a1610ca28282611f9e565b6000610eb482611fb8565b5192915050565b6000546001600160a01b03163314610ee55760405162461bcd60e51b8152600401610b5d9061307b565b600d8190556040518181527f9587dc0f49459be9005c376c4f4d388d2fa8d812604a82c8b5fe4cdf77ef7a0190602001610bf7565b60168054610f2790613040565b80601f0160208091040260200160405190810160405280929190818152602001828054610f5390613040565b8015610fa05780601f10610f7557610100808354040283529160200191610fa0565b820191906000526020600020905b815481529060010190602001808311610f8357829003601f168201915b505050505081565b600a5460ff1615610fcb5760405162461bcd60e51b8152600401610b5d9061316e565b60115482610fd8336120d2565b610fe291906130fd565b11156110305760405162461bcd60e51b815260206004820181905260248201527f46616e7a4a6f686e4d6f74736f6e3a2052656163686564206d6178206d696e746044820152606401610b5d565b600a54600f5461104a9162010000900460ff169084612127565b611053816122a1565b61105d3383611f9e565b610ca26123d1565b60006001600160a01b03821661108e576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6000546001600160a01b031633146110dd5760405162461bcd60e51b8152600401610b5d9061307b565b6110e7600061240e565b565b60178054610f2790613040565b6000546001600160a01b031633146111205760405162461bcd60e51b8152600401610b5d9061307b565b60108190556040518181527fa9b7c785c96739380f3f308a146c9ef892a7b861f9721c47cb6f8a2c294cd47890602001610bf7565b6000546001600160a01b0316331461117f5760405162461bcd60e51b8152600401610b5d9061307b565b600e8190556040518181527ff0837e5a8b03f37e0a02991e3af7be4b870c978046718af59511f3f644fca7ff90602001610bf7565b6000546001600160a01b031633146111de5760405162461bcd60e51b8152600401610b5d9061307b565b80151582151514156112445760405162461bcd60e51b815260206004820152602960248201527f46616e7a4a6f686e4d6f74736f6e3a204f6e6c7920312073616c652063616e2060448201526862652061637469766560b81b6064820152608401610b5d565b600a805462ffff00191661010084151590810262ff00001916919091176201000084151502179091556040519081527fa7f1d6692c34cde0ab0e7f046d2a61e54ff457d1bc74463c54a1240436e97d4e9060200160405180910390a160405181151581527eae155da4b16482f1f1de21b801a3b841d5967fe2a1e3fe8d5355d3582e47479060200160405180910390a15050565b6000546001600160a01b031633146113025760405162461bcd60e51b8152600401610b5d9061307b565b600f8190556040518181527f60184c1d3dafb0da9292ec4c904b84ce75399bc8476dfd9a308439a220691c1b90602001610bf7565b6060600480546109de90613040565b6014546001600160a01b031633146113705760405162461bcd60e51b8152600401610b5d906130b0565b600260095414156113c35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b5d565b60026009556014546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015611401573d6000803e3d6000fd5b506001600955565b6001600160a01b0382163314156114335760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a5460ff16156114c25760405162461bcd60e51b8152600401610b5d9061316e565b600a54600e546114db91610100900460ff169083612127565b6114e53382611f9e565b610b746123d1565b6014546001600160a01b031633146115175760405162461bcd60e51b8152600401610b5d906130b0565b6002600954141561156a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b5d565b60026009556014546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156115a9573d6000803e3d6000fd5b50506001600955565b6115bd848484611c31565b6001600160a01b0383163b151580156115df57506115dd8484848461245e565b155b156115fd576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6000546001600160a01b0316331461162d5760405162461bcd60e51b8152600401610b5d9061307b565b600b8190556040518181527f5af3c0ea139feb589ca6a45cdcfd3aab2221a9f0e5e17200257740759dbee52a90602001610bf7565b606061166d82611abf565b6116b95760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610b5d565b60125461175257601780546116cd90613040565b80601f01602080910402602001604051908101604052809291908181526020018280546116f990613040565b80156117465780601f1061171b57610100808354040283529160200191611746565b820191906000526020600020905b81548152906001019060200180831161172957829003601f168201915b50505050509050919050565b6000600c546012548461176591906130fd565b61176f91906131ae565b9050600061177b612556565b90508061178783612565565b6040516020016117989291906131c2565b60405160208183030381529060405292505050919050565b6000546001600160a01b031633146117da5760405162461bcd60e51b8152600401610b5d9061307b565b601580546001600160a01b0319166001600160a01b0383169081179091556040519081527f4fae1dd8011a0c123d814d1e6d18dda34e3a36e8014868303adaf26e25ea0c8d90602001610bf7565b60006109c9826120d2565b6000546001600160a01b0316331461185d5760405162461bcd60e51b8152600401610b5d9061307b565b601254156118c35760405162461bcd60e51b815260206004820152602d60248201527f46616e7a4a6f686e4d6f74736f6e3a205374617274696e6720696e646578206960448201526c1cc8185b1c9958591e481cd95d609a1b6064820152608401610b5d565b60135461192b5760405162461bcd60e51b815260206004820152603060248201527f46616e7a4a6f686e4d6f74736f6e3a205374617274696e6720696e646578206260448201526f1b1bd8dac81b5d5cdd081899481cd95d60821b6064820152608401610b5d565b600c5460135461193c9190406131ae565b60125560135460ff9061194f9043613157565b111561197257600c54611963600143613157565b61196e9190406131ae565b6012555b7fb44bf42d72eeb8ef2ef9726586efdb444cd10689260823119edb750626b5536d6012546040516119a591815260200190565b60405180910390a1565b6000546001600160a01b031633146119d95760405162461bcd60e51b8152600401610b5d9061307b565b601480546001600160a01b0319166001600160a01b0383169081179091556040519081527f1f54d231bb9d500b1923e4a1cb25e600f366a8368873d9af7c1c623814df19fc90602001610bf7565b6000546001600160a01b03163314611a515760405162461bcd60e51b8152600401610b5d9061307b565b6001600160a01b038116611ab65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b5d565b610b748161240e565b6000600154821080156109c9575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600a5460ff1615611b6a5760405162461bcd60e51b8152600401610b5d9061316e565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611b9f3390565b6040516001600160a01b0390911681526020016119a5565b600a5460ff16611c005760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610b5d565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611b9f565b6000611c3c82611fb8565b80519091506000906001600160a01b0316336001600160a01b03161480611c6a57508151611c6a90336108ae565b80611c85575033611c7a84610a61565b6001600160a01b0316145b905080611ca557604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611cda5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416611d0157604051633a954ecd60e21b815260040160405180910390fd5b611d116000848460000151611aeb565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116611dfb57600154811015611dfb57825160008281526005602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03166000805160206132c683398151915260405160405180910390a45b5050505050565b6000611e3e82611fb8565b9050611e506000838360000151611aeb565b80516001600160a01b039081166000908152600660209081526040808320805467ffffffffffffffff1981166001600160401b0391821660001901821617909155855185168452818420805467ffffffffffffffff60801b198116600160801b9182900484166001908101851690920217909155865188865260059094528285208054600160e01b9588166001600160e01b031990911617600160a01b42909416939093029290921760ff60e01b1916939093179055908501808352912054909116611f6757600154811015611f6757815160008281526005602090815260409091208054918501516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b50805160405183916000916001600160a01b03909116906000805160206132c6833981519152908390a45050600280546001019055565b610ca2828260405180602001604052806000815250612662565b6040805160608101825260008082526020820181905291810191909152816001548110156120b957600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906120b75780516001600160a01b03161561204e579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156120b2579392505050565b61204e565b505b604051636f96cda160e11b815260040160405180910390fd5b60006001600160a01b0382166120fb576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b0316600090815260066020526040902054600160401b90046001600160401b031690565b826121835760405162461bcd60e51b815260206004820152602660248201527f46616e7a4a6f686e4d6f74736f6e3a2053616c6520686173206e6f74206265676044820152651d5b881e595d60d21b6064820152608401610b5d565b600c54816121946002546001540390565b61219e91906130fd565b11156121bc5760405162461bcd60e51b8152600401610b5d90613115565b6000811180156121ce5750600b548111155b61222a5760405162461bcd60e51b815260206004820152602760248201527f46616e7a4a6f686e4d6f74736f6e3a2052656163686564206d6178206d696e74604482015266040e0cae440e8f60cb1b6064820152608401610b5d565b60105481612237336120d2565b61224191906130fd565b111561228f5760405162461bcd60e51b815260206004820181905260248201527f46616e7a4a6f686e4d6f74736f6e3a2052656163686564206d6178206d696e746044820152606401610b5d565b610b2e61229c82846131f1565b61266f565b60006018547f4dfdc40c587c7b6d3c5c8f9c04c90b899ebfe162f19568448c564b1f42701e936122ce3390565b6040516020016122f19291909182526001600160a01b0316602082015260400190565b6040516020818303038152906040528051906020012060405160200161232e92919061190160f01b81526002810192909252602282015260420190565b60408051601f1981840301815291905280516020909101209050600061235482846126f6565b90506001600160a01b0381161580159061237b57506015546001600160a01b038281169116145b610b2e5760405162461bcd60e51b815260206004820152602160248201527f46616e7a4a6f686e4d6f74736f6e3a20496e76616c6964207369676e617475726044820152606560f81b6064820152608401610b5d565b6013546110e7574360138190556040519081527f952eb00bbe2dfa91f4a29d08691733ae707c4a079e2a4a61cb0609418c7abc40906020016119a5565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612493903390899088908890600401613210565b602060405180830381600087803b1580156124ad57600080fd5b505af19250505080156124dd575060408051601f3d908101601f191682019092526124da9181019061324d565b60015b612538573d80801561250b576040519150601f19603f3d011682016040523d82523d6000602084013e612510565b606091505b508051612530576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060601680546109de90613040565b6060816125895750506040805180820190915260018152600360fc1b602082015290565b8160005b81156125b3578061259d8161326a565b91506125ac9050600a83613285565b915061258d565b6000816001600160401b038111156125cd576125cd612e0c565b6040519080825280601f01601f1916602001820160405280156125f7576020820181803683370190505b5090505b841561254e5761260c600183613157565b9150612619600a866131ae565b6126249060306130fd565b60f81b81838151811061263957612639613299565b60200101906001600160f81b031916908160001a90535061265b600a86613285565b94506125fb565b610b2e838383600161271a565b803410156126b85760405162461bcd60e51b81526020600482015260166024820152752732b2b2103a379039b2b7321036b7b9329022aa241760511b6044820152606401610b5d565b80341115610b7457336108fc6126ce8334613157565b6040518115909202916000818181858888f19350505050158015610ca2573d6000803e3d6000fd5b600080600061270585856128c1565b9150915061271281612931565b509392505050565b6001546001600160a01b03851661274357604051622e076360e81b815260040160405180910390fd5b836127615760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561280d57506001600160a01b0387163b15155b15612884575b60405182906001600160a01b038916906000906000805160206132c6833981519152908290a461284c600088848060010195508861245e565b612869576040516368d2bf6b60e11b815260040160405180910390fd5b8082141561281357826001541461287f57600080fd5b6128b8565b5b6040516001830192906001600160a01b038916906000906000805160206132c6833981519152908290a480821415612885575b50600155611e2c565b6000808251604114156128f85760208301516040840151606085015160001a6128ec87828585612aec565b9450945050505061292a565b8251604014156129225760208301516040840151612917868383612bd9565b93509350505061292a565b506000905060025b9250929050565b6000816004811115612945576129456132af565b141561294e5750565b6001816004811115612962576129626132af565b14156129b05760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b5d565b60028160048111156129c4576129c46132af565b1415612a125760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b5d565b6003816004811115612a2657612a266132af565b1415612a7f5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610b5d565b6004816004811115612a9357612a936132af565b1415610b745760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610b5d565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612b235750600090506003612bd0565b8460ff16601b14158015612b3b57508460ff16601c14155b15612b4c5750600090506004612bd0565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612ba0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612bc957600060019250925050612bd0565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612bfa87828885612aec565b935093505050935093915050565b828054612c1490613040565b90600052602060002090601f016020900481019282612c365760008555612c7c565b82601f10612c4f57805160ff1916838001178555612c7c565b82800160010185558215612c7c579182015b82811115612c7c578251825591602001919060010190612c61565b50612c88929150612c8c565b5090565b5b80821115612c885760008155600101612c8d565b6001600160e01b031981168114610b7457600080fd5b600060208284031215612cc957600080fd5b8135612cd481612ca1565b9392505050565b60005b83811015612cf6578181015183820152602001612cde565b838111156115fd5750506000910152565b60008151808452612d1f816020860160208601612cdb565b601f01601f19169290920160200192915050565b602081526000612cd46020830184612d07565b600060208284031215612d5857600080fd5b5035919050565b80356001600160a01b0381168114612d7657600080fd5b919050565b60008060408385031215612d8e57600080fd5b612d9783612d5f565b946020939093013593505050565b80358015158114612d7657600080fd5b600060208284031215612dc757600080fd5b612cd482612da5565b600080600060608486031215612de557600080fd5b612dee84612d5f565b9250612dfc60208501612d5f565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115612e3c57612e3c612e0c565b604051601f8501601f19908116603f01168101908282118183101715612e6457612e64612e0c565b81604052809350858152868686011115612e7d57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612ea957600080fd5b81356001600160401b03811115612ebf57600080fd5b8201601f81018413612ed057600080fd5b61254e84823560208401612e22565b600082601f830112612ef057600080fd5b612cd483833560208501612e22565b60008060408385031215612f1257600080fd5b8235915060208301356001600160401b03811115612f2f57600080fd5b612f3b85828601612edf565b9150509250929050565b600060208284031215612f5757600080fd5b612cd482612d5f565b60008060408385031215612f7357600080fd5b612f7c83612da5565b9150612f8a60208401612da5565b90509250929050565b60008060408385031215612fa657600080fd5b612f7c83612d5f565b60008060008060808587031215612fc557600080fd5b612fce85612d5f565b9350612fdc60208601612d5f565b92506040850135915060608501356001600160401b03811115612ffe57600080fd5b61300a87828801612edf565b91505092959194509250565b6000806040838503121561302957600080fd5b61303283612d5f565b9150612f8a60208401612d5f565b600181811c9082168061305457607f821691505b6020821081141561307557634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601d908201527f5468652063616c6c657220697320616e6f746865722061646472657373000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115613110576131106130e7565b500190565b60208082526022908201527f46616e7a4a6f686e4d6f74736f6e3a2052656163686564206d617820737570706040820152616c7960f01b606082015260800190565b600082821015613169576131696130e7565b500390565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b634e487b7160e01b600052601260045260246000fd5b6000826131bd576131bd613198565b500690565b600083516131d4818460208801612cdb565b8351908301906131e8818360208801612cdb565b01949350505050565b600081600019048311821515161561320b5761320b6130e7565b500290565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061324390830184612d07565b9695505050505050565b60006020828403121561325f57600080fd5b8151612cd481612ca1565b600060001982141561327e5761327e6130e7565b5060010190565b60008261329457613294613198565b500490565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052602160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122052eecf804222fa81e7b5650ef3847c03f8c7db535e1d56173e4fd068b274e92264736f6c63430008090033
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.