ERC-721
Overview
Max Total Supply
500 Planetas
Holders
196
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 PlanetasLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Planetas
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-12-21 */ // SPDX-License-Identifier: MIT // File: https://github.com/ProjectOpenSea/operator-filter-registry/blob/main/src/IOperatorFilterRegistry.sol pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); } // File: https://github.com/ProjectOpenSea/operator-filter-registry/blob/main/src/OperatorFilterer.sol pragma solidity ^0.8.13; /** * @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. */ abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); 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)); } } } } 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); } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } 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) { if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } } // File: https://github.com/ProjectOpenSea/operator-filter-registry/blob/main/src/DefaultOperatorFilterer.sol pragma solidity ^0.8.13; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} } // File: https://github.com/chiru-labs/ERC721A/blob/main/contracts/IERC721A.sol // 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); } // File: https://github.com/chiru-labs/ERC721A/blob/main/contracts/ERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @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 packed) { if (_startTokenId() <= tokenId) { packed = _packedOwnerships[tokenId]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // If the data at the starting slot does not exist, start the scan. if (packed == 0) { if (tokenId >= _currentIndex) revert OwnerQueryForNonexistentToken(); // 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, `tokenId` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. for (;;) { unchecked { packed = _packedOwnerships[--tokenId]; } if (packed == 0) continue; return packed; } } // Otherwise, the data exists and is not burned. We can skip the scan. // This is possible because we have already achieved the target condition. // This saves 2143 gas on transfers of initialized tokens. 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. See {ERC721A-_approve}. * * Requirements: * * - The caller must own the token or be an approved operator. */ function approve(address to, uint256 tokenId) public payable virtual override { _approve(to, tokenId, true); } /** * @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, ''); } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Equivalent to `_approve(to, tokenId, false)`. */ function _approve(address to, uint256 tokenId) internal virtual { _approve(to, tokenId, false); } /** * @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: * * - `tokenId` must exist. * * Emits an {Approval} event. */ function _approve( address to, uint256 tokenId, bool approvalCheck ) internal virtual { address owner = ownerOf(tokenId); if (approvalCheck) if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } // ============================================================= // 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) } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.0/contracts/utils/Context.sol // 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; } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.0/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @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); } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.0/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.0/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: Planetas.sol pragma solidity ^0.8.13; contract Planetas is ERC721A, Ownable, DefaultOperatorFilterer { error MintInactive(); error ContractCaller(); error InvalidAmount(); error ExceedsSupply(); error InvalidValue(); error LengthsDoNotMatch(); error InvalidToken(); error NotTokenOwner(); using Strings for uint256; string public baseURI; uint256 public price = 0.003 ether; uint256 public constant MAX_SUPPLY = 500; uint256 public constant MAX_PER_TX = 3; bool public saleActive = false; constructor() ERC721A("Planetas", "Planetas") { _mint(msg.sender, 1); } function mint(uint256 mintAmount_) public payable { if (!saleActive) revert MintInactive(); if (msg.sender != tx.origin) revert ContractCaller(); if (mintAmount_ > MAX_PER_TX) revert InvalidAmount(); unchecked { if (mintAmount_ + totalSupply() > MAX_SUPPLY) revert ExceedsSupply(); if (msg.value != mintAmount_ * price) revert InvalidValue(); } _mint(msg.sender, mintAmount_); } function mintForAddress(uint256 mintAmount_, address to_) external onlyOwner { if (mintAmount_ + totalSupply() > MAX_SUPPLY) revert ExceedsSupply(); _mint(to_, mintAmount_); } function batchMintForAddresses(address[] calldata addresses_, uint256[] calldata amounts_) external onlyOwner { if (addresses_.length != amounts_.length) revert LengthsDoNotMatch(); unchecked { for (uint32 i = 0; i < addresses_.length; i++) { if (totalSupply() + amounts_[i] > MAX_SUPPLY) revert ExceedsSupply(); _mint(addresses_[i], amounts_[i]); } } } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function flipSaleActive() external onlyOwner { saleActive = !saleActive; } function setPrice(uint256 price_) external onlyOwner { price = price_; } function withdraw() external onlyOwner { payable(owner()).transfer(address(this).balance); } function setBaseURI(string memory newBaseURI_) external onlyOwner { baseURI = newBaseURI_; } function tokenURI(uint256 tokenId_) public view virtual override returns (string memory) { if (!_exists(tokenId_)) revert InvalidToken(); return string(abi.encodePacked(baseURI, tokenId_.toString(), ".json")); } function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public payable override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override onlyAllowedOperator(from){ super.safeTransferFrom(from, to, tokenId, data); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"ContractCaller","type":"error"},{"inputs":[],"name":"ExceedsSupply","type":"error"},{"inputs":[],"name":"InvalidAmount","type":"error"},{"inputs":[],"name":"InvalidToken","type":"error"},{"inputs":[],"name":"InvalidValue","type":"error"},{"inputs":[],"name":"LengthsDoNotMatch","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintInactive","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotTokenOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"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":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses_","type":"address[]"},{"internalType":"uint256[]","name":"amounts_","type":"uint256[]"}],"name":"batchMintForAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintAmount_","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintAmount_","type":"uint256"},{"internalType":"address","name":"to_","type":"address"}],"name":"mintForAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price_","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052660aa87bee538000600a55600b805460ff191690553480156200002657600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb6600160405180604001604052806008815260200167506c616e6574617360c01b81525060405180604001604052806008815260200167506c616e6574617360c01b8152508160029081620000919190620003e9565b506003620000a08282620003e9565b5050600160005550620000b3336200020e565b6daaeb6d7670e522a718067333cd4e3b15620001f85780156200014657604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200012757600080fd5b505af11580156200013c573d6000803e3d6000fd5b50505050620001f8565b6001600160a01b03821615620001975760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200010c565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001de57600080fd5b505af1158015620001f3573d6000803e3d6000fd5b505050505b5062000208905033600162000260565b620004b5565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000805490829003620002865760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b1783179055828401908390839060008051602062001f9a8339815191528180a4600183015b81811462000315578083600060008051602062001f9a833981519152600080a4600101620002ec565b50816000036200033757604051622e076360e81b815260040160405180910390fd5b60005550505050565b505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200037057607f821691505b6020821081036200039157634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200034057600081815260208120601f850160051c81016020861015620003c05750805b601f850160051c820191505b81811015620003e157828155600101620003cc565b505050505050565b81516001600160401b0381111562000405576200040562000345565b6200041d816200041684546200035b565b8462000397565b602080601f8311600181146200045557600084156200043c5750858301515b600019600386901b1c1916600185901b178555620003e1565b600085815260208120601f198616915b82811015620004865788860151825594840194600190910190840162000465565b5085821015620004a55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611ad580620004c56000396000f3fe6080604052600436106101cd5760003560e01c8063715018a6116100f7578063b88d4fde11610095578063e985e9c511610064578063e985e9c5146104bd578063efbd73f4146104dd578063f2fde38b146104fd578063f43a22dc1461051d57600080fd5b8063b88d4fde14610455578063c87b56dd14610468578063de53f38a14610488578063de8b51e1146104a857600080fd5b806395d89b41116100d157806395d89b41146103f7578063a035b1fe1461040c578063a0712d6814610422578063a22cb4651461043557600080fd5b8063715018a6146103a45780638da5cb5b146103b957806391b7f5ed146103d757600080fd5b80633ccfd60b1161016f5780636352211e1161013e5780636352211e1461033557806368428a1b146103555780636c0360eb1461036f57806370a082311461038457600080fd5b80633ccfd60b146102cb57806341f43434146102e057806342842e0e1461030257806355f804b31461031557600080fd5b8063095ea7b3116101ab578063095ea7b31461026157806318160ddd1461027657806323b872dd146102a257806332cb6b0c146102b557600080fd5b806301ffc9a7146101d257806306fdde0314610207578063081812fc14610229575b600080fd5b3480156101de57600080fd5b506101f26101ed36600461143e565b610532565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061021c610584565b6040516101fe91906114b2565b34801561023557600080fd5b506102496102443660046114c5565b610616565b6040516001600160a01b0390911681526020016101fe565b61027461026f3660046114f5565b61065a565b005b34801561028257600080fd5b50610294600154600054036000190190565b6040519081526020016101fe565b6102746102b036600461151f565b610673565b3480156102c157600080fd5b506102946101f481565b3480156102d757600080fd5b5061027461069e565b3480156102ec57600080fd5b506102496daaeb6d7670e522a718067333cd4e81565b61027461031036600461151f565b6106e2565b34801561032157600080fd5b506102746103303660046115e7565b610707565b34801561034157600080fd5b506102496103503660046114c5565b61071f565b34801561036157600080fd5b50600b546101f29060ff1681565b34801561037b57600080fd5b5061021c61072a565b34801561039057600080fd5b5061029461039f366004611630565b6107b8565b3480156103b057600080fd5b50610274610807565b3480156103c557600080fd5b506008546001600160a01b0316610249565b3480156103e357600080fd5b506102746103f23660046114c5565b61081b565b34801561040357600080fd5b5061021c610828565b34801561041857600080fd5b50610294600a5481565b6102746104303660046114c5565b610837565b34801561044157600080fd5b50610274610450366004611659565b6108ff565b610274610463366004611690565b610913565b34801561047457600080fd5b5061021c6104833660046114c5565b610940565b34801561049457600080fd5b506102746104a3366004611758565b61099a565b3480156104b457600080fd5b50610274610a82565b3480156104c957600080fd5b506101f26104d83660046117c4565b610a9e565b3480156104e957600080fd5b506102746104f83660046117f7565b610acc565b34801561050957600080fd5b50610274610518366004611630565b610b1b565b34801561052957600080fd5b50610294600381565b60006301ffc9a760e01b6001600160e01b03198316148061056357506380ac58cd60e01b6001600160e01b03198316145b8061057e5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546105939061181a565b80601f01602080910402602001604051908101604052809291908181526020018280546105bf9061181a565b801561060c5780601f106105e15761010080835404028352916020019161060c565b820191906000526020600020905b8154815290600101906020018083116105ef57829003601f168201915b5050505050905090565b600061062182610b96565b61063e576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b8161066481610bcb565b61066e8383610c84565b505050565b826001600160a01b038116331461068d5761068d33610bcb565b610698848484610c90565b50505050565b6106a6610e29565b6008546040516001600160a01b03909116904780156108fc02916000818181858888f193505050501580156106df573d6000803e3d6000fd5b50565b826001600160a01b03811633146106fc576106fc33610bcb565b610698848484610e83565b61070f610e29565b600961071b828261189a565b5050565b600061057e82610e9e565b600980546107379061181a565b80601f01602080910402602001604051908101604052809291908181526020018280546107639061181a565b80156107b05780601f10610785576101008083540402835291602001916107b0565b820191906000526020600020905b81548152906001019060200180831161079357829003601f168201915b505050505081565b60006001600160a01b0382166107e1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b61080f610e29565b6108196000610f2a565b565b610823610e29565b600a55565b6060600380546105939061181a565b600b5460ff1661085a57604051630d0ca57160e21b815260040160405180910390fd5b33321461087a57604051636844047f60e01b815260040160405180910390fd5b600381111561089c5760405163162908e360e11b815260040160405180910390fd5b6101f46108b0600154600054036000190190565b820111156108d157604051632d573a5560e01b815260040160405180910390fd5b600a54810234146108f557604051632a9ffab760e21b815260040160405180910390fd5b6106df3382610f7c565b8161090981610bcb565b61066e838361107a565b836001600160a01b038116331461092d5761092d33610bcb565b610939858585856110e6565b5050505050565b606061094b82610b96565b6109685760405163c1ab6dc160e01b815260040160405180910390fd5b60096109738361112a565b60405160200161098492919061195a565b6040516020818303038152906040529050919050565b6109a2610e29565b8281146109c25760405163aa81c86160e01b815260040160405180910390fd5b60005b63ffffffff8116841115610939576101f483838363ffffffff168181106109ee576109ee6119f1565b90506020020135610a06600154600054036000190190565b011115610a2657604051632d573a5560e01b815260040160405180910390fd5b610a7a85858363ffffffff16818110610a4157610a416119f1565b9050602002016020810190610a569190611630565b84848463ffffffff16818110610a6e57610a6e6119f1565b90506020020135610f7c565b6001016109c5565b610a8a610e29565b600b805460ff19811660ff90911615179055565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610ad4610e29565b6101f4610ae8600154600054036000190190565b610af29084611a07565b1115610b1157604051632d573a5560e01b815260040160405180910390fd5b61071b8183610f7c565b610b23610e29565b6001600160a01b038116610b8d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6106df81610f2a565b600081600111158015610baa575060005482105b801561057e575050600090815260046020526040902054600160e01b161590565b6daaeb6d7670e522a718067333cd4e3b156106df57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610c38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5c9190611a28565b6106df57604051633b79c77360e21b81526001600160a01b0382166004820152602401610b84565b61071b828260016111bd565b6000610c9b82610e9e565b9050836001600160a01b0316816001600160a01b031614610cce5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610d1b57610cfe8633610a9e565b610d1b57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610d4257604051633a954ecd60e21b815260040160405180910390fd5b8015610d4d57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610ddf57600184016000818152600460205260408120549003610ddd576000548114610ddd5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6008546001600160a01b031633146108195760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b84565b61066e83838360405180602001604052806000815250610913565b600081600111610f11575060008181526004602052604081205490600160e01b82169003610f115780600003610f0c576000548210610ef057604051636f96cda160e11b815260040160405180910390fd5b5b50600019016000818152600460205260409020548015610ef1575b919050565b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000805490829003610fa15760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461105057808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611018565b508160000361107157604051622e076360e81b815260040160405180910390fd5b60005550505050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6110f1848484610673565b6001600160a01b0383163b156106985761110d84848484611264565b610698576040516368d2bf6b60e11b815260040160405180910390fd5b6060600061113783611350565b600101905060008167ffffffffffffffff8111156111575761115761155b565b6040519080825280601f01601f191660200182016040528015611181576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461118b57509392505050565b60006111c88361071f565b9050811561120757336001600160a01b03821614611207576111ea8133610a9e565b611207576040516367d9dca160e11b815260040160405180910390fd5b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611299903390899088908890600401611a45565b6020604051808303816000875af19250505080156112d4575060408051601f3d908101601f191682019092526112d191810190611a82565b60015b611332573d808015611302576040519150601f19603f3d011682016040523d82523d6000602084013e611307565b606091505b50805160000361132a576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061138f5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106113bb576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106113d957662386f26fc10000830492506010015b6305f5e10083106113f1576305f5e100830492506008015b612710831061140557612710830492506004015b60648310611417576064830492506002015b600a831061057e5760010192915050565b6001600160e01b0319811681146106df57600080fd5b60006020828403121561145057600080fd5b813561145b81611428565b9392505050565b60005b8381101561147d578181015183820152602001611465565b50506000910152565b6000815180845261149e816020860160208601611462565b601f01601f19169290920160200192915050565b60208152600061145b6020830184611486565b6000602082840312156114d757600080fd5b5035919050565b80356001600160a01b0381168114610f0c57600080fd5b6000806040838503121561150857600080fd5b611511836114de565b946020939093013593505050565b60008060006060848603121561153457600080fd5b61153d846114de565b925061154b602085016114de565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561158c5761158c61155b565b604051601f8501601f19908116603f011681019082821181831017156115b4576115b461155b565b816040528093508581528686860111156115cd57600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156115f957600080fd5b813567ffffffffffffffff81111561161057600080fd5b8201601f8101841361162157600080fd5b61134884823560208401611571565b60006020828403121561164257600080fd5b61145b826114de565b80151581146106df57600080fd5b6000806040838503121561166c57600080fd5b611675836114de565b915060208301356116858161164b565b809150509250929050565b600080600080608085870312156116a657600080fd5b6116af856114de565b93506116bd602086016114de565b925060408501359150606085013567ffffffffffffffff8111156116e057600080fd5b8501601f810187136116f157600080fd5b61170087823560208401611571565b91505092959194509250565b60008083601f84011261171e57600080fd5b50813567ffffffffffffffff81111561173657600080fd5b6020830191508360208260051b850101111561175157600080fd5b9250929050565b6000806000806040858703121561176e57600080fd5b843567ffffffffffffffff8082111561178657600080fd5b6117928883890161170c565b909650945060208701359150808211156117ab57600080fd5b506117b88782880161170c565b95989497509550505050565b600080604083850312156117d757600080fd5b6117e0836114de565b91506117ee602084016114de565b90509250929050565b6000806040838503121561180a57600080fd5b823591506117ee602084016114de565b600181811c9082168061182e57607f821691505b60208210810361184e57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561066e57600081815260208120601f850160051c8101602086101561187b5750805b601f850160051c820191505b81811015610e2157828155600101611887565b815167ffffffffffffffff8111156118b4576118b461155b565b6118c8816118c2845461181a565b84611854565b602080601f8311600181146118fd57600084156118e55750858301515b600019600386901b1c1916600185901b178555610e21565b600085815260208120601f198616915b8281101561192c5788860151825594840194600190910190840161190d565b508582101561194a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008084546119688161181a565b600182811680156119805760018114611995576119c4565b60ff19841687528215158302870194506119c4565b8860005260208060002060005b858110156119bb5781548a8201529084019082016119a2565b50505082870194505b5050505083516119d8818360208801611462565b64173539b7b760d91b9101908152600501949350505050565b634e487b7160e01b600052603260045260246000fd5b8082018082111561057e57634e487b7160e01b600052601160045260246000fd5b600060208284031215611a3a57600080fd5b815161145b8161164b565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611a7890830184611486565b9695505050505050565b600060208284031215611a9457600080fd5b815161145b8161142856fea264697066735822122081a4131b910d476751e354934d62c515b39dd36df330a75b63df28e32bf4fc5864736f6c63430008110033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
Deployed Bytecode
0x6080604052600436106101cd5760003560e01c8063715018a6116100f7578063b88d4fde11610095578063e985e9c511610064578063e985e9c5146104bd578063efbd73f4146104dd578063f2fde38b146104fd578063f43a22dc1461051d57600080fd5b8063b88d4fde14610455578063c87b56dd14610468578063de53f38a14610488578063de8b51e1146104a857600080fd5b806395d89b41116100d157806395d89b41146103f7578063a035b1fe1461040c578063a0712d6814610422578063a22cb4651461043557600080fd5b8063715018a6146103a45780638da5cb5b146103b957806391b7f5ed146103d757600080fd5b80633ccfd60b1161016f5780636352211e1161013e5780636352211e1461033557806368428a1b146103555780636c0360eb1461036f57806370a082311461038457600080fd5b80633ccfd60b146102cb57806341f43434146102e057806342842e0e1461030257806355f804b31461031557600080fd5b8063095ea7b3116101ab578063095ea7b31461026157806318160ddd1461027657806323b872dd146102a257806332cb6b0c146102b557600080fd5b806301ffc9a7146101d257806306fdde0314610207578063081812fc14610229575b600080fd5b3480156101de57600080fd5b506101f26101ed36600461143e565b610532565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061021c610584565b6040516101fe91906114b2565b34801561023557600080fd5b506102496102443660046114c5565b610616565b6040516001600160a01b0390911681526020016101fe565b61027461026f3660046114f5565b61065a565b005b34801561028257600080fd5b50610294600154600054036000190190565b6040519081526020016101fe565b6102746102b036600461151f565b610673565b3480156102c157600080fd5b506102946101f481565b3480156102d757600080fd5b5061027461069e565b3480156102ec57600080fd5b506102496daaeb6d7670e522a718067333cd4e81565b61027461031036600461151f565b6106e2565b34801561032157600080fd5b506102746103303660046115e7565b610707565b34801561034157600080fd5b506102496103503660046114c5565b61071f565b34801561036157600080fd5b50600b546101f29060ff1681565b34801561037b57600080fd5b5061021c61072a565b34801561039057600080fd5b5061029461039f366004611630565b6107b8565b3480156103b057600080fd5b50610274610807565b3480156103c557600080fd5b506008546001600160a01b0316610249565b3480156103e357600080fd5b506102746103f23660046114c5565b61081b565b34801561040357600080fd5b5061021c610828565b34801561041857600080fd5b50610294600a5481565b6102746104303660046114c5565b610837565b34801561044157600080fd5b50610274610450366004611659565b6108ff565b610274610463366004611690565b610913565b34801561047457600080fd5b5061021c6104833660046114c5565b610940565b34801561049457600080fd5b506102746104a3366004611758565b61099a565b3480156104b457600080fd5b50610274610a82565b3480156104c957600080fd5b506101f26104d83660046117c4565b610a9e565b3480156104e957600080fd5b506102746104f83660046117f7565b610acc565b34801561050957600080fd5b50610274610518366004611630565b610b1b565b34801561052957600080fd5b50610294600381565b60006301ffc9a760e01b6001600160e01b03198316148061056357506380ac58cd60e01b6001600160e01b03198316145b8061057e5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546105939061181a565b80601f01602080910402602001604051908101604052809291908181526020018280546105bf9061181a565b801561060c5780601f106105e15761010080835404028352916020019161060c565b820191906000526020600020905b8154815290600101906020018083116105ef57829003601f168201915b5050505050905090565b600061062182610b96565b61063e576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b8161066481610bcb565b61066e8383610c84565b505050565b826001600160a01b038116331461068d5761068d33610bcb565b610698848484610c90565b50505050565b6106a6610e29565b6008546040516001600160a01b03909116904780156108fc02916000818181858888f193505050501580156106df573d6000803e3d6000fd5b50565b826001600160a01b03811633146106fc576106fc33610bcb565b610698848484610e83565b61070f610e29565b600961071b828261189a565b5050565b600061057e82610e9e565b600980546107379061181a565b80601f01602080910402602001604051908101604052809291908181526020018280546107639061181a565b80156107b05780601f10610785576101008083540402835291602001916107b0565b820191906000526020600020905b81548152906001019060200180831161079357829003601f168201915b505050505081565b60006001600160a01b0382166107e1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b61080f610e29565b6108196000610f2a565b565b610823610e29565b600a55565b6060600380546105939061181a565b600b5460ff1661085a57604051630d0ca57160e21b815260040160405180910390fd5b33321461087a57604051636844047f60e01b815260040160405180910390fd5b600381111561089c5760405163162908e360e11b815260040160405180910390fd5b6101f46108b0600154600054036000190190565b820111156108d157604051632d573a5560e01b815260040160405180910390fd5b600a54810234146108f557604051632a9ffab760e21b815260040160405180910390fd5b6106df3382610f7c565b8161090981610bcb565b61066e838361107a565b836001600160a01b038116331461092d5761092d33610bcb565b610939858585856110e6565b5050505050565b606061094b82610b96565b6109685760405163c1ab6dc160e01b815260040160405180910390fd5b60096109738361112a565b60405160200161098492919061195a565b6040516020818303038152906040529050919050565b6109a2610e29565b8281146109c25760405163aa81c86160e01b815260040160405180910390fd5b60005b63ffffffff8116841115610939576101f483838363ffffffff168181106109ee576109ee6119f1565b90506020020135610a06600154600054036000190190565b011115610a2657604051632d573a5560e01b815260040160405180910390fd5b610a7a85858363ffffffff16818110610a4157610a416119f1565b9050602002016020810190610a569190611630565b84848463ffffffff16818110610a6e57610a6e6119f1565b90506020020135610f7c565b6001016109c5565b610a8a610e29565b600b805460ff19811660ff90911615179055565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610ad4610e29565b6101f4610ae8600154600054036000190190565b610af29084611a07565b1115610b1157604051632d573a5560e01b815260040160405180910390fd5b61071b8183610f7c565b610b23610e29565b6001600160a01b038116610b8d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6106df81610f2a565b600081600111158015610baa575060005482105b801561057e575050600090815260046020526040902054600160e01b161590565b6daaeb6d7670e522a718067333cd4e3b156106df57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610c38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5c9190611a28565b6106df57604051633b79c77360e21b81526001600160a01b0382166004820152602401610b84565b61071b828260016111bd565b6000610c9b82610e9e565b9050836001600160a01b0316816001600160a01b031614610cce5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610d1b57610cfe8633610a9e565b610d1b57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610d4257604051633a954ecd60e21b815260040160405180910390fd5b8015610d4d57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610ddf57600184016000818152600460205260408120549003610ddd576000548114610ddd5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6008546001600160a01b031633146108195760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b84565b61066e83838360405180602001604052806000815250610913565b600081600111610f11575060008181526004602052604081205490600160e01b82169003610f115780600003610f0c576000548210610ef057604051636f96cda160e11b815260040160405180910390fd5b5b50600019016000818152600460205260409020548015610ef1575b919050565b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000805490829003610fa15760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461105057808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611018565b508160000361107157604051622e076360e81b815260040160405180910390fd5b60005550505050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6110f1848484610673565b6001600160a01b0383163b156106985761110d84848484611264565b610698576040516368d2bf6b60e11b815260040160405180910390fd5b6060600061113783611350565b600101905060008167ffffffffffffffff8111156111575761115761155b565b6040519080825280601f01601f191660200182016040528015611181576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461118b57509392505050565b60006111c88361071f565b9050811561120757336001600160a01b03821614611207576111ea8133610a9e565b611207576040516367d9dca160e11b815260040160405180910390fd5b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611299903390899088908890600401611a45565b6020604051808303816000875af19250505080156112d4575060408051601f3d908101601f191682019092526112d191810190611a82565b60015b611332573d808015611302576040519150601f19603f3d011682016040523d82523d6000602084013e611307565b606091505b50805160000361132a576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061138f5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106113bb576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106113d957662386f26fc10000830492506010015b6305f5e10083106113f1576305f5e100830492506008015b612710831061140557612710830492506004015b60648310611417576064830492506002015b600a831061057e5760010192915050565b6001600160e01b0319811681146106df57600080fd5b60006020828403121561145057600080fd5b813561145b81611428565b9392505050565b60005b8381101561147d578181015183820152602001611465565b50506000910152565b6000815180845261149e816020860160208601611462565b601f01601f19169290920160200192915050565b60208152600061145b6020830184611486565b6000602082840312156114d757600080fd5b5035919050565b80356001600160a01b0381168114610f0c57600080fd5b6000806040838503121561150857600080fd5b611511836114de565b946020939093013593505050565b60008060006060848603121561153457600080fd5b61153d846114de565b925061154b602085016114de565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561158c5761158c61155b565b604051601f8501601f19908116603f011681019082821181831017156115b4576115b461155b565b816040528093508581528686860111156115cd57600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156115f957600080fd5b813567ffffffffffffffff81111561161057600080fd5b8201601f8101841361162157600080fd5b61134884823560208401611571565b60006020828403121561164257600080fd5b61145b826114de565b80151581146106df57600080fd5b6000806040838503121561166c57600080fd5b611675836114de565b915060208301356116858161164b565b809150509250929050565b600080600080608085870312156116a657600080fd5b6116af856114de565b93506116bd602086016114de565b925060408501359150606085013567ffffffffffffffff8111156116e057600080fd5b8501601f810187136116f157600080fd5b61170087823560208401611571565b91505092959194509250565b60008083601f84011261171e57600080fd5b50813567ffffffffffffffff81111561173657600080fd5b6020830191508360208260051b850101111561175157600080fd5b9250929050565b6000806000806040858703121561176e57600080fd5b843567ffffffffffffffff8082111561178657600080fd5b6117928883890161170c565b909650945060208701359150808211156117ab57600080fd5b506117b88782880161170c565b95989497509550505050565b600080604083850312156117d757600080fd5b6117e0836114de565b91506117ee602084016114de565b90509250929050565b6000806040838503121561180a57600080fd5b823591506117ee602084016114de565b600181811c9082168061182e57607f821691505b60208210810361184e57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561066e57600081815260208120601f850160051c8101602086101561187b5750805b601f850160051c820191505b81811015610e2157828155600101611887565b815167ffffffffffffffff8111156118b4576118b461155b565b6118c8816118c2845461181a565b84611854565b602080601f8311600181146118fd57600084156118e55750858301515b600019600386901b1c1916600185901b178555610e21565b600085815260208120601f198616915b8281101561192c5788860151825594840194600190910190840161190d565b508582101561194a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008084546119688161181a565b600182811680156119805760018114611995576119c4565b60ff19841687528215158302870194506119c4565b8860005260208060002060005b858110156119bb5781548a8201529084019082016119a2565b50505082870194505b5050505083516119d8818360208801611462565b64173539b7b760d91b9101908152600501949350505050565b634e487b7160e01b600052603260045260246000fd5b8082018082111561057e57634e487b7160e01b600052601160045260246000fd5b600060208284031215611a3a57600080fd5b815161145b8161164b565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611a7890830184611486565b9695505050505050565b600060208284031215611a9457600080fd5b815161145b8161142856fea264697066735822122081a4131b910d476751e354934d62c515b39dd36df330a75b63df28e32bf4fc5864736f6c63430008110033
Deployed Bytecode Sourcemap
77383:3245:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24076:639;;;;;;;;;;-1:-1:-1;24076:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;24076:639:0;;;;;;;;24978:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;31378:218::-;;;;;;;;;;-1:-1:-1;31378:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;31378:218:0;1533:203:1;79911:159:0;;;;;;:::i;:::-;;:::i;:::-;;20729:323;;;;;;;;;;;;79106:1;21003:12;20790:7;20987:13;:28;-1:-1:-1;;20987:46:0;;20729:323;;;;2324:25:1;;;2312:2;2297:18;20729:323:0;2178:177:1;80076:165:0;;;;;;:::i;:::-;;:::i;77766:40::-;;;;;;;;;;;;77803:3;77766:40;;79293:100;;;;;;;;;;;;;:::i;3050:143::-;;;;;;;;;;;;3150:42;3050:143;;80247:173;;;;;;:::i;:::-;;:::i;79399:100::-;;;;;;;;;;-1:-1:-1;79399:100:0;;;;;:::i;:::-;;:::i;26371:152::-;;;;;;;;;;-1:-1:-1;26371:152:0;;;;;:::i;:::-;;:::i;77856:30::-;;;;;;;;;;-1:-1:-1;77856:30:0;;;;;;;;77699:21;;;;;;;;;;;;;:::i;21913:233::-;;;;;;;;;;-1:-1:-1;21913:233:0;;;;;:::i;:::-;;:::i;61196:103::-;;;;;;;;;;;;;:::i;60548:87::-;;;;;;;;;;-1:-1:-1;60621:6:0;;-1:-1:-1;;;;;60621:6:0;60548:87;;79207:80;;;;;;;;;;-1:-1:-1;79207:80:0;;;;;:::i;:::-;;:::i;25154:104::-;;;;;;;;;;;;;:::i;77727:34::-;;;;;;;;;;;;;;;;77984:425;;;;;;:::i;:::-;;:::i;79735:170::-;;;;;;;;;;-1:-1:-1;79735:170:0;;;;;:::i;:::-;;:::i;80426:197::-;;;;;;:::i;:::-;;:::i;79505:224::-;;;;;;;;;;-1:-1:-1;79505:224:0;;;;;:::i;:::-;;:::i;78609:403::-;;;;;;;;;;-1:-1:-1;78609:403:0;;;;;:::i;:::-;;:::i;79119:82::-;;;;;;;;;;;;;:::i;32327:164::-;;;;;;;;;;-1:-1:-1;32327:164:0;;;;;:::i;:::-;;:::i;78415:188::-;;;;;;;;;;-1:-1:-1;78415:188:0;;;;;:::i;:::-;;:::i;61454:201::-;;;;;;;;;;-1:-1:-1;61454:201:0;;;;;:::i;:::-;;:::i;77811:38::-;;;;;;;;;;;;77848:1;77811:38;;24076:639;24161:4;-1:-1:-1;;;;;;;;;24485:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;24562:25:0;;;24485:102;:179;;;-1:-1:-1;;;;;;;;;;24639:25:0;;;24485:179;24465:199;24076:639;-1:-1:-1;;24076:639:0:o;24978:100::-;25032:13;25065:5;25058:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24978:100;:::o;31378:218::-;31454:7;31479:16;31487:7;31479;:16::i;:::-;31474:64;;31504:34;;-1:-1:-1;;;31504:34:0;;;;;;;;;;;31474:64;-1:-1:-1;31558:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;31558:30:0;;31378:218::o;79911:159::-;80015:8;4571:30;4592:8;4571:20;:30::i;:::-;80032:32:::1;80046:8;80056:7;80032:13;:32::i;:::-;79911:159:::0;;;:::o;80076:165::-;80185:4;-1:-1:-1;;;;;4391:18:0;;4399:10;4391:18;4387:83;;4426:32;4447:10;4426:20;:32::i;:::-;80198:37:::1;80217:4;80223:2;80227:7;80198:18;:37::i;:::-;80076:165:::0;;;;:::o;79293:100::-;60434:13;:11;:13::i;:::-;60621:6;;79339:48:::1;::::0;-1:-1:-1;;;;;60621:6:0;;;;79365:21:::1;79339:48:::0;::::1;;;::::0;::::1;::::0;;;79365:21;60621:6;79339:48;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;79293:100::o:0;80247:173::-;80360:4;-1:-1:-1;;;;;4391:18:0;;4399:10;4391:18;4387:83;;4426:32;4447:10;4426:20;:32::i;:::-;80373:41:::1;80396:4;80402:2;80406:7;80373:22;:41::i;79399:100::-:0;60434:13;:11;:13::i;:::-;79472:7:::1;:21;79482:11:::0;79472:7;:21:::1;:::i;:::-;;79399:100:::0;:::o;26371:152::-;26443:7;26486:27;26505:7;26486:18;:27::i;77699:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;21913:233::-;21985:7;-1:-1:-1;;;;;22009:19:0;;22005:60;;22037:28;;-1:-1:-1;;;22037:28:0;;;;;;;;;;;22005:60;-1:-1:-1;;;;;;22083:25:0;;;;;:18;:25;;;;;;16072:13;22083:55;;21913:233::o;61196:103::-;60434:13;:11;:13::i;:::-;61261:30:::1;61288:1;61261:18;:30::i;:::-;61196:103::o:0;79207:80::-;60434:13;:11;:13::i;:::-;79267:5:::1;:14:::0;79207:80::o;25154:104::-;25210:13;25243:7;25236:14;;;;;:::i;77984:425::-;78046:10;;;;78041:38;;78065:14;;-1:-1:-1;;;78065:14:0;;;;;;;;;;;78041:38;78090:10;78104:9;78090:23;78086:52;;78122:16;;-1:-1:-1;;;78122:16:0;;;;;;;;;;;78086:52;77848:1;78149:11;:24;78145:52;;;78182:15;;-1:-1:-1;;;78182:15:0;;;;;;;;;;;78145:52;77803:3;78241:13;79106:1;21003:12;20790:7;20987:13;:28;-1:-1:-1;;20987:46:0;;20729:323;78241:13;78227:11;:27;:40;78223:68;;;78276:15;;-1:-1:-1;;;78276:15:0;;;;;;;;;;;78223:68;78331:5;;78317:11;:19;78304:9;:32;78300:59;;78345:14;;-1:-1:-1;;;78345:14:0;;;;;;;;;;;78300:59;78373:30;78379:10;78391:11;78373:5;:30::i;79735:170::-;79839:8;4571:30;4592:8;4571:20;:30::i;:::-;79856:43:::1;79880:8;79890;79856:23;:43::i;80426:197::-:0;80558:4;-1:-1:-1;;;;;4391:18:0;;4399:10;4391:18;4387:83;;4426:32;4447:10;4426:20;:32::i;:::-;80570:47:::1;80593:4;80599:2;80603:7;80612:4;80570:22;:47::i;:::-;80426:197:::0;;;;;:::o;79505:224::-;79579:13;79606:17;79614:8;79606:7;:17::i;:::-;79601:45;;79632:14;;-1:-1:-1;;;79632:14:0;;;;;;;;;;;79601:45;79684:7;79693:19;:8;:17;:19::i;:::-;79667:55;;;;;;;;;:::i;:::-;;;;;;;;;;;;;79653:70;;79505:224;;;:::o;78609:403::-;60434:13;:11;:13::i;:::-;78730:36;;::::1;78726:68;;78775:19;;-1:-1:-1::0;;;78775:19:0::1;;;;;;;;;;;78726:68;78825:8;78820:180;78839:21;::::0;::::1;::::0;-1:-1:-1;78820:180:0::1;;;77803:3;78898:8;;78907:1;78898:11;;;;;;;;;:::i;:::-;;;;;;;78882:13;79106:1:::0;21003:12;20790:7;20987:13;:28;-1:-1:-1;;20987:46:0;;20729:323;78882:13:::1;:27;:40;78878:68;;;78931:15;;-1:-1:-1::0;;;78931:15:0::1;;;;;;;;;;;78878:68;78957:33;78963:10;;78974:1;78963:13;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;78978:8;;78987:1;78978:11;;;;;;;;;:::i;:::-;;;;;;;78957:5;:33::i;:::-;78862:3;;78820:180;;79119:82:::0;60434:13;:11;:13::i;:::-;79185:10:::1;::::0;;-1:-1:-1;;79171:24:0;::::1;79185:10;::::0;;::::1;79184:11;79171:24;::::0;;79119:82::o;32327:164::-;-1:-1:-1;;;;;32448:25:0;;;32424:4;32448:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;32327:164::o;78415:188::-;60434:13;:11;:13::i;:::-;77803:3:::1;78517:13;79106:1:::0;21003:12;20790:7;20987:13;:28;-1:-1:-1;;20987:46:0;;20729:323;78517:13:::1;78503:27;::::0;:11;:27:::1;:::i;:::-;:40;78499:68;;;78552:15;;-1:-1:-1::0;;;78552:15:0::1;;;;;;;;;;;78499:68;78574:23;78580:3;78585:11;78574:5;:23::i;61454:201::-:0;60434:13;:11;:13::i;:::-;-1:-1:-1;;;;;61543:22:0;::::1;61535:73;;;::::0;-1:-1:-1;;;61535:73:0;;11479:2:1;61535:73:0::1;::::0;::::1;11461:21:1::0;11518:2;11498:18;;;11491:30;11557:34;11537:18;;;11530:62;-1:-1:-1;;;11608:18:1;;;11601:36;11654:19;;61535:73:0::1;;;;;;;;;61619:28;61638:8;61619:18;:28::i;32749:282::-:0;32814:4;32870:7;79106:1;32851:26;;:66;;;;;32904:13;;32894:7;:23;32851:66;:153;;;;-1:-1:-1;;32955:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;32955:44:0;:49;;32749:282::o;4629:419::-;3150:42;4820:45;:49;4816:225;;4891:67;;-1:-1:-1;;;4891:67:0;;4942:4;4891:67;;;11896:34:1;-1:-1:-1;;;;;11966:15:1;;11946:18;;;11939:43;3150:42:0;;4891;;11831:18:1;;4891:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4886:144;;4986:28;;-1:-1:-1;;;4986:28:0;;-1:-1:-1;;;;;1697:32:1;;4986:28:0;;;1679:51:1;1652:18;;4986:28:0;1533:203:1;31095:124:0;31184:27;31193:2;31197:7;31206:4;31184:8;:27::i;35017:2825::-;35159:27;35189;35208:7;35189:18;:27::i;:::-;35159:57;;35274:4;-1:-1:-1;;;;;35233:45:0;35249:19;-1:-1:-1;;;;;35233:45:0;;35229:86;;35287:28;;-1:-1:-1;;;35287:28:0;;;;;;;;;;;35229:86;35329:27;34125:24;;;:15;:24;;;;;34353:26;;56442:10;33750:30;;;-1:-1:-1;;;;;33443:28:0;;33728:20;;;33725:56;35515:180;;35608:43;35625:4;56442:10;32327:164;:::i;35608:43::-;35603:92;;35660:35;;-1:-1:-1;;;35660:35:0;;;;;;;;;;;35603:92;-1:-1:-1;;;;;35712:16:0;;35708:52;;35737:23;;-1:-1:-1;;;35737:23:0;;;;;;;;;;;35708:52;35909:15;35906:160;;;36049:1;36028:19;36021:30;35906:160;-1:-1:-1;;;;;36446:24:0;;;;;;;:18;:24;;;;;;36444:26;;-1:-1:-1;;36444:26:0;;;36515:22;;;;;;;;;36513:24;;-1:-1:-1;36513:24:0;;;30197:11;30172:23;30168:41;30155:63;-1:-1:-1;;;30155:63:0;36808:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;37103:47:0;;:52;;37099:627;;37208:1;37198:11;;37176:19;37331:30;;;:17;:30;;;;;;:35;;37327:384;;37469:13;;37454:11;:28;37450:242;;37616:30;;;;:17;:30;;;;;:52;;;37450:242;37157:569;37099:627;37773:7;37769:2;-1:-1:-1;;;;;37754:27:0;37763:4;-1:-1:-1;;;;;37754:27:0;;;;;;;;;;;37792:42;35148:2694;;;35017:2825;;;:::o;60713:132::-;60621:6;;-1:-1:-1;;;;;60621:6:0;56442:10;60777:23;60769:68;;;;-1:-1:-1;;;60769:68:0;;12445:2:1;60769:68:0;;;12427:21:1;;;12464:18;;;12457:30;12523:34;12503:18;;;12496:62;12575:18;;60769:68:0;12243:356:1;37938:193:0;38084:39;38101:4;38107:2;38111:7;38084:39;;;;;;;;;;;;:16;:39::i;27526:1712::-;27593:14;27643:7;79106:1;27624:26;27620:1562;;-1:-1:-1;27676:26:0;;;;:17;:26;;;;;;;-1:-1:-1;;;27752:24:0;;:29;;27748:1423;;27891:6;27901:1;27891:11;27887:981;;27942:13;;27931:7;:24;27927:68;;27964:31;;-1:-1:-1;;;27964:31:0;;;;;;;;;;;27927:68;28592:257;-1:-1:-1;;;28696:9:0;28678:28;;;;:17;:28;;;;;;28760:25;;28592:257;28760:25;;27526:1712;;;:::o;27748:1423::-;29199:31;;-1:-1:-1;;;29199:31:0;;;;;;;;;;;61815:191;61908:6;;;-1:-1:-1;;;;;61925:17:0;;;-1:-1:-1;;;;;;61925:17:0;;;;;;;61958:40;;61908:6;;;61925:17;61908:6;;61958:40;;61889:16;;61958:40;61878:128;61815:191;:::o;42398:2966::-;42471:20;42494:13;;;42522;;;42518:44;;42544:18;;-1:-1:-1;;;42544:18:0;;;;;;;;;;;42518:44;-1:-1:-1;;;;;43050:22:0;;;;;;:18;:22;;;;16210:2;43050:22;;;:71;;43088:32;43076:45;;43050:71;;;43364:31;;;:17;:31;;;;;-1:-1:-1;30628:15:0;;30602:24;30598:46;30197:11;30172:23;30168:41;30165:52;30155:63;;43364:173;;43599:23;;;;43364:31;;43050:22;;44364:25;43050:22;;44217:335;44878:1;44864:12;44860:20;44818:346;44919:3;44910:7;44907:16;44818:346;;45137:7;45127:8;45124:1;45097:25;45094:1;45091;45086:59;44972:1;44959:15;44818:346;;;44822:77;45197:8;45209:1;45197:13;45193:45;;45219:19;;-1:-1:-1;;;45219:19:0;;;;;;;;;;;45193:45;45255:13;:19;-1:-1:-1;79911:159:0;;;:::o;31936:234::-;56442:10;32031:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;32031:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;32031:60:0;;;;;;;;;;32107:55;;540:41:1;;;32031:49:0;;56442:10;32107:55;;513:18:1;32107:55:0;;;;;;;31936:234;;:::o;38729:407::-;38904:31;38917:4;38923:2;38927:7;38904:12;:31::i;:::-;-1:-1:-1;;;;;38950:14:0;;;:19;38946:183;;38989:56;39020:4;39026:2;39030:7;39039:5;38989:30;:56::i;:::-;38984:145;;39073:40;;-1:-1:-1;;;39073:40:0;;;;;;;;;;;75424:716;75480:13;75531:14;75548:17;75559:5;75548:10;:17::i;:::-;75568:1;75548:21;75531:38;;75584:20;75618:6;75607:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;75607:18:0;-1:-1:-1;75584:41:0;-1:-1:-1;75749:28:0;;;75765:2;75749:28;75806:288;-1:-1:-1;;75838:5:0;-1:-1:-1;;;75975:2:0;75964:14;;75959:30;75838:5;75946:44;76036:2;76027:11;;;-1:-1:-1;76057:21:0;75806:288;76057:21;-1:-1:-1;76115:6:0;75424:716;-1:-1:-1;;;75424:716:0:o;49807:492::-;49936:13;49952:16;49960:7;49952;:16::i;:::-;49936:32;;49985:13;49981:219;;;56442:10;-1:-1:-1;;;;;50017:28:0;;;50013:187;;50069:44;50086:5;56442:10;32327:164;:::i;50069:44::-;50064:136;;50145:35;;-1:-1:-1;;;50145:35:0;;;;;;;;;;;50064:136;50212:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;50212:35:0;-1:-1:-1;;;;;50212:35:0;;;;;;;;;50263:28;;50212:24;;50263:28;;;;;;;49925:374;49807:492;;;:::o;41220:716::-;41404:88;;-1:-1:-1;;;41404:88:0;;41383:4;;-1:-1:-1;;;;;41404:45:0;;;;;:88;;56442:10;;41471:4;;41477:7;;41486:5;;41404:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41404:88:0;;;;;;;;-1:-1:-1;;41404:88:0;;;;;;;;;;;;:::i;:::-;;;41400:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41687:6;:13;41704:1;41687:18;41683:235;;41733:40;;-1:-1:-1;;;41733:40:0;;;;;;;;;;;41683:235;41876:6;41870:13;41861:6;41857:2;41853:15;41846:38;41400:529;-1:-1:-1;;;;;;41563:64:0;-1:-1:-1;;;41563:64:0;;-1:-1:-1;41400:529:0;41220:716;;;;;;:::o;72237:922::-;72290:7;;-1:-1:-1;;;72368:15:0;;72364:102;;-1:-1:-1;;;72404:15:0;;;-1:-1:-1;72448:2:0;72438:12;72364:102;72493:6;72484:5;:15;72480:102;;72529:6;72520:15;;;-1:-1:-1;72564:2:0;72554:12;72480:102;72609:6;72600:5;:15;72596:102;;72645:6;72636:15;;;-1:-1:-1;72680:2:0;72670:12;72596:102;72725:5;72716;:14;72712:99;;72760:5;72751:14;;;-1:-1:-1;72794:1:0;72784:11;72712:99;72838:5;72829;:14;72825:99;;72873:5;72864:14;;;-1:-1:-1;72907:1:0;72897:11;72825:99;72951:5;72942;:14;72938:99;;72986:5;72977:14;;;-1:-1:-1;73020:1:0;73010:11;72938:99;73064:5;73055;:14;73051:66;;73100:1;73090:11;73145:6;72237:922;-1:-1:-1;;72237:922:0:o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;:::-;384:5;150:245;-1:-1:-1;;;150:245:1:o;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1919:254;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2360:328::-;2437:6;2445;2453;2506:2;2494:9;2485:7;2481:23;2477:32;2474:52;;;2522:1;2519;2512:12;2474:52;2545:29;2564:9;2545:29;:::i;:::-;2535:39;;2593:38;2627:2;2616:9;2612:18;2593:38;:::i;:::-;2583:48;;2678:2;2667:9;2663:18;2650:32;2640:42;;2360:328;;;;;:::o;2932:127::-;2993:10;2988:3;2984:20;2981:1;2974:31;3024:4;3021:1;3014:15;3048:4;3045:1;3038:15;3064:632;3129:5;3159:18;3200:2;3192:6;3189:14;3186:40;;;3206:18;;:::i;:::-;3281:2;3275:9;3249:2;3335:15;;-1:-1:-1;;3331:24:1;;;3357:2;3327:33;3323:42;3311:55;;;3381:18;;;3401:22;;;3378:46;3375:72;;;3427:18;;:::i;:::-;3467:10;3463:2;3456:22;3496:6;3487:15;;3526:6;3518;3511:22;3566:3;3557:6;3552:3;3548:16;3545:25;3542:45;;;3583:1;3580;3573:12;3542:45;3633:6;3628:3;3621:4;3613:6;3609:17;3596:44;3688:1;3681:4;3672:6;3664;3660:19;3656:30;3649:41;;;;3064:632;;;;;:::o;3701:451::-;3770:6;3823:2;3811:9;3802:7;3798:23;3794:32;3791:52;;;3839:1;3836;3829:12;3791:52;3879:9;3866:23;3912:18;3904:6;3901:30;3898:50;;;3944:1;3941;3934:12;3898:50;3967:22;;4020:4;4012:13;;4008:27;-1:-1:-1;3998:55:1;;4049:1;4046;4039:12;3998:55;4072:74;4138:7;4133:2;4120:16;4115:2;4111;4107:11;4072:74;:::i;4157:186::-;4216:6;4269:2;4257:9;4248:7;4244:23;4240:32;4237:52;;;4285:1;4282;4275:12;4237:52;4308:29;4327:9;4308:29;:::i;4348:118::-;4434:5;4427:13;4420:21;4413:5;4410:32;4400:60;;4456:1;4453;4446:12;4471:315;4536:6;4544;4597:2;4585:9;4576:7;4572:23;4568:32;4565:52;;;4613:1;4610;4603:12;4565:52;4636:29;4655:9;4636:29;:::i;:::-;4626:39;;4715:2;4704:9;4700:18;4687:32;4728:28;4750:5;4728:28;:::i;:::-;4775:5;4765:15;;;4471:315;;;;;:::o;4791:667::-;4886:6;4894;4902;4910;4963:3;4951:9;4942:7;4938:23;4934:33;4931:53;;;4980:1;4977;4970:12;4931:53;5003:29;5022:9;5003:29;:::i;:::-;4993:39;;5051:38;5085:2;5074:9;5070:18;5051:38;:::i;:::-;5041:48;;5136:2;5125:9;5121:18;5108:32;5098:42;;5191:2;5180:9;5176:18;5163:32;5218:18;5210:6;5207:30;5204:50;;;5250:1;5247;5240:12;5204:50;5273:22;;5326:4;5318:13;;5314:27;-1:-1:-1;5304:55:1;;5355:1;5352;5345:12;5304:55;5378:74;5444:7;5439:2;5426:16;5421:2;5417;5413:11;5378:74;:::i;:::-;5368:84;;;4791:667;;;;;;;:::o;5463:367::-;5526:8;5536:6;5590:3;5583:4;5575:6;5571:17;5567:27;5557:55;;5608:1;5605;5598:12;5557:55;-1:-1:-1;5631:20:1;;5674:18;5663:30;;5660:50;;;5706:1;5703;5696:12;5660:50;5743:4;5735:6;5731:17;5719:29;;5803:3;5796:4;5786:6;5783:1;5779:14;5771:6;5767:27;5763:38;5760:47;5757:67;;;5820:1;5817;5810:12;5757:67;5463:367;;;;;:::o;5835:773::-;5957:6;5965;5973;5981;6034:2;6022:9;6013:7;6009:23;6005:32;6002:52;;;6050:1;6047;6040:12;6002:52;6090:9;6077:23;6119:18;6160:2;6152:6;6149:14;6146:34;;;6176:1;6173;6166:12;6146:34;6215:70;6277:7;6268:6;6257:9;6253:22;6215:70;:::i;:::-;6304:8;;-1:-1:-1;6189:96:1;-1:-1:-1;6392:2:1;6377:18;;6364:32;;-1:-1:-1;6408:16:1;;;6405:36;;;6437:1;6434;6427:12;6405:36;;6476:72;6540:7;6529:8;6518:9;6514:24;6476:72;:::i;:::-;5835:773;;;;-1:-1:-1;6567:8:1;-1:-1:-1;;;;5835:773:1:o;6613:260::-;6681:6;6689;6742:2;6730:9;6721:7;6717:23;6713:32;6710:52;;;6758:1;6755;6748:12;6710:52;6781:29;6800:9;6781:29;:::i;:::-;6771:39;;6829:38;6863:2;6852:9;6848:18;6829:38;:::i;:::-;6819:48;;6613:260;;;;;:::o;6878:254::-;6946:6;6954;7007:2;6995:9;6986:7;6982:23;6978:32;6975:52;;;7023:1;7020;7013:12;6975:52;7059:9;7046:23;7036:33;;7088:38;7122:2;7111:9;7107:18;7088:38;:::i;7137:380::-;7216:1;7212:12;;;;7259;;;7280:61;;7334:4;7326:6;7322:17;7312:27;;7280:61;7387:2;7379:6;7376:14;7356:18;7353:38;7350:161;;7433:10;7428:3;7424:20;7421:1;7414:31;7468:4;7465:1;7458:15;7496:4;7493:1;7486:15;7350:161;;7137:380;;;:::o;7648:545::-;7750:2;7745:3;7742:11;7739:448;;;7786:1;7811:5;7807:2;7800:17;7856:4;7852:2;7842:19;7926:2;7914:10;7910:19;7907:1;7903:27;7897:4;7893:38;7962:4;7950:10;7947:20;7944:47;;;-1:-1:-1;7985:4:1;7944:47;8040:2;8035:3;8031:12;8028:1;8024:20;8018:4;8014:31;8004:41;;8095:82;8113:2;8106:5;8103:13;8095:82;;;8158:17;;;8139:1;8128:13;8095:82;;8369:1352;8495:3;8489:10;8522:18;8514:6;8511:30;8508:56;;;8544:18;;:::i;:::-;8573:97;8663:6;8623:38;8655:4;8649:11;8623:38;:::i;:::-;8617:4;8573:97;:::i;:::-;8725:4;;8789:2;8778:14;;8806:1;8801:663;;;;9508:1;9525:6;9522:89;;;-1:-1:-1;9577:19:1;;;9571:26;9522:89;-1:-1:-1;;8326:1:1;8322:11;;;8318:24;8314:29;8304:40;8350:1;8346:11;;;8301:57;9624:81;;8771:944;;8801:663;7595:1;7588:14;;;7632:4;7619:18;;-1:-1:-1;;8837:20:1;;;8955:236;8969:7;8966:1;8963:14;8955:236;;;9058:19;;;9052:26;9037:42;;9150:27;;;;9118:1;9106:14;;;;8985:19;;8955:236;;;8959:3;9219:6;9210:7;9207:19;9204:201;;;9280:19;;;9274:26;-1:-1:-1;;9363:1:1;9359:14;;;9375:3;9355:24;9351:37;9347:42;9332:58;9317:74;;9204:201;-1:-1:-1;;;;;9451:1:1;9435:14;;;9431:22;9418:36;;-1:-1:-1;8369:1352:1:o;9726:1187::-;10003:3;10032:1;10065:6;10059:13;10095:36;10121:9;10095:36;:::i;:::-;10150:1;10167:18;;;10194:133;;;;10341:1;10336:356;;;;10160:532;;10194:133;-1:-1:-1;;10227:24:1;;10215:37;;10300:14;;10293:22;10281:35;;10272:45;;;-1:-1:-1;10194:133:1;;10336:356;10367:6;10364:1;10357:17;10397:4;10442:2;10439:1;10429:16;10467:1;10481:165;10495:6;10492:1;10489:13;10481:165;;;10573:14;;10560:11;;;10553:35;10616:16;;;;10510:10;;10481:165;;;10485:3;;;10675:6;10670:3;10666:16;10659:23;;10160:532;;;;;10723:6;10717:13;10739:68;10798:8;10793:3;10786:4;10778:6;10774:17;10739:68;:::i;:::-;-1:-1:-1;;;10829:18:1;;10856:22;;;10905:1;10894:13;;9726:1187;-1:-1:-1;;;;9726:1187:1:o;10918:127::-;10979:10;10974:3;10970:20;10967:1;10960:31;11010:4;11007:1;11000:15;11034:4;11031:1;11024:15;11050:222;11115:9;;;11136:10;;;11133:133;;;11188:10;11183:3;11179:20;11176:1;11169:31;11223:4;11220:1;11213:15;11251:4;11248:1;11241:15;11993:245;12060:6;12113:2;12101:9;12092:7;12088:23;12084:32;12081:52;;;12129:1;12126;12119:12;12081:52;12161:9;12155:16;12180:28;12202:5;12180:28;:::i;12736:489::-;-1:-1:-1;;;;;13005:15:1;;;12987:34;;13057:15;;13052:2;13037:18;;13030:43;13104:2;13089:18;;13082:34;;;13152:3;13147:2;13132:18;;13125:31;;;12930:4;;13173:46;;13199:19;;13191:6;13173:46;:::i;:::-;13165:54;12736:489;-1:-1:-1;;;;;;12736:489:1:o;13230:249::-;13299:6;13352:2;13340:9;13331:7;13327:23;13323:32;13320:52;;;13368:1;13365;13358:12;13320:52;13400:9;13394:16;13419:30;13443:5;13419:30;:::i
Swarm Source
ipfs://81a4131b910d476751e354934d62c515b39dd36df330a75b63df28e32bf4fc58
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.