Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 439 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 15962307 | 763 days ago | IN | 0 ETH | 0.00081551 | ||||
Set Approval For... | 15740521 | 794 days ago | IN | 0 ETH | 0.00098161 | ||||
Set Approval For... | 15612601 | 812 days ago | IN | 0 ETH | 0.00025156 | ||||
Set Approval For... | 15596580 | 814 days ago | IN | 0 ETH | 0.00117405 | ||||
Set Approval For... | 15580537 | 816 days ago | IN | 0 ETH | 0.0002542 | ||||
Set Approval For... | 15564385 | 818 days ago | IN | 0 ETH | 0.00039313 | ||||
Set Approval For... | 15563917 | 818 days ago | IN | 0 ETH | 0.00061578 | ||||
Transfer From | 15563827 | 818 days ago | IN | 0 ETH | 0.00027671 | ||||
Set Approval For... | 15560448 | 819 days ago | IN | 0 ETH | 0.0002455 | ||||
Set Approval For... | 15560430 | 819 days ago | IN | 0 ETH | 0.00029822 | ||||
Set Approval For... | 15560408 | 819 days ago | IN | 0 ETH | 0.00026573 | ||||
Set Approval For... | 15560331 | 819 days ago | IN | 0 ETH | 0.00035071 | ||||
Set Approval For... | 15549063 | 820 days ago | IN | 0 ETH | 0.00039573 | ||||
Set Approval For... | 15546220 | 821 days ago | IN | 0 ETH | 0.00037059 | ||||
Set Approval For... | 15540479 | 822 days ago | IN | 0 ETH | 0.00102761 | ||||
Set Approval For... | 15536627 | 822 days ago | IN | 0 ETH | 0.00056623 | ||||
Set Approval For... | 15534810 | 823 days ago | IN | 0 ETH | 0.00099526 | ||||
Set Approval For... | 15532609 | 823 days ago | IN | 0 ETH | 0.00035282 | ||||
Set Approval For... | 15529711 | 823 days ago | IN | 0 ETH | 0.00051447 | ||||
Set Approval For... | 15527983 | 824 days ago | IN | 0 ETH | 0.00110936 | ||||
Set Publicsale | 15523250 | 824 days ago | IN | 0 ETH | 0.00034288 | ||||
Reveal | 15523247 | 824 days ago | IN | 0 ETH | 0.00035826 | ||||
Set Base URI | 15523235 | 824 days ago | IN | 0 ETH | 0.00136249 | ||||
Owner Mint | 15522648 | 825 days ago | IN | 0 ETH | 0.00196566 | ||||
Owner Mint | 15522639 | 825 days ago | IN | 0 ETH | 0.00225412 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
15522537 | 825 days ago | 0.154 ETH | ||||
15504884 | 828 days ago | 3.311 ETH | ||||
15502063 | 828 days ago | 15.323 ETH | ||||
15502029 | 828 days ago | 16.94 ETH | ||||
15502004 | 828 days ago | 16.94 ETH | ||||
15501990 | 828 days ago | 17.094 ETH | ||||
15501954 | 828 days ago | 17.094 ETH | ||||
15501926 | 828 days ago | 17.094 ETH | ||||
15501903 | 828 days ago | 16.94 ETH | ||||
15501879 | 828 days ago | 16.94 ETH | ||||
15501858 | 828 days ago | 16.94 ETH | ||||
15501838 | 828 days ago | 16.94 ETH | ||||
15501813 | 828 days ago | 16.94 ETH | ||||
15501793 | 828 days ago | 16.94 ETH | ||||
15501765 | 828 days ago | 16.94 ETH | ||||
15501690 | 828 days ago | 17.248 ETH | ||||
15501671 | 828 days ago | 17.248 ETH | ||||
15501632 | 828 days ago | 16.94 ETH | ||||
15501612 | 828 days ago | 17.248 ETH | ||||
15501587 | 828 days ago | 16.94 ETH | ||||
15501557 | 828 days ago | 17.248 ETH | ||||
15501539 | 828 days ago | 17.248 ETH | ||||
15501507 | 828 days ago | 17.248 ETH | ||||
15501489 | 828 days ago | 17.248 ETH | ||||
15501462 | 828 days ago | 17.248 ETH |
Loading...
Loading
Contract Name:
LionKingAtJob
Compiler Version
v0.8.7+commit.e28d00a7
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.7; import "erc721a/contracts/extensions/ERC721AQueryable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract LionKingAtJob is ERC721AQueryable, Ownable { string public baseURI; string public baseExtension = ".json"; string public notRevealedUri; uint256 public cost = 77000000000000000; uint256 public maxSupply = 10000; bool public revealed = false; bool public presale = false; bool public publicsale = false; bytes32 public whitelistRoot; constructor() ERC721A("Lion King at Job", "LKAJ") { } // ====== Settings ====== modifier callerIsUser() { require(tx.origin == msg.sender, "cannot be called by a contract"); _; } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function _startTokenId() internal pure override returns (uint256){ return 1; } // // ====== public ====== function mint(uint256 _mintAmount) public payable callerIsUser { // Is publicsale active require(publicsale, "publicsale is not active"); // // Amount and payment control uint256 supply = totalSupply(); require(_mintAmount > 0, "need to mint at least 1 NFT"); require(supply + _mintAmount <= maxSupply, "max NFT limit exceeded"); require(msg.value >= cost * _mintAmount, "insufficient funds"); // _safeMint(msg.sender, _mintAmount); } function whitelistMint(uint256 _mintAmount, bytes32[] calldata _merkleProof) public payable callerIsUser { // Is presale active require(presale, "presale is not active"); // // Whitelist Requires bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(_merkleProof, whitelistRoot, leaf), "user is not whitelisted"); // // Amount and payments control uint256 supply = totalSupply(); require(_mintAmount > 0, "need to mint at least 1 NFT"); require(supply + _mintAmount <= maxSupply, "max NFT limit exceeded"); require(msg.value >= cost * _mintAmount, "insufficient funds"); // _safeMint(msg.sender, _mintAmount); } function ownerMint(uint256 _mintAmount) public onlyOwner { // Amount Control uint256 supply = totalSupply(); require(_mintAmount > 0, "need to mint at least 1 NFT"); require(supply + _mintAmount <= maxSupply, "max NFT limit exceeded"); // _safeMint(msg.sender, _mintAmount); } // ====== View ====== function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); if(revealed == false) { return notRevealedUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, _toString(tokenId), baseExtension)) : ""; } // ====== Only Owner ====== function reveal() public onlyOwner { revealed = true; } // Whitelist and OG roots (presale) function setWhitelistRoot(bytes32 _whitelistRoot) public onlyOwner{ whitelistRoot = _whitelistRoot; } // // Max Mint Amounts - Cost function setCost(uint256 _newCost) public onlyOwner { cost = _newCost; } // // Metadata function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function setBaseExtension(string memory _newBaseExtension) public onlyOwner { baseExtension = _newBaseExtension; } function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner { notRevealedUri = _notRevealedURI; } // // Sale states function setPresale() public onlyOwner { presale = !presale; } function setPublicsale() public onlyOwner { publicsale = !publicsale; } // function withdraw() public payable onlyOwner { // ============================================================================= (bool os, ) = payable(owner()).call{value: address(this).balance}(""); require(os); // ============================================================================= } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// 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 // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721AQueryable.sol'; import '../ERC721A.sol'; /** * @title ERC721A Queryable * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * - `extraData` = `0` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * - `extraData` = `<Extra data when token was burned>` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` * - `extraData` = `<Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, * including the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at `_startTokenId()` * (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // 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 tokenId of the next token 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 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @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 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 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 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 returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ 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: 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. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view 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 { 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; } /** * 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 ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * 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); } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @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 See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _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 ''; } /** * @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)) } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _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 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 { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` 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 tokenId = startTokenId; uint256 end = startTokenId + quantity; do { emit Transfer(address(0), to, tokenId++); } while (tokenId < end); _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 { 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 Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { // Compute the slot. mstore(0x00, tokenId) mstore(0x20, tokenApprovalsPtr.slot) approvedAddressSlot := keccak256(0x00, 0x40) // Load the slot's value from storage. approvedAddress := sload(approvedAddressSlot) } } /** * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`. */ function _isOwnerOrApproved( address approvedAddress, address from, address msgSender ) private pure returns (bool result) { assembly { // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from := and(from, BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, BITMASK_ADDRESS) // `msgSender == from || msgSender == approvedAddress`. result := or(eq(msgSender, from), eq(msgSender, approvedAddress)) } } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function 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) = _getApprovedAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(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 `_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) = _getApprovedAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(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++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try 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)) } } } } /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal { 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 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; } /** * @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 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 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 returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of an ERC721AQueryable compliant contract. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ 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(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set through `_extraData`. uint24 extraData; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // 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); // ============================== // 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`. * * 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); // ============================== // 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 standard. See `_mintERC2309` for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_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":"presale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicsale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPublicsale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_whitelistRoot","type":"bytes32"}],"name":"setWhitelistRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60806040526040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600a90805190602001906200005192919062000276565b506701118f178fb48000600c55612710600d556000600e60006101000a81548160ff0219169083151502179055506000600e60016101000a81548160ff0219169083151502179055506000600e60026101000a81548160ff021916908315150217905550348015620000c257600080fd5b506040518060400160405280601081526020017f4c696f6e204b696e67206174204a6f62000000000000000000000000000000008152506040518060400160405280600481526020017f4c4b414a0000000000000000000000000000000000000000000000000000000081525081600290805190602001906200014792919062000276565b5080600390805190602001906200016092919062000276565b50620001716200019f60201b60201c565b6000819055505050620001996200018d620001a860201b60201c565b620001b060201b60201c565b6200038b565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002849062000326565b90600052602060002090601f016020900481019282620002a85760008555620002f4565b82601f10620002c357805160ff1916838001178555620002f4565b82800160010185558215620002f4579182015b82811115620002f3578251825591602001919060010190620002d6565b5b50905062000303919062000307565b5090565b5b808211156200032257600081600090555060010162000308565b5090565b600060028204905060018216806200033f57607f821691505b602082108114156200035657620003556200035c565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6147ae806200039b6000396000f3fe6080604052600436106102515760003560e01c806395d89b4111610139578063d2cab056116100b6578063e985e9c51161007a578063e985e9c514610865578063f19e75d4146108a2578063f2c4ce1e146108cb578063f2fde38b146108f4578063f5aa406d1461091d578063fdea8e0b1461094657610251565b8063d2cab056146107c7578063d5abeb01146107e3578063da3ef23f1461080e578063dcc4074414610837578063e65242241461084e57610251565b8063b88d4fde116100fd578063b88d4fde146106ce578063b94805a2146106f7578063c23dc68f14610722578063c66828621461075f578063c87b56dd1461078a57610251565b806395d89b411461060a57806399a2557a14610635578063a0712d6814610672578063a22cb4651461068e578063a475b5dd146106b757610251565b806342842e0e116101d25780636352211e116101965780636352211e146104e65780636c0360eb1461052357806370a082311461054e578063715018a61461058b5780638462151c146105a25780638da5cb5b146105df57610251565b806342842e0e1461040357806344a0d68a1461042c578063518302271461045557806355f804b3146104805780635bbb2177146104a957610251565b806313faede61161021957806313faede61461034f57806318160ddd1461037a57806323b872dd146103a5578063386bfc98146103ce5780633ccfd60b146103f957610251565b806301ffc9a71461025657806306fdde0314610293578063081812fc146102be578063081c8c44146102fb578063095ea7b314610326575b600080fd5b34801561026257600080fd5b5061027d60048036038101906102789190613758565b610971565b60405161028a9190613e6b565b60405180910390f35b34801561029f57600080fd5b506102a8610a03565b6040516102b59190613ea1565b60405180910390f35b3480156102ca57600080fd5b506102e560048036038101906102e091906137fb565b610a95565b6040516102f29190613dc0565b60405180910390f35b34801561030757600080fd5b50610310610b11565b60405161031d9190613ea1565b60405180910390f35b34801561033257600080fd5b5061034d6004803603810190610348919061364f565b610b9f565b005b34801561035b57600080fd5b50610364610ce0565b604051610371919061401e565b60405180910390f35b34801561038657600080fd5b5061038f610ce6565b60405161039c919061401e565b60405180910390f35b3480156103b157600080fd5b506103cc60048036038101906103c79190613539565b610cfd565b005b3480156103da57600080fd5b506103e3611022565b6040516103f09190613e86565b60405180910390f35b610401611028565b005b34801561040f57600080fd5b5061042a60048036038101906104259190613539565b611124565b005b34801561043857600080fd5b50610453600480360381019061044e91906137fb565b611144565b005b34801561046157600080fd5b5061046a6111ca565b6040516104779190613e6b565b60405180910390f35b34801561048c57600080fd5b506104a760048036038101906104a291906137b2565b6111dd565b005b3480156104b557600080fd5b506104d060048036038101906104cb91906136e2565b611273565b6040516104dd9190613e27565b60405180910390f35b3480156104f257600080fd5b5061050d600480360381019061050891906137fb565b611334565b60405161051a9190613dc0565b60405180910390f35b34801561052f57600080fd5b50610538611346565b6040516105459190613ea1565b60405180910390f35b34801561055a57600080fd5b50610575600480360381019061057091906134cc565b6113d4565b604051610582919061401e565b60405180910390f35b34801561059757600080fd5b506105a061148d565b005b3480156105ae57600080fd5b506105c960048036038101906105c491906134cc565b611515565b6040516105d69190613e49565b60405180910390f35b3480156105eb57600080fd5b506105f461165f565b6040516106019190613dc0565b60405180910390f35b34801561061657600080fd5b5061061f611689565b60405161062c9190613ea1565b60405180910390f35b34801561064157600080fd5b5061065c6004803603810190610657919061368f565b61171b565b6040516106699190613e49565b60405180910390f35b61068c600480360381019061068791906137fb565b61192f565b005b34801561069a57600080fd5b506106b560048036038101906106b0919061360f565b611ae9565b005b3480156106c357600080fd5b506106cc611c61565b005b3480156106da57600080fd5b506106f560048036038101906106f0919061358c565b611cfa565b005b34801561070357600080fd5b5061070c611d6d565b6040516107199190613e6b565b60405180910390f35b34801561072e57600080fd5b50610749600480360381019061074491906137fb565b611d80565b6040516107569190614003565b60405180910390f35b34801561076b57600080fd5b50610774611dea565b6040516107819190613ea1565b60405180910390f35b34801561079657600080fd5b506107b160048036038101906107ac91906137fb565b611e78565b6040516107be9190613ea1565b60405180910390f35b6107e160048036038101906107dc9190613828565b611fd1565b005b3480156107ef57600080fd5b506107f8612246565b604051610805919061401e565b60405180910390f35b34801561081a57600080fd5b50610835600480360381019061083091906137b2565b61224c565b005b34801561084357600080fd5b5061084c6122e2565b005b34801561085a57600080fd5b5061086361238a565b005b34801561087157600080fd5b5061088c600480360381019061088791906134f9565b612432565b6040516108999190613e6b565b60405180910390f35b3480156108ae57600080fd5b506108c960048036038101906108c491906137fb565b6124c6565b005b3480156108d757600080fd5b506108f260048036038101906108ed91906137b2565b6125ef565b005b34801561090057600080fd5b5061091b600480360381019061091691906134cc565b612685565b005b34801561092957600080fd5b50610944600480360381019061093f919061372b565b61277d565b005b34801561095257600080fd5b5061095b612803565b6040516109689190613e6b565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109cc57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109fc5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610a1290614354565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3e90614354565b8015610a8b5780601f10610a6057610100808354040283529160200191610a8b565b820191906000526020600020905b815481529060010190602001808311610a6e57829003601f168201915b5050505050905090565b6000610aa082612816565b610ad6576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600b8054610b1e90614354565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4a90614354565b8015610b975780601f10610b6c57610100808354040283529160200191610b97565b820191906000526020600020905b815481529060010190602001808311610b7a57829003601f168201915b505050505081565b6000610baa82611334565b90508073ffffffffffffffffffffffffffffffffffffffff16610bcb612875565b73ffffffffffffffffffffffffffffffffffffffff1614610c2e57610bf781610bf2612875565b612432565b610c2d576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600c5481565b6000610cf061287d565b6001546000540303905090565b6000610d0882612886565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d6f576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610d7b84612954565b91509150610d918187610d8c612875565b612976565b610ddd57610da686610da1612875565b612432565b610ddc576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610e44576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e5186868660016129ba565b8015610e5c57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610f2a85610f068888876129c0565b7c0200000000000000000000000000000000000000000000000000000000176129e8565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610fb2576000600185019050600060046000838152602001908152602001600020541415610fb0576000548114610faf578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461101a8686866001612a13565b505050505050565b600f5481565b611030612a19565b73ffffffffffffffffffffffffffffffffffffffff1661104e61165f565b73ffffffffffffffffffffffffffffffffffffffff16146110a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109b90613f43565b60405180910390fd5b60006110ae61165f565b73ffffffffffffffffffffffffffffffffffffffff16476040516110d190613dab565b60006040518083038185875af1925050503d806000811461110e576040519150601f19603f3d011682016040523d82523d6000602084013e611113565b606091505b505090508061112157600080fd5b50565b61113f83838360405180602001604052806000815250611cfa565b505050565b61114c612a19565b73ffffffffffffffffffffffffffffffffffffffff1661116a61165f565b73ffffffffffffffffffffffffffffffffffffffff16146111c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b790613f43565b60405180910390fd5b80600c8190555050565b600e60009054906101000a900460ff1681565b6111e5612a19565b73ffffffffffffffffffffffffffffffffffffffff1661120361165f565b73ffffffffffffffffffffffffffffffffffffffff1614611259576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125090613f43565b60405180910390fd5b806009908051906020019061126f929190613188565b5050565b606060008251905060008167ffffffffffffffff811115611297576112966144b1565b5b6040519080825280602002602001820160405280156112d057816020015b6112bd61320e565b8152602001906001900390816112b55790505b50905060005b828114611329576113008582815181106112f3576112f2614482565b5b6020026020010151611d80565b82828151811061131357611312614482565b5b60200260200101819052508060010190506112d6565b508092505050919050565b600061133f82612886565b9050919050565b6009805461135390614354565b80601f016020809104026020016040519081016040528092919081815260200182805461137f90614354565b80156113cc5780601f106113a1576101008083540402835291602001916113cc565b820191906000526020600020905b8154815290600101906020018083116113af57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561143c576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611495612a19565b73ffffffffffffffffffffffffffffffffffffffff166114b361165f565b73ffffffffffffffffffffffffffffffffffffffff1614611509576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150090613f43565b60405180910390fd5b6115136000612a21565b565b60606000806000611525856113d4565b905060008167ffffffffffffffff811115611543576115426144b1565b5b6040519080825280602002602001820160405280156115715781602001602082028036833780820191505090505b50905061157c61320e565b600061158661287d565b90505b8386146116515761159981612ae7565b91508160400151156115aa57611646565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff16146115ea57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611645578083878060010198508151811061163857611637614482565b5b6020026020010181815250505b5b806001019050611589565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461169890614354565b80601f01602080910402602001604051908101604052809291908181526020018280546116c490614354565b80156117115780601f106116e657610100808354040283529160200191611711565b820191906000526020600020905b8154815290600101906020018083116116f457829003601f168201915b5050505050905090565b6060818310611756576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611761612b12565b905061176b61287d565b85101561177d5761177a61287d565b94505b80841115611789578093505b6000611794876113d4565b9050848610156117b75760008686039050818110156117b1578091505b506117bc565b600090505b60008167ffffffffffffffff8111156117d8576117d76144b1565b5b6040519080825280602002602001820160405280156118065781602001602082028036833780820191505090505b509050600082141561181e5780945050505050611928565b600061182988611d80565b90506000816040015161183e57816000015190505b60008990505b8881141580156118545750848714155b1561191a5761186281612ae7565b92508260400151156118735761190f565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff16146118b357826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561190e578084888060010199508151811061190157611900614482565b5b6020026020010181815250505b5b806001019050611844565b508583528296505050505050505b9392505050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461199d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199490613fa3565b60405180910390fd5b600e60029054906101000a900460ff166119ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e390613f23565b60405180910390fd5b60006119f6610ce6565b905060008211611a3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3290613fe3565b60405180910390fd5b600d548282611a4a91906141c1565b1115611a8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8290613ee3565b60405180910390fd5b81600c54611a999190614217565b341015611adb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad290613f83565b60405180910390fd5b611ae53383612b1b565b5050565b611af1612875565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b56576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611b63612875565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611c10612875565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611c559190613e6b565b60405180910390a35050565b611c69612a19565b73ffffffffffffffffffffffffffffffffffffffff16611c8761165f565b73ffffffffffffffffffffffffffffffffffffffff1614611cdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd490613f43565b60405180910390fd5b6001600e60006101000a81548160ff021916908315150217905550565b611d05848484610cfd565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611d6757611d3084848484612b39565b611d66576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600e60029054906101000a900460ff1681565b611d8861320e565b611d9061320e565b611d9861287d565b831080611dac5750611da8612b12565b8310155b15611dba5780915050611de5565b611dc383612ae7565b9050806040015115611dd85780915050611de5565b611de183612c99565b9150505b919050565b600a8054611df790614354565b80601f0160208091040260200160405190810160405280929190818152602001828054611e2390614354565b8015611e705780601f10611e4557610100808354040283529160200191611e70565b820191906000526020600020905b815481529060010190602001808311611e5357829003601f168201915b505050505081565b6060611e8382612816565b611ec2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb990613f63565b60405180910390fd5b60001515600e60009054906101000a900460ff1615151415611f7057600b8054611eeb90614354565b80601f0160208091040260200160405190810160405280929190818152602001828054611f1790614354565b8015611f645780601f10611f3957610100808354040283529160200191611f64565b820191906000526020600020905b815481529060010190602001808311611f4757829003601f168201915b50505050509050611fcc565b6000611f7a612cb9565b90506000815111611f9a5760405180602001604052806000815250611fc8565b80611fa484612d4b565b600a604051602001611fb893929190613d7a565b6040516020818303038152906040525b9150505b919050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461203f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203690613fa3565b60405180910390fd5b600e60019054906101000a900460ff1661208e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208590613f03565b60405180910390fd5b6000336040516020016120a19190613d5f565b604051602081830303815290604052805190602001209050612107838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600f5483612da5565b612146576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213d90613fc3565b60405180910390fd5b6000612150610ce6565b905060008511612195576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218c90613fe3565b60405180910390fd5b600d5485826121a491906141c1565b11156121e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121dc90613ee3565b60405180910390fd5b84600c546121f39190614217565b341015612235576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222c90613f83565b60405180910390fd5b61223f3386612b1b565b5050505050565b600d5481565b612254612a19565b73ffffffffffffffffffffffffffffffffffffffff1661227261165f565b73ffffffffffffffffffffffffffffffffffffffff16146122c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122bf90613f43565b60405180910390fd5b80600a90805190602001906122de929190613188565b5050565b6122ea612a19565b73ffffffffffffffffffffffffffffffffffffffff1661230861165f565b73ffffffffffffffffffffffffffffffffffffffff161461235e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235590613f43565b60405180910390fd5b600e60019054906101000a900460ff1615600e60016101000a81548160ff021916908315150217905550565b612392612a19565b73ffffffffffffffffffffffffffffffffffffffff166123b061165f565b73ffffffffffffffffffffffffffffffffffffffff1614612406576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123fd90613f43565b60405180910390fd5b600e60029054906101000a900460ff1615600e60026101000a81548160ff021916908315150217905550565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6124ce612a19565b73ffffffffffffffffffffffffffffffffffffffff166124ec61165f565b73ffffffffffffffffffffffffffffffffffffffff1614612542576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253990613f43565b60405180910390fd5b600061254c610ce6565b905060008211612591576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258890613fe3565b60405180910390fd5b600d5482826125a091906141c1565b11156125e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125d890613ee3565b60405180910390fd5b6125eb3383612b1b565b5050565b6125f7612a19565b73ffffffffffffffffffffffffffffffffffffffff1661261561165f565b73ffffffffffffffffffffffffffffffffffffffff161461266b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266290613f43565b60405180910390fd5b80600b9080519060200190612681929190613188565b5050565b61268d612a19565b73ffffffffffffffffffffffffffffffffffffffff166126ab61165f565b73ffffffffffffffffffffffffffffffffffffffff1614612701576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f890613f43565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612771576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161276890613ec3565b60405180910390fd5b61277a81612a21565b50565b612785612a19565b73ffffffffffffffffffffffffffffffffffffffff166127a361165f565b73ffffffffffffffffffffffffffffffffffffffff16146127f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f090613f43565b60405180910390fd5b80600f8190555050565b600e60019054906101000a900460ff1681565b60008161282161287d565b11158015612830575060005482105b801561286e575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b6000808290508061289561287d565b1161291d5760005481101561291c5760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216141561291a575b60008114156129105760046000836001900393508381526020019081526020016000205490506128e5565b809250505061294f565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86129d7868684612dbc565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612aef61320e565b612b0b6004600084815260200190815260200160002054612dc5565b9050919050565b60008054905090565b612b35828260405180602001604052806000815250612e7b565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612b5f612875565b8786866040518563ffffffff1660e01b8152600401612b819493929190613ddb565b602060405180830381600087803b158015612b9b57600080fd5b505af1925050508015612bcc57506040513d601f19601f82011682018060405250810190612bc99190613785565b60015b612c46573d8060008114612bfc576040519150601f19603f3d011682016040523d82523d6000602084013e612c01565b606091505b50600081511415612c3e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b612ca161320e565b612cb2612cad83612886565b612dc5565b9050919050565b606060098054612cc890614354565b80601f0160208091040260200160405190810160405280929190818152602001828054612cf490614354565b8015612d415780601f10612d1657610100808354040283529160200191612d41565b820191906000526020600020905b815481529060010190602001808311612d2457829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b8015612d9157600183039250600a81066030018353600a81049050612d71565b508181036020830392508083525050919050565b600082612db28584612f18565b1490509392505050565b60009392505050565b612dcd61320e565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b612e858383612f8d565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612f1357600080549050600083820390505b612ec56000868380600101945086612b39565b612efb576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612eb2578160005414612f1057600080fd5b50505b505050565b60008082905060005b8451811015612f82576000858281518110612f3f57612f3e614482565b5b60200260200101519050808311612f6157612f5a8382613161565b9250612f6e565b612f6b8184613161565b92505b508080612f7a906143b7565b915050612f21565b508091505092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ffa576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415613035576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61304260008483856129ba565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506130b9836130aa60008660006129c0565b6130b385613178565b176129e8565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106130dd5780600081905550505061315c6000848385612a13565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b82805461319490614354565b90600052602060002090601f0160209004810192826131b657600085556131fd565b82601f106131cf57805160ff19168380011785556131fd565b828001600101855582156131fd579182015b828111156131fc5782518255916020019190600101906131e1565b5b50905061320a919061325d565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b8082111561327657600081600090555060010161325e565b5090565b600061328d6132888461405e565b614039565b905080838252602082019050828560208602820111156132b0576132af6144ea565b5b60005b858110156132e057816132c688826134b7565b8452602084019350602083019250506001810190506132b3565b5050509392505050565b60006132fd6132f88461408a565b614039565b905082815260208101848484011115613319576133186144ef565b5b613324848285614312565b509392505050565b600061333f61333a846140bb565b614039565b90508281526020810184848401111561335b5761335a6144ef565b5b613366848285614312565b509392505050565b60008135905061337d81614705565b92915050565b60008083601f840112613399576133986144e5565b5b8235905067ffffffffffffffff8111156133b6576133b56144e0565b5b6020830191508360208202830111156133d2576133d16144ea565b5b9250929050565b600082601f8301126133ee576133ed6144e5565b5b81356133fe84826020860161327a565b91505092915050565b6000813590506134168161471c565b92915050565b60008135905061342b81614733565b92915050565b6000813590506134408161474a565b92915050565b6000815190506134558161474a565b92915050565b600082601f8301126134705761346f6144e5565b5b81356134808482602086016132ea565b91505092915050565b600082601f83011261349e5761349d6144e5565b5b81356134ae84826020860161332c565b91505092915050565b6000813590506134c681614761565b92915050565b6000602082840312156134e2576134e16144f9565b5b60006134f08482850161336e565b91505092915050565b600080604083850312156135105761350f6144f9565b5b600061351e8582860161336e565b925050602061352f8582860161336e565b9150509250929050565b600080600060608486031215613552576135516144f9565b5b60006135608682870161336e565b93505060206135718682870161336e565b9250506040613582868287016134b7565b9150509250925092565b600080600080608085870312156135a6576135a56144f9565b5b60006135b48782880161336e565b94505060206135c58782880161336e565b93505060406135d6878288016134b7565b925050606085013567ffffffffffffffff8111156135f7576135f66144f4565b5b6136038782880161345b565b91505092959194509250565b60008060408385031215613626576136256144f9565b5b60006136348582860161336e565b925050602061364585828601613407565b9150509250929050565b60008060408385031215613666576136656144f9565b5b60006136748582860161336e565b9250506020613685858286016134b7565b9150509250929050565b6000806000606084860312156136a8576136a76144f9565b5b60006136b68682870161336e565b93505060206136c7868287016134b7565b92505060406136d8868287016134b7565b9150509250925092565b6000602082840312156136f8576136f76144f9565b5b600082013567ffffffffffffffff811115613716576137156144f4565b5b613722848285016133d9565b91505092915050565b600060208284031215613741576137406144f9565b5b600061374f8482850161341c565b91505092915050565b60006020828403121561376e5761376d6144f9565b5b600061377c84828501613431565b91505092915050565b60006020828403121561379b5761379a6144f9565b5b60006137a984828501613446565b91505092915050565b6000602082840312156137c8576137c76144f9565b5b600082013567ffffffffffffffff8111156137e6576137e56144f4565b5b6137f284828501613489565b91505092915050565b600060208284031215613811576138106144f9565b5b600061381f848285016134b7565b91505092915050565b600080600060408486031215613841576138406144f9565b5b600061384f868287016134b7565b935050602084013567ffffffffffffffff8111156138705761386f6144f4565b5b61387c86828701613383565b92509250509250925092565b60006138948383613c79565b60808301905092915050565b60006138ac8383613d32565b60208301905092915050565b6138c181614271565b82525050565b6138d081614271565b82525050565b6138e76138e282614271565b614400565b82525050565b60006138f882614121565b6139028185614167565b935061390d836140ec565b8060005b8381101561393e5781516139258882613888565b97506139308361414d565b925050600181019050613911565b5085935050505092915050565b60006139568261412c565b6139608185614178565b935061396b836140fc565b8060005b8381101561399c57815161398388826138a0565b975061398e8361415a565b92505060018101905061396f565b5085935050505092915050565b6139b281614283565b82525050565b6139c181614283565b82525050565b6139d08161428f565b82525050565b60006139e182614137565b6139eb8185614189565b93506139fb818560208601614321565b613a04816144fe565b840191505092915050565b6000613a1a82614142565b613a2481856141a5565b9350613a34818560208601614321565b613a3d816144fe565b840191505092915050565b6000613a5382614142565b613a5d81856141b6565b9350613a6d818560208601614321565b80840191505092915050565b60008154613a8681614354565b613a9081866141b6565b94506001821660008114613aab5760018114613abc57613aef565b60ff19831686528186019350613aef565b613ac58561410c565b60005b83811015613ae757815481890152600182019150602081019050613ac8565b838801955050505b50505092915050565b6000613b056026836141a5565b9150613b108261451c565b604082019050919050565b6000613b286016836141a5565b9150613b338261456b565b602082019050919050565b6000613b4b6015836141a5565b9150613b5682614594565b602082019050919050565b6000613b6e6018836141a5565b9150613b79826145bd565b602082019050919050565b6000613b916020836141a5565b9150613b9c826145e6565b602082019050919050565b6000613bb4602f836141a5565b9150613bbf8261460f565b604082019050919050565b6000613bd760008361419a565b9150613be28261465e565b600082019050919050565b6000613bfa6012836141a5565b9150613c0582614661565b602082019050919050565b6000613c1d601e836141a5565b9150613c288261468a565b602082019050919050565b6000613c406017836141a5565b9150613c4b826146b3565b602082019050919050565b6000613c63601b836141a5565b9150613c6e826146dc565b602082019050919050565b608082016000820151613c8f60008501826138b8565b506020820151613ca26020850182613d50565b506040820151613cb560408501826139a9565b506060820151613cc86060850182613d23565b50505050565b608082016000820151613ce460008501826138b8565b506020820151613cf76020850182613d50565b506040820151613d0a60408501826139a9565b506060820151613d1d6060850182613d23565b50505050565b613d2c816142e5565b82525050565b613d3b816142f4565b82525050565b613d4a816142f4565b82525050565b613d59816142fe565b82525050565b6000613d6b82846138d6565b60148201915081905092915050565b6000613d868286613a48565b9150613d928285613a48565b9150613d9e8284613a79565b9150819050949350505050565b6000613db682613bca565b9150819050919050565b6000602082019050613dd560008301846138c7565b92915050565b6000608082019050613df060008301876138c7565b613dfd60208301866138c7565b613e0a6040830185613d41565b8181036060830152613e1c81846139d6565b905095945050505050565b60006020820190508181036000830152613e4181846138ed565b905092915050565b60006020820190508181036000830152613e63818461394b565b905092915050565b6000602082019050613e8060008301846139b8565b92915050565b6000602082019050613e9b60008301846139c7565b92915050565b60006020820190508181036000830152613ebb8184613a0f565b905092915050565b60006020820190508181036000830152613edc81613af8565b9050919050565b60006020820190508181036000830152613efc81613b1b565b9050919050565b60006020820190508181036000830152613f1c81613b3e565b9050919050565b60006020820190508181036000830152613f3c81613b61565b9050919050565b60006020820190508181036000830152613f5c81613b84565b9050919050565b60006020820190508181036000830152613f7c81613ba7565b9050919050565b60006020820190508181036000830152613f9c81613bed565b9050919050565b60006020820190508181036000830152613fbc81613c10565b9050919050565b60006020820190508181036000830152613fdc81613c33565b9050919050565b60006020820190508181036000830152613ffc81613c56565b9050919050565b60006080820190506140186000830184613cce565b92915050565b60006020820190506140336000830184613d41565b92915050565b6000614043614054565b905061404f8282614386565b919050565b6000604051905090565b600067ffffffffffffffff821115614079576140786144b1565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156140a5576140a46144b1565b5b6140ae826144fe565b9050602081019050919050565b600067ffffffffffffffff8211156140d6576140d56144b1565b5b6140df826144fe565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006141cc826142f4565b91506141d7836142f4565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561420c5761420b614424565b5b828201905092915050565b6000614222826142f4565b915061422d836142f4565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561426657614265614424565b5b828202905092915050565b600061427c826142c5565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b82818337600083830152505050565b60005b8381101561433f578082015181840152602081019050614324565b8381111561434e576000848401525b50505050565b6000600282049050600182168061436c57607f821691505b602082108114156143805761437f614453565b5b50919050565b61438f826144fe565b810181811067ffffffffffffffff821117156143ae576143ad6144b1565b5b80604052505050565b60006143c2826142f4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156143f5576143f4614424565b5b600182019050919050565b600061440b82614412565b9050919050565b600061441d8261450f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f6d6178204e4654206c696d697420657863656564656400000000000000000000600082015250565b7f70726573616c65206973206e6f74206163746976650000000000000000000000600082015250565b7f7075626c696373616c65206973206e6f74206163746976650000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b50565b7f696e73756666696369656e742066756e64730000000000000000000000000000600082015250565b7f63616e6e6f742062652063616c6c6564206279206120636f6e74726163740000600082015250565b7f75736572206973206e6f742077686974656c6973746564000000000000000000600082015250565b7f6e65656420746f206d696e74206174206c656173742031204e46540000000000600082015250565b61470e81614271565b811461471957600080fd5b50565b61472581614283565b811461473057600080fd5b50565b61473c8161428f565b811461474757600080fd5b50565b61475381614299565b811461475e57600080fd5b50565b61476a816142f4565b811461477557600080fd5b5056fea2646970667358221220c749025a2e3eda0a8312434297146c5bc6080cf3d2716b2b9417702b3ded705964736f6c63430008070033
Deployed Bytecode
0x6080604052600436106102515760003560e01c806395d89b4111610139578063d2cab056116100b6578063e985e9c51161007a578063e985e9c514610865578063f19e75d4146108a2578063f2c4ce1e146108cb578063f2fde38b146108f4578063f5aa406d1461091d578063fdea8e0b1461094657610251565b8063d2cab056146107c7578063d5abeb01146107e3578063da3ef23f1461080e578063dcc4074414610837578063e65242241461084e57610251565b8063b88d4fde116100fd578063b88d4fde146106ce578063b94805a2146106f7578063c23dc68f14610722578063c66828621461075f578063c87b56dd1461078a57610251565b806395d89b411461060a57806399a2557a14610635578063a0712d6814610672578063a22cb4651461068e578063a475b5dd146106b757610251565b806342842e0e116101d25780636352211e116101965780636352211e146104e65780636c0360eb1461052357806370a082311461054e578063715018a61461058b5780638462151c146105a25780638da5cb5b146105df57610251565b806342842e0e1461040357806344a0d68a1461042c578063518302271461045557806355f804b3146104805780635bbb2177146104a957610251565b806313faede61161021957806313faede61461034f57806318160ddd1461037a57806323b872dd146103a5578063386bfc98146103ce5780633ccfd60b146103f957610251565b806301ffc9a71461025657806306fdde0314610293578063081812fc146102be578063081c8c44146102fb578063095ea7b314610326575b600080fd5b34801561026257600080fd5b5061027d60048036038101906102789190613758565b610971565b60405161028a9190613e6b565b60405180910390f35b34801561029f57600080fd5b506102a8610a03565b6040516102b59190613ea1565b60405180910390f35b3480156102ca57600080fd5b506102e560048036038101906102e091906137fb565b610a95565b6040516102f29190613dc0565b60405180910390f35b34801561030757600080fd5b50610310610b11565b60405161031d9190613ea1565b60405180910390f35b34801561033257600080fd5b5061034d6004803603810190610348919061364f565b610b9f565b005b34801561035b57600080fd5b50610364610ce0565b604051610371919061401e565b60405180910390f35b34801561038657600080fd5b5061038f610ce6565b60405161039c919061401e565b60405180910390f35b3480156103b157600080fd5b506103cc60048036038101906103c79190613539565b610cfd565b005b3480156103da57600080fd5b506103e3611022565b6040516103f09190613e86565b60405180910390f35b610401611028565b005b34801561040f57600080fd5b5061042a60048036038101906104259190613539565b611124565b005b34801561043857600080fd5b50610453600480360381019061044e91906137fb565b611144565b005b34801561046157600080fd5b5061046a6111ca565b6040516104779190613e6b565b60405180910390f35b34801561048c57600080fd5b506104a760048036038101906104a291906137b2565b6111dd565b005b3480156104b557600080fd5b506104d060048036038101906104cb91906136e2565b611273565b6040516104dd9190613e27565b60405180910390f35b3480156104f257600080fd5b5061050d600480360381019061050891906137fb565b611334565b60405161051a9190613dc0565b60405180910390f35b34801561052f57600080fd5b50610538611346565b6040516105459190613ea1565b60405180910390f35b34801561055a57600080fd5b50610575600480360381019061057091906134cc565b6113d4565b604051610582919061401e565b60405180910390f35b34801561059757600080fd5b506105a061148d565b005b3480156105ae57600080fd5b506105c960048036038101906105c491906134cc565b611515565b6040516105d69190613e49565b60405180910390f35b3480156105eb57600080fd5b506105f461165f565b6040516106019190613dc0565b60405180910390f35b34801561061657600080fd5b5061061f611689565b60405161062c9190613ea1565b60405180910390f35b34801561064157600080fd5b5061065c6004803603810190610657919061368f565b61171b565b6040516106699190613e49565b60405180910390f35b61068c600480360381019061068791906137fb565b61192f565b005b34801561069a57600080fd5b506106b560048036038101906106b0919061360f565b611ae9565b005b3480156106c357600080fd5b506106cc611c61565b005b3480156106da57600080fd5b506106f560048036038101906106f0919061358c565b611cfa565b005b34801561070357600080fd5b5061070c611d6d565b6040516107199190613e6b565b60405180910390f35b34801561072e57600080fd5b50610749600480360381019061074491906137fb565b611d80565b6040516107569190614003565b60405180910390f35b34801561076b57600080fd5b50610774611dea565b6040516107819190613ea1565b60405180910390f35b34801561079657600080fd5b506107b160048036038101906107ac91906137fb565b611e78565b6040516107be9190613ea1565b60405180910390f35b6107e160048036038101906107dc9190613828565b611fd1565b005b3480156107ef57600080fd5b506107f8612246565b604051610805919061401e565b60405180910390f35b34801561081a57600080fd5b50610835600480360381019061083091906137b2565b61224c565b005b34801561084357600080fd5b5061084c6122e2565b005b34801561085a57600080fd5b5061086361238a565b005b34801561087157600080fd5b5061088c600480360381019061088791906134f9565b612432565b6040516108999190613e6b565b60405180910390f35b3480156108ae57600080fd5b506108c960048036038101906108c491906137fb565b6124c6565b005b3480156108d757600080fd5b506108f260048036038101906108ed91906137b2565b6125ef565b005b34801561090057600080fd5b5061091b600480360381019061091691906134cc565b612685565b005b34801561092957600080fd5b50610944600480360381019061093f919061372b565b61277d565b005b34801561095257600080fd5b5061095b612803565b6040516109689190613e6b565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109cc57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109fc5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610a1290614354565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3e90614354565b8015610a8b5780601f10610a6057610100808354040283529160200191610a8b565b820191906000526020600020905b815481529060010190602001808311610a6e57829003601f168201915b5050505050905090565b6000610aa082612816565b610ad6576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600b8054610b1e90614354565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4a90614354565b8015610b975780601f10610b6c57610100808354040283529160200191610b97565b820191906000526020600020905b815481529060010190602001808311610b7a57829003601f168201915b505050505081565b6000610baa82611334565b90508073ffffffffffffffffffffffffffffffffffffffff16610bcb612875565b73ffffffffffffffffffffffffffffffffffffffff1614610c2e57610bf781610bf2612875565b612432565b610c2d576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600c5481565b6000610cf061287d565b6001546000540303905090565b6000610d0882612886565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d6f576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610d7b84612954565b91509150610d918187610d8c612875565b612976565b610ddd57610da686610da1612875565b612432565b610ddc576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610e44576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e5186868660016129ba565b8015610e5c57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610f2a85610f068888876129c0565b7c0200000000000000000000000000000000000000000000000000000000176129e8565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610fb2576000600185019050600060046000838152602001908152602001600020541415610fb0576000548114610faf578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461101a8686866001612a13565b505050505050565b600f5481565b611030612a19565b73ffffffffffffffffffffffffffffffffffffffff1661104e61165f565b73ffffffffffffffffffffffffffffffffffffffff16146110a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109b90613f43565b60405180910390fd5b60006110ae61165f565b73ffffffffffffffffffffffffffffffffffffffff16476040516110d190613dab565b60006040518083038185875af1925050503d806000811461110e576040519150601f19603f3d011682016040523d82523d6000602084013e611113565b606091505b505090508061112157600080fd5b50565b61113f83838360405180602001604052806000815250611cfa565b505050565b61114c612a19565b73ffffffffffffffffffffffffffffffffffffffff1661116a61165f565b73ffffffffffffffffffffffffffffffffffffffff16146111c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b790613f43565b60405180910390fd5b80600c8190555050565b600e60009054906101000a900460ff1681565b6111e5612a19565b73ffffffffffffffffffffffffffffffffffffffff1661120361165f565b73ffffffffffffffffffffffffffffffffffffffff1614611259576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125090613f43565b60405180910390fd5b806009908051906020019061126f929190613188565b5050565b606060008251905060008167ffffffffffffffff811115611297576112966144b1565b5b6040519080825280602002602001820160405280156112d057816020015b6112bd61320e565b8152602001906001900390816112b55790505b50905060005b828114611329576113008582815181106112f3576112f2614482565b5b6020026020010151611d80565b82828151811061131357611312614482565b5b60200260200101819052508060010190506112d6565b508092505050919050565b600061133f82612886565b9050919050565b6009805461135390614354565b80601f016020809104026020016040519081016040528092919081815260200182805461137f90614354565b80156113cc5780601f106113a1576101008083540402835291602001916113cc565b820191906000526020600020905b8154815290600101906020018083116113af57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561143c576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611495612a19565b73ffffffffffffffffffffffffffffffffffffffff166114b361165f565b73ffffffffffffffffffffffffffffffffffffffff1614611509576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150090613f43565b60405180910390fd5b6115136000612a21565b565b60606000806000611525856113d4565b905060008167ffffffffffffffff811115611543576115426144b1565b5b6040519080825280602002602001820160405280156115715781602001602082028036833780820191505090505b50905061157c61320e565b600061158661287d565b90505b8386146116515761159981612ae7565b91508160400151156115aa57611646565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff16146115ea57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611645578083878060010198508151811061163857611637614482565b5b6020026020010181815250505b5b806001019050611589565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461169890614354565b80601f01602080910402602001604051908101604052809291908181526020018280546116c490614354565b80156117115780601f106116e657610100808354040283529160200191611711565b820191906000526020600020905b8154815290600101906020018083116116f457829003601f168201915b5050505050905090565b6060818310611756576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611761612b12565b905061176b61287d565b85101561177d5761177a61287d565b94505b80841115611789578093505b6000611794876113d4565b9050848610156117b75760008686039050818110156117b1578091505b506117bc565b600090505b60008167ffffffffffffffff8111156117d8576117d76144b1565b5b6040519080825280602002602001820160405280156118065781602001602082028036833780820191505090505b509050600082141561181e5780945050505050611928565b600061182988611d80565b90506000816040015161183e57816000015190505b60008990505b8881141580156118545750848714155b1561191a5761186281612ae7565b92508260400151156118735761190f565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff16146118b357826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561190e578084888060010199508151811061190157611900614482565b5b6020026020010181815250505b5b806001019050611844565b508583528296505050505050505b9392505050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461199d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199490613fa3565b60405180910390fd5b600e60029054906101000a900460ff166119ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e390613f23565b60405180910390fd5b60006119f6610ce6565b905060008211611a3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3290613fe3565b60405180910390fd5b600d548282611a4a91906141c1565b1115611a8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8290613ee3565b60405180910390fd5b81600c54611a999190614217565b341015611adb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad290613f83565b60405180910390fd5b611ae53383612b1b565b5050565b611af1612875565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b56576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611b63612875565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611c10612875565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611c559190613e6b565b60405180910390a35050565b611c69612a19565b73ffffffffffffffffffffffffffffffffffffffff16611c8761165f565b73ffffffffffffffffffffffffffffffffffffffff1614611cdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd490613f43565b60405180910390fd5b6001600e60006101000a81548160ff021916908315150217905550565b611d05848484610cfd565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611d6757611d3084848484612b39565b611d66576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600e60029054906101000a900460ff1681565b611d8861320e565b611d9061320e565b611d9861287d565b831080611dac5750611da8612b12565b8310155b15611dba5780915050611de5565b611dc383612ae7565b9050806040015115611dd85780915050611de5565b611de183612c99565b9150505b919050565b600a8054611df790614354565b80601f0160208091040260200160405190810160405280929190818152602001828054611e2390614354565b8015611e705780601f10611e4557610100808354040283529160200191611e70565b820191906000526020600020905b815481529060010190602001808311611e5357829003601f168201915b505050505081565b6060611e8382612816565b611ec2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb990613f63565b60405180910390fd5b60001515600e60009054906101000a900460ff1615151415611f7057600b8054611eeb90614354565b80601f0160208091040260200160405190810160405280929190818152602001828054611f1790614354565b8015611f645780601f10611f3957610100808354040283529160200191611f64565b820191906000526020600020905b815481529060010190602001808311611f4757829003601f168201915b50505050509050611fcc565b6000611f7a612cb9565b90506000815111611f9a5760405180602001604052806000815250611fc8565b80611fa484612d4b565b600a604051602001611fb893929190613d7a565b6040516020818303038152906040525b9150505b919050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461203f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203690613fa3565b60405180910390fd5b600e60019054906101000a900460ff1661208e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208590613f03565b60405180910390fd5b6000336040516020016120a19190613d5f565b604051602081830303815290604052805190602001209050612107838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600f5483612da5565b612146576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213d90613fc3565b60405180910390fd5b6000612150610ce6565b905060008511612195576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218c90613fe3565b60405180910390fd5b600d5485826121a491906141c1565b11156121e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121dc90613ee3565b60405180910390fd5b84600c546121f39190614217565b341015612235576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222c90613f83565b60405180910390fd5b61223f3386612b1b565b5050505050565b600d5481565b612254612a19565b73ffffffffffffffffffffffffffffffffffffffff1661227261165f565b73ffffffffffffffffffffffffffffffffffffffff16146122c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122bf90613f43565b60405180910390fd5b80600a90805190602001906122de929190613188565b5050565b6122ea612a19565b73ffffffffffffffffffffffffffffffffffffffff1661230861165f565b73ffffffffffffffffffffffffffffffffffffffff161461235e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235590613f43565b60405180910390fd5b600e60019054906101000a900460ff1615600e60016101000a81548160ff021916908315150217905550565b612392612a19565b73ffffffffffffffffffffffffffffffffffffffff166123b061165f565b73ffffffffffffffffffffffffffffffffffffffff1614612406576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123fd90613f43565b60405180910390fd5b600e60029054906101000a900460ff1615600e60026101000a81548160ff021916908315150217905550565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6124ce612a19565b73ffffffffffffffffffffffffffffffffffffffff166124ec61165f565b73ffffffffffffffffffffffffffffffffffffffff1614612542576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253990613f43565b60405180910390fd5b600061254c610ce6565b905060008211612591576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258890613fe3565b60405180910390fd5b600d5482826125a091906141c1565b11156125e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125d890613ee3565b60405180910390fd5b6125eb3383612b1b565b5050565b6125f7612a19565b73ffffffffffffffffffffffffffffffffffffffff1661261561165f565b73ffffffffffffffffffffffffffffffffffffffff161461266b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266290613f43565b60405180910390fd5b80600b9080519060200190612681929190613188565b5050565b61268d612a19565b73ffffffffffffffffffffffffffffffffffffffff166126ab61165f565b73ffffffffffffffffffffffffffffffffffffffff1614612701576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f890613f43565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612771576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161276890613ec3565b60405180910390fd5b61277a81612a21565b50565b612785612a19565b73ffffffffffffffffffffffffffffffffffffffff166127a361165f565b73ffffffffffffffffffffffffffffffffffffffff16146127f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f090613f43565b60405180910390fd5b80600f8190555050565b600e60019054906101000a900460ff1681565b60008161282161287d565b11158015612830575060005482105b801561286e575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b6000808290508061289561287d565b1161291d5760005481101561291c5760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216141561291a575b60008114156129105760046000836001900393508381526020019081526020016000205490506128e5565b809250505061294f565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86129d7868684612dbc565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612aef61320e565b612b0b6004600084815260200190815260200160002054612dc5565b9050919050565b60008054905090565b612b35828260405180602001604052806000815250612e7b565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612b5f612875565b8786866040518563ffffffff1660e01b8152600401612b819493929190613ddb565b602060405180830381600087803b158015612b9b57600080fd5b505af1925050508015612bcc57506040513d601f19601f82011682018060405250810190612bc99190613785565b60015b612c46573d8060008114612bfc576040519150601f19603f3d011682016040523d82523d6000602084013e612c01565b606091505b50600081511415612c3e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b612ca161320e565b612cb2612cad83612886565b612dc5565b9050919050565b606060098054612cc890614354565b80601f0160208091040260200160405190810160405280929190818152602001828054612cf490614354565b8015612d415780601f10612d1657610100808354040283529160200191612d41565b820191906000526020600020905b815481529060010190602001808311612d2457829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b8015612d9157600183039250600a81066030018353600a81049050612d71565b508181036020830392508083525050919050565b600082612db28584612f18565b1490509392505050565b60009392505050565b612dcd61320e565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b612e858383612f8d565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612f1357600080549050600083820390505b612ec56000868380600101945086612b39565b612efb576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612eb2578160005414612f1057600080fd5b50505b505050565b60008082905060005b8451811015612f82576000858281518110612f3f57612f3e614482565b5b60200260200101519050808311612f6157612f5a8382613161565b9250612f6e565b612f6b8184613161565b92505b508080612f7a906143b7565b915050612f21565b508091505092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ffa576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415613035576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61304260008483856129ba565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506130b9836130aa60008660006129c0565b6130b385613178565b176129e8565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106130dd5780600081905550505061315c6000848385612a13565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b82805461319490614354565b90600052602060002090601f0160209004810192826131b657600085556131fd565b82601f106131cf57805160ff19168380011785556131fd565b828001600101855582156131fd579182015b828111156131fc5782518255916020019190600101906131e1565b5b50905061320a919061325d565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b8082111561327657600081600090555060010161325e565b5090565b600061328d6132888461405e565b614039565b905080838252602082019050828560208602820111156132b0576132af6144ea565b5b60005b858110156132e057816132c688826134b7565b8452602084019350602083019250506001810190506132b3565b5050509392505050565b60006132fd6132f88461408a565b614039565b905082815260208101848484011115613319576133186144ef565b5b613324848285614312565b509392505050565b600061333f61333a846140bb565b614039565b90508281526020810184848401111561335b5761335a6144ef565b5b613366848285614312565b509392505050565b60008135905061337d81614705565b92915050565b60008083601f840112613399576133986144e5565b5b8235905067ffffffffffffffff8111156133b6576133b56144e0565b5b6020830191508360208202830111156133d2576133d16144ea565b5b9250929050565b600082601f8301126133ee576133ed6144e5565b5b81356133fe84826020860161327a565b91505092915050565b6000813590506134168161471c565b92915050565b60008135905061342b81614733565b92915050565b6000813590506134408161474a565b92915050565b6000815190506134558161474a565b92915050565b600082601f8301126134705761346f6144e5565b5b81356134808482602086016132ea565b91505092915050565b600082601f83011261349e5761349d6144e5565b5b81356134ae84826020860161332c565b91505092915050565b6000813590506134c681614761565b92915050565b6000602082840312156134e2576134e16144f9565b5b60006134f08482850161336e565b91505092915050565b600080604083850312156135105761350f6144f9565b5b600061351e8582860161336e565b925050602061352f8582860161336e565b9150509250929050565b600080600060608486031215613552576135516144f9565b5b60006135608682870161336e565b93505060206135718682870161336e565b9250506040613582868287016134b7565b9150509250925092565b600080600080608085870312156135a6576135a56144f9565b5b60006135b48782880161336e565b94505060206135c58782880161336e565b93505060406135d6878288016134b7565b925050606085013567ffffffffffffffff8111156135f7576135f66144f4565b5b6136038782880161345b565b91505092959194509250565b60008060408385031215613626576136256144f9565b5b60006136348582860161336e565b925050602061364585828601613407565b9150509250929050565b60008060408385031215613666576136656144f9565b5b60006136748582860161336e565b9250506020613685858286016134b7565b9150509250929050565b6000806000606084860312156136a8576136a76144f9565b5b60006136b68682870161336e565b93505060206136c7868287016134b7565b92505060406136d8868287016134b7565b9150509250925092565b6000602082840312156136f8576136f76144f9565b5b600082013567ffffffffffffffff811115613716576137156144f4565b5b613722848285016133d9565b91505092915050565b600060208284031215613741576137406144f9565b5b600061374f8482850161341c565b91505092915050565b60006020828403121561376e5761376d6144f9565b5b600061377c84828501613431565b91505092915050565b60006020828403121561379b5761379a6144f9565b5b60006137a984828501613446565b91505092915050565b6000602082840312156137c8576137c76144f9565b5b600082013567ffffffffffffffff8111156137e6576137e56144f4565b5b6137f284828501613489565b91505092915050565b600060208284031215613811576138106144f9565b5b600061381f848285016134b7565b91505092915050565b600080600060408486031215613841576138406144f9565b5b600061384f868287016134b7565b935050602084013567ffffffffffffffff8111156138705761386f6144f4565b5b61387c86828701613383565b92509250509250925092565b60006138948383613c79565b60808301905092915050565b60006138ac8383613d32565b60208301905092915050565b6138c181614271565b82525050565b6138d081614271565b82525050565b6138e76138e282614271565b614400565b82525050565b60006138f882614121565b6139028185614167565b935061390d836140ec565b8060005b8381101561393e5781516139258882613888565b97506139308361414d565b925050600181019050613911565b5085935050505092915050565b60006139568261412c565b6139608185614178565b935061396b836140fc565b8060005b8381101561399c57815161398388826138a0565b975061398e8361415a565b92505060018101905061396f565b5085935050505092915050565b6139b281614283565b82525050565b6139c181614283565b82525050565b6139d08161428f565b82525050565b60006139e182614137565b6139eb8185614189565b93506139fb818560208601614321565b613a04816144fe565b840191505092915050565b6000613a1a82614142565b613a2481856141a5565b9350613a34818560208601614321565b613a3d816144fe565b840191505092915050565b6000613a5382614142565b613a5d81856141b6565b9350613a6d818560208601614321565b80840191505092915050565b60008154613a8681614354565b613a9081866141b6565b94506001821660008114613aab5760018114613abc57613aef565b60ff19831686528186019350613aef565b613ac58561410c565b60005b83811015613ae757815481890152600182019150602081019050613ac8565b838801955050505b50505092915050565b6000613b056026836141a5565b9150613b108261451c565b604082019050919050565b6000613b286016836141a5565b9150613b338261456b565b602082019050919050565b6000613b4b6015836141a5565b9150613b5682614594565b602082019050919050565b6000613b6e6018836141a5565b9150613b79826145bd565b602082019050919050565b6000613b916020836141a5565b9150613b9c826145e6565b602082019050919050565b6000613bb4602f836141a5565b9150613bbf8261460f565b604082019050919050565b6000613bd760008361419a565b9150613be28261465e565b600082019050919050565b6000613bfa6012836141a5565b9150613c0582614661565b602082019050919050565b6000613c1d601e836141a5565b9150613c288261468a565b602082019050919050565b6000613c406017836141a5565b9150613c4b826146b3565b602082019050919050565b6000613c63601b836141a5565b9150613c6e826146dc565b602082019050919050565b608082016000820151613c8f60008501826138b8565b506020820151613ca26020850182613d50565b506040820151613cb560408501826139a9565b506060820151613cc86060850182613d23565b50505050565b608082016000820151613ce460008501826138b8565b506020820151613cf76020850182613d50565b506040820151613d0a60408501826139a9565b506060820151613d1d6060850182613d23565b50505050565b613d2c816142e5565b82525050565b613d3b816142f4565b82525050565b613d4a816142f4565b82525050565b613d59816142fe565b82525050565b6000613d6b82846138d6565b60148201915081905092915050565b6000613d868286613a48565b9150613d928285613a48565b9150613d9e8284613a79565b9150819050949350505050565b6000613db682613bca565b9150819050919050565b6000602082019050613dd560008301846138c7565b92915050565b6000608082019050613df060008301876138c7565b613dfd60208301866138c7565b613e0a6040830185613d41565b8181036060830152613e1c81846139d6565b905095945050505050565b60006020820190508181036000830152613e4181846138ed565b905092915050565b60006020820190508181036000830152613e63818461394b565b905092915050565b6000602082019050613e8060008301846139b8565b92915050565b6000602082019050613e9b60008301846139c7565b92915050565b60006020820190508181036000830152613ebb8184613a0f565b905092915050565b60006020820190508181036000830152613edc81613af8565b9050919050565b60006020820190508181036000830152613efc81613b1b565b9050919050565b60006020820190508181036000830152613f1c81613b3e565b9050919050565b60006020820190508181036000830152613f3c81613b61565b9050919050565b60006020820190508181036000830152613f5c81613b84565b9050919050565b60006020820190508181036000830152613f7c81613ba7565b9050919050565b60006020820190508181036000830152613f9c81613bed565b9050919050565b60006020820190508181036000830152613fbc81613c10565b9050919050565b60006020820190508181036000830152613fdc81613c33565b9050919050565b60006020820190508181036000830152613ffc81613c56565b9050919050565b60006080820190506140186000830184613cce565b92915050565b60006020820190506140336000830184613d41565b92915050565b6000614043614054565b905061404f8282614386565b919050565b6000604051905090565b600067ffffffffffffffff821115614079576140786144b1565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156140a5576140a46144b1565b5b6140ae826144fe565b9050602081019050919050565b600067ffffffffffffffff8211156140d6576140d56144b1565b5b6140df826144fe565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006141cc826142f4565b91506141d7836142f4565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561420c5761420b614424565b5b828201905092915050565b6000614222826142f4565b915061422d836142f4565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561426657614265614424565b5b828202905092915050565b600061427c826142c5565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b82818337600083830152505050565b60005b8381101561433f578082015181840152602081019050614324565b8381111561434e576000848401525b50505050565b6000600282049050600182168061436c57607f821691505b602082108114156143805761437f614453565b5b50919050565b61438f826144fe565b810181811067ffffffffffffffff821117156143ae576143ad6144b1565b5b80604052505050565b60006143c2826142f4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156143f5576143f4614424565b5b600182019050919050565b600061440b82614412565b9050919050565b600061441d8261450f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f6d6178204e4654206c696d697420657863656564656400000000000000000000600082015250565b7f70726573616c65206973206e6f74206163746976650000000000000000000000600082015250565b7f7075626c696373616c65206973206e6f74206163746976650000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b50565b7f696e73756666696369656e742066756e64730000000000000000000000000000600082015250565b7f63616e6e6f742062652063616c6c6564206279206120636f6e74726163740000600082015250565b7f75736572206973206e6f742077686974656c6973746564000000000000000000600082015250565b7f6e65656420746f206d696e74206174206c656173742031204e46540000000000600082015250565b61470e81614271565b811461471957600080fd5b50565b61472581614283565b811461473057600080fd5b50565b61473c8161428f565b811461474757600080fd5b50565b61475381614299565b811461475e57600080fd5b50565b61476a816142f4565b811461477557600080fd5b5056fea2646970667358221220c749025a2e3eda0a8312434297146c5bc6080cf3d2716b2b9417702b3ded705964736f6c63430008070033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.