ERC-721
Overview
Max Total Supply
912 KIDZ
Holders
462
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 KIDZLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
KidzTopia
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)
// SPDX-License-Identifier: MIT /* ██╗ ██╗██╗██████╗ ███████╗████████╗ █████╗ ██████╗ ██╗ █████╗ ██║░██╔╝██║██╔══██╗╚════██║╚══██╔══╝██╔══██╗██╔══██╗██║██╔══██╗ █████═╝░██║██║░░██║░░███╔═╝░░░██║░░░██║░░██║██████╔╝██║███████║ ██╔═██╗░██║██║░░██║██╔══╝░░░░░██║░░░██║░░██║██╔═══╝░██║██╔══██║ ██║░╚██╗██║██████╔╝███████╗░░░██║░░░╚█████╔╝██║░░░░░██║██║░░██║ ╚═╝░░╚═╝╚═╝╚═════╝░╚══════╝░░░╚═╝░░░░╚════╝░╚═╝░░░░░╚═╝╚═╝░░╚═╝ */ pragma solidity ^0.8.4; import "erc721a/contracts/ERC721A.sol"; import '@openzeppelin/contracts/access/Ownable.sol'; import "@openzeppelin/contracts/utils/Strings.sol"; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; contract KidzTopia is ERC721A, Ownable, ReentrancyGuard { using Strings for uint256; bool public mintStart = false; uint public mintPrice = 0.002 ether; uint public freeMint = 1; uint public maxMint = 20; uint public maxSupply = 6666; string public baseURI; mapping(address => uint256) public addressMinted; constructor() ERC721A('KidzTopia', 'KIDZ') { } function ownerMint(address _address, uint _mintAmount) external onlyOwner { require(maxSupply >= totalSupply() + _mintAmount, "KidzTopia: Sold out"); _safeMint(_address, _mintAmount); } function mint(uint256 _mintAmount) external payable { require(mintStart, "KidzTopia: Mint is not live yet"); require(maxSupply >= totalSupply() + _mintAmount, "KidzTopia: Sold out"); require(_mintAmount > 0, "KidzTopia: Invalid mint amount"); require(_mintAmount <= maxMint, "KidzTopia: Exceed max mint"); _safemint(_mintAmount); } function _safemint(uint256 _mintAmount) internal { if(addressMinted[msg.sender] < freeMint) { if(_mintAmount < freeMint) _mintAmount = freeMint; require(msg.value >= (_mintAmount - freeMint) * mintPrice,"KidzTopia: Claim Free NFT"); addressMinted[msg.sender] += _mintAmount; _safeMint(msg.sender, _mintAmount); } else { require(msg.value >= _mintAmount * mintPrice,"KidzTopia: Invalid mint price"); addressMinted[msg.sender] += _mintAmount; _safeMint(msg.sender, _mintAmount); } } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), 'ERC721Metadata: URI query for nonexistent token'); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, _tokenId.toString(), ".json")) : ''; } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function setMintPrice(uint256 _mintPrice) public onlyOwner { mintPrice = _mintPrice; } function setMaxSupply(uint256 _maxSupply) public onlyOwner { maxSupply = _maxSupply; } function setMaxMint(uint256 _maxMint) public onlyOwner { maxMint = _maxMint; } function setRevealURI(string calldata baseURI_) external onlyOwner { baseURI = baseURI_; } function setMintStart(bool _state) public onlyOwner { mintStart = _state; } function withdraw() public onlyOwner nonReentrant { (bool os, ) = payable(owner()).call{value: address(this).balance}(''); require(os); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 pragma solidity ^0.8.4; import './IERC721A.sol'; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.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 str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 0x80 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: 0x20 + 3 * 0x20 = 0x80. str := add(mload(0x40), 0x80) // Update the free memory pointer to allocate. mstore(0x40, str) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // 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 // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"","type":"address"}],"name":"addressMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintStart","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMint","type":"uint256"}],"name":"setMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setMintStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setRevealURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600a60006101000a81548160ff02191690831515021790555066071afd498d0000600b556001600c556014600d55611a0a600e553480156200004757600080fd5b506040518060400160405280600981526020017f4b69647a546f70696100000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f4b49445a000000000000000000000000000000000000000000000000000000008152508160029080519060200190620000cc92919062000203565b508060039080519060200190620000e592919062000203565b50620000f66200012c60201b60201c565b60008190555050506200011e620001126200013560201b60201c565b6200013d60201b60201c565b600160098190555062000318565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200021190620002b3565b90600052602060002090601f01602090048101928262000235576000855562000281565b82601f106200025057805160ff191683800117855562000281565b8280016001018555821562000281579182015b828111156200028057825182559160200191906001019062000263565b5b50905062000290919062000294565b5090565b5b80821115620002af57600081600090555060010162000295565b5090565b60006002820490506001821680620002cc57607f821691505b60208210811415620002e357620002e2620002e9565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b61357980620003286000396000f3fe6080604052600436106101e35760003560e01c80636f8b44b011610102578063a811a37b11610095578063e985e9c511610064578063e985e9c5146106ab578063f2fde38b146106e8578063f4a0a52814610711578063fa30297e1461073a576101e3565b8063a811a37b146105f1578063b88d4fde1461061a578063c87b56dd14610643578063d5abeb0114610680576101e3565b80638da5cb5b116100d15780638da5cb5b1461055657806395d89b4114610581578063a0712d68146105ac578063a22cb465146105c8576101e3565b80636f8b44b0146104ae57806370a08231146104d7578063715018a6146105145780637501f7411461052b576101e3565b80633ccfd60b1161017a5780635b70ea9f116101495780635b70ea9f146103f05780636352211e1461041b5780636817c76c146104585780636c0360eb14610483576101e3565b80633ccfd60b1461035e57806342842e0e14610375578063484b973c1461039e578063547520fe146103c7576101e3565b8063095ea7b3116101b6578063095ea7b3146102b657806318160ddd146102df57806323b872dd1461030a578063255e468514610333576101e3565b806301ffc9a7146101e857806306fdde03146102255780630715d70414610250578063081812fc14610279575b600080fd5b3480156101f457600080fd5b5061020f600480360381019061020a9190612945565b610777565b60405161021c9190612d24565b60405180910390f35b34801561023157600080fd5b5061023a610809565b6040516102479190612d3f565b60405180910390f35b34801561025c57600080fd5b506102776004803603810190610272919061291c565b61089b565b005b34801561028557600080fd5b506102a0600480360381019061029b91906129dc565b610934565b6040516102ad9190612cbd565b60405180910390f35b3480156102c257600080fd5b506102dd60048036038101906102d891906128e0565b6109b3565b005b3480156102eb57600080fd5b506102f4610af7565b6040516103019190612ea1565b60405180910390f35b34801561031657600080fd5b50610331600480360381019061032c91906127da565b610b0e565b005b34801561033f57600080fd5b50610348610e33565b6040516103559190612d24565b60405180910390f35b34801561036a57600080fd5b50610373610e46565b005b34801561038157600080fd5b5061039c600480360381019061039791906127da565b610f98565b005b3480156103aa57600080fd5b506103c560048036038101906103c091906128e0565b610fb8565b005b3480156103d357600080fd5b506103ee60048036038101906103e991906129dc565b611099565b005b3480156103fc57600080fd5b5061040561111f565b6040516104129190612ea1565b60405180910390f35b34801561042757600080fd5b50610442600480360381019061043d91906129dc565b611125565b60405161044f9190612cbd565b60405180910390f35b34801561046457600080fd5b5061046d611137565b60405161047a9190612ea1565b60405180910390f35b34801561048f57600080fd5b5061049861113d565b6040516104a59190612d3f565b60405180910390f35b3480156104ba57600080fd5b506104d560048036038101906104d091906129dc565b6111cb565b005b3480156104e357600080fd5b506104fe60048036038101906104f99190612775565b611251565b60405161050b9190612ea1565b60405180910390f35b34801561052057600080fd5b5061052961130a565b005b34801561053757600080fd5b50610540611392565b60405161054d9190612ea1565b60405180910390f35b34801561056257600080fd5b5061056b611398565b6040516105789190612cbd565b60405180910390f35b34801561058d57600080fd5b506105966113c2565b6040516105a39190612d3f565b60405180910390f35b6105c660048036038101906105c191906129dc565b611454565b005b3480156105d457600080fd5b506105ef60048036038101906105ea91906128a4565b61158e565b005b3480156105fd57600080fd5b5061061860048036038101906106139190612997565b611706565b005b34801561062657600080fd5b50610641600480360381019061063c9190612829565b611798565b005b34801561064f57600080fd5b5061066a600480360381019061066591906129dc565b61180b565b6040516106779190612d3f565b60405180910390f35b34801561068c57600080fd5b506106956118b2565b6040516106a29190612ea1565b60405180910390f35b3480156106b757600080fd5b506106d260048036038101906106cd919061279e565b6118b8565b6040516106df9190612d24565b60405180910390f35b3480156106f457600080fd5b5061070f600480360381019061070a9190612775565b61194c565b005b34801561071d57600080fd5b50610738600480360381019061073391906129dc565b611a44565b005b34801561074657600080fd5b50610761600480360381019061075c9190612775565b611aca565b60405161076e9190612ea1565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107d257506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108025750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546108189061312b565b80601f01602080910402602001604051908101604052809291908181526020018280546108449061312b565b80156108915780601f1061086657610100808354040283529160200191610891565b820191906000526020600020905b81548152906001019060200180831161087457829003601f168201915b5050505050905090565b6108a3611ae2565b73ffffffffffffffffffffffffffffffffffffffff166108c1611398565b73ffffffffffffffffffffffffffffffffffffffff1614610917576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090e90612e21565b60405180910390fd5b80600a60006101000a81548160ff02191690831515021790555050565b600061093f82611aea565b610975576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109be82611125565b90508073ffffffffffffffffffffffffffffffffffffffff166109df611b49565b73ffffffffffffffffffffffffffffffffffffffff1614610a4257610a0b81610a06611b49565b6118b8565b610a41576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610b01611b51565b6001546000540303905090565b6000610b1982611b5a565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b80576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610b8c84611c28565b91509150610ba28187610b9d611b49565b611c4f565b610bee57610bb786610bb2611b49565b6118b8565b610bed576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610c55576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c628686866001611c93565b8015610c6d57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610d3b85610d17888887611c99565b7c020000000000000000000000000000000000000000000000000000000017611cc1565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610dc3576000600185019050600060046000838152602001908152602001600020541415610dc1576000548114610dc0578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e2b8686866001611cec565b505050505050565b600a60009054906101000a900460ff1681565b610e4e611ae2565b73ffffffffffffffffffffffffffffffffffffffff16610e6c611398565b73ffffffffffffffffffffffffffffffffffffffff1614610ec2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb990612e21565b60405180910390fd5b60026009541415610f08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eff90612e81565b60405180910390fd5b60026009819055506000610f1a611398565b73ffffffffffffffffffffffffffffffffffffffff1647604051610f3d90612ca8565b60006040518083038185875af1925050503d8060008114610f7a576040519150601f19603f3d011682016040523d82523d6000602084013e610f7f565b606091505b5050905080610f8d57600080fd5b506001600981905550565b610fb383838360405180602001604052806000815250611798565b505050565b610fc0611ae2565b73ffffffffffffffffffffffffffffffffffffffff16610fde611398565b73ffffffffffffffffffffffffffffffffffffffff1614611034576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102b90612e21565b60405180910390fd5b8061103d610af7565b6110479190612f60565b600e54101561108b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108290612e61565b60405180910390fd5b6110958282611cf2565b5050565b6110a1611ae2565b73ffffffffffffffffffffffffffffffffffffffff166110bf611398565b73ffffffffffffffffffffffffffffffffffffffff1614611115576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110c90612e21565b60405180910390fd5b80600d8190555050565b600c5481565b600061113082611b5a565b9050919050565b600b5481565b600f805461114a9061312b565b80601f01602080910402602001604051908101604052809291908181526020018280546111769061312b565b80156111c35780601f10611198576101008083540402835291602001916111c3565b820191906000526020600020905b8154815290600101906020018083116111a657829003601f168201915b505050505081565b6111d3611ae2565b73ffffffffffffffffffffffffffffffffffffffff166111f1611398565b73ffffffffffffffffffffffffffffffffffffffff1614611247576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123e90612e21565b60405180910390fd5b80600e8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156112b9576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611312611ae2565b73ffffffffffffffffffffffffffffffffffffffff16611330611398565b73ffffffffffffffffffffffffffffffffffffffff1614611386576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137d90612e21565b60405180910390fd5b6113906000611d10565b565b600d5481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546113d19061312b565b80601f01602080910402602001604051908101604052809291908181526020018280546113fd9061312b565b801561144a5780601f1061141f5761010080835404028352916020019161144a565b820191906000526020600020905b81548152906001019060200180831161142d57829003601f168201915b5050505050905090565b600a60009054906101000a900460ff166114a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149a90612da1565b60405180910390fd5b806114ac610af7565b6114b69190612f60565b600e5410156114fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f190612e61565b60405180910390fd5b6000811161153d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153490612e01565b60405180910390fd5b600d54811115611582576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157990612de1565b60405180910390fd5b61158b81611dd6565b50565b611596611b49565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115fb576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611608611b49565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166116b5611b49565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516116fa9190612d24565b60405180910390a35050565b61170e611ae2565b73ffffffffffffffffffffffffffffffffffffffff1661172c611398565b73ffffffffffffffffffffffffffffffffffffffff1614611782576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177990612e21565b60405180910390fd5b8181600f91906117939291906125b7565b505050565b6117a3848484610b0e565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611805576117ce84848484611fa5565b611804576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606061181682611aea565b611855576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184c90612e41565b60405180910390fd5b600061185f612105565b9050600081511161187f57604051806020016040528060008152506118aa565b8061188984612197565b60405160200161189a929190612c79565b6040516020818303038152906040525b915050919050565b600e5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611954611ae2565b73ffffffffffffffffffffffffffffffffffffffff16611972611398565b73ffffffffffffffffffffffffffffffffffffffff16146119c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119bf90612e21565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2f90612d81565b60405180910390fd5b611a4181611d10565b50565b611a4c611ae2565b73ffffffffffffffffffffffffffffffffffffffff16611a6a611398565b73ffffffffffffffffffffffffffffffffffffffff1614611ac0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab790612e21565b60405180910390fd5b80600b8190555050565b60106020528060005260406000206000915090505481565b600033905090565b600081611af5611b51565b11158015611b04575060005482105b8015611b42575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b60008082905080611b69611b51565b11611bf157600054811015611bf05760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415611bee575b6000811415611be4576004600083600190039350838152602001908152602001600020549050611bb9565b8092505050611c23565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611cb0868684612344565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b611d0c82826040518060200160405280600081525061234d565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600c54601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611ef157600c54811015611e2f57600c5490505b600b54600c5482611e409190613041565b611e4a9190612fe7565b341015611e8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8390612d61565b60405180910390fd5b80601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611edb9190612f60565b92505081905550611eec3382611cf2565b611fa2565b600b5481611eff9190612fe7565b341015611f41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3890612dc1565b60405180910390fd5b80601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f909190612f60565b92505081905550611fa13382611cf2565b5b50565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611fcb611b49565b8786866040518563ffffffff1660e01b8152600401611fed9493929190612cd8565b602060405180830381600087803b15801561200757600080fd5b505af192505050801561203857506040513d601f19601f82011682018060405250810190612035919061296e565b60015b6120b2573d8060008114612068576040519150601f19603f3d011682016040523d82523d6000602084013e61206d565b606091505b506000815114156120aa576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600f80546121149061312b565b80601f01602080910402602001604051908101604052809291908181526020018280546121409061312b565b801561218d5780601f106121625761010080835404028352916020019161218d565b820191906000526020600020905b81548152906001019060200180831161217057829003601f168201915b5050505050905090565b606060008214156121df576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061233f565b600082905060005b600082146122115780806121fa9061318e565b915050600a8261220a9190612fb6565b91506121e7565b60008167ffffffffffffffff811115612253577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156122855781602001600182028036833780820191505090505b5090505b600085146123385760018261229e9190613041565b9150600a856122ad91906131d7565b60306122b99190612f60565b60f81b8183815181106122f5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856123319190612fb6565b9450612289565b8093505050505b919050565b60009392505050565b61235783836123ea565b60008373ffffffffffffffffffffffffffffffffffffffff163b146123e557600080549050600083820390505b6123976000868380600101945086611fa5565b6123cd576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106123845781600054146123e257600080fd5b50505b505050565b600080549050600082141561242b576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6124386000848385611c93565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506124af836124a06000866000611c99565b6124a9856125a7565b17611cc1565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461255057808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612515565b50600082141561258c576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506125a26000848385611cec565b505050565b60006001821460e11b9050919050565b8280546125c39061312b565b90600052602060002090601f0160209004810192826125e5576000855561262c565b82601f106125fe57803560ff191683800117855561262c565b8280016001018555821561262c579182015b8281111561262b578235825591602001919060010190612610565b5b509050612639919061263d565b5090565b5b8082111561265657600081600090555060010161263e565b5090565b600061266d61266884612ee1565b612ebc565b90508281526020810184848401111561268557600080fd5b6126908482856130e9565b509392505050565b6000813590506126a7816134e7565b92915050565b6000813590506126bc816134fe565b92915050565b6000813590506126d181613515565b92915050565b6000815190506126e681613515565b92915050565b600082601f8301126126fd57600080fd5b813561270d84826020860161265a565b91505092915050565b60008083601f84011261272857600080fd5b8235905067ffffffffffffffff81111561274157600080fd5b60208301915083600182028301111561275957600080fd5b9250929050565b60008135905061276f8161352c565b92915050565b60006020828403121561278757600080fd5b600061279584828501612698565b91505092915050565b600080604083850312156127b157600080fd5b60006127bf85828601612698565b92505060206127d085828601612698565b9150509250929050565b6000806000606084860312156127ef57600080fd5b60006127fd86828701612698565b935050602061280e86828701612698565b925050604061281f86828701612760565b9150509250925092565b6000806000806080858703121561283f57600080fd5b600061284d87828801612698565b945050602061285e87828801612698565b935050604061286f87828801612760565b925050606085013567ffffffffffffffff81111561288c57600080fd5b612898878288016126ec565b91505092959194509250565b600080604083850312156128b757600080fd5b60006128c585828601612698565b92505060206128d6858286016126ad565b9150509250929050565b600080604083850312156128f357600080fd5b600061290185828601612698565b925050602061291285828601612760565b9150509250929050565b60006020828403121561292e57600080fd5b600061293c848285016126ad565b91505092915050565b60006020828403121561295757600080fd5b6000612965848285016126c2565b91505092915050565b60006020828403121561298057600080fd5b600061298e848285016126d7565b91505092915050565b600080602083850312156129aa57600080fd5b600083013567ffffffffffffffff8111156129c457600080fd5b6129d085828601612716565b92509250509250929050565b6000602082840312156129ee57600080fd5b60006129fc84828501612760565b91505092915050565b612a0e81613075565b82525050565b612a1d81613087565b82525050565b6000612a2e82612f12565b612a388185612f28565b9350612a488185602086016130f8565b612a51816132c4565b840191505092915050565b6000612a6782612f1d565b612a718185612f44565b9350612a818185602086016130f8565b612a8a816132c4565b840191505092915050565b6000612aa082612f1d565b612aaa8185612f55565b9350612aba8185602086016130f8565b80840191505092915050565b6000612ad3601983612f44565b9150612ade826132d5565b602082019050919050565b6000612af6602683612f44565b9150612b01826132fe565b604082019050919050565b6000612b19601f83612f44565b9150612b248261334d565b602082019050919050565b6000612b3c601d83612f44565b9150612b4782613376565b602082019050919050565b6000612b5f601a83612f44565b9150612b6a8261339f565b602082019050919050565b6000612b82601e83612f44565b9150612b8d826133c8565b602082019050919050565b6000612ba5600583612f55565b9150612bb0826133f1565b600582019050919050565b6000612bc8602083612f44565b9150612bd38261341a565b602082019050919050565b6000612beb602f83612f44565b9150612bf682613443565b604082019050919050565b6000612c0e601383612f44565b9150612c1982613492565b602082019050919050565b6000612c31600083612f39565b9150612c3c826134bb565b600082019050919050565b6000612c54601f83612f44565b9150612c5f826134be565b602082019050919050565b612c73816130df565b82525050565b6000612c858285612a95565b9150612c918284612a95565b9150612c9c82612b98565b91508190509392505050565b6000612cb382612c24565b9150819050919050565b6000602082019050612cd26000830184612a05565b92915050565b6000608082019050612ced6000830187612a05565b612cfa6020830186612a05565b612d076040830185612c6a565b8181036060830152612d198184612a23565b905095945050505050565b6000602082019050612d396000830184612a14565b92915050565b60006020820190508181036000830152612d598184612a5c565b905092915050565b60006020820190508181036000830152612d7a81612ac6565b9050919050565b60006020820190508181036000830152612d9a81612ae9565b9050919050565b60006020820190508181036000830152612dba81612b0c565b9050919050565b60006020820190508181036000830152612dda81612b2f565b9050919050565b60006020820190508181036000830152612dfa81612b52565b9050919050565b60006020820190508181036000830152612e1a81612b75565b9050919050565b60006020820190508181036000830152612e3a81612bbb565b9050919050565b60006020820190508181036000830152612e5a81612bde565b9050919050565b60006020820190508181036000830152612e7a81612c01565b9050919050565b60006020820190508181036000830152612e9a81612c47565b9050919050565b6000602082019050612eb66000830184612c6a565b92915050565b6000612ec6612ed7565b9050612ed2828261315d565b919050565b6000604051905090565b600067ffffffffffffffff821115612efc57612efb613295565b5b612f05826132c4565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000612f6b826130df565b9150612f76836130df565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612fab57612faa613208565b5b828201905092915050565b6000612fc1826130df565b9150612fcc836130df565b925082612fdc57612fdb613237565b5b828204905092915050565b6000612ff2826130df565b9150612ffd836130df565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561303657613035613208565b5b828202905092915050565b600061304c826130df565b9150613057836130df565b92508282101561306a57613069613208565b5b828203905092915050565b6000613080826130bf565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156131165780820151818401526020810190506130fb565b83811115613125576000848401525b50505050565b6000600282049050600182168061314357607f821691505b6020821081141561315757613156613266565b5b50919050565b613166826132c4565b810181811067ffffffffffffffff8211171561318557613184613295565b5b80604052505050565b6000613199826130df565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156131cc576131cb613208565b5b600182019050919050565b60006131e2826130df565b91506131ed836130df565b9250826131fd576131fc613237565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4b69647a546f7069613a20436c61696d2046726565204e465400000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4b69647a546f7069613a204d696e74206973206e6f74206c6976652079657400600082015250565b7f4b69647a546f7069613a20496e76616c6964206d696e74207072696365000000600082015250565b7f4b69647a546f7069613a20457863656564206d6178206d696e74000000000000600082015250565b7f4b69647a546f7069613a20496e76616c6964206d696e7420616d6f756e740000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4b69647a546f7069613a20536f6c64206f757400000000000000000000000000600082015250565b50565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6134f081613075565b81146134fb57600080fd5b50565b61350781613087565b811461351257600080fd5b50565b61351e81613093565b811461352957600080fd5b50565b613535816130df565b811461354057600080fd5b5056fea264697066735822122040bc93f8f4faef1d0c804e3ff53127716457bf6010fec0bb8b533d9ae0b17e0d64736f6c63430008040033
Deployed Bytecode
0x6080604052600436106101e35760003560e01c80636f8b44b011610102578063a811a37b11610095578063e985e9c511610064578063e985e9c5146106ab578063f2fde38b146106e8578063f4a0a52814610711578063fa30297e1461073a576101e3565b8063a811a37b146105f1578063b88d4fde1461061a578063c87b56dd14610643578063d5abeb0114610680576101e3565b80638da5cb5b116100d15780638da5cb5b1461055657806395d89b4114610581578063a0712d68146105ac578063a22cb465146105c8576101e3565b80636f8b44b0146104ae57806370a08231146104d7578063715018a6146105145780637501f7411461052b576101e3565b80633ccfd60b1161017a5780635b70ea9f116101495780635b70ea9f146103f05780636352211e1461041b5780636817c76c146104585780636c0360eb14610483576101e3565b80633ccfd60b1461035e57806342842e0e14610375578063484b973c1461039e578063547520fe146103c7576101e3565b8063095ea7b3116101b6578063095ea7b3146102b657806318160ddd146102df57806323b872dd1461030a578063255e468514610333576101e3565b806301ffc9a7146101e857806306fdde03146102255780630715d70414610250578063081812fc14610279575b600080fd5b3480156101f457600080fd5b5061020f600480360381019061020a9190612945565b610777565b60405161021c9190612d24565b60405180910390f35b34801561023157600080fd5b5061023a610809565b6040516102479190612d3f565b60405180910390f35b34801561025c57600080fd5b506102776004803603810190610272919061291c565b61089b565b005b34801561028557600080fd5b506102a0600480360381019061029b91906129dc565b610934565b6040516102ad9190612cbd565b60405180910390f35b3480156102c257600080fd5b506102dd60048036038101906102d891906128e0565b6109b3565b005b3480156102eb57600080fd5b506102f4610af7565b6040516103019190612ea1565b60405180910390f35b34801561031657600080fd5b50610331600480360381019061032c91906127da565b610b0e565b005b34801561033f57600080fd5b50610348610e33565b6040516103559190612d24565b60405180910390f35b34801561036a57600080fd5b50610373610e46565b005b34801561038157600080fd5b5061039c600480360381019061039791906127da565b610f98565b005b3480156103aa57600080fd5b506103c560048036038101906103c091906128e0565b610fb8565b005b3480156103d357600080fd5b506103ee60048036038101906103e991906129dc565b611099565b005b3480156103fc57600080fd5b5061040561111f565b6040516104129190612ea1565b60405180910390f35b34801561042757600080fd5b50610442600480360381019061043d91906129dc565b611125565b60405161044f9190612cbd565b60405180910390f35b34801561046457600080fd5b5061046d611137565b60405161047a9190612ea1565b60405180910390f35b34801561048f57600080fd5b5061049861113d565b6040516104a59190612d3f565b60405180910390f35b3480156104ba57600080fd5b506104d560048036038101906104d091906129dc565b6111cb565b005b3480156104e357600080fd5b506104fe60048036038101906104f99190612775565b611251565b60405161050b9190612ea1565b60405180910390f35b34801561052057600080fd5b5061052961130a565b005b34801561053757600080fd5b50610540611392565b60405161054d9190612ea1565b60405180910390f35b34801561056257600080fd5b5061056b611398565b6040516105789190612cbd565b60405180910390f35b34801561058d57600080fd5b506105966113c2565b6040516105a39190612d3f565b60405180910390f35b6105c660048036038101906105c191906129dc565b611454565b005b3480156105d457600080fd5b506105ef60048036038101906105ea91906128a4565b61158e565b005b3480156105fd57600080fd5b5061061860048036038101906106139190612997565b611706565b005b34801561062657600080fd5b50610641600480360381019061063c9190612829565b611798565b005b34801561064f57600080fd5b5061066a600480360381019061066591906129dc565b61180b565b6040516106779190612d3f565b60405180910390f35b34801561068c57600080fd5b506106956118b2565b6040516106a29190612ea1565b60405180910390f35b3480156106b757600080fd5b506106d260048036038101906106cd919061279e565b6118b8565b6040516106df9190612d24565b60405180910390f35b3480156106f457600080fd5b5061070f600480360381019061070a9190612775565b61194c565b005b34801561071d57600080fd5b50610738600480360381019061073391906129dc565b611a44565b005b34801561074657600080fd5b50610761600480360381019061075c9190612775565b611aca565b60405161076e9190612ea1565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107d257506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108025750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546108189061312b565b80601f01602080910402602001604051908101604052809291908181526020018280546108449061312b565b80156108915780601f1061086657610100808354040283529160200191610891565b820191906000526020600020905b81548152906001019060200180831161087457829003601f168201915b5050505050905090565b6108a3611ae2565b73ffffffffffffffffffffffffffffffffffffffff166108c1611398565b73ffffffffffffffffffffffffffffffffffffffff1614610917576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090e90612e21565b60405180910390fd5b80600a60006101000a81548160ff02191690831515021790555050565b600061093f82611aea565b610975576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109be82611125565b90508073ffffffffffffffffffffffffffffffffffffffff166109df611b49565b73ffffffffffffffffffffffffffffffffffffffff1614610a4257610a0b81610a06611b49565b6118b8565b610a41576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610b01611b51565b6001546000540303905090565b6000610b1982611b5a565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b80576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610b8c84611c28565b91509150610ba28187610b9d611b49565b611c4f565b610bee57610bb786610bb2611b49565b6118b8565b610bed576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610c55576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c628686866001611c93565b8015610c6d57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610d3b85610d17888887611c99565b7c020000000000000000000000000000000000000000000000000000000017611cc1565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610dc3576000600185019050600060046000838152602001908152602001600020541415610dc1576000548114610dc0578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e2b8686866001611cec565b505050505050565b600a60009054906101000a900460ff1681565b610e4e611ae2565b73ffffffffffffffffffffffffffffffffffffffff16610e6c611398565b73ffffffffffffffffffffffffffffffffffffffff1614610ec2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb990612e21565b60405180910390fd5b60026009541415610f08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eff90612e81565b60405180910390fd5b60026009819055506000610f1a611398565b73ffffffffffffffffffffffffffffffffffffffff1647604051610f3d90612ca8565b60006040518083038185875af1925050503d8060008114610f7a576040519150601f19603f3d011682016040523d82523d6000602084013e610f7f565b606091505b5050905080610f8d57600080fd5b506001600981905550565b610fb383838360405180602001604052806000815250611798565b505050565b610fc0611ae2565b73ffffffffffffffffffffffffffffffffffffffff16610fde611398565b73ffffffffffffffffffffffffffffffffffffffff1614611034576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102b90612e21565b60405180910390fd5b8061103d610af7565b6110479190612f60565b600e54101561108b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108290612e61565b60405180910390fd5b6110958282611cf2565b5050565b6110a1611ae2565b73ffffffffffffffffffffffffffffffffffffffff166110bf611398565b73ffffffffffffffffffffffffffffffffffffffff1614611115576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110c90612e21565b60405180910390fd5b80600d8190555050565b600c5481565b600061113082611b5a565b9050919050565b600b5481565b600f805461114a9061312b565b80601f01602080910402602001604051908101604052809291908181526020018280546111769061312b565b80156111c35780601f10611198576101008083540402835291602001916111c3565b820191906000526020600020905b8154815290600101906020018083116111a657829003601f168201915b505050505081565b6111d3611ae2565b73ffffffffffffffffffffffffffffffffffffffff166111f1611398565b73ffffffffffffffffffffffffffffffffffffffff1614611247576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123e90612e21565b60405180910390fd5b80600e8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156112b9576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611312611ae2565b73ffffffffffffffffffffffffffffffffffffffff16611330611398565b73ffffffffffffffffffffffffffffffffffffffff1614611386576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137d90612e21565b60405180910390fd5b6113906000611d10565b565b600d5481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546113d19061312b565b80601f01602080910402602001604051908101604052809291908181526020018280546113fd9061312b565b801561144a5780601f1061141f5761010080835404028352916020019161144a565b820191906000526020600020905b81548152906001019060200180831161142d57829003601f168201915b5050505050905090565b600a60009054906101000a900460ff166114a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149a90612da1565b60405180910390fd5b806114ac610af7565b6114b69190612f60565b600e5410156114fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f190612e61565b60405180910390fd5b6000811161153d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153490612e01565b60405180910390fd5b600d54811115611582576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157990612de1565b60405180910390fd5b61158b81611dd6565b50565b611596611b49565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115fb576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611608611b49565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166116b5611b49565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516116fa9190612d24565b60405180910390a35050565b61170e611ae2565b73ffffffffffffffffffffffffffffffffffffffff1661172c611398565b73ffffffffffffffffffffffffffffffffffffffff1614611782576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177990612e21565b60405180910390fd5b8181600f91906117939291906125b7565b505050565b6117a3848484610b0e565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611805576117ce84848484611fa5565b611804576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606061181682611aea565b611855576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184c90612e41565b60405180910390fd5b600061185f612105565b9050600081511161187f57604051806020016040528060008152506118aa565b8061188984612197565b60405160200161189a929190612c79565b6040516020818303038152906040525b915050919050565b600e5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611954611ae2565b73ffffffffffffffffffffffffffffffffffffffff16611972611398565b73ffffffffffffffffffffffffffffffffffffffff16146119c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119bf90612e21565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2f90612d81565b60405180910390fd5b611a4181611d10565b50565b611a4c611ae2565b73ffffffffffffffffffffffffffffffffffffffff16611a6a611398565b73ffffffffffffffffffffffffffffffffffffffff1614611ac0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab790612e21565b60405180910390fd5b80600b8190555050565b60106020528060005260406000206000915090505481565b600033905090565b600081611af5611b51565b11158015611b04575060005482105b8015611b42575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b60008082905080611b69611b51565b11611bf157600054811015611bf05760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415611bee575b6000811415611be4576004600083600190039350838152602001908152602001600020549050611bb9565b8092505050611c23565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611cb0868684612344565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b611d0c82826040518060200160405280600081525061234d565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600c54601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611ef157600c54811015611e2f57600c5490505b600b54600c5482611e409190613041565b611e4a9190612fe7565b341015611e8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8390612d61565b60405180910390fd5b80601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611edb9190612f60565b92505081905550611eec3382611cf2565b611fa2565b600b5481611eff9190612fe7565b341015611f41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3890612dc1565b60405180910390fd5b80601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f909190612f60565b92505081905550611fa13382611cf2565b5b50565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611fcb611b49565b8786866040518563ffffffff1660e01b8152600401611fed9493929190612cd8565b602060405180830381600087803b15801561200757600080fd5b505af192505050801561203857506040513d601f19601f82011682018060405250810190612035919061296e565b60015b6120b2573d8060008114612068576040519150601f19603f3d011682016040523d82523d6000602084013e61206d565b606091505b506000815114156120aa576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600f80546121149061312b565b80601f01602080910402602001604051908101604052809291908181526020018280546121409061312b565b801561218d5780601f106121625761010080835404028352916020019161218d565b820191906000526020600020905b81548152906001019060200180831161217057829003601f168201915b5050505050905090565b606060008214156121df576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061233f565b600082905060005b600082146122115780806121fa9061318e565b915050600a8261220a9190612fb6565b91506121e7565b60008167ffffffffffffffff811115612253577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156122855781602001600182028036833780820191505090505b5090505b600085146123385760018261229e9190613041565b9150600a856122ad91906131d7565b60306122b99190612f60565b60f81b8183815181106122f5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856123319190612fb6565b9450612289565b8093505050505b919050565b60009392505050565b61235783836123ea565b60008373ffffffffffffffffffffffffffffffffffffffff163b146123e557600080549050600083820390505b6123976000868380600101945086611fa5565b6123cd576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106123845781600054146123e257600080fd5b50505b505050565b600080549050600082141561242b576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6124386000848385611c93565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506124af836124a06000866000611c99565b6124a9856125a7565b17611cc1565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461255057808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612515565b50600082141561258c576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506125a26000848385611cec565b505050565b60006001821460e11b9050919050565b8280546125c39061312b565b90600052602060002090601f0160209004810192826125e5576000855561262c565b82601f106125fe57803560ff191683800117855561262c565b8280016001018555821561262c579182015b8281111561262b578235825591602001919060010190612610565b5b509050612639919061263d565b5090565b5b8082111561265657600081600090555060010161263e565b5090565b600061266d61266884612ee1565b612ebc565b90508281526020810184848401111561268557600080fd5b6126908482856130e9565b509392505050565b6000813590506126a7816134e7565b92915050565b6000813590506126bc816134fe565b92915050565b6000813590506126d181613515565b92915050565b6000815190506126e681613515565b92915050565b600082601f8301126126fd57600080fd5b813561270d84826020860161265a565b91505092915050565b60008083601f84011261272857600080fd5b8235905067ffffffffffffffff81111561274157600080fd5b60208301915083600182028301111561275957600080fd5b9250929050565b60008135905061276f8161352c565b92915050565b60006020828403121561278757600080fd5b600061279584828501612698565b91505092915050565b600080604083850312156127b157600080fd5b60006127bf85828601612698565b92505060206127d085828601612698565b9150509250929050565b6000806000606084860312156127ef57600080fd5b60006127fd86828701612698565b935050602061280e86828701612698565b925050604061281f86828701612760565b9150509250925092565b6000806000806080858703121561283f57600080fd5b600061284d87828801612698565b945050602061285e87828801612698565b935050604061286f87828801612760565b925050606085013567ffffffffffffffff81111561288c57600080fd5b612898878288016126ec565b91505092959194509250565b600080604083850312156128b757600080fd5b60006128c585828601612698565b92505060206128d6858286016126ad565b9150509250929050565b600080604083850312156128f357600080fd5b600061290185828601612698565b925050602061291285828601612760565b9150509250929050565b60006020828403121561292e57600080fd5b600061293c848285016126ad565b91505092915050565b60006020828403121561295757600080fd5b6000612965848285016126c2565b91505092915050565b60006020828403121561298057600080fd5b600061298e848285016126d7565b91505092915050565b600080602083850312156129aa57600080fd5b600083013567ffffffffffffffff8111156129c457600080fd5b6129d085828601612716565b92509250509250929050565b6000602082840312156129ee57600080fd5b60006129fc84828501612760565b91505092915050565b612a0e81613075565b82525050565b612a1d81613087565b82525050565b6000612a2e82612f12565b612a388185612f28565b9350612a488185602086016130f8565b612a51816132c4565b840191505092915050565b6000612a6782612f1d565b612a718185612f44565b9350612a818185602086016130f8565b612a8a816132c4565b840191505092915050565b6000612aa082612f1d565b612aaa8185612f55565b9350612aba8185602086016130f8565b80840191505092915050565b6000612ad3601983612f44565b9150612ade826132d5565b602082019050919050565b6000612af6602683612f44565b9150612b01826132fe565b604082019050919050565b6000612b19601f83612f44565b9150612b248261334d565b602082019050919050565b6000612b3c601d83612f44565b9150612b4782613376565b602082019050919050565b6000612b5f601a83612f44565b9150612b6a8261339f565b602082019050919050565b6000612b82601e83612f44565b9150612b8d826133c8565b602082019050919050565b6000612ba5600583612f55565b9150612bb0826133f1565b600582019050919050565b6000612bc8602083612f44565b9150612bd38261341a565b602082019050919050565b6000612beb602f83612f44565b9150612bf682613443565b604082019050919050565b6000612c0e601383612f44565b9150612c1982613492565b602082019050919050565b6000612c31600083612f39565b9150612c3c826134bb565b600082019050919050565b6000612c54601f83612f44565b9150612c5f826134be565b602082019050919050565b612c73816130df565b82525050565b6000612c858285612a95565b9150612c918284612a95565b9150612c9c82612b98565b91508190509392505050565b6000612cb382612c24565b9150819050919050565b6000602082019050612cd26000830184612a05565b92915050565b6000608082019050612ced6000830187612a05565b612cfa6020830186612a05565b612d076040830185612c6a565b8181036060830152612d198184612a23565b905095945050505050565b6000602082019050612d396000830184612a14565b92915050565b60006020820190508181036000830152612d598184612a5c565b905092915050565b60006020820190508181036000830152612d7a81612ac6565b9050919050565b60006020820190508181036000830152612d9a81612ae9565b9050919050565b60006020820190508181036000830152612dba81612b0c565b9050919050565b60006020820190508181036000830152612dda81612b2f565b9050919050565b60006020820190508181036000830152612dfa81612b52565b9050919050565b60006020820190508181036000830152612e1a81612b75565b9050919050565b60006020820190508181036000830152612e3a81612bbb565b9050919050565b60006020820190508181036000830152612e5a81612bde565b9050919050565b60006020820190508181036000830152612e7a81612c01565b9050919050565b60006020820190508181036000830152612e9a81612c47565b9050919050565b6000602082019050612eb66000830184612c6a565b92915050565b6000612ec6612ed7565b9050612ed2828261315d565b919050565b6000604051905090565b600067ffffffffffffffff821115612efc57612efb613295565b5b612f05826132c4565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000612f6b826130df565b9150612f76836130df565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612fab57612faa613208565b5b828201905092915050565b6000612fc1826130df565b9150612fcc836130df565b925082612fdc57612fdb613237565b5b828204905092915050565b6000612ff2826130df565b9150612ffd836130df565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561303657613035613208565b5b828202905092915050565b600061304c826130df565b9150613057836130df565b92508282101561306a57613069613208565b5b828203905092915050565b6000613080826130bf565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156131165780820151818401526020810190506130fb565b83811115613125576000848401525b50505050565b6000600282049050600182168061314357607f821691505b6020821081141561315757613156613266565b5b50919050565b613166826132c4565b810181811067ffffffffffffffff8211171561318557613184613295565b5b80604052505050565b6000613199826130df565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156131cc576131cb613208565b5b600182019050919050565b60006131e2826130df565b91506131ed836130df565b9250826131fd576131fc613237565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4b69647a546f7069613a20436c61696d2046726565204e465400000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4b69647a546f7069613a204d696e74206973206e6f74206c6976652079657400600082015250565b7f4b69647a546f7069613a20496e76616c6964206d696e74207072696365000000600082015250565b7f4b69647a546f7069613a20457863656564206d6178206d696e74000000000000600082015250565b7f4b69647a546f7069613a20496e76616c6964206d696e7420616d6f756e740000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4b69647a546f7069613a20536f6c64206f757400000000000000000000000000600082015250565b50565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6134f081613075565b81146134fb57600080fd5b50565b61350781613087565b811461351257600080fd5b50565b61351e81613093565b811461352957600080fd5b50565b613535816130df565b811461354057600080fd5b5056fea264697066735822122040bc93f8f4faef1d0c804e3ff53127716457bf6010fec0bb8b533d9ae0b17e0d64736f6c63430008040033
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.