Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
31 NOVABYSAEKOW
Holders
9
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
10 NOVABYSAEKOWLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
NovaBySaekow
Compiler Version
v0.8.18+commit.87f61d96
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; /// @title NovaBySaekow import "./ERC721ACollectible.sol"; /**___________________________________________________________________________ | _______________________________________________________________________ | | | | | | | ███╗ ██╗ ██████╗ ██╗ ██╗ █████╗ | | | | ████╗ ██║██╔═══██╗██║ ██║██╔══██╗ | | | | ██╔██╗ ██║██║ ██║██║ ██║███████║ | | | | ██║╚██╗██║██║ ██║╚██╗ ██╔╝██╔══██║ | | | | ██║ ╚████║╚██████╔╝ ╚████╔╝ ██║ ██║ | | | | ╚═╝ ╚═══╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ | | | | ▄, | | | | ▄██▀▀▄▄ ▄▄ | | | | ,,,▄,,,▄m²"▀' ▌▄, ▀▀▀█▀▄ ████▄ | | | | ,▄▄▀▀ ""*▀M4▄▄▀▀▄▄═▀ ▀█▀R▄▐ ▀▄ ▄▀▀ `▀▀▄ | | | | `▀▄ `▀▀▄███████▌▄▀▄ '▀█ ▄▀"▀██ | | | | └U -═ⁿ""` ▄M▀▄█' ▀▄NÇ▀▀*" ▀▄ | | | | ▄ ,Æ▀ █▀ ▀██▄, ▐█▄ █ | | | | ▐█"▀▀▄ ▄▀ ▄▀ '▀▀▌ ▀▀█ | | | | ▐' ▐ Æ" ▄` ▄███N▄▄ ▀ █ | | | | ▓ ▄█▄▀' █ ,m▀▄∞" ,▄████▄▄▄▄▌ ▌ | | | | ▌ ▄▀▀▀▀ª▄ ,▀▄▀ ▌ ▐█▀` ,▄▀`██⌐▐` | | | | ▀▀▌ ▀▄ ▄█═*` ▀ ▀▀██' ╘███ | | | | ▌ ,∞"`██▀ , ▀▄ ▀ "█▄ | | | | █,Æ▀ ╒█▌ ▀, "M▄ ,▄ █µ | | | | ,█' █ "≡, ╙▄ ▐▌ ▀▀██▀▀ | | | | ▄▄▄▄,█▀N▄ ,██ ,▄4'▐▐█▄,'"═, ▌ ▐▌ █U | | | | ▄▄████████████████▐██"""▐█ ▀▀N▄, `█` █ j▌▄▄▀▀█ | | | | ,▄A███████████████████████▀▀▄, ▀▀██, █ j█▄▄▄█▌ | | | | ▄████████████████████████████▀██▌▄▀▄▄ ▀, █⌐j█▀ ▐▌ | | | | *▀▀██████████████████▀▀▀▀███ ▀█▄███▀▀████▄▄ ▀▄` j█ █▀▄ | | | | ,█▀██▀▀████████████████▄▄█▄▀█▀███▀████▄▄▀▀═▄▄██▌▄j█*═*▀ | | | | ▄████████████████████████████████████████▌▀▀▀ⁿM█ ╜▀█ | | | | ▀██████████████████████████████████████████╛ █▄▄` | | | | ▀▄██▀██████████████████████████████████████ ,████▄▌ | | | | ████████████████████████▀▀▀▀▀▀`` ▀▀▀█████▄▄▄█████████▄ | | | | ███████████████████████,. ▀██▄,,▄██████▀` | | | | ██████████████'▀▀▀██▄▄` ] ▀ █▀█▌▀▀████ | | | | ███████████████▄ "▀█▌ ▌ ╓▀ ▄▀ ╒█▌`╔▄ ▐██▄ | | | | █████████████████▄ ▐█ ▌ , . ▌ ▌ █ ▀█ ▀▄▀▀Ü█▌ | | | | ███████████████▌ ▀█▄▄A▀` ▀▌ ▀▄ ▄ ▐▌ ▀,█ █Ç | | | | ███████████████ , , ▐█ ─∞▄w═▀▌ █, █▐██▄ | | | | ███████████████ █ ▌"═▄, 4 ▀, █ █`▀▀█▀▀ "█ | | | | ███████████████ ▐ ▌ ▄ '▀N▄▄∞*" ▌ █ ▌ └█ | | | | | | | | ┌┐ ┬ ┬ ╦ ┌─┐┬ ┬┬┌─┐ ╔═╗┌─┐┌─┐┬┌─┌─┐┬ ┬ | | | | ├┴┐└┬┘ ║ │ ││ ││└─┐ ╚═╗├─┤├┤ ├┴┐│ ││││ | | | | └─┘ ┴ ╩═╝└─┘└─┘┴└─┘ ╚═╝┴ ┴└─┘┴ ┴└─┘└┴┘ | | | |_______________________________________________________________________| | |____________________________________________________________________________*/ contract NovaBySaekow is ERC721ACollectible('NovaBySaekow', 'NOVABYSAEKOW', 4040, .0169 ether, 10) {}
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "./ERC721AOperatorFilterer.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; // Custom Errors error OutOfBounds(); error InvalidArgument(); error PaymentRequired(); // 402 error Conflict(); // 409 error InternalError(); // 500 contract ERC721ACollectible is ERC721AOperatorFilterer, Pausable, Ownable, ERC2981 { // CONSTANTS uint256 public immutable TOKEN_MAX_SUPPLY; uint256 public immutable TOKEN_PRICE_WEI; uint256 public immutable TOKEN_MAX_PER_WALLET; // VARIABLES bool private _isRevealed; string private _baseMetadataURI; // INITIALIZATION constructor(string memory name_, string memory symbol_, uint256 maxSupply, uint256 priceWei, uint256 maxPerWallet) ERC721AOperatorFilterer(name_, symbol_) { _pause(); TOKEN_MAX_SUPPLY = maxSupply; TOKEN_PRICE_WEI = priceWei; TOKEN_MAX_PER_WALLET = maxPerWallet; } function supportsInterface(bytes4 interfaceId) public view virtual override (IERC721A, ERC721A, ERC2981) returns (bool) { return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId) ; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } // Modifiers modifier costs(uint256 price) { if (msg.value < price) revert PaymentRequired(); _; } modifier hasMintsAvailable(uint256 quantity) { if (_numberMinted(msg.sender) + quantity > TOKEN_MAX_PER_WALLET) revert OutOfBounds(); _; } modifier doesNotExceedMaxSupply(uint256 quantity) { if (totalSupply() + quantity > TOKEN_MAX_SUPPLY) revert OutOfBounds(); _; } // Minting function mint(uint128 quantity) external payable whenNotPaused doesNotExceedMaxSupply(quantity) costs(quantity * TOKEN_PRICE_WEI) hasMintsAvailable(quantity) { _mint(msg.sender, quantity); } // Sale State function startSale() public onlyOwner { _unpause(); } function stopSale() public onlyOwner { _pause(); } function availableSupply() public view returns (uint256) { return TOKEN_MAX_SUPPLY - totalSupply(); } // Metadata function _baseURI() internal view override returns (string memory) { return _baseMetadataURI; } function setBaseURI(string calldata baseMetadataURI) external onlyOwner { _baseMetadataURI = baseMetadataURI; } function markRevealed(string calldata baseMetadataURI) external onlyOwner { _isRevealed = true; _baseMetadataURI = baseMetadataURI; } function tokenURI(uint256 tokenId) public view virtual override(ERC721A, IERC721A) returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return _isRevealed ? string(abi.encodePacked(baseURI, _toString(tokenId))) : baseURI; } // Royalties function setRoyalties(address receiver, uint96 basisPoints) external onlyOwner { _setDefaultRoyalty(receiver, basisPoints); } function removeRoyalties() external onlyOwner { _deleteDefaultRoyalty(); } // Treasury function settleFunds() external onlyOwner { _withdrawEther(payable(owner())); } function _withdrawEther(address payable to) internal { (bool success, ) = to.call{value: address(this).balance}(""); if (!success) revert InternalError(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// 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 pragma solidity ^0.8.9; import "erc721a/contracts/extensions/ERC721AQueryable.sol"; import "operator-filter-registry/src/DefaultOperatorFilterer.sol"; contract ERC721AOperatorFilterer is ERC721AQueryable, DefaultOperatorFilterer { constructor(string memory name, string memory symbol) ERC721A(name, symbol) {} function setApprovalForAll(address operator, bool approved) public override(ERC721A, IERC721A) onlyAllowedOperatorApproval(operator) { ERC721A.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public payable override(ERC721A, IERC721A) onlyAllowedOperatorApproval(operator) { ERC721A.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public payable override(ERC721A, IERC721A) onlyAllowedOperator(from) { ERC721A.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public payable override(ERC721A, IERC721A) onlyAllowedOperator(from) { ERC721A.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override(ERC721A, IERC721A) onlyAllowedOperator(from) { ERC721A.safeTransferFrom(from, to, tokenId, data); } }
// 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 // 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 // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// 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 pragma solidity ^0.8.17; 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 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 // 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 v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// 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); }
// 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); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InternalError","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":"OutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"PaymentRequired","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_MAX_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_PRICE_WEI","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"availableSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"baseMetadataURI","type":"string"}],"name":"markRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"quantity","type":"uint128"}],"name":"mint","outputs":[],"stateMutability":"payable","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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removeRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"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":"string","name":"baseMetadataURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"basisPoints","type":"uint96"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"settleFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e06040523480156200001157600080fd5b506040518060400160405280600c81526020017f4e6f766142795361656b6f7700000000000000000000000000000000000000008152506040518060400160405280600c81526020017f4e4f564142595341454b4f570000000000000000000000000000000000000000815250610fc8663c0a75e0b44000600a8484733cc6cdda760b79bafa08df41ecfa224f810dceb6600183838160029081620000b791906200077b565b508060039081620000c991906200077b565b50620000da6200034960201b60201c565b600081905550505060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115620002d75780156200019d576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b815260040162000163929190620008a7565b600060405180830381600087803b1580156200017e57600080fd5b505af115801562000193573d6000803e3d6000fd5b50505050620002d6565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161462000257576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b81526004016200021d929190620008a7565b600060405180830381600087803b1580156200023857600080fd5b505af11580156200024d573d6000803e3d6000fd5b50505050620002d5565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b8152600401620002a09190620008d4565b600060405180830381600087803b158015620002bb57600080fd5b505af1158015620002d0573d6000803e3d6000fd5b505050505b5b5b505050506000600860006101000a81548160ff021916908315150217905550620003166200030a6200035260201b60201c565b6200035a60201b60201c565b620003266200042060201b60201c565b82608081815250508160a081815250508060c08181525050505050505062000974565b60006001905090565b600033905090565b6000600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620004306200049560201b60201c565b6001600860006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200047c6200035260201b60201c565b6040516200048b9190620008d4565b60405180910390a1565b620004a5620004ea60201b60201c565b15620004e8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004df9062000952565b60405180910390fd5b565b6000600860009054906101000a900460ff16905090565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200058357607f821691505b6020821081036200059957620005986200053b565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620005c4565b6200060f8683620005c4565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200065c62000656620006508462000627565b62000631565b62000627565b9050919050565b6000819050919050565b62000678836200063b565b62000690620006878262000663565b848454620005d1565b825550505050565b600090565b620006a762000698565b620006b48184846200066d565b505050565b5b81811015620006dc57620006d06000826200069d565b600181019050620006ba565b5050565b601f8211156200072b57620006f5816200059f565b6200070084620005b4565b8101602085101562000710578190505b620007286200071f85620005b4565b830182620006b9565b50505b505050565b600082821c905092915050565b6000620007506000198460080262000730565b1980831691505092915050565b60006200076b83836200073d565b9150826002028217905092915050565b620007868262000501565b67ffffffffffffffff811115620007a257620007a16200050c565b5b620007ae82546200056a565b620007bb828285620006e0565b600060209050601f831160018114620007f35760008415620007de578287015190505b620007ea85826200075d565b8655506200085a565b601f19841662000803866200059f565b60005b828110156200082d5784890151825560018201915060208501945060208101905062000806565b868310156200084d578489015162000849601f8916826200073d565b8355505b6001600288020188555050505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200088f8262000862565b9050919050565b620008a18162000882565b82525050565b6000604082019050620008be600083018562000896565b620008cd602083018462000896565b9392505050565b6000602082019050620008eb600083018462000896565b92915050565b600082825260208201905092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006200093a601083620008f1565b9150620009478262000902565b602082019050919050565b600060208201905081810360008301526200096d816200092b565b9050919050565b60805160a05160c051614233620009c060003960008181610e6d015261161a0152600081816108520152610de2015260008181610d760152818161100b01526111a801526142336000f3fe60806040526004361061020f5760003560e01c80637ecc2b5611610118578063bf8ac490116100a0578063cce35c4c1161006f578063cce35c4c1461076f578063db0545261461079a578063e36b0b37146107b1578063e985e9c5146107c8578063f2fde38b146108055761020f565b8063bf8ac490146106b5578063c21b471b146106cc578063c23dc68f146106f5578063c87b56dd146107325761020f565b806395d89b41116100e757806395d89b41146105f157806399a2557a1461061c578063a22cb46514610659578063b66a0e5d14610682578063b88d4fde146106995761020f565b80637ecc2b56146105335780638462151c1461055e5780638da5cb5b1461059b5780638ee2c4b8146105c65761020f565b806342842e0e1161019b5780636352211e1161016a5780636352211e1461045d57806369d3e20e1461049a57806370a08231146104b6578063715018a6146104f3578063721146da1461050a5761020f565b806342842e0e146103b057806355f804b3146103cc5780635bbb2177146103f55780635c975abb146104325761020f565b8063095ea7b3116101e2578063095ea7b3146102e457806318160ddd1461030057806323b872dd1461032b5780632a55205a1461034757806341f43434146103855761020f565b806301ffc9a7146102145780630499ed131461025157806306fdde031461027c578063081812fc146102a7575b600080fd5b34801561022057600080fd5b5061023b60048036038101906102369190612d4e565b61082e565b6040516102489190612d96565b60405180910390f35b34801561025d57600080fd5b50610266610850565b6040516102739190612dca565b60405180910390f35b34801561028857600080fd5b50610291610874565b60405161029e9190612e75565b60405180910390f35b3480156102b357600080fd5b506102ce60048036038101906102c99190612ec3565b610906565b6040516102db9190612f31565b60405180910390f35b6102fe60048036038101906102f99190612f78565b610985565b005b34801561030c57600080fd5b5061031561099e565b6040516103229190612dca565b60405180910390f35b61034560048036038101906103409190612fb8565b6109b5565b005b34801561035357600080fd5b5061036e6004803603810190610369919061300b565b610a04565b60405161037c92919061304b565b60405180910390f35b34801561039157600080fd5b5061039a610bee565b6040516103a791906130d3565b60405180910390f35b6103ca60048036038101906103c59190612fb8565b610c00565b005b3480156103d857600080fd5b506103f360048036038101906103ee9190613153565b610c4f565b005b34801561040157600080fd5b5061041c600480360381019061041791906131f6565b610c6d565b60405161042991906133a6565b60405180910390f35b34801561043e57600080fd5b50610447610d30565b6040516104549190612d96565b60405180910390f35b34801561046957600080fd5b50610484600480360381019061047f9190612ec3565b610d47565b6040516104919190612f31565b60405180910390f35b6104b460048036038101906104af9190613410565b610d59565b005b3480156104c257600080fd5b506104dd60048036038101906104d8919061343d565b610efa565b6040516104ea9190612dca565b60405180910390f35b3480156104ff57600080fd5b50610508610fb2565b005b34801561051657600080fd5b50610531600480360381019061052c9190613153565b610fc6565b005b34801561053f57600080fd5b50610548610fff565b6040516105559190612dca565b60405180910390f35b34801561056a57600080fd5b506105856004803603810190610580919061343d565b611039565b6040516105929190613528565b60405180910390f35b3480156105a757600080fd5b506105b061117c565b6040516105bd9190612f31565b60405180910390f35b3480156105d257600080fd5b506105db6111a6565b6040516105e89190612dca565b60405180910390f35b3480156105fd57600080fd5b506106066111ca565b6040516106139190612e75565b60405180910390f35b34801561062857600080fd5b50610643600480360381019061063e919061354a565b61125c565b6040516106509190613528565b60405180910390f35b34801561066557600080fd5b50610680600480360381019061067b91906135c9565b611468565b005b34801561068e57600080fd5b50610697611481565b005b6106b360048036038101906106ae9190613739565b611493565b005b3480156106c157600080fd5b506106ca6114e4565b005b3480156106d857600080fd5b506106f360048036038101906106ee9190613800565b6114fe565b005b34801561070157600080fd5b5061071c60048036038101906107179190612ec3565b611514565b6040516107299190613895565b60405180910390f35b34801561073e57600080fd5b5061075960048036038101906107549190612ec3565b61157e565b6040516107669190612e75565b60405180910390f35b34801561077b57600080fd5b50610784611618565b6040516107919190612dca565b60405180910390f35b3480156107a657600080fd5b506107af61163c565b005b3480156107bd57600080fd5b506107c661164e565b005b3480156107d457600080fd5b506107ef60048036038101906107ea91906138b0565b611660565b6040516107fc9190612d96565b60405180910390f35b34801561081157600080fd5b5061082c6004803603810190610827919061343d565b6116f4565b005b600061083982611777565b80610849575061084882611809565b5b9050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6060600280546108839061391f565b80601f01602080910402602001604051908101604052809291908181526020018280546108af9061391f565b80156108fc5780601f106108d1576101008083540402835291602001916108fc565b820191906000526020600020905b8154815290600101906020018083116108df57829003601f168201915b5050505050905090565b600061091182611883565b610947576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8161098f816118e2565b61099983836119df565b505050565b60006109a8611b23565b6001546000540303905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146109f3576109f2336118e2565b5b6109fe848484611b2c565b50505050565b6000806000600a60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610b995760096040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610ba3611e4e565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610bcf919061397f565b610bd991906139f0565b90508160000151819350935050509250929050565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c3e57610c3d336118e2565b5b610c49848484611e58565b50505050565b610c57611e78565b8181600c9182610c68929190613bce565b505050565b6060600083839050905060008167ffffffffffffffff811115610c9357610c9261360e565b5b604051908082528060200260200182016040528015610ccc57816020015b610cb9612c93565b815260200190600190039081610cb15790505b50905060005b828114610d2457610cfb868683818110610cef57610cee613c9e565b5b90506020020135611514565b828281518110610d0e57610d0d613c9e565b5b6020026020010181905250806001019050610cd2565b50809250505092915050565b6000600860009054906101000a900460ff16905090565b6000610d5282611ef6565b9050919050565b610d61611fc2565b806fffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000081610d9e61099e565b610da89190613ccd565b1115610de0576040517fb4120f1400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000826fffffffffffffffffffffffffffffffff16610e1e919061397f565b80341015610e58576040517f8b87dfbb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b826fffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000081610e963361200c565b610ea09190613ccd565b1115610ed8576040517fb4120f1400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ef433856fffffffffffffffffffffffffffffffff16612063565b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f61576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b610fba611e78565b610fc4600061221e565b565b610fce611e78565b6001600b60006101000a81548160ff0219169083151502179055508181600c9182610ffa929190613bce565b505050565b600061100961099e565b7f00000000000000000000000000000000000000000000000000000000000000006110349190613d01565b905090565b6060600080600061104985610efa565b905060008167ffffffffffffffff8111156110675761106661360e565b5b6040519080825280602002602001820160405280156110955781602001602082028036833780820191505090505b5090506110a0612c93565b60006110aa611b23565b90505b83861461116e576110bd816122e4565b9150816040015161116357600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461110857816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611162578083878060010198508151811061115557611154613c9e565b5b6020026020010181815250505b5b8060010190506110ad565b508195505050505050919050565b6000600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b6060600380546111d99061391f565b80601f01602080910402602001604051908101604052809291908181526020018280546112059061391f565b80156112525780601f1061122757610100808354040283529160200191611252565b820191906000526020600020905b81548152906001019060200180831161123557829003601f168201915b5050505050905090565b6060818310611297576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806112a261230f565b90506112ac611b23565b8510156112be576112bb611b23565b94505b808411156112ca578093505b60006112d587610efa565b9050848610156112f85760008686039050818110156112f2578091505b506112fd565b600090505b60008167ffffffffffffffff8111156113195761131861360e565b5b6040519080825280602002602001820160405280156113475781602001602082028036833780820191505090505b5090506000820361135e5780945050505050611461565b600061136988611514565b90506000816040015161137e57816000015190505b60008990505b8881141580156113945750848714155b15611453576113a2816122e4565b9250826040015161144857600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff16146113ed57826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611447578084888060010199508151811061143a57611439613c9e565b5b6020026020010181815250505b5b806001019050611384565b508583528296505050505050505b9392505050565b81611472816118e2565b61147c8383612318565b505050565b611489611e78565b611491612423565b565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146114d1576114d0336118e2565b5b6114dd85858585612486565b5050505050565b6114ec611e78565b6114fc6114f761117c565b6124f9565b565b611506611e78565b61151082826125a0565b5050565b61151c612c93565b611524612c93565b61152c611b23565b831080611540575061153c61230f565b8310155b1561154e5780915050611579565b611557836122e4565b905080604001511561156c5780915050611579565b61157583612735565b9150505b919050565b606061158982611883565b6115bf576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006115c9612755565b9050600b60009054906101000a900460ff166115e55780611610565b806115ef846127e7565b604051602001611600929190613d71565b6040516020818303038152906040525b915050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b611644611e78565b61164c612837565b565b611656611e78565b61165e612884565b565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6116fc611e78565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361176b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176290613e07565b60405180910390fd5b6117748161221e565b50565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806117d257506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806118025750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061187c575061187b826128e7565b5b9050919050565b60008161188e611b23565b1115801561189d575060005482105b80156118db575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156119dc576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611959929190613e27565b602060405180830381865afa158015611976573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061199a9190613e65565b6119db57806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016119d29190612f31565b60405180910390fd5b5b50565b60006119ea82610d47565b90508073ffffffffffffffffffffffffffffffffffffffff16611a0b612951565b73ffffffffffffffffffffffffffffffffffffffff1614611a6e57611a3781611a32612951565b611660565b611a6d576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b6000611b3782611ef6565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611b9e576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611baa84612959565b91509150611bc08187611bbb612951565b612980565b611c0c57611bd586611bd0612951565b611660565b611c0b576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611c72576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611c7f86868660016129c4565b8015611c8a57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550611d5885611d348888876129ca565b7c0200000000000000000000000000000000000000000000000000000000176129f2565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603611dde5760006001850190506000600460008381526020019081526020016000205403611ddc576000548114611ddb578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611e468686866001612a1d565b505050505050565b6000612710905090565b611e7383838360405180602001604052806000815250611493565b505050565b611e80612a23565b73ffffffffffffffffffffffffffffffffffffffff16611e9e61117c565b73ffffffffffffffffffffffffffffffffffffffff1614611ef4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eeb90613ede565b60405180910390fd5b565b60008082905080611f05611b23565b11611f8b57600054811015611f8a5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611f88575b60008103611f7e576004600083600190039350838152602001908152602001600020549050611f54565b8092505050611fbd565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b611fca610d30565b1561200a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200190613f4a565b60405180910390fd5b565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b600080549050600082036120a3576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6120b060008483856129c4565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506121278361211860008660006129ca565b61212185612a2b565b176129f2565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146121c857808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905061218d565b5060008203612203576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506122196000848385612a1d565b505050565b6000600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6122ec612c93565b6123086004600084815260200190815260200160002054612a3b565b9050919050565b60008054905090565b8060076000612325612951565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166123d2612951565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516124179190612d96565b60405180910390a35050565b61242b612af1565b6000600860006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61246f612a23565b60405161247c9190612f31565b60405180910390a1565b6124918484846109b5565b60008373ffffffffffffffffffffffffffffffffffffffff163b146124f3576124bc84848484612b3a565b6124f2576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60008173ffffffffffffffffffffffffffffffffffffffff164760405161251f90613f9b565b60006040518083038185875af1925050503d806000811461255c576040519150601f19603f3d011682016040523d82523d6000602084013e612561565b606091505b505090508061259c576040517ffe835e3500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b6125a8611e4e565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612606576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125fd90614022565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612675576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266c9061408e565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600960008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b61273d612c93565b61274e61274983611ef6565b612a3b565b9050919050565b6060600c80546127649061391f565b80601f01602080910402602001604051908101604052809291908181526020018280546127909061391f565b80156127dd5780601f106127b2576101008083540402835291602001916127dd565b820191906000526020600020905b8154815290600101906020018083116127c057829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b60011561282257600184039350600a81066030018453600a8104905080612800575b50828103602084039350808452505050919050565b6009600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a8154906bffffffffffffffffffffffff02191690555050565b61288c611fc2565b6001600860006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586128d0612a23565b6040516128dd9190612f31565b60405180910390a1565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86129e1868684612c8a565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b60006001821460e11b9050919050565b612a43612c93565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b612af9610d30565b612b38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b2f906140fa565b60405180910390fd5b565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612b60612951565b8786866040518563ffffffff1660e01b8152600401612b82949392919061416f565b6020604051808303816000875af1925050508015612bbe57506040513d601f19601f82011682018060405250810190612bbb91906141d0565b60015b612c37573d8060008114612bee576040519150601f19603f3d011682016040523d82523d6000602084013e612bf3565b606091505b506000815103612c2f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60009392505050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612d2b81612cf6565b8114612d3657600080fd5b50565b600081359050612d4881612d22565b92915050565b600060208284031215612d6457612d63612cec565b5b6000612d7284828501612d39565b91505092915050565b60008115159050919050565b612d9081612d7b565b82525050565b6000602082019050612dab6000830184612d87565b92915050565b6000819050919050565b612dc481612db1565b82525050565b6000602082019050612ddf6000830184612dbb565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612e1f578082015181840152602081019050612e04565b60008484015250505050565b6000601f19601f8301169050919050565b6000612e4782612de5565b612e518185612df0565b9350612e61818560208601612e01565b612e6a81612e2b565b840191505092915050565b60006020820190508181036000830152612e8f8184612e3c565b905092915050565b612ea081612db1565b8114612eab57600080fd5b50565b600081359050612ebd81612e97565b92915050565b600060208284031215612ed957612ed8612cec565b5b6000612ee784828501612eae565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612f1b82612ef0565b9050919050565b612f2b81612f10565b82525050565b6000602082019050612f466000830184612f22565b92915050565b612f5581612f10565b8114612f6057600080fd5b50565b600081359050612f7281612f4c565b92915050565b60008060408385031215612f8f57612f8e612cec565b5b6000612f9d85828601612f63565b9250506020612fae85828601612eae565b9150509250929050565b600080600060608486031215612fd157612fd0612cec565b5b6000612fdf86828701612f63565b9350506020612ff086828701612f63565b925050604061300186828701612eae565b9150509250925092565b6000806040838503121561302257613021612cec565b5b600061303085828601612eae565b925050602061304185828601612eae565b9150509250929050565b60006040820190506130606000830185612f22565b61306d6020830184612dbb565b9392505050565b6000819050919050565b600061309961309461308f84612ef0565b613074565b612ef0565b9050919050565b60006130ab8261307e565b9050919050565b60006130bd826130a0565b9050919050565b6130cd816130b2565b82525050565b60006020820190506130e860008301846130c4565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613113576131126130ee565b5b8235905067ffffffffffffffff8111156131305761312f6130f3565b5b60208301915083600182028301111561314c5761314b6130f8565b5b9250929050565b6000806020838503121561316a57613169612cec565b5b600083013567ffffffffffffffff81111561318857613187612cf1565b5b613194858286016130fd565b92509250509250929050565b60008083601f8401126131b6576131b56130ee565b5b8235905067ffffffffffffffff8111156131d3576131d26130f3565b5b6020830191508360208202830111156131ef576131ee6130f8565b5b9250929050565b6000806020838503121561320d5761320c612cec565b5b600083013567ffffffffffffffff81111561322b5761322a612cf1565b5b613237858286016131a0565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61327881612f10565b82525050565b600067ffffffffffffffff82169050919050565b61329b8161327e565b82525050565b6132aa81612d7b565b82525050565b600062ffffff82169050919050565b6132c8816132b0565b82525050565b6080820160008201516132e4600085018261326f565b5060208201516132f76020850182613292565b50604082015161330a60408501826132a1565b50606082015161331d60608501826132bf565b50505050565b600061332f83836132ce565b60808301905092915050565b6000602082019050919050565b600061335382613243565b61335d818561324e565b93506133688361325f565b8060005b838110156133995781516133808882613323565b975061338b8361333b565b92505060018101905061336c565b5085935050505092915050565b600060208201905081810360008301526133c08184613348565b905092915050565b60006fffffffffffffffffffffffffffffffff82169050919050565b6133ed816133c8565b81146133f857600080fd5b50565b60008135905061340a816133e4565b92915050565b60006020828403121561342657613425612cec565b5b6000613434848285016133fb565b91505092915050565b60006020828403121561345357613452612cec565b5b600061346184828501612f63565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61349f81612db1565b82525050565b60006134b18383613496565b60208301905092915050565b6000602082019050919050565b60006134d58261346a565b6134df8185613475565b93506134ea83613486565b8060005b8381101561351b57815161350288826134a5565b975061350d836134bd565b9250506001810190506134ee565b5085935050505092915050565b6000602082019050818103600083015261354281846134ca565b905092915050565b60008060006060848603121561356357613562612cec565b5b600061357186828701612f63565b935050602061358286828701612eae565b925050604061359386828701612eae565b9150509250925092565b6135a681612d7b565b81146135b157600080fd5b50565b6000813590506135c38161359d565b92915050565b600080604083850312156135e0576135df612cec565b5b60006135ee85828601612f63565b92505060206135ff858286016135b4565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61364682612e2b565b810181811067ffffffffffffffff821117156136655761366461360e565b5b80604052505050565b6000613678612ce2565b9050613684828261363d565b919050565b600067ffffffffffffffff8211156136a4576136a361360e565b5b6136ad82612e2b565b9050602081019050919050565b82818337600083830152505050565b60006136dc6136d784613689565b61366e565b9050828152602081018484840111156136f8576136f7613609565b5b6137038482856136ba565b509392505050565b600082601f8301126137205761371f6130ee565b5b81356137308482602086016136c9565b91505092915050565b6000806000806080858703121561375357613752612cec565b5b600061376187828801612f63565b945050602061377287828801612f63565b935050604061378387828801612eae565b925050606085013567ffffffffffffffff8111156137a4576137a3612cf1565b5b6137b08782880161370b565b91505092959194509250565b60006bffffffffffffffffffffffff82169050919050565b6137dd816137bc565b81146137e857600080fd5b50565b6000813590506137fa816137d4565b92915050565b6000806040838503121561381757613816612cec565b5b600061382585828601612f63565b9250506020613836858286016137eb565b9150509250929050565b608082016000820151613856600085018261326f565b5060208201516138696020850182613292565b50604082015161387c60408501826132a1565b50606082015161388f60608501826132bf565b50505050565b60006080820190506138aa6000830184613840565b92915050565b600080604083850312156138c7576138c6612cec565b5b60006138d585828601612f63565b92505060206138e685828601612f63565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061393757607f821691505b60208210810361394a576139496138f0565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061398a82612db1565b915061399583612db1565b92508282026139a381612db1565b915082820484148315176139ba576139b9613950565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006139fb82612db1565b9150613a0683612db1565b925082613a1657613a156139c1565b5b828204905092915050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613a8e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613a51565b613a988683613a51565b95508019841693508086168417925050509392505050565b6000613acb613ac6613ac184612db1565b613074565b612db1565b9050919050565b6000819050919050565b613ae583613ab0565b613af9613af182613ad2565b848454613a5e565b825550505050565b600090565b613b0e613b01565b613b19818484613adc565b505050565b5b81811015613b3d57613b32600082613b06565b600181019050613b1f565b5050565b601f821115613b8257613b5381613a2c565b613b5c84613a41565b81016020851015613b6b578190505b613b7f613b7785613a41565b830182613b1e565b50505b505050565b600082821c905092915050565b6000613ba560001984600802613b87565b1980831691505092915050565b6000613bbe8383613b94565b9150826002028217905092915050565b613bd88383613a21565b67ffffffffffffffff811115613bf157613bf061360e565b5b613bfb825461391f565b613c06828285613b41565b6000601f831160018114613c355760008415613c23578287013590505b613c2d8582613bb2565b865550613c95565b601f198416613c4386613a2c565b60005b82811015613c6b57848901358255600182019150602085019450602081019050613c46565b86831015613c885784890135613c84601f891682613b94565b8355505b6001600288020188555050505b50505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613cd882612db1565b9150613ce383612db1565b9250828201905080821115613cfb57613cfa613950565b5b92915050565b6000613d0c82612db1565b9150613d1783612db1565b9250828203905081811115613d2f57613d2e613950565b5b92915050565b600081905092915050565b6000613d4b82612de5565b613d558185613d35565b9350613d65818560208601612e01565b80840191505092915050565b6000613d7d8285613d40565b9150613d898284613d40565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613df1602683612df0565b9150613dfc82613d95565b604082019050919050565b60006020820190508181036000830152613e2081613de4565b9050919050565b6000604082019050613e3c6000830185612f22565b613e496020830184612f22565b9392505050565b600081519050613e5f8161359d565b92915050565b600060208284031215613e7b57613e7a612cec565b5b6000613e8984828501613e50565b91505092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613ec8602083612df0565b9150613ed382613e92565b602082019050919050565b60006020820190508181036000830152613ef781613ebb565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000613f34601083612df0565b9150613f3f82613efe565b602082019050919050565b60006020820190508181036000830152613f6381613f27565b9050919050565b600081905092915050565b50565b6000613f85600083613f6a565b9150613f9082613f75565b600082019050919050565b6000613fa682613f78565b9150819050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600061400c602a83612df0565b915061401782613fb0565b604082019050919050565b6000602082019050818103600083015261403b81613fff565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000614078601983612df0565b915061408382614042565b602082019050919050565b600060208201905081810360008301526140a78161406b565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006140e4601483612df0565b91506140ef826140ae565b602082019050919050565b60006020820190508181036000830152614113816140d7565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006141418261411a565b61414b8185614125565b935061415b818560208601612e01565b61416481612e2b565b840191505092915050565b60006080820190506141846000830187612f22565b6141916020830186612f22565b61419e6040830185612dbb565b81810360608301526141b08184614136565b905095945050505050565b6000815190506141ca81612d22565b92915050565b6000602082840312156141e6576141e5612cec565b5b60006141f4848285016141bb565b9150509291505056fea2646970667358221220280435ab05142fb6b48e0e285a1eeaafd3ee1d29dd2741b1882c34907c2bdc7c64736f6c63430008120033
Deployed Bytecode
0x60806040526004361061020f5760003560e01c80637ecc2b5611610118578063bf8ac490116100a0578063cce35c4c1161006f578063cce35c4c1461076f578063db0545261461079a578063e36b0b37146107b1578063e985e9c5146107c8578063f2fde38b146108055761020f565b8063bf8ac490146106b5578063c21b471b146106cc578063c23dc68f146106f5578063c87b56dd146107325761020f565b806395d89b41116100e757806395d89b41146105f157806399a2557a1461061c578063a22cb46514610659578063b66a0e5d14610682578063b88d4fde146106995761020f565b80637ecc2b56146105335780638462151c1461055e5780638da5cb5b1461059b5780638ee2c4b8146105c65761020f565b806342842e0e1161019b5780636352211e1161016a5780636352211e1461045d57806369d3e20e1461049a57806370a08231146104b6578063715018a6146104f3578063721146da1461050a5761020f565b806342842e0e146103b057806355f804b3146103cc5780635bbb2177146103f55780635c975abb146104325761020f565b8063095ea7b3116101e2578063095ea7b3146102e457806318160ddd1461030057806323b872dd1461032b5780632a55205a1461034757806341f43434146103855761020f565b806301ffc9a7146102145780630499ed131461025157806306fdde031461027c578063081812fc146102a7575b600080fd5b34801561022057600080fd5b5061023b60048036038101906102369190612d4e565b61082e565b6040516102489190612d96565b60405180910390f35b34801561025d57600080fd5b50610266610850565b6040516102739190612dca565b60405180910390f35b34801561028857600080fd5b50610291610874565b60405161029e9190612e75565b60405180910390f35b3480156102b357600080fd5b506102ce60048036038101906102c99190612ec3565b610906565b6040516102db9190612f31565b60405180910390f35b6102fe60048036038101906102f99190612f78565b610985565b005b34801561030c57600080fd5b5061031561099e565b6040516103229190612dca565b60405180910390f35b61034560048036038101906103409190612fb8565b6109b5565b005b34801561035357600080fd5b5061036e6004803603810190610369919061300b565b610a04565b60405161037c92919061304b565b60405180910390f35b34801561039157600080fd5b5061039a610bee565b6040516103a791906130d3565b60405180910390f35b6103ca60048036038101906103c59190612fb8565b610c00565b005b3480156103d857600080fd5b506103f360048036038101906103ee9190613153565b610c4f565b005b34801561040157600080fd5b5061041c600480360381019061041791906131f6565b610c6d565b60405161042991906133a6565b60405180910390f35b34801561043e57600080fd5b50610447610d30565b6040516104549190612d96565b60405180910390f35b34801561046957600080fd5b50610484600480360381019061047f9190612ec3565b610d47565b6040516104919190612f31565b60405180910390f35b6104b460048036038101906104af9190613410565b610d59565b005b3480156104c257600080fd5b506104dd60048036038101906104d8919061343d565b610efa565b6040516104ea9190612dca565b60405180910390f35b3480156104ff57600080fd5b50610508610fb2565b005b34801561051657600080fd5b50610531600480360381019061052c9190613153565b610fc6565b005b34801561053f57600080fd5b50610548610fff565b6040516105559190612dca565b60405180910390f35b34801561056a57600080fd5b506105856004803603810190610580919061343d565b611039565b6040516105929190613528565b60405180910390f35b3480156105a757600080fd5b506105b061117c565b6040516105bd9190612f31565b60405180910390f35b3480156105d257600080fd5b506105db6111a6565b6040516105e89190612dca565b60405180910390f35b3480156105fd57600080fd5b506106066111ca565b6040516106139190612e75565b60405180910390f35b34801561062857600080fd5b50610643600480360381019061063e919061354a565b61125c565b6040516106509190613528565b60405180910390f35b34801561066557600080fd5b50610680600480360381019061067b91906135c9565b611468565b005b34801561068e57600080fd5b50610697611481565b005b6106b360048036038101906106ae9190613739565b611493565b005b3480156106c157600080fd5b506106ca6114e4565b005b3480156106d857600080fd5b506106f360048036038101906106ee9190613800565b6114fe565b005b34801561070157600080fd5b5061071c60048036038101906107179190612ec3565b611514565b6040516107299190613895565b60405180910390f35b34801561073e57600080fd5b5061075960048036038101906107549190612ec3565b61157e565b6040516107669190612e75565b60405180910390f35b34801561077b57600080fd5b50610784611618565b6040516107919190612dca565b60405180910390f35b3480156107a657600080fd5b506107af61163c565b005b3480156107bd57600080fd5b506107c661164e565b005b3480156107d457600080fd5b506107ef60048036038101906107ea91906138b0565b611660565b6040516107fc9190612d96565b60405180910390f35b34801561081157600080fd5b5061082c6004803603810190610827919061343d565b6116f4565b005b600061083982611777565b80610849575061084882611809565b5b9050919050565b7f000000000000000000000000000000000000000000000000003c0a75e0b4400081565b6060600280546108839061391f565b80601f01602080910402602001604051908101604052809291908181526020018280546108af9061391f565b80156108fc5780601f106108d1576101008083540402835291602001916108fc565b820191906000526020600020905b8154815290600101906020018083116108df57829003601f168201915b5050505050905090565b600061091182611883565b610947576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8161098f816118e2565b61099983836119df565b505050565b60006109a8611b23565b6001546000540303905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146109f3576109f2336118e2565b5b6109fe848484611b2c565b50505050565b6000806000600a60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610b995760096040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610ba3611e4e565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610bcf919061397f565b610bd991906139f0565b90508160000151819350935050509250929050565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c3e57610c3d336118e2565b5b610c49848484611e58565b50505050565b610c57611e78565b8181600c9182610c68929190613bce565b505050565b6060600083839050905060008167ffffffffffffffff811115610c9357610c9261360e565b5b604051908082528060200260200182016040528015610ccc57816020015b610cb9612c93565b815260200190600190039081610cb15790505b50905060005b828114610d2457610cfb868683818110610cef57610cee613c9e565b5b90506020020135611514565b828281518110610d0e57610d0d613c9e565b5b6020026020010181905250806001019050610cd2565b50809250505092915050565b6000600860009054906101000a900460ff16905090565b6000610d5282611ef6565b9050919050565b610d61611fc2565b806fffffffffffffffffffffffffffffffff167f0000000000000000000000000000000000000000000000000000000000000fc881610d9e61099e565b610da89190613ccd565b1115610de0576040517fb4120f1400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000003c0a75e0b44000826fffffffffffffffffffffffffffffffff16610e1e919061397f565b80341015610e58576040517f8b87dfbb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b826fffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000a81610e963361200c565b610ea09190613ccd565b1115610ed8576040517fb4120f1400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ef433856fffffffffffffffffffffffffffffffff16612063565b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f61576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b610fba611e78565b610fc4600061221e565b565b610fce611e78565b6001600b60006101000a81548160ff0219169083151502179055508181600c9182610ffa929190613bce565b505050565b600061100961099e565b7f0000000000000000000000000000000000000000000000000000000000000fc86110349190613d01565b905090565b6060600080600061104985610efa565b905060008167ffffffffffffffff8111156110675761106661360e565b5b6040519080825280602002602001820160405280156110955781602001602082028036833780820191505090505b5090506110a0612c93565b60006110aa611b23565b90505b83861461116e576110bd816122e4565b9150816040015161116357600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461110857816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611162578083878060010198508151811061115557611154613c9e565b5b6020026020010181815250505b5b8060010190506110ad565b508195505050505050919050565b6000600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f0000000000000000000000000000000000000000000000000000000000000fc881565b6060600380546111d99061391f565b80601f01602080910402602001604051908101604052809291908181526020018280546112059061391f565b80156112525780601f1061122757610100808354040283529160200191611252565b820191906000526020600020905b81548152906001019060200180831161123557829003601f168201915b5050505050905090565b6060818310611297576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806112a261230f565b90506112ac611b23565b8510156112be576112bb611b23565b94505b808411156112ca578093505b60006112d587610efa565b9050848610156112f85760008686039050818110156112f2578091505b506112fd565b600090505b60008167ffffffffffffffff8111156113195761131861360e565b5b6040519080825280602002602001820160405280156113475781602001602082028036833780820191505090505b5090506000820361135e5780945050505050611461565b600061136988611514565b90506000816040015161137e57816000015190505b60008990505b8881141580156113945750848714155b15611453576113a2816122e4565b9250826040015161144857600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff16146113ed57826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611447578084888060010199508151811061143a57611439613c9e565b5b6020026020010181815250505b5b806001019050611384565b508583528296505050505050505b9392505050565b81611472816118e2565b61147c8383612318565b505050565b611489611e78565b611491612423565b565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146114d1576114d0336118e2565b5b6114dd85858585612486565b5050505050565b6114ec611e78565b6114fc6114f761117c565b6124f9565b565b611506611e78565b61151082826125a0565b5050565b61151c612c93565b611524612c93565b61152c611b23565b831080611540575061153c61230f565b8310155b1561154e5780915050611579565b611557836122e4565b905080604001511561156c5780915050611579565b61157583612735565b9150505b919050565b606061158982611883565b6115bf576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006115c9612755565b9050600b60009054906101000a900460ff166115e55780611610565b806115ef846127e7565b604051602001611600929190613d71565b6040516020818303038152906040525b915050919050565b7f000000000000000000000000000000000000000000000000000000000000000a81565b611644611e78565b61164c612837565b565b611656611e78565b61165e612884565b565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6116fc611e78565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361176b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176290613e07565b60405180910390fd5b6117748161221e565b50565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806117d257506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806118025750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061187c575061187b826128e7565b5b9050919050565b60008161188e611b23565b1115801561189d575060005482105b80156118db575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156119dc576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611959929190613e27565b602060405180830381865afa158015611976573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061199a9190613e65565b6119db57806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016119d29190612f31565b60405180910390fd5b5b50565b60006119ea82610d47565b90508073ffffffffffffffffffffffffffffffffffffffff16611a0b612951565b73ffffffffffffffffffffffffffffffffffffffff1614611a6e57611a3781611a32612951565b611660565b611a6d576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b6000611b3782611ef6565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611b9e576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611baa84612959565b91509150611bc08187611bbb612951565b612980565b611c0c57611bd586611bd0612951565b611660565b611c0b576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611c72576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611c7f86868660016129c4565b8015611c8a57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550611d5885611d348888876129ca565b7c0200000000000000000000000000000000000000000000000000000000176129f2565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603611dde5760006001850190506000600460008381526020019081526020016000205403611ddc576000548114611ddb578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611e468686866001612a1d565b505050505050565b6000612710905090565b611e7383838360405180602001604052806000815250611493565b505050565b611e80612a23565b73ffffffffffffffffffffffffffffffffffffffff16611e9e61117c565b73ffffffffffffffffffffffffffffffffffffffff1614611ef4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eeb90613ede565b60405180910390fd5b565b60008082905080611f05611b23565b11611f8b57600054811015611f8a5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611f88575b60008103611f7e576004600083600190039350838152602001908152602001600020549050611f54565b8092505050611fbd565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b611fca610d30565b1561200a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200190613f4a565b60405180910390fd5b565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b600080549050600082036120a3576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6120b060008483856129c4565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506121278361211860008660006129ca565b61212185612a2b565b176129f2565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146121c857808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905061218d565b5060008203612203576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506122196000848385612a1d565b505050565b6000600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6122ec612c93565b6123086004600084815260200190815260200160002054612a3b565b9050919050565b60008054905090565b8060076000612325612951565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166123d2612951565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516124179190612d96565b60405180910390a35050565b61242b612af1565b6000600860006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61246f612a23565b60405161247c9190612f31565b60405180910390a1565b6124918484846109b5565b60008373ffffffffffffffffffffffffffffffffffffffff163b146124f3576124bc84848484612b3a565b6124f2576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60008173ffffffffffffffffffffffffffffffffffffffff164760405161251f90613f9b565b60006040518083038185875af1925050503d806000811461255c576040519150601f19603f3d011682016040523d82523d6000602084013e612561565b606091505b505090508061259c576040517ffe835e3500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b6125a8611e4e565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612606576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125fd90614022565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612675576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266c9061408e565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600960008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b61273d612c93565b61274e61274983611ef6565b612a3b565b9050919050565b6060600c80546127649061391f565b80601f01602080910402602001604051908101604052809291908181526020018280546127909061391f565b80156127dd5780601f106127b2576101008083540402835291602001916127dd565b820191906000526020600020905b8154815290600101906020018083116127c057829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b60011561282257600184039350600a81066030018453600a8104905080612800575b50828103602084039350808452505050919050565b6009600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a8154906bffffffffffffffffffffffff02191690555050565b61288c611fc2565b6001600860006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586128d0612a23565b6040516128dd9190612f31565b60405180910390a1565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86129e1868684612c8a565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b60006001821460e11b9050919050565b612a43612c93565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b612af9610d30565b612b38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b2f906140fa565b60405180910390fd5b565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612b60612951565b8786866040518563ffffffff1660e01b8152600401612b82949392919061416f565b6020604051808303816000875af1925050508015612bbe57506040513d601f19601f82011682018060405250810190612bbb91906141d0565b60015b612c37573d8060008114612bee576040519150601f19603f3d011682016040523d82523d6000602084013e612bf3565b606091505b506000815103612c2f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60009392505050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612d2b81612cf6565b8114612d3657600080fd5b50565b600081359050612d4881612d22565b92915050565b600060208284031215612d6457612d63612cec565b5b6000612d7284828501612d39565b91505092915050565b60008115159050919050565b612d9081612d7b565b82525050565b6000602082019050612dab6000830184612d87565b92915050565b6000819050919050565b612dc481612db1565b82525050565b6000602082019050612ddf6000830184612dbb565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612e1f578082015181840152602081019050612e04565b60008484015250505050565b6000601f19601f8301169050919050565b6000612e4782612de5565b612e518185612df0565b9350612e61818560208601612e01565b612e6a81612e2b565b840191505092915050565b60006020820190508181036000830152612e8f8184612e3c565b905092915050565b612ea081612db1565b8114612eab57600080fd5b50565b600081359050612ebd81612e97565b92915050565b600060208284031215612ed957612ed8612cec565b5b6000612ee784828501612eae565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612f1b82612ef0565b9050919050565b612f2b81612f10565b82525050565b6000602082019050612f466000830184612f22565b92915050565b612f5581612f10565b8114612f6057600080fd5b50565b600081359050612f7281612f4c565b92915050565b60008060408385031215612f8f57612f8e612cec565b5b6000612f9d85828601612f63565b9250506020612fae85828601612eae565b9150509250929050565b600080600060608486031215612fd157612fd0612cec565b5b6000612fdf86828701612f63565b9350506020612ff086828701612f63565b925050604061300186828701612eae565b9150509250925092565b6000806040838503121561302257613021612cec565b5b600061303085828601612eae565b925050602061304185828601612eae565b9150509250929050565b60006040820190506130606000830185612f22565b61306d6020830184612dbb565b9392505050565b6000819050919050565b600061309961309461308f84612ef0565b613074565b612ef0565b9050919050565b60006130ab8261307e565b9050919050565b60006130bd826130a0565b9050919050565b6130cd816130b2565b82525050565b60006020820190506130e860008301846130c4565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613113576131126130ee565b5b8235905067ffffffffffffffff8111156131305761312f6130f3565b5b60208301915083600182028301111561314c5761314b6130f8565b5b9250929050565b6000806020838503121561316a57613169612cec565b5b600083013567ffffffffffffffff81111561318857613187612cf1565b5b613194858286016130fd565b92509250509250929050565b60008083601f8401126131b6576131b56130ee565b5b8235905067ffffffffffffffff8111156131d3576131d26130f3565b5b6020830191508360208202830111156131ef576131ee6130f8565b5b9250929050565b6000806020838503121561320d5761320c612cec565b5b600083013567ffffffffffffffff81111561322b5761322a612cf1565b5b613237858286016131a0565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61327881612f10565b82525050565b600067ffffffffffffffff82169050919050565b61329b8161327e565b82525050565b6132aa81612d7b565b82525050565b600062ffffff82169050919050565b6132c8816132b0565b82525050565b6080820160008201516132e4600085018261326f565b5060208201516132f76020850182613292565b50604082015161330a60408501826132a1565b50606082015161331d60608501826132bf565b50505050565b600061332f83836132ce565b60808301905092915050565b6000602082019050919050565b600061335382613243565b61335d818561324e565b93506133688361325f565b8060005b838110156133995781516133808882613323565b975061338b8361333b565b92505060018101905061336c565b5085935050505092915050565b600060208201905081810360008301526133c08184613348565b905092915050565b60006fffffffffffffffffffffffffffffffff82169050919050565b6133ed816133c8565b81146133f857600080fd5b50565b60008135905061340a816133e4565b92915050565b60006020828403121561342657613425612cec565b5b6000613434848285016133fb565b91505092915050565b60006020828403121561345357613452612cec565b5b600061346184828501612f63565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61349f81612db1565b82525050565b60006134b18383613496565b60208301905092915050565b6000602082019050919050565b60006134d58261346a565b6134df8185613475565b93506134ea83613486565b8060005b8381101561351b57815161350288826134a5565b975061350d836134bd565b9250506001810190506134ee565b5085935050505092915050565b6000602082019050818103600083015261354281846134ca565b905092915050565b60008060006060848603121561356357613562612cec565b5b600061357186828701612f63565b935050602061358286828701612eae565b925050604061359386828701612eae565b9150509250925092565b6135a681612d7b565b81146135b157600080fd5b50565b6000813590506135c38161359d565b92915050565b600080604083850312156135e0576135df612cec565b5b60006135ee85828601612f63565b92505060206135ff858286016135b4565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61364682612e2b565b810181811067ffffffffffffffff821117156136655761366461360e565b5b80604052505050565b6000613678612ce2565b9050613684828261363d565b919050565b600067ffffffffffffffff8211156136a4576136a361360e565b5b6136ad82612e2b565b9050602081019050919050565b82818337600083830152505050565b60006136dc6136d784613689565b61366e565b9050828152602081018484840111156136f8576136f7613609565b5b6137038482856136ba565b509392505050565b600082601f8301126137205761371f6130ee565b5b81356137308482602086016136c9565b91505092915050565b6000806000806080858703121561375357613752612cec565b5b600061376187828801612f63565b945050602061377287828801612f63565b935050604061378387828801612eae565b925050606085013567ffffffffffffffff8111156137a4576137a3612cf1565b5b6137b08782880161370b565b91505092959194509250565b60006bffffffffffffffffffffffff82169050919050565b6137dd816137bc565b81146137e857600080fd5b50565b6000813590506137fa816137d4565b92915050565b6000806040838503121561381757613816612cec565b5b600061382585828601612f63565b9250506020613836858286016137eb565b9150509250929050565b608082016000820151613856600085018261326f565b5060208201516138696020850182613292565b50604082015161387c60408501826132a1565b50606082015161388f60608501826132bf565b50505050565b60006080820190506138aa6000830184613840565b92915050565b600080604083850312156138c7576138c6612cec565b5b60006138d585828601612f63565b92505060206138e685828601612f63565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061393757607f821691505b60208210810361394a576139496138f0565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061398a82612db1565b915061399583612db1565b92508282026139a381612db1565b915082820484148315176139ba576139b9613950565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006139fb82612db1565b9150613a0683612db1565b925082613a1657613a156139c1565b5b828204905092915050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613a8e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613a51565b613a988683613a51565b95508019841693508086168417925050509392505050565b6000613acb613ac6613ac184612db1565b613074565b612db1565b9050919050565b6000819050919050565b613ae583613ab0565b613af9613af182613ad2565b848454613a5e565b825550505050565b600090565b613b0e613b01565b613b19818484613adc565b505050565b5b81811015613b3d57613b32600082613b06565b600181019050613b1f565b5050565b601f821115613b8257613b5381613a2c565b613b5c84613a41565b81016020851015613b6b578190505b613b7f613b7785613a41565b830182613b1e565b50505b505050565b600082821c905092915050565b6000613ba560001984600802613b87565b1980831691505092915050565b6000613bbe8383613b94565b9150826002028217905092915050565b613bd88383613a21565b67ffffffffffffffff811115613bf157613bf061360e565b5b613bfb825461391f565b613c06828285613b41565b6000601f831160018114613c355760008415613c23578287013590505b613c2d8582613bb2565b865550613c95565b601f198416613c4386613a2c565b60005b82811015613c6b57848901358255600182019150602085019450602081019050613c46565b86831015613c885784890135613c84601f891682613b94565b8355505b6001600288020188555050505b50505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613cd882612db1565b9150613ce383612db1565b9250828201905080821115613cfb57613cfa613950565b5b92915050565b6000613d0c82612db1565b9150613d1783612db1565b9250828203905081811115613d2f57613d2e613950565b5b92915050565b600081905092915050565b6000613d4b82612de5565b613d558185613d35565b9350613d65818560208601612e01565b80840191505092915050565b6000613d7d8285613d40565b9150613d898284613d40565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613df1602683612df0565b9150613dfc82613d95565b604082019050919050565b60006020820190508181036000830152613e2081613de4565b9050919050565b6000604082019050613e3c6000830185612f22565b613e496020830184612f22565b9392505050565b600081519050613e5f8161359d565b92915050565b600060208284031215613e7b57613e7a612cec565b5b6000613e8984828501613e50565b91505092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613ec8602083612df0565b9150613ed382613e92565b602082019050919050565b60006020820190508181036000830152613ef781613ebb565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000613f34601083612df0565b9150613f3f82613efe565b602082019050919050565b60006020820190508181036000830152613f6381613f27565b9050919050565b600081905092915050565b50565b6000613f85600083613f6a565b9150613f9082613f75565b600082019050919050565b6000613fa682613f78565b9150819050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600061400c602a83612df0565b915061401782613fb0565b604082019050919050565b6000602082019050818103600083015261403b81613fff565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000614078601983612df0565b915061408382614042565b602082019050919050565b600060208201905081810360008301526140a78161406b565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006140e4601483612df0565b91506140ef826140ae565b602082019050919050565b60006020820190508181036000830152614113816140d7565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006141418261411a565b61414b8185614125565b935061415b818560208601612e01565b61416481612e2b565b840191505092915050565b60006080820190506141846000830187612f22565b6141916020830186612f22565b61419e6040830185612dbb565b81810360608301526141b08184614136565b905095945050505050565b6000815190506141ca81612d22565b92915050565b6000602082840312156141e6576141e5612cec565b5b60006141f4848285016141bb565b9150509291505056fea2646970667358221220280435ab05142fb6b48e0e285a1eeaafd3ee1d29dd2741b1882c34907c2bdc7c64736f6c63430008120033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.