ERC-721
Overview
Max Total Supply
353 GoMilky
Holders
162
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 GoMilkyLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GoMilky
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-11-03 */ // File: 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: 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; } bool public revealed = false; string public hiddenURI; /** * @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(); if (!revealed){ return hiddenURI; } 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: @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: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } // 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: contracts/GoMilky.sol pragma solidity ^0.8.4; contract GoMilky is ERC721A, Ownable, ReentrancyGuard { uint256 private priceWL = 0.01 ether; uint256 private maxWL = 2; uint256 private pricePub = 0.02 ether; uint256 private maxMintPub = 10; string public baseURI; function setBaseURI(string memory uri) public onlyOwner { baseURI = uri; } function _baseURI() internal view override returns (string memory) { return baseURI; } bytes32 private merkleRoot; uint256 private maxTotalSupply = 5000; bool public publicPaused = false; bool public WLPaused = false; mapping(address => uint256) public mintCount; constructor() ERC721A("GoMilky", "GoMilky") {} function setHiddenURI(string memory hidden) public onlyOwner{ ERC721A.hiddenURI = hidden; } function setRevealed(bool reveal) public onlyOwner{ ERC721A.revealed = reveal; } function setPublicPaused(bool start) public onlyOwner{ publicPaused = start; } function setWLPaused(bool start) public onlyOwner{ WLPaused = start; } function setPriceWL(uint256 price) public onlyOwner{ priceWL = price; } function setPricePublic(uint256 price) public onlyOwner{ pricePub = price; } function setMaxWL(uint256 newMax) public onlyOwner{ maxWL = newMax; } function setMaxPub(uint256 newMax) public onlyOwner{ maxMintPub = newMax; } function setMaxSupply(uint256 newMax) public onlyOwner{ maxTotalSupply = newMax; } function mint(uint256 amount) external payable { require(!publicPaused, "Public sale is paused"); require(maxMintPub >= amount, "Can't mint more than 10 at once!"); require(amount + totalSupply() <= maxTotalSupply, "Sold out!"); require(msg.value >= amount * pricePub, "Not enough ethereum sent"); _safeMint(msg.sender, amount); } function preSaleMint(uint256 amount, bytes32[] calldata _merkleProof) external payable { require(!WLPaused, "WL sale is paused"); require(verifyMerkle(_merkleProof), "Invalid proof!"); require(maxWL >= amount, "Can't mint more than 2!"); require(amount + totalSupply() <= maxTotalSupply, "Sold out!"); require(mintCount[msg.sender] + amount <= maxWL, "Can't mint more than 2!"); mintCount[msg.sender] = mintCount[msg.sender] + amount; _safeMint(msg.sender, amount); } function withdraw() public virtual nonReentrant onlyOwner { require(address(this).balance > 0, "Empty"); Address.sendValue(payable(owner()), address(this).balance); } function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner { merkleRoot = _merkleRoot; } function verifyMerkle(bytes32[] calldata _merkleProof) public view returns (bool){ bytes32 leaf = keccak256(abi.encodePacked(_msgSender())); return MerkleProof.verify(_merkleProof, merkleRoot, leaf); } function devMint(uint256 amount) external onlyOwner { require(amount + totalSupply() <= maxTotalSupply, "Sold out!"); _safeMint(msg.sender, amount); } }
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":[],"name":"WLPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hiddenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintCount","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":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"preSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"hidden","type":"string"}],"name":"setHiddenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMax","type":"uint256"}],"name":"setMaxPub","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMax","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMax","type":"uint256"}],"name":"setMaxWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPricePublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPriceWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"start","type":"bool"}],"name":"setPublicPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"reveal","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"start","type":"bool"}],"name":"setWLPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"verifyMerkle","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526008805460ff19169055662386f26fc10000600c556002600d5566470de4df820000600e55600a600f556113886012556013805461ffff191690553480156200004c57600080fd5b50604080518082018252600780825266476f4d696c6b7960c81b6020808401828152855180870190965292855284015281519192916200008f9160029162000114565b508051620000a590600390602084019062000114565b50506000805550620000b733620000c2565b6001600b55620001f7565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200012290620001ba565b90600052602060002090601f01602090048101928262000146576000855562000191565b82601f106200016157805160ff191683800117855562000191565b8280016001018555821562000191579182015b828111156200019157825182559160200191906001019062000174565b506200019f929150620001a3565b5090565b5b808211156200019f5760008155600101620001a4565b600181811c90821680620001cf57607f821691505b60208210811415620001f157634e487b7160e01b600052602260045260246000fd5b50919050565b611f4c80620002076000396000f3fe6080604052600436106102305760003560e01c80636c0360eb1161012e578063a0712d68116100ab578063e0a808531161006f578063e0a8085314610649578063e985e9c514610669578063eb824f60146106b2578063ed9ec888146106d2578063f2fde38b146106ff57600080fd5b8063a0712d68146105b6578063a22cb465146105c9578063b88d4fde146105e9578063bbaac02f14610609578063c87b56dd1461062957600080fd5b806381d8488f116100f257806381d8488f1461052e5780638a54af1d1461054e5780638cc54e7f1461056e5780638da5cb5b1461058357806395d89b41146105a157600080fd5b80636c0360eb146104a45780636f8b44b0146104b957806370a08231146104d9578063715018a6146104f95780637cb647591461050e57600080fd5b8063375a069a116101bc5780635183022711610180578063518302271461040b57806355f804b31461042557806357893b1f146104455780635841a030146104645780636352211e1461048457600080fd5b8063375a069a146103835780633ccfd60b146103a357806342842e0e146103b85780634530a832146103d85780634c220f6e146103f857600080fd5b8063095ea7b311610203578063095ea7b3146102e65780630bb12bb8146103065780630ff086091461032057806318160ddd1461034057806323b872dd1461036357600080fd5b806301ffc9a71461023557806303bdf23c1461026a57806306fdde031461028c578063081812fc146102ae575b600080fd5b34801561024157600080fd5b50610255610250366004611c68565b61071f565b60405190151581526020015b60405180910390f35b34801561027657600080fd5b5061028a610285366004611c4f565b610771565b005b34801561029857600080fd5b506102a161077e565b6040516102619190611dcf565b3480156102ba57600080fd5b506102ce6102c9366004611c4f565b610810565b6040516001600160a01b039091168152602001610261565b3480156102f257600080fd5b5061028a610301366004611bc8565b610854565b34801561031257600080fd5b506013546102559060ff1681565b34801561032c57600080fd5b5061028a61033b366004611c34565b6108f4565b34801561034c57600080fd5b50600154600054035b604051908152602001610261565b34801561036f57600080fd5b5061028a61037e366004611ae6565b610916565b34801561038f57600080fd5b5061028a61039e366004611c4f565b610aa7565b3480156103af57600080fd5b5061028a610af7565b3480156103c457600080fd5b5061028a6103d3366004611ae6565b610bb1565b3480156103e457600080fd5b5061028a6103f3366004611c4f565b610bd1565b61028a610406366004611ceb565b610bde565b34801561041757600080fd5b506008546102559060ff1681565b34801561043157600080fd5b5061028a610440366004611ca2565b610d8d565b34801561045157600080fd5b5060135461025590610100900460ff1681565b34801561047057600080fd5b5061028a61047f366004611c4f565b610dac565b34801561049057600080fd5b506102ce61049f366004611c4f565b610db9565b3480156104b057600080fd5b506102a1610dc4565b3480156104c557600080fd5b5061028a6104d4366004611c4f565b610e52565b3480156104e557600080fd5b506103556104f4366004611a98565b610e5f565b34801561050557600080fd5b5061028a610eae565b34801561051a57600080fd5b5061028a610529366004611c4f565b610ec2565b34801561053a57600080fd5b5061028a610549366004611c4f565b610ecf565b34801561055a57600080fd5b5061028a610569366004611c34565b610edc565b34801561057a57600080fd5b506102a1610ef7565b34801561058f57600080fd5b50600a546001600160a01b03166102ce565b3480156105ad57600080fd5b506102a1610f04565b61028a6105c4366004611c4f565b610f13565b3480156105d557600080fd5b5061028a6105e4366004611b9e565b61103e565b3480156105f557600080fd5b5061028a610604366004611b22565b6110d4565b34801561061557600080fd5b5061028a610624366004611ca2565b61111e565b34801561063557600080fd5b506102a1610644366004611c4f565b611139565b34801561065557600080fd5b5061028a610664366004611c34565b61125a565b34801561067557600080fd5b50610255610684366004611ab3565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156106be57600080fd5b506102556106cd366004611bf2565b611275565b3480156106de57600080fd5b506103556106ed366004611a98565b60146020526000908152604090205481565b34801561070b57600080fd5b5061028a61071a366004611a98565b6112f9565b60006301ffc9a760e01b6001600160e01b03198316148061075057506380ac58cd60e01b6001600160e01b03198316145b8061076b5750635b5e139f60e01b6001600160e01b03198316145b92915050565b61077961136f565b600f55565b60606002805461078d90611e68565b80601f01602080910402602001604051908101604052809291908181526020018280546107b990611e68565b80156108065780601f106107db57610100808354040283529160200191610806565b820191906000526020600020905b8154815290600101906020018083116107e957829003601f168201915b5050505050905090565b600061081b826113c9565b610838576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061085f82610db9565b9050336001600160a01b038216146108985761087b8133610684565b610898576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6108fc61136f565b601380549115156101000261ff0019909216919091179055565b6000610921826113f0565b9050836001600160a01b0316816001600160a01b0316146109545760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176109a1576109848633610684565b6109a157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166109c857604051633a954ecd60e21b815260040160405180910390fd5b80156109d357600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610a5e5760018401600081815260046020526040902054610a5c576000548114610a5c5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b610aaf61136f565b60125460015460005403610ac39083611e05565b1115610aea5760405162461bcd60e51b8152600401610ae190611de2565b60405180910390fd5b610af43382611451565b50565b6002600b541415610b4a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ae1565b6002600b55610b5761136f565b60004711610b8f5760405162461bcd60e51b8152602060048201526005602482015264456d70747960d81b6044820152606401610ae1565b610baa610ba4600a546001600160a01b031690565b4761146b565b6001600b55565b610bcc838383604051806020016040528060008152506110d4565b505050565b610bd961136f565b600e55565b601354610100900460ff1615610c2a5760405162461bcd60e51b815260206004820152601160248201527015d3081cd85b19481a5cc81c185d5cd959607a1b6044820152606401610ae1565b610c348282611275565b610c715760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69642070726f6f662160901b6044820152606401610ae1565b82600d541015610cbd5760405162461bcd60e51b815260206004820152601760248201527643616e2774206d696e74206d6f7265207468616e20322160481b6044820152606401610ae1565b60125460015460005403610cd19085611e05565b1115610cef5760405162461bcd60e51b8152600401610ae190611de2565b600d5433600090815260146020526040902054610d0d908590611e05565b1115610d555760405162461bcd60e51b815260206004820152601760248201527643616e2774206d696e74206d6f7265207468616e20322160481b6044820152606401610ae1565b33600090815260146020526040902054610d70908490611e05565b33600081815260146020526040902091909155610bcc9084611451565b610d9561136f565b8051610da8906010906020840190611911565b5050565b610db461136f565b600d55565b600061076b826113f0565b60108054610dd190611e68565b80601f0160208091040260200160405190810160405280929190818152602001828054610dfd90611e68565b8015610e4a5780601f10610e1f57610100808354040283529160200191610e4a565b820191906000526020600020905b815481529060010190602001808311610e2d57829003601f168201915b505050505081565b610e5a61136f565b601255565b60006001600160a01b038216610e88576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610eb661136f565b610ec06000611584565b565b610eca61136f565b601155565b610ed761136f565b600c55565b610ee461136f565b6013805460ff1916911515919091179055565b60098054610dd190611e68565b60606003805461078d90611e68565b60135460ff1615610f5e5760405162461bcd60e51b8152602060048201526015602482015274141d589b1a58c81cd85b19481a5cc81c185d5cd959605a1b6044820152606401610ae1565b80600f541015610fb05760405162461bcd60e51b815260206004820181905260248201527f43616e2774206d696e74206d6f7265207468616e203130206174206f6e6365216044820152606401610ae1565b60125460015460005403610fc49083611e05565b1115610fe25760405162461bcd60e51b8152600401610ae190611de2565b600e54610fef9082611e1d565b341015610aea5760405162461bcd60e51b815260206004820152601860248201527f4e6f7420656e6f75676820657468657265756d2073656e7400000000000000006044820152606401610ae1565b6001600160a01b0382163314156110685760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6110df848484610916565b6001600160a01b0383163b15611118576110fb848484846115d6565b611118576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b61112661136f565b8051610da8906009906020840190611911565b6060611144826113c9565b61116157604051630a14c4b560e41b815260040160405180910390fd5b60085460ff166111fd576009805461117890611e68565b80601f01602080910402602001604051908101604052809291908181526020018280546111a490611e68565b80156111f15780601f106111c6576101008083540402835291602001916111f1565b820191906000526020600020905b8154815290600101906020018083116111d457829003601f168201915b50505050509050919050565b60006112076116cd565b90508051600014156112285760405180602001604052806000815250611253565b80611232846116dc565b604051602001611243929190611d63565b6040516020818303038152906040525b9392505050565b61126261136f565b6008805460ff1916911515919091179055565b6040516bffffffffffffffffffffffff193360601b16602082015260009081906034016040516020818303038152906040528051906020012090506112f184848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601154915084905061171e565b949350505050565b61130161136f565b6001600160a01b0381166113665760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ae1565b610af481611584565b600a546001600160a01b03163314610ec05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ae1565b600080548210801561076b575050600090815260046020526040902054600160e01b161590565b60008160005481101561143857600081815260046020526040902054600160e01b8116611436575b80611253575060001901600081815260046020526040902054611418565b505b604051636f96cda160e11b815260040160405180910390fd5b610da8828260405180602001604052806000815250611734565b804710156114bb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610ae1565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611508576040519150601f19603f3d011682016040523d82523d6000602084013e61150d565b606091505b5050905080610bcc5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610ae1565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061160b903390899088908890600401611d92565b602060405180830381600087803b15801561162557600080fd5b505af1925050508015611655575060408051601f3d908101601f1916820190925261165291810190611c85565b60015b6116b0573d808015611683576040519150601f19603f3d011682016040523d82523d6000602084013e611688565b606091505b5080516116a8576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60606010805461078d90611e68565b604080516080019081905280825b600183039250600a81066030018353600a9004806117075761170c565b6116ea565b50819003601f19909101908152919050565b60008261172b85846117a1565b14949350505050565b61173e83836117ee565b6001600160a01b0383163b15610bcc576000548281035b61176860008683806001019450866115d6565b611785576040516368d2bf6b60e11b815260040160405180910390fd5b81811061175557816000541461179a57600080fd5b5050505050565b600081815b84518110156117e6576117d2828683815181106117c5576117c5611ed4565b60200260200101516118e5565b9150806117de81611ea3565b9150506117a6565b509392505050565b6000548161180f5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146118be57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611886565b50816118dc57604051622e076360e81b815260040160405180910390fd5b60005550505050565b6000818310611901576000828152602084905260409020611253565b5060009182526020526040902090565b82805461191d90611e68565b90600052602060002090601f01602090048101928261193f5760008555611985565b82601f1061195857805160ff1916838001178555611985565b82800160010185558215611985579182015b8281111561198557825182559160200191906001019061196a565b50611991929150611995565b5090565b5b808211156119915760008155600101611996565b600067ffffffffffffffff808411156119c5576119c5611eea565b604051601f8501601f19908116603f011681019082821181831017156119ed576119ed611eea565b81604052809350858152868686011115611a0657600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114611a3757600080fd5b919050565b60008083601f840112611a4e57600080fd5b50813567ffffffffffffffff811115611a6657600080fd5b6020830191508360208260051b8501011115611a8157600080fd5b9250929050565b80358015158114611a3757600080fd5b600060208284031215611aaa57600080fd5b61125382611a20565b60008060408385031215611ac657600080fd5b611acf83611a20565b9150611add60208401611a20565b90509250929050565b600080600060608486031215611afb57600080fd5b611b0484611a20565b9250611b1260208501611a20565b9150604084013590509250925092565b60008060008060808587031215611b3857600080fd5b611b4185611a20565b9350611b4f60208601611a20565b925060408501359150606085013567ffffffffffffffff811115611b7257600080fd5b8501601f81018713611b8357600080fd5b611b92878235602084016119aa565b91505092959194509250565b60008060408385031215611bb157600080fd5b611bba83611a20565b9150611add60208401611a88565b60008060408385031215611bdb57600080fd5b611be483611a20565b946020939093013593505050565b60008060208385031215611c0557600080fd5b823567ffffffffffffffff811115611c1c57600080fd5b611c2885828601611a3c565b90969095509350505050565b600060208284031215611c4657600080fd5b61125382611a88565b600060208284031215611c6157600080fd5b5035919050565b600060208284031215611c7a57600080fd5b813561125381611f00565b600060208284031215611c9757600080fd5b815161125381611f00565b600060208284031215611cb457600080fd5b813567ffffffffffffffff811115611ccb57600080fd5b8201601f81018413611cdc57600080fd5b6112f1848235602084016119aa565b600080600060408486031215611d0057600080fd5b83359250602084013567ffffffffffffffff811115611d1e57600080fd5b611d2a86828701611a3c565b9497909650939450505050565b60008151808452611d4f816020860160208601611e3c565b601f01601f19169290920160200192915050565b60008351611d75818460208801611e3c565b835190830190611d89818360208801611e3c565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611dc590830184611d37565b9695505050505050565b6020815260006112536020830184611d37565b602080825260099082015268536f6c64206f75742160b81b604082015260600190565b60008219821115611e1857611e18611ebe565b500190565b6000816000190483118215151615611e3757611e37611ebe565b500290565b60005b83811015611e57578181015183820152602001611e3f565b838111156111185750506000910152565b600181811c90821680611e7c57607f821691505b60208210811415611e9d57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611eb757611eb7611ebe565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610af457600080fdfea26469706673582212203c6f7c3f8aee950352025acd094db5b87e859b49e2f5f0059cccfc17261fba1164736f6c63430008070033
Deployed Bytecode
0x6080604052600436106102305760003560e01c80636c0360eb1161012e578063a0712d68116100ab578063e0a808531161006f578063e0a8085314610649578063e985e9c514610669578063eb824f60146106b2578063ed9ec888146106d2578063f2fde38b146106ff57600080fd5b8063a0712d68146105b6578063a22cb465146105c9578063b88d4fde146105e9578063bbaac02f14610609578063c87b56dd1461062957600080fd5b806381d8488f116100f257806381d8488f1461052e5780638a54af1d1461054e5780638cc54e7f1461056e5780638da5cb5b1461058357806395d89b41146105a157600080fd5b80636c0360eb146104a45780636f8b44b0146104b957806370a08231146104d9578063715018a6146104f95780637cb647591461050e57600080fd5b8063375a069a116101bc5780635183022711610180578063518302271461040b57806355f804b31461042557806357893b1f146104455780635841a030146104645780636352211e1461048457600080fd5b8063375a069a146103835780633ccfd60b146103a357806342842e0e146103b85780634530a832146103d85780634c220f6e146103f857600080fd5b8063095ea7b311610203578063095ea7b3146102e65780630bb12bb8146103065780630ff086091461032057806318160ddd1461034057806323b872dd1461036357600080fd5b806301ffc9a71461023557806303bdf23c1461026a57806306fdde031461028c578063081812fc146102ae575b600080fd5b34801561024157600080fd5b50610255610250366004611c68565b61071f565b60405190151581526020015b60405180910390f35b34801561027657600080fd5b5061028a610285366004611c4f565b610771565b005b34801561029857600080fd5b506102a161077e565b6040516102619190611dcf565b3480156102ba57600080fd5b506102ce6102c9366004611c4f565b610810565b6040516001600160a01b039091168152602001610261565b3480156102f257600080fd5b5061028a610301366004611bc8565b610854565b34801561031257600080fd5b506013546102559060ff1681565b34801561032c57600080fd5b5061028a61033b366004611c34565b6108f4565b34801561034c57600080fd5b50600154600054035b604051908152602001610261565b34801561036f57600080fd5b5061028a61037e366004611ae6565b610916565b34801561038f57600080fd5b5061028a61039e366004611c4f565b610aa7565b3480156103af57600080fd5b5061028a610af7565b3480156103c457600080fd5b5061028a6103d3366004611ae6565b610bb1565b3480156103e457600080fd5b5061028a6103f3366004611c4f565b610bd1565b61028a610406366004611ceb565b610bde565b34801561041757600080fd5b506008546102559060ff1681565b34801561043157600080fd5b5061028a610440366004611ca2565b610d8d565b34801561045157600080fd5b5060135461025590610100900460ff1681565b34801561047057600080fd5b5061028a61047f366004611c4f565b610dac565b34801561049057600080fd5b506102ce61049f366004611c4f565b610db9565b3480156104b057600080fd5b506102a1610dc4565b3480156104c557600080fd5b5061028a6104d4366004611c4f565b610e52565b3480156104e557600080fd5b506103556104f4366004611a98565b610e5f565b34801561050557600080fd5b5061028a610eae565b34801561051a57600080fd5b5061028a610529366004611c4f565b610ec2565b34801561053a57600080fd5b5061028a610549366004611c4f565b610ecf565b34801561055a57600080fd5b5061028a610569366004611c34565b610edc565b34801561057a57600080fd5b506102a1610ef7565b34801561058f57600080fd5b50600a546001600160a01b03166102ce565b3480156105ad57600080fd5b506102a1610f04565b61028a6105c4366004611c4f565b610f13565b3480156105d557600080fd5b5061028a6105e4366004611b9e565b61103e565b3480156105f557600080fd5b5061028a610604366004611b22565b6110d4565b34801561061557600080fd5b5061028a610624366004611ca2565b61111e565b34801561063557600080fd5b506102a1610644366004611c4f565b611139565b34801561065557600080fd5b5061028a610664366004611c34565b61125a565b34801561067557600080fd5b50610255610684366004611ab3565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156106be57600080fd5b506102556106cd366004611bf2565b611275565b3480156106de57600080fd5b506103556106ed366004611a98565b60146020526000908152604090205481565b34801561070b57600080fd5b5061028a61071a366004611a98565b6112f9565b60006301ffc9a760e01b6001600160e01b03198316148061075057506380ac58cd60e01b6001600160e01b03198316145b8061076b5750635b5e139f60e01b6001600160e01b03198316145b92915050565b61077961136f565b600f55565b60606002805461078d90611e68565b80601f01602080910402602001604051908101604052809291908181526020018280546107b990611e68565b80156108065780601f106107db57610100808354040283529160200191610806565b820191906000526020600020905b8154815290600101906020018083116107e957829003601f168201915b5050505050905090565b600061081b826113c9565b610838576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061085f82610db9565b9050336001600160a01b038216146108985761087b8133610684565b610898576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6108fc61136f565b601380549115156101000261ff0019909216919091179055565b6000610921826113f0565b9050836001600160a01b0316816001600160a01b0316146109545760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176109a1576109848633610684565b6109a157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166109c857604051633a954ecd60e21b815260040160405180910390fd5b80156109d357600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610a5e5760018401600081815260046020526040902054610a5c576000548114610a5c5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b610aaf61136f565b60125460015460005403610ac39083611e05565b1115610aea5760405162461bcd60e51b8152600401610ae190611de2565b60405180910390fd5b610af43382611451565b50565b6002600b541415610b4a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ae1565b6002600b55610b5761136f565b60004711610b8f5760405162461bcd60e51b8152602060048201526005602482015264456d70747960d81b6044820152606401610ae1565b610baa610ba4600a546001600160a01b031690565b4761146b565b6001600b55565b610bcc838383604051806020016040528060008152506110d4565b505050565b610bd961136f565b600e55565b601354610100900460ff1615610c2a5760405162461bcd60e51b815260206004820152601160248201527015d3081cd85b19481a5cc81c185d5cd959607a1b6044820152606401610ae1565b610c348282611275565b610c715760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69642070726f6f662160901b6044820152606401610ae1565b82600d541015610cbd5760405162461bcd60e51b815260206004820152601760248201527643616e2774206d696e74206d6f7265207468616e20322160481b6044820152606401610ae1565b60125460015460005403610cd19085611e05565b1115610cef5760405162461bcd60e51b8152600401610ae190611de2565b600d5433600090815260146020526040902054610d0d908590611e05565b1115610d555760405162461bcd60e51b815260206004820152601760248201527643616e2774206d696e74206d6f7265207468616e20322160481b6044820152606401610ae1565b33600090815260146020526040902054610d70908490611e05565b33600081815260146020526040902091909155610bcc9084611451565b610d9561136f565b8051610da8906010906020840190611911565b5050565b610db461136f565b600d55565b600061076b826113f0565b60108054610dd190611e68565b80601f0160208091040260200160405190810160405280929190818152602001828054610dfd90611e68565b8015610e4a5780601f10610e1f57610100808354040283529160200191610e4a565b820191906000526020600020905b815481529060010190602001808311610e2d57829003601f168201915b505050505081565b610e5a61136f565b601255565b60006001600160a01b038216610e88576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610eb661136f565b610ec06000611584565b565b610eca61136f565b601155565b610ed761136f565b600c55565b610ee461136f565b6013805460ff1916911515919091179055565b60098054610dd190611e68565b60606003805461078d90611e68565b60135460ff1615610f5e5760405162461bcd60e51b8152602060048201526015602482015274141d589b1a58c81cd85b19481a5cc81c185d5cd959605a1b6044820152606401610ae1565b80600f541015610fb05760405162461bcd60e51b815260206004820181905260248201527f43616e2774206d696e74206d6f7265207468616e203130206174206f6e6365216044820152606401610ae1565b60125460015460005403610fc49083611e05565b1115610fe25760405162461bcd60e51b8152600401610ae190611de2565b600e54610fef9082611e1d565b341015610aea5760405162461bcd60e51b815260206004820152601860248201527f4e6f7420656e6f75676820657468657265756d2073656e7400000000000000006044820152606401610ae1565b6001600160a01b0382163314156110685760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6110df848484610916565b6001600160a01b0383163b15611118576110fb848484846115d6565b611118576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b61112661136f565b8051610da8906009906020840190611911565b6060611144826113c9565b61116157604051630a14c4b560e41b815260040160405180910390fd5b60085460ff166111fd576009805461117890611e68565b80601f01602080910402602001604051908101604052809291908181526020018280546111a490611e68565b80156111f15780601f106111c6576101008083540402835291602001916111f1565b820191906000526020600020905b8154815290600101906020018083116111d457829003601f168201915b50505050509050919050565b60006112076116cd565b90508051600014156112285760405180602001604052806000815250611253565b80611232846116dc565b604051602001611243929190611d63565b6040516020818303038152906040525b9392505050565b61126261136f565b6008805460ff1916911515919091179055565b6040516bffffffffffffffffffffffff193360601b16602082015260009081906034016040516020818303038152906040528051906020012090506112f184848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601154915084905061171e565b949350505050565b61130161136f565b6001600160a01b0381166113665760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ae1565b610af481611584565b600a546001600160a01b03163314610ec05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ae1565b600080548210801561076b575050600090815260046020526040902054600160e01b161590565b60008160005481101561143857600081815260046020526040902054600160e01b8116611436575b80611253575060001901600081815260046020526040902054611418565b505b604051636f96cda160e11b815260040160405180910390fd5b610da8828260405180602001604052806000815250611734565b804710156114bb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610ae1565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611508576040519150601f19603f3d011682016040523d82523d6000602084013e61150d565b606091505b5050905080610bcc5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610ae1565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061160b903390899088908890600401611d92565b602060405180830381600087803b15801561162557600080fd5b505af1925050508015611655575060408051601f3d908101601f1916820190925261165291810190611c85565b60015b6116b0573d808015611683576040519150601f19603f3d011682016040523d82523d6000602084013e611688565b606091505b5080516116a8576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60606010805461078d90611e68565b604080516080019081905280825b600183039250600a81066030018353600a9004806117075761170c565b6116ea565b50819003601f19909101908152919050565b60008261172b85846117a1565b14949350505050565b61173e83836117ee565b6001600160a01b0383163b15610bcc576000548281035b61176860008683806001019450866115d6565b611785576040516368d2bf6b60e11b815260040160405180910390fd5b81811061175557816000541461179a57600080fd5b5050505050565b600081815b84518110156117e6576117d2828683815181106117c5576117c5611ed4565b60200260200101516118e5565b9150806117de81611ea3565b9150506117a6565b509392505050565b6000548161180f5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146118be57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611886565b50816118dc57604051622e076360e81b815260040160405180910390fd5b60005550505050565b6000818310611901576000828152602084905260409020611253565b5060009182526020526040902090565b82805461191d90611e68565b90600052602060002090601f01602090048101928261193f5760008555611985565b82601f1061195857805160ff1916838001178555611985565b82800160010185558215611985579182015b8281111561198557825182559160200191906001019061196a565b50611991929150611995565b5090565b5b808211156119915760008155600101611996565b600067ffffffffffffffff808411156119c5576119c5611eea565b604051601f8501601f19908116603f011681019082821181831017156119ed576119ed611eea565b81604052809350858152868686011115611a0657600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114611a3757600080fd5b919050565b60008083601f840112611a4e57600080fd5b50813567ffffffffffffffff811115611a6657600080fd5b6020830191508360208260051b8501011115611a8157600080fd5b9250929050565b80358015158114611a3757600080fd5b600060208284031215611aaa57600080fd5b61125382611a20565b60008060408385031215611ac657600080fd5b611acf83611a20565b9150611add60208401611a20565b90509250929050565b600080600060608486031215611afb57600080fd5b611b0484611a20565b9250611b1260208501611a20565b9150604084013590509250925092565b60008060008060808587031215611b3857600080fd5b611b4185611a20565b9350611b4f60208601611a20565b925060408501359150606085013567ffffffffffffffff811115611b7257600080fd5b8501601f81018713611b8357600080fd5b611b92878235602084016119aa565b91505092959194509250565b60008060408385031215611bb157600080fd5b611bba83611a20565b9150611add60208401611a88565b60008060408385031215611bdb57600080fd5b611be483611a20565b946020939093013593505050565b60008060208385031215611c0557600080fd5b823567ffffffffffffffff811115611c1c57600080fd5b611c2885828601611a3c565b90969095509350505050565b600060208284031215611c4657600080fd5b61125382611a88565b600060208284031215611c6157600080fd5b5035919050565b600060208284031215611c7a57600080fd5b813561125381611f00565b600060208284031215611c9757600080fd5b815161125381611f00565b600060208284031215611cb457600080fd5b813567ffffffffffffffff811115611ccb57600080fd5b8201601f81018413611cdc57600080fd5b6112f1848235602084016119aa565b600080600060408486031215611d0057600080fd5b83359250602084013567ffffffffffffffff811115611d1e57600080fd5b611d2a86828701611a3c565b9497909650939450505050565b60008151808452611d4f816020860160208601611e3c565b601f01601f19169290920160200192915050565b60008351611d75818460208801611e3c565b835190830190611d89818360208801611e3c565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611dc590830184611d37565b9695505050505050565b6020815260006112536020830184611d37565b602080825260099082015268536f6c64206f75742160b81b604082015260600190565b60008219821115611e1857611e18611ebe565b500190565b6000816000190483118215151615611e3757611e37611ebe565b500290565b60005b83811015611e57578181015183820152602001611e3f565b838111156111185750506000910152565b600181811c90821680611e7c57607f821691505b60208210811415611e9d57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611eb757611eb7611ebe565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610af457600080fdfea26469706673582212203c6f7c3f8aee950352025acd094db5b87e859b49e2f5f0059cccfc17261fba1164736f6c63430008070033
Deployed Bytecode Sourcemap
74641:3246:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18419:639;;;;;;;;;;-1:-1:-1;18419:639:0;;;;;:::i;:::-;;:::i;:::-;;;7856:14:1;;7849:22;7831:41;;7819:2;7804:18;18419:639:0;;;;;;;;76040:87;;;;;;;;;;-1:-1:-1;76040:87:0;;;;;:::i;:::-;;:::i;:::-;;19321:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;25934:218::-;;;;;;;;;;-1:-1:-1;25934:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;7154:32:1;;;7136:51;;7124:2;7109:18;25934:218:0;6990:203:1;25375:400:0;;;;;;;;;;-1:-1:-1;25375:400:0;;;;;:::i;:::-;;:::i;75178:32::-;;;;;;;;;;-1:-1:-1;75178:32:0;;;;;;;;75672:82;;;;;;;;;;-1:-1:-1;75672:82:0;;;;;:::i;:::-;;:::i;15072:323::-;;;;;;;;;;-1:-1:-1;15346:12:0;;15133:7;15330:13;:28;15072:323;;;12941:25:1;;;12929:2;12914:18;15072:323:0;12795:177:1;29641:2817:0;;;;;;;;;;-1:-1:-1;29641:2817:0;;;;;:::i;:::-;;:::i;77709:173::-;;;;;;;;;;-1:-1:-1;77709:173:0;;;;;:::i;:::-;;:::i;77168:189::-;;;;;;;;;;;;;:::i;32554:185::-;;;;;;;;;;-1:-1:-1;32554:185:0;;;;;:::i;:::-;;:::i;75855:88::-;;;;;;;;;;-1:-1:-1;75855:88:0;;;;;:::i;:::-;;:::i;76625:535::-;;;;;;:::i;:::-;;:::i;19607:28::-;;;;;;;;;;-1:-1:-1;19607:28:0;;;;;;;;74891:88;;;;;;;;;;-1:-1:-1;74891:88:0;;;;;:::i;:::-;;:::i;75217:28::-;;;;;;;;;;-1:-1:-1;75217:28:0;;;;;;;;;;;75951:81;;;;;;;;;;-1:-1:-1;75951:81:0;;;;;:::i;:::-;;:::i;20844:152::-;;;;;;;;;;-1:-1:-1;20844:152:0;;;;;:::i;:::-;;:::i;74863:21::-;;;;;;;;;;;;;:::i;76135:94::-;;;;;;;;;;-1:-1:-1;76135:94:0;;;;;:::i;:::-;;:::i;16256:233::-;;;;;;;;;;-1:-1:-1;16256:233:0;;;;;:::i;:::-;;:::i;73751:103::-;;;;;;;;;;;;;:::i;77365:104::-;;;;;;;;;;-1:-1:-1;77365:104:0;;;;;:::i;:::-;;:::i;75764:83::-;;;;;;;;;;-1:-1:-1;75764:83:0;;;;;:::i;:::-;;:::i;75574:90::-;;;;;;;;;;-1:-1:-1;75574:90:0;;;;;:::i;:::-;;:::i;19642:23::-;;;;;;;;;;;;;:::i;73103:87::-;;;;;;;;;;-1:-1:-1;73176:6:0;;-1:-1:-1;;;;;73176:6:0;73103:87;;19497:104;;;;;;;;;;;;;:::i;76237:380::-;;;;;;:::i;:::-;;:::i;26492:308::-;;;;;;;;;;-1:-1:-1;26492:308:0;;;;;:::i;:::-;;:::i;33337:399::-;;;;;;;;;;-1:-1:-1;33337:399:0;;;;;:::i;:::-;;:::i;75359:105::-;;;;;;;;;;-1:-1:-1;75359:105:0;;;;;:::i;:::-;;:::i;19772:383::-;;;;;;;;;;-1:-1:-1;19772:383:0;;;;;:::i;:::-;;:::i;75472:94::-;;;;;;;;;;-1:-1:-1;75472:94:0;;;;;:::i;:::-;;:::i;26957:164::-;;;;;;;;;;-1:-1:-1;26957:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;27078:25:0;;;27054:4;27078:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;26957:164;77477:224;;;;;;;;;;-1:-1:-1;77477:224:0;;;;;:::i;:::-;;:::i;75252:44::-;;;;;;;;;;-1:-1:-1;75252:44:0;;;;;:::i;:::-;;;;;;;;;;;;;;74009:201;;;;;;;;;;-1:-1:-1;74009:201:0;;;;;:::i;:::-;;:::i;18419:639::-;18504:4;-1:-1:-1;;;;;;;;;18828:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;18905:25:0;;;18828:102;:179;;;-1:-1:-1;;;;;;;;;;18982:25:0;;;18828:179;18808:199;18419:639;-1:-1:-1;;18419:639:0:o;76040:87::-;72989:13;:11;:13::i;:::-;76100:10:::1;:19:::0;76040:87::o;19321:100::-;19375:13;19408:5;19401:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19321:100;:::o;25934:218::-;26010:7;26035:16;26043:7;26035;:16::i;:::-;26030:64;;26060:34;;-1:-1:-1;;;26060:34:0;;;;;;;;;;;26030:64;-1:-1:-1;26114:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;26114:30:0;;25934:218::o;25375:400::-;25456:13;25472:16;25480:7;25472;:16::i;:::-;25456:32;-1:-1:-1;49232:10:0;-1:-1:-1;;;;;25505:28:0;;;25501:175;;25553:44;25570:5;49232:10;26957:164;:::i;25553:44::-;25548:128;;25625:35;;-1:-1:-1;;;25625:35:0;;;;;;;;;;;25548:128;25688:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;25688:35:0;-1:-1:-1;;;;;25688:35:0;;;;;;;;;25739:28;;25688:24;;25739:28;;;;;;;25445:330;25375:400;;:::o;75672:82::-;72989:13;:11;:13::i;:::-;75730:8:::1;:16:::0;;;::::1;;;;-1:-1:-1::0;;75730:16:0;;::::1;::::0;;;::::1;::::0;;75672:82::o;29641:2817::-;29775:27;29805;29824:7;29805:18;:27::i;:::-;29775:57;;29890:4;-1:-1:-1;;;;;29849:45:0;29865:19;-1:-1:-1;;;;;29849:45:0;;29845:86;;29903:28;;-1:-1:-1;;;29903:28:0;;;;;;;;;;;29845:86;29945:27;28755:24;;;:15;:24;;;;;28977:26;;49232:10;28380:30;;;-1:-1:-1;;;;;28073:28:0;;28358:20;;;28355:56;30131:180;;30224:43;30241:4;49232:10;26957:164;:::i;30224:43::-;30219:92;;30276:35;;-1:-1:-1;;;30276:35:0;;;;;;;;;;;30219:92;-1:-1:-1;;;;;30328:16:0;;30324:52;;30353:23;;-1:-1:-1;;;30353:23:0;;;;;;;;;;;30324:52;30525:15;30522:160;;;30665:1;30644:19;30637:30;30522:160;-1:-1:-1;;;;;31062:24:0;;;;;;;:18;:24;;;;;;31060:26;;-1:-1:-1;;31060:26:0;;;31131:22;;;;;;;;;31129:24;;-1:-1:-1;31129:24:0;;;24233:11;24208:23;24204:41;24191:63;-1:-1:-1;;;24191:63:0;31424:26;;;;:17;:26;;;;;:175;-1:-1:-1;;;31719:47:0;;31715:627;;31824:1;31814:11;;31792:19;31947:30;;;:17;:30;;;;;;31943:384;;32085:13;;32070:11;:28;32066:242;;32232:30;;;;:17;:30;;;;;:52;;;32066:242;31773:569;31715:627;32389:7;32385:2;-1:-1:-1;;;;;32370:27:0;32379:4;-1:-1:-1;;;;;32370:27:0;;;;;;;;;;;29764:2694;;;29641:2817;;;:::o;77709:173::-;72989:13;:11;:13::i;:::-;77806:14:::1;::::0;15346:12;;15133:7;15330:13;:28;77780:22:::1;::::0;:6;:22:::1;:::i;:::-;:40;;77772:62;;;;-1:-1:-1::0;;;77772:62:0::1;;;;;;;:::i;:::-;;;;;;;;;77845:29;77855:10;77867:6;77845:9;:29::i;:::-;77709:173:::0;:::o;77168:189::-;52750:1;53348:7;;:19;;53340:63;;;;-1:-1:-1;;;53340:63:0;;11939:2:1;53340:63:0;;;11921:21:1;11978:2;11958:18;;;11951:30;12017:33;11997:18;;;11990:61;12068:18;;53340:63:0;11737:355:1;53340:63:0;52750:1;53481:7;:18;72989:13:::1;:11;:13::i;:::-;77269:1:::2;77245:21;:25;77237:43;;;::::0;-1:-1:-1;;;77237:43:0;;11606:2:1;77237:43:0::2;::::0;::::2;11588:21:1::0;11645:1;11625:18;;;11618:29;-1:-1:-1;;;11663:18:1;;;11656:35;11708:18;;77237:43:0::2;11404:328:1::0;77237:43:0::2;77291:58;77317:7;73176:6:::0;;-1:-1:-1;;;;;73176:6:0;;73103:87;77317:7:::2;77327:21;77291:17;:58::i;:::-;52706:1:::0;53660:7;:22;77168:189::o;32554:185::-;32692:39;32709:4;32715:2;32719:7;32692:39;;;;;;;;;;;;:16;:39::i;:::-;32554:185;;;:::o;75855:88::-;72989:13;:11;:13::i;:::-;75919:8:::1;:16:::0;75855:88::o;76625:535::-;76732:8;;;;;;;76731:9;76723:39;;;;-1:-1:-1;;;76723:39:0;;11260:2:1;76723:39:0;;;11242:21:1;11299:2;11279:18;;;11272:30;-1:-1:-1;;;11318:18:1;;;11311:47;11375:18;;76723:39:0;11058:341:1;76723:39:0;76781:26;76794:12;;76781;:26::i;:::-;76773:53;;;;-1:-1:-1;;;76773:53:0;;9012:2:1;76773:53:0;;;8994:21:1;9051:2;9031:18;;;9024:30;-1:-1:-1;;;9070:18:1;;;9063:44;9124:18;;76773:53:0;8810:338:1;76773:53:0;76854:6;76845:5;;:15;;76837:51;;;;-1:-1:-1;;;76837:51:0;;10547:2:1;76837:51:0;;;10529:21:1;10586:2;10566:18;;;10559:30;-1:-1:-1;;;10605:18:1;;;10598:53;10668:18;;76837:51:0;10345:347:1;76837:51:0;76933:14;;15346:12;;15133:7;15330:13;:28;76907:22;;:6;:22;:::i;:::-;:40;;76899:62;;;;-1:-1:-1;;;76899:62:0;;;;;;;:::i;:::-;77014:5;;76990:10;76980:21;;;;:9;:21;;;;;;:30;;77004:6;;76980:30;:::i;:::-;:39;;76972:75;;;;-1:-1:-1;;;76972:75:0;;10547:2:1;76972:75:0;;;10529:21:1;10586:2;10566:18;;;10559:30;-1:-1:-1;;;10605:18:1;;;10598:53;10668:18;;76972:75:0;10345:347:1;76972:75:0;77092:10;77082:21;;;;:9;:21;;;;;;:30;;77106:6;;77082:30;:::i;:::-;77068:10;77058:21;;;;:9;:21;;;;;:54;;;;77123:29;;77145:6;77123:9;:29::i;74891:88::-;72989:13;:11;:13::i;:::-;74958;;::::1;::::0;:7:::1;::::0;:13:::1;::::0;::::1;::::0;::::1;:::i;:::-;;74891:88:::0;:::o;75951:81::-;72989:13;:11;:13::i;:::-;76010:5:::1;:14:::0;75951:81::o;20844:152::-;20916:7;20959:27;20978:7;20959:18;:27::i;74863:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;76135:94::-;72989:13;:11;:13::i;:::-;76198:14:::1;:23:::0;76135:94::o;16256:233::-;16328:7;-1:-1:-1;;;;;16352:19:0;;16348:60;;16380:28;;-1:-1:-1;;;16380:28:0;;;;;;;;;;;16348:60;-1:-1:-1;;;;;;16426:25:0;;;;;:18;:25;;;;;;10415:13;16426:55;;16256:233::o;73751:103::-;72989:13;:11;:13::i;:::-;73816:30:::1;73843:1;73816:18;:30::i;:::-;73751:103::o:0;77365:104::-;72989:13;:11;:13::i;:::-;77437:10:::1;:24:::0;77365:104::o;75764:83::-;72989:13;:11;:13::i;:::-;75824:7:::1;:15:::0;75764:83::o;75574:90::-;72989:13;:11;:13::i;:::-;75636:12:::1;:20:::0;;-1:-1:-1;;75636:20:0::1;::::0;::::1;;::::0;;;::::1;::::0;;75574:90::o;19642:23::-;;;;;;;:::i;19497:104::-;19553:13;19586:7;19579:14;;;;;:::i;76237:380::-;76304:12;;;;76303:13;76295:47;;;;-1:-1:-1;;;76295:47:0;;8662:2:1;76295:47:0;;;8644:21:1;8701:2;8681:18;;;8674:30;-1:-1:-1;;;8720:18:1;;;8713:51;8781:18;;76295:47:0;8460:345:1;76295:47:0;76375:6;76361:10;;:20;;76353:65;;;;-1:-1:-1;;;76353:65:0;;12636:2:1;76353:65:0;;;12618:21:1;;;12655:18;;;12648:30;12714:34;12694:18;;;12687:62;12766:18;;76353:65:0;12434:356:1;76353:65:0;76463:14;;15346:12;;15133:7;15330:13;:28;76437:22;;:6;:22;:::i;:::-;:40;;76429:62;;;;-1:-1:-1;;;76429:62:0;;;;;;;:::i;:::-;76532:8;;76523:17;;:6;:17;:::i;:::-;76510:9;:30;;76502:67;;;;-1:-1:-1;;;76502:67:0;;8309:2:1;76502:67:0;;;8291:21:1;8348:2;8328:18;;;8321:30;8387:26;8367:18;;;8360:54;8431:18;;76502:67:0;8107:348:1;26492:308:0;-1:-1:-1;;;;;26591:31:0;;49232:10;26591:31;26587:61;;;26631:17;;-1:-1:-1;;;26631:17:0;;;;;;;;;;;26587:61;49232:10;26661:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;26661:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;26661:60:0;;;;;;;;;;26737:55;;7831:41:1;;;26661:49:0;;49232:10;26737:55;;7804:18:1;26737:55:0;;;;;;;26492:308;;:::o;33337:399::-;33504:31;33517:4;33523:2;33527:7;33504:12;:31::i;:::-;-1:-1:-1;;;;;33550:14:0;;;:19;33546:183;;33589:56;33620:4;33626:2;33630:7;33639:5;33589:30;:56::i;:::-;33584:145;;33673:40;;-1:-1:-1;;;33673:40:0;;;;;;;;;;;33584:145;33337:399;;;;:::o;75359:105::-;72989:13;:11;:13::i;:::-;75430:26;;::::1;::::0;:17:::1;::::0;:26:::1;::::0;::::1;::::0;::::1;:::i;19772:383::-:0;19845:13;19876:16;19884:7;19876;:16::i;:::-;19871:59;;19901:29;;-1:-1:-1;;;19901:29:0;;;;;;;;;;;19871:59;19946:8;;;;19941:57;;19977:9;19970:16;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19772:383;;;:::o;19941:57::-;20008:21;20032:10;:8;:10::i;:::-;20008:34;;20066:7;20060:21;20085:1;20060:26;;:87;;;;;;;;;;;;;;;;;20113:7;20122:18;20132:7;20122:9;:18::i;:::-;20096:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;20060:87;20053:94;19772:383;-1:-1:-1;;;19772:383:0:o;75472:94::-;72989:13;:11;:13::i;:::-;75533:16:::1;:25:::0;;-1:-1:-1;;75533:25:0::1;::::0;::::1;;::::0;;;::::1;::::0;;75472:94::o;77477:224::-;77594:30;;-1:-1:-1;;49232:10:0;6220:2:1;6216:15;6212:53;77594:30:0;;;6200:66:1;77553:4:0;;;;6282:12:1;;77594:30:0;;;;;;;;;;;;77584:41;;;;;;77569:56;;77643:50;77662:12;;77643:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;77676:10:0;;;-1:-1:-1;77688:4:0;;-1:-1:-1;77643:18:0;:50::i;:::-;77636:57;77477:224;-1:-1:-1;;;;77477:224:0:o;74009:201::-;72989:13;:11;:13::i;:::-;-1:-1:-1;;;;;74098:22:0;::::1;74090:73;;;::::0;-1:-1:-1;;;74090:73:0;;9355:2:1;74090:73:0::1;::::0;::::1;9337:21:1::0;9394:2;9374:18;;;9367:30;9433:34;9413:18;;;9406:62;-1:-1:-1;;;9484:18:1;;;9477:36;9530:19;;74090:73:0::1;9153:402:1::0;74090:73:0::1;74174:28;74193:8;74174:18;:28::i;73268:132::-:0;73176:6;;-1:-1:-1;;;;;73176:6:0;49232:10;73332:23;73324:68;;;;-1:-1:-1;;;73324:68:0;;10899:2:1;73324:68:0;;;10881:21:1;;;10918:18;;;10911:30;10977:34;10957:18;;;10950:62;11029:18;;73324:68:0;10697:356:1;27379:282:0;27444:4;27534:13;;27524:7;:23;27481:153;;;;-1:-1:-1;;27585:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;27585:44:0;:49;;27379:282::o;21999:1275::-;22066:7;22101;22203:13;;22196:4;:20;22192:1015;;;22241:14;22258:23;;;:17;:23;;;;;;-1:-1:-1;;;22347:24:0;;22343:845;;23012:113;23019:11;23012:113;;-1:-1:-1;;;23090:6:0;23072:25;;;;:17;:25;;;;;;23012:113;;22343:845;22218:989;22192:1015;23235:31;;-1:-1:-1;;;23235:31:0;;;;;;;;;;;42977:112;43054:27;43064:2;43068:8;43054:27;;;;;;;;;;;;:9;:27::i;56191:317::-;56306:6;56281:21;:31;;56273:73;;;;-1:-1:-1;;;56273:73:0;;10189:2:1;56273:73:0;;;10171:21:1;10228:2;10208:18;;;10201:30;10267:31;10247:18;;;10240:59;10316:18;;56273:73:0;9987:353:1;56273:73:0;56360:12;56378:9;-1:-1:-1;;;;;56378:14:0;56400:6;56378:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56359:52;;;56430:7;56422:78;;;;-1:-1:-1;;;56422:78:0;;9762:2:1;56422:78:0;;;9744:21:1;9801:2;9781:18;;;9774:30;9840:34;9820:18;;;9813:62;9911:28;9891:18;;;9884:56;9957:19;;56422:78:0;9560:422:1;74370:191:0;74463:6;;;-1:-1:-1;;;;;74480:17:0;;;-1:-1:-1;;;;;;74480:17:0;;;;;;;74513:40;;74463:6;;;74480:17;74463:6;;74513:40;;74444:16;;74513:40;74433:128;74370:191;:::o;35820:716::-;36004:88;;-1:-1:-1;;;36004:88:0;;35983:4;;-1:-1:-1;;;;;36004:45:0;;;;;:88;;49232:10;;36071:4;;36077:7;;36086:5;;36004:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36004:88:0;;;;;;;;-1:-1:-1;;36004:88:0;;;;;;;;;;;;:::i;:::-;;;36000:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36287:13:0;;36283:235;;36333:40;;-1:-1:-1;;;36333:40:0;;;;;;;;;;;36283:235;36476:6;36470:13;36461:6;36457:2;36453:15;36446:38;36000:529;-1:-1:-1;;;;;;36163:64:0;-1:-1:-1;;;36163:64:0;;-1:-1:-1;35820:716:0;;;;;;:::o;74991:100::-;75043:13;75076:7;75069:14;;;;;:::i;49352:1581::-;49835:4;49829:11;;49842:4;49825:22;49921:17;;;;49825:22;50279:5;50261:428;50327:1;50322:3;50318:11;50311:18;;50498:2;50492:4;50488:13;50484:2;50480:22;50475:3;50467:36;50592:2;50582:13;;;50649:25;;50667:5;;50649:25;50261:428;;;-1:-1:-1;50719:13:0;;;-1:-1:-1;;50834:14:0;;;50896:19;;;50834:14;49352:1581;-1:-1:-1;49352:1581:0:o;63469:190::-;63594:4;63647;63618:25;63631:5;63638:4;63618:12;:25::i;:::-;:33;;63469:190;-1:-1:-1;;;;63469:190:0:o;42204:689::-;42335:19;42341:2;42345:8;42335:5;:19::i;:::-;-1:-1:-1;;;;;42396:14:0;;;:19;42392:483;;42436:11;42450:13;42498:14;;;42531:233;42562:62;42601:1;42605:2;42609:7;;;;;;42618:5;42562:30;:62::i;:::-;42557:167;;42660:40;;-1:-1:-1;;;42660:40:0;;;;;;;;;;;42557:167;42759:3;42751:5;:11;42531:233;;42846:3;42829:13;;:20;42825:34;;42851:8;;;42825:34;42417:458;;42204:689;;;:::o;64336:296::-;64419:7;64462:4;64419:7;64477:118;64501:5;:12;64497:1;:16;64477:118;;;64550:33;64560:12;64574:5;64580:1;64574:8;;;;;;;;:::i;:::-;;;;;;;64550:9;:33::i;:::-;64535:48;-1:-1:-1;64515:3:0;;;;:::i;:::-;;;;64477:118;;;-1:-1:-1;64612:12:0;64336:296;-1:-1:-1;;;64336:296:0:o;36998:2454::-;37071:20;37094:13;37122;37118:44;;37144:18;;-1:-1:-1;;;37144:18:0;;;;;;;;;;;37118:44;-1:-1:-1;;;;;37650:22:0;;;;;;:18;:22;;;;10553:2;37650:22;;;:71;;37688:32;37676:45;;37650:71;;;37964:31;;;:17;:31;;;;;-1:-1:-1;24664:15:0;;24638:24;24634:46;24233:11;24208:23;24204:41;24201:52;24191:63;;37964:173;;38199:23;;;;37964:31;;37650:22;;38698:25;37650:22;;38551:335;38966:1;38952:12;38948:20;38906:346;39007:3;38998:7;38995:16;38906:346;;39225:7;39215:8;39212:1;39185:25;39182:1;39179;39174:59;39060:1;39047:15;38906:346;;;-1:-1:-1;39285:13:0;39281:45;;39307:19;;-1:-1:-1;;;39307:19:0;;;;;;;;;;;39281:45;39343:13;:19;-1:-1:-1;32554:185:0;;;:::o;70543:149::-;70606:7;70637:1;70633;:5;:51;;70768:13;70862:15;;;70898:4;70891:15;;;70945:4;70929:21;;70633:51;;;-1:-1:-1;70768:13:0;70862:15;;;70898:4;70891:15;70945:4;70929:21;;;70543:149::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:631:1;78:5;108:18;149:2;141:6;138:14;135:40;;;155:18;;:::i;:::-;230:2;224:9;198:2;284:15;;-1:-1:-1;;280:24:1;;;306:2;276:33;272:42;260:55;;;330:18;;;350:22;;;327:46;324:72;;;376:18;;:::i;:::-;416:10;412:2;405:22;445:6;436:15;;475:6;467;460:22;515:3;506:6;501:3;497:16;494:25;491:45;;;532:1;529;522:12;491:45;582:6;577:3;570:4;562:6;558:17;545:44;637:1;630:4;621:6;613;609:19;605:30;598:41;;;;14:631;;;;;:::o;650:173::-;718:20;;-1:-1:-1;;;;;767:31:1;;757:42;;747:70;;813:1;810;803:12;747:70;650:173;;;:::o;828:367::-;891:8;901:6;955:3;948:4;940:6;936:17;932:27;922:55;;973:1;970;963:12;922:55;-1:-1:-1;996:20:1;;1039:18;1028:30;;1025:50;;;1071:1;1068;1061:12;1025:50;1108:4;1100:6;1096:17;1084:29;;1168:3;1161:4;1151:6;1148:1;1144:14;1136:6;1132:27;1128:38;1125:47;1122:67;;;1185:1;1182;1175:12;1122:67;828:367;;;;;:::o;1200:160::-;1265:20;;1321:13;;1314:21;1304:32;;1294:60;;1350:1;1347;1340:12;1365:186;1424:6;1477:2;1465:9;1456:7;1452:23;1448:32;1445:52;;;1493:1;1490;1483:12;1445:52;1516:29;1535:9;1516:29;:::i;1556:260::-;1624:6;1632;1685:2;1673:9;1664:7;1660:23;1656:32;1653:52;;;1701:1;1698;1691:12;1653:52;1724:29;1743:9;1724:29;:::i;:::-;1714:39;;1772:38;1806:2;1795:9;1791:18;1772:38;:::i;:::-;1762:48;;1556:260;;;;;:::o;1821:328::-;1898:6;1906;1914;1967:2;1955:9;1946:7;1942:23;1938:32;1935:52;;;1983:1;1980;1973:12;1935:52;2006:29;2025:9;2006:29;:::i;:::-;1996:39;;2054:38;2088:2;2077:9;2073:18;2054:38;:::i;:::-;2044:48;;2139:2;2128:9;2124:18;2111:32;2101:42;;1821:328;;;;;:::o;2154:666::-;2249:6;2257;2265;2273;2326:3;2314:9;2305:7;2301:23;2297:33;2294:53;;;2343:1;2340;2333:12;2294:53;2366:29;2385:9;2366:29;:::i;:::-;2356:39;;2414:38;2448:2;2437:9;2433:18;2414:38;:::i;:::-;2404:48;;2499:2;2488:9;2484:18;2471:32;2461:42;;2554:2;2543:9;2539:18;2526:32;2581:18;2573:6;2570:30;2567:50;;;2613:1;2610;2603:12;2567:50;2636:22;;2689:4;2681:13;;2677:27;-1:-1:-1;2667:55:1;;2718:1;2715;2708:12;2667:55;2741:73;2806:7;2801:2;2788:16;2783:2;2779;2775:11;2741:73;:::i;:::-;2731:83;;;2154:666;;;;;;;:::o;2825:254::-;2890:6;2898;2951:2;2939:9;2930:7;2926:23;2922:32;2919:52;;;2967:1;2964;2957:12;2919:52;2990:29;3009:9;2990:29;:::i;:::-;2980:39;;3038:35;3069:2;3058:9;3054:18;3038:35;:::i;3084:254::-;3152:6;3160;3213:2;3201:9;3192:7;3188:23;3184:32;3181:52;;;3229:1;3226;3219:12;3181:52;3252:29;3271:9;3252:29;:::i;:::-;3242:39;3328:2;3313:18;;;;3300:32;;-1:-1:-1;;;3084:254:1:o;3343:437::-;3429:6;3437;3490:2;3478:9;3469:7;3465:23;3461:32;3458:52;;;3506:1;3503;3496:12;3458:52;3546:9;3533:23;3579:18;3571:6;3568:30;3565:50;;;3611:1;3608;3601:12;3565:50;3650:70;3712:7;3703:6;3692:9;3688:22;3650:70;:::i;:::-;3739:8;;3624:96;;-1:-1:-1;3343:437:1;-1:-1:-1;;;;3343:437:1:o;3785:180::-;3841:6;3894:2;3882:9;3873:7;3869:23;3865:32;3862:52;;;3910:1;3907;3900:12;3862:52;3933:26;3949:9;3933:26;:::i;3970:180::-;4029:6;4082:2;4070:9;4061:7;4057:23;4053:32;4050:52;;;4098:1;4095;4088:12;4050:52;-1:-1:-1;4121:23:1;;3970:180;-1:-1:-1;3970:180:1:o;4155:245::-;4213:6;4266:2;4254:9;4245:7;4241:23;4237:32;4234:52;;;4282:1;4279;4272:12;4234:52;4321:9;4308:23;4340:30;4364:5;4340:30;:::i;4405:249::-;4474:6;4527:2;4515:9;4506:7;4502:23;4498:32;4495:52;;;4543:1;4540;4533:12;4495:52;4575:9;4569:16;4594:30;4618:5;4594:30;:::i;4659:450::-;4728:6;4781:2;4769:9;4760:7;4756:23;4752:32;4749:52;;;4797:1;4794;4787:12;4749:52;4837:9;4824:23;4870:18;4862:6;4859:30;4856:50;;;4902:1;4899;4892:12;4856:50;4925:22;;4978:4;4970:13;;4966:27;-1:-1:-1;4956:55:1;;5007:1;5004;4997:12;4956:55;5030:73;5095:7;5090:2;5077:16;5072:2;5068;5064:11;5030:73;:::i;5299:505::-;5394:6;5402;5410;5463:2;5451:9;5442:7;5438:23;5434:32;5431:52;;;5479:1;5476;5469:12;5431:52;5515:9;5502:23;5492:33;;5576:2;5565:9;5561:18;5548:32;5603:18;5595:6;5592:30;5589:50;;;5635:1;5632;5625:12;5589:50;5674:70;5736:7;5727:6;5716:9;5712:22;5674:70;:::i;:::-;5299:505;;5763:8;;-1:-1:-1;5648:96:1;;-1:-1:-1;;;;5299:505:1:o;5809:257::-;5850:3;5888:5;5882:12;5915:6;5910:3;5903:19;5931:63;5987:6;5980:4;5975:3;5971:14;5964:4;5957:5;5953:16;5931:63;:::i;:::-;6048:2;6027:15;-1:-1:-1;;6023:29:1;6014:39;;;;6055:4;6010:50;;5809:257;-1:-1:-1;;5809:257:1:o;6305:470::-;6484:3;6522:6;6516:13;6538:53;6584:6;6579:3;6572:4;6564:6;6560:17;6538:53;:::i;:::-;6654:13;;6613:16;;;;6676:57;6654:13;6613:16;6710:4;6698:17;;6676:57;:::i;:::-;6749:20;;6305:470;-1:-1:-1;;;;6305:470:1:o;7198:488::-;-1:-1:-1;;;;;7467:15:1;;;7449:34;;7519:15;;7514:2;7499:18;;7492:43;7566:2;7551:18;;7544:34;;;7614:3;7609:2;7594:18;;7587:31;;;7392:4;;7635:45;;7660:19;;7652:6;7635:45;:::i;:::-;7627:53;7198:488;-1:-1:-1;;;;;;7198:488:1:o;7883:219::-;8032:2;8021:9;8014:21;7995:4;8052:44;8092:2;8081:9;8077:18;8069:6;8052:44;:::i;12097:332::-;12299:2;12281:21;;;12338:1;12318:18;;;12311:29;-1:-1:-1;;;12371:2:1;12356:18;;12349:39;12420:2;12405:18;;12097:332::o;12977:128::-;13017:3;13048:1;13044:6;13041:1;13038:13;13035:39;;;13054:18;;:::i;:::-;-1:-1:-1;13090:9:1;;12977:128::o;13110:168::-;13150:7;13216:1;13212;13208:6;13204:14;13201:1;13198:21;13193:1;13186:9;13179:17;13175:45;13172:71;;;13223:18;;:::i;:::-;-1:-1:-1;13263:9:1;;13110:168::o;13283:258::-;13355:1;13365:113;13379:6;13376:1;13373:13;13365:113;;;13455:11;;;13449:18;13436:11;;;13429:39;13401:2;13394:10;13365:113;;;13496:6;13493:1;13490:13;13487:48;;;-1:-1:-1;;13531:1:1;13513:16;;13506:27;13283:258::o;13546:380::-;13625:1;13621:12;;;;13668;;;13689:61;;13743:4;13735:6;13731:17;13721:27;;13689:61;13796:2;13788:6;13785:14;13765:18;13762:38;13759:161;;;13842:10;13837:3;13833:20;13830:1;13823:31;13877:4;13874:1;13867:15;13905:4;13902:1;13895:15;13759:161;;13546:380;;;:::o;13931:135::-;13970:3;-1:-1:-1;;13991:17:1;;13988:43;;;14011:18;;:::i;:::-;-1:-1:-1;14058:1:1;14047:13;;13931:135::o;14071:127::-;14132:10;14127:3;14123:20;14120:1;14113:31;14163:4;14160:1;14153:15;14187:4;14184:1;14177:15;14203:127;14264:10;14259:3;14255:20;14252:1;14245:31;14295:4;14292:1;14285:15;14319:4;14316:1;14309:15;14335:127;14396:10;14391:3;14387:20;14384:1;14377:31;14427:4;14424:1;14417:15;14451:4;14448:1;14441:15;14467:131;-1:-1:-1;;;;;;14541:32:1;;14531:43;;14521:71;;14588:1;14585;14578:12
Swarm Source
ipfs://3c6f7c3f8aee950352025acd094db5b87e859b49e2f5f0059cccfc17261fba11
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.