Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 17 from a total of 17 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 17023183 | 701 days ago | IN | 0 ETH | 0.00071202 | ||||
Mint | 17019336 | 701 days ago | IN | 0 ETH | 0.00297706 | ||||
Mint | 17019310 | 701 days ago | IN | 0.03 ETH | 0.00505229 | ||||
Mint | 17019248 | 701 days ago | IN | 0 ETH | 0.00415972 | ||||
Mint | 17019058 | 701 days ago | IN | 0 ETH | 0.00303734 | ||||
Mint | 17019057 | 701 days ago | IN | 0 ETH | 0.0030649 | ||||
Mint | 17019055 | 701 days ago | IN | 0 ETH | 0.00306073 | ||||
Mint | 17019051 | 701 days ago | IN | 0 ETH | 0.0031084 | ||||
Mint | 17019051 | 701 days ago | IN | 0 ETH | 0.00311616 | ||||
Mint | 17019049 | 701 days ago | IN | 0 ETH | 0.0031084 | ||||
Mint | 17019044 | 701 days ago | IN | 0 ETH | 0.00315368 | ||||
Mint | 17019042 | 701 days ago | IN | 0 ETH | 0.0031903 | ||||
Mint | 17019034 | 701 days ago | IN | 0 ETH | 0.00106984 | ||||
Mint | 17019033 | 701 days ago | IN | 0 ETH | 0.00326052 | ||||
Mint | 17019024 | 701 days ago | IN | 0 ETH | 0.00295749 | ||||
Toggle Public St... | 17019023 | 701 days ago | IN | 0 ETH | 0.00147038 | ||||
Treasury Mint | 17018779 | 701 days ago | IN | 0 ETH | 0.00614592 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Method | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|---|
Transfer | 17023183 | 701 days ago | 0.03 ETH |
Loading...
Loading
Contract Name:
Nakamascotas
Compiler Version
v0.8.17+commit.8df45f5f
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.9 <0.9.0; import "erc721a/contracts/ERC721A.sol"; import "erc721a/contracts/IERC721A.sol"; import "erc721a/contracts/extensions/ERC721AQueryable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "operator-filter-registry/src/DefaultOperatorFilterer.sol"; contract Nakamascotas is ERC721AQueryable, Ownable, ReentrancyGuard, DefaultOperatorFilterer { using Strings for uint256; uint256 public maxSupply = 10000; uint256 public publicPrice = 0.001 ether; uint256 public maxPerWallet = 50; uint256 public maxFree = 3; bool public isPublicMint = false; bool public isMetadataFinal; string public _baseURL = "ipfs://QmV1K9ijQh4SKRr4Thh1vThpyw7EK5xUdk8t9hY5JYzQGX/"; string public prerevealURL = ""; mapping(address => uint256) private _walletMintedCount; constructor() ERC721A("Nakamascotas", "NKSC") { _safeMint(msg.sender, 5); } function mintedCount(address owner) external view returns (uint256) { return _walletMintedCount[owner]; } function _baseURI() internal view override returns (string memory) { return _baseURL; } function _startTokenId() internal pure override returns (uint256) { return 1; } function contractURI() public pure returns (string memory) { return ""; } function finalizeMetadata() external onlyOwner { isMetadataFinal = true; } function reveal(string memory url) external onlyOwner { require(!isMetadataFinal, "Metadata is finalized"); _baseURL = url; } function withdraw() public onlyOwner nonReentrant { (bool os, ) = payable(owner()).call{value: address(this).balance}(""); require(os); } function treasuryMint(address to, uint256 count) external onlyOwner { require(_totalMinted() + count <= maxSupply, "Exceeds max supply"); _safeMint(to, count); } function tokenURI(uint256 tokenId) public view override(ERC721A, IERC721A) returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); return bytes(_baseURI()).length > 0 ? string( abi.encodePacked(_baseURI(), tokenId.toString(), ".json") ) : prerevealURL; } /* "SET VARIABLE" FUNCTIONS */ function setPublicPrice(uint256 _price) external onlyOwner { publicPrice = _price; } function togglePublicState() external onlyOwner { isPublicMint = !isPublicMint; } function setMaxSupply(uint256 newMaxSupply) external onlyOwner { maxSupply = newMaxSupply; } function setMaxFree(uint256 newFree) external onlyOwner { maxFree = newFree; } /* MINT FUNCTIONS */ function mint(uint256 count) external payable { uint256 minted = _walletMintedCount[msg.sender]; require(count > 0, "Mint at least 1 Bunnymigos"); require(minted < maxPerWallet, "Too many Bunnymigos"); // 1 Free Mint uint256 payForCount = count; if (minted < maxFree) { if (maxFree - minted > count) { payForCount = 0; } else { payForCount = count - (maxFree - minted); } } require(isPublicMint, "Public mint has not started"); require(_totalMinted() + count <= maxSupply, "Exceeds max supply"); require( msg.value >= payForCount * publicPrice, "Ether value sent is not sufficient" ); _walletMintedCount[msg.sender] += count; _safeMint(msg.sender, count); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol"; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. * @dev Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { /// @dev The constructor that is called when the contract is being deployed. constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721AQueryable.sol'; import '../ERC721A.sol'; /** * @title ERC721AQueryable. * * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. * Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract OperatorFilterer { /// @dev Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS); /// @dev The constructor that is called when the contract is being deployed. constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } /** * @dev A helper function to check if an operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper function to check if an operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @dev A helper function to check if an operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting contracts // may specify their own OperatorFilterRegistry implementations, which may behave differently if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of ERC721AQueryable. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); }
{ "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
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_baseURL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","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":[],"name":"finalizeMetadata","outputs":[],"stateMutability":"nonpayable","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":"isMetadataFinal","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxFree","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"mintedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prerevealURL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"url","type":"string"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newFree","type":"uint256"}],"name":"setMaxFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePublicState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"treasuryMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052612710600a5566038d7ea4c68000600b556032600c556003600d556000600e60006101000a81548160ff02191690831515021790555060405180606001604052806036815260200162004f9760369139600f908162000064919062000b83565b50604051806020016040528060008152506010908162000085919062000b83565b503480156200009357600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600c81526020017f4e616b616d6173636f74617300000000000000000000000000000000000000008152506040518060400160405280600481526020017f4e4b534300000000000000000000000000000000000000000000000000000000815250816002908162000128919062000b83565b5080600390816200013a919062000b83565b506200014b6200038b60201b60201c565b600081905550505062000173620001676200039460201b60201c565b6200039c60201b60201c565b600160098190555060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156200037057801562000236576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b8152600401620001fc92919062000caf565b600060405180830381600087803b1580156200021757600080fd5b505af11580156200022c573d6000803e3d6000fd5b505050506200036f565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614620002f0576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b8152600401620002b692919062000caf565b600060405180830381600087803b158015620002d157600080fd5b505af1158015620002e6573d6000803e3d6000fd5b505050506200036e565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b815260040162000339919062000cdc565b600060405180830381600087803b1580156200035457600080fd5b505af115801562000369573d6000803e3d6000fd5b505050505b5b5b5050620003853360056200046260201b60201c565b62000e8c565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620004848282604051806020016040528060008152506200048860201b60201c565b5050565b6200049a83836200053960201b60201c565b60008373ffffffffffffffffffffffffffffffffffffffff163b146200053457600080549050600083820390505b620004e360008683806001019450866200072060201b60201c565b6200051a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110620004c85781600054146200053157600080fd5b50505b505050565b600080549050600082036200057a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6200058f60008483856200088160201b60201c565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506200061e836200060060008660006200088760201b60201c565b6200061185620008b760201b60201c565b17620008c760201b60201c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114620006c157808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905062000684565b5060008203620006fd576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506200071b6000848385620008f260201b60201c565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026200074e620008f860201b60201c565b8786866040518563ffffffff1660e01b815260040162000772949392919062000da4565b6020604051808303816000875af1925050508015620007b157506040513d601f19601f82011682018060405250810190620007ae919062000e5a565b60015b6200082e573d8060008114620007e4576040519150601f19603f3d011682016040523d82523d6000602084013e620007e9565b606091505b50600081510362000826576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b50505050565b60008060e883901c905060e8620008a68686846200090060201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b60009392505050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200098b57607f821691505b602082108103620009a157620009a062000943565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830262000a0b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620009cc565b62000a178683620009cc565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000a6462000a5e62000a588462000a2f565b62000a39565b62000a2f565b9050919050565b6000819050919050565b62000a808362000a43565b62000a9862000a8f8262000a6b565b848454620009d9565b825550505050565b600090565b62000aaf62000aa0565b62000abc81848462000a75565b505050565b5b8181101562000ae45762000ad860008262000aa5565b60018101905062000ac2565b5050565b601f82111562000b335762000afd81620009a7565b62000b0884620009bc565b8101602085101562000b18578190505b62000b3062000b2785620009bc565b83018262000ac1565b50505b505050565b600082821c905092915050565b600062000b586000198460080262000b38565b1980831691505092915050565b600062000b73838362000b45565b9150826002028217905092915050565b62000b8e8262000909565b67ffffffffffffffff81111562000baa5762000ba962000914565b5b62000bb6825462000972565b62000bc382828562000ae8565b600060209050601f83116001811462000bfb576000841562000be6578287015190505b62000bf2858262000b65565b86555062000c62565b601f19841662000c0b86620009a7565b60005b8281101562000c355784890151825560018201915060208501945060208101905062000c0e565b8683101562000c55578489015162000c51601f89168262000b45565b8355505b6001600288020188555050505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000c978262000c6a565b9050919050565b62000ca98162000c8a565b82525050565b600060408201905062000cc6600083018562000c9e565b62000cd5602083018462000c9e565b9392505050565b600060208201905062000cf3600083018462000c9e565b92915050565b62000d048162000a2f565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b8381101562000d4657808201518184015260208101905062000d29565b60008484015250505050565b6000601f19601f8301169050919050565b600062000d708262000d0a565b62000d7c818562000d15565b935062000d8e81856020860162000d26565b62000d998162000d52565b840191505092915050565b600060808201905062000dbb600083018762000c9e565b62000dca602083018662000c9e565b62000dd9604083018562000cf9565b818103606083015262000ded818462000d63565b905095945050505050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b62000e348162000dfd565b811462000e4057600080fd5b50565b60008151905062000e548162000e29565b92915050565b60006020828403121562000e735762000e7262000df8565b5b600062000e838482850162000e43565b91505092915050565b6140fb8062000e9c6000396000f3fe6080604052600436106102465760003560e01c80638462151c11610139578063c6275255116100b6578063e8a3d4851161007a578063e8a3d4851461083b578063e985e9c514610866578063f2fde38b146108a3578063f4a560a5146108cc578063f9e0edae146108e3578063fddcb5ea1461090e57610246565b8063c627525514610756578063c87b56dd1461077f578063d5abeb01146107bc578063d755bf99146107e7578063d82104821461081057610246565b8063a22cb465116100fd578063a22cb46514610680578063a945bf80146106a9578063aa35cca3146106d4578063b88d4fde146106fd578063c23dc68f1461071957610246565b80638462151c146105945780638da5cb5b146105d157806395d89b41146105fc57806399a2557a14610627578063a0712d681461066457610246565b806342842e0e116101c75780636352211e1161018b5780636352211e146104c3578063673cced5146105005780636f8b44b01461051757806370a0823114610540578063715018a61461057d57610246565b806342842e0e146103eb578063453c231014610407578063485a68a3146104325780634c2612471461045d5780635bbb21771461048657610246565b806318160ddd1161020e57806318160ddd1461033757806323b872dd146103625780633057931f1461037e5780633ccfd60b146103a957806341f43434146103c057610246565b806301ffc9a71461024b57806306fdde0314610288578063081812fc146102b3578063095ea7b3146102f05780630de76de41461030c575b600080fd5b34801561025757600080fd5b50610272600480360381019061026d9190612ba9565b61094b565b60405161027f9190612bf1565b60405180910390f35b34801561029457600080fd5b5061029d6109dd565b6040516102aa9190612c9c565b60405180910390f35b3480156102bf57600080fd5b506102da60048036038101906102d59190612cf4565b610a6f565b6040516102e79190612d62565b60405180910390f35b61030a60048036038101906103059190612da9565b610aee565b005b34801561031857600080fd5b50610321610c32565b60405161032e9190612bf1565b60405180910390f35b34801561034357600080fd5b5061034c610c45565b6040516103599190612df8565b60405180910390f35b61037c60048036038101906103779190612e13565b610c5c565b005b34801561038a57600080fd5b50610393610f7e565b6040516103a09190612bf1565b60405180910390f35b3480156103b557600080fd5b506103be610f91565b005b3480156103cc57600080fd5b506103d5611029565b6040516103e29190612ec5565b60405180910390f35b61040560048036038101906104009190612e13565b61103b565b005b34801561041357600080fd5b5061041c61105b565b6040516104299190612df8565b60405180910390f35b34801561043e57600080fd5b50610447611061565b6040516104549190612df8565b60405180910390f35b34801561046957600080fd5b50610484600480360381019061047f9190613015565b611067565b005b34801561049257600080fd5b506104ad60048036038101906104a891906130be565b6110d2565b6040516104ba919061326e565b60405180910390f35b3480156104cf57600080fd5b506104ea60048036038101906104e59190612cf4565b611195565b6040516104f79190612d62565b60405180910390f35b34801561050c57600080fd5b506105156111a7565b005b34801561052357600080fd5b5061053e60048036038101906105399190612cf4565b6111db565b005b34801561054c57600080fd5b5061056760048036038101906105629190613290565b6111ed565b6040516105749190612df8565b60405180910390f35b34801561058957600080fd5b506105926112a5565b005b3480156105a057600080fd5b506105bb60048036038101906105b69190613290565b6112b9565b6040516105c8919061337b565b60405180910390f35b3480156105dd57600080fd5b506105e66113fc565b6040516105f39190612d62565b60405180910390f35b34801561060857600080fd5b50610611611426565b60405161061e9190612c9c565b60405180910390f35b34801561063357600080fd5b5061064e6004803603810190610649919061339d565b6114b8565b60405161065b919061337b565b60405180910390f35b61067e60048036038101906106799190612cf4565b6116c4565b005b34801561068c57600080fd5b506106a760048036038101906106a2919061341c565b611934565b005b3480156106b557600080fd5b506106be611a3f565b6040516106cb9190612df8565b60405180910390f35b3480156106e057600080fd5b506106fb60048036038101906106f69190612da9565b611a45565b005b610717600480360381019061071291906134fd565b611ab2565b005b34801561072557600080fd5b50610740600480360381019061073b9190612cf4565b611b25565b60405161074d91906135d5565b60405180910390f35b34801561076257600080fd5b5061077d60048036038101906107789190612cf4565b611b8f565b005b34801561078b57600080fd5b506107a660048036038101906107a19190612cf4565b611ba1565b6040516107b39190612c9c565b60405180910390f35b3480156107c857600080fd5b506107d1611cc4565b6040516107de9190612df8565b60405180910390f35b3480156107f357600080fd5b5061080e60048036038101906108099190612cf4565b611cca565b005b34801561081c57600080fd5b50610825611cdc565b6040516108329190612c9c565b60405180910390f35b34801561084757600080fd5b50610850611d6a565b60405161085d9190612c9c565b60405180910390f35b34801561087257600080fd5b5061088d600480360381019061088891906135f0565b611d81565b60405161089a9190612bf1565b60405180910390f35b3480156108af57600080fd5b506108ca60048036038101906108c59190613290565b611e15565b005b3480156108d857600080fd5b506108e1611e98565b005b3480156108ef57600080fd5b506108f8611ebd565b6040516109059190612c9c565b60405180910390f35b34801561091a57600080fd5b5061093560048036038101906109309190613290565b611f4b565b6040516109429190612df8565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109a657506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109d65750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546109ec9061365f565b80601f0160208091040260200160405190810160405280929190818152602001828054610a189061365f565b8015610a655780601f10610a3a57610100808354040283529160200191610a65565b820191906000526020600020905b815481529060010190602001808311610a4857829003601f168201915b5050505050905090565b6000610a7a82611f94565b610ab0576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610af982611195565b90508073ffffffffffffffffffffffffffffffffffffffff16610b1a611ff3565b73ffffffffffffffffffffffffffffffffffffffff1614610b7d57610b4681610b41611ff3565b611d81565b610b7c576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600e60019054906101000a900460ff1681565b6000610c4f611ffb565b6001546000540303905090565b6000610c6782612004565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610cce576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610cda846120d0565b91509150610cf08187610ceb611ff3565b6120f7565b610d3c57610d0586610d00611ff3565b611d81565b610d3b576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610da2576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610daf868686600161213b565b8015610dba57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610e8885610e64888887612141565b7c020000000000000000000000000000000000000000000000000000000017612169565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610f0e5760006001850190506000600460008381526020019081526020016000205403610f0c576000548114610f0b578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610f768686866001612194565b505050505050565b600e60009054906101000a900460ff1681565b610f9961219a565b610fa1612218565b6000610fab6113fc565b73ffffffffffffffffffffffffffffffffffffffff1647604051610fce906136c1565b60006040518083038185875af1925050503d806000811461100b576040519150601f19603f3d011682016040523d82523d6000602084013e611010565b606091505b505090508061101e57600080fd5b50611027612267565b565b6daaeb6d7670e522a718067333cd4e81565b61105683838360405180602001604052806000815250611ab2565b505050565b600c5481565b600d5481565b61106f61219a565b600e60019054906101000a900460ff16156110bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b690613722565b60405180910390fd5b80600f90816110ce91906138e4565b5050565b6060600083839050905060008167ffffffffffffffff8111156110f8576110f7612eea565b5b60405190808252806020026020018201604052801561113157816020015b61111e612aee565b8152602001906001900390816111165790505b50905060005b82811461118957611160868683818110611154576111536139b6565b5b90506020020135611b25565b828281518110611173576111726139b6565b5b6020026020010181905250806001019050611137565b50809250505092915050565b60006111a082612004565b9050919050565b6111af61219a565b600e60009054906101000a900460ff1615600e60006101000a81548160ff021916908315150217905550565b6111e361219a565b80600a8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611254576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6112ad61219a565b6112b76000612271565b565b606060008060006112c9856111ed565b905060008167ffffffffffffffff8111156112e7576112e6612eea565b5b6040519080825280602002602001820160405280156113155781602001602082028036833780820191505090505b509050611320612aee565b600061132a611ffb565b90505b8386146113ee5761133d81612337565b915081604001516113e357600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461138857816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036113e257808387806001019850815181106113d5576113d46139b6565b5b6020026020010181815250505b5b80600101905061132d565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546114359061365f565b80601f01602080910402602001604051908101604052809291908181526020018280546114619061365f565b80156114ae5780601f10611483576101008083540402835291602001916114ae565b820191906000526020600020905b81548152906001019060200180831161149157829003601f168201915b5050505050905090565b60608183106114f3576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806114fe612362565b9050611508611ffb565b85101561151a57611517611ffb565b94505b80841115611526578093505b6000611531876111ed565b90508486101561155457600086860390508181101561154e578091505b50611559565b600090505b60008167ffffffffffffffff81111561157557611574612eea565b5b6040519080825280602002602001820160405280156115a35781602001602082028036833780820191505090505b509050600082036115ba57809450505050506116bd565b60006115c588611b25565b9050600081604001516115da57816000015190505b60008990505b8881141580156115f05750848714155b156116af576115fe81612337565b925082604001516116a457600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff161461164957826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116a35780848880600101995081518110611696576116956139b6565b5b6020026020010181815250505b5b8060010190506115e0565b508583528296505050505050505b9392505050565b6000601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000821161174b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174290613a31565b60405180910390fd5b600c54811061178f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178690613a9d565b60405180910390fd5b6000829050600d548210156117d9578282600d546117ad9190613aec565b11156117bc57600090506117d8565b81600d546117ca9190613aec565b836117d59190613aec565b90505b5b600e60009054906101000a900460ff16611828576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181f90613b6c565b60405180910390fd5b600a548361183461236b565b61183e9190613b8c565b111561187f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187690613c0c565b60405180910390fd5b600b548161188d9190613c2c565b3410156118cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c690613ce0565b60405180910390fd5b82601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461191e9190613b8c565b9250508190555061192f338461237e565b505050565b8060076000611941611ff3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166119ee611ff3565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611a339190612bf1565b60405180910390a35050565b600b5481565b611a4d61219a565b600a5481611a5961236b565b611a639190613b8c565b1115611aa4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9b90613c0c565b60405180910390fd5b611aae828261237e565b5050565b611abd848484610c5c565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611b1f57611ae88484848461239c565b611b1e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b611b2d612aee565b611b35612aee565b611b3d611ffb565b831080611b515750611b4d612362565b8310155b15611b5f5780915050611b8a565b611b6883612337565b9050806040015115611b7d5780915050611b8a565b611b86836124ec565b9150505b919050565b611b9761219a565b80600b8190555050565b6060611bac82611f94565b611beb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be290613d72565b60405180910390fd5b6000611bf561250c565b5111611c8b5760108054611c089061365f565b80601f0160208091040260200160405190810160405280929190818152602001828054611c349061365f565b8015611c815780601f10611c5657610100808354040283529160200191611c81565b820191906000526020600020905b815481529060010190602001808311611c6457829003601f168201915b5050505050611cbd565b611c9361250c565b611c9c8361259e565b604051602001611cad929190613e1a565b6040516020818303038152906040525b9050919050565b600a5481565b611cd261219a565b80600d8190555050565b60108054611ce99061365f565b80601f0160208091040260200160405190810160405280929190818152602001828054611d159061365f565b8015611d625780601f10611d3757610100808354040283529160200191611d62565b820191906000526020600020905b815481529060010190602001808311611d4557829003601f168201915b505050505081565b606060405180602001604052806000815250905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611e1d61219a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611e8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8390613ebb565b60405180910390fd5b611e9581612271565b50565b611ea061219a565b6001600e60016101000a81548160ff021916908315150217905550565b600f8054611eca9061365f565b80601f0160208091040260200160405190810160405280929190818152602001828054611ef69061365f565b8015611f435780601f10611f1857610100808354040283529160200191611f43565b820191906000526020600020905b815481529060010190602001808311611f2657829003601f168201915b505050505081565b6000601160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600081611f9f611ffb565b11158015611fae575060005482105b8015611fec575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b60008082905080612013611ffb565b11612099576000548110156120985760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612096575b6000810361208c576004600083600190039350838152602001908152602001600020549050612062565b80925050506120cb565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861215886868461266c565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6121a2612675565b73ffffffffffffffffffffffffffffffffffffffff166121c06113fc565b73ffffffffffffffffffffffffffffffffffffffff1614612216576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220d90613f27565b60405180910390fd5b565b60026009540361225d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225490613f93565b60405180910390fd5b6002600981905550565b6001600981905550565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61233f612aee565b61235b600460008481526020019081526020016000205461267d565b9050919050565b60008054905090565b6000612375611ffb565b60005403905090565b612398828260405180602001604052806000815250612733565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026123c2611ff3565b8786866040518563ffffffff1660e01b81526004016123e49493929190614008565b6020604051808303816000875af192505050801561242057506040513d601f19601f8201168201806040525081019061241d9190614069565b60015b612499573d8060008114612450576040519150601f19603f3d011682016040523d82523d6000602084013e612455565b606091505b506000815103612491576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6124f4612aee565b61250561250083612004565b61267d565b9050919050565b6060600f805461251b9061365f565b80601f01602080910402602001604051908101604052809291908181526020018280546125479061365f565b80156125945780601f1061256957610100808354040283529160200191612594565b820191906000526020600020905b81548152906001019060200180831161257757829003601f168201915b5050505050905090565b6060600060016125ad846127d0565b01905060008167ffffffffffffffff8111156125cc576125cb612eea565b5b6040519080825280601f01601f1916602001820160405280156125fe5781602001600182028036833780820191505090505b509050600082602001820190505b600115612661578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161265557612654614096565b5b0494506000850361260c575b819350505050919050565b60009392505050565b600033905090565b612685612aee565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b61273d8383612923565b60008373ffffffffffffffffffffffffffffffffffffffff163b146127cb57600080549050600083820390505b61277d600086838060010194508661239c565b6127b3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061276a5781600054146127c857600080fd5b50505b505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061282e577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161282457612823614096565b5b0492506040810190505b6d04ee2d6d415b85acef8100000000831061286b576d04ee2d6d415b85acef8100000000838161286157612860614096565b5b0492506020810190505b662386f26fc10000831061289a57662386f26fc1000083816128905761288f614096565b5b0492506010810190505b6305f5e10083106128c3576305f5e10083816128b9576128b8614096565b5b0492506008810190505b61271083106128e85761271083816128de576128dd614096565b5b0492506004810190505b6064831061290b576064838161290157612900614096565b5b0492506002810190505b600a831061291a576001810190505b80915050919050565b60008054905060008203612963576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612970600084838561213b565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506129e7836129d86000866000612141565b6129e185612ade565b17612169565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612a8857808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612a4d565b5060008203612ac3576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050612ad96000848385612194565b505050565b60006001821460e11b9050919050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612b8681612b51565b8114612b9157600080fd5b50565b600081359050612ba381612b7d565b92915050565b600060208284031215612bbf57612bbe612b47565b5b6000612bcd84828501612b94565b91505092915050565b60008115159050919050565b612beb81612bd6565b82525050565b6000602082019050612c066000830184612be2565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612c46578082015181840152602081019050612c2b565b60008484015250505050565b6000601f19601f8301169050919050565b6000612c6e82612c0c565b612c788185612c17565b9350612c88818560208601612c28565b612c9181612c52565b840191505092915050565b60006020820190508181036000830152612cb68184612c63565b905092915050565b6000819050919050565b612cd181612cbe565b8114612cdc57600080fd5b50565b600081359050612cee81612cc8565b92915050565b600060208284031215612d0a57612d09612b47565b5b6000612d1884828501612cdf565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612d4c82612d21565b9050919050565b612d5c81612d41565b82525050565b6000602082019050612d776000830184612d53565b92915050565b612d8681612d41565b8114612d9157600080fd5b50565b600081359050612da381612d7d565b92915050565b60008060408385031215612dc057612dbf612b47565b5b6000612dce85828601612d94565b9250506020612ddf85828601612cdf565b9150509250929050565b612df281612cbe565b82525050565b6000602082019050612e0d6000830184612de9565b92915050565b600080600060608486031215612e2c57612e2b612b47565b5b6000612e3a86828701612d94565b9350506020612e4b86828701612d94565b9250506040612e5c86828701612cdf565b9150509250925092565b6000819050919050565b6000612e8b612e86612e8184612d21565b612e66565b612d21565b9050919050565b6000612e9d82612e70565b9050919050565b6000612eaf82612e92565b9050919050565b612ebf81612ea4565b82525050565b6000602082019050612eda6000830184612eb6565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612f2282612c52565b810181811067ffffffffffffffff82111715612f4157612f40612eea565b5b80604052505050565b6000612f54612b3d565b9050612f608282612f19565b919050565b600067ffffffffffffffff821115612f8057612f7f612eea565b5b612f8982612c52565b9050602081019050919050565b82818337600083830152505050565b6000612fb8612fb384612f65565b612f4a565b905082815260208101848484011115612fd457612fd3612ee5565b5b612fdf848285612f96565b509392505050565b600082601f830112612ffc57612ffb612ee0565b5b813561300c848260208601612fa5565b91505092915050565b60006020828403121561302b5761302a612b47565b5b600082013567ffffffffffffffff81111561304957613048612b4c565b5b61305584828501612fe7565b91505092915050565b600080fd5b600080fd5b60008083601f84011261307e5761307d612ee0565b5b8235905067ffffffffffffffff81111561309b5761309a61305e565b5b6020830191508360208202830111156130b7576130b6613063565b5b9250929050565b600080602083850312156130d5576130d4612b47565b5b600083013567ffffffffffffffff8111156130f3576130f2612b4c565b5b6130ff85828601613068565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61314081612d41565b82525050565b600067ffffffffffffffff82169050919050565b61316381613146565b82525050565b61317281612bd6565b82525050565b600062ffffff82169050919050565b61319081613178565b82525050565b6080820160008201516131ac6000850182613137565b5060208201516131bf602085018261315a565b5060408201516131d26040850182613169565b5060608201516131e56060850182613187565b50505050565b60006131f78383613196565b60808301905092915050565b6000602082019050919050565b600061321b8261310b565b6132258185613116565b935061323083613127565b8060005b8381101561326157815161324888826131eb565b975061325383613203565b925050600181019050613234565b5085935050505092915050565b600060208201905081810360008301526132888184613210565b905092915050565b6000602082840312156132a6576132a5612b47565b5b60006132b484828501612d94565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6132f281612cbe565b82525050565b600061330483836132e9565b60208301905092915050565b6000602082019050919050565b6000613328826132bd565b61333281856132c8565b935061333d836132d9565b8060005b8381101561336e57815161335588826132f8565b975061336083613310565b925050600181019050613341565b5085935050505092915050565b60006020820190508181036000830152613395818461331d565b905092915050565b6000806000606084860312156133b6576133b5612b47565b5b60006133c486828701612d94565b93505060206133d586828701612cdf565b92505060406133e686828701612cdf565b9150509250925092565b6133f981612bd6565b811461340457600080fd5b50565b600081359050613416816133f0565b92915050565b6000806040838503121561343357613432612b47565b5b600061344185828601612d94565b925050602061345285828601613407565b9150509250929050565b600067ffffffffffffffff82111561347757613476612eea565b5b61348082612c52565b9050602081019050919050565b60006134a061349b8461345c565b612f4a565b9050828152602081018484840111156134bc576134bb612ee5565b5b6134c7848285612f96565b509392505050565b600082601f8301126134e4576134e3612ee0565b5b81356134f484826020860161348d565b91505092915050565b6000806000806080858703121561351757613516612b47565b5b600061352587828801612d94565b945050602061353687828801612d94565b935050604061354787828801612cdf565b925050606085013567ffffffffffffffff81111561356857613567612b4c565b5b613574878288016134cf565b91505092959194509250565b6080820160008201516135966000850182613137565b5060208201516135a9602085018261315a565b5060408201516135bc6040850182613169565b5060608201516135cf6060850182613187565b50505050565b60006080820190506135ea6000830184613580565b92915050565b6000806040838503121561360757613606612b47565b5b600061361585828601612d94565b925050602061362685828601612d94565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061367757607f821691505b60208210810361368a57613689613630565b5b50919050565b600081905092915050565b50565b60006136ab600083613690565b91506136b68261369b565b600082019050919050565b60006136cc8261369e565b9150819050919050565b7f4d657461646174612069732066696e616c697a65640000000000000000000000600082015250565b600061370c601583612c17565b9150613717826136d6565b602082019050919050565b6000602082019050818103600083015261373b816136ff565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026137a47fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613767565b6137ae8683613767565b95508019841693508086168417925050509392505050565b60006137e16137dc6137d784612cbe565b612e66565b612cbe565b9050919050565b6000819050919050565b6137fb836137c6565b61380f613807826137e8565b848454613774565b825550505050565b600090565b613824613817565b61382f8184846137f2565b505050565b5b818110156138535761384860008261381c565b600181019050613835565b5050565b601f8211156138985761386981613742565b61387284613757565b81016020851015613881578190505b61389561388d85613757565b830182613834565b50505b505050565b600082821c905092915050565b60006138bb6000198460080261389d565b1980831691505092915050565b60006138d483836138aa565b9150826002028217905092915050565b6138ed82612c0c565b67ffffffffffffffff81111561390657613905612eea565b5b613910825461365f565b61391b828285613857565b600060209050601f83116001811461394e576000841561393c578287015190505b61394685826138c8565b8655506139ae565b601f19841661395c86613742565b60005b828110156139845784890151825560018201915060208501945060208101905061395f565b868310156139a1578489015161399d601f8916826138aa565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4d696e74206174206c6561737420312042756e6e796d69676f73000000000000600082015250565b6000613a1b601a83612c17565b9150613a26826139e5565b602082019050919050565b60006020820190508181036000830152613a4a81613a0e565b9050919050565b7f546f6f206d616e792042756e6e796d69676f7300000000000000000000000000600082015250565b6000613a87601383612c17565b9150613a9282613a51565b602082019050919050565b60006020820190508181036000830152613ab681613a7a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613af782612cbe565b9150613b0283612cbe565b9250828203905081811115613b1a57613b19613abd565b5b92915050565b7f5075626c6963206d696e7420686173206e6f7420737461727465640000000000600082015250565b6000613b56601b83612c17565b9150613b6182613b20565b602082019050919050565b60006020820190508181036000830152613b8581613b49565b9050919050565b6000613b9782612cbe565b9150613ba283612cbe565b9250828201905080821115613bba57613bb9613abd565b5b92915050565b7f45786365656473206d617820737570706c790000000000000000000000000000600082015250565b6000613bf6601283612c17565b9150613c0182613bc0565b602082019050919050565b60006020820190508181036000830152613c2581613be9565b9050919050565b6000613c3782612cbe565b9150613c4283612cbe565b9250828202613c5081612cbe565b91508282048414831517613c6757613c66613abd565b5b5092915050565b7f45746865722076616c75652073656e74206973206e6f7420737566666963696560008201527f6e74000000000000000000000000000000000000000000000000000000000000602082015250565b6000613cca602283612c17565b9150613cd582613c6e565b604082019050919050565b60006020820190508181036000830152613cf981613cbd565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613d5c602f83612c17565b9150613d6782613d00565b604082019050919050565b60006020820190508181036000830152613d8b81613d4f565b9050919050565b600081905092915050565b6000613da882612c0c565b613db28185613d92565b9350613dc2818560208601612c28565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000613e04600583613d92565b9150613e0f82613dce565b600582019050919050565b6000613e268285613d9d565b9150613e328284613d9d565b9150613e3d82613df7565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613ea5602683612c17565b9150613eb082613e49565b604082019050919050565b60006020820190508181036000830152613ed481613e98565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613f11602083612c17565b9150613f1c82613edb565b602082019050919050565b60006020820190508181036000830152613f4081613f04565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613f7d601f83612c17565b9150613f8882613f47565b602082019050919050565b60006020820190508181036000830152613fac81613f70565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613fda82613fb3565b613fe48185613fbe565b9350613ff4818560208601612c28565b613ffd81612c52565b840191505092915050565b600060808201905061401d6000830187612d53565b61402a6020830186612d53565b6140376040830185612de9565b81810360608301526140498184613fcf565b905095945050505050565b60008151905061406381612b7d565b92915050565b60006020828403121561407f5761407e612b47565b5b600061408d84828501614054565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fdfea264697066735822122059219d7c41ed11add5321f79ea457317494273ef4495414369f1962dfbbd204864736f6c63430008110033697066733a2f2f516d56314b39696a516834534b5272345468683176546870797737454b357855646b3874396859354a597a5147582f
Deployed Bytecode
0x6080604052600436106102465760003560e01c80638462151c11610139578063c6275255116100b6578063e8a3d4851161007a578063e8a3d4851461083b578063e985e9c514610866578063f2fde38b146108a3578063f4a560a5146108cc578063f9e0edae146108e3578063fddcb5ea1461090e57610246565b8063c627525514610756578063c87b56dd1461077f578063d5abeb01146107bc578063d755bf99146107e7578063d82104821461081057610246565b8063a22cb465116100fd578063a22cb46514610680578063a945bf80146106a9578063aa35cca3146106d4578063b88d4fde146106fd578063c23dc68f1461071957610246565b80638462151c146105945780638da5cb5b146105d157806395d89b41146105fc57806399a2557a14610627578063a0712d681461066457610246565b806342842e0e116101c75780636352211e1161018b5780636352211e146104c3578063673cced5146105005780636f8b44b01461051757806370a0823114610540578063715018a61461057d57610246565b806342842e0e146103eb578063453c231014610407578063485a68a3146104325780634c2612471461045d5780635bbb21771461048657610246565b806318160ddd1161020e57806318160ddd1461033757806323b872dd146103625780633057931f1461037e5780633ccfd60b146103a957806341f43434146103c057610246565b806301ffc9a71461024b57806306fdde0314610288578063081812fc146102b3578063095ea7b3146102f05780630de76de41461030c575b600080fd5b34801561025757600080fd5b50610272600480360381019061026d9190612ba9565b61094b565b60405161027f9190612bf1565b60405180910390f35b34801561029457600080fd5b5061029d6109dd565b6040516102aa9190612c9c565b60405180910390f35b3480156102bf57600080fd5b506102da60048036038101906102d59190612cf4565b610a6f565b6040516102e79190612d62565b60405180910390f35b61030a60048036038101906103059190612da9565b610aee565b005b34801561031857600080fd5b50610321610c32565b60405161032e9190612bf1565b60405180910390f35b34801561034357600080fd5b5061034c610c45565b6040516103599190612df8565b60405180910390f35b61037c60048036038101906103779190612e13565b610c5c565b005b34801561038a57600080fd5b50610393610f7e565b6040516103a09190612bf1565b60405180910390f35b3480156103b557600080fd5b506103be610f91565b005b3480156103cc57600080fd5b506103d5611029565b6040516103e29190612ec5565b60405180910390f35b61040560048036038101906104009190612e13565b61103b565b005b34801561041357600080fd5b5061041c61105b565b6040516104299190612df8565b60405180910390f35b34801561043e57600080fd5b50610447611061565b6040516104549190612df8565b60405180910390f35b34801561046957600080fd5b50610484600480360381019061047f9190613015565b611067565b005b34801561049257600080fd5b506104ad60048036038101906104a891906130be565b6110d2565b6040516104ba919061326e565b60405180910390f35b3480156104cf57600080fd5b506104ea60048036038101906104e59190612cf4565b611195565b6040516104f79190612d62565b60405180910390f35b34801561050c57600080fd5b506105156111a7565b005b34801561052357600080fd5b5061053e60048036038101906105399190612cf4565b6111db565b005b34801561054c57600080fd5b5061056760048036038101906105629190613290565b6111ed565b6040516105749190612df8565b60405180910390f35b34801561058957600080fd5b506105926112a5565b005b3480156105a057600080fd5b506105bb60048036038101906105b69190613290565b6112b9565b6040516105c8919061337b565b60405180910390f35b3480156105dd57600080fd5b506105e66113fc565b6040516105f39190612d62565b60405180910390f35b34801561060857600080fd5b50610611611426565b60405161061e9190612c9c565b60405180910390f35b34801561063357600080fd5b5061064e6004803603810190610649919061339d565b6114b8565b60405161065b919061337b565b60405180910390f35b61067e60048036038101906106799190612cf4565b6116c4565b005b34801561068c57600080fd5b506106a760048036038101906106a2919061341c565b611934565b005b3480156106b557600080fd5b506106be611a3f565b6040516106cb9190612df8565b60405180910390f35b3480156106e057600080fd5b506106fb60048036038101906106f69190612da9565b611a45565b005b610717600480360381019061071291906134fd565b611ab2565b005b34801561072557600080fd5b50610740600480360381019061073b9190612cf4565b611b25565b60405161074d91906135d5565b60405180910390f35b34801561076257600080fd5b5061077d60048036038101906107789190612cf4565b611b8f565b005b34801561078b57600080fd5b506107a660048036038101906107a19190612cf4565b611ba1565b6040516107b39190612c9c565b60405180910390f35b3480156107c857600080fd5b506107d1611cc4565b6040516107de9190612df8565b60405180910390f35b3480156107f357600080fd5b5061080e60048036038101906108099190612cf4565b611cca565b005b34801561081c57600080fd5b50610825611cdc565b6040516108329190612c9c565b60405180910390f35b34801561084757600080fd5b50610850611d6a565b60405161085d9190612c9c565b60405180910390f35b34801561087257600080fd5b5061088d600480360381019061088891906135f0565b611d81565b60405161089a9190612bf1565b60405180910390f35b3480156108af57600080fd5b506108ca60048036038101906108c59190613290565b611e15565b005b3480156108d857600080fd5b506108e1611e98565b005b3480156108ef57600080fd5b506108f8611ebd565b6040516109059190612c9c565b60405180910390f35b34801561091a57600080fd5b5061093560048036038101906109309190613290565b611f4b565b6040516109429190612df8565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109a657506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109d65750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546109ec9061365f565b80601f0160208091040260200160405190810160405280929190818152602001828054610a189061365f565b8015610a655780601f10610a3a57610100808354040283529160200191610a65565b820191906000526020600020905b815481529060010190602001808311610a4857829003601f168201915b5050505050905090565b6000610a7a82611f94565b610ab0576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610af982611195565b90508073ffffffffffffffffffffffffffffffffffffffff16610b1a611ff3565b73ffffffffffffffffffffffffffffffffffffffff1614610b7d57610b4681610b41611ff3565b611d81565b610b7c576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600e60019054906101000a900460ff1681565b6000610c4f611ffb565b6001546000540303905090565b6000610c6782612004565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610cce576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610cda846120d0565b91509150610cf08187610ceb611ff3565b6120f7565b610d3c57610d0586610d00611ff3565b611d81565b610d3b576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610da2576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610daf868686600161213b565b8015610dba57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610e8885610e64888887612141565b7c020000000000000000000000000000000000000000000000000000000017612169565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610f0e5760006001850190506000600460008381526020019081526020016000205403610f0c576000548114610f0b578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610f768686866001612194565b505050505050565b600e60009054906101000a900460ff1681565b610f9961219a565b610fa1612218565b6000610fab6113fc565b73ffffffffffffffffffffffffffffffffffffffff1647604051610fce906136c1565b60006040518083038185875af1925050503d806000811461100b576040519150601f19603f3d011682016040523d82523d6000602084013e611010565b606091505b505090508061101e57600080fd5b50611027612267565b565b6daaeb6d7670e522a718067333cd4e81565b61105683838360405180602001604052806000815250611ab2565b505050565b600c5481565b600d5481565b61106f61219a565b600e60019054906101000a900460ff16156110bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b690613722565b60405180910390fd5b80600f90816110ce91906138e4565b5050565b6060600083839050905060008167ffffffffffffffff8111156110f8576110f7612eea565b5b60405190808252806020026020018201604052801561113157816020015b61111e612aee565b8152602001906001900390816111165790505b50905060005b82811461118957611160868683818110611154576111536139b6565b5b90506020020135611b25565b828281518110611173576111726139b6565b5b6020026020010181905250806001019050611137565b50809250505092915050565b60006111a082612004565b9050919050565b6111af61219a565b600e60009054906101000a900460ff1615600e60006101000a81548160ff021916908315150217905550565b6111e361219a565b80600a8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611254576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6112ad61219a565b6112b76000612271565b565b606060008060006112c9856111ed565b905060008167ffffffffffffffff8111156112e7576112e6612eea565b5b6040519080825280602002602001820160405280156113155781602001602082028036833780820191505090505b509050611320612aee565b600061132a611ffb565b90505b8386146113ee5761133d81612337565b915081604001516113e357600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461138857816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036113e257808387806001019850815181106113d5576113d46139b6565b5b6020026020010181815250505b5b80600101905061132d565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546114359061365f565b80601f01602080910402602001604051908101604052809291908181526020018280546114619061365f565b80156114ae5780601f10611483576101008083540402835291602001916114ae565b820191906000526020600020905b81548152906001019060200180831161149157829003601f168201915b5050505050905090565b60608183106114f3576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806114fe612362565b9050611508611ffb565b85101561151a57611517611ffb565b94505b80841115611526578093505b6000611531876111ed565b90508486101561155457600086860390508181101561154e578091505b50611559565b600090505b60008167ffffffffffffffff81111561157557611574612eea565b5b6040519080825280602002602001820160405280156115a35781602001602082028036833780820191505090505b509050600082036115ba57809450505050506116bd565b60006115c588611b25565b9050600081604001516115da57816000015190505b60008990505b8881141580156115f05750848714155b156116af576115fe81612337565b925082604001516116a457600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff161461164957826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116a35780848880600101995081518110611696576116956139b6565b5b6020026020010181815250505b5b8060010190506115e0565b508583528296505050505050505b9392505050565b6000601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000821161174b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174290613a31565b60405180910390fd5b600c54811061178f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178690613a9d565b60405180910390fd5b6000829050600d548210156117d9578282600d546117ad9190613aec565b11156117bc57600090506117d8565b81600d546117ca9190613aec565b836117d59190613aec565b90505b5b600e60009054906101000a900460ff16611828576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181f90613b6c565b60405180910390fd5b600a548361183461236b565b61183e9190613b8c565b111561187f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187690613c0c565b60405180910390fd5b600b548161188d9190613c2c565b3410156118cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c690613ce0565b60405180910390fd5b82601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461191e9190613b8c565b9250508190555061192f338461237e565b505050565b8060076000611941611ff3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166119ee611ff3565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611a339190612bf1565b60405180910390a35050565b600b5481565b611a4d61219a565b600a5481611a5961236b565b611a639190613b8c565b1115611aa4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9b90613c0c565b60405180910390fd5b611aae828261237e565b5050565b611abd848484610c5c565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611b1f57611ae88484848461239c565b611b1e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b611b2d612aee565b611b35612aee565b611b3d611ffb565b831080611b515750611b4d612362565b8310155b15611b5f5780915050611b8a565b611b6883612337565b9050806040015115611b7d5780915050611b8a565b611b86836124ec565b9150505b919050565b611b9761219a565b80600b8190555050565b6060611bac82611f94565b611beb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be290613d72565b60405180910390fd5b6000611bf561250c565b5111611c8b5760108054611c089061365f565b80601f0160208091040260200160405190810160405280929190818152602001828054611c349061365f565b8015611c815780601f10611c5657610100808354040283529160200191611c81565b820191906000526020600020905b815481529060010190602001808311611c6457829003601f168201915b5050505050611cbd565b611c9361250c565b611c9c8361259e565b604051602001611cad929190613e1a565b6040516020818303038152906040525b9050919050565b600a5481565b611cd261219a565b80600d8190555050565b60108054611ce99061365f565b80601f0160208091040260200160405190810160405280929190818152602001828054611d159061365f565b8015611d625780601f10611d3757610100808354040283529160200191611d62565b820191906000526020600020905b815481529060010190602001808311611d4557829003601f168201915b505050505081565b606060405180602001604052806000815250905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611e1d61219a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611e8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8390613ebb565b60405180910390fd5b611e9581612271565b50565b611ea061219a565b6001600e60016101000a81548160ff021916908315150217905550565b600f8054611eca9061365f565b80601f0160208091040260200160405190810160405280929190818152602001828054611ef69061365f565b8015611f435780601f10611f1857610100808354040283529160200191611f43565b820191906000526020600020905b815481529060010190602001808311611f2657829003601f168201915b505050505081565b6000601160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600081611f9f611ffb565b11158015611fae575060005482105b8015611fec575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b60008082905080612013611ffb565b11612099576000548110156120985760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612096575b6000810361208c576004600083600190039350838152602001908152602001600020549050612062565b80925050506120cb565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861215886868461266c565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6121a2612675565b73ffffffffffffffffffffffffffffffffffffffff166121c06113fc565b73ffffffffffffffffffffffffffffffffffffffff1614612216576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220d90613f27565b60405180910390fd5b565b60026009540361225d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225490613f93565b60405180910390fd5b6002600981905550565b6001600981905550565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61233f612aee565b61235b600460008481526020019081526020016000205461267d565b9050919050565b60008054905090565b6000612375611ffb565b60005403905090565b612398828260405180602001604052806000815250612733565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026123c2611ff3565b8786866040518563ffffffff1660e01b81526004016123e49493929190614008565b6020604051808303816000875af192505050801561242057506040513d601f19601f8201168201806040525081019061241d9190614069565b60015b612499573d8060008114612450576040519150601f19603f3d011682016040523d82523d6000602084013e612455565b606091505b506000815103612491576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6124f4612aee565b61250561250083612004565b61267d565b9050919050565b6060600f805461251b9061365f565b80601f01602080910402602001604051908101604052809291908181526020018280546125479061365f565b80156125945780601f1061256957610100808354040283529160200191612594565b820191906000526020600020905b81548152906001019060200180831161257757829003601f168201915b5050505050905090565b6060600060016125ad846127d0565b01905060008167ffffffffffffffff8111156125cc576125cb612eea565b5b6040519080825280601f01601f1916602001820160405280156125fe5781602001600182028036833780820191505090505b509050600082602001820190505b600115612661578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161265557612654614096565b5b0494506000850361260c575b819350505050919050565b60009392505050565b600033905090565b612685612aee565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b61273d8383612923565b60008373ffffffffffffffffffffffffffffffffffffffff163b146127cb57600080549050600083820390505b61277d600086838060010194508661239c565b6127b3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061276a5781600054146127c857600080fd5b50505b505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061282e577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161282457612823614096565b5b0492506040810190505b6d04ee2d6d415b85acef8100000000831061286b576d04ee2d6d415b85acef8100000000838161286157612860614096565b5b0492506020810190505b662386f26fc10000831061289a57662386f26fc1000083816128905761288f614096565b5b0492506010810190505b6305f5e10083106128c3576305f5e10083816128b9576128b8614096565b5b0492506008810190505b61271083106128e85761271083816128de576128dd614096565b5b0492506004810190505b6064831061290b576064838161290157612900614096565b5b0492506002810190505b600a831061291a576001810190505b80915050919050565b60008054905060008203612963576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612970600084838561213b565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506129e7836129d86000866000612141565b6129e185612ade565b17612169565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612a8857808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612a4d565b5060008203612ac3576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050612ad96000848385612194565b505050565b60006001821460e11b9050919050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612b8681612b51565b8114612b9157600080fd5b50565b600081359050612ba381612b7d565b92915050565b600060208284031215612bbf57612bbe612b47565b5b6000612bcd84828501612b94565b91505092915050565b60008115159050919050565b612beb81612bd6565b82525050565b6000602082019050612c066000830184612be2565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612c46578082015181840152602081019050612c2b565b60008484015250505050565b6000601f19601f8301169050919050565b6000612c6e82612c0c565b612c788185612c17565b9350612c88818560208601612c28565b612c9181612c52565b840191505092915050565b60006020820190508181036000830152612cb68184612c63565b905092915050565b6000819050919050565b612cd181612cbe565b8114612cdc57600080fd5b50565b600081359050612cee81612cc8565b92915050565b600060208284031215612d0a57612d09612b47565b5b6000612d1884828501612cdf565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612d4c82612d21565b9050919050565b612d5c81612d41565b82525050565b6000602082019050612d776000830184612d53565b92915050565b612d8681612d41565b8114612d9157600080fd5b50565b600081359050612da381612d7d565b92915050565b60008060408385031215612dc057612dbf612b47565b5b6000612dce85828601612d94565b9250506020612ddf85828601612cdf565b9150509250929050565b612df281612cbe565b82525050565b6000602082019050612e0d6000830184612de9565b92915050565b600080600060608486031215612e2c57612e2b612b47565b5b6000612e3a86828701612d94565b9350506020612e4b86828701612d94565b9250506040612e5c86828701612cdf565b9150509250925092565b6000819050919050565b6000612e8b612e86612e8184612d21565b612e66565b612d21565b9050919050565b6000612e9d82612e70565b9050919050565b6000612eaf82612e92565b9050919050565b612ebf81612ea4565b82525050565b6000602082019050612eda6000830184612eb6565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612f2282612c52565b810181811067ffffffffffffffff82111715612f4157612f40612eea565b5b80604052505050565b6000612f54612b3d565b9050612f608282612f19565b919050565b600067ffffffffffffffff821115612f8057612f7f612eea565b5b612f8982612c52565b9050602081019050919050565b82818337600083830152505050565b6000612fb8612fb384612f65565b612f4a565b905082815260208101848484011115612fd457612fd3612ee5565b5b612fdf848285612f96565b509392505050565b600082601f830112612ffc57612ffb612ee0565b5b813561300c848260208601612fa5565b91505092915050565b60006020828403121561302b5761302a612b47565b5b600082013567ffffffffffffffff81111561304957613048612b4c565b5b61305584828501612fe7565b91505092915050565b600080fd5b600080fd5b60008083601f84011261307e5761307d612ee0565b5b8235905067ffffffffffffffff81111561309b5761309a61305e565b5b6020830191508360208202830111156130b7576130b6613063565b5b9250929050565b600080602083850312156130d5576130d4612b47565b5b600083013567ffffffffffffffff8111156130f3576130f2612b4c565b5b6130ff85828601613068565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61314081612d41565b82525050565b600067ffffffffffffffff82169050919050565b61316381613146565b82525050565b61317281612bd6565b82525050565b600062ffffff82169050919050565b61319081613178565b82525050565b6080820160008201516131ac6000850182613137565b5060208201516131bf602085018261315a565b5060408201516131d26040850182613169565b5060608201516131e56060850182613187565b50505050565b60006131f78383613196565b60808301905092915050565b6000602082019050919050565b600061321b8261310b565b6132258185613116565b935061323083613127565b8060005b8381101561326157815161324888826131eb565b975061325383613203565b925050600181019050613234565b5085935050505092915050565b600060208201905081810360008301526132888184613210565b905092915050565b6000602082840312156132a6576132a5612b47565b5b60006132b484828501612d94565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6132f281612cbe565b82525050565b600061330483836132e9565b60208301905092915050565b6000602082019050919050565b6000613328826132bd565b61333281856132c8565b935061333d836132d9565b8060005b8381101561336e57815161335588826132f8565b975061336083613310565b925050600181019050613341565b5085935050505092915050565b60006020820190508181036000830152613395818461331d565b905092915050565b6000806000606084860312156133b6576133b5612b47565b5b60006133c486828701612d94565b93505060206133d586828701612cdf565b92505060406133e686828701612cdf565b9150509250925092565b6133f981612bd6565b811461340457600080fd5b50565b600081359050613416816133f0565b92915050565b6000806040838503121561343357613432612b47565b5b600061344185828601612d94565b925050602061345285828601613407565b9150509250929050565b600067ffffffffffffffff82111561347757613476612eea565b5b61348082612c52565b9050602081019050919050565b60006134a061349b8461345c565b612f4a565b9050828152602081018484840111156134bc576134bb612ee5565b5b6134c7848285612f96565b509392505050565b600082601f8301126134e4576134e3612ee0565b5b81356134f484826020860161348d565b91505092915050565b6000806000806080858703121561351757613516612b47565b5b600061352587828801612d94565b945050602061353687828801612d94565b935050604061354787828801612cdf565b925050606085013567ffffffffffffffff81111561356857613567612b4c565b5b613574878288016134cf565b91505092959194509250565b6080820160008201516135966000850182613137565b5060208201516135a9602085018261315a565b5060408201516135bc6040850182613169565b5060608201516135cf6060850182613187565b50505050565b60006080820190506135ea6000830184613580565b92915050565b6000806040838503121561360757613606612b47565b5b600061361585828601612d94565b925050602061362685828601612d94565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061367757607f821691505b60208210810361368a57613689613630565b5b50919050565b600081905092915050565b50565b60006136ab600083613690565b91506136b68261369b565b600082019050919050565b60006136cc8261369e565b9150819050919050565b7f4d657461646174612069732066696e616c697a65640000000000000000000000600082015250565b600061370c601583612c17565b9150613717826136d6565b602082019050919050565b6000602082019050818103600083015261373b816136ff565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026137a47fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613767565b6137ae8683613767565b95508019841693508086168417925050509392505050565b60006137e16137dc6137d784612cbe565b612e66565b612cbe565b9050919050565b6000819050919050565b6137fb836137c6565b61380f613807826137e8565b848454613774565b825550505050565b600090565b613824613817565b61382f8184846137f2565b505050565b5b818110156138535761384860008261381c565b600181019050613835565b5050565b601f8211156138985761386981613742565b61387284613757565b81016020851015613881578190505b61389561388d85613757565b830182613834565b50505b505050565b600082821c905092915050565b60006138bb6000198460080261389d565b1980831691505092915050565b60006138d483836138aa565b9150826002028217905092915050565b6138ed82612c0c565b67ffffffffffffffff81111561390657613905612eea565b5b613910825461365f565b61391b828285613857565b600060209050601f83116001811461394e576000841561393c578287015190505b61394685826138c8565b8655506139ae565b601f19841661395c86613742565b60005b828110156139845784890151825560018201915060208501945060208101905061395f565b868310156139a1578489015161399d601f8916826138aa565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4d696e74206174206c6561737420312042756e6e796d69676f73000000000000600082015250565b6000613a1b601a83612c17565b9150613a26826139e5565b602082019050919050565b60006020820190508181036000830152613a4a81613a0e565b9050919050565b7f546f6f206d616e792042756e6e796d69676f7300000000000000000000000000600082015250565b6000613a87601383612c17565b9150613a9282613a51565b602082019050919050565b60006020820190508181036000830152613ab681613a7a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613af782612cbe565b9150613b0283612cbe565b9250828203905081811115613b1a57613b19613abd565b5b92915050565b7f5075626c6963206d696e7420686173206e6f7420737461727465640000000000600082015250565b6000613b56601b83612c17565b9150613b6182613b20565b602082019050919050565b60006020820190508181036000830152613b8581613b49565b9050919050565b6000613b9782612cbe565b9150613ba283612cbe565b9250828201905080821115613bba57613bb9613abd565b5b92915050565b7f45786365656473206d617820737570706c790000000000000000000000000000600082015250565b6000613bf6601283612c17565b9150613c0182613bc0565b602082019050919050565b60006020820190508181036000830152613c2581613be9565b9050919050565b6000613c3782612cbe565b9150613c4283612cbe565b9250828202613c5081612cbe565b91508282048414831517613c6757613c66613abd565b5b5092915050565b7f45746865722076616c75652073656e74206973206e6f7420737566666963696560008201527f6e74000000000000000000000000000000000000000000000000000000000000602082015250565b6000613cca602283612c17565b9150613cd582613c6e565b604082019050919050565b60006020820190508181036000830152613cf981613cbd565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613d5c602f83612c17565b9150613d6782613d00565b604082019050919050565b60006020820190508181036000830152613d8b81613d4f565b9050919050565b600081905092915050565b6000613da882612c0c565b613db28185613d92565b9350613dc2818560208601612c28565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000613e04600583613d92565b9150613e0f82613dce565b600582019050919050565b6000613e268285613d9d565b9150613e328284613d9d565b9150613e3d82613df7565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613ea5602683612c17565b9150613eb082613e49565b604082019050919050565b60006020820190508181036000830152613ed481613e98565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613f11602083612c17565b9150613f1c82613edb565b602082019050919050565b60006020820190508181036000830152613f4081613f04565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613f7d601f83612c17565b9150613f8882613f47565b602082019050919050565b60006020820190508181036000830152613fac81613f70565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613fda82613fb3565b613fe48185613fbe565b9350613ff4818560208601612c28565b613ffd81612c52565b840191505092915050565b600060808201905061401d6000830187612d53565b61402a6020830186612d53565b6140376040830185612de9565b81810360608301526140498184613fcf565b905095945050505050565b60008151905061406381612b7d565b92915050565b60006020828403121561407f5761407e612b47565b5b600061408d84828501614054565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fdfea264697066735822122059219d7c41ed11add5321f79ea457317494273ef4495414369f1962dfbbd204864736f6c63430008110033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 35 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.