ERC-721
NFT
Overview
Max Total Supply
300 MUTANT BANANA
Holders
29
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 MUTANT BANANALoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MutantBanana
Compiler Version
v0.8.16+commit.07a7930e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-08-31 */ // SPDX-License-Identifier: GPL-3.0 // 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/Strings.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: @openzeppelin/contracts/utils/cryptography/ECDSA.sol // OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: @openzeppelin/contracts/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/token/ERC721/IERC721Receiver.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: @openzeppelin/contracts/token/ERC721/IERC721.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @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`. * * 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 calldata data ) external; /** * @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 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 ) external; /** * @dev Transfers `tokenId` token 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); } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @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); } // File: @openzeppelin/contracts/token/ERC721/ERC721.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @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, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @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. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @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 (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} } // File: erc721a.sol pragma solidity ^0.8.11; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). * * Assumes that an owner cannot have more than the 2**128 - 1 (max value of uint128) of supply */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 internal currentIndex; // 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 ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx; address currOwnershipAddr; // Counter overflow is impossible as the loop breaks when uint256 i is equal to another uint256 numMintedSoFar. unchecked { for (uint256 i; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } } revert("ERC721A: unable to get token of owner by index"); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require(owner != address(0), "ERC721A: number minted query for the zero address"); return uint256(_addressData[owner].numberMinted); } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); unchecked { for (uint256 curr = tokenId; curr >= 0; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @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, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); } /** * @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 (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, 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. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @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. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); require(quantity != 0, "ERC721A: quantity must be greater than 0"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 3.4e38 (2**128) - 1 // updatedIndex overflows if currentIndex + quantity > 1.56e77 (2**256) - 1 unchecked { _addressData[to].balance += uint128(quantity); _addressData[to].numberMinted += uint128(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; for (uint256 i; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); if (safe) { require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); } updatedIndex++; } currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require(isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved"); require(prevOwnership.addr == from, "ERC721A: transfer from incorrect owner"); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // 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 { _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * 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`. */ 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. * * 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` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} } // File: mutantbanana.sol pragma solidity ^0.8.11; contract MutantBanana is ERC721A, Ownable, ReentrancyGuard { using ECDSA for bytes32; address private bananaAddress; string public baseURI; uint public nextOwnerToExplicitlySet; uint public maxSupply = 300; bool public mintEnabled; constructor(address _bananaAddress) ERC721A("Mutant Banana", "MUTANT BANANA"){ bananaAddress = _bananaAddress; } function batchMutate(address to, uint[] memory bananas) external { require(mintEnabled, "mint disabled"); require(bananas.length % 5 == 0, "must select multiples of 5 bananas"); require(totalSupply() + (bananas.length / 5) < maxSupply + 1, "we're sold out!"); for (uint i = 0; i < bananas.length; i++) { require(IERC721(bananaAddress).ownerOf(bananas[i]) == msg.sender , "must be owner of bananas"); } for (uint i = 0; i < bananas.length; i++) { IERC721(bananaAddress).transferFrom(msg.sender, address(0xdead), bananas[i]); } _safeMint(to, bananas.length / 5); } function toggleMinting() external onlyOwner { mintEnabled = !mintEnabled; } function numberMinted(address owner) public view returns (uint256) { return _numberMinted(owner); } function setBaseURI(string calldata baseURI_) external onlyOwner { baseURI = baseURI_; } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "banana does not exist"); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, Strings.toString(tokenId))) : ""; } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function withdraw() external onlyOwner nonReentrant { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "transfer failed"); } function setOwnersExplicit(uint256 quantity) external onlyOwner nonReentrant { _setOwnersExplicit(quantity); } function getOwnershipData(uint256 tokenId) external view returns (TokenOwnership memory) { return ownershipOf(tokenId); } /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { require(quantity != 0, "quantity must be nonzero"); require(currentIndex != 0, "no tokens minted yet"); uint256 _nextOwnerToExplicitlySet = nextOwnerToExplicitlySet; require(_nextOwnerToExplicitlySet < currentIndex, "all ownerships have been set"); // Index underflow is impossible. // Counter or index overflow is incredibly unrealistic. unchecked { uint256 endIndex = _nextOwnerToExplicitlySet + quantity - 1; // Set the end index to be the last token index if (endIndex + 1 > currentIndex) { endIndex = currentIndex - 1; } for (uint256 i = _nextOwnerToExplicitlySet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i].addr = ownership.addr; _ownerships[i].startTimestamp = ownership.startTimestamp; } } nextOwnerToExplicitlySet = endIndex + 1; } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_bananaAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"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":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"bananas","type":"uint256[]"}],"name":"batchMutate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"setOwnersExplicit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405261012c600c553480156200001757600080fd5b506040516200262d3803806200262d8339810160408190526200003a9162000144565b6040518060400160405280600d81526020016c4d7574616e742042616e616e6160981b8152506040518060400160405280600d81526020016c4d5554414e542042414e414e4160981b81525081600190816200009791906200021b565b506002620000a682826200021b565b505050620000c3620000bd620000ee60201b60201c565b620000f2565b6001600855600980546001600160a01b0319166001600160a01b0392909216919091179055620002e7565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000602082840312156200015757600080fd5b81516001600160a01b03811681146200016f57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001a157607f821691505b602082108103620001c257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200021657600081815260208120601f850160051c81016020861015620001f15750805b601f850160051c820191505b818110156200021257828155600101620001fd565b5050505b505050565b81516001600160401b0381111562000237576200023762000176565b6200024f816200024884546200018c565b84620001c8565b602080601f8311600181146200028757600084156200026e5750858301515b600019600386901b1c1916600185901b17855562000212565b600085815260208120601f198616915b82811015620002b85788860151825594840194600190910190840162000297565b5085821015620002d75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61233680620002f76000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c806370a0823111610104578063b88d4fde116100a2578063d7224ba011610071578063d7224ba0146103e1578063dc33e681146103ea578063e985e9c5146103fd578063f2fde38b1461043957600080fd5b8063b88d4fde146103a5578063c87b56dd146103b8578063d1239730146103cb578063d5abeb01146103d857600080fd5b80638da5cb5b116100de5780638da5cb5b146103395780639231ab2a1461034a57806395d89b411461038a578063a22cb4651461039257600080fd5b806370a0823114610316578063715018a6146103295780637d55094d1461033157600080fd5b80632d20fb601161017c5780634f6ccce71161014b5780634f6ccce7146102d557806355f804b3146102e85780636352211e146102fb5780636c0360eb1461030e57600080fd5b80632d20fb60146102945780632f745c59146102a75780633ccfd60b146102ba57806342842e0e146102c257600080fd5b8063095ea7b3116101b8578063095ea7b31461024757806318160ddd1461025c5780631b0bc53c1461026e57806323b872dd1461028157600080fd5b806301ffc9a7146101df57806306fdde0314610207578063081812fc1461021c575b600080fd5b6101f26101ed366004611be0565b61044c565b60405190151581526020015b60405180910390f35b61020f6104b9565b6040516101fe9190611c54565b61022f61022a366004611c67565b61054b565b6040516001600160a01b0390911681526020016101fe565b61025a610255366004611c95565b6105db565b005b6000545b6040519081526020016101fe565b61025a61027c366004611d07565b6106f2565b61025a61028f366004611dc1565b6109e3565b61025a6102a2366004611c67565b6109ee565b6102606102b5366004611c95565b610a5e565b61025a610bb8565b61025a6102d0366004611dc1565b610ca1565b6102606102e3366004611c67565b610cbc565b61025a6102f6366004611e02565b610d1e565b61022f610309366004611c67565b610d33565b61020f610d45565b610260610324366004611e73565b610dd3565b61025a610e64565b61025a610e78565b6007546001600160a01b031661022f565b61035d610358366004611c67565b610e94565b6040805182516001600160a01b031681526020928301516001600160401b031692810192909252016101fe565b61020f610eb1565b61025a6103a0366004611e90565b610ec0565b61025a6103b3366004611ece565b610f84565b61020f6103c6366004611c67565b610fbd565b600d546101f29060ff1681565b610260600c5481565b610260600b5481565b6102606103f8366004611e73565b61106a565b6101f261040b366004611f91565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b61025a610447366004611e73565b611075565b60006001600160e01b031982166380ac58cd60e01b148061047d57506001600160e01b03198216635b5e139f60e01b145b8061049857506001600160e01b0319821663780e9d6360e01b145b806104b357506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600180546104c890611fbf565b80601f01602080910402602001604051908101604052809291908181526020018280546104f490611fbf565b80156105415780601f1061051657610100808354040283529160200191610541565b820191906000526020600020905b81548152906001019060200180831161052457829003601f168201915b5050505050905090565b6000610558826000541190565b6105bf5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006105e682610d33565b9050806001600160a01b0316836001600160a01b0316036106545760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b60648201526084016105b6565b336001600160a01b03821614806106705750610670813361040b565b6106e25760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000000060648201526084016105b6565b6106ed8383836110ee565b505050565b600d5460ff166107345760405162461bcd60e51b815260206004820152600d60248201526c1b5a5b9d08191a5cd8589b1959609a1b60448201526064016105b6565b60058151610742919061200f565b1561079a5760405162461bcd60e51b815260206004820152602260248201527f6d7573742073656c656374206d756c7469706c6573206f6620352062616e616e604482015261617360f01b60648201526084016105b6565b600c546107a8906001612039565b600582516107b6919061204c565b6000546107c39190612039565b106108025760405162461bcd60e51b815260206004820152600f60248201526e776527726520736f6c64206f75742160881b60448201526064016105b6565b60005b815181101561090657600954825133916001600160a01b031690636352211e9085908590811061083757610837612060565b60200260200101516040518263ffffffff1660e01b815260040161085d91815260200190565b602060405180830381865afa15801561087a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089e9190612076565b6001600160a01b0316146108f45760405162461bcd60e51b815260206004820152601860248201527f6d757374206265206f776e6572206f662062616e616e6173000000000000000060448201526064016105b6565b806108fe81612093565b915050610805565b5060005b81518110156109c75760095482516001600160a01b03909116906323b872dd90339061dead9086908690811061094257610942612060565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561099c57600080fd5b505af11580156109b0573d6000803e3d6000fd5b5050505080806109bf90612093565b91505061090a565b506109df82600583516109da919061204c565b61114a565b5050565b6106ed838383611164565b6109f6611447565b600260085403610a485760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105b6565b6002600855610a56816114a1565b506001600855565b6000610a6983610dd3565b8210610ac25760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b60648201526084016105b6565b600080549080805b83811015610b58576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215610b1c57805192505b876001600160a01b0316836001600160a01b031603610b4f57868403610b48575093506104b392505050565b6001909301925b50600101610aca565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b60648201526084016105b6565b610bc0611447565b600260085403610c125760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105b6565b6002600855604051600090339047908381818185875af1925050503d8060008114610c59576040519150601f19603f3d011682016040523d82523d6000602084013e610c5e565b606091505b5050905080610a565760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b60448201526064016105b6565b6106ed83838360405180602001604052806000815250610f84565b600080548210610d1a5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b60648201526084016105b6565b5090565b610d26611447565b600a6106ed8284836120fa565b6000610d3e82611635565b5192915050565b600a8054610d5290611fbf565b80601f0160208091040260200160405190810160405280929190818152602001828054610d7e90611fbf565b8015610dcb5780601f10610da057610100808354040283529160200191610dcb565b820191906000526020600020905b815481529060010190602001808311610dae57829003601f168201915b505050505081565b60006001600160a01b038216610e3f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084016105b6565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b610e6c611447565b610e76600061170b565b565b610e80611447565b600d805460ff19811660ff90911615179055565b60408051808201909152600080825260208201526104b382611635565b6060600280546104c890611fbf565b336001600160a01b03831603610f185760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c657200000000000060448201526064016105b6565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610f8f848484611164565b610f9b8484848461175d565b610fb75760405162461bcd60e51b81526004016105b6906121b9565b50505050565b6060610fca826000541190565b61100e5760405162461bcd60e51b815260206004820152601560248201527418985b985b9848191bd95cc81b9bdd08195e1a5cdd605a1b60448201526064016105b6565b600a805461101b90611fbf565b905060000361103957604051806020016040528060008152506104b3565b600a6110448361185f565b60405160200161105592919061220c565b60405160208183030381529060405292915050565b60006104b38261195f565b61107d611447565b6001600160a01b0381166110e25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105b6565b6110eb8161170b565b50565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6109df8282604051806020016040528060008152506119fd565b600061116f82611635565b80519091506000906001600160a01b0316336001600160a01b031614806111a657503361119b8461054b565b6001600160a01b0316145b806111b8575081516111b8903361040b565b9050806112225760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016105b6565b846001600160a01b031682600001516001600160a01b0316146112965760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b60648201526084016105b6565b6001600160a01b0384166112fa5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016105b6565b61130a60008484600001516110ee565b6001600160a01b03858116600090815260046020908152604080832080546001600160801b03198082166001600160801b03928316600019018316179092558986168086528386208054938416938316600190810190931693909317909255888552600390935281842080546001600160e01b031916909117600160a01b426001600160401b0316021790559086018083529120549091166113fd576113b1816000541190565b156113fd57825160008281526003602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6007546001600160a01b03163314610e765760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105b6565b806000036114f15760405162461bcd60e51b815260206004820152601860248201527f7175616e74697479206d757374206265206e6f6e7a65726f000000000000000060448201526064016105b6565b60005460000361153a5760405162461bcd60e51b81526020600482015260146024820152731b9bc81d1bdad95b9cc81b5a5b9d1959081e595d60621b60448201526064016105b6565b600b54600054811061158e5760405162461bcd60e51b815260206004820152601c60248201527f616c6c206f776e657273686970732068617665206265656e207365740000000060448201526064016105b6565b60005482820160001981019110156115a95750600054600019015b815b81811161162a576000818152600360205260409020546001600160a01b03166116225760006115d982611635565b80516000848152600360209081526040909120805491909301516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b0390921691909117179055505b6001016115ab565b50600101600b555050565b6040805180820190915260008082526020820152611654826000541190565b6116b35760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b60648201526084016105b6565b815b6000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215611701579392505050565b50600019016116b5565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b1561185357604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906117a1903390899088908890600401612293565b6020604051808303816000875af19250505080156117dc575060408051601f3d908101601f191682019092526117d9918101906122d0565b60015b611839573d80801561180a576040519150601f19603f3d011682016040523d82523d6000602084013e61180f565b606091505b5080516000036118315760405162461bcd60e51b81526004016105b6906121b9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611857565b5060015b949350505050565b6060816000036118865750506040805180820190915260018152600360fc1b602082015290565b8160005b81156118b0578061189a81612093565b91506118a99050600a8361204c565b915061188a565b6000816001600160401b038111156118ca576118ca611cc1565b6040519080825280601f01601f1916602001820160405280156118f4576020820181803683370190505b5090505b8415611857576119096001836122ed565b9150611916600a8661200f565b611921906030612039565b60f81b81838151811061193657611936612060565b60200101906001600160f81b031916908160001a905350611958600a8661204c565b94506118f8565b60006001600160a01b0382166119d15760405162461bcd60e51b815260206004820152603160248201527f455243373231413a206e756d626572206d696e74656420717565727920666f7260448201527020746865207a65726f206164647265737360781b60648201526084016105b6565b506001600160a01b0316600090815260046020526040902054600160801b90046001600160801b031690565b6106ed83838360016000546001600160a01b038516611a685760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016105b6565b83600003611ac95760405162461bcd60e51b815260206004820152602860248201527f455243373231413a207175616e74697479206d75737420626520677265617465604482015267072207468616e20360c41b60648201526084016105b6565b6001600160a01b03851660008181526004602090815260408083208054600160801b6001600160801b031982166001600160801b039283168c01831690811782900483168c01909216021790558483526003909152812080546001600160e01b031916909217600160a01b426001600160401b0316021790915581905b85811015611bc15760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48315611bb557611b99600088848861175d565b611bb55760405162461bcd60e51b81526004016105b6906121b9565b60019182019101611b46565b50600055611440565b6001600160e01b0319811681146110eb57600080fd5b600060208284031215611bf257600080fd5b8135611bfd81611bca565b9392505050565b60005b83811015611c1f578181015183820152602001611c07565b50506000910152565b60008151808452611c40816020860160208601611c04565b601f01601f19169290920160200192915050565b602081526000611bfd6020830184611c28565b600060208284031215611c7957600080fd5b5035919050565b6001600160a01b03811681146110eb57600080fd5b60008060408385031215611ca857600080fd5b8235611cb381611c80565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611cff57611cff611cc1565b604052919050565b60008060408385031215611d1a57600080fd5b8235611d2581611c80565b91506020838101356001600160401b0380821115611d4257600080fd5b818601915086601f830112611d5657600080fd5b813581811115611d6857611d68611cc1565b8060051b9150611d79848301611cd7565b8181529183018401918481019089841115611d9357600080fd5b938501935b83851015611db157843582529385019390850190611d98565b8096505050505050509250929050565b600080600060608486031215611dd657600080fd5b8335611de181611c80565b92506020840135611df181611c80565b929592945050506040919091013590565b60008060208385031215611e1557600080fd5b82356001600160401b0380821115611e2c57600080fd5b818501915085601f830112611e4057600080fd5b813581811115611e4f57600080fd5b866020828501011115611e6157600080fd5b60209290920196919550909350505050565b600060208284031215611e8557600080fd5b8135611bfd81611c80565b60008060408385031215611ea357600080fd5b8235611eae81611c80565b915060208301358015158114611ec357600080fd5b809150509250929050565b60008060008060808587031215611ee457600080fd5b8435611eef81611c80565b9350602085810135611f0081611c80565b93506040860135925060608601356001600160401b0380821115611f2357600080fd5b818801915088601f830112611f3757600080fd5b813581811115611f4957611f49611cc1565b611f5b601f8201601f19168501611cd7565b91508082528984828501011115611f7157600080fd5b808484018584013760008482840101525080935050505092959194509250565b60008060408385031215611fa457600080fd5b8235611faf81611c80565b91506020830135611ec381611c80565b600181811c90821680611fd357607f821691505b602082108103611ff357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601260045260246000fd5b60008261201e5761201e611ff9565b500690565b634e487b7160e01b600052601160045260246000fd5b808201808211156104b3576104b3612023565b60008261205b5761205b611ff9565b500490565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561208857600080fd5b8151611bfd81611c80565b6000600182016120a5576120a5612023565b5060010190565b601f8211156106ed57600081815260208120601f850160051c810160208610156120d35750805b601f850160051c820191505b818110156120f2578281556001016120df565b505050505050565b6001600160401b0383111561211157612111611cc1565b6121258361211f8354611fbf565b836120ac565b6000601f84116001811461215957600085156121415750838201355b600019600387901b1c1916600186901b178355611440565b600083815260209020601f19861690835b8281101561218a578685013582556020948501946001909201910161216a565b50868210156121a75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b600080845461221a81611fbf565b60018281168015612232576001811461224757612276565b60ff1984168752821515830287019450612276565b8860005260208060002060005b8581101561226d5781548a820152908401908201612254565b50505082870194505b50505050835161228a818360208801611c04565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906122c690830184611c28565b9695505050505050565b6000602082840312156122e257600080fd5b8151611bfd81611bca565b818103818111156104b3576104b361202356fea2646970667358221220d103db0c4510f3f7ab8cac11c30abda49ba5e538dd302d033b0e06a6178a169364736f6c63430008100033000000000000000000000000f59afe732b2793d541780fd02945228db1fad8ed
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101da5760003560e01c806370a0823111610104578063b88d4fde116100a2578063d7224ba011610071578063d7224ba0146103e1578063dc33e681146103ea578063e985e9c5146103fd578063f2fde38b1461043957600080fd5b8063b88d4fde146103a5578063c87b56dd146103b8578063d1239730146103cb578063d5abeb01146103d857600080fd5b80638da5cb5b116100de5780638da5cb5b146103395780639231ab2a1461034a57806395d89b411461038a578063a22cb4651461039257600080fd5b806370a0823114610316578063715018a6146103295780637d55094d1461033157600080fd5b80632d20fb601161017c5780634f6ccce71161014b5780634f6ccce7146102d557806355f804b3146102e85780636352211e146102fb5780636c0360eb1461030e57600080fd5b80632d20fb60146102945780632f745c59146102a75780633ccfd60b146102ba57806342842e0e146102c257600080fd5b8063095ea7b3116101b8578063095ea7b31461024757806318160ddd1461025c5780631b0bc53c1461026e57806323b872dd1461028157600080fd5b806301ffc9a7146101df57806306fdde0314610207578063081812fc1461021c575b600080fd5b6101f26101ed366004611be0565b61044c565b60405190151581526020015b60405180910390f35b61020f6104b9565b6040516101fe9190611c54565b61022f61022a366004611c67565b61054b565b6040516001600160a01b0390911681526020016101fe565b61025a610255366004611c95565b6105db565b005b6000545b6040519081526020016101fe565b61025a61027c366004611d07565b6106f2565b61025a61028f366004611dc1565b6109e3565b61025a6102a2366004611c67565b6109ee565b6102606102b5366004611c95565b610a5e565b61025a610bb8565b61025a6102d0366004611dc1565b610ca1565b6102606102e3366004611c67565b610cbc565b61025a6102f6366004611e02565b610d1e565b61022f610309366004611c67565b610d33565b61020f610d45565b610260610324366004611e73565b610dd3565b61025a610e64565b61025a610e78565b6007546001600160a01b031661022f565b61035d610358366004611c67565b610e94565b6040805182516001600160a01b031681526020928301516001600160401b031692810192909252016101fe565b61020f610eb1565b61025a6103a0366004611e90565b610ec0565b61025a6103b3366004611ece565b610f84565b61020f6103c6366004611c67565b610fbd565b600d546101f29060ff1681565b610260600c5481565b610260600b5481565b6102606103f8366004611e73565b61106a565b6101f261040b366004611f91565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b61025a610447366004611e73565b611075565b60006001600160e01b031982166380ac58cd60e01b148061047d57506001600160e01b03198216635b5e139f60e01b145b8061049857506001600160e01b0319821663780e9d6360e01b145b806104b357506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600180546104c890611fbf565b80601f01602080910402602001604051908101604052809291908181526020018280546104f490611fbf565b80156105415780601f1061051657610100808354040283529160200191610541565b820191906000526020600020905b81548152906001019060200180831161052457829003601f168201915b5050505050905090565b6000610558826000541190565b6105bf5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006105e682610d33565b9050806001600160a01b0316836001600160a01b0316036106545760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b60648201526084016105b6565b336001600160a01b03821614806106705750610670813361040b565b6106e25760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000000060648201526084016105b6565b6106ed8383836110ee565b505050565b600d5460ff166107345760405162461bcd60e51b815260206004820152600d60248201526c1b5a5b9d08191a5cd8589b1959609a1b60448201526064016105b6565b60058151610742919061200f565b1561079a5760405162461bcd60e51b815260206004820152602260248201527f6d7573742073656c656374206d756c7469706c6573206f6620352062616e616e604482015261617360f01b60648201526084016105b6565b600c546107a8906001612039565b600582516107b6919061204c565b6000546107c39190612039565b106108025760405162461bcd60e51b815260206004820152600f60248201526e776527726520736f6c64206f75742160881b60448201526064016105b6565b60005b815181101561090657600954825133916001600160a01b031690636352211e9085908590811061083757610837612060565b60200260200101516040518263ffffffff1660e01b815260040161085d91815260200190565b602060405180830381865afa15801561087a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089e9190612076565b6001600160a01b0316146108f45760405162461bcd60e51b815260206004820152601860248201527f6d757374206265206f776e6572206f662062616e616e6173000000000000000060448201526064016105b6565b806108fe81612093565b915050610805565b5060005b81518110156109c75760095482516001600160a01b03909116906323b872dd90339061dead9086908690811061094257610942612060565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561099c57600080fd5b505af11580156109b0573d6000803e3d6000fd5b5050505080806109bf90612093565b91505061090a565b506109df82600583516109da919061204c565b61114a565b5050565b6106ed838383611164565b6109f6611447565b600260085403610a485760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105b6565b6002600855610a56816114a1565b506001600855565b6000610a6983610dd3565b8210610ac25760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b60648201526084016105b6565b600080549080805b83811015610b58576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215610b1c57805192505b876001600160a01b0316836001600160a01b031603610b4f57868403610b48575093506104b392505050565b6001909301925b50600101610aca565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b60648201526084016105b6565b610bc0611447565b600260085403610c125760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105b6565b6002600855604051600090339047908381818185875af1925050503d8060008114610c59576040519150601f19603f3d011682016040523d82523d6000602084013e610c5e565b606091505b5050905080610a565760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b60448201526064016105b6565b6106ed83838360405180602001604052806000815250610f84565b600080548210610d1a5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b60648201526084016105b6565b5090565b610d26611447565b600a6106ed8284836120fa565b6000610d3e82611635565b5192915050565b600a8054610d5290611fbf565b80601f0160208091040260200160405190810160405280929190818152602001828054610d7e90611fbf565b8015610dcb5780601f10610da057610100808354040283529160200191610dcb565b820191906000526020600020905b815481529060010190602001808311610dae57829003601f168201915b505050505081565b60006001600160a01b038216610e3f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084016105b6565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b610e6c611447565b610e76600061170b565b565b610e80611447565b600d805460ff19811660ff90911615179055565b60408051808201909152600080825260208201526104b382611635565b6060600280546104c890611fbf565b336001600160a01b03831603610f185760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c657200000000000060448201526064016105b6565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610f8f848484611164565b610f9b8484848461175d565b610fb75760405162461bcd60e51b81526004016105b6906121b9565b50505050565b6060610fca826000541190565b61100e5760405162461bcd60e51b815260206004820152601560248201527418985b985b9848191bd95cc81b9bdd08195e1a5cdd605a1b60448201526064016105b6565b600a805461101b90611fbf565b905060000361103957604051806020016040528060008152506104b3565b600a6110448361185f565b60405160200161105592919061220c565b60405160208183030381529060405292915050565b60006104b38261195f565b61107d611447565b6001600160a01b0381166110e25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105b6565b6110eb8161170b565b50565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6109df8282604051806020016040528060008152506119fd565b600061116f82611635565b80519091506000906001600160a01b0316336001600160a01b031614806111a657503361119b8461054b565b6001600160a01b0316145b806111b8575081516111b8903361040b565b9050806112225760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016105b6565b846001600160a01b031682600001516001600160a01b0316146112965760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b60648201526084016105b6565b6001600160a01b0384166112fa5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016105b6565b61130a60008484600001516110ee565b6001600160a01b03858116600090815260046020908152604080832080546001600160801b03198082166001600160801b03928316600019018316179092558986168086528386208054938416938316600190810190931693909317909255888552600390935281842080546001600160e01b031916909117600160a01b426001600160401b0316021790559086018083529120549091166113fd576113b1816000541190565b156113fd57825160008281526003602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6007546001600160a01b03163314610e765760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105b6565b806000036114f15760405162461bcd60e51b815260206004820152601860248201527f7175616e74697479206d757374206265206e6f6e7a65726f000000000000000060448201526064016105b6565b60005460000361153a5760405162461bcd60e51b81526020600482015260146024820152731b9bc81d1bdad95b9cc81b5a5b9d1959081e595d60621b60448201526064016105b6565b600b54600054811061158e5760405162461bcd60e51b815260206004820152601c60248201527f616c6c206f776e657273686970732068617665206265656e207365740000000060448201526064016105b6565b60005482820160001981019110156115a95750600054600019015b815b81811161162a576000818152600360205260409020546001600160a01b03166116225760006115d982611635565b80516000848152600360209081526040909120805491909301516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b0390921691909117179055505b6001016115ab565b50600101600b555050565b6040805180820190915260008082526020820152611654826000541190565b6116b35760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b60648201526084016105b6565b815b6000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215611701579392505050565b50600019016116b5565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b1561185357604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906117a1903390899088908890600401612293565b6020604051808303816000875af19250505080156117dc575060408051601f3d908101601f191682019092526117d9918101906122d0565b60015b611839573d80801561180a576040519150601f19603f3d011682016040523d82523d6000602084013e61180f565b606091505b5080516000036118315760405162461bcd60e51b81526004016105b6906121b9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611857565b5060015b949350505050565b6060816000036118865750506040805180820190915260018152600360fc1b602082015290565b8160005b81156118b0578061189a81612093565b91506118a99050600a8361204c565b915061188a565b6000816001600160401b038111156118ca576118ca611cc1565b6040519080825280601f01601f1916602001820160405280156118f4576020820181803683370190505b5090505b8415611857576119096001836122ed565b9150611916600a8661200f565b611921906030612039565b60f81b81838151811061193657611936612060565b60200101906001600160f81b031916908160001a905350611958600a8661204c565b94506118f8565b60006001600160a01b0382166119d15760405162461bcd60e51b815260206004820152603160248201527f455243373231413a206e756d626572206d696e74656420717565727920666f7260448201527020746865207a65726f206164647265737360781b60648201526084016105b6565b506001600160a01b0316600090815260046020526040902054600160801b90046001600160801b031690565b6106ed83838360016000546001600160a01b038516611a685760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016105b6565b83600003611ac95760405162461bcd60e51b815260206004820152602860248201527f455243373231413a207175616e74697479206d75737420626520677265617465604482015267072207468616e20360c41b60648201526084016105b6565b6001600160a01b03851660008181526004602090815260408083208054600160801b6001600160801b031982166001600160801b039283168c01831690811782900483168c01909216021790558483526003909152812080546001600160e01b031916909217600160a01b426001600160401b0316021790915581905b85811015611bc15760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48315611bb557611b99600088848861175d565b611bb55760405162461bcd60e51b81526004016105b6906121b9565b60019182019101611b46565b50600055611440565b6001600160e01b0319811681146110eb57600080fd5b600060208284031215611bf257600080fd5b8135611bfd81611bca565b9392505050565b60005b83811015611c1f578181015183820152602001611c07565b50506000910152565b60008151808452611c40816020860160208601611c04565b601f01601f19169290920160200192915050565b602081526000611bfd6020830184611c28565b600060208284031215611c7957600080fd5b5035919050565b6001600160a01b03811681146110eb57600080fd5b60008060408385031215611ca857600080fd5b8235611cb381611c80565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611cff57611cff611cc1565b604052919050565b60008060408385031215611d1a57600080fd5b8235611d2581611c80565b91506020838101356001600160401b0380821115611d4257600080fd5b818601915086601f830112611d5657600080fd5b813581811115611d6857611d68611cc1565b8060051b9150611d79848301611cd7565b8181529183018401918481019089841115611d9357600080fd5b938501935b83851015611db157843582529385019390850190611d98565b8096505050505050509250929050565b600080600060608486031215611dd657600080fd5b8335611de181611c80565b92506020840135611df181611c80565b929592945050506040919091013590565b60008060208385031215611e1557600080fd5b82356001600160401b0380821115611e2c57600080fd5b818501915085601f830112611e4057600080fd5b813581811115611e4f57600080fd5b866020828501011115611e6157600080fd5b60209290920196919550909350505050565b600060208284031215611e8557600080fd5b8135611bfd81611c80565b60008060408385031215611ea357600080fd5b8235611eae81611c80565b915060208301358015158114611ec357600080fd5b809150509250929050565b60008060008060808587031215611ee457600080fd5b8435611eef81611c80565b9350602085810135611f0081611c80565b93506040860135925060608601356001600160401b0380821115611f2357600080fd5b818801915088601f830112611f3757600080fd5b813581811115611f4957611f49611cc1565b611f5b601f8201601f19168501611cd7565b91508082528984828501011115611f7157600080fd5b808484018584013760008482840101525080935050505092959194509250565b60008060408385031215611fa457600080fd5b8235611faf81611c80565b91506020830135611ec381611c80565b600181811c90821680611fd357607f821691505b602082108103611ff357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601260045260246000fd5b60008261201e5761201e611ff9565b500690565b634e487b7160e01b600052601160045260246000fd5b808201808211156104b3576104b3612023565b60008261205b5761205b611ff9565b500490565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561208857600080fd5b8151611bfd81611c80565b6000600182016120a5576120a5612023565b5060010190565b601f8211156106ed57600081815260208120601f850160051c810160208610156120d35750805b601f850160051c820191505b818110156120f2578281556001016120df565b505050505050565b6001600160401b0383111561211157612111611cc1565b6121258361211f8354611fbf565b836120ac565b6000601f84116001811461215957600085156121415750838201355b600019600387901b1c1916600186901b178355611440565b600083815260209020601f19861690835b8281101561218a578685013582556020948501946001909201910161216a565b50868210156121a75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b600080845461221a81611fbf565b60018281168015612232576001811461224757612276565b60ff1984168752821515830287019450612276565b8860005260208060002060005b8581101561226d5781548a820152908401908201612254565b50505082870194505b50505050835161228a818360208801611c04565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906122c690830184611c28565b9695505050505050565b6000602082840312156122e257600080fd5b8151611bfd81611bca565b818103818111156104b3576104b361202356fea2646970667358221220d103db0c4510f3f7ab8cac11c30abda49ba5e538dd302d033b0e06a6178a169364736f6c63430008100033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f59afe732b2793d541780fd02945228db1fad8ed
-----Decoded View---------------
Arg [0] : _bananaAddress (address): 0xF59aFe732B2793d541780fd02945228db1fAd8ed
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000f59afe732b2793d541780fd02945228db1fad8ed
Deployed Bytecode Sourcemap
67494:3583:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54283:372;;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;54283:372:0;;;;;;;;56169:100;;;:::i;:::-;;;;;;;:::i;57731:214::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;57731:214:0;1533:203:1;57252:413:0;;;;;;:::i;:::-;;:::i;:::-;;52540:100;52593:7;52620:12;52540:100;;;2343:25:1;;;2331:2;2316:18;52540:100:0;2197:177:1;67940:665:0;;;;;;:::i;:::-;;:::i;58607:170::-;;;;;;:::i;:::-;;:::i;69519:124::-;;;;;;:::i;:::-;;:::i;53204:1007::-;;;;;;:::i;:::-;;:::i;69326:185::-;;;:::i;58848:::-;;;;;;:::i;:::-;;:::i;52717:187::-;;;;;;:::i;:::-;;:::i;68831:102::-;;;;;;:::i;:::-;;:::i;55978:124::-;;;;;;:::i;:::-;;:::i;67635:28::-;;;:::i;54719:221::-;;;;;;:::i;:::-;;:::i;17044:103::-;;;:::i;68613:89::-;;;:::i;16396:87::-;16469:6;;-1:-1:-1;;;;;16469:6:0;16396:87;;69651:135;;;;;;:::i;:::-;;:::i;:::-;;;;5419:13:1;;-1:-1:-1;;;;;5415:39:1;5397:58;;5515:4;5503:17;;;5497:24;-1:-1:-1;;;;;5493:49:1;5471:20;;;5464:79;;;;5370:18;69651:135:0;5187:362:1;56338:104:0;;;:::i;58017:288::-;;;;;;:::i;:::-;;:::i;59104:355::-;;;;;;:::i;:::-;;:::i;68941:261::-;;;;;;:::i;:::-;;:::i;67765:32::-;;;;;;;;;67722:36;;;;;;67670:45;;;;;;68710:113;;;;;;:::i;:::-;;:::i;58376:164::-;;;;;;:::i;:::-;-1:-1:-1;;;;;58497:25:0;;;58473:4;58497:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;58376:164;17302:201;;;;;;:::i;:::-;;:::i;54283:372::-;54385:4;-1:-1:-1;;;;;;54422:40:0;;-1:-1:-1;;;54422:40:0;;:105;;-1:-1:-1;;;;;;;54479:48:0;;-1:-1:-1;;;54479:48:0;54422:105;:172;;;-1:-1:-1;;;;;;;54544:50:0;;-1:-1:-1;;;54544:50:0;54422:172;:225;;;-1:-1:-1;;;;;;;;;;29359:40:0;;;54611:36;54402:245;54283:372;-1:-1:-1;;54283:372:0:o;56169:100::-;56223:13;56256:5;56249:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56169:100;:::o;57731:214::-;57799:7;57827:16;57835:7;59771:4;59805:12;-1:-1:-1;59795:22:0;59714:111;57827:16;57819:74;;;;-1:-1:-1;;;57819:74:0;;8068:2:1;57819:74:0;;;8050:21:1;8107:2;8087:18;;;8080:30;8146:34;8126:18;;;8119:62;-1:-1:-1;;;8197:18:1;;;8190:43;8250:19;;57819:74:0;;;;;;;;;-1:-1:-1;57913:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;57913:24:0;;57731:214::o;57252:413::-;57325:13;57341:24;57357:7;57341:15;:24::i;:::-;57325:40;;57390:5;-1:-1:-1;;;;;57384:11:0;:2;-1:-1:-1;;;;;57384:11:0;;57376:58;;;;-1:-1:-1;;;57376:58:0;;8482:2:1;57376:58:0;;;8464:21:1;8521:2;8501:18;;;8494:30;8560:34;8540:18;;;8533:62;-1:-1:-1;;;8611:18:1;;;8604:32;8653:19;;57376:58:0;8280:398:1;57376:58:0;15027:10;-1:-1:-1;;;;;57469:21:0;;;;:62;;-1:-1:-1;57494:37:0;57511:5;15027:10;58376:164;:::i;57494:37::-;57447:169;;;;-1:-1:-1;;;57447:169:0;;8885:2:1;57447:169:0;;;8867:21:1;8924:2;8904:18;;;8897:30;8963:34;8943:18;;;8936:62;9034:27;9014:18;;;9007:55;9079:19;;57447:169:0;8683:421:1;57447:169:0;57629:28;57638:2;57642:7;57651:5;57629:8;:28::i;:::-;57314:351;57252:413;;:::o;67940:665::-;68024:11;;;;68016:37;;;;-1:-1:-1;;;68016:37:0;;9311:2:1;68016:37:0;;;9293:21:1;9350:2;9330:18;;;9323:30;-1:-1:-1;;;9369:18:1;;;9362:43;9422:18;;68016:37:0;9109:337:1;68016:37:0;68089:1;68072:7;:14;:18;;;;:::i;:::-;:23;68064:70;;;;-1:-1:-1;;;68064:70:0;;9902:2:1;68064:70:0;;;9884:21:1;9941:2;9921:18;;;9914:30;9980:34;9960:18;;;9953:62;-1:-1:-1;;;10031:18:1;;;10024:32;10073:19;;68064:70:0;9700:398:1;68064:70:0;68192:9;;:13;;68204:1;68192:13;:::i;:::-;68187:1;68170:7;:14;:18;;;;:::i;:::-;52593:7;52620:12;68153:36;;;;:::i;:::-;:52;68145:80;;;;-1:-1:-1;;;68145:80:0;;10692:2:1;68145:80:0;;;10674:21:1;10731:2;10711:18;;;10704:30;-1:-1:-1;;;10750:18:1;;;10743:45;10805:18;;68145:80:0;10490:339:1;68145:80:0;68241:6;68236:163;68257:7;:14;68253:1;:18;68236:163;;;68309:13;;68332:10;;68347;;-1:-1:-1;;;;;68309:13:0;;68301:30;;68332:7;;68340:1;;68332:10;;;;;;:::i;:::-;;;;;;;68301:42;;;;;;;;;;;;;2343:25:1;;2331:2;2316:18;;2197:177;68301:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;68301:56:0;;68293:94;;;;-1:-1:-1;;;68293:94:0;;11424:2:1;68293:94:0;;;11406:21:1;11463:2;11443:18;;;11436:30;11502:26;11482:18;;;11475:54;11546:18;;68293:94:0;11222:348:1;68293:94:0;68273:3;;;;:::i;:::-;;;;68236:163;;;;68414:6;68409:145;68430:7;:14;68426:1;:18;68409:145;;;68474:13;;68531:10;;-1:-1:-1;;;;;68474:13:0;;;;68466:35;;68502:10;;68522:6;;68531:7;;68539:1;;68531:10;;;;;;:::i;:::-;;;;;;;;;;;68466:76;;-1:-1:-1;;;;;;68466:76:0;;;;;;;-1:-1:-1;;;;;11973:15:1;;;68466:76:0;;;11955:34:1;12025:15;;;;12005:18;;;11998:43;12057:18;;;12050:34;11890:18;;68466:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68446:3;;;;;:::i;:::-;;;;68409:145;;;;68564:33;68574:2;68595:1;68578:7;:14;:18;;;;:::i;:::-;68564:9;:33::i;:::-;67940:665;;:::o;58607:170::-;58741:28;58751:4;58757:2;58761:7;58741:9;:28::i;69519:124::-;16282:13;:11;:13::i;:::-;1851:1:::1;2449:7;;:19:::0;2441:63:::1;;;::::0;-1:-1:-1;;;2441:63:0;;12297:2:1;2441:63:0::1;::::0;::::1;12279:21:1::0;12336:2;12316:18;;;12309:30;12375:33;12355:18;;;12348:61;12426:18;;2441:63:0::1;12095:355:1::0;2441:63:0::1;1851:1;2582:7;:18:::0;69607:28:::2;69626:8:::0;69607:18:::2;:28::i;:::-;-1:-1:-1::0;1807:1:0::1;2761:7;:22:::0;69519:124::o;53204:1007::-;53293:7;53329:16;53339:5;53329:9;:16::i;:::-;53321:5;:24;53313:71;;;;-1:-1:-1;;;53313:71:0;;12657:2:1;53313:71:0;;;12639:21:1;12696:2;12676:18;;;12669:30;12735:34;12715:18;;;12708:62;-1:-1:-1;;;12786:18:1;;;12779:32;12828:19;;53313:71:0;12455:398:1;53313:71:0;53395:22;52620:12;;;53395:22;;53658:466;53678:14;53674:1;:18;53658:466;;;53718:31;53752:14;;;:11;:14;;;;;;;;;53718:48;;;;;;;;;-1:-1:-1;;;;;53718:48:0;;;;;-1:-1:-1;;;53718:48:0;;;-1:-1:-1;;;;;53718:48:0;;;;;;;;53789:28;53785:111;;53862:14;;;-1:-1:-1;53785:111:0;53939:5;-1:-1:-1;;;;;53918:26:0;:17;-1:-1:-1;;;;;53918:26:0;;53914:195;;53988:5;53973:11;:20;53969:85;;-1:-1:-1;54029:1:0;-1:-1:-1;54022:8:0;;-1:-1:-1;;;54022:8:0;53969:85;54076:13;;;;;53914:195;-1:-1:-1;53694:3:0;;53658:466;;;-1:-1:-1;54147:56:0;;-1:-1:-1;;;54147:56:0;;13060:2:1;54147:56:0;;;13042:21:1;13099:2;13079:18;;;13072:30;13138:34;13118:18;;;13111:62;-1:-1:-1;;;13189:18:1;;;13182:44;13243:19;;54147:56:0;12858:410:1;69326:185:0;16282:13;:11;:13::i;:::-;1851:1:::1;2449:7;;:19:::0;2441:63:::1;;;::::0;-1:-1:-1;;;2441:63:0;;12297:2:1;2441:63:0::1;::::0;::::1;12279:21:1::0;12336:2;12316:18;;;12309:30;12375:33;12355:18;;;12348:61;12426:18;;2441:63:0::1;12095:355:1::0;2441:63:0::1;1851:1;2582:7;:18:::0;69408:49:::2;::::0;69390:12:::2;::::0;69408:10:::2;::::0;69431:21:::2;::::0;69390:12;69408:49;69390:12;69408:49;69431:21;69408:10;:49:::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69389:68;;;69476:7;69468:35;;;::::0;-1:-1:-1;;;69468:35:0;;13685:2:1;69468:35:0::2;::::0;::::2;13667:21:1::0;13724:2;13704:18;;;13697:30;-1:-1:-1;;;13743:18:1;;;13736:45;13798:18;;69468:35:0::2;13483:339:1::0;58848:185:0;58986:39;59003:4;59009:2;59013:7;58986:39;;;;;;;;;;;;:16;:39::i;52717:187::-;52784:7;52620:12;;52812:5;:21;52804:69;;;;-1:-1:-1;;;52804:69:0;;14029:2:1;52804:69:0;;;14011:21:1;14068:2;14048:18;;;14041:30;14107:34;14087:18;;;14080:62;-1:-1:-1;;;14158:18:1;;;14151:33;14201:19;;52804:69:0;13827:399:1;52804:69:0;-1:-1:-1;52891:5:0;52717:187::o;68831:102::-;16282:13;:11;:13::i;:::-;68907:7:::1;:18;68917:8:::0;;68907:7;:18:::1;:::i;55978:124::-:0;56042:7;56069:20;56081:7;56069:11;:20::i;:::-;:25;;55978:124;-1:-1:-1;;55978:124:0:o;67635:28::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;54719:221::-;54783:7;-1:-1:-1;;;;;54811:19:0;;54803:75;;;;-1:-1:-1;;;54803:75:0;;16491:2:1;54803:75:0;;;16473:21:1;16530:2;16510:18;;;16503:30;16569:34;16549:18;;;16542:62;-1:-1:-1;;;16620:18:1;;;16613:41;16671:19;;54803:75:0;16289:407:1;54803:75:0;-1:-1:-1;;;;;;54904:19:0;;;;;:12;:19;;;;;:27;-1:-1:-1;;;;;54904:27:0;;54719:221::o;17044:103::-;16282:13;:11;:13::i;:::-;17109:30:::1;17136:1;17109:18;:30::i;:::-;17044:103::o:0;68613:89::-;16282:13;:11;:13::i;:::-;68683:11:::1;::::0;;-1:-1:-1;;68668:26:0;::::1;68683:11;::::0;;::::1;68682:12;68668:26;::::0;;68613:89::o;69651:135::-;-1:-1:-1;;;;;;;;;;;;;;;;;69758:20:0;69770:7;69758:11;:20::i;56338:104::-;56394:13;56427:7;56420:14;;;;;:::i;58017:288::-;15027:10;-1:-1:-1;;;;;58112:24:0;;;58104:63;;;;-1:-1:-1;;;58104:63:0;;16903:2:1;58104:63:0;;;16885:21:1;16942:2;16922:18;;;16915:30;16981:28;16961:18;;;16954:56;17027:18;;58104:63:0;16701:350:1;58104:63:0;15027:10;58180:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;58180:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;58180:53:0;;;;;;;;;;58249:48;;540:41:1;;;58180:42:0;;15027:10;58249:48;;513:18:1;58249:48:0;;;;;;;58017:288;;:::o;59104:355::-;59263:28;59273:4;59279:2;59283:7;59263:9;:28::i;:::-;59324:48;59347:4;59353:2;59357:7;59366:5;59324:22;:48::i;:::-;59302:149;;;;-1:-1:-1;;;59302:149:0;;;;;;;:::i;:::-;59104:355;;;;:::o;68941:261::-;69006:13;69040:16;69048:7;59771:4;59805:12;-1:-1:-1;59795:22:0;59714:111;69040:16;69032:50;;;;-1:-1:-1;;;69032:50:0;;17678:2:1;69032:50:0;;;17660:21:1;17717:2;17697:18;;;17690:30;-1:-1:-1;;;17736:18:1;;;17729:51;17797:18;;69032:50:0;17476:345:1;69032:50:0;69106:7;69100:21;;;;;:::i;:::-;;;69125:1;69100:26;:94;;;;;;;;;;;;;;;;;69153:7;69162:25;69179:7;69162:16;:25::i;:::-;69136:52;;;;;;;;;:::i;:::-;;;;;;;;;;;;;69093:101;68941:261;-1:-1:-1;;68941:261:0:o;68710:113::-;68768:7;68795:20;68809:5;68795:13;:20::i;17302:201::-;16282:13;:11;:13::i;:::-;-1:-1:-1;;;;;17391:22:0;::::1;17383:73;;;::::0;-1:-1:-1;;;17383:73:0;;19053:2:1;17383:73:0::1;::::0;::::1;19035:21:1::0;19092:2;19072:18;;;19065:30;19131:34;19111:18;;;19104:62;-1:-1:-1;;;19182:18:1;;;19175:36;19228:19;;17383:73:0::1;18851:402:1::0;17383:73:0::1;17467:28;17486:8;17467:18;:28::i;:::-;17302:201:::0;:::o;64634:196::-;64749:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;64749:29:0;-1:-1:-1;;;;;64749:29:0;;;;;;;;;64794:28;;64749:24;;64794:28;;;;;;;64634:196;;;:::o;59833:104::-;59902:27;59912:2;59916:8;59902:27;;;;;;;;;;;;:9;:27::i;62514:2002::-;62629:35;62667:20;62679:7;62667:11;:20::i;:::-;62742:18;;62629:58;;-1:-1:-1;62700:22:0;;-1:-1:-1;;;;;62726:34:0;15027:10;-1:-1:-1;;;;;62726:34:0;;:87;;;-1:-1:-1;15027:10:0;62777:20;62789:7;62777:11;:20::i;:::-;-1:-1:-1;;;;;62777:36:0;;62726:87;:154;;;-1:-1:-1;62847:18:0;;62830:50;;15027:10;58376:164;:::i;62830:50::-;62700:181;;62902:17;62894:80;;;;-1:-1:-1;;;62894:80:0;;19460:2:1;62894:80:0;;;19442:21:1;19499:2;19479:18;;;19472:30;19538:34;19518:18;;;19511:62;-1:-1:-1;;;19589:18:1;;;19582:48;19647:19;;62894:80:0;19258:414:1;62894:80:0;63017:4;-1:-1:-1;;;;;62995:26:0;:13;:18;;;-1:-1:-1;;;;;62995:26:0;;62987:77;;;;-1:-1:-1;;;62987:77:0;;19879:2:1;62987:77:0;;;19861:21:1;19918:2;19898:18;;;19891:30;19957:34;19937:18;;;19930:62;-1:-1:-1;;;20008:18:1;;;20001:36;20054:19;;62987:77:0;19677:402:1;62987:77:0;-1:-1:-1;;;;;63083:16:0;;63075:66;;;;-1:-1:-1;;;63075:66:0;;20286:2:1;63075:66:0;;;20268:21:1;20325:2;20305:18;;;20298:30;20364:34;20344:18;;;20337:62;-1:-1:-1;;;20415:18:1;;;20408:35;20460:19;;63075:66:0;20084:401:1;63075:66:0;63262:49;63279:1;63283:7;63292:13;:18;;;63262:8;:49::i;:::-;-1:-1:-1;;;;;63607:18:0;;;;;;;:12;:18;;;;;;;;:31;;-1:-1:-1;;;;;;63607:31:0;;;-1:-1:-1;;;;;63607:31:0;;;-1:-1:-1;;63607:31:0;;;;;;;63653:16;;;;;;;;;:29;;;;;;;;-1:-1:-1;63653:29:0;;;;;;;;;;;;;63699:20;;;:11;:20;;;;;;:30;;-1:-1:-1;;;;;;63744:61:0;;;;-1:-1:-1;;;63789:15:0;-1:-1:-1;;;;;63744:61:0;;;;;64079:11;;;64109:24;;;;;:29;64079:11;;64109:29;64105:295;;64177:20;64185:11;59771:4;59805:12;-1:-1:-1;59795:22:0;59714:111;64177:20;64173:212;;;64254:18;;;64222:24;;;:11;:24;;;;;;;;:50;;64337:28;;;;-1:-1:-1;;;;;64295:70:0;-1:-1:-1;;;64295:70:0;-1:-1:-1;;;;;;64295:70:0;;;-1:-1:-1;;;;;64222:50:0;;;64295:70;;;;;;;64173:212;63582:829;64447:7;64443:2;-1:-1:-1;;;;;64428:27:0;64437:4;-1:-1:-1;;;;;64428:27:0;;;;;;;;;;;64466:42;62618:1898;;62514:2002;;;:::o;16561:132::-;16469:6;;-1:-1:-1;;;;;16469:6:0;15027:10;16625:23;16617:68;;;;-1:-1:-1;;;16617:68:0;;20692:2:1;16617:68:0;;;20674:21:1;;;20711:18;;;20704:30;20770:34;20750:18;;;20743:62;20822:18;;16617:68:0;20490:356:1;69898:1174:0;69972:8;69984:1;69972:13;69964:50;;;;-1:-1:-1;;;69964:50:0;;21053:2:1;69964:50:0;;;21035:21:1;21092:2;21072:18;;;21065:30;21131:26;21111:18;;;21104:54;21175:18;;69964:50:0;20851:348:1;69964:50:0;70033:12;;70049:1;70033:17;70025:50;;;;-1:-1:-1;;;70025:50:0;;21406:2:1;70025:50:0;;;21388:21:1;21445:2;21425:18;;;21418:30;-1:-1:-1;;;21464:18:1;;;21457:50;21524:18;;70025:50:0;21204:344:1;70025:50:0;70122:24;;70086:33;70193:12;70165:40;;70157:81;;;;-1:-1:-1;;;70157:81:0;;21755:2:1;70157:81:0;;;21737:21:1;21794:2;21774:18;;;21767:30;21833;21813:18;;;21806:58;21881:18;;70157:81:0;21553:352:1;70157:81:0;70384:16;70540:12;70403:36;;;-1:-1:-1;;70403:40:0;;;-1:-1:-1;70521:95:0;;;-1:-1:-1;70584:12:0;;-1:-1:-1;;70584:16:0;70521:95;70649:25;70632:366;70681:8;70676:1;:13;70632:366;;70750:1;70719:14;;;:11;:14;;;;;:19;-1:-1:-1;;;;;70719:19:0;70715:268;;70777:31;70811:14;70823:1;70811:11;:14::i;:::-;70870;;;70848;;;:11;:14;;;;;;;;:36;;70939:24;;;;;-1:-1:-1;;;;;70907:56:0;-1:-1:-1;;;70907:56:0;-1:-1:-1;;;;;;70907:56:0;;;-1:-1:-1;;;;;70848:36:0;;;70907:56;;;;;;;-1:-1:-1;70715:268:0;70691:3;;70632:366;;;-1:-1:-1;71052:1:0;71041:12;71014:24;:39;-1:-1:-1;;69898:1174:0:o;55379:537::-;-1:-1:-1;;;;;;;;;;;;;;;;;55482:16:0;55490:7;59771:4;59805:12;-1:-1:-1;59795:22:0;59714:111;55482:16;55474:71;;;;-1:-1:-1;;;55474:71:0;;22112:2:1;55474:71:0;;;22094:21:1;22151:2;22131:18;;;22124:30;22190:34;22170:18;;;22163:62;-1:-1:-1;;;22241:18:1;;;22234:40;22291:19;;55474:71:0;21910:406:1;55474:71:0;55603:7;55583:245;55650:31;55684:17;;;:11;:17;;;;;;;;;55650:51;;;;;;;;;-1:-1:-1;;;;;55650:51:0;;;;;-1:-1:-1;;;55650:51:0;;;-1:-1:-1;;;;;55650:51:0;;;;;;;;55724:28;55720:93;;55784:9;55379:537;-1:-1:-1;;;55379:537:0:o;55720:93::-;-1:-1:-1;;;55623:6:0;55583:245;;17663:191;17756:6;;;-1:-1:-1;;;;;17773:17:0;;;-1:-1:-1;;;;;;17773:17:0;;;;;;;17806:40;;17756:6;;;17773:17;17756:6;;17806:40;;17737:16;;17806:40;17726:128;17663:191;:::o;65395:804::-;65550:4;-1:-1:-1;;;;;65571:13:0;;19389:19;:23;65567:625;;65607:72;;-1:-1:-1;;;65607:72:0;;-1:-1:-1;;;;;65607:36:0;;;;;:72;;15027:10;;65658:4;;65664:7;;65673:5;;65607:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;65607:72:0;;;;;;;;-1:-1:-1;;65607:72:0;;;;;;;;;;;;:::i;:::-;;;65603:534;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65853:6;:13;65870:1;65853:18;65849:273;;65896:61;;-1:-1:-1;;;65896:61:0;;;;;;;:::i;65849:273::-;66072:6;66066:13;66057:6;66053:2;66049:15;66042:38;65603:534;-1:-1:-1;;;;;;65730:55:0;-1:-1:-1;;;65730:55:0;;-1:-1:-1;65723:62:0;;65567:625;-1:-1:-1;66176:4:0;65567:625;65395:804;;;;;;:::o;3228:723::-;3284:13;3505:5;3514:1;3505:10;3501:53;;-1:-1:-1;;3532:10:0;;;;;;;;;;;;-1:-1:-1;;;3532:10:0;;;;;3228:723::o;3501:53::-;3579:5;3564:12;3620:78;3627:9;;3620:78;;3653:8;;;;:::i;:::-;;-1:-1:-1;3676:10:0;;-1:-1:-1;3684:2:0;3676:10;;:::i;:::-;;;3620:78;;;3708:19;3740:6;-1:-1:-1;;;;;3730:17:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3730:17:0;;3708:39;;3758:154;3765:10;;3758:154;;3792:11;3802:1;3792:11;;:::i;:::-;;-1:-1:-1;3861:10:0;3869:2;3861:5;:10;:::i;:::-;3848:24;;:2;:24;:::i;:::-;3835:39;;3818:6;3825;3818:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;3818:56:0;;;;;;;;-1:-1:-1;3889:11:0;3898:2;3889:11;;:::i;:::-;;;3758:154;;54948:229;55009:7;-1:-1:-1;;;;;55037:19:0;;55029:81;;;;-1:-1:-1;;;55029:81:0;;23820:2:1;55029:81:0;;;23802:21:1;23859:2;23839:18;;;23832:30;23898:34;23878:18;;;23871:62;-1:-1:-1;;;23949:18:1;;;23942:47;24006:19;;55029:81:0;23618:413:1;55029:81:0;-1:-1:-1;;;;;;55136:19:0;;;;;:12;:19;;;;;:32;-1:-1:-1;;;55136:32:0;;-1:-1:-1;;;;;55136:32:0;;54948:229::o;60300:163::-;60423:32;60429:2;60433:8;60443:5;60450:4;60861:20;60884:12;-1:-1:-1;;;;;60915:16:0;;60907:62;;;;-1:-1:-1;;;60907:62:0;;24238:2:1;60907:62:0;;;24220:21:1;24277:2;24257:18;;;24250:30;24316:34;24296:18;;;24289:62;-1:-1:-1;;;24367:18:1;;;24360:31;24408:19;;60907:62:0;24036:397:1;60907:62:0;60988:8;61000:1;60988:13;60980:66;;;;-1:-1:-1;;;60980:66:0;;24640:2:1;60980:66:0;;;24622:21:1;24679:2;24659:18;;;24652:30;24718:34;24698:18;;;24691:62;-1:-1:-1;;;24769:18:1;;;24762:38;24817:19;;60980:66:0;24438:404:1;60980:66:0;-1:-1:-1;;;;;61398:16:0;;;;;;:12;:16;;;;;;;;:45;;-1:-1:-1;;;;;;;;;61398:45:0;;-1:-1:-1;;;;;61398:45:0;;;;;;;;;;61458:50;;;;;;;;;;;;;;61525:25;;;:11;:25;;;;;:35;;-1:-1:-1;;;;;;61575:66:0;;;;-1:-1:-1;;;61625:15:0;-1:-1:-1;;;;;61575:66:0;;;;;;61525:25;;61710:415;61730:8;61726:1;:12;61710:415;;;61769:38;;61794:12;;-1:-1:-1;;;;;61769:38:0;;;61786:1;;61769:38;;61786:1;;61769:38;61830:4;61826:249;;;61893:59;61924:1;61928:2;61932:12;61946:5;61893:22;:59::i;:::-;61859:196;;;;-1:-1:-1;;;61859:196:0;;;;;;;:::i;:::-;62095:14;;;;;61740:3;61710:415;;;-1:-1:-1;62141:12:0;:27;62192:60;59104:355;14:131:1;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;:::-;384:5;150:245;-1:-1:-1;;;150:245:1:o;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:131::-;-1:-1:-1;;;;;1816:31:1;;1806:42;;1796:70;;1862:1;1859;1852:12;1877:315;1945:6;1953;2006:2;1994:9;1985:7;1981:23;1977:32;1974:52;;;2022:1;2019;2012:12;1974:52;2061:9;2048:23;2080:31;2105:5;2080:31;:::i;:::-;2130:5;2182:2;2167:18;;;;2154:32;;-1:-1:-1;;;1877:315:1:o;2379:127::-;2440:10;2435:3;2431:20;2428:1;2421:31;2471:4;2468:1;2461:15;2495:4;2492:1;2485:15;2511:275;2582:2;2576:9;2647:2;2628:13;;-1:-1:-1;;2624:27:1;2612:40;;-1:-1:-1;;;;;2667:34:1;;2703:22;;;2664:62;2661:88;;;2729:18;;:::i;:::-;2765:2;2758:22;2511:275;;-1:-1:-1;2511:275:1:o;2791:1081::-;2884:6;2892;2945:2;2933:9;2924:7;2920:23;2916:32;2913:52;;;2961:1;2958;2951:12;2913:52;3000:9;2987:23;3019:31;3044:5;3019:31;:::i;:::-;3069:5;-1:-1:-1;3093:2:1;3131:18;;;3118:32;-1:-1:-1;;;;;3199:14:1;;;3196:34;;;3226:1;3223;3216:12;3196:34;3264:6;3253:9;3249:22;3239:32;;3309:7;3302:4;3298:2;3294:13;3290:27;3280:55;;3331:1;3328;3321:12;3280:55;3367:2;3354:16;3389:2;3385;3382:10;3379:36;;;3395:18;;:::i;:::-;3441:2;3438:1;3434:10;3424:20;;3464:28;3488:2;3484;3480:11;3464:28;:::i;:::-;3526:15;;;3596:11;;;3592:20;;;3557:12;;;;3624:19;;;3621:39;;;3656:1;3653;3646:12;3621:39;3680:11;;;;3700:142;3716:6;3711:3;3708:15;3700:142;;;3782:17;;3770:30;;3733:12;;;;3820;;;;3700:142;;;3861:5;3851:15;;;;;;;;2791:1081;;;;;:::o;3877:456::-;3954:6;3962;3970;4023:2;4011:9;4002:7;3998:23;3994:32;3991:52;;;4039:1;4036;4029:12;3991:52;4078:9;4065:23;4097:31;4122:5;4097:31;:::i;:::-;4147:5;-1:-1:-1;4204:2:1;4189:18;;4176:32;4217:33;4176:32;4217:33;:::i;:::-;3877:456;;4269:7;;-1:-1:-1;;;4323:2:1;4308:18;;;;4295:32;;3877:456::o;4338:592::-;4409:6;4417;4470:2;4458:9;4449:7;4445:23;4441:32;4438:52;;;4486:1;4483;4476:12;4438:52;4526:9;4513:23;-1:-1:-1;;;;;4596:2:1;4588:6;4585:14;4582:34;;;4612:1;4609;4602:12;4582:34;4650:6;4639:9;4635:22;4625:32;;4695:7;4688:4;4684:2;4680:13;4676:27;4666:55;;4717:1;4714;4707:12;4666:55;4757:2;4744:16;4783:2;4775:6;4772:14;4769:34;;;4799:1;4796;4789:12;4769:34;4844:7;4839:2;4830:6;4826:2;4822:15;4818:24;4815:37;4812:57;;;4865:1;4862;4855:12;4812:57;4896:2;4888:11;;;;;4918:6;;-1:-1:-1;4338:592:1;;-1:-1:-1;;;;4338:592:1:o;4935:247::-;4994:6;5047:2;5035:9;5026:7;5022:23;5018:32;5015:52;;;5063:1;5060;5053:12;5015:52;5102:9;5089:23;5121:31;5146:5;5121:31;:::i;5554:416::-;5619:6;5627;5680:2;5668:9;5659:7;5655:23;5651:32;5648:52;;;5696:1;5693;5686:12;5648:52;5735:9;5722:23;5754:31;5779:5;5754:31;:::i;:::-;5804:5;-1:-1:-1;5861:2:1;5846:18;;5833:32;5903:15;;5896:23;5884:36;;5874:64;;5934:1;5931;5924:12;5874:64;5957:7;5947:17;;;5554:416;;;;;:::o;5975:1108::-;6070:6;6078;6086;6094;6147:3;6135:9;6126:7;6122:23;6118:33;6115:53;;;6164:1;6161;6154:12;6115:53;6203:9;6190:23;6222:31;6247:5;6222:31;:::i;:::-;6272:5;-1:-1:-1;6296:2:1;6335:18;;;6322:32;6363:33;6322:32;6363:33;:::i;:::-;6415:7;-1:-1:-1;6469:2:1;6454:18;;6441:32;;-1:-1:-1;6524:2:1;6509:18;;6496:32;-1:-1:-1;;;;;6577:14:1;;;6574:34;;;6604:1;6601;6594:12;6574:34;6642:6;6631:9;6627:22;6617:32;;6687:7;6680:4;6676:2;6672:13;6668:27;6658:55;;6709:1;6706;6699:12;6658:55;6745:2;6732:16;6767:2;6763;6760:10;6757:36;;;6773:18;;:::i;:::-;6815:53;6858:2;6839:13;;-1:-1:-1;;6835:27:1;6831:36;;6815:53;:::i;:::-;6802:66;;6891:2;6884:5;6877:17;6931:7;6926:2;6921;6917;6913:11;6909:20;6906:33;6903:53;;;6952:1;6949;6942:12;6903:53;7007:2;7002;6998;6994:11;6989:2;6982:5;6978:14;6965:45;7051:1;7046:2;7041;7034:5;7030:14;7026:23;7019:34;;7072:5;7062:15;;;;;5975:1108;;;;;;;:::o;7088:388::-;7156:6;7164;7217:2;7205:9;7196:7;7192:23;7188:32;7185:52;;;7233:1;7230;7223:12;7185:52;7272:9;7259:23;7291:31;7316:5;7291:31;:::i;:::-;7341:5;-1:-1:-1;7398:2:1;7383:18;;7370:32;7411:33;7370:32;7411:33;:::i;7481:380::-;7560:1;7556:12;;;;7603;;;7624:61;;7678:4;7670:6;7666:17;7656:27;;7624:61;7731:2;7723:6;7720:14;7700:18;7697:38;7694:161;;7777:10;7772:3;7768:20;7765:1;7758:31;7812:4;7809:1;7802:15;7840:4;7837:1;7830:15;7694:161;;7481:380;;;:::o;9451:127::-;9512:10;9507:3;9503:20;9500:1;9493:31;9543:4;9540:1;9533:15;9567:4;9564:1;9557:15;9583:112;9615:1;9641;9631:35;;9646:18;;:::i;:::-;-1:-1:-1;9680:9:1;;9583:112::o;10103:127::-;10164:10;10159:3;10155:20;10152:1;10145:31;10195:4;10192:1;10185:15;10219:4;10216:1;10209:15;10235:125;10300:9;;;10321:10;;;10318:36;;;10334:18;;:::i;10365:120::-;10405:1;10431;10421:35;;10436:18;;:::i;:::-;-1:-1:-1;10470:9:1;;10365:120::o;10834:127::-;10895:10;10890:3;10886:20;10883:1;10876:31;10926:4;10923:1;10916:15;10950:4;10947:1;10940:15;10966:251;11036:6;11089:2;11077:9;11068:7;11064:23;11060:32;11057:52;;;11105:1;11102;11095:12;11057:52;11137:9;11131:16;11156:31;11181:5;11156:31;:::i;11575:135::-;11614:3;11635:17;;;11632:43;;11655:18;;:::i;:::-;-1:-1:-1;11702:1:1;11691:13;;11575:135::o;14357:545::-;14459:2;14454:3;14451:11;14448:448;;;14495:1;14520:5;14516:2;14509:17;14565:4;14561:2;14551:19;14635:2;14623:10;14619:19;14616:1;14612:27;14606:4;14602:38;14671:4;14659:10;14656:20;14653:47;;;-1:-1:-1;14694:4:1;14653:47;14749:2;14744:3;14740:12;14737:1;14733:20;14727:4;14723:31;14713:41;;14804:82;14822:2;14815:5;14812:13;14804:82;;;14867:17;;;14848:1;14837:13;14804:82;;;14808:3;;;14357:545;;;:::o;15078:1206::-;-1:-1:-1;;;;;15197:3:1;15194:27;15191:53;;;15224:18;;:::i;:::-;15253:94;15343:3;15303:38;15335:4;15329:11;15303:38;:::i;:::-;15297:4;15253:94;:::i;:::-;15373:1;15398:2;15393:3;15390:11;15415:1;15410:616;;;;16070:1;16087:3;16084:93;;;-1:-1:-1;16143:19:1;;;16130:33;16084:93;-1:-1:-1;;15035:1:1;15031:11;;;15027:24;15023:29;15013:40;15059:1;15055:11;;;15010:57;16190:78;;15383:895;;15410:616;14304:1;14297:14;;;14341:4;14328:18;;-1:-1:-1;;15446:17:1;;;15547:9;15569:229;15583:7;15580:1;15577:14;15569:229;;;15672:19;;;15659:33;15644:49;;15779:4;15764:20;;;;15732:1;15720:14;;;;15599:12;15569:229;;;15573:3;15826;15817:7;15814:16;15811:159;;;15950:1;15946:6;15940:3;15934;15931:1;15927:11;15923:21;15919:34;15915:39;15902:9;15897:3;15893:19;15880:33;15876:79;15868:6;15861:95;15811:159;;;16013:1;16007:3;16004:1;16000:11;15996:19;15990:4;15983:33;15383:895;;15078:1206;;;:::o;17056:415::-;17258:2;17240:21;;;17297:2;17277:18;;;17270:30;17336:34;17331:2;17316:18;;17309:62;-1:-1:-1;;;17402:2:1;17387:18;;17380:49;17461:3;17446:19;;17056:415::o;17826:1020::-;18002:3;18031:1;18064:6;18058:13;18094:36;18120:9;18094:36;:::i;:::-;18149:1;18166:18;;;18193:133;;;;18340:1;18335:356;;;;18159:532;;18193:133;-1:-1:-1;;18226:24:1;;18214:37;;18299:14;;18292:22;18280:35;;18271:45;;;-1:-1:-1;18193:133:1;;18335:356;18366:6;18363:1;18356:17;18396:4;18441:2;18438:1;18428:16;18466:1;18480:165;18494:6;18491:1;18488:13;18480:165;;;18572:14;;18559:11;;;18552:35;18615:16;;;;18509:10;;18480:165;;;18484:3;;;18674:6;18669:3;18665:16;18658:23;;18159:532;;;;;18722:6;18716:13;18738:68;18797:8;18792:3;18785:4;18777:6;18773:17;18738:68;:::i;:::-;18822:18;;17826:1020;-1:-1:-1;;;;17826:1020:1:o;22737:489::-;-1:-1:-1;;;;;23006:15:1;;;22988:34;;23058:15;;23053:2;23038:18;;23031:43;23105:2;23090:18;;23083:34;;;23153:3;23148:2;23133:18;;23126:31;;;22931:4;;23174:46;;23200:19;;23192:6;23174:46;:::i;:::-;23166:54;22737:489;-1:-1:-1;;;;;;22737:489:1:o;23231:249::-;23300:6;23353:2;23341:9;23332:7;23328:23;23324:32;23321:52;;;23369:1;23366;23359:12;23321:52;23401:9;23395:16;23420:30;23444:5;23420:30;:::i;23485:128::-;23552:9;;;23573:11;;;23570:37;;;23587:18;;:::i
Swarm Source
ipfs://d103db0c4510f3f7ab8cac11c30abda49ba5e538dd302d033b0e06a6178a1693
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.