Overview
ETH Balance
0.0001 ETH
Eth Value
$0.35 (@ $3,472.33/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 3,551 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 16660615 | 674 days ago | IN | 0 ETH | 0.00195318 | ||||
Set Approval For... | 16361248 | 716 days ago | IN | 0 ETH | 0.00068023 | ||||
Set Approval For... | 15895086 | 781 days ago | IN | 0 ETH | 0.00070368 | ||||
Set Approval For... | 15795208 | 795 days ago | IN | 0 ETH | 0.00106104 | ||||
Set Approval For... | 15794998 | 795 days ago | IN | 0 ETH | 0.00106546 | ||||
Set Approval For... | 15786475 | 796 days ago | IN | 0 ETH | 0.00083568 | ||||
Set Approval For... | 15785800 | 796 days ago | IN | 0 ETH | 0.00115483 | ||||
Set Approval For... | 15783984 | 797 days ago | IN | 0 ETH | 0.00218483 | ||||
Set Approval For... | 15783983 | 797 days ago | IN | 0 ETH | 0.00206248 | ||||
Set Approval For... | 15441814 | 847 days ago | IN | 0 ETH | 0.00187939 | ||||
Set Approval For... | 15395138 | 854 days ago | IN | 0 ETH | 0.00029856 | ||||
Set Approval For... | 15382538 | 856 days ago | IN | 0 ETH | 0.00024065 | ||||
Safe Transfer Fr... | 15375560 | 857 days ago | IN | 0 ETH | 0.00060645 | ||||
Set Approval For... | 15356995 | 860 days ago | IN | 0 ETH | 0.00042003 | ||||
Set Approval For... | 15340028 | 863 days ago | IN | 0 ETH | 0.00046779 | ||||
Set Approval For... | 15329819 | 864 days ago | IN | 0 ETH | 0.00059362 | ||||
Set Approval For... | 15329784 | 864 days ago | IN | 0 ETH | 0.00096481 | ||||
Set Approval For... | 15329768 | 864 days ago | IN | 0 ETH | 0.0009744 | ||||
Set Approval For... | 15329742 | 864 days ago | IN | 0 ETH | 0.00167387 | ||||
Set Approval For... | 15329654 | 864 days ago | IN | 0 ETH | 0.00085328 | ||||
Safe Transfer Fr... | 15329627 | 864 days ago | IN | 0 ETH | 0.00067101 | ||||
Safe Transfer Fr... | 15329622 | 864 days ago | IN | 0 ETH | 0.00064415 | ||||
Safe Transfer Fr... | 15329615 | 864 days ago | IN | 0 ETH | 0.00063362 | ||||
Set Approval For... | 15324329 | 865 days ago | IN | 0 ETH | 0.00054749 | ||||
Set Approval For... | 15307156 | 868 days ago | IN | 0 ETH | 0.00023088 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
BeanedApeYachtClub
Compiler Version
v0.8.15+commit.e14f2714
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-08-05 */ // File: erc721a/contracts/IERC721A.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File: erc721a/contracts/ERC721A.sol // ERC721A Contracts v4.2.2 // 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 { // Reference type for token approval. struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 0x80 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 0x20 + 3 * 0x20 = 0x80. str := add(mload(0x40), 0x80) // Update the free memory pointer to allocate. mstore(0x40, str) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } // File: erc721a/contracts/extensions/IERC721AQueryable.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721AQueryable. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); } // File: erc721a/contracts/extensions/ERC721AQueryable.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @title ERC721AQueryable. * * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_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) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @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: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v4.7.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. It 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)`. // We also know that `k`, the position of the most significant bit, is such that `msb(a) = 2**k`. // This gives `2**k < a <= 2**(k+1)` → `2**(k/2) <= sqrt(a) < 2 ** (k/2+1)`. // Using an algorithm similar to the msb conmputation, we are able to compute `result = 2**(k/2)` which is a // good first aproximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1; uint256 x = a; if (x >> 128 > 0) { x >>= 128; result <<= 64; } if (x >> 64 > 0) { x >>= 64; result <<= 32; } if (x >> 32 > 0) { x >>= 32; result <<= 16; } if (x >> 16 > 0) { x >>= 16; result <<= 8; } if (x >> 8 > 0) { x >>= 8; result <<= 4; } if (x >> 4 > 0) { x >>= 4; result <<= 2; } if (x >> 2 > 0) { result <<= 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) { uint256 result = sqrt(a); if (rounding == Rounding.Up && result * result < a) { result += 1; } return result; } } // File: @openzeppelin/contracts/utils/Arrays.sol // OpenZeppelin Contracts v4.4.1 (utils/Arrays.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to array types. */ library Arrays { /** * @dev Searches a sorted `array` and returns the first index that contains * a value greater or equal to `element`. If no such index exists (i.e. all * values in the array are strictly less than `element`), the array length is * returned. Time complexity O(log n). * * `array` is expected to be sorted in ascending order, and to contain no * repeated elements. */ function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) { if (array.length == 0) { return 0; } uint256 low = 0; uint256 high = array.length; while (low < high) { uint256 mid = Math.average(low, high); // Note that mid will always be strictly less than high (i.e. it will be a valid array index) // because Math.average rounds down (it does integer division with truncation). if (array[mid] > element) { high = mid; } else { low = mid + 1; } } // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound. if (low > 0 && array[low - 1] == element) { return low - 1; } else { return low; } } } // File: @openzeppelin/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: @openzeppelin/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: @openzeppelin/contracts/security/ReentrancyGuard.sol // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File: contracts/BeanedApe.sol pragma solidity >=0.8.13 <0.9.0; contract BeanedApeYachtClub is ERC721A, Ownable, ReentrancyGuard { using Strings for uint256; // ================== Variables Start ======================= string public uri; string public uriSuffix = ".json"; uint256 public cost1 = 0 ether; uint256 public cost2 = 0.002 ether; uint256 public supplyLimit = 10000; uint256 public maxMintAmountPerTx = 3; uint256 public maxLimitPerWallet = 6; bool public sale = false; //bool public revealed = true; // ================== Variables End ======================= // ================== Constructor Start ======================= constructor( ) ERC721A("Beaned Ape Yacht Club", "BNAYC") {} // ================== Constructor End ======================= // ================== Mint Functions Start ======================= function UpdateCost(uint256 _supply) internal view returns (uint256 _cost) { if (_supply < 3000) { return cost1; } else { return cost2; } } function Mint(uint256 _mintAmount) public payable { //Dynamic Price uint256 supply = totalSupply(); // Normal requirements require(sale, 'The Sale is paused!'); require(_mintAmount > 0 && _mintAmount <= maxMintAmountPerTx, 'Invalid mint amount!'); require(totalSupply() + _mintAmount <= supplyLimit, 'Max supply exceeded!'); require(balanceOf(msg.sender) + _mintAmount <= maxLimitPerWallet, 'Max mint per wallet exceeded!'); require(msg.value >= UpdateCost(supply) * _mintAmount, 'Insufficient funds!'); // Mint _safeMint(_msgSender(), _mintAmount); } // ================== Mint Functions End ======================= // ================== Set Functions Start ======================= // uri function seturi(string memory _uri) public onlyOwner { uri = _uri; } function setUriSuffix(string memory _uriSuffix) public onlyOwner { uriSuffix = _uriSuffix; } // sales toggle function setSaleStatus(bool _sale) public onlyOwner { sale = _sale; } // max per tx function setMaxMintAmountPerTx(uint256 _maxMintAmountPerTx) public onlyOwner { maxMintAmountPerTx = _maxMintAmountPerTx; } // pax per wallet function setmaxLimitPerWallet(uint256 _maxLimitPerWallet) public onlyOwner { maxLimitPerWallet = _maxLimitPerWallet; } // price function setcost1(uint256 _cost1) public onlyOwner { cost1 = _cost1; } function setcost2(uint256 _cost2) public onlyOwner { cost2 = _cost2; } // supply limit function setsupplyLimit(uint256 _supplyLimit) public onlyOwner { supplyLimit = _supplyLimit; } // ================== Set Functions End ======================= // ================== Withdraw Function Start ======================= function withdraw() public onlyOwner nonReentrant { //owner withdraw (bool os, ) = payable(owner()).call{value: address(this).balance}(''); require(os); } // ================== Withdraw Function End======================= // ================== Read Functions Start ======================= function price() public view returns (uint256){ if (totalSupply() <3000) { return cost1; } else { return cost2; } } function tokensOfOwner(address owner) external view returns (uint256[] memory) { unchecked { uint256[] memory a = new uint256[](balanceOf(owner)); uint256 end = _nextTokenId(); uint256 tokenIdsIdx; address currOwnershipAddr; for (uint256 i; i < end; i++) { TokenOwnership memory ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { a[tokenIdsIdx++] = i; } } return a; } } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), 'ERC721Metadata: URI query for nonexistent token'); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, _tokenId.toString(), uriSuffix)) : ''; } function _baseURI() internal view virtual override returns (string memory) { return uri; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"Mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxLimitPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sale","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":"uint256","name":"_maxMintAmountPerTx","type":"uint256"}],"name":"setMaxMintAmountPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_sale","type":"bool"}],"name":"setSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost1","type":"uint256"}],"name":"setcost1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost2","type":"uint256"}],"name":"setcost2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxLimitPerWallet","type":"uint256"}],"name":"setmaxLimitPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supplyLimit","type":"uint256"}],"name":"setsupplyLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"seturi","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supplyLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040526005608090815264173539b7b760d91b60a052600b90620000269082620001e8565b506000600c5566071afd498d0000600d55612710600e556003600f5560066010556011805460ff191690553480156200005e57600080fd5b506040518060400160405280601581526020017f4265616e65642041706520596163687420436c7562000000000000000000000081525060405180604001604052806005815260200164424e41594360d81b8152508160029081620000c49190620001e8565b506003620000d38282620001e8565b5050600160005550620000e633620000f1565b6001600955620002b4565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200016e57607f821691505b6020821081036200018f57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001e357600081815260208120601f850160051c81016020861015620001be5750805b601f850160051c820191505b81811015620001df57828155600101620001ca565b5050505b505050565b81516001600160401b0381111562000204576200020462000143565b6200021c8162000215845462000159565b8462000195565b602080601f8311600181146200025457600084156200023b5750858301515b600019600386901b1c1916600185901b178555620001df565b600085815260208120601f198616915b82811015620002855788860151825594840194600190910190840162000264565b5085821015620002a45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611de580620002c46000396000f3fe6080604052600436106102195760003560e01c806370a0823111610123578063b071401b116100ab578063da5e1f4d1161006f578063da5e1f4d146105ea578063e985e9c51461060a578063eac989f814610653578063f2fde38b14610668578063f64849801461068857600080fd5b8063b071401b1461054a578063b88d4fde1461056a578063c87b56dd1461058a578063d897833e146105aa578063d9f0a671146105ca57600080fd5b806394354fd0116100f257806394354fd0146104d457806395d89b41146104ea5780639a1b2885146104ff578063a035b1fe14610515578063a22cb4651461052a57600080fd5b806370a0823114610454578063715018a6146104745780638462151c146104895780638da5cb5b146104b657600080fd5b806321a3c248116101a657806342842e0e1161017557806342842e0e146103cf5780635503a0e8146103ef5780635a0b8b23146104045780636352211e1461041a5780636ad1fe021461043a57600080fd5b806321a3c2481461036457806323b872dd1461038457806333573dc2146103a45780633ccfd60b146103ba57600080fd5b8063081812fc116101ed578063081812fc146102aa578063095ea7b3146102e257806316ba10e01461030257806318160ddd1461032257806319d1997a1461034e57600080fd5b806275770a1461021e57806301ffc9a71461024057806306fdde03146102755780630788370314610297575b600080fd5b34801561022a57600080fd5b5061023e610239366004611738565b6106a8565b005b34801561024c57600080fd5b5061026061025b366004611767565b6106b5565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b5061028a610707565b60405161026c91906117dc565b61023e6102a5366004611738565b610799565b3480156102b657600080fd5b506102ca6102c5366004611738565b610981565b6040516001600160a01b03909116815260200161026c565b3480156102ee57600080fd5b5061023e6102fd366004611806565b6109c5565b34801561030e57600080fd5b5061023e61031d3660046118bc565b610a65565b34801561032e57600080fd5b50610340600154600054036000190190565b60405190815260200161026c565b34801561035a57600080fd5b50610340600e5481565b34801561037057600080fd5b5061023e61037f366004611738565b610a79565b34801561039057600080fd5b5061023e61039f366004611905565b610a86565b3480156103b057600080fd5b50610340600c5481565b3480156103c657600080fd5b5061023e610c1f565b3480156103db57600080fd5b5061023e6103ea366004611905565b610cf7565b3480156103fb57600080fd5b5061028a610d17565b34801561041057600080fd5b5061034060105481565b34801561042657600080fd5b506102ca610435366004611738565b610da5565b34801561044657600080fd5b506011546102609060ff1681565b34801561046057600080fd5b5061034061046f366004611941565b610db0565b34801561048057600080fd5b5061023e610dff565b34801561049557600080fd5b506104a96104a4366004611941565b610e13565b60405161026c919061195c565b3480156104c257600080fd5b506008546001600160a01b03166102ca565b3480156104e057600080fd5b50610340600f5481565b3480156104f657600080fd5b5061028a610f05565b34801561050b57600080fd5b50610340600d5481565b34801561052157600080fd5b50610340610f14565b34801561053657600080fd5b5061023e6105453660046119b0565b610f3e565b34801561055657600080fd5b5061023e610565366004611738565b610fd3565b34801561057657600080fd5b5061023e6105853660046119e3565b610fe0565b34801561059657600080fd5b5061028a6105a5366004611738565b61102a565b3480156105b657600080fd5b5061023e6105c5366004611a5f565b6110f8565b3480156105d657600080fd5b5061023e6105e5366004611738565b611113565b3480156105f657600080fd5b5061023e610605366004611738565b611120565b34801561061657600080fd5b50610260610625366004611a7a565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561065f57600080fd5b5061028a61112d565b34801561067457600080fd5b5061023e610683366004611941565b61113a565b34801561069457600080fd5b5061023e6106a33660046118bc565b6111b3565b6106b06111c7565b600e55565b60006301ffc9a760e01b6001600160e01b0319831614806106e657506380ac58cd60e01b6001600160e01b03198316145b806107015750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461071690611aa4565b80601f016020809104026020016040519081016040528092919081815260200182805461074290611aa4565b801561078f5780601f106107645761010080835404028352916020019161078f565b820191906000526020600020905b81548152906001019060200180831161077257829003601f168201915b5050505050905090565b60006107ac600154600054036000190190565b60115490915060ff166107fc5760405162461bcd60e51b81526020600482015260136024820152725468652053616c65206973207061757365642160681b60448201526064015b60405180910390fd5b60008211801561080e5750600f548211155b6108515760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964206d696e7420616d6f756e742160601b60448201526064016107f3565b600e5482610866600154600054036000190190565b6108709190611af4565b11156108b55760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b60448201526064016107f3565b601054826108c233610db0565b6108cc9190611af4565b111561091a5760405162461bcd60e51b815260206004820152601d60248201527f4d6178206d696e74207065722077616c6c65742065786365656465642100000060448201526064016107f3565b8161092482611221565b61092e9190611b0c565b3410156109735760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b60448201526064016107f3565b61097d3383611242565b5050565b600061098c8261125c565b6109a9576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006109d082610da5565b9050336001600160a01b03821614610a09576109ec8133610625565b610a09576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610a6d6111c7565b600b61097d8282611b71565b610a816111c7565b600d55565b6000610a9182611291565b9050836001600160a01b0316816001600160a01b031614610ac45760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610b1157610af48633610625565b610b1157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610b3857604051633a954ecd60e21b815260040160405180910390fd5b8015610b4357600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610bd557600184016000818152600460205260408120549003610bd3576000548114610bd35760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610c276111c7565b600260095403610c795760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107f3565b60026009556000610c926008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610cdc576040519150601f19603f3d011682016040523d82523d6000602084013e610ce1565b606091505b5050905080610cef57600080fd5b506001600955565b610d1283838360405180602001604052806000815250610fe0565b505050565b600b8054610d2490611aa4565b80601f0160208091040260200160405190810160405280929190818152602001828054610d5090611aa4565b8015610d9d5780601f10610d7257610100808354040283529160200191610d9d565b820191906000526020600020905b815481529060010190602001808311610d8057829003601f168201915b505050505081565b600061070182611291565b60006001600160a01b038216610dd9576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610e076111c7565b610e116000611300565b565b60606000610e2083610db0565b67ffffffffffffffff811115610e3857610e38611830565b604051908082528060200260200182016040528015610e61578160200160208202803683370190505b5090506000610e6f60005490565b905060008060005b83811015610efa576000610e8a82611352565b9050806040015115610e9c5750610ef2565b80516001600160a01b031615610eb157805192505b876001600160a01b0316836001600160a01b031603610ef05781868580600101965081518110610ee357610ee3611c31565b6020026020010181815250505b505b600101610e77565b509295945050505050565b60606003805461071690611aa4565b6000610bb8610f2a600154600054036000190190565b1015610f375750600c5490565b50600d5490565b336001600160a01b03831603610f675760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610fdb6111c7565b600f55565b610feb848484610a86565b6001600160a01b0383163b1561102457611007848484846113d1565b611024576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606110358261125c565b6110995760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107f3565b60006110a36114bd565b905060008151116110c357604051806020016040528060008152506110f1565b806110cd846114cc565b600b6040516020016110e193929190611c47565b6040516020818303038152906040525b9392505050565b6111006111c7565b6011805460ff1916911515919091179055565b61111b6111c7565b601055565b6111286111c7565b600c55565b600a8054610d2490611aa4565b6111426111c7565b6001600160a01b0381166111a75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107f3565b6111b081611300565b50565b6111bb6111c7565b600a61097d8282611b71565b6008546001600160a01b03163314610e115760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f3565b6000610bb8821015611235575050600c5490565b5050600d5490565b919050565b61097d8282604051806020016040528060008152506115cd565b600081600111158015611270575060005482105b8015610701575050600090815260046020526040902054600160e01b161590565b600081806001116112e7576000548110156112e75760008181526004602052604081205490600160e01b821690036112e5575b806000036110f15750600019016000818152600460205260409020546112c4565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60408051608081018252600080825260208201819052918101829052606081019190915260008281526004602052604090205461070190604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611406903390899088908890600401611ce7565b6020604051808303816000875af1925050508015611441575060408051601f3d908101601f1916820190925261143e91810190611d24565b60015b61149f573d80801561146f576040519150601f19603f3d011682016040523d82523d6000602084013e611474565b606091505b508051600003611497576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600a805461071690611aa4565b6060816000036114f35750506040805180820190915260018152600360fc1b602082015290565b8160005b811561151d578061150781611d41565b91506115169050600a83611d70565b91506114f7565b60008167ffffffffffffffff81111561153857611538611830565b6040519080825280601f01601f191660200182016040528015611562576020820181803683370190505b5090505b84156114b557611577600183611d84565b9150611584600a86611d9b565b61158f906030611af4565b60f81b8183815181106115a4576115a4611c31565b60200101906001600160f81b031916908160001a9053506115c6600a86611d70565b9450611566565b6115d7838361163a565b6001600160a01b0383163b15610d12576000548281035b61160160008683806001019450866113d1565b61161e576040516368d2bf6b60e11b815260040160405180910390fd5b8181106115ee57816000541461163357600080fd5b5050505050565b600080549082900361165f5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461170e57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016116d6565b508160000361172f57604051622e076360e81b815260040160405180910390fd5b60005550505050565b60006020828403121561174a57600080fd5b5035919050565b6001600160e01b0319811681146111b057600080fd5b60006020828403121561177957600080fd5b81356110f181611751565b60005b8381101561179f578181015183820152602001611787565b838111156110245750506000910152565b600081518084526117c8816020860160208601611784565b601f01601f19169290920160200192915050565b6020815260006110f160208301846117b0565b80356001600160a01b038116811461123d57600080fd5b6000806040838503121561181957600080fd5b611822836117ef565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561186157611861611830565b604051601f8501601f19908116603f0116810190828211818310171561188957611889611830565b816040528093508581528686860111156118a257600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156118ce57600080fd5b813567ffffffffffffffff8111156118e557600080fd5b8201601f810184136118f657600080fd5b6114b584823560208401611846565b60008060006060848603121561191a57600080fd5b611923846117ef565b9250611931602085016117ef565b9150604084013590509250925092565b60006020828403121561195357600080fd5b6110f1826117ef565b6020808252825182820181905260009190848201906040850190845b8181101561199457835183529284019291840191600101611978565b50909695505050505050565b8035801515811461123d57600080fd5b600080604083850312156119c357600080fd5b6119cc836117ef565b91506119da602084016119a0565b90509250929050565b600080600080608085870312156119f957600080fd5b611a02856117ef565b9350611a10602086016117ef565b925060408501359150606085013567ffffffffffffffff811115611a3357600080fd5b8501601f81018713611a4457600080fd5b611a5387823560208401611846565b91505092959194509250565b600060208284031215611a7157600080fd5b6110f1826119a0565b60008060408385031215611a8d57600080fd5b611a96836117ef565b91506119da602084016117ef565b600181811c90821680611ab857607f821691505b602082108103611ad857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115611b0757611b07611ade565b500190565b6000816000190483118215151615611b2657611b26611ade565b500290565b601f821115610d1257600081815260208120601f850160051c81016020861015611b525750805b601f850160051c820191505b81811015610c1757828155600101611b5e565b815167ffffffffffffffff811115611b8b57611b8b611830565b611b9f81611b998454611aa4565b84611b2b565b602080601f831160018114611bd45760008415611bbc5750858301515b600019600386901b1c1916600185901b178555610c17565b600085815260208120601f198616915b82811015611c0357888601518255948401946001909101908401611be4565b5085821015611c215787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b600084516020611c5a8285838a01611784565b855191840191611c6d8184848a01611784565b8554920191600090611c7e81611aa4565b60018281168015611c965760018114611cab57611cd7565b60ff1984168752821515830287019450611cd7565b896000528560002060005b84811015611ccf57815489820152908301908701611cb6565b505082870194505b50929a9950505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611d1a908301846117b0565b9695505050505050565b600060208284031215611d3657600080fd5b81516110f181611751565b600060018201611d5357611d53611ade565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082611d7f57611d7f611d5a565b500490565b600082821015611d9657611d96611ade565b500390565b600082611daa57611daa611d5a565b50069056fea2646970667358221220f0582c0ea53956a8128c18c5d8c20033b6c2e90a54d9166cd8570e9e6c166bb764736f6c634300080f0033
Deployed Bytecode
0x6080604052600436106102195760003560e01c806370a0823111610123578063b071401b116100ab578063da5e1f4d1161006f578063da5e1f4d146105ea578063e985e9c51461060a578063eac989f814610653578063f2fde38b14610668578063f64849801461068857600080fd5b8063b071401b1461054a578063b88d4fde1461056a578063c87b56dd1461058a578063d897833e146105aa578063d9f0a671146105ca57600080fd5b806394354fd0116100f257806394354fd0146104d457806395d89b41146104ea5780639a1b2885146104ff578063a035b1fe14610515578063a22cb4651461052a57600080fd5b806370a0823114610454578063715018a6146104745780638462151c146104895780638da5cb5b146104b657600080fd5b806321a3c248116101a657806342842e0e1161017557806342842e0e146103cf5780635503a0e8146103ef5780635a0b8b23146104045780636352211e1461041a5780636ad1fe021461043a57600080fd5b806321a3c2481461036457806323b872dd1461038457806333573dc2146103a45780633ccfd60b146103ba57600080fd5b8063081812fc116101ed578063081812fc146102aa578063095ea7b3146102e257806316ba10e01461030257806318160ddd1461032257806319d1997a1461034e57600080fd5b806275770a1461021e57806301ffc9a71461024057806306fdde03146102755780630788370314610297575b600080fd5b34801561022a57600080fd5b5061023e610239366004611738565b6106a8565b005b34801561024c57600080fd5b5061026061025b366004611767565b6106b5565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b5061028a610707565b60405161026c91906117dc565b61023e6102a5366004611738565b610799565b3480156102b657600080fd5b506102ca6102c5366004611738565b610981565b6040516001600160a01b03909116815260200161026c565b3480156102ee57600080fd5b5061023e6102fd366004611806565b6109c5565b34801561030e57600080fd5b5061023e61031d3660046118bc565b610a65565b34801561032e57600080fd5b50610340600154600054036000190190565b60405190815260200161026c565b34801561035a57600080fd5b50610340600e5481565b34801561037057600080fd5b5061023e61037f366004611738565b610a79565b34801561039057600080fd5b5061023e61039f366004611905565b610a86565b3480156103b057600080fd5b50610340600c5481565b3480156103c657600080fd5b5061023e610c1f565b3480156103db57600080fd5b5061023e6103ea366004611905565b610cf7565b3480156103fb57600080fd5b5061028a610d17565b34801561041057600080fd5b5061034060105481565b34801561042657600080fd5b506102ca610435366004611738565b610da5565b34801561044657600080fd5b506011546102609060ff1681565b34801561046057600080fd5b5061034061046f366004611941565b610db0565b34801561048057600080fd5b5061023e610dff565b34801561049557600080fd5b506104a96104a4366004611941565b610e13565b60405161026c919061195c565b3480156104c257600080fd5b506008546001600160a01b03166102ca565b3480156104e057600080fd5b50610340600f5481565b3480156104f657600080fd5b5061028a610f05565b34801561050b57600080fd5b50610340600d5481565b34801561052157600080fd5b50610340610f14565b34801561053657600080fd5b5061023e6105453660046119b0565b610f3e565b34801561055657600080fd5b5061023e610565366004611738565b610fd3565b34801561057657600080fd5b5061023e6105853660046119e3565b610fe0565b34801561059657600080fd5b5061028a6105a5366004611738565b61102a565b3480156105b657600080fd5b5061023e6105c5366004611a5f565b6110f8565b3480156105d657600080fd5b5061023e6105e5366004611738565b611113565b3480156105f657600080fd5b5061023e610605366004611738565b611120565b34801561061657600080fd5b50610260610625366004611a7a565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561065f57600080fd5b5061028a61112d565b34801561067457600080fd5b5061023e610683366004611941565b61113a565b34801561069457600080fd5b5061023e6106a33660046118bc565b6111b3565b6106b06111c7565b600e55565b60006301ffc9a760e01b6001600160e01b0319831614806106e657506380ac58cd60e01b6001600160e01b03198316145b806107015750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461071690611aa4565b80601f016020809104026020016040519081016040528092919081815260200182805461074290611aa4565b801561078f5780601f106107645761010080835404028352916020019161078f565b820191906000526020600020905b81548152906001019060200180831161077257829003601f168201915b5050505050905090565b60006107ac600154600054036000190190565b60115490915060ff166107fc5760405162461bcd60e51b81526020600482015260136024820152725468652053616c65206973207061757365642160681b60448201526064015b60405180910390fd5b60008211801561080e5750600f548211155b6108515760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964206d696e7420616d6f756e742160601b60448201526064016107f3565b600e5482610866600154600054036000190190565b6108709190611af4565b11156108b55760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b60448201526064016107f3565b601054826108c233610db0565b6108cc9190611af4565b111561091a5760405162461bcd60e51b815260206004820152601d60248201527f4d6178206d696e74207065722077616c6c65742065786365656465642100000060448201526064016107f3565b8161092482611221565b61092e9190611b0c565b3410156109735760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b60448201526064016107f3565b61097d3383611242565b5050565b600061098c8261125c565b6109a9576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006109d082610da5565b9050336001600160a01b03821614610a09576109ec8133610625565b610a09576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610a6d6111c7565b600b61097d8282611b71565b610a816111c7565b600d55565b6000610a9182611291565b9050836001600160a01b0316816001600160a01b031614610ac45760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610b1157610af48633610625565b610b1157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610b3857604051633a954ecd60e21b815260040160405180910390fd5b8015610b4357600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610bd557600184016000818152600460205260408120549003610bd3576000548114610bd35760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610c276111c7565b600260095403610c795760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107f3565b60026009556000610c926008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610cdc576040519150601f19603f3d011682016040523d82523d6000602084013e610ce1565b606091505b5050905080610cef57600080fd5b506001600955565b610d1283838360405180602001604052806000815250610fe0565b505050565b600b8054610d2490611aa4565b80601f0160208091040260200160405190810160405280929190818152602001828054610d5090611aa4565b8015610d9d5780601f10610d7257610100808354040283529160200191610d9d565b820191906000526020600020905b815481529060010190602001808311610d8057829003601f168201915b505050505081565b600061070182611291565b60006001600160a01b038216610dd9576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610e076111c7565b610e116000611300565b565b60606000610e2083610db0565b67ffffffffffffffff811115610e3857610e38611830565b604051908082528060200260200182016040528015610e61578160200160208202803683370190505b5090506000610e6f60005490565b905060008060005b83811015610efa576000610e8a82611352565b9050806040015115610e9c5750610ef2565b80516001600160a01b031615610eb157805192505b876001600160a01b0316836001600160a01b031603610ef05781868580600101965081518110610ee357610ee3611c31565b6020026020010181815250505b505b600101610e77565b509295945050505050565b60606003805461071690611aa4565b6000610bb8610f2a600154600054036000190190565b1015610f375750600c5490565b50600d5490565b336001600160a01b03831603610f675760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610fdb6111c7565b600f55565b610feb848484610a86565b6001600160a01b0383163b1561102457611007848484846113d1565b611024576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606110358261125c565b6110995760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107f3565b60006110a36114bd565b905060008151116110c357604051806020016040528060008152506110f1565b806110cd846114cc565b600b6040516020016110e193929190611c47565b6040516020818303038152906040525b9392505050565b6111006111c7565b6011805460ff1916911515919091179055565b61111b6111c7565b601055565b6111286111c7565b600c55565b600a8054610d2490611aa4565b6111426111c7565b6001600160a01b0381166111a75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107f3565b6111b081611300565b50565b6111bb6111c7565b600a61097d8282611b71565b6008546001600160a01b03163314610e115760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f3565b6000610bb8821015611235575050600c5490565b5050600d5490565b919050565b61097d8282604051806020016040528060008152506115cd565b600081600111158015611270575060005482105b8015610701575050600090815260046020526040902054600160e01b161590565b600081806001116112e7576000548110156112e75760008181526004602052604081205490600160e01b821690036112e5575b806000036110f15750600019016000818152600460205260409020546112c4565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60408051608081018252600080825260208201819052918101829052606081019190915260008281526004602052604090205461070190604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611406903390899088908890600401611ce7565b6020604051808303816000875af1925050508015611441575060408051601f3d908101601f1916820190925261143e91810190611d24565b60015b61149f573d80801561146f576040519150601f19603f3d011682016040523d82523d6000602084013e611474565b606091505b508051600003611497576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600a805461071690611aa4565b6060816000036114f35750506040805180820190915260018152600360fc1b602082015290565b8160005b811561151d578061150781611d41565b91506115169050600a83611d70565b91506114f7565b60008167ffffffffffffffff81111561153857611538611830565b6040519080825280601f01601f191660200182016040528015611562576020820181803683370190505b5090505b84156114b557611577600183611d84565b9150611584600a86611d9b565b61158f906030611af4565b60f81b8183815181106115a4576115a4611c31565b60200101906001600160f81b031916908160001a9053506115c6600a86611d70565b9450611566565b6115d7838361163a565b6001600160a01b0383163b15610d12576000548281035b61160160008683806001019450866113d1565b61161e576040516368d2bf6b60e11b815260040160405180910390fd5b8181106115ee57816000541461163357600080fd5b5050505050565b600080549082900361165f5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461170e57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016116d6565b508160000361172f57604051622e076360e81b815260040160405180910390fd5b60005550505050565b60006020828403121561174a57600080fd5b5035919050565b6001600160e01b0319811681146111b057600080fd5b60006020828403121561177957600080fd5b81356110f181611751565b60005b8381101561179f578181015183820152602001611787565b838111156110245750506000910152565b600081518084526117c8816020860160208601611784565b601f01601f19169290920160200192915050565b6020815260006110f160208301846117b0565b80356001600160a01b038116811461123d57600080fd5b6000806040838503121561181957600080fd5b611822836117ef565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561186157611861611830565b604051601f8501601f19908116603f0116810190828211818310171561188957611889611830565b816040528093508581528686860111156118a257600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156118ce57600080fd5b813567ffffffffffffffff8111156118e557600080fd5b8201601f810184136118f657600080fd5b6114b584823560208401611846565b60008060006060848603121561191a57600080fd5b611923846117ef565b9250611931602085016117ef565b9150604084013590509250925092565b60006020828403121561195357600080fd5b6110f1826117ef565b6020808252825182820181905260009190848201906040850190845b8181101561199457835183529284019291840191600101611978565b50909695505050505050565b8035801515811461123d57600080fd5b600080604083850312156119c357600080fd5b6119cc836117ef565b91506119da602084016119a0565b90509250929050565b600080600080608085870312156119f957600080fd5b611a02856117ef565b9350611a10602086016117ef565b925060408501359150606085013567ffffffffffffffff811115611a3357600080fd5b8501601f81018713611a4457600080fd5b611a5387823560208401611846565b91505092959194509250565b600060208284031215611a7157600080fd5b6110f1826119a0565b60008060408385031215611a8d57600080fd5b611a96836117ef565b91506119da602084016117ef565b600181811c90821680611ab857607f821691505b602082108103611ad857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115611b0757611b07611ade565b500190565b6000816000190483118215151615611b2657611b26611ade565b500290565b601f821115610d1257600081815260208120601f850160051c81016020861015611b525750805b601f850160051c820191505b81811015610c1757828155600101611b5e565b815167ffffffffffffffff811115611b8b57611b8b611830565b611b9f81611b998454611aa4565b84611b2b565b602080601f831160018114611bd45760008415611bbc5750858301515b600019600386901b1c1916600185901b178555610c17565b600085815260208120601f198616915b82811015611c0357888601518255948401946001909101908401611be4565b5085821015611c215787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b600084516020611c5a8285838a01611784565b855191840191611c6d8184848a01611784565b8554920191600090611c7e81611aa4565b60018281168015611c965760018114611cab57611cd7565b60ff1984168752821515830287019450611cd7565b896000528560002060005b84811015611ccf57815489820152908301908701611cb6565b505082870194505b50929a9950505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611d1a908301846117b0565b9695505050505050565b600060208284031215611d3657600080fd5b81516110f181611751565b600060018201611d5357611d53611ade565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082611d7f57611d7f611d5a565b500490565b600082821015611d9657611d96611ade565b500390565b600082611daa57611daa611d5a565b50069056fea2646970667358221220f0582c0ea53956a8128c18c5d8c20033b6c2e90a54d9166cd8570e9e6c166bb764736f6c634300080f0033
Deployed Bytecode Sourcemap
79392:4817:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82059:108;;;;;;;;;;-1:-1:-1;82059:108:0;;;;;:::i;:::-;;:::i;:::-;;18435:639;;;;;;;;;;-1:-1:-1;18435:639:0;;;;;:::i;:::-;;:::i;:::-;;;750:14:1;;743:22;725:41;;713:2;698:18;18435:639:0;;;;;;;;19337:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;80416:655::-;;;;;;:::i;:::-;;:::i;25820:218::-;;;;;;;;;;-1:-1:-1;25820:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1692:32:1;;;1674:51;;1662:2;1647:18;25820:218:0;1528:203:1;25261:400:0;;;;;;;;;;-1:-1:-1;25261:400:0;;;;;:::i;:::-;;:::i;81313:106::-;;;;;;;;;;-1:-1:-1;81313:106:0;;;;;:::i;:::-;;:::i;15088:323::-;;;;;;;;;;;;83708:1;15362:12;15149:7;15346:13;:28;-1:-1:-1;;15346:46:0;;15088:323;;;;3544:25:1;;;3532:2;3517:18;15088:323:0;3398:177:1;79695:34:0;;;;;;;;;;;;;;;;81949:84;;;;;;;;;;-1:-1:-1;81949:84:0;;;;;:::i;:::-;;:::i;29527:2817::-;;;;;;;;;;-1:-1:-1;29527:2817:0;;;;;:::i;:::-;;:::i;79621:30::-;;;;;;;;;;;;;;;;82311:182;;;;;;;;;;;;;:::i;32440:185::-;;;;;;;;;;-1:-1:-1;32440:185:0;;;;;:::i;:::-;;:::i;79583:33::-;;;;;;;;;;;;;:::i;79776:36::-;;;;;;;;;;;;;;;;20730:152;;;;;;;;;;-1:-1:-1;20730:152:0;;;;;:::i;:::-;;:::i;79817:24::-;;;;;;;;;;-1:-1:-1;79817:24:0;;;;;;;;16272:233;;;;;;;;;;-1:-1:-1;16272:233:0;;;;;:::i;:::-;;:::i;75728:103::-;;;;;;;;;;;;;:::i;82821:791::-;;;;;;;;;;-1:-1:-1;82821:791:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;75080:87::-;;;;;;;;;;-1:-1:-1;75153:6:0;;-1:-1:-1;;;;;75153:6:0;75080:87;;79734:37;;;;;;;;;;;;;;;;19513:104;;;;;;;;;;;;;:::i;79656:34::-;;;;;;;;;;;;;;;;82639:174;;;;;;;;;;;;;:::i;26378:308::-;;;;;;;;;;-1:-1:-1;26378:308:0;;;;;:::i;:::-;;:::i;81546:136::-;;;;;;;;;;-1:-1:-1;81546:136:0;;;;;:::i;:::-;;:::i;33223:399::-;;;;;;;;;;-1:-1:-1;33223:399:0;;;;;:::i;:::-;;:::i;83725:373::-;;;;;;;;;;-1:-1:-1;83725:373:0;;;;;:::i;:::-;;:::i;81442:83::-;;;;;;;;;;-1:-1:-1;81442:83:0;;;;;:::i;:::-;;:::i;81707:132::-;;;;;;;;;;-1:-1:-1;81707:132:0;;;;;:::i;:::-;;:::i;81855:84::-;;;;;;;;;;-1:-1:-1;81855:84:0;;;;;:::i;:::-;;:::i;26843:164::-;;;;;;;;;;-1:-1:-1;26843:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;26964:25:0;;;26940:4;26964:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;26843:164;79561:17;;;;;;;;;;;;;:::i;75986:201::-;;;;;;;;;;-1:-1:-1;75986:201:0;;;;;:::i;:::-;;:::i;81222:82::-;;;;;;;;;;-1:-1:-1;81222:82:0;;;;;:::i;:::-;;:::i;82059:108::-;74966:13;:11;:13::i;:::-;82133:11:::1;:26:::0;82059:108::o;18435:639::-;18520:4;-1:-1:-1;;;;;;;;;18844:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;18921:25:0;;;18844:102;:179;;;-1:-1:-1;;;;;;;;;;18998:25:0;;;18844:179;18824:199;18435:639;-1:-1:-1;;18435:639:0:o;19337:100::-;19391:13;19424:5;19417:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19337:100;:::o;80416:655::-;80502:14;80519:13;83708:1;15362:12;15149:7;15346:13;:28;-1:-1:-1;;15346:46:0;;15088:323;80519:13;80583:4;;80502:30;;-1:-1:-1;80583:4:0;;80575:36;;;;-1:-1:-1;;;80575:36:0;;6874:2:1;80575:36:0;;;6856:21:1;6913:2;6893:18;;;6886:30;-1:-1:-1;;;6932:18:1;;;6925:49;6991:18;;80575:36:0;;;;;;;;;80644:1;80630:11;:15;:52;;;;;80664:18;;80649:11;:33;;80630:52;80622:85;;;;-1:-1:-1;;;80622:85:0;;7222:2:1;80622:85:0;;;7204:21:1;7261:2;7241:18;;;7234:30;-1:-1:-1;;;7280:18:1;;;7273:50;7340:18;;80622:85:0;7020:344:1;80622:85:0;80757:11;;80742;80726:13;83708:1;15362:12;15149:7;15346:13;:28;-1:-1:-1;;15346:46:0;;15088:323;80726:13;:27;;;;:::i;:::-;:42;;80718:75;;;;-1:-1:-1;;;80718:75:0;;7836:2:1;80718:75:0;;;7818:21:1;7875:2;7855:18;;;7848:30;-1:-1:-1;;;7894:18:1;;;7887:50;7954:18;;80718:75:0;7634:344:1;80718:75:0;80851:17;;80836:11;80812:21;80822:10;80812:9;:21::i;:::-;:35;;;;:::i;:::-;:56;;80804:98;;;;-1:-1:-1;;;80804:98:0;;8185:2:1;80804:98:0;;;8167:21:1;8224:2;8204:18;;;8197:30;8263:31;8243:18;;;8236:59;8312:18;;80804:98:0;7983:353:1;80804:98:0;80955:11;80934:18;80945:6;80934:10;:18::i;:::-;:32;;;;:::i;:::-;80921:9;:45;;80913:77;;;;-1:-1:-1;;;80913:77:0;;8716:2:1;80913:77:0;;;8698:21:1;8755:2;8735:18;;;8728:30;-1:-1:-1;;;8774:18:1;;;8767:49;8833:18;;80913:77:0;8514:343:1;80913:77:0;81027:36;73711:10;81051:11;81027:9;:36::i;:::-;80466:605;80416:655;:::o;25820:218::-;25896:7;25921:16;25929:7;25921;:16::i;:::-;25916:64;;25946:34;;-1:-1:-1;;;25946:34:0;;;;;;;;;;;25916:64;-1:-1:-1;26000:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;26000:30:0;;25820:218::o;25261:400::-;25342:13;25358:16;25366:7;25358;:16::i;:::-;25342:32;-1:-1:-1;73711:10:0;-1:-1:-1;;;;;25391:28:0;;;25387:175;;25439:44;25456:5;73711:10;26843:164;:::i;25439:44::-;25434:128;;25511:35;;-1:-1:-1;;;25511:35:0;;;;;;;;;;;25434:128;25574:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;25574:35:0;-1:-1:-1;;;;;25574:35:0;;;;;;;;;25625:28;;25574:24;;25625:28;;;;;;;25331:330;25261:400;;:::o;81313:106::-;74966:13;:11;:13::i;:::-;81389:9:::1;:22;81401:10:::0;81389:9;:22:::1;:::i;81949:84::-:0;74966:13;:11;:13::i;:::-;82011:5:::1;:14:::0;81949:84::o;29527:2817::-;29661:27;29691;29710:7;29691:18;:27::i;:::-;29661:57;;29776:4;-1:-1:-1;;;;;29735:45:0;29751:19;-1:-1:-1;;;;;29735:45:0;;29731:86;;29789:28;;-1:-1:-1;;;29789:28:0;;;;;;;;;;;29731:86;29831:27;28641:24;;;:15;:24;;;;;28863:26;;73711:10;28266:30;;;-1:-1:-1;;;;;27959:28:0;;28244:20;;;28241:56;30017:180;;30110:43;30127:4;73711:10;26843:164;:::i;30110:43::-;30105:92;;30162:35;;-1:-1:-1;;;30162:35:0;;;;;;;;;;;30105:92;-1:-1:-1;;;;;30214:16:0;;30210:52;;30239:23;;-1:-1:-1;;;30239:23:0;;;;;;;;;;;30210:52;30411:15;30408:160;;;30551:1;30530:19;30523:30;30408:160;-1:-1:-1;;;;;30948:24:0;;;;;;;:18;:24;;;;;;30946:26;;-1:-1:-1;;30946:26:0;;;31017:22;;;;;;;;;31015:24;;-1:-1:-1;31015:24:0;;;24119:11;24094:23;24090:41;24077:63;-1:-1:-1;;;24077:63:0;31310:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;31605:47:0;;:52;;31601:627;;31710:1;31700:11;;31678:19;31833:30;;;:17;:30;;;;;;:35;;31829:384;;31971:13;;31956:11;:28;31952:242;;32118:30;;;;:17;:30;;;;;:52;;;31952:242;31659:569;31601:627;32275:7;32271:2;-1:-1:-1;;;;;32256:27:0;32265:4;-1:-1:-1;;;;;32256:27:0;;;;;;;;;;;32294:42;29650:2694;;;29527:2817;;;:::o;82311:182::-;74966:13;:11;:13::i;:::-;78357:1:::1;78955:7;;:19:::0;78947:63:::1;;;::::0;-1:-1:-1;;;78947:63:0;;11268:2:1;78947:63:0::1;::::0;::::1;11250:21:1::0;11307:2;11287:18;;;11280:30;11346:33;11326:18;;;11319:61;11397:18;;78947:63:0::1;11066:355:1::0;78947:63:0::1;78357:1;79088:7;:18:::0;82395:7:::2;82416;75153:6:::0;;-1:-1:-1;;;;;75153:6:0;;75080:87;82416:7:::2;-1:-1:-1::0;;;;;82408:21:0::2;82437;82408:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82394:69;;;82482:2;82474:11;;;::::0;::::2;;-1:-1:-1::0;78313:1:0::1;79267:7;:22:::0;82311:182::o;32440:185::-;32578:39;32595:4;32601:2;32605:7;32578:39;;;;;;;;;;;;:16;:39::i;:::-;32440:185;;;:::o;79583:33::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;20730:152::-;20802:7;20845:27;20864:7;20845:18;:27::i;16272:233::-;16344:7;-1:-1:-1;;;;;16368:19:0;;16364:60;;16396:28;;-1:-1:-1;;;16396:28:0;;;;;;;;;;;16364:60;-1:-1:-1;;;;;;16442:25:0;;;;;:18;:25;;;;;;10431:13;16442:55;;16272:233::o;75728:103::-;74966:13;:11;:13::i;:::-;75793:30:::1;75820:1;75793:18;:30::i;:::-;75728:103::o:0;82821:791::-;82882:16;82936:18;82971:16;82981:5;82971:9;:16::i;:::-;82957:31;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;82957:31:0;;82936:52;;83003:11;83017:14;14830:7;14857:13;;14775:103;83017:14;83003:28;;83046:19;83080:25;83125:9;83120:447;83140:3;83136:1;:7;83120:447;;;83169:31;83203:15;83216:1;83203:12;:15::i;:::-;83169:49;;83241:9;:16;;;83237:73;;;83282:8;;;83237:73;83332:14;;-1:-1:-1;;;;;83332:28:0;;83328:111;;83405:14;;;-1:-1:-1;83328:111:0;83482:5;-1:-1:-1;;;;;83461:26:0;:17;-1:-1:-1;;;;;83461:26:0;;83457:95;;83531:1;83512;83514:13;;;;;;83512:16;;;;;;;;:::i;:::-;;;;;;:20;;;;;83457:95;83150:417;83120:447;83145:3;;83120:447;;;-1:-1:-1;83588:1:0;;82821:791;-1:-1:-1;;;;;82821:791:0:o;19513:104::-;19569:13;19602:7;19595:14;;;;;:::i;82639:174::-;82677:7;82715:4;82700:13;83708:1;15362:12;15149:7;15346:13;:28;-1:-1:-1;;15346:46:0;;15088:323;82700:13;:19;82696:110;;;-1:-1:-1;82741:5:0;;;82639:174::o;82696:110::-;-1:-1:-1;82789:5:0;;;82639:174::o;26378:308::-;73711:10;-1:-1:-1;;;;;26477:31:0;;;26473:61;;26517:17;;-1:-1:-1;;;26517:17:0;;;;;;;;;;;26473:61;73711:10;26547:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;26547:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;26547:60:0;;;;;;;;;;26623:55;;725:41:1;;;26547:49:0;;73711:10;26623:55;;698:18:1;26623:55:0;;;;;;;26378:308;;:::o;81546:136::-;74966:13;:11;:13::i;:::-;81634:18:::1;:40:::0;81546:136::o;33223:399::-;33390:31;33403:4;33409:2;33413:7;33390:12;:31::i;:::-;-1:-1:-1;;;;;33436:14:0;;;:19;33432:183;;33475:56;33506:4;33512:2;33516:7;33525:5;33475:30;:56::i;:::-;33470:145;;33559:40;;-1:-1:-1;;;33559:40:0;;;;;;;;;;;33470:145;33223:399;;;;:::o;83725:373::-;83799:13;83829:17;83837:8;83829:7;:17::i;:::-;83821:77;;;;-1:-1:-1;;;83821:77:0;;11970:2:1;83821:77:0;;;11952:21:1;12009:2;11989:18;;;11982:30;12048:34;12028:18;;;12021:62;-1:-1:-1;;;12099:18:1;;;12092:45;12154:19;;83821:77:0;11768:411:1;83821:77:0;83905:28;83936:10;:8;:10::i;:::-;83905:41;;83991:1;83966:14;83960:28;:32;:130;;;;;;;;;;;;;;;;;84028:14;84044:19;:8;:17;:19::i;:::-;84065:9;84011:64;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;83960:130;83953:137;83725:373;-1:-1:-1;;;83725:373:0:o;81442:83::-;74966:13;:11;:13::i;:::-;81505:4:::1;:12:::0;;-1:-1:-1;;81505:12:0::1;::::0;::::1;;::::0;;;::::1;::::0;;81442:83::o;81707:132::-;74966:13;:11;:13::i;:::-;81793:17:::1;:38:::0;81707:132::o;81855:84::-;74966:13;:11;:13::i;:::-;81917:5:::1;:14:::0;81855:84::o;79561:17::-;;;;;;;:::i;75986:201::-;74966:13;:11;:13::i;:::-;-1:-1:-1;;;;;76075:22:0;::::1;76067:73;;;::::0;-1:-1:-1;;;76067:73:0;;13621:2:1;76067:73:0::1;::::0;::::1;13603:21:1::0;13660:2;13640:18;;;13633:30;13699:34;13679:18;;;13672:62;-1:-1:-1;;;13750:18:1;;;13743:36;13796:19;;76067:73:0::1;13419:402:1::0;76067:73:0::1;76151:28;76170:8;76151:18;:28::i;:::-;75986:201:::0;:::o;81222:82::-;74966:13;:11;:13::i;:::-;81286:3:::1;:10;81292:4:::0;81286:3;:10:::1;:::i;75245:132::-:0;75153:6;;-1:-1:-1;;;;;75153:6:0;73711:10;75309:23;75301:68;;;;-1:-1:-1;;;75301:68:0;;14028:2:1;75301:68:0;;;14010:21:1;;;14047:18;;;14040:30;14106:34;14086:18;;;14079:62;14158:18;;75301:68:0;13826:356:1;80212:196:0;80273:13;80315:4;80305:7;:14;80301:100;;;-1:-1:-1;;80341:5:0;;;80212:196::o;80301:100::-;-1:-1:-1;;80384:5:0;;;80212:196::o;80301:100::-;80212:196;;;:::o;42863:112::-;42940:27;42950:2;42954:8;42940:27;;;;;;;;;;;;:9;:27::i;27265:282::-;27330:4;27386:7;83708:1;27367:26;;:66;;;;;27420:13;;27410:7;:23;27367:66;:153;;;;-1:-1:-1;;27471:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;27471:44:0;:49;;27265:282::o;21885:1275::-;21952:7;21987;;83708:1;22036:23;22032:1061;;22089:13;;22082:4;:20;22078:1015;;;22127:14;22144:23;;;:17;:23;;;;;;;-1:-1:-1;;;22233:24:0;;:29;;22229:845;;22898:113;22905:6;22915:1;22905:11;22898:113;;-1:-1:-1;;;22976:6:0;22958:25;;;;:17;:25;;;;;;22898:113;;22229:845;22104:989;22078:1015;23121:31;;-1:-1:-1;;;23121:31:0;;;;;;;;;;;76347:191;76440:6;;;-1:-1:-1;;;;;76457:17:0;;;-1:-1:-1;;;;;;76457:17:0;;;;;;;76490:40;;76440:6;;;76457:17;76440:6;;76490:40;;76421:16;;76490:40;76410:128;76347:191;:::o;21333:161::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21461:24:0;;;;:17;:24;;;;;;21442:44;;-1:-1:-1;;;;;;;;;;;;;23369:41:0;;;;11090:3;23455:33;;;23421:68;;-1:-1:-1;;;23421:68:0;-1:-1:-1;;;23519:24:0;;:29;;-1:-1:-1;;;23500:48:0;;;;11611:3;23588:28;;;;-1:-1:-1;;;23559:58:0;-1:-1:-1;23259:366:0;35706:716;35890:88;;-1:-1:-1;;;35890:88:0;;35869:4;;-1:-1:-1;;;;;35890:45:0;;;;;:88;;73711:10;;35957:4;;35963:7;;35972:5;;35890:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35890:88:0;;;;;;;;-1:-1:-1;;35890:88:0;;;;;;;;;;;;:::i;:::-;;;35886:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36173:6;:13;36190:1;36173:18;36169:235;;36219:40;;-1:-1:-1;;;36219:40:0;;;;;;;;;;;36169:235;36362:6;36356:13;36347:6;36343:2;36339:15;36332:38;35886:529;-1:-1:-1;;;;;;36049:64:0;-1:-1:-1;;;36049:64:0;;-1:-1:-1;35886:529:0;35706:716;;;;;;:::o;84106:100::-;84166:13;84195:3;84188:10;;;;;:::i;60231:723::-;60287:13;60508:5;60517:1;60508:10;60504:53;;-1:-1:-1;;60535:10:0;;;;;;;;;;;;-1:-1:-1;;;60535:10:0;;;;;60231:723::o;60504:53::-;60582:5;60567:12;60623:78;60630:9;;60623:78;;60656:8;;;;:::i;:::-;;-1:-1:-1;60679:10:0;;-1:-1:-1;60687:2:0;60679:10;;:::i;:::-;;;60623:78;;;60711:19;60743:6;60733:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;60733:17:0;;60711:39;;60761:154;60768:10;;60761:154;;60795:11;60805:1;60795:11;;:::i;:::-;;-1:-1:-1;60864:10:0;60872:2;60864:5;:10;:::i;:::-;60851:24;;:2;:24;:::i;:::-;60838:39;;60821:6;60828;60821:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;60821:56:0;;;;;;;;-1:-1:-1;60892:11:0;60901:2;60892:11;;:::i;:::-;;;60761:154;;42090:689;42221:19;42227:2;42231:8;42221:5;:19::i;:::-;-1:-1:-1;;;;;42282:14:0;;;:19;42278:483;;42322:11;42336:13;42384:14;;;42417:233;42448:62;42487:1;42491:2;42495:7;;;;;;42504:5;42448:30;:62::i;:::-;42443:167;;42546:40;;-1:-1:-1;;;42546:40:0;;;;;;;;;;;42443:167;42645:3;42637:5;:11;42417:233;;42732:3;42715:13;;:20;42711:34;;42737:8;;;42711:34;42303:458;;42090:689;;;:::o;36884:2454::-;36957:20;36980:13;;;37008;;;37004:44;;37030:18;;-1:-1:-1;;;37030:18:0;;;;;;;;;;;37004:44;-1:-1:-1;;;;;37536:22:0;;;;;;:18;:22;;;;10569:2;37536:22;;;:71;;37574:32;37562:45;;37536:71;;;37850:31;;;:17;:31;;;;;-1:-1:-1;24550:15:0;;24524:24;24520:46;24119:11;24094:23;24090:41;24087:52;24077:63;;37850:173;;38085:23;;;;37850:31;;37536:22;;38584:25;37536:22;;38437:335;38852:1;38838:12;38834:20;38792:346;38893:3;38884:7;38881:16;38792:346;;39111:7;39101:8;39098:1;39071:25;39068:1;39065;39060:59;38946:1;38933:15;38792:346;;;38796:77;39171:8;39183:1;39171:13;39167:45;;39193:19;;-1:-1:-1;;;39193:19:0;;;;;;;;;;;39167:45;39229:13;:19;-1:-1:-1;32440:185:0;;;:::o;14:180:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;-1:-1:-1;165:23:1;;14:180;-1:-1:-1;14:180:1:o;199:131::-;-1:-1:-1;;;;;;273:32:1;;263:43;;253:71;;320:1;317;310:12;335:245;393:6;446:2;434:9;425:7;421:23;417:32;414:52;;;462:1;459;452:12;414:52;501:9;488:23;520:30;544:5;520:30;:::i;777:258::-;849:1;859:113;873:6;870:1;867:13;859:113;;;949:11;;;943:18;930:11;;;923:39;895:2;888:10;859:113;;;990:6;987:1;984:13;981:48;;;-1:-1:-1;;1025:1:1;1007:16;;1000:27;777:258::o;1040:::-;1082:3;1120:5;1114:12;1147:6;1142:3;1135:19;1163:63;1219:6;1212:4;1207:3;1203:14;1196:4;1189:5;1185:16;1163:63;:::i;:::-;1280:2;1259:15;-1:-1:-1;;1255:29:1;1246:39;;;;1287:4;1242:50;;1040:258;-1:-1:-1;;1040:258:1:o;1303:220::-;1452:2;1441:9;1434:21;1415:4;1472:45;1513:2;1502:9;1498:18;1490:6;1472:45;:::i;1736:173::-;1804:20;;-1:-1:-1;;;;;1853:31:1;;1843:42;;1833:70;;1899:1;1896;1889:12;1914:254;1982:6;1990;2043:2;2031:9;2022:7;2018:23;2014:32;2011:52;;;2059:1;2056;2049:12;2011:52;2082:29;2101:9;2082:29;:::i;:::-;2072:39;2158:2;2143:18;;;;2130:32;;-1:-1:-1;;;1914:254:1:o;2173:127::-;2234:10;2229:3;2225:20;2222:1;2215:31;2265:4;2262:1;2255:15;2289:4;2286:1;2279:15;2305:632;2370:5;2400:18;2441:2;2433:6;2430:14;2427:40;;;2447:18;;:::i;:::-;2522:2;2516:9;2490:2;2576:15;;-1:-1:-1;;2572:24:1;;;2598:2;2568:33;2564:42;2552:55;;;2622:18;;;2642:22;;;2619:46;2616:72;;;2668:18;;:::i;:::-;2708:10;2704:2;2697:22;2737:6;2728:15;;2767:6;2759;2752:22;2807:3;2798:6;2793:3;2789:16;2786:25;2783:45;;;2824:1;2821;2814:12;2783:45;2874:6;2869:3;2862:4;2854:6;2850:17;2837:44;2929:1;2922:4;2913:6;2905;2901:19;2897:30;2890:41;;;;2305:632;;;;;:::o;2942:451::-;3011:6;3064:2;3052:9;3043:7;3039:23;3035:32;3032:52;;;3080:1;3077;3070:12;3032:52;3120:9;3107:23;3153:18;3145:6;3142:30;3139:50;;;3185:1;3182;3175:12;3139:50;3208:22;;3261:4;3253:13;;3249:27;-1:-1:-1;3239:55:1;;3290:1;3287;3280:12;3239:55;3313:74;3379:7;3374:2;3361:16;3356:2;3352;3348:11;3313:74;:::i;3580:328::-;3657:6;3665;3673;3726:2;3714:9;3705:7;3701:23;3697:32;3694:52;;;3742:1;3739;3732:12;3694:52;3765:29;3784:9;3765:29;:::i;:::-;3755:39;;3813:38;3847:2;3836:9;3832:18;3813:38;:::i;:::-;3803:48;;3898:2;3887:9;3883:18;3870:32;3860:42;;3580:328;;;;;:::o;3913:186::-;3972:6;4025:2;4013:9;4004:7;4000:23;3996:32;3993:52;;;4041:1;4038;4031:12;3993:52;4064:29;4083:9;4064:29;:::i;4104:632::-;4275:2;4327:21;;;4397:13;;4300:18;;;4419:22;;;4246:4;;4275:2;4498:15;;;;4472:2;4457:18;;;4246:4;4541:169;4555:6;4552:1;4549:13;4541:169;;;4616:13;;4604:26;;4685:15;;;;4650:12;;;;4577:1;4570:9;4541:169;;;-1:-1:-1;4727:3:1;;4104:632;-1:-1:-1;;;;;;4104:632:1:o;4741:160::-;4806:20;;4862:13;;4855:21;4845:32;;4835:60;;4891:1;4888;4881:12;4906:254;4971:6;4979;5032:2;5020:9;5011:7;5007:23;5003:32;5000:52;;;5048:1;5045;5038:12;5000:52;5071:29;5090:9;5071:29;:::i;:::-;5061:39;;5119:35;5150:2;5139:9;5135:18;5119:35;:::i;:::-;5109:45;;4906:254;;;;;:::o;5165:667::-;5260:6;5268;5276;5284;5337:3;5325:9;5316:7;5312:23;5308:33;5305:53;;;5354:1;5351;5344:12;5305:53;5377:29;5396:9;5377:29;:::i;:::-;5367:39;;5425:38;5459:2;5448:9;5444:18;5425:38;:::i;:::-;5415:48;;5510:2;5499:9;5495:18;5482:32;5472:42;;5565:2;5554:9;5550:18;5537:32;5592:18;5584:6;5581:30;5578:50;;;5624:1;5621;5614:12;5578:50;5647:22;;5700:4;5692:13;;5688:27;-1:-1:-1;5678:55:1;;5729:1;5726;5719:12;5678:55;5752:74;5818:7;5813:2;5800:16;5795:2;5791;5787:11;5752:74;:::i;:::-;5742:84;;;5165:667;;;;;;;:::o;5837:180::-;5893:6;5946:2;5934:9;5925:7;5921:23;5917:32;5914:52;;;5962:1;5959;5952:12;5914:52;5985:26;6001:9;5985:26;:::i;6022:260::-;6090:6;6098;6151:2;6139:9;6130:7;6126:23;6122:32;6119:52;;;6167:1;6164;6157:12;6119:52;6190:29;6209:9;6190:29;:::i;:::-;6180:39;;6238:38;6272:2;6261:9;6257:18;6238:38;:::i;6287:380::-;6366:1;6362:12;;;;6409;;;6430:61;;6484:4;6476:6;6472:17;6462:27;;6430:61;6537:2;6529:6;6526:14;6506:18;6503:38;6500:161;;6583:10;6578:3;6574:20;6571:1;6564:31;6618:4;6615:1;6608:15;6646:4;6643:1;6636:15;6500:161;;6287:380;;;:::o;7369:127::-;7430:10;7425:3;7421:20;7418:1;7411:31;7461:4;7458:1;7451:15;7485:4;7482:1;7475:15;7501:128;7541:3;7572:1;7568:6;7565:1;7562:13;7559:39;;;7578:18;;:::i;:::-;-1:-1:-1;7614:9:1;;7501:128::o;8341:168::-;8381:7;8447:1;8443;8439:6;8435:14;8432:1;8429:21;8424:1;8417:9;8410:17;8406:45;8403:71;;;8454:18;;:::i;:::-;-1:-1:-1;8494:9:1;;8341:168::o;8988:545::-;9090:2;9085:3;9082:11;9079:448;;;9126:1;9151:5;9147:2;9140:17;9196:4;9192:2;9182:19;9266:2;9254:10;9250:19;9247:1;9243:27;9237:4;9233:38;9302:4;9290:10;9287:20;9284:47;;;-1:-1:-1;9325:4:1;9284:47;9380:2;9375:3;9371:12;9368:1;9364:20;9358:4;9354:31;9344:41;;9435:82;9453:2;9446:5;9443:13;9435:82;;;9498:17;;;9479:1;9468:13;9435:82;;9709:1352;9835:3;9829:10;9862:18;9854:6;9851:30;9848:56;;;9884:18;;:::i;:::-;9913:97;10003:6;9963:38;9995:4;9989:11;9963:38;:::i;:::-;9957:4;9913:97;:::i;:::-;10065:4;;10129:2;10118:14;;10146:1;10141:663;;;;10848:1;10865:6;10862:89;;;-1:-1:-1;10917:19:1;;;10911:26;10862:89;-1:-1:-1;;9666:1:1;9662:11;;;9658:24;9654:29;9644:40;9690:1;9686:11;;;9641:57;10964:81;;10111:944;;10141:663;8935:1;8928:14;;;8972:4;8959:18;;-1:-1:-1;;10177:20:1;;;10295:236;10309:7;10306:1;10303:14;10295:236;;;10398:19;;;10392:26;10377:42;;10490:27;;;;10458:1;10446:14;;;;10325:19;;10295:236;;;10299:3;10559:6;10550:7;10547:19;10544:201;;;10620:19;;;10614:26;-1:-1:-1;;10703:1:1;10699:14;;;10715:3;10695:24;10691:37;10687:42;10672:58;10657:74;;10544:201;-1:-1:-1;;;;;10791:1:1;10775:14;;;10771:22;10758:36;;-1:-1:-1;9709:1352:1:o;11636:127::-;11697:10;11692:3;11688:20;11685:1;11678:31;11728:4;11725:1;11718:15;11752:4;11749:1;11742:15;12184:1230;12408:3;12446:6;12440:13;12472:4;12485:51;12529:6;12524:3;12519:2;12511:6;12507:15;12485:51;:::i;:::-;12599:13;;12558:16;;;;12621:55;12599:13;12558:16;12643:15;;;12621:55;:::i;:::-;12765:13;;12698:20;;;12738:1;;12803:36;12765:13;12803:36;:::i;:::-;12858:1;12875:18;;;12902:141;;;;13057:1;13052:337;;;;12868:521;;12902:141;-1:-1:-1;;12937:24:1;;12923:39;;13014:16;;13007:24;12993:39;;12982:51;;;-1:-1:-1;12902:141:1;;13052:337;13083:6;13080:1;13073:17;13131:2;13128:1;13118:16;13156:1;13170:169;13184:8;13181:1;13178:15;13170:169;;;13266:14;;13251:13;;;13244:37;13309:16;;;;13201:10;;13170:169;;;13174:3;;13370:8;13363:5;13359:20;13352:27;;12868:521;-1:-1:-1;13405:3:1;;12184:1230;-1:-1:-1;;;;;;;;;;12184:1230:1:o;14187:489::-;-1:-1:-1;;;;;14456:15:1;;;14438:34;;14508:15;;14503:2;14488:18;;14481:43;14555:2;14540:18;;14533:34;;;14603:3;14598:2;14583:18;;14576:31;;;14381:4;;14624:46;;14650:19;;14642:6;14624:46;:::i;:::-;14616:54;14187:489;-1:-1:-1;;;;;;14187:489:1:o;14681:249::-;14750:6;14803:2;14791:9;14782:7;14778:23;14774:32;14771:52;;;14819:1;14816;14809:12;14771:52;14851:9;14845:16;14870:30;14894:5;14870:30;:::i;14935:135::-;14974:3;14995:17;;;14992:43;;15015:18;;:::i;:::-;-1:-1:-1;15062:1:1;15051:13;;14935:135::o;15075:127::-;15136:10;15131:3;15127:20;15124:1;15117:31;15167:4;15164:1;15157:15;15191:4;15188:1;15181:15;15207:120;15247:1;15273;15263:35;;15278:18;;:::i;:::-;-1:-1:-1;15312:9:1;;15207:120::o;15332:125::-;15372:4;15400:1;15397;15394:8;15391:34;;;15405:18;;:::i;:::-;-1:-1:-1;15442:9:1;;15332:125::o;15462:112::-;15494:1;15520;15510:35;;15525:18;;:::i;:::-;-1:-1:-1;15559:9:1;;15462:112::o
Swarm Source
ipfs://f0582c0ea53956a8128c18c5d8c20033b6c2e90a54d9166cd8570e9e6c166bb7
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,472.33 | 0.0001 | $0.347233 |
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.