ERC-721
Overview
Max Total Supply
4,121 TUR
Holders
1,763
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 TURLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Turtles
Compiler Version
v0.8.16+commit.07a7930e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; /* _______________ _____________ \__ ___/ | \______ \ | | | | /| _/ | | | | / | | \ |____| |______/ |____|_ / \/ The Turtles All Rights Reserved 2022 Developed by ATOMICON.PRO ([email protected]) */ import "./ERC721A.sol"; import "./IWhitelist.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract Turtles is ERC721A, Ownable, ReentrancyGuard { /// @dev Role for changing variables in the contract bytes32 public constant MANAGER_ROLE = keccak256("MANAGER_ROLE"); enum SALE_STAGE { CLOSED, WHITELIST, PUBLIC } uint16 constant public COLLECTION_SIZE = 4321; uint8 constant public RESERVE_TOKENS_LIMIT = 200; uint8 constant public MAX_TOKENS_WHITELIST_SALE = 1; uint8 constant public MAX_TOKENS_PUBLIC_SALE = 1; uint32 public whitelistSaleStartTime = 1661443200; uint32 public publicSaleStartTime = 1661461200; /// @dev Ammount of tokens an address has minted during the whitelist sales uint16 private _tokensAlreadyReserved = 0; IWhitelist private _whitelistContract; /// @dev Ammount of tokens an address has minted during the whitelist sales mapping (address => uint256) private _numberMintedDuringWhitelistSale; mapping (address => bool) private _isManager; constructor(IWhitelist whitelistContract, address[] memory managers) ERC721A("The Turtles", "TUR") { _whitelistContract = whitelistContract; for(uint index = 0; index < managers.length; index++) { _isManager[managers[index]] = true; } } /// @notice Mint tokens during the sales function saleMint(uint256 quantity) external nonReentrant { SALE_STAGE saleStage = getCurrentSaleStage(); require(totalSupply() + quantity <= COLLECTION_SIZE - RESERVE_TOKENS_LIMIT, "Reached max supply"); require(quantity <= numberAbleToMint(msg.sender), "Exceeding minting limits for this account during current sale stage"); if(saleStage == SALE_STAGE.WHITELIST) { require(isWhitelistAddress(msg.sender), "An account is not on a whitelist"); _numberMintedDuringWhitelistSale[msg.sender] += quantity; } _safeMint(msg.sender, quantity); } /// @notice Reserve tokens for marketing usage/team to a certain address function reserveTokens(address reserveToAddress, uint16 tokensCount) external { require(_isManager[msg.sender], "You don't have the manager rights"); require(_tokensAlreadyReserved + tokensCount <= RESERVE_TOKENS_LIMIT, "Reached max supply"); _tokensAlreadyReserved += tokensCount; _safeMint(reserveToAddress, tokensCount); } /// @notice Number of tokens an address can mint at the given moment function numberAbleToMint(address owner) public view returns (uint256) { SALE_STAGE saleStage = getCurrentSaleStage(); if(saleStage == SALE_STAGE.PUBLIC) return MAX_TOKENS_PUBLIC_SALE + numberMintedDuringWhitelistSale(owner) - numberMinted(owner); if(saleStage == SALE_STAGE.WHITELIST) return MAX_TOKENS_WHITELIST_SALE - numberMinted(owner); return 0; } /// @notice Check if an address is in a whitelist function isWhitelistAddress(address owner) public view returns(bool) { return _whitelistContract.isWhitelistAddress(owner); } /// @notice Number of tokens minted by an address during the whitelist sales function numberMintedDuringWhitelistSale(address owner) public view returns(uint256){ return _numberMintedDuringWhitelistSale[owner]; } /// @notice Number of tokens minted by an address function numberMinted(address owner) public view returns (uint256) { return _numberMinted(owner); } /// @notice Get current sale stage function getCurrentSaleStage() public view returns (SALE_STAGE) { if(block.timestamp >= publicSaleStartTime) return SALE_STAGE.PUBLIC; if(block.timestamp >= whitelistSaleStartTime) return SALE_STAGE.WHITELIST; return SALE_STAGE.CLOSED; } /// @notice Change whitelist sales start time in unix time format function setWhitelistSaleStartTime(uint32 unixTime) public { require(_isManager[msg.sender], "You don't have the manager rights"); whitelistSaleStartTime = unixTime; } /// @notice Change public sales start time in unix time format function setPublicSaleStartTime(uint32 unixTime) public { require(_isManager[msg.sender], "You don't have the manager rights"); publicSaleStartTime = unixTime; } /// @dev Starting index for the token IDs function _startTokenId() internal view virtual override returns (uint256) { return 1; } /// @dev Token metadata folder/root URI string private _baseTokenURI = "https://bafybeifga7zzygklunuk4zcdzcsu5z7icgv3fvubc5bv6sjsykt6exfjji.ipfs.nftstorage.link/metadata/"; /// @notice Get base token URI function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } /// @notice Set base token URI function setBaseURI(string calldata baseURI) external { require(_isManager[msg.sender], "You don't have the manager rights"); _baseTokenURI = baseURI; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; contract IWhitelist { function isWhitelistAddress(address owner) public view returns(bool) {} }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.0 // 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 { // Reference type for token approval. 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 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 { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _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]`. 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 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 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 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. 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`. ) 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 ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.0 // 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(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // 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; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @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; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IWhitelist","name":"whitelistContract","type":"address"},{"internalType":"address[]","name":"managers","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"COLLECTION_SIZE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS_PUBLIC_SALE","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS_WHITELIST_SALE","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVE_TOKENS_LIMIT","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentSaleStage","outputs":[{"internalType":"enum Turtles.SALE_STAGE","name":"","type":"uint8"}],"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":[{"internalType":"address","name":"owner","type":"address"}],"name":"isWhitelistAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberAbleToMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMintedDuringWhitelistSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleStartTime","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"reserveToAddress","type":"address"},{"internalType":"uint16","name":"tokensCount","type":"uint16"}],"name":"reserveTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"saleMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"unixTime","type":"uint32"}],"name":"setPublicSaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"unixTime","type":"uint32"}],"name":"setWhitelistSaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistSaleStartTime","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526363079c80600a60006101000a81548163ffffffff021916908363ffffffff160217905550636307e2d0600a60046101000a81548163ffffffff021916908363ffffffff1602179055506000600a60086101000a81548161ffff021916908361ffff1602179055506040518060a001604052806062815260200162003dcf60629139600d9081620000969190620005cc565b50348015620000a457600080fd5b5060405162003e3138038062003e318339818101604052810190620000ca9190620008b7565b6040518060400160405280600b81526020017f54686520547572746c65730000000000000000000000000000000000000000008152506040518060400160405280600381526020017f54555200000000000000000000000000000000000000000000000000000000008152508160029081620001479190620005cc565b508060039081620001599190620005cc565b506200016a6200027b60201b60201c565b600081905550505062000192620001866200028460201b60201c565b6200028c60201b60201c565b600160098190555081600a806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060005b815181101562000272576001600c60008484815181106200020357620002026200091d565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550808062000269906200097b565b915050620001dd565b505050620009c8565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620003d457607f821691505b602082108103620003ea57620003e96200038c565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620004547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000415565b62000460868362000415565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620004ad620004a7620004a18462000478565b62000482565b62000478565b9050919050565b6000819050919050565b620004c9836200048c565b620004e1620004d882620004b4565b84845462000422565b825550505050565b600090565b620004f8620004e9565b62000505818484620004be565b505050565b5b818110156200052d5762000521600082620004ee565b6001810190506200050b565b5050565b601f8211156200057c576200054681620003f0565b620005518462000405565b8101602085101562000561578190505b62000579620005708562000405565b8301826200050a565b50505b505050565b600082821c905092915050565b6000620005a16000198460080262000581565b1980831691505092915050565b6000620005bc83836200058e565b9150826002028217905092915050565b620005d78262000352565b67ffffffffffffffff811115620005f357620005f26200035d565b5b620005ff8254620003bb565b6200060c82828562000531565b600060209050601f8311600181146200064457600084156200062f578287015190505b6200063b8582620005ae565b865550620006ab565b601f1984166200065486620003f0565b60005b828110156200067e5784890151825560018201915060208501945060208101905062000657565b868310156200069e57848901516200069a601f8916826200058e565b8355505b6001600288020188555050505b505050505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620006f482620006c7565b9050919050565b60006200070882620006e7565b9050919050565b6200071a81620006fb565b81146200072657600080fd5b50565b6000815190506200073a816200070f565b92915050565b600080fd5b6000601f19601f8301169050919050565b620007618262000745565b810181811067ffffffffffffffff821117156200078357620007826200035d565b5b80604052505050565b600062000798620006b3565b9050620007a6828262000756565b919050565b600067ffffffffffffffff821115620007c957620007c86200035d565b5b602082029050602081019050919050565b600080fd5b620007ea81620006e7565b8114620007f657600080fd5b50565b6000815190506200080a81620007df565b92915050565b6000620008276200082184620007ab565b6200078c565b905080838252602082019050602084028301858111156200084d576200084c620007da565b5b835b818110156200087a5780620008658882620007f9565b8452602084019350506020810190506200084f565b5050509392505050565b600082601f8301126200089c576200089b62000740565b5b8151620008ae84826020860162000810565b91505092915050565b60008060408385031215620008d157620008d0620006bd565b5b6000620008e18582860162000729565b925050602083015167ffffffffffffffff811115620009055762000904620006c2565b5b620009138582860162000884565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000620009888262000478565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203620009bd57620009bc6200094c565b5b600182019050919050565b6133f780620009d86000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c8063715018a61161011a578063c87b56dd116100ad578063e4f7a2501161007c578063e4f7a250146105eb578063e985e9c514610609578063ec87621c14610639578063f2fde38b14610657578063fd0daa571461067357610206565b8063c87b56dd1461053d578063d7aed2451461056d578063d8258d951461059d578063dc33e681146105bb57610206565b806395d89b41116100e957806395d89b41146104b75780639737e730146104d5578063a22cb46514610505578063b88d4fde1461052157610206565b8063715018a6146104575780637de86909146104615780638ca887ca1461047d5780638da5cb5b1461049957610206565b806323b872dd1161019d5780635f31c7fb1161016c5780635f31c7fb1461039f5780635fd84c28146103bd5780636352211e146103d95780636bb7b1d91461040957806370a082311461042757610206565b806323b872dd1461032f5780632e12ce2e1461034b57806342842e0e1461036757806355f804b31461038357610206565b806315001632116101d957806315001632146102a557806317bb0556146102c357806318160ddd146102f3578063230b43f41461031157610206565b806301ffc9a71461020b57806306fdde031461023b578063081812fc14610259578063095ea7b314610289575b600080fd5b61022560048036038101906102209190612297565b610691565b60405161023291906122df565b60405180910390f35b610243610723565b604051610250919061238a565b60405180910390f35b610273600480360381019061026e91906123e2565b6107b5565b6040516102809190612450565b60405180910390f35b6102a3600480360381019061029e9190612497565b610834565b005b6102ad610978565b6040516102ba919061254e565b60405180910390f35b6102dd60048036038101906102d89190612569565b6109d2565b6040516102ea91906125a5565b60405180910390f35b6102fb610a1b565b60405161030891906125a5565b60405180910390f35b610319610a32565b60405161032691906125df565b60405180910390f35b610349600480360381019061034491906125fa565b610a48565b005b61036560048036038101906103609190612687565b610d6a565b005b610381600480360381019061037c91906125fa565b610ea7565b005b61039d6004803603810190610398919061272c565b610ec7565b005b6103a7610f69565b6040516103b49190612795565b60405180910390f35b6103d760048036038101906103d291906127dc565b610f6e565b005b6103f360048036038101906103ee91906123e2565b61101e565b6040516104009190612450565b60405180910390f35b610411611030565b60405161041e91906125df565b60405180910390f35b610441600480360381019061043c9190612569565b611046565b60405161044e91906125a5565b60405180910390f35b61045f6110fe565b005b61047b600480360381019061047691906127dc565b611112565b005b610497600480360381019061049291906123e2565b6111c2565b005b6104a16113b1565b6040516104ae9190612450565b60405180910390f35b6104bf6113db565b6040516104cc919061238a565b60405180910390f35b6104ef60048036038101906104ea9190612569565b61146d565b6040516104fc91906125a5565b60405180910390f35b61051f600480360381019061051a9190612835565b61152f565b005b61053b600480360381019061053691906129a5565b6116a6565b005b610557600480360381019061055291906123e2565b611719565b604051610564919061238a565b60405180910390f35b61058760048036038101906105829190612569565b6117b7565b60405161059491906122df565b60405180910390f35b6105a561185a565b6040516105b29190612a37565b60405180910390f35b6105d560048036038101906105d09190612569565b611860565b6040516105e291906125a5565b60405180910390f35b6105f3611872565b6040516106009190612795565b60405180910390f35b610623600480360381019061061e9190612a52565b611877565b60405161063091906122df565b60405180910390f35b61064161190b565b60405161064e9190612aab565b60405180910390f35b610671600480360381019061066c9190612569565b61192f565b005b61067b6119b2565b6040516106889190612795565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106ec57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061071c5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461073290612af5565b80601f016020809104026020016040519081016040528092919081815260200182805461075e90612af5565b80156107ab5780601f10610780576101008083540402835291602001916107ab565b820191906000526020600020905b81548152906001019060200180831161078e57829003601f168201915b5050505050905090565b60006107c0826119b7565b6107f6576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061083f8261101e565b90508073ffffffffffffffffffffffffffffffffffffffff16610860611a16565b73ffffffffffffffffffffffffffffffffffffffff16146108c35761088c81610887611a16565b611877565b6108c2576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000600a60049054906101000a900463ffffffff1663ffffffff1642106109a257600290506109cf565b600a60009054906101000a900463ffffffff1663ffffffff1642106109ca57600190506109cf565b600090505b90565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000610a25611a1e565b6001546000540303905090565b600a60009054906101000a900463ffffffff1681565b6000610a5382611a27565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610aba576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610ac684611af3565b91509150610adc8187610ad7611a16565b611b1a565b610b2857610af186610aec611a16565b611877565b610b27576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610b8e576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b9b8686866001611b5e565b8015610ba657600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610c7485610c50888887611b64565b7c020000000000000000000000000000000000000000000000000000000017611b8c565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610cfa5760006001850190506000600460008381526020019081526020016000205403610cf8576000548114610cf7578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610d628686866001611bb7565b505050505050565b600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610df6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ded90612b98565b60405180910390fd5b60c860ff1681600a60089054906101000a900461ffff16610e179190612be7565b61ffff161115610e5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5390612c69565b60405180910390fd5b80600a60088282829054906101000a900461ffff16610e7b9190612be7565b92506101000a81548161ffff021916908361ffff160217905550610ea3828261ffff16611bbd565b5050565b610ec2838383604051806020016040528060008152506116a6565b505050565b600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610f53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4a90612b98565b60405180910390fd5b8181600d9182610f64929190612e40565b505050565b600181565b600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610ffa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff190612b98565b60405180910390fd5b80600a60046101000a81548163ffffffff021916908363ffffffff16021790555050565b600061102982611a27565b9050919050565b600a60049054906101000a900463ffffffff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110ad576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611106611bdb565b6111106000611c59565b565b600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661119e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119590612b98565b60405180910390fd5b80600a60006101000a81548163ffffffff021916908363ffffffff16021790555050565b600260095403611207576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111fe90612f5c565b60405180910390fd5b60026009819055506000611219610978565b905060c860ff166110e161122d9190612f7c565b61ffff168261123a610a1b565b6112449190612fb2565b1115611285576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127c90612c69565b60405180910390fd5b61128e3361146d565b8211156112d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c79061307e565b60405180910390fd5b600160028111156112e4576112e36124d7565b5b8160028111156112f7576112f66124d7565b5b0361139b57611305336117b7565b611344576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133b906130ea565b60405180910390fd5b81600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546113939190612fb2565b925050819055505b6113a53383611bbd565b50600160098190555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546113ea90612af5565b80601f016020809104026020016040519081016040528092919081815260200182805461141690612af5565b80156114635780601f1061143857610100808354040283529160200191611463565b820191906000526020600020905b81548152906001019060200180831161144657829003601f168201915b5050505050905090565b600080611478610978565b905060028081111561148d5761148c6124d7565b5b8160028111156114a05761149f6124d7565b5b036114d8576114ae83611860565b6114b7846109d2565b600160ff166114c69190612fb2565b6114d0919061310a565b91505061152a565b600160028111156114ec576114eb6124d7565b5b8160028111156114ff576114fe6124d7565b5b036115245761150d83611860565b600160ff1661151c919061310a565b91505061152a565b60009150505b919050565b611537611a16565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361159b576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006115a8611a16565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611655611a16565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161169a91906122df565b60405180910390a35050565b6116b1848484610a48565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611713576116dc84848484611d1f565b611712576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060611724826119b7565b61175a576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611764611e6f565b9050600081510361178457604051806020016040528060008152506117af565b8061178e84611f01565b60405160200161179f92919061317a565b6040516020818303038152906040525b915050919050565b6000600a8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d7aed245836040518263ffffffff1660e01b81526004016118129190612450565b602060405180830381865afa15801561182f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061185391906131b3565b9050919050565b6110e181565b600061186b82611f5b565b9050919050565b60c881565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b611937611bdb565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036119a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199d90613252565b60405180910390fd5b6119af81611c59565b50565b600181565b6000816119c2611a1e565b111580156119d1575060005482105b8015611a0f575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b60008082905080611a36611a1e565b11611abc57600054811015611abb5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611ab9575b60008103611aaf576004600083600190039350838152602001908152602001600020549050611a85565b8092505050611aee565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611b7b868684611fb2565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b611bd7828260405180602001604052806000815250611fbb565b5050565b611be3612058565b73ffffffffffffffffffffffffffffffffffffffff16611c016113b1565b73ffffffffffffffffffffffffffffffffffffffff1614611c57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4e906132be565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611d45611a16565b8786866040518563ffffffff1660e01b8152600401611d679493929190613333565b6020604051808303816000875af1925050508015611da357506040513d601f19601f82011682018060405250810190611da09190613394565b60015b611e1c573d8060008114611dd3576040519150601f19603f3d011682016040523d82523d6000602084013e611dd8565b606091505b506000815103611e14576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600d8054611e7e90612af5565b80601f0160208091040260200160405190810160405280929190818152602001828054611eaa90612af5565b8015611ef75780601f10611ecc57610100808354040283529160200191611ef7565b820191906000526020600020905b815481529060010190602001808311611eda57829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b8015611f4757600183039250600a81066030018353600a81049050611f27565b508181036020830392508083525050919050565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60009392505050565b611fc58383612060565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461205357600080549050600083820390505b6120056000868380600101945086611d1f565b61203b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110611ff257816000541461205057600080fd5b50505b505050565b600033905090565b600080549050600082036120a0576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6120ad6000848385611b5e565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612124836121156000866000611b64565b61211e8561221b565b17611b8c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146121c557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905061218a565b5060008203612200576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506122166000848385611bb7565b505050565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6122748161223f565b811461227f57600080fd5b50565b6000813590506122918161226b565b92915050565b6000602082840312156122ad576122ac612235565b5b60006122bb84828501612282565b91505092915050565b60008115159050919050565b6122d9816122c4565b82525050565b60006020820190506122f460008301846122d0565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612334578082015181840152602081019050612319565b60008484015250505050565b6000601f19601f8301169050919050565b600061235c826122fa565b6123668185612305565b9350612376818560208601612316565b61237f81612340565b840191505092915050565b600060208201905081810360008301526123a48184612351565b905092915050565b6000819050919050565b6123bf816123ac565b81146123ca57600080fd5b50565b6000813590506123dc816123b6565b92915050565b6000602082840312156123f8576123f7612235565b5b6000612406848285016123cd565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061243a8261240f565b9050919050565b61244a8161242f565b82525050565b60006020820190506124656000830184612441565b92915050565b6124748161242f565b811461247f57600080fd5b50565b6000813590506124918161246b565b92915050565b600080604083850312156124ae576124ad612235565b5b60006124bc85828601612482565b92505060206124cd858286016123cd565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60038110612517576125166124d7565b5b50565b600081905061252882612506565b919050565b60006125388261251a565b9050919050565b6125488161252d565b82525050565b6000602082019050612563600083018461253f565b92915050565b60006020828403121561257f5761257e612235565b5b600061258d84828501612482565b91505092915050565b61259f816123ac565b82525050565b60006020820190506125ba6000830184612596565b92915050565b600063ffffffff82169050919050565b6125d9816125c0565b82525050565b60006020820190506125f460008301846125d0565b92915050565b60008060006060848603121561261357612612612235565b5b600061262186828701612482565b935050602061263286828701612482565b9250506040612643868287016123cd565b9150509250925092565b600061ffff82169050919050565b6126648161264d565b811461266f57600080fd5b50565b6000813590506126818161265b565b92915050565b6000806040838503121561269e5761269d612235565b5b60006126ac85828601612482565b92505060206126bd85828601612672565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f8401126126ec576126eb6126c7565b5b8235905067ffffffffffffffff811115612709576127086126cc565b5b602083019150836001820283011115612725576127246126d1565b5b9250929050565b6000806020838503121561274357612742612235565b5b600083013567ffffffffffffffff8111156127615761276061223a565b5b61276d858286016126d6565b92509250509250929050565b600060ff82169050919050565b61278f81612779565b82525050565b60006020820190506127aa6000830184612786565b92915050565b6127b9816125c0565b81146127c457600080fd5b50565b6000813590506127d6816127b0565b92915050565b6000602082840312156127f2576127f1612235565b5b6000612800848285016127c7565b91505092915050565b612812816122c4565b811461281d57600080fd5b50565b60008135905061282f81612809565b92915050565b6000806040838503121561284c5761284b612235565b5b600061285a85828601612482565b925050602061286b85828601612820565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6128b282612340565b810181811067ffffffffffffffff821117156128d1576128d061287a565b5b80604052505050565b60006128e461222b565b90506128f082826128a9565b919050565b600067ffffffffffffffff8211156129105761290f61287a565b5b61291982612340565b9050602081019050919050565b82818337600083830152505050565b6000612948612943846128f5565b6128da565b90508281526020810184848401111561296457612963612875565b5b61296f848285612926565b509392505050565b600082601f83011261298c5761298b6126c7565b5b813561299c848260208601612935565b91505092915050565b600080600080608085870312156129bf576129be612235565b5b60006129cd87828801612482565b94505060206129de87828801612482565b93505060406129ef878288016123cd565b925050606085013567ffffffffffffffff811115612a1057612a0f61223a565b5b612a1c87828801612977565b91505092959194509250565b612a318161264d565b82525050565b6000602082019050612a4c6000830184612a28565b92915050565b60008060408385031215612a6957612a68612235565b5b6000612a7785828601612482565b9250506020612a8885828601612482565b9150509250929050565b6000819050919050565b612aa581612a92565b82525050565b6000602082019050612ac06000830184612a9c565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612b0d57607f821691505b602082108103612b2057612b1f612ac6565b5b50919050565b7f596f7520646f6e2774206861766520746865206d616e6167657220726967687460008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000612b82602183612305565b9150612b8d82612b26565b604082019050919050565b60006020820190508181036000830152612bb181612b75565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612bf28261264d565b9150612bfd8361264d565b9250828201905061ffff811115612c1757612c16612bb8565b5b92915050565b7f52656163686564206d617820737570706c790000000000000000000000000000600082015250565b6000612c53601283612305565b9150612c5e82612c1d565b602082019050919050565b60006020820190508181036000830152612c8281612c46565b9050919050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302612cf67fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612cb9565b612d008683612cb9565b95508019841693508086168417925050509392505050565b6000819050919050565b6000612d3d612d38612d33846123ac565b612d18565b6123ac565b9050919050565b6000819050919050565b612d5783612d22565b612d6b612d6382612d44565b848454612cc6565b825550505050565b600090565b612d80612d73565b612d8b818484612d4e565b505050565b5b81811015612daf57612da4600082612d78565b600181019050612d91565b5050565b601f821115612df457612dc581612c94565b612dce84612ca9565b81016020851015612ddd578190505b612df1612de985612ca9565b830182612d90565b50505b505050565b600082821c905092915050565b6000612e1760001984600802612df9565b1980831691505092915050565b6000612e308383612e06565b9150826002028217905092915050565b612e4a8383612c89565b67ffffffffffffffff811115612e6357612e6261287a565b5b612e6d8254612af5565b612e78828285612db3565b6000601f831160018114612ea75760008415612e95578287013590505b612e9f8582612e24565b865550612f07565b601f198416612eb586612c94565b60005b82811015612edd57848901358255600182019150602085019450602081019050612eb8565b86831015612efa5784890135612ef6601f891682612e06565b8355505b6001600288020188555050505b50505050505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612f46601f83612305565b9150612f5182612f10565b602082019050919050565b60006020820190508181036000830152612f7581612f39565b9050919050565b6000612f878261264d565b9150612f928361264d565b9250828203905061ffff811115612fac57612fab612bb8565b5b92915050565b6000612fbd826123ac565b9150612fc8836123ac565b9250828201905080821115612fe057612fdf612bb8565b5b92915050565b7f457863656564696e67206d696e74696e67206c696d69747320666f722074686960008201527f73206163636f756e7420647572696e672063757272656e742073616c6520737460208201527f6167650000000000000000000000000000000000000000000000000000000000604082015250565b6000613068604383612305565b915061307382612fe6565b606082019050919050565b600060208201905081810360008301526130978161305b565b9050919050565b7f416e206163636f756e74206973206e6f74206f6e20612077686974656c697374600082015250565b60006130d4602083612305565b91506130df8261309e565b602082019050919050565b60006020820190508181036000830152613103816130c7565b9050919050565b6000613115826123ac565b9150613120836123ac565b925082820390508181111561313857613137612bb8565b5b92915050565b600081905092915050565b6000613154826122fa565b61315e818561313e565b935061316e818560208601612316565b80840191505092915050565b60006131868285613149565b91506131928284613149565b91508190509392505050565b6000815190506131ad81612809565b92915050565b6000602082840312156131c9576131c8612235565b5b60006131d78482850161319e565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061323c602683612305565b9150613247826131e0565b604082019050919050565b6000602082019050818103600083015261326b8161322f565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006132a8602083612305565b91506132b382613272565b602082019050919050565b600060208201905081810360008301526132d78161329b565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613305826132de565b61330f81856132e9565b935061331f818560208601612316565b61332881612340565b840191505092915050565b60006080820190506133486000830187612441565b6133556020830186612441565b6133626040830185612596565b818103606083015261337481846132fa565b905095945050505050565b60008151905061338e8161226b565b92915050565b6000602082840312156133aa576133a9612235565b5b60006133b88482850161337f565b9150509291505056fea26469706673582212203d4b78df42df6961458495c6fe9e9d71e2c6aab48fffe1a0c90f63a9648aca3264736f6c6343000810003368747470733a2f2f62616679626569666761377a7a79676b6c756e756b347a63647a637375357a376963677633667675626335627636736a73796b74366578666a6a692e697066732e6e667473746f726167652e6c696e6b2f6d657461646174612f0000000000000000000000000b21758898eee09960fcb0fef6ebea6ff7bbcb7200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000003000000000000000000000000fc4a8d528ed8468560f463a1c525f3849c74841a000000000000000000000000c444422c00a8d7407d287feb579a2a25f54e1e360000000000000000000000009d90f6ab6f851c08c29867917f20b5b314dd9f25
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102065760003560e01c8063715018a61161011a578063c87b56dd116100ad578063e4f7a2501161007c578063e4f7a250146105eb578063e985e9c514610609578063ec87621c14610639578063f2fde38b14610657578063fd0daa571461067357610206565b8063c87b56dd1461053d578063d7aed2451461056d578063d8258d951461059d578063dc33e681146105bb57610206565b806395d89b41116100e957806395d89b41146104b75780639737e730146104d5578063a22cb46514610505578063b88d4fde1461052157610206565b8063715018a6146104575780637de86909146104615780638ca887ca1461047d5780638da5cb5b1461049957610206565b806323b872dd1161019d5780635f31c7fb1161016c5780635f31c7fb1461039f5780635fd84c28146103bd5780636352211e146103d95780636bb7b1d91461040957806370a082311461042757610206565b806323b872dd1461032f5780632e12ce2e1461034b57806342842e0e1461036757806355f804b31461038357610206565b806315001632116101d957806315001632146102a557806317bb0556146102c357806318160ddd146102f3578063230b43f41461031157610206565b806301ffc9a71461020b57806306fdde031461023b578063081812fc14610259578063095ea7b314610289575b600080fd5b61022560048036038101906102209190612297565b610691565b60405161023291906122df565b60405180910390f35b610243610723565b604051610250919061238a565b60405180910390f35b610273600480360381019061026e91906123e2565b6107b5565b6040516102809190612450565b60405180910390f35b6102a3600480360381019061029e9190612497565b610834565b005b6102ad610978565b6040516102ba919061254e565b60405180910390f35b6102dd60048036038101906102d89190612569565b6109d2565b6040516102ea91906125a5565b60405180910390f35b6102fb610a1b565b60405161030891906125a5565b60405180910390f35b610319610a32565b60405161032691906125df565b60405180910390f35b610349600480360381019061034491906125fa565b610a48565b005b61036560048036038101906103609190612687565b610d6a565b005b610381600480360381019061037c91906125fa565b610ea7565b005b61039d6004803603810190610398919061272c565b610ec7565b005b6103a7610f69565b6040516103b49190612795565b60405180910390f35b6103d760048036038101906103d291906127dc565b610f6e565b005b6103f360048036038101906103ee91906123e2565b61101e565b6040516104009190612450565b60405180910390f35b610411611030565b60405161041e91906125df565b60405180910390f35b610441600480360381019061043c9190612569565b611046565b60405161044e91906125a5565b60405180910390f35b61045f6110fe565b005b61047b600480360381019061047691906127dc565b611112565b005b610497600480360381019061049291906123e2565b6111c2565b005b6104a16113b1565b6040516104ae9190612450565b60405180910390f35b6104bf6113db565b6040516104cc919061238a565b60405180910390f35b6104ef60048036038101906104ea9190612569565b61146d565b6040516104fc91906125a5565b60405180910390f35b61051f600480360381019061051a9190612835565b61152f565b005b61053b600480360381019061053691906129a5565b6116a6565b005b610557600480360381019061055291906123e2565b611719565b604051610564919061238a565b60405180910390f35b61058760048036038101906105829190612569565b6117b7565b60405161059491906122df565b60405180910390f35b6105a561185a565b6040516105b29190612a37565b60405180910390f35b6105d560048036038101906105d09190612569565b611860565b6040516105e291906125a5565b60405180910390f35b6105f3611872565b6040516106009190612795565b60405180910390f35b610623600480360381019061061e9190612a52565b611877565b60405161063091906122df565b60405180910390f35b61064161190b565b60405161064e9190612aab565b60405180910390f35b610671600480360381019061066c9190612569565b61192f565b005b61067b6119b2565b6040516106889190612795565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106ec57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061071c5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461073290612af5565b80601f016020809104026020016040519081016040528092919081815260200182805461075e90612af5565b80156107ab5780601f10610780576101008083540402835291602001916107ab565b820191906000526020600020905b81548152906001019060200180831161078e57829003601f168201915b5050505050905090565b60006107c0826119b7565b6107f6576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061083f8261101e565b90508073ffffffffffffffffffffffffffffffffffffffff16610860611a16565b73ffffffffffffffffffffffffffffffffffffffff16146108c35761088c81610887611a16565b611877565b6108c2576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000600a60049054906101000a900463ffffffff1663ffffffff1642106109a257600290506109cf565b600a60009054906101000a900463ffffffff1663ffffffff1642106109ca57600190506109cf565b600090505b90565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000610a25611a1e565b6001546000540303905090565b600a60009054906101000a900463ffffffff1681565b6000610a5382611a27565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610aba576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610ac684611af3565b91509150610adc8187610ad7611a16565b611b1a565b610b2857610af186610aec611a16565b611877565b610b27576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610b8e576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b9b8686866001611b5e565b8015610ba657600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610c7485610c50888887611b64565b7c020000000000000000000000000000000000000000000000000000000017611b8c565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610cfa5760006001850190506000600460008381526020019081526020016000205403610cf8576000548114610cf7578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610d628686866001611bb7565b505050505050565b600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610df6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ded90612b98565b60405180910390fd5b60c860ff1681600a60089054906101000a900461ffff16610e179190612be7565b61ffff161115610e5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5390612c69565b60405180910390fd5b80600a60088282829054906101000a900461ffff16610e7b9190612be7565b92506101000a81548161ffff021916908361ffff160217905550610ea3828261ffff16611bbd565b5050565b610ec2838383604051806020016040528060008152506116a6565b505050565b600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610f53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4a90612b98565b60405180910390fd5b8181600d9182610f64929190612e40565b505050565b600181565b600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610ffa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff190612b98565b60405180910390fd5b80600a60046101000a81548163ffffffff021916908363ffffffff16021790555050565b600061102982611a27565b9050919050565b600a60049054906101000a900463ffffffff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110ad576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611106611bdb565b6111106000611c59565b565b600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661119e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119590612b98565b60405180910390fd5b80600a60006101000a81548163ffffffff021916908363ffffffff16021790555050565b600260095403611207576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111fe90612f5c565b60405180910390fd5b60026009819055506000611219610978565b905060c860ff166110e161122d9190612f7c565b61ffff168261123a610a1b565b6112449190612fb2565b1115611285576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127c90612c69565b60405180910390fd5b61128e3361146d565b8211156112d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c79061307e565b60405180910390fd5b600160028111156112e4576112e36124d7565b5b8160028111156112f7576112f66124d7565b5b0361139b57611305336117b7565b611344576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133b906130ea565b60405180910390fd5b81600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546113939190612fb2565b925050819055505b6113a53383611bbd565b50600160098190555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546113ea90612af5565b80601f016020809104026020016040519081016040528092919081815260200182805461141690612af5565b80156114635780601f1061143857610100808354040283529160200191611463565b820191906000526020600020905b81548152906001019060200180831161144657829003601f168201915b5050505050905090565b600080611478610978565b905060028081111561148d5761148c6124d7565b5b8160028111156114a05761149f6124d7565b5b036114d8576114ae83611860565b6114b7846109d2565b600160ff166114c69190612fb2565b6114d0919061310a565b91505061152a565b600160028111156114ec576114eb6124d7565b5b8160028111156114ff576114fe6124d7565b5b036115245761150d83611860565b600160ff1661151c919061310a565b91505061152a565b60009150505b919050565b611537611a16565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361159b576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006115a8611a16565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611655611a16565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161169a91906122df565b60405180910390a35050565b6116b1848484610a48565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611713576116dc84848484611d1f565b611712576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060611724826119b7565b61175a576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611764611e6f565b9050600081510361178457604051806020016040528060008152506117af565b8061178e84611f01565b60405160200161179f92919061317a565b6040516020818303038152906040525b915050919050565b6000600a8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d7aed245836040518263ffffffff1660e01b81526004016118129190612450565b602060405180830381865afa15801561182f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061185391906131b3565b9050919050565b6110e181565b600061186b82611f5b565b9050919050565b60c881565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b611937611bdb565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036119a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199d90613252565b60405180910390fd5b6119af81611c59565b50565b600181565b6000816119c2611a1e565b111580156119d1575060005482105b8015611a0f575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b60008082905080611a36611a1e565b11611abc57600054811015611abb5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611ab9575b60008103611aaf576004600083600190039350838152602001908152602001600020549050611a85565b8092505050611aee565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611b7b868684611fb2565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b611bd7828260405180602001604052806000815250611fbb565b5050565b611be3612058565b73ffffffffffffffffffffffffffffffffffffffff16611c016113b1565b73ffffffffffffffffffffffffffffffffffffffff1614611c57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4e906132be565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611d45611a16565b8786866040518563ffffffff1660e01b8152600401611d679493929190613333565b6020604051808303816000875af1925050508015611da357506040513d601f19601f82011682018060405250810190611da09190613394565b60015b611e1c573d8060008114611dd3576040519150601f19603f3d011682016040523d82523d6000602084013e611dd8565b606091505b506000815103611e14576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600d8054611e7e90612af5565b80601f0160208091040260200160405190810160405280929190818152602001828054611eaa90612af5565b8015611ef75780601f10611ecc57610100808354040283529160200191611ef7565b820191906000526020600020905b815481529060010190602001808311611eda57829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b8015611f4757600183039250600a81066030018353600a81049050611f27565b508181036020830392508083525050919050565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60009392505050565b611fc58383612060565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461205357600080549050600083820390505b6120056000868380600101945086611d1f565b61203b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110611ff257816000541461205057600080fd5b50505b505050565b600033905090565b600080549050600082036120a0576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6120ad6000848385611b5e565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612124836121156000866000611b64565b61211e8561221b565b17611b8c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146121c557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905061218a565b5060008203612200576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506122166000848385611bb7565b505050565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6122748161223f565b811461227f57600080fd5b50565b6000813590506122918161226b565b92915050565b6000602082840312156122ad576122ac612235565b5b60006122bb84828501612282565b91505092915050565b60008115159050919050565b6122d9816122c4565b82525050565b60006020820190506122f460008301846122d0565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612334578082015181840152602081019050612319565b60008484015250505050565b6000601f19601f8301169050919050565b600061235c826122fa565b6123668185612305565b9350612376818560208601612316565b61237f81612340565b840191505092915050565b600060208201905081810360008301526123a48184612351565b905092915050565b6000819050919050565b6123bf816123ac565b81146123ca57600080fd5b50565b6000813590506123dc816123b6565b92915050565b6000602082840312156123f8576123f7612235565b5b6000612406848285016123cd565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061243a8261240f565b9050919050565b61244a8161242f565b82525050565b60006020820190506124656000830184612441565b92915050565b6124748161242f565b811461247f57600080fd5b50565b6000813590506124918161246b565b92915050565b600080604083850312156124ae576124ad612235565b5b60006124bc85828601612482565b92505060206124cd858286016123cd565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60038110612517576125166124d7565b5b50565b600081905061252882612506565b919050565b60006125388261251a565b9050919050565b6125488161252d565b82525050565b6000602082019050612563600083018461253f565b92915050565b60006020828403121561257f5761257e612235565b5b600061258d84828501612482565b91505092915050565b61259f816123ac565b82525050565b60006020820190506125ba6000830184612596565b92915050565b600063ffffffff82169050919050565b6125d9816125c0565b82525050565b60006020820190506125f460008301846125d0565b92915050565b60008060006060848603121561261357612612612235565b5b600061262186828701612482565b935050602061263286828701612482565b9250506040612643868287016123cd565b9150509250925092565b600061ffff82169050919050565b6126648161264d565b811461266f57600080fd5b50565b6000813590506126818161265b565b92915050565b6000806040838503121561269e5761269d612235565b5b60006126ac85828601612482565b92505060206126bd85828601612672565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f8401126126ec576126eb6126c7565b5b8235905067ffffffffffffffff811115612709576127086126cc565b5b602083019150836001820283011115612725576127246126d1565b5b9250929050565b6000806020838503121561274357612742612235565b5b600083013567ffffffffffffffff8111156127615761276061223a565b5b61276d858286016126d6565b92509250509250929050565b600060ff82169050919050565b61278f81612779565b82525050565b60006020820190506127aa6000830184612786565b92915050565b6127b9816125c0565b81146127c457600080fd5b50565b6000813590506127d6816127b0565b92915050565b6000602082840312156127f2576127f1612235565b5b6000612800848285016127c7565b91505092915050565b612812816122c4565b811461281d57600080fd5b50565b60008135905061282f81612809565b92915050565b6000806040838503121561284c5761284b612235565b5b600061285a85828601612482565b925050602061286b85828601612820565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6128b282612340565b810181811067ffffffffffffffff821117156128d1576128d061287a565b5b80604052505050565b60006128e461222b565b90506128f082826128a9565b919050565b600067ffffffffffffffff8211156129105761290f61287a565b5b61291982612340565b9050602081019050919050565b82818337600083830152505050565b6000612948612943846128f5565b6128da565b90508281526020810184848401111561296457612963612875565b5b61296f848285612926565b509392505050565b600082601f83011261298c5761298b6126c7565b5b813561299c848260208601612935565b91505092915050565b600080600080608085870312156129bf576129be612235565b5b60006129cd87828801612482565b94505060206129de87828801612482565b93505060406129ef878288016123cd565b925050606085013567ffffffffffffffff811115612a1057612a0f61223a565b5b612a1c87828801612977565b91505092959194509250565b612a318161264d565b82525050565b6000602082019050612a4c6000830184612a28565b92915050565b60008060408385031215612a6957612a68612235565b5b6000612a7785828601612482565b9250506020612a8885828601612482565b9150509250929050565b6000819050919050565b612aa581612a92565b82525050565b6000602082019050612ac06000830184612a9c565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612b0d57607f821691505b602082108103612b2057612b1f612ac6565b5b50919050565b7f596f7520646f6e2774206861766520746865206d616e6167657220726967687460008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000612b82602183612305565b9150612b8d82612b26565b604082019050919050565b60006020820190508181036000830152612bb181612b75565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612bf28261264d565b9150612bfd8361264d565b9250828201905061ffff811115612c1757612c16612bb8565b5b92915050565b7f52656163686564206d617820737570706c790000000000000000000000000000600082015250565b6000612c53601283612305565b9150612c5e82612c1d565b602082019050919050565b60006020820190508181036000830152612c8281612c46565b9050919050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302612cf67fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612cb9565b612d008683612cb9565b95508019841693508086168417925050509392505050565b6000819050919050565b6000612d3d612d38612d33846123ac565b612d18565b6123ac565b9050919050565b6000819050919050565b612d5783612d22565b612d6b612d6382612d44565b848454612cc6565b825550505050565b600090565b612d80612d73565b612d8b818484612d4e565b505050565b5b81811015612daf57612da4600082612d78565b600181019050612d91565b5050565b601f821115612df457612dc581612c94565b612dce84612ca9565b81016020851015612ddd578190505b612df1612de985612ca9565b830182612d90565b50505b505050565b600082821c905092915050565b6000612e1760001984600802612df9565b1980831691505092915050565b6000612e308383612e06565b9150826002028217905092915050565b612e4a8383612c89565b67ffffffffffffffff811115612e6357612e6261287a565b5b612e6d8254612af5565b612e78828285612db3565b6000601f831160018114612ea75760008415612e95578287013590505b612e9f8582612e24565b865550612f07565b601f198416612eb586612c94565b60005b82811015612edd57848901358255600182019150602085019450602081019050612eb8565b86831015612efa5784890135612ef6601f891682612e06565b8355505b6001600288020188555050505b50505050505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612f46601f83612305565b9150612f5182612f10565b602082019050919050565b60006020820190508181036000830152612f7581612f39565b9050919050565b6000612f878261264d565b9150612f928361264d565b9250828203905061ffff811115612fac57612fab612bb8565b5b92915050565b6000612fbd826123ac565b9150612fc8836123ac565b9250828201905080821115612fe057612fdf612bb8565b5b92915050565b7f457863656564696e67206d696e74696e67206c696d69747320666f722074686960008201527f73206163636f756e7420647572696e672063757272656e742073616c6520737460208201527f6167650000000000000000000000000000000000000000000000000000000000604082015250565b6000613068604383612305565b915061307382612fe6565b606082019050919050565b600060208201905081810360008301526130978161305b565b9050919050565b7f416e206163636f756e74206973206e6f74206f6e20612077686974656c697374600082015250565b60006130d4602083612305565b91506130df8261309e565b602082019050919050565b60006020820190508181036000830152613103816130c7565b9050919050565b6000613115826123ac565b9150613120836123ac565b925082820390508181111561313857613137612bb8565b5b92915050565b600081905092915050565b6000613154826122fa565b61315e818561313e565b935061316e818560208601612316565b80840191505092915050565b60006131868285613149565b91506131928284613149565b91508190509392505050565b6000815190506131ad81612809565b92915050565b6000602082840312156131c9576131c8612235565b5b60006131d78482850161319e565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061323c602683612305565b9150613247826131e0565b604082019050919050565b6000602082019050818103600083015261326b8161322f565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006132a8602083612305565b91506132b382613272565b602082019050919050565b600060208201905081810360008301526132d78161329b565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613305826132de565b61330f81856132e9565b935061331f818560208601612316565b61332881612340565b840191505092915050565b60006080820190506133486000830187612441565b6133556020830186612441565b6133626040830185612596565b818103606083015261337481846132fa565b905095945050505050565b60008151905061338e8161226b565b92915050565b6000602082840312156133aa576133a9612235565b5b60006133b88482850161337f565b9150509291505056fea26469706673582212203d4b78df42df6961458495c6fe9e9d71e2c6aab48fffe1a0c90f63a9648aca3264736f6c63430008100033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000b21758898eee09960fcb0fef6ebea6ff7bbcb7200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000003000000000000000000000000fc4a8d528ed8468560f463a1c525f3849c74841a000000000000000000000000c444422c00a8d7407d287feb579a2a25f54e1e360000000000000000000000009d90f6ab6f851c08c29867917f20b5b314dd9f25
-----Decoded View---------------
Arg [0] : whitelistContract (address): 0x0b21758898eeE09960FCb0FeF6eBEa6Ff7BBCB72
Arg [1] : managers (address[]): 0xFc4a8d528ed8468560f463A1c525f3849C74841A,0xc444422C00a8D7407D287FEb579A2a25F54e1E36,0x9D90f6AB6f851c08c29867917f20b5b314Dd9f25
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000b21758898eee09960fcb0fef6ebea6ff7bbcb72
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [3] : 000000000000000000000000fc4a8d528ed8468560f463a1c525f3849c74841a
Arg [4] : 000000000000000000000000c444422c00a8d7407d287feb579a2a25f54e1e36
Arg [5] : 0000000000000000000000009d90f6ab6f851c08c29867917f20b5b314dd9f25
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.