Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
999 THCULTURE
Holders
851
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 THCULTURELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TributeToHypeculture
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/* 2022 TRIBUTE TO HYPE CULTURE by @Whatisayoc A generated Art Collection Paying homage to Online Hype culture, sneakers and NFT's. */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import "erc721a/contracts/ERC721A.sol"; import "erc721a/contracts/extensions/ERC721AQueryable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; //import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Address.sol"; contract TributeToHypeculture is ERC721A, Ownable, ERC721AQueryable, ReentrancyGuard { using SafeMath for uint256; using Strings for uint256; using Address for address; uint256 public MAX_TOKENS = 275; //Tentative uint256 public constant MAX_PER_MINT = 1; //Tentative uint256 private constant maxBatchSize = 1; //Tentative address public withdrawalWallet; address public secondaryToggler; uint256 public price = 0.001 ether; //Tentative bool public isRevealed = false; bool public publicSaleStarted = false; bool public presaleStarted = false; //mapping(address => uint256) private _presaleMints; //uint256 public presaleMaxPerWallet = 1; uint256 public tokensReserved; uint256 public reserveAmount; string private baseURI = ""; bytes32 public merkleRoot; constructor() ERC721A("Tribute to Hype Culture by Yoc", "THCULTURE") { withdrawalWallet = msg.sender; secondaryToggler = msg.sender; } function setWithdrawalWallet(address _nWallet) external onlyOwner { withdrawalWallet = _nWallet; } function setReserveAmount(uint256 amount) public onlyOwner { require(presaleStarted == false); require(publicSaleStarted == false); reserveAmount = amount; } function setMaxTokens(uint256 _maxTokenAmount) public onlyOwner { require(presaleStarted == false); require(publicSaleStarted == false); MAX_TOKENS = _maxTokenAmount; } function setSecondaryToggler(address _secondToggler) external onlyOwner { secondaryToggler = _secondToggler; } // function togglePresaleStarted() external onlyOwner { // presaleStarted = !presaleStarted; // } function togglePublicSaleStarted() external onlyOwner { publicSaleStarted = !publicSaleStarted; } function togglePublicSaleStartedbySecondary() public { require(tx.origin == msg.sender, "Contract can't toggle"); require(msg.sender == secondaryToggler, "Caller must be the secondary toggler."); publicSaleStarted = !publicSaleStarted; } function setBaseURI(string memory _newBaseURI) external onlyOwner { baseURI = _newBaseURI; } // function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner { // merkleRoot = _merkleRoot; // } function setPrice(uint256 _newPrice) external onlyOwner { price = _newPrice; } function toggleReveal() external onlyOwner { isRevealed = !isRevealed; } function _baseURI() internal view override returns (string memory) { return baseURI; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (isRevealed) { return string( abi.encodePacked( baseURI, Strings.toString(tokenId), ".json" ) ); } else { return string( abi.encodePacked( "https://videoincome.s3.ap-southeast-1.amazonaws.com/ode/", "symbol.json" ) ); //Tentative } } /// Set number of maximum presale mints a wallet can have /// @param _newPresaleMaxPerWallet value to set // function setPresaleMaxPerWallet(uint256 _newPresaleMaxPerWallet) // external // onlyOwner // { // presaleMaxPerWallet = _newPresaleMaxPerWallet; // } // function isInWhitelist(bytes32[] memory merkleProof) // public // view // returns (bool) // { // return // MerkleProof.verify( // merkleProof, // merkleRoot, // keccak256(abi.encodePacked(msg.sender)) // ); // } /// Presale mint function /// @param tokens number of tokens to mint /// @param merkleProof Merkle Tree proof /// @dev reverts if any of the presale preconditions aren't satisfied // function mintPresale(uint256 tokens, bytes32[] memory merkleProof) // external // payable // { // require(tx.origin == msg.sender, "Contract can't mint"); // require(presaleStarted, "Presale has not started"); // require( // isInWhitelist(merkleProof), // "You are not eligible for the presale" // ); // require( // _presaleMints[_msgSender()] + tokens <= presaleMaxPerWallet, // "Presale limit for this wallet reached" // ); // require( // tokens <= MAX_PER_MINT, // "Cannot purchase this many tokens in a transaction" // ); // require( // totalSupply() + tokens + reserveAmount - tokensReserved <= // MAX_TOKENS, // "Minting would exceed max supply" // ); // require(tokens > 0, "Must mint at least one token"); // require(price * tokens == msg.value, "ETH amount is incorrect"); // _safeMint(_msgSender(), tokens); // _presaleMints[_msgSender()] += tokens; // } /// Public Sale mint function /// @param tokens number of tokens to mint /// @dev reverts if any of the public sale preconditions aren't satisfied function mint(uint256 tokens) external payable { require(tx.origin == msg.sender, "Contract can't mint"); require(publicSaleStarted, "Public sale has not started"); require( tokens <= MAX_PER_MINT, "Cannot purchase this many tokens in a transaction" ); require( totalSupply() + tokens + reserveAmount - tokensReserved <= MAX_TOKENS, "Minting would exceed max supply" ); require(tokens > 0, "Must mint at least one token"); require(price * tokens == msg.value, "ETH amount is incorrect"); _safeMint(_msgSender(), tokens); } // Reservation mint function for team function reserveMint(address recipient, uint256 amount) external onlyOwner { require(recipient != address(0), "zero address"); require(amount > 0, "invalid amount"); require(totalSupply() + amount <= MAX_TOKENS, "max supply exceeded"); require( tokensReserved + amount <= reserveAmount, "max reserve amount exceeded" ); require( amount % maxBatchSize == 0, "can only mint a multiple of the maxBatchSize" ); uint256 numChunks = amount / maxBatchSize; for (uint256 i = 0; i < numChunks; i++) { _safeMint(recipient, maxBatchSize); } tokensReserved += amount; } // Distribute funds to pool wallet function withdrawAll() public onlyOwner { uint256 balance = address(this).balance; require(balance > 0, "Insufficent balance"); _widthdraw(withdrawalWallet, balance); } function _widthdraw(address _address, uint256 _amount) private { (bool success, ) = _address.call{value: _amount}(""); require(success, "Failed to widthdraw Ether"); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of ERC721AQueryable. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721AQueryable.sol'; import '../ERC721A.sol'; /** * @title ERC721AQueryable. * * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_PER_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"reserveMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"secondaryToggler","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTokenAmount","type":"uint256"}],"name":"setMaxTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setReserveAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_secondToggler","type":"address"}],"name":"setSecondaryToggler","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nWallet","type":"address"}],"name":"setWithdrawalWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePublicSaleStarted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublicSaleStartedbySecondary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleReveal","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensReserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawalWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052610113600a5566038d7ea4c68000600d556000600e60006101000a81548160ff0219169083151502179055506000600e60016101000a81548160ff0219169083151502179055506000600e60026101000a81548160ff02191690831515021790555060405180602001604052806000815250601190805190602001906200008d929190620002d5565b503480156200009b57600080fd5b506040518060400160405280601e81526020017f5472696275746520746f20487970652043756c7475726520627920596f6300008152506040518060400160405280600981526020017f544843554c545552450000000000000000000000000000000000000000000000815250816002908051906020019062000120929190620002d5565b50806003908051906020019062000139929190620002d5565b506200014a6200020260201b60201c565b600081905550505062000172620001666200020760201b60201c565b6200020f60201b60201c565b600160098190555033600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555033600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620003ea565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002e390620003b4565b90600052602060002090601f01602090048101928262000307576000855562000353565b82601f106200032257805160ff191683800117855562000353565b8280016001018555821562000353579182015b828111156200035257825182559160200191906001019062000335565b5b50905062000362919062000366565b5090565b5b808211156200038157600081600090555060010162000367565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620003cd57607f821691505b60208210811415620003e457620003e362000385565b5b50919050565b61453d80620003fa6000396000f3fe6080604052600436106102675760003560e01c8063715018a611610144578063a0712d68116100b6578063c23dc68f1161007a578063c23dc68f146108a1578063c87b56dd146108de578063e985e9c51461091b578063f285da4a14610958578063f2fde38b1461096f578063f47c84c51461099857610267565b8063a0712d68146107ec578063a22cb46514610808578063a2e9147714610831578063b0ea18021461085c578063b88d4fde1461088557610267565b80638c4a3815116101085780638c4a3815146106dc5780638da5cb5b1461070557806391b7f5ed1461073057806395d89b411461075957806399a2557a14610784578063a035b1fe146107c157610267565b8063715018a61461061f57806375796f76146106365780638462151c1461065f578063853828b61461069c5780638c10dbf8146106b357610267565b80632f814575116101dd57806354214f69116101a157806354214f69146104fd57806355f804b3146105285780635b8ad429146105515780635bbb2177146105685780636352211e146105a557806370a08231146105e257610267565b80632f8145751461044957806342842e0e14610460578063433adb051461047c5780634a7d80b3146104a75780634b09b72a146104d257610267565b806309d42b301161022f57806309d42b301461035857806311e776fe1461038357806316563ef8146103ac57806318160ddd146103d757806323b872dd146104025780632eb4a7ab1461041e57610267565b806301ffc9a71461026c57806304549d6f146102a957806306fdde03146102d4578063081812fc146102ff578063095ea7b31461033c575b600080fd5b34801561027857600080fd5b50610293600480360381019061028e9190612d2a565b6109c3565b6040516102a09190612d72565b60405180910390f35b3480156102b557600080fd5b506102be610a55565b6040516102cb9190612d72565b60405180910390f35b3480156102e057600080fd5b506102e9610a68565b6040516102f69190612e26565b60405180910390f35b34801561030b57600080fd5b5061032660048036038101906103219190612e7e565b610afa565b6040516103339190612eec565b60405180910390f35b61035660048036038101906103519190612f33565b610b79565b005b34801561036457600080fd5b5061036d610cbd565b60405161037a9190612f82565b60405180910390f35b34801561038f57600080fd5b506103aa60048036038101906103a59190612e7e565b610cc2565b005b3480156103b857600080fd5b506103c1610d14565b6040516103ce9190612eec565b60405180910390f35b3480156103e357600080fd5b506103ec610d3a565b6040516103f99190612f82565b60405180910390f35b61041c60048036038101906104179190612f9d565b610d51565b005b34801561042a57600080fd5b50610433611076565b6040516104409190613009565b60405180910390f35b34801561045557600080fd5b5061045e61107c565b005b61047a60048036038101906104759190612f9d565b6110b0565b005b34801561048857600080fd5b506104916110d0565b60405161049e9190612f82565b60405180910390f35b3480156104b357600080fd5b506104bc6110d6565b6040516104c99190612eec565b60405180910390f35b3480156104de57600080fd5b506104e76110fc565b6040516104f49190612f82565b60405180910390f35b34801561050957600080fd5b50610512611102565b60405161051f9190612d72565b60405180910390f35b34801561053457600080fd5b5061054f600480360381019061054a9190613159565b611115565b005b34801561055d57600080fd5b50610566611137565b005b34801561057457600080fd5b5061058f600480360381019061058a9190613202565b61116b565b60405161059c91906133b2565b60405180910390f35b3480156105b157600080fd5b506105cc60048036038101906105c79190612e7e565b61122e565b6040516105d99190612eec565b60405180910390f35b3480156105ee57600080fd5b50610609600480360381019061060491906133d4565b611240565b6040516106169190612f82565b60405180910390f35b34801561062b57600080fd5b506106346112f9565b005b34801561064257600080fd5b5061065d600480360381019061065891906133d4565b61130d565b005b34801561066b57600080fd5b50610686600480360381019061068191906133d4565b611359565b60405161069391906134bf565b60405180910390f35b3480156106a857600080fd5b506106b16114a3565b005b3480156106bf57600080fd5b506106da60048036038101906106d591906133d4565b611522565b005b3480156106e857600080fd5b5061070360048036038101906106fe9190612e7e565b61156e565b005b34801561071157600080fd5b5061071a6115c0565b6040516107279190612eec565b60405180910390f35b34801561073c57600080fd5b5061075760048036038101906107529190612e7e565b6115ea565b005b34801561076557600080fd5b5061076e6115fc565b60405161077b9190612e26565b60405180910390f35b34801561079057600080fd5b506107ab60048036038101906107a691906134e1565b61168e565b6040516107b891906134bf565b60405180910390f35b3480156107cd57600080fd5b506107d66118a2565b6040516107e39190612f82565b60405180910390f35b61080660048036038101906108019190612e7e565b6118a8565b005b34801561081457600080fd5b5061082f600480360381019061082a9190613560565b611ac0565b005b34801561083d57600080fd5b50610846611bcb565b6040516108539190612d72565b60405180910390f35b34801561086857600080fd5b50610883600480360381019061087e9190612f33565b611bde565b005b61089f600480360381019061089a9190613641565b611dea565b005b3480156108ad57600080fd5b506108c860048036038101906108c39190612e7e565b611e5d565b6040516108d59190613719565b60405180910390f35b3480156108ea57600080fd5b5061090560048036038101906109009190612e7e565b611ec7565b6040516109129190612e26565b60405180910390f35b34801561092757600080fd5b50610942600480360381019061093d9190613734565b611f36565b60405161094f9190612d72565b60405180910390f35b34801561096457600080fd5b5061096d611fca565b005b34801561097b57600080fd5b50610996600480360381019061099191906133d4565b6120f4565b005b3480156109a457600080fd5b506109ad612178565b6040516109ba9190612f82565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a1e57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a4e5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600e60029054906101000a900460ff1681565b606060028054610a77906137a3565b80601f0160208091040260200160405190810160405280929190818152602001828054610aa3906137a3565b8015610af05780601f10610ac557610100808354040283529160200191610af0565b820191906000526020600020905b815481529060010190602001808311610ad357829003601f168201915b5050505050905090565b6000610b058261217e565b610b3b576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b848261122e565b90508073ffffffffffffffffffffffffffffffffffffffff16610ba56121dd565b73ffffffffffffffffffffffffffffffffffffffff1614610c0857610bd181610bcc6121dd565b611f36565b610c07576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600181565b610cca6121e5565b60001515600e60029054906101000a900460ff16151514610cea57600080fd5b60001515600e60019054906101000a900460ff16151514610d0a57600080fd5b80600a8190555050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610d44612263565b6001546000540303905090565b6000610d5c82612268565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610dc3576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610dcf84612336565b91509150610de58187610de06121dd565b61235d565b610e3157610dfa86610df56121dd565b611f36565b610e30576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610e98576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ea586868660016123a1565b8015610eb057600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610f7e85610f5a8888876123a7565b7c0200000000000000000000000000000000000000000000000000000000176123cf565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415611006576000600185019050600060046000838152602001908152602001600020541415611004576000548114611003578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461106e86868660016123fa565b505050505050565b60125481565b6110846121e5565b600e60019054906101000a900460ff1615600e60016101000a81548160ff021916908315150217905550565b6110cb83838360405180602001604052806000815250611dea565b505050565b600f5481565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60105481565b600e60009054906101000a900460ff1681565b61111d6121e5565b8060119080519060200190611133929190612bcc565b5050565b61113f6121e5565b600e60009054906101000a900460ff1615600e60006101000a81548160ff021916908315150217905550565b6060600083839050905060008167ffffffffffffffff8111156111915761119061302e565b5b6040519080825280602002602001820160405280156111ca57816020015b6111b7612c52565b8152602001906001900390816111af5790505b50905060005b828114611222576111f98686838181106111ed576111ec6137d5565b5b90506020020135611e5d565b82828151811061120c5761120b6137d5565b5b60200260200101819052508060010190506111d0565b50809250505092915050565b600061123982612268565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156112a8576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6113016121e5565b61130b6000612400565b565b6113156121e5565b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060600080600061136985611240565b905060008167ffffffffffffffff8111156113875761138661302e565b5b6040519080825280602002602001820160405280156113b55781602001602082028036833780820191505090505b5090506113c0612c52565b60006113ca612263565b90505b838614611495576113dd816124c6565b91508160400151156113ee5761148a565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461142e57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611489578083878060010198508151811061147c5761147b6137d5565b5b6020026020010181815250505b5b8060010190506113cd565b508195505050505050919050565b6114ab6121e5565b6000479050600081116114f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ea90613850565b60405180910390fd5b61151f600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826124f1565b50565b61152a6121e5565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6115766121e5565b60001515600e60029054906101000a900460ff1615151461159657600080fd5b60001515600e60019054906101000a900460ff161515146115b657600080fd5b8060108190555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6115f26121e5565b80600d8190555050565b60606003805461160b906137a3565b80601f0160208091040260200160405190810160405280929190818152602001828054611637906137a3565b80156116845780601f1061165957610100808354040283529160200191611684565b820191906000526020600020905b81548152906001019060200180831161166757829003601f168201915b5050505050905090565b60608183106116c9576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806116d46125a2565b90506116de612263565b8510156116f0576116ed612263565b94505b808411156116fc578093505b600061170787611240565b90508486101561172a576000868603905081811015611724578091505b5061172f565b600090505b60008167ffffffffffffffff81111561174b5761174a61302e565b5b6040519080825280602002602001820160405280156117795781602001602082028036833780820191505090505b5090506000821415611791578094505050505061189b565b600061179c88611e5d565b9050600081604001516117b157816000015190505b60008990505b8881141580156117c75750848714155b1561188d576117d5816124c6565b92508260400151156117e657611882565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff161461182657826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118815780848880600101995081518110611874576118736137d5565b5b6020026020010181815250505b5b8060010190506117b7565b508583528296505050505050505b9392505050565b600d5481565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611916576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190d906138bc565b60405180910390fd5b600e60019054906101000a900460ff16611965576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195c90613928565b60405180910390fd5b60018111156119a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119a0906139ba565b60405180910390fd5b600a54600f54601054836119bb610d3a565b6119c59190613a09565b6119cf9190613a09565b6119d99190613a5f565b1115611a1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1190613adf565b60405180910390fd5b60008111611a5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5490613b4b565b60405180910390fd5b3481600d54611a6c9190613b6b565b14611aac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa390613c11565b60405180910390fd5b611abd611ab76125ab565b826125b3565b50565b8060076000611acd6121dd565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b7a6121dd565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611bbf9190612d72565b60405180910390a35050565b600e60019054906101000a900460ff1681565b611be66121e5565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4d90613c7d565b60405180910390fd5b60008111611c99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9090613ce9565b60405180910390fd5b600a5481611ca5610d3a565b611caf9190613a09565b1115611cf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce790613d55565b60405180910390fd5b60105481600f54611d019190613a09565b1115611d42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3990613dc1565b60405180910390fd5b6000600182611d519190613e10565b14611d91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8890613eb3565b60405180910390fd5b6000600182611da09190613ed3565b905060005b81811015611dcb57611db88460016125b3565b8080611dc390613f04565b915050611da5565b5081600f6000828254611dde9190613a09565b92505081905550505050565b611df5848484610d51565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611e5757611e20848484846125d1565b611e56576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b611e65612c52565b611e6d612c52565b611e75612263565b831080611e895750611e856125a2565b8310155b15611e975780915050611ec2565b611ea0836124c6565b9050806040015115611eb55780915050611ec2565b611ebe83612722565b9150505b919050565b6060600e60009054906101000a900460ff1615611f10576011611ee983612742565b604051602001611efa929190614069565b6040516020818303038152906040529050611f31565b604051602001611f1f90614156565b60405160208183030381529060405290505b919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614612038576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202f906141c2565b60405180910390fd5b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146120c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120bf90614254565b60405180910390fd5b600e60019054906101000a900460ff1615600e60016101000a81548160ff021916908315150217905550565b6120fc6121e5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561216c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612163906142e6565b60405180910390fd5b61217581612400565b50565b600a5481565b600081612189612263565b11158015612198575060005482105b80156121d6575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b6121ed6125ab565b73ffffffffffffffffffffffffffffffffffffffff1661220b6115c0565b73ffffffffffffffffffffffffffffffffffffffff1614612261576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225890614352565b60405180910390fd5b565b600090565b60008082905080612277612263565b116122ff576000548110156122fe5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821614156122fc575b60008114156122f25760046000836001900393508381526020019081526020016000205490506122c7565b8092505050612331565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86123be8686846128a3565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6124ce612c52565b6124ea60046000848152602001908152602001600020546128ac565b9050919050565b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612517906143a3565b60006040518083038185875af1925050503d8060008114612554576040519150601f19603f3d011682016040523d82523d6000602084013e612559565b606091505b505090508061259d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161259490614404565b60405180910390fd5b505050565b60008054905090565b600033905090565b6125cd828260405180602001604052806000815250612962565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026125f76121dd565b8786866040518563ffffffff1660e01b81526004016126199493929190614479565b6020604051808303816000875af192505050801561265557506040513d601f19601f8201168201806040525081019061265291906144da565b60015b6126cf573d8060008114612685576040519150601f19603f3d011682016040523d82523d6000602084013e61268a565b606091505b506000815114156126c7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b61272a612c52565b61273b61273683612268565b6128ac565b9050919050565b6060600082141561278a576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061289e565b600082905060005b600082146127bc5780806127a590613f04565b915050600a826127b59190613ed3565b9150612792565b60008167ffffffffffffffff8111156127d8576127d761302e565b5b6040519080825280601f01601f19166020018201604052801561280a5781602001600182028036833780820191505090505b5090505b60008514612897576001826128239190613a5f565b9150600a856128329190613e10565b603061283e9190613a09565b60f81b818381518110612854576128536137d5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856128909190613ed3565b945061280e565b8093505050505b919050565b60009392505050565b6128b4612c52565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b61296c83836129ff565b60008373ffffffffffffffffffffffffffffffffffffffff163b146129fa57600080549050600083820390505b6129ac60008683806001019450866125d1565b6129e2576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106129995781600054146129f757600080fd5b50505b505050565b6000805490506000821415612a40576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612a4d60008483856123a1565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612ac483612ab560008660006123a7565b612abe85612bbc565b176123cf565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612b6557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612b2a565b506000821415612ba1576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050612bb760008483856123fa565b505050565b60006001821460e11b9050919050565b828054612bd8906137a3565b90600052602060002090601f016020900481019282612bfa5760008555612c41565b82601f10612c1357805160ff1916838001178555612c41565b82800160010185558215612c41579182015b82811115612c40578251825591602001919060010190612c25565b5b509050612c4e9190612ca1565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b80821115612cba576000816000905550600101612ca2565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612d0781612cd2565b8114612d1257600080fd5b50565b600081359050612d2481612cfe565b92915050565b600060208284031215612d4057612d3f612cc8565b5b6000612d4e84828501612d15565b91505092915050565b60008115159050919050565b612d6c81612d57565b82525050565b6000602082019050612d876000830184612d63565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612dc7578082015181840152602081019050612dac565b83811115612dd6576000848401525b50505050565b6000601f19601f8301169050919050565b6000612df882612d8d565b612e028185612d98565b9350612e12818560208601612da9565b612e1b81612ddc565b840191505092915050565b60006020820190508181036000830152612e408184612ded565b905092915050565b6000819050919050565b612e5b81612e48565b8114612e6657600080fd5b50565b600081359050612e7881612e52565b92915050565b600060208284031215612e9457612e93612cc8565b5b6000612ea284828501612e69565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612ed682612eab565b9050919050565b612ee681612ecb565b82525050565b6000602082019050612f016000830184612edd565b92915050565b612f1081612ecb565b8114612f1b57600080fd5b50565b600081359050612f2d81612f07565b92915050565b60008060408385031215612f4a57612f49612cc8565b5b6000612f5885828601612f1e565b9250506020612f6985828601612e69565b9150509250929050565b612f7c81612e48565b82525050565b6000602082019050612f976000830184612f73565b92915050565b600080600060608486031215612fb657612fb5612cc8565b5b6000612fc486828701612f1e565b9350506020612fd586828701612f1e565b9250506040612fe686828701612e69565b9150509250925092565b6000819050919050565b61300381612ff0565b82525050565b600060208201905061301e6000830184612ffa565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61306682612ddc565b810181811067ffffffffffffffff821117156130855761308461302e565b5b80604052505050565b6000613098612cbe565b90506130a4828261305d565b919050565b600067ffffffffffffffff8211156130c4576130c361302e565b5b6130cd82612ddc565b9050602081019050919050565b82818337600083830152505050565b60006130fc6130f7846130a9565b61308e565b90508281526020810184848401111561311857613117613029565b5b6131238482856130da565b509392505050565b600082601f8301126131405761313f613024565b5b81356131508482602086016130e9565b91505092915050565b60006020828403121561316f5761316e612cc8565b5b600082013567ffffffffffffffff81111561318d5761318c612ccd565b5b6131998482850161312b565b91505092915050565b600080fd5b600080fd5b60008083601f8401126131c2576131c1613024565b5b8235905067ffffffffffffffff8111156131df576131de6131a2565b5b6020830191508360208202830111156131fb576131fa6131a7565b5b9250929050565b6000806020838503121561321957613218612cc8565b5b600083013567ffffffffffffffff81111561323757613236612ccd565b5b613243858286016131ac565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61328481612ecb565b82525050565b600067ffffffffffffffff82169050919050565b6132a78161328a565b82525050565b6132b681612d57565b82525050565b600062ffffff82169050919050565b6132d4816132bc565b82525050565b6080820160008201516132f0600085018261327b565b506020820151613303602085018261329e565b50604082015161331660408501826132ad565b50606082015161332960608501826132cb565b50505050565b600061333b83836132da565b60808301905092915050565b6000602082019050919050565b600061335f8261324f565b613369818561325a565b93506133748361326b565b8060005b838110156133a557815161338c888261332f565b975061339783613347565b925050600181019050613378565b5085935050505092915050565b600060208201905081810360008301526133cc8184613354565b905092915050565b6000602082840312156133ea576133e9612cc8565b5b60006133f884828501612f1e565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61343681612e48565b82525050565b6000613448838361342d565b60208301905092915050565b6000602082019050919050565b600061346c82613401565b613476818561340c565b93506134818361341d565b8060005b838110156134b2578151613499888261343c565b97506134a483613454565b925050600181019050613485565b5085935050505092915050565b600060208201905081810360008301526134d98184613461565b905092915050565b6000806000606084860312156134fa576134f9612cc8565b5b600061350886828701612f1e565b935050602061351986828701612e69565b925050604061352a86828701612e69565b9150509250925092565b61353d81612d57565b811461354857600080fd5b50565b60008135905061355a81613534565b92915050565b6000806040838503121561357757613576612cc8565b5b600061358585828601612f1e565b92505060206135968582860161354b565b9150509250929050565b600067ffffffffffffffff8211156135bb576135ba61302e565b5b6135c482612ddc565b9050602081019050919050565b60006135e46135df846135a0565b61308e565b905082815260208101848484011115613600576135ff613029565b5b61360b8482856130da565b509392505050565b600082601f83011261362857613627613024565b5b81356136388482602086016135d1565b91505092915050565b6000806000806080858703121561365b5761365a612cc8565b5b600061366987828801612f1e565b945050602061367a87828801612f1e565b935050604061368b87828801612e69565b925050606085013567ffffffffffffffff8111156136ac576136ab612ccd565b5b6136b887828801613613565b91505092959194509250565b6080820160008201516136da600085018261327b565b5060208201516136ed602085018261329e565b50604082015161370060408501826132ad565b50606082015161371360608501826132cb565b50505050565b600060808201905061372e60008301846136c4565b92915050565b6000806040838503121561374b5761374a612cc8565b5b600061375985828601612f1e565b925050602061376a85828601612f1e565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806137bb57607f821691505b602082108114156137cf576137ce613774565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f496e737566666963656e742062616c616e636500000000000000000000000000600082015250565b600061383a601383612d98565b915061384582613804565b602082019050919050565b600060208201905081810360008301526138698161382d565b9050919050565b7f436f6e74726163742063616e2774206d696e7400000000000000000000000000600082015250565b60006138a6601383612d98565b91506138b182613870565b602082019050919050565b600060208201905081810360008301526138d581613899565b9050919050565b7f5075626c69632073616c6520686173206e6f7420737461727465640000000000600082015250565b6000613912601b83612d98565b915061391d826138dc565b602082019050919050565b6000602082019050818103600083015261394181613905565b9050919050565b7f43616e6e6f742070757263686173652074686973206d616e7920746f6b656e7360008201527f20696e2061207472616e73616374696f6e000000000000000000000000000000602082015250565b60006139a4603183612d98565b91506139af82613948565b604082019050919050565b600060208201905081810360008301526139d381613997565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613a1482612e48565b9150613a1f83612e48565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613a5457613a536139da565b5b828201905092915050565b6000613a6a82612e48565b9150613a7583612e48565b925082821015613a8857613a876139da565b5b828203905092915050565b7f4d696e74696e6720776f756c6420657863656564206d617820737570706c7900600082015250565b6000613ac9601f83612d98565b9150613ad482613a93565b602082019050919050565b60006020820190508181036000830152613af881613abc565b9050919050565b7f4d757374206d696e74206174206c65617374206f6e6520746f6b656e00000000600082015250565b6000613b35601c83612d98565b9150613b4082613aff565b602082019050919050565b60006020820190508181036000830152613b6481613b28565b9050919050565b6000613b7682612e48565b9150613b8183612e48565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613bba57613bb96139da565b5b828202905092915050565b7f45544820616d6f756e7420697320696e636f7272656374000000000000000000600082015250565b6000613bfb601783612d98565b9150613c0682613bc5565b602082019050919050565b60006020820190508181036000830152613c2a81613bee565b9050919050565b7f7a65726f20616464726573730000000000000000000000000000000000000000600082015250565b6000613c67600c83612d98565b9150613c7282613c31565b602082019050919050565b60006020820190508181036000830152613c9681613c5a565b9050919050565b7f696e76616c696420616d6f756e74000000000000000000000000000000000000600082015250565b6000613cd3600e83612d98565b9150613cde82613c9d565b602082019050919050565b60006020820190508181036000830152613d0281613cc6565b9050919050565b7f6d617820737570706c7920657863656564656400000000000000000000000000600082015250565b6000613d3f601383612d98565b9150613d4a82613d09565b602082019050919050565b60006020820190508181036000830152613d6e81613d32565b9050919050565b7f6d6178207265736572766520616d6f756e742065786365656465640000000000600082015250565b6000613dab601b83612d98565b9150613db682613d75565b602082019050919050565b60006020820190508181036000830152613dda81613d9e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613e1b82612e48565b9150613e2683612e48565b925082613e3657613e35613de1565b5b828206905092915050565b7f63616e206f6e6c79206d696e742061206d756c7469706c65206f66207468652060008201527f6d6178426174636853697a650000000000000000000000000000000000000000602082015250565b6000613e9d602c83612d98565b9150613ea882613e41565b604082019050919050565b60006020820190508181036000830152613ecc81613e90565b9050919050565b6000613ede82612e48565b9150613ee983612e48565b925082613ef957613ef8613de1565b5b828204905092915050565b6000613f0f82612e48565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613f4257613f416139da565b5b600182019050919050565b600081905092915050565b60008190508160005260206000209050919050565b60008154613f7a816137a3565b613f848186613f4d565b94506001821660008114613f9f5760018114613fb057613fe3565b60ff19831686528186019350613fe3565b613fb985613f58565b60005b83811015613fdb57815481890152600182019150602081019050613fbc565b838801955050505b50505092915050565b6000613ff782612d8d565b6140018185613f4d565b9350614011818560208601612da9565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614053600583613f4d565b915061405e8261401d565b600582019050919050565b60006140758285613f6d565b91506140818284613fec565b915061408c82614046565b91508190509392505050565b7f68747470733a2f2f766964656f696e636f6d652e73332e61702d736f7574686560008201527f6173742d312e616d617a6f6e6177732e636f6d2f6f64652f0000000000000000602082015250565b60006140f4603883613f4d565b91506140ff82614098565b603882019050919050565b7f73796d626f6c2e6a736f6e000000000000000000000000000000000000000000600082015250565b6000614140600b83613f4d565b915061414b8261410a565b600b82019050919050565b6000614161826140e7565b915061416c82614133565b9150819050919050565b7f436f6e74726163742063616e277420746f67676c650000000000000000000000600082015250565b60006141ac601583612d98565b91506141b782614176565b602082019050919050565b600060208201905081810360008301526141db8161419f565b9050919050565b7f43616c6c6572206d75737420626520746865207365636f6e6461727920746f6760008201527f676c65722e000000000000000000000000000000000000000000000000000000602082015250565b600061423e602583612d98565b9150614249826141e2565b604082019050919050565b6000602082019050818103600083015261426d81614231565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006142d0602683612d98565b91506142db82614274565b604082019050919050565b600060208201905081810360008301526142ff816142c3565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061433c602083612d98565b915061434782614306565b602082019050919050565b6000602082019050818103600083015261436b8161432f565b9050919050565b600081905092915050565b50565b600061438d600083614372565b91506143988261437d565b600082019050919050565b60006143ae82614380565b9150819050919050565b7f4661696c656420746f2077696474686472617720457468657200000000000000600082015250565b60006143ee601983612d98565b91506143f9826143b8565b602082019050919050565b6000602082019050818103600083015261441d816143e1565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061444b82614424565b614455818561442f565b9350614465818560208601612da9565b61446e81612ddc565b840191505092915050565b600060808201905061448e6000830187612edd565b61449b6020830186612edd565b6144a86040830185612f73565b81810360608301526144ba8184614440565b905095945050505050565b6000815190506144d481612cfe565b92915050565b6000602082840312156144f0576144ef612cc8565b5b60006144fe848285016144c5565b9150509291505056fea2646970667358221220e4f0ed1fd21a83048cded9882ead3d9d005eb58eb9d4b68bc495e5265488a9f764736f6c634300080a0033
Deployed Bytecode
0x6080604052600436106102675760003560e01c8063715018a611610144578063a0712d68116100b6578063c23dc68f1161007a578063c23dc68f146108a1578063c87b56dd146108de578063e985e9c51461091b578063f285da4a14610958578063f2fde38b1461096f578063f47c84c51461099857610267565b8063a0712d68146107ec578063a22cb46514610808578063a2e9147714610831578063b0ea18021461085c578063b88d4fde1461088557610267565b80638c4a3815116101085780638c4a3815146106dc5780638da5cb5b1461070557806391b7f5ed1461073057806395d89b411461075957806399a2557a14610784578063a035b1fe146107c157610267565b8063715018a61461061f57806375796f76146106365780638462151c1461065f578063853828b61461069c5780638c10dbf8146106b357610267565b80632f814575116101dd57806354214f69116101a157806354214f69146104fd57806355f804b3146105285780635b8ad429146105515780635bbb2177146105685780636352211e146105a557806370a08231146105e257610267565b80632f8145751461044957806342842e0e14610460578063433adb051461047c5780634a7d80b3146104a75780634b09b72a146104d257610267565b806309d42b301161022f57806309d42b301461035857806311e776fe1461038357806316563ef8146103ac57806318160ddd146103d757806323b872dd146104025780632eb4a7ab1461041e57610267565b806301ffc9a71461026c57806304549d6f146102a957806306fdde03146102d4578063081812fc146102ff578063095ea7b31461033c575b600080fd5b34801561027857600080fd5b50610293600480360381019061028e9190612d2a565b6109c3565b6040516102a09190612d72565b60405180910390f35b3480156102b557600080fd5b506102be610a55565b6040516102cb9190612d72565b60405180910390f35b3480156102e057600080fd5b506102e9610a68565b6040516102f69190612e26565b60405180910390f35b34801561030b57600080fd5b5061032660048036038101906103219190612e7e565b610afa565b6040516103339190612eec565b60405180910390f35b61035660048036038101906103519190612f33565b610b79565b005b34801561036457600080fd5b5061036d610cbd565b60405161037a9190612f82565b60405180910390f35b34801561038f57600080fd5b506103aa60048036038101906103a59190612e7e565b610cc2565b005b3480156103b857600080fd5b506103c1610d14565b6040516103ce9190612eec565b60405180910390f35b3480156103e357600080fd5b506103ec610d3a565b6040516103f99190612f82565b60405180910390f35b61041c60048036038101906104179190612f9d565b610d51565b005b34801561042a57600080fd5b50610433611076565b6040516104409190613009565b60405180910390f35b34801561045557600080fd5b5061045e61107c565b005b61047a60048036038101906104759190612f9d565b6110b0565b005b34801561048857600080fd5b506104916110d0565b60405161049e9190612f82565b60405180910390f35b3480156104b357600080fd5b506104bc6110d6565b6040516104c99190612eec565b60405180910390f35b3480156104de57600080fd5b506104e76110fc565b6040516104f49190612f82565b60405180910390f35b34801561050957600080fd5b50610512611102565b60405161051f9190612d72565b60405180910390f35b34801561053457600080fd5b5061054f600480360381019061054a9190613159565b611115565b005b34801561055d57600080fd5b50610566611137565b005b34801561057457600080fd5b5061058f600480360381019061058a9190613202565b61116b565b60405161059c91906133b2565b60405180910390f35b3480156105b157600080fd5b506105cc60048036038101906105c79190612e7e565b61122e565b6040516105d99190612eec565b60405180910390f35b3480156105ee57600080fd5b50610609600480360381019061060491906133d4565b611240565b6040516106169190612f82565b60405180910390f35b34801561062b57600080fd5b506106346112f9565b005b34801561064257600080fd5b5061065d600480360381019061065891906133d4565b61130d565b005b34801561066b57600080fd5b50610686600480360381019061068191906133d4565b611359565b60405161069391906134bf565b60405180910390f35b3480156106a857600080fd5b506106b16114a3565b005b3480156106bf57600080fd5b506106da60048036038101906106d591906133d4565b611522565b005b3480156106e857600080fd5b5061070360048036038101906106fe9190612e7e565b61156e565b005b34801561071157600080fd5b5061071a6115c0565b6040516107279190612eec565b60405180910390f35b34801561073c57600080fd5b5061075760048036038101906107529190612e7e565b6115ea565b005b34801561076557600080fd5b5061076e6115fc565b60405161077b9190612e26565b60405180910390f35b34801561079057600080fd5b506107ab60048036038101906107a691906134e1565b61168e565b6040516107b891906134bf565b60405180910390f35b3480156107cd57600080fd5b506107d66118a2565b6040516107e39190612f82565b60405180910390f35b61080660048036038101906108019190612e7e565b6118a8565b005b34801561081457600080fd5b5061082f600480360381019061082a9190613560565b611ac0565b005b34801561083d57600080fd5b50610846611bcb565b6040516108539190612d72565b60405180910390f35b34801561086857600080fd5b50610883600480360381019061087e9190612f33565b611bde565b005b61089f600480360381019061089a9190613641565b611dea565b005b3480156108ad57600080fd5b506108c860048036038101906108c39190612e7e565b611e5d565b6040516108d59190613719565b60405180910390f35b3480156108ea57600080fd5b5061090560048036038101906109009190612e7e565b611ec7565b6040516109129190612e26565b60405180910390f35b34801561092757600080fd5b50610942600480360381019061093d9190613734565b611f36565b60405161094f9190612d72565b60405180910390f35b34801561096457600080fd5b5061096d611fca565b005b34801561097b57600080fd5b50610996600480360381019061099191906133d4565b6120f4565b005b3480156109a457600080fd5b506109ad612178565b6040516109ba9190612f82565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a1e57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a4e5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600e60029054906101000a900460ff1681565b606060028054610a77906137a3565b80601f0160208091040260200160405190810160405280929190818152602001828054610aa3906137a3565b8015610af05780601f10610ac557610100808354040283529160200191610af0565b820191906000526020600020905b815481529060010190602001808311610ad357829003601f168201915b5050505050905090565b6000610b058261217e565b610b3b576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b848261122e565b90508073ffffffffffffffffffffffffffffffffffffffff16610ba56121dd565b73ffffffffffffffffffffffffffffffffffffffff1614610c0857610bd181610bcc6121dd565b611f36565b610c07576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600181565b610cca6121e5565b60001515600e60029054906101000a900460ff16151514610cea57600080fd5b60001515600e60019054906101000a900460ff16151514610d0a57600080fd5b80600a8190555050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610d44612263565b6001546000540303905090565b6000610d5c82612268565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610dc3576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610dcf84612336565b91509150610de58187610de06121dd565b61235d565b610e3157610dfa86610df56121dd565b611f36565b610e30576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610e98576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ea586868660016123a1565b8015610eb057600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610f7e85610f5a8888876123a7565b7c0200000000000000000000000000000000000000000000000000000000176123cf565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415611006576000600185019050600060046000838152602001908152602001600020541415611004576000548114611003578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461106e86868660016123fa565b505050505050565b60125481565b6110846121e5565b600e60019054906101000a900460ff1615600e60016101000a81548160ff021916908315150217905550565b6110cb83838360405180602001604052806000815250611dea565b505050565b600f5481565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60105481565b600e60009054906101000a900460ff1681565b61111d6121e5565b8060119080519060200190611133929190612bcc565b5050565b61113f6121e5565b600e60009054906101000a900460ff1615600e60006101000a81548160ff021916908315150217905550565b6060600083839050905060008167ffffffffffffffff8111156111915761119061302e565b5b6040519080825280602002602001820160405280156111ca57816020015b6111b7612c52565b8152602001906001900390816111af5790505b50905060005b828114611222576111f98686838181106111ed576111ec6137d5565b5b90506020020135611e5d565b82828151811061120c5761120b6137d5565b5b60200260200101819052508060010190506111d0565b50809250505092915050565b600061123982612268565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156112a8576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6113016121e5565b61130b6000612400565b565b6113156121e5565b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060600080600061136985611240565b905060008167ffffffffffffffff8111156113875761138661302e565b5b6040519080825280602002602001820160405280156113b55781602001602082028036833780820191505090505b5090506113c0612c52565b60006113ca612263565b90505b838614611495576113dd816124c6565b91508160400151156113ee5761148a565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461142e57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611489578083878060010198508151811061147c5761147b6137d5565b5b6020026020010181815250505b5b8060010190506113cd565b508195505050505050919050565b6114ab6121e5565b6000479050600081116114f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ea90613850565b60405180910390fd5b61151f600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826124f1565b50565b61152a6121e5565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6115766121e5565b60001515600e60029054906101000a900460ff1615151461159657600080fd5b60001515600e60019054906101000a900460ff161515146115b657600080fd5b8060108190555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6115f26121e5565b80600d8190555050565b60606003805461160b906137a3565b80601f0160208091040260200160405190810160405280929190818152602001828054611637906137a3565b80156116845780601f1061165957610100808354040283529160200191611684565b820191906000526020600020905b81548152906001019060200180831161166757829003601f168201915b5050505050905090565b60608183106116c9576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806116d46125a2565b90506116de612263565b8510156116f0576116ed612263565b94505b808411156116fc578093505b600061170787611240565b90508486101561172a576000868603905081811015611724578091505b5061172f565b600090505b60008167ffffffffffffffff81111561174b5761174a61302e565b5b6040519080825280602002602001820160405280156117795781602001602082028036833780820191505090505b5090506000821415611791578094505050505061189b565b600061179c88611e5d565b9050600081604001516117b157816000015190505b60008990505b8881141580156117c75750848714155b1561188d576117d5816124c6565b92508260400151156117e657611882565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff161461182657826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118815780848880600101995081518110611874576118736137d5565b5b6020026020010181815250505b5b8060010190506117b7565b508583528296505050505050505b9392505050565b600d5481565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611916576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190d906138bc565b60405180910390fd5b600e60019054906101000a900460ff16611965576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195c90613928565b60405180910390fd5b60018111156119a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119a0906139ba565b60405180910390fd5b600a54600f54601054836119bb610d3a565b6119c59190613a09565b6119cf9190613a09565b6119d99190613a5f565b1115611a1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1190613adf565b60405180910390fd5b60008111611a5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5490613b4b565b60405180910390fd5b3481600d54611a6c9190613b6b565b14611aac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa390613c11565b60405180910390fd5b611abd611ab76125ab565b826125b3565b50565b8060076000611acd6121dd565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b7a6121dd565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611bbf9190612d72565b60405180910390a35050565b600e60019054906101000a900460ff1681565b611be66121e5565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4d90613c7d565b60405180910390fd5b60008111611c99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9090613ce9565b60405180910390fd5b600a5481611ca5610d3a565b611caf9190613a09565b1115611cf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce790613d55565b60405180910390fd5b60105481600f54611d019190613a09565b1115611d42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3990613dc1565b60405180910390fd5b6000600182611d519190613e10565b14611d91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8890613eb3565b60405180910390fd5b6000600182611da09190613ed3565b905060005b81811015611dcb57611db88460016125b3565b8080611dc390613f04565b915050611da5565b5081600f6000828254611dde9190613a09565b92505081905550505050565b611df5848484610d51565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611e5757611e20848484846125d1565b611e56576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b611e65612c52565b611e6d612c52565b611e75612263565b831080611e895750611e856125a2565b8310155b15611e975780915050611ec2565b611ea0836124c6565b9050806040015115611eb55780915050611ec2565b611ebe83612722565b9150505b919050565b6060600e60009054906101000a900460ff1615611f10576011611ee983612742565b604051602001611efa929190614069565b6040516020818303038152906040529050611f31565b604051602001611f1f90614156565b60405160208183030381529060405290505b919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614612038576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202f906141c2565b60405180910390fd5b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146120c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120bf90614254565b60405180910390fd5b600e60019054906101000a900460ff1615600e60016101000a81548160ff021916908315150217905550565b6120fc6121e5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561216c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612163906142e6565b60405180910390fd5b61217581612400565b50565b600a5481565b600081612189612263565b11158015612198575060005482105b80156121d6575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b6121ed6125ab565b73ffffffffffffffffffffffffffffffffffffffff1661220b6115c0565b73ffffffffffffffffffffffffffffffffffffffff1614612261576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225890614352565b60405180910390fd5b565b600090565b60008082905080612277612263565b116122ff576000548110156122fe5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821614156122fc575b60008114156122f25760046000836001900393508381526020019081526020016000205490506122c7565b8092505050612331565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86123be8686846128a3565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6124ce612c52565b6124ea60046000848152602001908152602001600020546128ac565b9050919050565b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612517906143a3565b60006040518083038185875af1925050503d8060008114612554576040519150601f19603f3d011682016040523d82523d6000602084013e612559565b606091505b505090508061259d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161259490614404565b60405180910390fd5b505050565b60008054905090565b600033905090565b6125cd828260405180602001604052806000815250612962565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026125f76121dd565b8786866040518563ffffffff1660e01b81526004016126199493929190614479565b6020604051808303816000875af192505050801561265557506040513d601f19601f8201168201806040525081019061265291906144da565b60015b6126cf573d8060008114612685576040519150601f19603f3d011682016040523d82523d6000602084013e61268a565b606091505b506000815114156126c7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b61272a612c52565b61273b61273683612268565b6128ac565b9050919050565b6060600082141561278a576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061289e565b600082905060005b600082146127bc5780806127a590613f04565b915050600a826127b59190613ed3565b9150612792565b60008167ffffffffffffffff8111156127d8576127d761302e565b5b6040519080825280601f01601f19166020018201604052801561280a5781602001600182028036833780820191505090505b5090505b60008514612897576001826128239190613a5f565b9150600a856128329190613e10565b603061283e9190613a09565b60f81b818381518110612854576128536137d5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856128909190613ed3565b945061280e565b8093505050505b919050565b60009392505050565b6128b4612c52565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b61296c83836129ff565b60008373ffffffffffffffffffffffffffffffffffffffff163b146129fa57600080549050600083820390505b6129ac60008683806001019450866125d1565b6129e2576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106129995781600054146129f757600080fd5b50505b505050565b6000805490506000821415612a40576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612a4d60008483856123a1565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612ac483612ab560008660006123a7565b612abe85612bbc565b176123cf565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612b6557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612b2a565b506000821415612ba1576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050612bb760008483856123fa565b505050565b60006001821460e11b9050919050565b828054612bd8906137a3565b90600052602060002090601f016020900481019282612bfa5760008555612c41565b82601f10612c1357805160ff1916838001178555612c41565b82800160010185558215612c41579182015b82811115612c40578251825591602001919060010190612c25565b5b509050612c4e9190612ca1565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b80821115612cba576000816000905550600101612ca2565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612d0781612cd2565b8114612d1257600080fd5b50565b600081359050612d2481612cfe565b92915050565b600060208284031215612d4057612d3f612cc8565b5b6000612d4e84828501612d15565b91505092915050565b60008115159050919050565b612d6c81612d57565b82525050565b6000602082019050612d876000830184612d63565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612dc7578082015181840152602081019050612dac565b83811115612dd6576000848401525b50505050565b6000601f19601f8301169050919050565b6000612df882612d8d565b612e028185612d98565b9350612e12818560208601612da9565b612e1b81612ddc565b840191505092915050565b60006020820190508181036000830152612e408184612ded565b905092915050565b6000819050919050565b612e5b81612e48565b8114612e6657600080fd5b50565b600081359050612e7881612e52565b92915050565b600060208284031215612e9457612e93612cc8565b5b6000612ea284828501612e69565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612ed682612eab565b9050919050565b612ee681612ecb565b82525050565b6000602082019050612f016000830184612edd565b92915050565b612f1081612ecb565b8114612f1b57600080fd5b50565b600081359050612f2d81612f07565b92915050565b60008060408385031215612f4a57612f49612cc8565b5b6000612f5885828601612f1e565b9250506020612f6985828601612e69565b9150509250929050565b612f7c81612e48565b82525050565b6000602082019050612f976000830184612f73565b92915050565b600080600060608486031215612fb657612fb5612cc8565b5b6000612fc486828701612f1e565b9350506020612fd586828701612f1e565b9250506040612fe686828701612e69565b9150509250925092565b6000819050919050565b61300381612ff0565b82525050565b600060208201905061301e6000830184612ffa565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61306682612ddc565b810181811067ffffffffffffffff821117156130855761308461302e565b5b80604052505050565b6000613098612cbe565b90506130a4828261305d565b919050565b600067ffffffffffffffff8211156130c4576130c361302e565b5b6130cd82612ddc565b9050602081019050919050565b82818337600083830152505050565b60006130fc6130f7846130a9565b61308e565b90508281526020810184848401111561311857613117613029565b5b6131238482856130da565b509392505050565b600082601f8301126131405761313f613024565b5b81356131508482602086016130e9565b91505092915050565b60006020828403121561316f5761316e612cc8565b5b600082013567ffffffffffffffff81111561318d5761318c612ccd565b5b6131998482850161312b565b91505092915050565b600080fd5b600080fd5b60008083601f8401126131c2576131c1613024565b5b8235905067ffffffffffffffff8111156131df576131de6131a2565b5b6020830191508360208202830111156131fb576131fa6131a7565b5b9250929050565b6000806020838503121561321957613218612cc8565b5b600083013567ffffffffffffffff81111561323757613236612ccd565b5b613243858286016131ac565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61328481612ecb565b82525050565b600067ffffffffffffffff82169050919050565b6132a78161328a565b82525050565b6132b681612d57565b82525050565b600062ffffff82169050919050565b6132d4816132bc565b82525050565b6080820160008201516132f0600085018261327b565b506020820151613303602085018261329e565b50604082015161331660408501826132ad565b50606082015161332960608501826132cb565b50505050565b600061333b83836132da565b60808301905092915050565b6000602082019050919050565b600061335f8261324f565b613369818561325a565b93506133748361326b565b8060005b838110156133a557815161338c888261332f565b975061339783613347565b925050600181019050613378565b5085935050505092915050565b600060208201905081810360008301526133cc8184613354565b905092915050565b6000602082840312156133ea576133e9612cc8565b5b60006133f884828501612f1e565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61343681612e48565b82525050565b6000613448838361342d565b60208301905092915050565b6000602082019050919050565b600061346c82613401565b613476818561340c565b93506134818361341d565b8060005b838110156134b2578151613499888261343c565b97506134a483613454565b925050600181019050613485565b5085935050505092915050565b600060208201905081810360008301526134d98184613461565b905092915050565b6000806000606084860312156134fa576134f9612cc8565b5b600061350886828701612f1e565b935050602061351986828701612e69565b925050604061352a86828701612e69565b9150509250925092565b61353d81612d57565b811461354857600080fd5b50565b60008135905061355a81613534565b92915050565b6000806040838503121561357757613576612cc8565b5b600061358585828601612f1e565b92505060206135968582860161354b565b9150509250929050565b600067ffffffffffffffff8211156135bb576135ba61302e565b5b6135c482612ddc565b9050602081019050919050565b60006135e46135df846135a0565b61308e565b905082815260208101848484011115613600576135ff613029565b5b61360b8482856130da565b509392505050565b600082601f83011261362857613627613024565b5b81356136388482602086016135d1565b91505092915050565b6000806000806080858703121561365b5761365a612cc8565b5b600061366987828801612f1e565b945050602061367a87828801612f1e565b935050604061368b87828801612e69565b925050606085013567ffffffffffffffff8111156136ac576136ab612ccd565b5b6136b887828801613613565b91505092959194509250565b6080820160008201516136da600085018261327b565b5060208201516136ed602085018261329e565b50604082015161370060408501826132ad565b50606082015161371360608501826132cb565b50505050565b600060808201905061372e60008301846136c4565b92915050565b6000806040838503121561374b5761374a612cc8565b5b600061375985828601612f1e565b925050602061376a85828601612f1e565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806137bb57607f821691505b602082108114156137cf576137ce613774565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f496e737566666963656e742062616c616e636500000000000000000000000000600082015250565b600061383a601383612d98565b915061384582613804565b602082019050919050565b600060208201905081810360008301526138698161382d565b9050919050565b7f436f6e74726163742063616e2774206d696e7400000000000000000000000000600082015250565b60006138a6601383612d98565b91506138b182613870565b602082019050919050565b600060208201905081810360008301526138d581613899565b9050919050565b7f5075626c69632073616c6520686173206e6f7420737461727465640000000000600082015250565b6000613912601b83612d98565b915061391d826138dc565b602082019050919050565b6000602082019050818103600083015261394181613905565b9050919050565b7f43616e6e6f742070757263686173652074686973206d616e7920746f6b656e7360008201527f20696e2061207472616e73616374696f6e000000000000000000000000000000602082015250565b60006139a4603183612d98565b91506139af82613948565b604082019050919050565b600060208201905081810360008301526139d381613997565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613a1482612e48565b9150613a1f83612e48565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613a5457613a536139da565b5b828201905092915050565b6000613a6a82612e48565b9150613a7583612e48565b925082821015613a8857613a876139da565b5b828203905092915050565b7f4d696e74696e6720776f756c6420657863656564206d617820737570706c7900600082015250565b6000613ac9601f83612d98565b9150613ad482613a93565b602082019050919050565b60006020820190508181036000830152613af881613abc565b9050919050565b7f4d757374206d696e74206174206c65617374206f6e6520746f6b656e00000000600082015250565b6000613b35601c83612d98565b9150613b4082613aff565b602082019050919050565b60006020820190508181036000830152613b6481613b28565b9050919050565b6000613b7682612e48565b9150613b8183612e48565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613bba57613bb96139da565b5b828202905092915050565b7f45544820616d6f756e7420697320696e636f7272656374000000000000000000600082015250565b6000613bfb601783612d98565b9150613c0682613bc5565b602082019050919050565b60006020820190508181036000830152613c2a81613bee565b9050919050565b7f7a65726f20616464726573730000000000000000000000000000000000000000600082015250565b6000613c67600c83612d98565b9150613c7282613c31565b602082019050919050565b60006020820190508181036000830152613c9681613c5a565b9050919050565b7f696e76616c696420616d6f756e74000000000000000000000000000000000000600082015250565b6000613cd3600e83612d98565b9150613cde82613c9d565b602082019050919050565b60006020820190508181036000830152613d0281613cc6565b9050919050565b7f6d617820737570706c7920657863656564656400000000000000000000000000600082015250565b6000613d3f601383612d98565b9150613d4a82613d09565b602082019050919050565b60006020820190508181036000830152613d6e81613d32565b9050919050565b7f6d6178207265736572766520616d6f756e742065786365656465640000000000600082015250565b6000613dab601b83612d98565b9150613db682613d75565b602082019050919050565b60006020820190508181036000830152613dda81613d9e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613e1b82612e48565b9150613e2683612e48565b925082613e3657613e35613de1565b5b828206905092915050565b7f63616e206f6e6c79206d696e742061206d756c7469706c65206f66207468652060008201527f6d6178426174636853697a650000000000000000000000000000000000000000602082015250565b6000613e9d602c83612d98565b9150613ea882613e41565b604082019050919050565b60006020820190508181036000830152613ecc81613e90565b9050919050565b6000613ede82612e48565b9150613ee983612e48565b925082613ef957613ef8613de1565b5b828204905092915050565b6000613f0f82612e48565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613f4257613f416139da565b5b600182019050919050565b600081905092915050565b60008190508160005260206000209050919050565b60008154613f7a816137a3565b613f848186613f4d565b94506001821660008114613f9f5760018114613fb057613fe3565b60ff19831686528186019350613fe3565b613fb985613f58565b60005b83811015613fdb57815481890152600182019150602081019050613fbc565b838801955050505b50505092915050565b6000613ff782612d8d565b6140018185613f4d565b9350614011818560208601612da9565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614053600583613f4d565b915061405e8261401d565b600582019050919050565b60006140758285613f6d565b91506140818284613fec565b915061408c82614046565b91508190509392505050565b7f68747470733a2f2f766964656f696e636f6d652e73332e61702d736f7574686560008201527f6173742d312e616d617a6f6e6177732e636f6d2f6f64652f0000000000000000602082015250565b60006140f4603883613f4d565b91506140ff82614098565b603882019050919050565b7f73796d626f6c2e6a736f6e000000000000000000000000000000000000000000600082015250565b6000614140600b83613f4d565b915061414b8261410a565b600b82019050919050565b6000614161826140e7565b915061416c82614133565b9150819050919050565b7f436f6e74726163742063616e277420746f67676c650000000000000000000000600082015250565b60006141ac601583612d98565b91506141b782614176565b602082019050919050565b600060208201905081810360008301526141db8161419f565b9050919050565b7f43616c6c6572206d75737420626520746865207365636f6e6461727920746f6760008201527f676c65722e000000000000000000000000000000000000000000000000000000602082015250565b600061423e602583612d98565b9150614249826141e2565b604082019050919050565b6000602082019050818103600083015261426d81614231565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006142d0602683612d98565b91506142db82614274565b604082019050919050565b600060208201905081810360008301526142ff816142c3565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061433c602083612d98565b915061434782614306565b602082019050919050565b6000602082019050818103600083015261436b8161432f565b9050919050565b600081905092915050565b50565b600061438d600083614372565b91506143988261437d565b600082019050919050565b60006143ae82614380565b9150819050919050565b7f4661696c656420746f2077696474686472617720457468657200000000000000600082015250565b60006143ee601983612d98565b91506143f9826143b8565b602082019050919050565b6000602082019050818103600083015261441d816143e1565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061444b82614424565b614455818561442f565b9350614465818560208601612da9565b61446e81612ddc565b840191505092915050565b600060808201905061448e6000830187612edd565b61449b6020830186612edd565b6144a86040830185612f73565b81810360608301526144ba8184614440565b905095945050505050565b6000815190506144d481612cfe565b92915050565b6000602082840312156144f0576144ef612cc8565b5b60006144fe848285016144c5565b9150509291505056fea2646970667358221220e4f0ed1fd21a83048cded9882ead3d9d005eb58eb9d4b68bc495e5265488a9f764736f6c634300080a0033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.