ERC-721
Overview
Max Total Supply
2,000 KOTG
Holders
126
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
5 KOTGLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
KOTG
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/* ▄████ ,████ ,╓███████▄, ╒█████████████████╕ ,▄██████▄, ████ ,████▀ ▄██████▀███████ ▐██▀▀▀▀█████▀▀▀▀▀▀▌ ,██████▀▀██████ ████ ,████▀ ,████` ████▄ ███ ▄███▀ ████, ████ ,████▀ ████ ▀███L ███ ╒███▀ ████ █████████, ▐███ ████ ███ ████ ▄█ ▀ ████ ▀████ ████ ████ ███ ████ ▐████████████╖ ████ ▀███╕ ╘███▌ ███▌ ███ ████ ▀▀████████████ ████ ████ ▀███▄ ╓████ ███ ████, ,██ █ ████ ▀███▄ ╙█▀▀██▄,,,╓█████▀ ███ █████▄,,⌐▄█████ █ ████ ████, '████████▀" ███ ▀███████▀ ▀███▀ _ )\ \ / _ \ __| \ | _ _| \ | _ \ _ \ __|__ __|__| _ \ _ \ \ / / _| _ \ | | |\/ | __/( |\__ \ | _| / ___/ _| _|_\___|_/ _\____|___|_| _|_| \___/ ____/ _| ___|_|_\ Creator: REALIMPOSTER Instagram: @realimposter URL: https://kotg.com/about SPDX-License-Identifier: MIT */ pragma solidity ^0.8.4; import {ERC721A} from "erc721a/contracts/ERC721A.sol"; import {ERC721AQueryable} from "erc721a/contracts/extensions/ERC721AQueryable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; contract KOTG is ERC721AQueryable, ReentrancyGuard, Ownable { using ECDSA for bytes32; using Strings for uint256; // Public vars string public baseTokenURI; // Immutable vars uint256 public immutable maxSupply = 2000; // Constructor constructor() ERC721A("KOTG", "KOTG") {} // Validate authorized mint addresses address private signerAddress; mapping (address => uint256) public totalMintsPerAddress; // Public sale vars bool public isPublicMintActive = false; uint256 public price = 0.5 ether; // Airdrop vars bool public isAirdropActive = false; function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "URI query for nonexistent token"); return string(abi.encodePacked(_baseURI(), tokenId.toString(), ".json")); } function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; } /** * To be updated by contract owner to allow updating the mint price */ function setPublicMintPrice(uint256 _newMintPrice) public onlyOwner { require(price != _newMintPrice, "NEW_PRICE_IDENTICAL_TO_OLD_PRICE"); price = _newMintPrice; } /** * Enable/disable public sale */ function setPublicMintState(bool _publicMintActiveState) public onlyOwner { require(isPublicMintActive != _publicMintActiveState, "NEW_STATE_IDENTICAL_TO_OLD_STATE"); isPublicMintActive = _publicMintActiveState; } /** * Enable/disable airdrop minting */ function setAirdropState(bool _airdropActiveState) public onlyOwner { require(isAirdropActive != _airdropActiveState, "NEW_STATE_IDENTICAL_TO_OLD_STATE"); isAirdropActive = _airdropActiveState; } function setSignerAddress(address _signerAddress) external onlyOwner { require(_signerAddress != address(0)); signerAddress = _signerAddress; } /** * Update the base token URI */ function setBaseURI(string calldata _newBaseURI) external onlyOwner { baseTokenURI = _newBaseURI; } function verifyAddressSigner(bytes32 messageHash, bytes memory signature) private view returns (bool) { return signerAddress == messageHash.toEthSignedMessageHash().recover(signature); } function hashMessage(address sender, uint256 maximumAllowedMints) private pure returns (bytes32) { return keccak256(abi.encode(sender, maximumAllowedMints)); } /** * @notice Allow for airdrop minting of properties up to the maximum allowed for a given address. * The address of the sender and the number of mints allowed are verified by signature */ function claimAirdrop( bytes32 messageHash, bytes calldata signature, uint256 mintNumber, uint256 maximumAllowedMints ) external virtual nonReentrant { require(isAirdropActive, "AIRDROP_IS_NOT_ACTIVE"); require(totalMintsPerAddress[msg.sender] + mintNumber <= maximumAllowedMints, "MINT_TOO_LARGE"); require(hashMessage(msg.sender, maximumAllowedMints) == messageHash, "MESSAGE_INVALID"); require(verifyAddressSigner(messageHash, signature), "SIGNATURE_VALIDATION_FAILED"); uint256 currentSupply = totalSupply(); require(currentSupply + mintNumber <= maxSupply, "NOT_ENOUGH_MINTS_AVAILABLE"); totalMintsPerAddress[msg.sender] += mintNumber; _safeMint(msg.sender, mintNumber); if (currentSupply + mintNumber >= maxSupply) { isAirdropActive = false; } } /** * @notice Allow for public sale of tokens. */ function publicMint(uint256 mintNumber) external payable virtual nonReentrant { require(isPublicMintActive, "PUBLIC_SALE_IS_NOT_ACTIVE"); // Check for correct price within margin. Front-end should utilize BigNumber for safe precision require(msg.value >= ((price * mintNumber) - 0.0001 ether) && msg.value <= ((price * mintNumber) + 0.0001 ether), "INVALID_PRICE"); uint256 currentSupply = totalSupply(); require(currentSupply + mintNumber <= maxSupply, "NOT_ENOUGH_MINTS_AVAILABLE"); _safeMint(msg.sender, mintNumber); if (currentSupply + mintNumber >= maxSupply) { isPublicMintActive = false; } } /** * @notice Allow owner to send `mintNumber` tokens without cost to multiple addresses */ function gift(address[] calldata receivers, uint256 mintNumber) external onlyOwner { require((totalSupply() + (receivers.length * mintNumber)) <= maxSupply, "MINT_TOO_LARGE"); for (uint256 i = 0; i < receivers.length; i++) { _safeMint(receivers[i], mintNumber); } } /** * @notice Allow contract owner to withdraw funds. */ function withdraw(address transferTo, uint256 amount) external onlyOwner { payable(transferTo).transfer(amount); } }
// 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; import './IERC721AQueryable.sol'; import '../ERC721A.sol'; /** * @title ERC721AQueryable. * * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // 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 // ERC721A Contracts v4.2.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of ERC721AQueryable. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); }
// SPDX-License-Identifier: MIT // 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" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"messageHash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"mintNumber","type":"uint256"},{"internalType":"uint256","name":"maximumAllowedMints","type":"uint256"}],"name":"claimAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"},{"internalType":"uint256","name":"mintNumber","type":"uint256"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isAirdropActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintNumber","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_airdropActiveState","type":"bool"}],"name":"setAirdropState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMintPrice","type":"uint256"}],"name":"setPublicMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_publicMintActiveState","type":"bool"}],"name":"setPublicMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signerAddress","type":"address"}],"name":"setSignerAddress","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalMintsPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"transferTo","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040526107d06080908152506000600d60006101000a81548160ff0219169083151502179055506706f05b59d3b20000600e556000600f60006101000a81548160ff0219169083151502179055503480156200005c57600080fd5b506040518060400160405280600481526020017f4b4f5447000000000000000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f4b4f5447000000000000000000000000000000000000000000000000000000008152508160029080519060200190620000e192919062000214565b508060039080519060200190620000fa92919062000214565b506200010b6200014160201b60201c565b600081905550505060016008819055506200013b6200012f6200014660201b60201c565b6200014e60201b60201c565b62000329565b600090565b600033905090565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200022290620002c4565b90600052602060002090601f01602090048101928262000246576000855562000292565b82601f106200026157805160ff191683800117855562000292565b8280016001018555821562000292579182015b828111156200029157825182559160200191906001019062000274565b5b509050620002a19190620002a5565b5090565b5b80821115620002c0576000816000905550600101620002a6565b5090565b60006002820490506001821680620002dd57607f821691505b60208210811415620002f457620002f3620002fa565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b608051614d5162000368600039600081816111140152818161118c01528181611bca01528181611c9801528181611f0701526121820152614d516000f3fe60806040526004361061020f5760003560e01c8063879fbedf11610118578063c0f4af70116100a0578063d5abeb011161006f578063d5abeb01146107c2578063e20d810f146107ed578063e985e9c514610818578063f2fde38b14610855578063f3fef3a31461087e5761020f565b8063c0f4af70146106f4578063c23dc68f1461071d578063c87b56dd1461075a578063d547cfb7146107975761020f565b80639f48e577116100e75780639f48e57714610611578063a035b1fe1461063a578063a22cb46514610665578063b88d4fde1461068e578063b9bd2801146106b75761020f565b8063879fbedf146105555780638da5cb5b1461057e57806395d89b41146105a957806399a2557a146105d45761020f565b80632db115441161019b5780635d82cf6e1161016a5780635d82cf6e1461045e5780636352211e1461048757806370a08231146104c4578063715018a6146105015780638462151c146105185761020f565b80632db11544146103b357806342842e0e146103cf57806355f804b3146103f85780635bbb2177146104215761020f565b8063095ea7b3116101e2578063095ea7b3146102e257806317414f961461030b57806318160ddd1461033457806323b872dd1461035f5780632d6b6224146103885761020f565b806301ffc9a714610214578063046dc1661461025157806306fdde031461027a578063081812fc146102a5575b600080fd5b34801561022057600080fd5b5061023b60048036038101906102369190613a27565b6108a7565b604051610248919061418f565b60405180910390f35b34801561025d57600080fd5b50610278600480360381019061027391906136eb565b610939565b005b34801561028657600080fd5b5061028f6109bf565b60405161029c91906141ef565b60405180910390f35b3480156102b157600080fd5b506102cc60048036038101906102c79190613abe565b610a51565b6040516102d991906140bb565b60405180910390f35b3480156102ee57600080fd5b5061030960048036038101906103049190613856565b610ad0565b005b34801561031757600080fd5b50610332600480360381019061032d919061397e565b610c14565b005b34801561034057600080fd5b50610349610c8f565b604051610356919061444c565b60405180910390f35b34801561036b57600080fd5b5061038660048036038101906103819190613750565b610ca6565b005b34801561039457600080fd5b5061039d610fcb565b6040516103aa919061418f565b60405180910390f35b6103cd60048036038101906103c89190613abe565b610fde565b005b3480156103db57600080fd5b506103f660048036038101906103f19190613750565b6111e4565b005b34801561040457600080fd5b5061041f600480360381019061041a9190613a79565b611204565b005b34801561042d57600080fd5b5061044860048036038101906104439190613939565b611222565b604051610455919061414b565b60405180910390f35b34801561046a57600080fd5b5061048560048036038101906104809190613abe565b611357565b005b34801561049357600080fd5b506104ae60048036038101906104a99190613abe565b6113ae565b6040516104bb91906140bb565b60405180910390f35b3480156104d057600080fd5b506104eb60048036038101906104e691906136eb565b6113c0565b6040516104f8919061444c565b60405180910390f35b34801561050d57600080fd5b50610516611479565b005b34801561052457600080fd5b5061053f600480360381019061053a91906136eb565b61148d565b60405161054c919061416d565b60405180910390f35b34801561056157600080fd5b5061057c6004803603810190610577919061397e565b611623565b005b34801561058a57600080fd5b5061059361169e565b6040516105a091906140bb565b60405180910390f35b3480156105b557600080fd5b506105be6116c8565b6040516105cb91906141ef565b60405180910390f35b3480156105e057600080fd5b506105fb60048036038101906105f69190613892565b61175a565b604051610608919061416d565b60405180910390f35b34801561061d57600080fd5b50610638600480360381019061063391906139a7565b6119ba565b005b34801561064657600080fd5b5061064f611cf4565b60405161065c919061444c565b60405180910390f35b34801561067157600080fd5b5061068c6004803603810190610687919061381a565b611cfa565b005b34801561069a57600080fd5b506106b560048036038101906106b0919061379f565b611e72565b005b3480156106c357600080fd5b506106de60048036038101906106d991906136eb565b611ee5565b6040516106eb919061444c565b60405180910390f35b34801561070057600080fd5b5061071b600480360381019061071691906138e1565b611efd565b005b34801561072957600080fd5b50610744600480360381019061073f9190613abe565b612006565b6040516107519190614431565b60405180910390f35b34801561076657600080fd5b50610781600480360381019061077c9190613abe565b612070565b60405161078e91906141ef565b60405180910390f35b3480156107a357600080fd5b506107ac6120f2565b6040516107b991906141ef565b60405180910390f35b3480156107ce57600080fd5b506107d7612180565b6040516107e4919061444c565b60405180910390f35b3480156107f957600080fd5b506108026121a4565b60405161080f919061418f565b60405180910390f35b34801561082457600080fd5b5061083f600480360381019061083a9190613714565b6121b7565b60405161084c919061418f565b60405180910390f35b34801561086157600080fd5b5061087c600480360381019061087791906136eb565b61224b565b005b34801561088a57600080fd5b506108a560048036038101906108a09190613856565b6122cf565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061090257506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109325750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610941612322565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561097b57600080fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060600280546109ce90614777565b80601f01602080910402602001604051908101604052809291908181526020018280546109fa90614777565b8015610a475780601f10610a1c57610100808354040283529160200191610a47565b820191906000526020600020905b815481529060010190602001808311610a2a57829003601f168201915b5050505050905090565b6000610a5c826123a0565b610a92576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610adb826113ae565b90508073ffffffffffffffffffffffffffffffffffffffff16610afc6123ff565b73ffffffffffffffffffffffffffffffffffffffff1614610b5f57610b2881610b236123ff565b6121b7565b610b5e576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610c1c612322565b801515600f60009054906101000a900460ff1615151415610c72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6990614371565b60405180910390fd5b80600f60006101000a81548160ff02191690831515021790555050565b6000610c99612407565b6001546000540303905090565b6000610cb18261240c565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d18576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610d24846124da565b91509150610d3a8187610d356123ff565b612501565b610d8657610d4f86610d4a6123ff565b6121b7565b610d85576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610ded576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610dfa8686866001612545565b8015610e0557600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610ed385610eaf88888761254b565b7c020000000000000000000000000000000000000000000000000000000017612573565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610f5b576000600185019050600060046000838152602001908152602001600020541415610f59576000548114610f58578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610fc3868686600161259e565b505050505050565b600d60009054906101000a900460ff1681565b60026008541415611024576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101b90614411565b60405180910390fd5b6002600881905550600d60009054906101000a900460ff1661107b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107290614271565b60405180910390fd5b655af3107a400081600e5461109091906145f9565b61109a9190614653565b34101580156110c75750655af3107a400081600e546110b991906145f9565b6110c39190614572565b3411155b611106576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110fd90614311565b60405180910390fd5b6000611110610c8f565b90507f0000000000000000000000000000000000000000000000000000000000000000828261113f9190614572565b1115611180576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117790614231565b60405180910390fd5b61118a33836125a4565b7f000000000000000000000000000000000000000000000000000000000000000082826111b79190614572565b106111d8576000600d60006101000a81548160ff0219169083151502179055505b50600160088190555050565b6111ff83838360405180602001604052806000815250611e72565b505050565b61120c612322565b8181600a919061121d9291906133eb565b505050565b6060600083839050905060008167ffffffffffffffff81111561126e577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156112a757816020015b611294613471565b81526020019060019003908161128c5790505b50905060005b82811461134b576112fc8686838181106112f0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135612006565b828281518110611335577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101819052508060010190506112ad565b50809250505092915050565b61135f612322565b80600e5414156113a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139b90614251565b60405180910390fd5b80600e8190555050565b60006113b98261240c565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611428576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611481612322565b61148b60006125c2565b565b6060600080600061149d856113c0565b905060008167ffffffffffffffff8111156114e1577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561150f5781602001602082028036833780820191505090505b50905061151a613471565b6000611524612407565b90505b8386146116155761153781612688565b91508160400151156115485761160a565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461158857816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561160957808387806001019850815181106115fc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250505b5b806001019050611527565b508195505050505050919050565b61162b612322565b801515600d60009054906101000a900460ff1615151415611681576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167890614371565b60405180910390fd5b80600d60006101000a81548160ff02191690831515021790555050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546116d790614777565b80601f016020809104026020016040519081016040528092919081815260200182805461170390614777565b80156117505780601f1061172557610100808354040283529160200191611750565b820191906000526020600020905b81548152906001019060200180831161173357829003601f168201915b5050505050905090565b6060818310611795576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806117a06126b3565b90506117aa612407565b8510156117bc576117b9612407565b94505b808411156117c8578093505b60006117d3876113c0565b9050848610156117f65760008686039050818110156117f0578091505b506117fb565b600090505b60008167ffffffffffffffff81111561183d577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561186b5781602001602082028036833780820191505090505b509050600082141561188357809450505050506119b3565b600061188e88612006565b9050600081604001516118a357816000015190505b60008990505b8881141580156118b95750848714155b156119a5576118c781612688565b92508260400151156118d85761199a565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff161461191857826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611999578084888060010199508151811061198c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250505b5b8060010190506118a9565b508583528296505050505050505b9392505050565b60026008541415611a00576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f790614411565b60405180910390fd5b6002600881905550600f60009054906101000a900460ff16611a57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4e906143d1565b60405180910390fd5b8082600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611aa39190614572565b1115611ae4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611adb906143f1565b60405180910390fd5b84611aef33836126bc565b14611b2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b26906142f1565b60405180910390fd5b611b7d8585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506126ef565b611bbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb390614351565b60405180910390fd5b6000611bc6610c8f565b90507f00000000000000000000000000000000000000000000000000000000000000008382611bf59190614572565b1115611c36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2d90614231565b60405180910390fd5b82600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c859190614572565b92505081905550611c9633846125a4565b7f00000000000000000000000000000000000000000000000000000000000000008382611cc39190614572565b10611ce4576000600f60006101000a81548160ff0219169083151502179055505b5060016008819055505050505050565b600e5481565b611d026123ff565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d67576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611d746123ff565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611e216123ff565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e66919061418f565b60405180910390a35050565b611e7d848484610ca6565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611edf57611ea884848484612764565b611ede576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600c6020528060005260406000206000915090505481565b611f05612322565b7f00000000000000000000000000000000000000000000000000000000000000008184849050611f3591906145f9565b611f3d610c8f565b611f479190614572565b1115611f88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7f906143f1565b60405180910390fd5b60005b8383905081101561200057611fed848483818110611fd2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002016020810190611fe791906136eb565b836125a4565b8080611ff8906147da565b915050611f8b565b50505050565b61200e613471565b612016613471565b61201e612407565b831080612032575061202e6126b3565b8310155b15612040578091505061206b565b61204983612688565b905080604001511561205e578091505061206b565b612067836128c4565b9150505b919050565b606061207b826123a0565b6120ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b1906142b1565b60405180910390fd5b6120c26128e4565b6120cb83612976565b6040516020016120dc929190614066565b6040516020818303038152906040529050919050565b600a80546120ff90614777565b80601f016020809104026020016040519081016040528092919081815260200182805461212b90614777565b80156121785780601f1061214d57610100808354040283529160200191612178565b820191906000526020600020905b81548152906001019060200180831161215b57829003601f168201915b505050505081565b7f000000000000000000000000000000000000000000000000000000000000000081565b600f60009054906101000a900460ff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612253612322565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156122c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ba906142d1565b60405180910390fd5b6122cc816125c2565b50565b6122d7612322565b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561231d573d6000803e3d6000fd5b505050565b61232a612b23565b73ffffffffffffffffffffffffffffffffffffffff1661234861169e565b73ffffffffffffffffffffffffffffffffffffffff161461239e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612395906143b1565b60405180910390fd5b565b6000816123ab612407565b111580156123ba575060005482105b80156123f8575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b6000808290508061241b612407565b116124a3576000548110156124a25760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821614156124a0575b600081141561249657600460008360019003935083815260200190815260200160002054905061246b565b80925050506124d5565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612562868684612b2b565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6125be828260405180602001604052806000815250612b34565b5050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612690613471565b6126ac6004600084815260200190815260200160002054612bd1565b9050919050565b60008054905090565b600082826040516020016126d1929190614122565b60405160208183030381529060405280519060200120905092915050565b600061270c826126fe85612c87565b612cb790919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261278a6123ff565b8786866040518563ffffffff1660e01b81526004016127ac94939291906140d6565b602060405180830381600087803b1580156127c657600080fd5b505af19250505080156127f757506040513d601f19601f820116820180604052508101906127f49190613a50565b60015b612871573d8060008114612827576040519150601f19603f3d011682016040523d82523d6000602084013e61282c565b606091505b50600081511415612869576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6128cc613471565b6128dd6128d88361240c565b612bd1565b9050919050565b6060600a80546128f390614777565b80601f016020809104026020016040519081016040528092919081815260200182805461291f90614777565b801561296c5780601f106129415761010080835404028352916020019161296c565b820191906000526020600020905b81548152906001019060200180831161294f57829003601f168201915b5050505050905090565b606060008214156129be576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612b1e565b600082905060005b600082146129f05780806129d9906147da565b915050600a826129e991906145c8565b91506129c6565b60008167ffffffffffffffff811115612a32577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612a645781602001600182028036833780820191505090505b5090505b60008514612b1757600182612a7d9190614653565b9150600a85612a8c919061482d565b6030612a989190614572565b60f81b818381518110612ad4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612b1091906145c8565b9450612a68565b8093505050505b919050565b600033905090565b60009392505050565b612b3e8383612cde565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612bcc57600080549050600083820390505b612b7e6000868380600101945086612764565b612bb4576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612b6b578160005414612bc957600080fd5b50505b505050565b612bd9613471565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b600081604051602001612c9a9190614095565b604051602081830303815290604052805190602001209050919050565b6000806000612cc68585612e9b565b91509150612cd381612f1e565b819250505092915050565b6000805490506000821415612d1f576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612d2c6000848385612545565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612da383612d94600086600061254b565b612d9d8561326f565b17612573565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612e4457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612e09565b506000821415612e80576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050612e96600084838561259e565b505050565b600080604183511415612edd5760008060006020860151925060408601519150606086015160001a9050612ed18782858561327f565b94509450505050612f17565b604083511415612f0e576000806020850151915060408501519050612f0386838361338c565b935093505050612f17565b60006002915091505b9250929050565b60006004811115612f58577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612f91577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415612f9c5761326c565b60016004811115612fd6577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561300f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613050576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161304790614211565b60405180910390fd5b6002600481111561308a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156130c3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613104576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130fb90614291565b60405180910390fd5b6003600481111561313e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613177577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156131b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131af90614331565b60405180910390fd5b6004808111156131f1577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561322a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561326b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161326290614391565b60405180910390fd5b5b50565b60006001821460e11b9050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156132ba576000600391509150613383565b601b8560ff16141580156132d25750601c8560ff1614155b156132e4576000600491509150613383565b60006001878787876040516000815260200160405260405161330994939291906141aa565b6020604051602081039080840390855afa15801561332b573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561337a57600060019250925050613383565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c6133cf9190614572565b90506133dd8782888561327f565b935093505050935093915050565b8280546133f790614777565b90600052602060002090601f0160209004810192826134195760008555613460565b82601f1061343257803560ff1916838001178555613460565b82800160010185558215613460579182015b8281111561345f578235825591602001919060010190613444565b5b50905061346d91906134c0565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b808211156134d95760008160009055506001016134c1565b5090565b60006134f06134eb8461448c565b614467565b90508281526020810184848401111561350857600080fd5b613513848285614735565b509392505050565b60008135905061352a81614ca8565b92915050565b60008083601f84011261354257600080fd5b8235905067ffffffffffffffff81111561355b57600080fd5b60208301915083602082028301111561357357600080fd5b9250929050565b60008083601f84011261358c57600080fd5b8235905067ffffffffffffffff8111156135a557600080fd5b6020830191508360208202830111156135bd57600080fd5b9250929050565b6000813590506135d381614cbf565b92915050565b6000813590506135e881614cd6565b92915050565b6000813590506135fd81614ced565b92915050565b60008151905061361281614ced565b92915050565b60008083601f84011261362a57600080fd5b8235905067ffffffffffffffff81111561364357600080fd5b60208301915083600182028301111561365b57600080fd5b9250929050565b600082601f83011261367357600080fd5b81356136838482602086016134dd565b91505092915050565b60008083601f84011261369e57600080fd5b8235905067ffffffffffffffff8111156136b757600080fd5b6020830191508360018202830111156136cf57600080fd5b9250929050565b6000813590506136e581614d04565b92915050565b6000602082840312156136fd57600080fd5b600061370b8482850161351b565b91505092915050565b6000806040838503121561372757600080fd5b60006137358582860161351b565b92505060206137468582860161351b565b9150509250929050565b60008060006060848603121561376557600080fd5b60006137738682870161351b565b93505060206137848682870161351b565b9250506040613795868287016136d6565b9150509250925092565b600080600080608085870312156137b557600080fd5b60006137c38782880161351b565b94505060206137d48782880161351b565b93505060406137e5878288016136d6565b925050606085013567ffffffffffffffff81111561380257600080fd5b61380e87828801613662565b91505092959194509250565b6000806040838503121561382d57600080fd5b600061383b8582860161351b565b925050602061384c858286016135c4565b9150509250929050565b6000806040838503121561386957600080fd5b60006138778582860161351b565b9250506020613888858286016136d6565b9150509250929050565b6000806000606084860312156138a757600080fd5b60006138b58682870161351b565b93505060206138c6868287016136d6565b92505060406138d7868287016136d6565b9150509250925092565b6000806000604084860312156138f657600080fd5b600084013567ffffffffffffffff81111561391057600080fd5b61391c86828701613530565b9350935050602061392f868287016136d6565b9150509250925092565b6000806020838503121561394c57600080fd5b600083013567ffffffffffffffff81111561396657600080fd5b6139728582860161357a565b92509250509250929050565b60006020828403121561399057600080fd5b600061399e848285016135c4565b91505092915050565b6000806000806000608086880312156139bf57600080fd5b60006139cd888289016135d9565b955050602086013567ffffffffffffffff8111156139ea57600080fd5b6139f688828901613618565b94509450506040613a09888289016136d6565b9250506060613a1a888289016136d6565b9150509295509295909350565b600060208284031215613a3957600080fd5b6000613a47848285016135ee565b91505092915050565b600060208284031215613a6257600080fd5b6000613a7084828501613603565b91505092915050565b60008060208385031215613a8c57600080fd5b600083013567ffffffffffffffff811115613aa657600080fd5b613ab28582860161368c565b92509250509250929050565b600060208284031215613ad057600080fd5b6000613ade848285016136d6565b91505092915050565b6000613af38383613f71565b60808301905092915050565b6000613b0b838361402a565b60208301905092915050565b613b2081614687565b82525050565b613b2f81614687565b82525050565b6000613b40826144dd565b613b4a8185614523565b9350613b55836144bd565b8060005b83811015613b86578151613b6d8882613ae7565b9750613b7883614509565b925050600181019050613b59565b5085935050505092915050565b6000613b9e826144e8565b613ba88185614534565b9350613bb3836144cd565b8060005b83811015613be4578151613bcb8882613aff565b9750613bd683614516565b925050600181019050613bb7565b5085935050505092915050565b613bfa81614699565b82525050565b613c0981614699565b82525050565b613c18816146a5565b82525050565b613c2f613c2a826146a5565b614823565b82525050565b6000613c40826144f3565b613c4a8185614545565b9350613c5a818560208601614744565b613c638161491a565b840191505092915050565b6000613c79826144fe565b613c838185614556565b9350613c93818560208601614744565b613c9c8161491a565b840191505092915050565b6000613cb2826144fe565b613cbc8185614567565b9350613ccc818560208601614744565b80840191505092915050565b6000613ce5601883614556565b9150613cf08261492b565b602082019050919050565b6000613d08601a83614556565b9150613d1382614954565b602082019050919050565b6000613d2b602083614556565b9150613d368261497d565b602082019050919050565b6000613d4e601983614556565b9150613d59826149a6565b602082019050919050565b6000613d71601f83614556565b9150613d7c826149cf565b602082019050919050565b6000613d94601c83614567565b9150613d9f826149f8565b601c82019050919050565b6000613db7601f83614556565b9150613dc282614a21565b602082019050919050565b6000613dda602683614556565b9150613de582614a4a565b604082019050919050565b6000613dfd600f83614556565b9150613e0882614a99565b602082019050919050565b6000613e20600d83614556565b9150613e2b82614ac2565b602082019050919050565b6000613e43602283614556565b9150613e4e82614aeb565b604082019050919050565b6000613e66601b83614556565b9150613e7182614b3a565b602082019050919050565b6000613e89602083614556565b9150613e9482614b63565b602082019050919050565b6000613eac602283614556565b9150613eb782614b8c565b604082019050919050565b6000613ecf600583614567565b9150613eda82614bdb565b600582019050919050565b6000613ef2602083614556565b9150613efd82614c04565b602082019050919050565b6000613f15601583614556565b9150613f2082614c2d565b602082019050919050565b6000613f38600e83614556565b9150613f4382614c56565b602082019050919050565b6000613f5b601f83614556565b9150613f6682614c7f565b602082019050919050565b608082016000820151613f876000850182613b17565b506020820151613f9a6020850182614048565b506040820151613fad6040850182613bf1565b506060820151613fc0606085018261401b565b50505050565b608082016000820151613fdc6000850182613b17565b506020820151613fef6020850182614048565b5060408201516140026040850182613bf1565b506060820151614015606085018261401b565b50505050565b614024816146fb565b82525050565b6140338161470a565b82525050565b6140428161470a565b82525050565b61405181614714565b82525050565b61406081614728565b82525050565b60006140728285613ca7565b915061407e8284613ca7565b915061408982613ec2565b91508190509392505050565b60006140a082613d87565b91506140ac8284613c1e565b60208201915081905092915050565b60006020820190506140d06000830184613b26565b92915050565b60006080820190506140eb6000830187613b26565b6140f86020830186613b26565b6141056040830185614039565b81810360608301526141178184613c35565b905095945050505050565b60006040820190506141376000830185613b26565b6141446020830184614039565b9392505050565b600060208201905081810360008301526141658184613b35565b905092915050565b600060208201905081810360008301526141878184613b93565b905092915050565b60006020820190506141a46000830184613c00565b92915050565b60006080820190506141bf6000830187613c0f565b6141cc6020830186614057565b6141d96040830185613c0f565b6141e66060830184613c0f565b95945050505050565b600060208201905081810360008301526142098184613c6e565b905092915050565b6000602082019050818103600083015261422a81613cd8565b9050919050565b6000602082019050818103600083015261424a81613cfb565b9050919050565b6000602082019050818103600083015261426a81613d1e565b9050919050565b6000602082019050818103600083015261428a81613d41565b9050919050565b600060208201905081810360008301526142aa81613d64565b9050919050565b600060208201905081810360008301526142ca81613daa565b9050919050565b600060208201905081810360008301526142ea81613dcd565b9050919050565b6000602082019050818103600083015261430a81613df0565b9050919050565b6000602082019050818103600083015261432a81613e13565b9050919050565b6000602082019050818103600083015261434a81613e36565b9050919050565b6000602082019050818103600083015261436a81613e59565b9050919050565b6000602082019050818103600083015261438a81613e7c565b9050919050565b600060208201905081810360008301526143aa81613e9f565b9050919050565b600060208201905081810360008301526143ca81613ee5565b9050919050565b600060208201905081810360008301526143ea81613f08565b9050919050565b6000602082019050818103600083015261440a81613f2b565b9050919050565b6000602082019050818103600083015261442a81613f4e565b9050919050565b60006080820190506144466000830184613fc6565b92915050565b60006020820190506144616000830184614039565b92915050565b6000614471614482565b905061447d82826147a9565b919050565b6000604051905090565b600067ffffffffffffffff8211156144a7576144a66148eb565b5b6144b08261491a565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061457d8261470a565b91506145888361470a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156145bd576145bc61485e565b5b828201905092915050565b60006145d38261470a565b91506145de8361470a565b9250826145ee576145ed61488d565b5b828204905092915050565b60006146048261470a565b915061460f8361470a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156146485761464761485e565b5b828202905092915050565b600061465e8261470a565b91506146698361470a565b92508282101561467c5761467b61485e565b5b828203905092915050565b6000614692826146db565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015614762578082015181840152602081019050614747565b83811115614771576000848401525b50505050565b6000600282049050600182168061478f57607f821691505b602082108114156147a3576147a26148bc565b5b50919050565b6147b28261491a565b810181811067ffffffffffffffff821117156147d1576147d06148eb565b5b80604052505050565b60006147e58261470a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156148185761481761485e565b5b600182019050919050565b6000819050919050565b60006148388261470a565b91506148438361470a565b9250826148535761485261488d565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f4e4f545f454e4f5547485f4d494e54535f415641494c41424c45000000000000600082015250565b7f4e45575f50524943455f4944454e544943414c5f544f5f4f4c445f5052494345600082015250565b7f5055424c49435f53414c455f49535f4e4f545f41435449564500000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4d4553534147455f494e56414c49440000000000000000000000000000000000600082015250565b7f494e56414c49445f505249434500000000000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f5349474e41545552455f56414c49444154494f4e5f4641494c45440000000000600082015250565b7f4e45575f53544154455f4944454e544943414c5f544f5f4f4c445f5354415445600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f41495244524f505f49535f4e4f545f4143544956450000000000000000000000600082015250565b7f4d494e545f544f4f5f4c41524745000000000000000000000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b614cb181614687565b8114614cbc57600080fd5b50565b614cc881614699565b8114614cd357600080fd5b50565b614cdf816146a5565b8114614cea57600080fd5b50565b614cf6816146af565b8114614d0157600080fd5b50565b614d0d8161470a565b8114614d1857600080fd5b5056fea2646970667358221220032963dfb1bef26caef5534993d39fc2d88bab1037e2967dc1f4f17bebe6d63f64736f6c63430008040033
Deployed Bytecode
0x60806040526004361061020f5760003560e01c8063879fbedf11610118578063c0f4af70116100a0578063d5abeb011161006f578063d5abeb01146107c2578063e20d810f146107ed578063e985e9c514610818578063f2fde38b14610855578063f3fef3a31461087e5761020f565b8063c0f4af70146106f4578063c23dc68f1461071d578063c87b56dd1461075a578063d547cfb7146107975761020f565b80639f48e577116100e75780639f48e57714610611578063a035b1fe1461063a578063a22cb46514610665578063b88d4fde1461068e578063b9bd2801146106b75761020f565b8063879fbedf146105555780638da5cb5b1461057e57806395d89b41146105a957806399a2557a146105d45761020f565b80632db115441161019b5780635d82cf6e1161016a5780635d82cf6e1461045e5780636352211e1461048757806370a08231146104c4578063715018a6146105015780638462151c146105185761020f565b80632db11544146103b357806342842e0e146103cf57806355f804b3146103f85780635bbb2177146104215761020f565b8063095ea7b3116101e2578063095ea7b3146102e257806317414f961461030b57806318160ddd1461033457806323b872dd1461035f5780632d6b6224146103885761020f565b806301ffc9a714610214578063046dc1661461025157806306fdde031461027a578063081812fc146102a5575b600080fd5b34801561022057600080fd5b5061023b60048036038101906102369190613a27565b6108a7565b604051610248919061418f565b60405180910390f35b34801561025d57600080fd5b50610278600480360381019061027391906136eb565b610939565b005b34801561028657600080fd5b5061028f6109bf565b60405161029c91906141ef565b60405180910390f35b3480156102b157600080fd5b506102cc60048036038101906102c79190613abe565b610a51565b6040516102d991906140bb565b60405180910390f35b3480156102ee57600080fd5b5061030960048036038101906103049190613856565b610ad0565b005b34801561031757600080fd5b50610332600480360381019061032d919061397e565b610c14565b005b34801561034057600080fd5b50610349610c8f565b604051610356919061444c565b60405180910390f35b34801561036b57600080fd5b5061038660048036038101906103819190613750565b610ca6565b005b34801561039457600080fd5b5061039d610fcb565b6040516103aa919061418f565b60405180910390f35b6103cd60048036038101906103c89190613abe565b610fde565b005b3480156103db57600080fd5b506103f660048036038101906103f19190613750565b6111e4565b005b34801561040457600080fd5b5061041f600480360381019061041a9190613a79565b611204565b005b34801561042d57600080fd5b5061044860048036038101906104439190613939565b611222565b604051610455919061414b565b60405180910390f35b34801561046a57600080fd5b5061048560048036038101906104809190613abe565b611357565b005b34801561049357600080fd5b506104ae60048036038101906104a99190613abe565b6113ae565b6040516104bb91906140bb565b60405180910390f35b3480156104d057600080fd5b506104eb60048036038101906104e691906136eb565b6113c0565b6040516104f8919061444c565b60405180910390f35b34801561050d57600080fd5b50610516611479565b005b34801561052457600080fd5b5061053f600480360381019061053a91906136eb565b61148d565b60405161054c919061416d565b60405180910390f35b34801561056157600080fd5b5061057c6004803603810190610577919061397e565b611623565b005b34801561058a57600080fd5b5061059361169e565b6040516105a091906140bb565b60405180910390f35b3480156105b557600080fd5b506105be6116c8565b6040516105cb91906141ef565b60405180910390f35b3480156105e057600080fd5b506105fb60048036038101906105f69190613892565b61175a565b604051610608919061416d565b60405180910390f35b34801561061d57600080fd5b50610638600480360381019061063391906139a7565b6119ba565b005b34801561064657600080fd5b5061064f611cf4565b60405161065c919061444c565b60405180910390f35b34801561067157600080fd5b5061068c6004803603810190610687919061381a565b611cfa565b005b34801561069a57600080fd5b506106b560048036038101906106b0919061379f565b611e72565b005b3480156106c357600080fd5b506106de60048036038101906106d991906136eb565b611ee5565b6040516106eb919061444c565b60405180910390f35b34801561070057600080fd5b5061071b600480360381019061071691906138e1565b611efd565b005b34801561072957600080fd5b50610744600480360381019061073f9190613abe565b612006565b6040516107519190614431565b60405180910390f35b34801561076657600080fd5b50610781600480360381019061077c9190613abe565b612070565b60405161078e91906141ef565b60405180910390f35b3480156107a357600080fd5b506107ac6120f2565b6040516107b991906141ef565b60405180910390f35b3480156107ce57600080fd5b506107d7612180565b6040516107e4919061444c565b60405180910390f35b3480156107f957600080fd5b506108026121a4565b60405161080f919061418f565b60405180910390f35b34801561082457600080fd5b5061083f600480360381019061083a9190613714565b6121b7565b60405161084c919061418f565b60405180910390f35b34801561086157600080fd5b5061087c600480360381019061087791906136eb565b61224b565b005b34801561088a57600080fd5b506108a560048036038101906108a09190613856565b6122cf565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061090257506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109325750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610941612322565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561097b57600080fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060600280546109ce90614777565b80601f01602080910402602001604051908101604052809291908181526020018280546109fa90614777565b8015610a475780601f10610a1c57610100808354040283529160200191610a47565b820191906000526020600020905b815481529060010190602001808311610a2a57829003601f168201915b5050505050905090565b6000610a5c826123a0565b610a92576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610adb826113ae565b90508073ffffffffffffffffffffffffffffffffffffffff16610afc6123ff565b73ffffffffffffffffffffffffffffffffffffffff1614610b5f57610b2881610b236123ff565b6121b7565b610b5e576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610c1c612322565b801515600f60009054906101000a900460ff1615151415610c72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6990614371565b60405180910390fd5b80600f60006101000a81548160ff02191690831515021790555050565b6000610c99612407565b6001546000540303905090565b6000610cb18261240c565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d18576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610d24846124da565b91509150610d3a8187610d356123ff565b612501565b610d8657610d4f86610d4a6123ff565b6121b7565b610d85576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610ded576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610dfa8686866001612545565b8015610e0557600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610ed385610eaf88888761254b565b7c020000000000000000000000000000000000000000000000000000000017612573565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610f5b576000600185019050600060046000838152602001908152602001600020541415610f59576000548114610f58578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610fc3868686600161259e565b505050505050565b600d60009054906101000a900460ff1681565b60026008541415611024576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101b90614411565b60405180910390fd5b6002600881905550600d60009054906101000a900460ff1661107b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107290614271565b60405180910390fd5b655af3107a400081600e5461109091906145f9565b61109a9190614653565b34101580156110c75750655af3107a400081600e546110b991906145f9565b6110c39190614572565b3411155b611106576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110fd90614311565b60405180910390fd5b6000611110610c8f565b90507f00000000000000000000000000000000000000000000000000000000000007d0828261113f9190614572565b1115611180576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117790614231565b60405180910390fd5b61118a33836125a4565b7f00000000000000000000000000000000000000000000000000000000000007d082826111b79190614572565b106111d8576000600d60006101000a81548160ff0219169083151502179055505b50600160088190555050565b6111ff83838360405180602001604052806000815250611e72565b505050565b61120c612322565b8181600a919061121d9291906133eb565b505050565b6060600083839050905060008167ffffffffffffffff81111561126e577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156112a757816020015b611294613471565b81526020019060019003908161128c5790505b50905060005b82811461134b576112fc8686838181106112f0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135612006565b828281518110611335577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101819052508060010190506112ad565b50809250505092915050565b61135f612322565b80600e5414156113a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139b90614251565b60405180910390fd5b80600e8190555050565b60006113b98261240c565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611428576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611481612322565b61148b60006125c2565b565b6060600080600061149d856113c0565b905060008167ffffffffffffffff8111156114e1577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561150f5781602001602082028036833780820191505090505b50905061151a613471565b6000611524612407565b90505b8386146116155761153781612688565b91508160400151156115485761160a565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461158857816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561160957808387806001019850815181106115fc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250505b5b806001019050611527565b508195505050505050919050565b61162b612322565b801515600d60009054906101000a900460ff1615151415611681576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167890614371565b60405180910390fd5b80600d60006101000a81548160ff02191690831515021790555050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546116d790614777565b80601f016020809104026020016040519081016040528092919081815260200182805461170390614777565b80156117505780601f1061172557610100808354040283529160200191611750565b820191906000526020600020905b81548152906001019060200180831161173357829003601f168201915b5050505050905090565b6060818310611795576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806117a06126b3565b90506117aa612407565b8510156117bc576117b9612407565b94505b808411156117c8578093505b60006117d3876113c0565b9050848610156117f65760008686039050818110156117f0578091505b506117fb565b600090505b60008167ffffffffffffffff81111561183d577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561186b5781602001602082028036833780820191505090505b509050600082141561188357809450505050506119b3565b600061188e88612006565b9050600081604001516118a357816000015190505b60008990505b8881141580156118b95750848714155b156119a5576118c781612688565b92508260400151156118d85761199a565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff161461191857826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611999578084888060010199508151811061198c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250505b5b8060010190506118a9565b508583528296505050505050505b9392505050565b60026008541415611a00576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f790614411565b60405180910390fd5b6002600881905550600f60009054906101000a900460ff16611a57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4e906143d1565b60405180910390fd5b8082600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611aa39190614572565b1115611ae4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611adb906143f1565b60405180910390fd5b84611aef33836126bc565b14611b2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b26906142f1565b60405180910390fd5b611b7d8585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506126ef565b611bbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb390614351565b60405180910390fd5b6000611bc6610c8f565b90507f00000000000000000000000000000000000000000000000000000000000007d08382611bf59190614572565b1115611c36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2d90614231565b60405180910390fd5b82600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c859190614572565b92505081905550611c9633846125a4565b7f00000000000000000000000000000000000000000000000000000000000007d08382611cc39190614572565b10611ce4576000600f60006101000a81548160ff0219169083151502179055505b5060016008819055505050505050565b600e5481565b611d026123ff565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d67576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611d746123ff565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611e216123ff565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e66919061418f565b60405180910390a35050565b611e7d848484610ca6565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611edf57611ea884848484612764565b611ede576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600c6020528060005260406000206000915090505481565b611f05612322565b7f00000000000000000000000000000000000000000000000000000000000007d08184849050611f3591906145f9565b611f3d610c8f565b611f479190614572565b1115611f88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7f906143f1565b60405180910390fd5b60005b8383905081101561200057611fed848483818110611fd2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002016020810190611fe791906136eb565b836125a4565b8080611ff8906147da565b915050611f8b565b50505050565b61200e613471565b612016613471565b61201e612407565b831080612032575061202e6126b3565b8310155b15612040578091505061206b565b61204983612688565b905080604001511561205e578091505061206b565b612067836128c4565b9150505b919050565b606061207b826123a0565b6120ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b1906142b1565b60405180910390fd5b6120c26128e4565b6120cb83612976565b6040516020016120dc929190614066565b6040516020818303038152906040529050919050565b600a80546120ff90614777565b80601f016020809104026020016040519081016040528092919081815260200182805461212b90614777565b80156121785780601f1061214d57610100808354040283529160200191612178565b820191906000526020600020905b81548152906001019060200180831161215b57829003601f168201915b505050505081565b7f00000000000000000000000000000000000000000000000000000000000007d081565b600f60009054906101000a900460ff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612253612322565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156122c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ba906142d1565b60405180910390fd5b6122cc816125c2565b50565b6122d7612322565b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561231d573d6000803e3d6000fd5b505050565b61232a612b23565b73ffffffffffffffffffffffffffffffffffffffff1661234861169e565b73ffffffffffffffffffffffffffffffffffffffff161461239e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612395906143b1565b60405180910390fd5b565b6000816123ab612407565b111580156123ba575060005482105b80156123f8575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b6000808290508061241b612407565b116124a3576000548110156124a25760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821614156124a0575b600081141561249657600460008360019003935083815260200190815260200160002054905061246b565b80925050506124d5565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612562868684612b2b565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6125be828260405180602001604052806000815250612b34565b5050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612690613471565b6126ac6004600084815260200190815260200160002054612bd1565b9050919050565b60008054905090565b600082826040516020016126d1929190614122565b60405160208183030381529060405280519060200120905092915050565b600061270c826126fe85612c87565b612cb790919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261278a6123ff565b8786866040518563ffffffff1660e01b81526004016127ac94939291906140d6565b602060405180830381600087803b1580156127c657600080fd5b505af19250505080156127f757506040513d601f19601f820116820180604052508101906127f49190613a50565b60015b612871573d8060008114612827576040519150601f19603f3d011682016040523d82523d6000602084013e61282c565b606091505b50600081511415612869576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6128cc613471565b6128dd6128d88361240c565b612bd1565b9050919050565b6060600a80546128f390614777565b80601f016020809104026020016040519081016040528092919081815260200182805461291f90614777565b801561296c5780601f106129415761010080835404028352916020019161296c565b820191906000526020600020905b81548152906001019060200180831161294f57829003601f168201915b5050505050905090565b606060008214156129be576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612b1e565b600082905060005b600082146129f05780806129d9906147da565b915050600a826129e991906145c8565b91506129c6565b60008167ffffffffffffffff811115612a32577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612a645781602001600182028036833780820191505090505b5090505b60008514612b1757600182612a7d9190614653565b9150600a85612a8c919061482d565b6030612a989190614572565b60f81b818381518110612ad4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612b1091906145c8565b9450612a68565b8093505050505b919050565b600033905090565b60009392505050565b612b3e8383612cde565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612bcc57600080549050600083820390505b612b7e6000868380600101945086612764565b612bb4576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612b6b578160005414612bc957600080fd5b50505b505050565b612bd9613471565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b600081604051602001612c9a9190614095565b604051602081830303815290604052805190602001209050919050565b6000806000612cc68585612e9b565b91509150612cd381612f1e565b819250505092915050565b6000805490506000821415612d1f576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612d2c6000848385612545565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612da383612d94600086600061254b565b612d9d8561326f565b17612573565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612e4457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612e09565b506000821415612e80576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050612e96600084838561259e565b505050565b600080604183511415612edd5760008060006020860151925060408601519150606086015160001a9050612ed18782858561327f565b94509450505050612f17565b604083511415612f0e576000806020850151915060408501519050612f0386838361338c565b935093505050612f17565b60006002915091505b9250929050565b60006004811115612f58577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612f91577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415612f9c5761326c565b60016004811115612fd6577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561300f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613050576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161304790614211565b60405180910390fd5b6002600481111561308a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156130c3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613104576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130fb90614291565b60405180910390fd5b6003600481111561313e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613177577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156131b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131af90614331565b60405180910390fd5b6004808111156131f1577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561322a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561326b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161326290614391565b60405180910390fd5b5b50565b60006001821460e11b9050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156132ba576000600391509150613383565b601b8560ff16141580156132d25750601c8560ff1614155b156132e4576000600491509150613383565b60006001878787876040516000815260200160405260405161330994939291906141aa565b6020604051602081039080840390855afa15801561332b573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561337a57600060019250925050613383565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c6133cf9190614572565b90506133dd8782888561327f565b935093505050935093915050565b8280546133f790614777565b90600052602060002090601f0160209004810192826134195760008555613460565b82601f1061343257803560ff1916838001178555613460565b82800160010185558215613460579182015b8281111561345f578235825591602001919060010190613444565b5b50905061346d91906134c0565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b808211156134d95760008160009055506001016134c1565b5090565b60006134f06134eb8461448c565b614467565b90508281526020810184848401111561350857600080fd5b613513848285614735565b509392505050565b60008135905061352a81614ca8565b92915050565b60008083601f84011261354257600080fd5b8235905067ffffffffffffffff81111561355b57600080fd5b60208301915083602082028301111561357357600080fd5b9250929050565b60008083601f84011261358c57600080fd5b8235905067ffffffffffffffff8111156135a557600080fd5b6020830191508360208202830111156135bd57600080fd5b9250929050565b6000813590506135d381614cbf565b92915050565b6000813590506135e881614cd6565b92915050565b6000813590506135fd81614ced565b92915050565b60008151905061361281614ced565b92915050565b60008083601f84011261362a57600080fd5b8235905067ffffffffffffffff81111561364357600080fd5b60208301915083600182028301111561365b57600080fd5b9250929050565b600082601f83011261367357600080fd5b81356136838482602086016134dd565b91505092915050565b60008083601f84011261369e57600080fd5b8235905067ffffffffffffffff8111156136b757600080fd5b6020830191508360018202830111156136cf57600080fd5b9250929050565b6000813590506136e581614d04565b92915050565b6000602082840312156136fd57600080fd5b600061370b8482850161351b565b91505092915050565b6000806040838503121561372757600080fd5b60006137358582860161351b565b92505060206137468582860161351b565b9150509250929050565b60008060006060848603121561376557600080fd5b60006137738682870161351b565b93505060206137848682870161351b565b9250506040613795868287016136d6565b9150509250925092565b600080600080608085870312156137b557600080fd5b60006137c38782880161351b565b94505060206137d48782880161351b565b93505060406137e5878288016136d6565b925050606085013567ffffffffffffffff81111561380257600080fd5b61380e87828801613662565b91505092959194509250565b6000806040838503121561382d57600080fd5b600061383b8582860161351b565b925050602061384c858286016135c4565b9150509250929050565b6000806040838503121561386957600080fd5b60006138778582860161351b565b9250506020613888858286016136d6565b9150509250929050565b6000806000606084860312156138a757600080fd5b60006138b58682870161351b565b93505060206138c6868287016136d6565b92505060406138d7868287016136d6565b9150509250925092565b6000806000604084860312156138f657600080fd5b600084013567ffffffffffffffff81111561391057600080fd5b61391c86828701613530565b9350935050602061392f868287016136d6565b9150509250925092565b6000806020838503121561394c57600080fd5b600083013567ffffffffffffffff81111561396657600080fd5b6139728582860161357a565b92509250509250929050565b60006020828403121561399057600080fd5b600061399e848285016135c4565b91505092915050565b6000806000806000608086880312156139bf57600080fd5b60006139cd888289016135d9565b955050602086013567ffffffffffffffff8111156139ea57600080fd5b6139f688828901613618565b94509450506040613a09888289016136d6565b9250506060613a1a888289016136d6565b9150509295509295909350565b600060208284031215613a3957600080fd5b6000613a47848285016135ee565b91505092915050565b600060208284031215613a6257600080fd5b6000613a7084828501613603565b91505092915050565b60008060208385031215613a8c57600080fd5b600083013567ffffffffffffffff811115613aa657600080fd5b613ab28582860161368c565b92509250509250929050565b600060208284031215613ad057600080fd5b6000613ade848285016136d6565b91505092915050565b6000613af38383613f71565b60808301905092915050565b6000613b0b838361402a565b60208301905092915050565b613b2081614687565b82525050565b613b2f81614687565b82525050565b6000613b40826144dd565b613b4a8185614523565b9350613b55836144bd565b8060005b83811015613b86578151613b6d8882613ae7565b9750613b7883614509565b925050600181019050613b59565b5085935050505092915050565b6000613b9e826144e8565b613ba88185614534565b9350613bb3836144cd565b8060005b83811015613be4578151613bcb8882613aff565b9750613bd683614516565b925050600181019050613bb7565b5085935050505092915050565b613bfa81614699565b82525050565b613c0981614699565b82525050565b613c18816146a5565b82525050565b613c2f613c2a826146a5565b614823565b82525050565b6000613c40826144f3565b613c4a8185614545565b9350613c5a818560208601614744565b613c638161491a565b840191505092915050565b6000613c79826144fe565b613c838185614556565b9350613c93818560208601614744565b613c9c8161491a565b840191505092915050565b6000613cb2826144fe565b613cbc8185614567565b9350613ccc818560208601614744565b80840191505092915050565b6000613ce5601883614556565b9150613cf08261492b565b602082019050919050565b6000613d08601a83614556565b9150613d1382614954565b602082019050919050565b6000613d2b602083614556565b9150613d368261497d565b602082019050919050565b6000613d4e601983614556565b9150613d59826149a6565b602082019050919050565b6000613d71601f83614556565b9150613d7c826149cf565b602082019050919050565b6000613d94601c83614567565b9150613d9f826149f8565b601c82019050919050565b6000613db7601f83614556565b9150613dc282614a21565b602082019050919050565b6000613dda602683614556565b9150613de582614a4a565b604082019050919050565b6000613dfd600f83614556565b9150613e0882614a99565b602082019050919050565b6000613e20600d83614556565b9150613e2b82614ac2565b602082019050919050565b6000613e43602283614556565b9150613e4e82614aeb565b604082019050919050565b6000613e66601b83614556565b9150613e7182614b3a565b602082019050919050565b6000613e89602083614556565b9150613e9482614b63565b602082019050919050565b6000613eac602283614556565b9150613eb782614b8c565b604082019050919050565b6000613ecf600583614567565b9150613eda82614bdb565b600582019050919050565b6000613ef2602083614556565b9150613efd82614c04565b602082019050919050565b6000613f15601583614556565b9150613f2082614c2d565b602082019050919050565b6000613f38600e83614556565b9150613f4382614c56565b602082019050919050565b6000613f5b601f83614556565b9150613f6682614c7f565b602082019050919050565b608082016000820151613f876000850182613b17565b506020820151613f9a6020850182614048565b506040820151613fad6040850182613bf1565b506060820151613fc0606085018261401b565b50505050565b608082016000820151613fdc6000850182613b17565b506020820151613fef6020850182614048565b5060408201516140026040850182613bf1565b506060820151614015606085018261401b565b50505050565b614024816146fb565b82525050565b6140338161470a565b82525050565b6140428161470a565b82525050565b61405181614714565b82525050565b61406081614728565b82525050565b60006140728285613ca7565b915061407e8284613ca7565b915061408982613ec2565b91508190509392505050565b60006140a082613d87565b91506140ac8284613c1e565b60208201915081905092915050565b60006020820190506140d06000830184613b26565b92915050565b60006080820190506140eb6000830187613b26565b6140f86020830186613b26565b6141056040830185614039565b81810360608301526141178184613c35565b905095945050505050565b60006040820190506141376000830185613b26565b6141446020830184614039565b9392505050565b600060208201905081810360008301526141658184613b35565b905092915050565b600060208201905081810360008301526141878184613b93565b905092915050565b60006020820190506141a46000830184613c00565b92915050565b60006080820190506141bf6000830187613c0f565b6141cc6020830186614057565b6141d96040830185613c0f565b6141e66060830184613c0f565b95945050505050565b600060208201905081810360008301526142098184613c6e565b905092915050565b6000602082019050818103600083015261422a81613cd8565b9050919050565b6000602082019050818103600083015261424a81613cfb565b9050919050565b6000602082019050818103600083015261426a81613d1e565b9050919050565b6000602082019050818103600083015261428a81613d41565b9050919050565b600060208201905081810360008301526142aa81613d64565b9050919050565b600060208201905081810360008301526142ca81613daa565b9050919050565b600060208201905081810360008301526142ea81613dcd565b9050919050565b6000602082019050818103600083015261430a81613df0565b9050919050565b6000602082019050818103600083015261432a81613e13565b9050919050565b6000602082019050818103600083015261434a81613e36565b9050919050565b6000602082019050818103600083015261436a81613e59565b9050919050565b6000602082019050818103600083015261438a81613e7c565b9050919050565b600060208201905081810360008301526143aa81613e9f565b9050919050565b600060208201905081810360008301526143ca81613ee5565b9050919050565b600060208201905081810360008301526143ea81613f08565b9050919050565b6000602082019050818103600083015261440a81613f2b565b9050919050565b6000602082019050818103600083015261442a81613f4e565b9050919050565b60006080820190506144466000830184613fc6565b92915050565b60006020820190506144616000830184614039565b92915050565b6000614471614482565b905061447d82826147a9565b919050565b6000604051905090565b600067ffffffffffffffff8211156144a7576144a66148eb565b5b6144b08261491a565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061457d8261470a565b91506145888361470a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156145bd576145bc61485e565b5b828201905092915050565b60006145d38261470a565b91506145de8361470a565b9250826145ee576145ed61488d565b5b828204905092915050565b60006146048261470a565b915061460f8361470a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156146485761464761485e565b5b828202905092915050565b600061465e8261470a565b91506146698361470a565b92508282101561467c5761467b61485e565b5b828203905092915050565b6000614692826146db565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015614762578082015181840152602081019050614747565b83811115614771576000848401525b50505050565b6000600282049050600182168061478f57607f821691505b602082108114156147a3576147a26148bc565b5b50919050565b6147b28261491a565b810181811067ffffffffffffffff821117156147d1576147d06148eb565b5b80604052505050565b60006147e58261470a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156148185761481761485e565b5b600182019050919050565b6000819050919050565b60006148388261470a565b91506148438361470a565b9250826148535761485261488d565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f4e4f545f454e4f5547485f4d494e54535f415641494c41424c45000000000000600082015250565b7f4e45575f50524943455f4944454e544943414c5f544f5f4f4c445f5052494345600082015250565b7f5055424c49435f53414c455f49535f4e4f545f41435449564500000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4d4553534147455f494e56414c49440000000000000000000000000000000000600082015250565b7f494e56414c49445f505249434500000000000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f5349474e41545552455f56414c49444154494f4e5f4641494c45440000000000600082015250565b7f4e45575f53544154455f4944454e544943414c5f544f5f4f4c445f5354415445600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f41495244524f505f49535f4e4f545f4143544956450000000000000000000000600082015250565b7f4d494e545f544f4f5f4c41524745000000000000000000000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b614cb181614687565b8114614cbc57600080fd5b50565b614cc881614699565b8114614cd357600080fd5b50565b614cdf816146a5565b8114614cea57600080fd5b50565b614cf6816146af565b8114614d0157600080fd5b50565b614d0d8161470a565b8114614d1857600080fd5b5056fea2646970667358221220032963dfb1bef26caef5534993d39fc2d88bab1037e2967dc1f4f17bebe6d63f64736f6c63430008040033
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.