Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 24 from a total of 24 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Airdrop | 17774962 | 516 days ago | IN | 0 ETH | 0.00697788 | ||||
Set Base URI | 17774584 | 516 days ago | IN | 0 ETH | 0.00068586 | ||||
Set Base URI | 17269721 | 587 days ago | IN | 0 ETH | 0.00191014 | ||||
Airdrop | 17269673 | 587 days ago | IN | 0 ETH | 0.02308542 | ||||
Set Base URI | 17269642 | 587 days ago | IN | 0 ETH | 0.00264559 | ||||
Set Approval For... | 17171188 | 601 days ago | IN | 0 ETH | 0.00171949 | ||||
Set Approval For... | 17171183 | 601 days ago | IN | 0 ETH | 0.00340946 | ||||
Set Approval For... | 16631559 | 677 days ago | IN | 0 ETH | 0.00170912 | ||||
Airdrop | 15414745 | 850 days ago | IN | 0 ETH | 0.00095609 | ||||
Set Base URI | 15414697 | 850 days ago | IN | 0 ETH | 0.00026565 | ||||
Airdrop | 15049301 | 907 days ago | IN | 0 ETH | 0.00754533 | ||||
Set Base URI | 15049286 | 907 days ago | IN | 0 ETH | 0.00146884 | ||||
Airdrop | 14847118 | 942 days ago | IN | 0 ETH | 0.04460309 | ||||
Set Base URI | 14847106 | 942 days ago | IN | 0 ETH | 0.00138986 | ||||
Set Breakpoint | 14847101 | 942 days ago | IN | 0 ETH | 0.0009393 | ||||
Set Base URI | 14846788 | 942 days ago | IN | 0 ETH | 0.00124283 | ||||
Transfer Ownersh... | 14846776 | 942 days ago | IN | 0 ETH | 0.00068357 | ||||
Airdrop | 14667663 | 970 days ago | IN | 0 ETH | 0.00880152 | ||||
Set Base URI | 14667663 | 970 days ago | IN | 0 ETH | 0.00194074 | ||||
Airdrop | 14666166 | 970 days ago | IN | 0 ETH | 0.17427125 | ||||
Airdrop | 14666135 | 970 days ago | IN | 0 ETH | 0.06936596 | ||||
Airdrop | 14666134 | 970 days ago | IN | 0 ETH | 0.18367083 | ||||
Set Base URI | 14666066 | 970 days ago | IN | 0 ETH | 0.0024124 | ||||
Airdrop | 14666057 | 970 days ago | IN | 0 ETH | 0.1303238 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Badge
Compiler Version
v0.8.0+commit.c7dfd78e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-04-27 */ // File: @openzeppelin/contracts/utils/Context.sol // SPDX-License-Identifier: MIT 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 GSN 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 memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: @openzeppelin/contracts/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/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`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) 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 Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; } // File: @openzeppelin/contracts/token/ERC721/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/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 tokenId); /** * @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/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 `IERC721.onERC721Received.selector`. */ function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4); } // File: @openzeppelin/contracts/introspection/ERC165.sol pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ abstract contract ERC165 is IERC165 { /* * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7 */ bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; constructor () { // Derived contracts need only register support for their own interfaces, // we register support for ERC165 itself here _registerInterface(_INTERFACE_ID_ERC165); } /** * @dev See {IERC165-supportsInterface}. * * Time complexity O(1), guaranteed to always use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal virtual { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } } // File: @openzeppelin/contracts/utils/Address.sol pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/utils/EnumerableSet.sol pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } } // File: @openzeppelin/contracts/utils/EnumerableMap.sol pragma solidity ^0.8.0; /** * @dev Library for managing an enumerable variant of Solidity's * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`] * type. * * Maps have the following properties: * * - Entries are added, removed, and checked for existence in constant time * (O(1)). * - Entries are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableMap for EnumerableMap.UintToAddressMap; * * // Declare a set state variable * EnumerableMap.UintToAddressMap private myMap; * } * ``` * * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are * supported. */ library EnumerableMap { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Map type with // bytes32 keys and values. // The Map implementation uses private functions, and user-facing // implementations (such as Uint256ToAddressMap) are just wrappers around // the underlying Map. // This means that we can only create new EnumerableMaps for types that fit // in bytes32. struct MapEntry { bytes32 _key; bytes32 _value; } struct Map { // Storage of map keys and values MapEntry[] _entries; // Position of the entry defined by a key in the `entries` array, plus 1 // because index 0 means a key is not in the map. mapping (bytes32 => uint256) _indexes; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) { // We read and store the key's index to prevent multiple reads from the same storage slot uint256 keyIndex = map._indexes[key]; if (keyIndex == 0) { // Equivalent to !contains(map, key) map._entries.push(MapEntry({ _key: key, _value: value })); // The entry is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value map._indexes[key] = map._entries.length; return true; } else { map._entries[keyIndex - 1]._value = value; return false; } } /** * @dev Removes a key-value pair from a map. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function _remove(Map storage map, bytes32 key) private returns (bool) { // We read and store the key's index to prevent multiple reads from the same storage slot uint256 keyIndex = map._indexes[key]; if (keyIndex != 0) { // Equivalent to contains(map, key) // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one // in the array, and then remove the last entry (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = keyIndex - 1; uint256 lastIndex = map._entries.length - 1; // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. MapEntry storage lastEntry = map._entries[lastIndex]; // Move the last entry to the index where the entry to delete is map._entries[toDeleteIndex] = lastEntry; // Update the index for the moved entry map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved entry was stored map._entries.pop(); // Delete the index for the deleted slot delete map._indexes[key]; return true; } else { return false; } } /** * @dev Returns true if the key is in the map. O(1). */ function _contains(Map storage map, bytes32 key) private view returns (bool) { return map._indexes[key] != 0; } /** * @dev Returns the number of key-value pairs in the map. O(1). */ function _length(Map storage map) private view returns (uint256) { return map._entries.length; } /** * @dev Returns the key-value pair stored at position `index` in the map. O(1). * * Note that there are no guarantees on the ordering of entries inside the * array, and it may change when more entries are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) { require(map._entries.length > index, "EnumerableMap: index out of bounds"); MapEntry storage entry = map._entries[index]; return (entry._key, entry._value); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. */ function _tryGet(Map storage map, bytes32 key) private view returns (bool, bytes32) { uint256 keyIndex = map._indexes[key]; if (keyIndex == 0) return (false, 0); // Equivalent to contains(map, key) return (true, map._entries[keyIndex - 1]._value); // All indexes are 1-based } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function _get(Map storage map, bytes32 key) private view returns (bytes32) { uint256 keyIndex = map._indexes[key]; require(keyIndex != 0, "EnumerableMap: nonexistent key"); // Equivalent to contains(map, key) return map._entries[keyIndex - 1]._value; // All indexes are 1-based } /** * @dev Same as {_get}, with a custom error message when `key` is not in the map. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {_tryGet}. */ function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) { uint256 keyIndex = map._indexes[key]; require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key) return map._entries[keyIndex - 1]._value; // All indexes are 1-based } // UintToAddressMap struct UintToAddressMap { Map _inner; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) { return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) { return _remove(map._inner, bytes32(key)); } /** * @dev Returns true if the key is in the map. O(1). */ function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) { return _contains(map._inner, bytes32(key)); } /** * @dev Returns the number of elements in the map. O(1). */ function length(UintToAddressMap storage map) internal view returns (uint256) { return _length(map._inner); } /** * @dev Returns the element stored at position `index` in the set. O(1). * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) { (bytes32 key, bytes32 value) = _at(map._inner, index); return (uint256(key), address(uint160(uint256(value)))); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. * * _Available since v3.4._ */ function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) { (bool success, bytes32 value) = _tryGet(map._inner, bytes32(key)); return (success, address(uint160(uint256(value)))); } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function get(UintToAddressMap storage map, uint256 key) internal view returns (address) { return address(uint160(uint256(_get(map._inner, bytes32(key))))); } /** * @dev Same as {get}, with a custom error message when `key` is not in the map. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryGet}. */ function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) { return address(uint160(uint256(_get(map._inner, bytes32(key), errorMessage)))); } } // File: @openzeppelin/contracts/utils/Strings.sol pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { /** * @dev Converts a `uint256` to its ASCII `string` 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); } } // File: @openzeppelin/contracts/token/ERC721/ERC721.sol pragma solidity ^0.8.0; /** * @title ERC721 Non-Fungible Token Standard basic implementation * @dev see https://eips.ethereum.org/EIPS/eip-721 */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector` bytes4 private constant _ERC721_RECEIVED = 0x150b7a02; // Mapping from holder address to their (enumerable) set of owned tokens mapping (address => EnumerableSet.UintSet) private _holderTokens; // Enumerable mapping from token ids to their owners EnumerableMap.UintToAddressMap private _tokenOwners; // 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; // Token name string private _name; // Token symbol string private _symbol; // Optional mapping for token URIs mapping (uint256 => string) private _tokenURIs; // Base URI string private _baseURI; /* * bytes4(keccak256('balanceOf(address)')) == 0x70a08231 * bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e * bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3 * bytes4(keccak256('getApproved(uint256)')) == 0x081812fc * bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465 * bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5 * bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd * bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e * bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde * * => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^ * 0xa22cb465 ^ 0xe985e9c5 ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd */ bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd; /* * bytes4(keccak256('name()')) == 0x06fdde03 * bytes4(keccak256('symbol()')) == 0x95d89b41 * bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd * * => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f */ bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f; /* * bytes4(keccak256('totalSupply()')) == 0x18160ddd * bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59 * bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7 * * => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63 */ bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63; /** * @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_; // register the supported interfaces to conform to ERC721 via ERC165 _registerInterface(_INTERFACE_ID_ERC721); _registerInterface(_INTERFACE_ID_ERC721_METADATA); _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _holderTokens[owner].length(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token"); } /** * @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 _tokenURI = _tokenURIs[tokenId]; string memory base = baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI. return string(abi.encodePacked(base, tokenId.toString())); } /** * @dev Returns the base URI set via {_setBaseURI}. This will be * automatically added as a prefix in {tokenURI} to each token's URI, or * to the token ID if no specific URI is set for that token ID. */ function baseURI() public view virtual returns (string memory) { return _baseURI; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { return _holderTokens[owner].at(index); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds return _tokenOwners.length(); } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { (uint256 tokenId, ) = _tokenOwners.at(index); return tokenId; } /** * @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 || ERC721.isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: 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 { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not 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: transfer caller is not 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 _tokenOwners.contains(tokenId); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || ERC721.isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: d* * - `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); _holderTokens[to].add(tokenId); _tokenOwners.set(tokenId, to); emit Transfer(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); // internal owner _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); // Clear metadata (if any) if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } _holderTokens[owner].remove(tokenId); _tokenOwners.remove(tokenId); emit Transfer(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 of token that is not own"); // internal 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); _holderTokens[from].remove(tokenId); _holderTokens[to].add(tokenId); _tokenOwners.set(tokenId, to); emit Transfer(from, to, tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev Internal function to set the base URI for all token IDs. It is * automatically added as a prefix to the value returned in {tokenURI}, * or to the token ID if {tokenURI} is empty. */ function _setBaseURI(string memory baseURI_) internal virtual { _baseURI = baseURI_; } /** * @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()) { return true; } bytes memory returndata = to.functionCall(abi.encodeWithSelector( IERC721Receiver(to).onERC721Received.selector, _msgSender(), from, tokenId, _data ), "ERC721: transfer to non ERC721Receiver implementer"); bytes4 retval = abi.decode(returndata, (bytes4)); return (retval == _ERC721_RECEIVED); } /** * @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); // internal owner } /** * @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` cannot be the zero address. * - `to` cannot be the zero address. * * 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 { } } // File: @openzeppelin/contracts/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 () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } library MerkleProof { function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; } } pragma solidity ^0.8.0; /** * @title NFT * @dev Extends ERC721 Non-Fungible Token Standard basic implementation * @author MADE BY LOOTEX */ contract Badge is ERC721, Ownable { constructor( uint256 _breakpointForPurple, uint256 _breakpointForGold, uint256 _pointForPurple, uint256 _pointForGold, uint256 _pointForSilver) ERC721("Lootex Founders Badge", "FOUNDER") { breakpointForPurple = _breakpointForPurple; breakpointForGold = _breakpointForGold; pointForPurple = _pointForPurple; pointForGold = _pointForGold; pointForSilver = _pointForSilver; } /** * purple badge: 0 ~ breakpointForPurple - 1 * golden badge: breakpointForPurple ~ breakpointForGold - 1 * silver badge: breakpointForGold ~ totalSupply() */ uint256 public breakpointForPurple; uint256 public breakpointForGold; uint256 public pointForPurple; uint256 public pointForGold; uint256 public pointForSilver; uint256 public nextTokenId; bytes32 public root; function airdrop(address[] calldata receivers) external onlyOwner { for (uint256 i = 0; i < receivers.length; i++) { require(balanceOf(receivers[i]) == 0, "Receiver already has a badge"); _mint(receivers[i], nextTokenId + i); } nextTokenId += receivers.length; } function claim(bytes32[] calldata proof) external { address operator = _msgSender(); require(balanceOf(operator) == 0, "Already has a badge"); require(MerkleProof.verify(proof, root, keccak256(abi.encodePacked(operator))), "Not allowed to claim"); _mint(operator, nextTokenId); ++nextTokenId; } function setBreakpoint(uint256 _breakpointForPurple, uint256 _breakpointForGold) external onlyOwner { breakpointForPurple = _breakpointForPurple; breakpointForGold = _breakpointForGold; } function setPoint(uint256 _pointForPurple, uint256 _pointForGold, uint256 _pointForSilver) external onlyOwner { pointForPurple = _pointForPurple; pointForGold = _pointForGold; pointForSilver = _pointForSilver; } function setBaseURI(string memory _baseURI) external onlyOwner { _setBaseURI(_baseURI); } function transferFrom(address, address, uint256) public pure override { revert(); } function safeTransferFrom(address, address, uint256) public pure override { revert(); } function safeTransferFrom(address, address, uint256, bytes memory) public pure override { revert(); } function setRoot(bytes32 _root) external onlyOwner { root = _root; } /** * For emergency */ function transferFromForAdmin(address from, address to, uint256 tokenId) external virtual onlyOwner { require(balanceOf(to) == 0, "Receiver already has a badge"); _transfer(from, to, tokenId); } function isClaimable(address operator, bytes32[] calldata proof) external view returns(bool) { return MerkleProof.verify(proof, root, keccak256(abi.encodePacked(operator))); } function pointOf(uint256 tokenId) external view returns(uint256) { require(_exists(tokenId), "ERC721Metadata: Nonexistent token"); if (tokenId < breakpointForPurple) { return pointForPurple; } if (tokenId < breakpointForGold) { return pointForGold; } return pointForSilver; } function burn(uint256 tokenId) external { require(_isApprovedOrOwner(msg.sender, tokenId), "NFT: burn caller is not owner nor approved"); _burn(tokenId); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_breakpointForPurple","type":"uint256"},{"internalType":"uint256","name":"_breakpointForGold","type":"uint256"},{"internalType":"uint256","name":"_pointForPurple","type":"uint256"},{"internalType":"uint256","name":"_pointForGold","type":"uint256"},{"internalType":"uint256","name":"_pointForSilver","type":"uint256"}],"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":"receivers","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"breakpointForGold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"breakpointForPurple","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"isClaimable","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":"nextTokenId","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":"pointForGold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pointForPurple","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pointForSilver","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"pointOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"pure","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":"_breakpointForPurple","type":"uint256"},{"internalType":"uint256","name":"_breakpointForGold","type":"uint256"}],"name":"setBreakpoint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pointForPurple","type":"uint256"},{"internalType":"uint256","name":"_pointForGold","type":"uint256"},{"internalType":"uint256","name":"_pointForSilver","type":"uint256"}],"name":"setPoint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFromForAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620028c9380380620028c9833981016040819052620000349162000278565b604080518082018252601581527f4c6f6f74657820466f756e646572732042616467650000000000000000000000602080830191909152825180840190935260078352662327aaa72222a960c91b9083015290620000996301ffc9a760e01b62000173565b8151620000ae906006906020850190620001d2565b508051620000c4906007906020840190620001d2565b50620000d76380ac58cd60e01b62000173565b620000e9635b5e139f60e01b62000173565b620000fb63780e9d6360e01b62000173565b50600090506200010a620001ce565b600a80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600b94909455600c92909255600d55600e55600f556200032c565b6001600160e01b03198082161415620001a95760405162461bcd60e51b8152600401620001a090620002b8565b60405180910390fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b3390565b828054620001e090620002ef565b90600052602060002090601f0160209004810192826200020457600085556200024f565b82601f106200021f57805160ff19168380011785556200024f565b828001600101855582156200024f579182015b828111156200024f57825182559160200191906001019062000232565b506200025d92915062000261565b5090565b5b808211156200025d576000815560010162000262565b600080600080600060a0868803121562000290578081fd5b5050835160208501516040860151606087015160809097015192989197509594509092509050565b6020808252601c908201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604082015260600190565b6002810460018216806200030457607f821691505b602082108114156200032657634e487b7160e01b600052602260045260246000fd5b50919050565b61258d806200033c6000396000f3fe608060405234801561001057600080fd5b50600436106102275760003560e01c8063715018a611610130578063b391c508116100b8578063dab5f3401161007c578063dab5f3401461043a578063e985e9c51461044d578063ebf0c71714610460578063edd31a7114610468578063f2fde38b1461047057610227565b8063b391c508146103eb578063b88d4fde146103fe578063c87b56dd1461040c578063ca54ea4e1461041f578063cf2ed56b1461043257610227565b80638da5cb5b116100ff5780638da5cb5b146103ad5780638f65f97b146103b557806395d89b41146103bd578063a22cb465146103c5578063b0febec1146103d857610227565b8063715018a614610382578063729ad39e1461038a57806375794a3c1461039d57806382ed4cfc146103a557610227565b806342842e0e116101b357806355f804b31161018257806355f804b31461032e5780636352211e1461034157806365f25e3c146103545780636c0360eb1461036757806370a082311461036f57610227565b806342842e0e146102c757806342966c68146103005780634f6ccce714610313578063555cb8d51461032657610227565b806315000abf116101fa57806315000abf1461029f57806318160ddd146102b257806323b872dd146102c75780632f745c59146102da578063364c067e146102ed57610227565b806301ffc9a71461022c57806306fdde0314610255578063081812fc1461026a578063095ea7b31461028a575b600080fd5b61023f61023a366004611d85565b610483565b60405161024c9190611ead565b60405180910390f35b61025d6104a6565b60405161024c9190611ec1565b61027d610278366004611d6d565b610538565b60405161024c9190611e99565b61029d610298366004611d04565b610584565b005b61029d6102ad366004611df3565b61061c565b6102ba610666565b60405161024c9190611eb8565b61029d6102d5366004611bc5565b610227565b6102ba6102e8366004611d04565b610677565b61029d6102fb366004611e14565b6106a2565b61029d61030e366004611d6d565b6106ef565b6102ba610321366004611d6d565b610721565b6102ba610737565b61029d61033c366004611dad565b61073d565b61027d61034f366004611d6d565b610785565b61029d610362366004611bc5565b6107ad565b61025d61081d565b6102ba61037d366004611b79565b61082c565b61029d610875565b61029d610398366004611d2d565b6108fe565b6102ba610a19565b6102ba610a1f565b61027d610a25565b6102ba610a34565b61025d610a3a565b61029d6103d3366004611cca565b610a49565b61023f6103e6366004611c79565b610b17565b61029d6103f9366004611d2d565b610b8a565b61029d6102d5366004611c00565b61025d61041a366004611d6d565b610c3f565b6102ba61042d366004611d6d565b610d82565b6102ba610dd7565b61029d610448366004611d6d565b610ddd565b61023f61045b366004611b93565b610e21565b6102ba610e4f565b6102ba610e55565b61029d61047e366004611b79565b610e5b565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b6060600680546104b590612482565b80601f01602080910402602001604051908101604052809291908181526020018280546104e190612482565b801561052e5780601f106105035761010080835404028352916020019161052e565b820191906000526020600020905b81548152906001019060200180831161051157829003601f168201915b5050505050905090565b600061054382610f1c565b6105685760405162461bcd60e51b815260040161055f90612287565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061058f82610785565b9050806001600160a01b0316836001600160a01b031614156105c35760405162461bcd60e51b815260040161055f906123a0565b806001600160a01b03166105d5610f29565b6001600160a01b031614806105f157506105f18161045b610f29565b61060d5760405162461bcd60e51b815260040161055f90612132565b6106178383610f2d565b505050565b610624610f29565b6001600160a01b0316610635610a25565b6001600160a01b03161461065b5760405162461bcd60e51b815260040161055f906122d3565b600b91909155600c55565b60006106726002610f9b565b905090565b6001600160a01b03821660009081526001602052604081206106999083610fa6565b90505b92915050565b6106aa610f29565b6001600160a01b03166106bb610a25565b6001600160a01b0316146106e15760405162461bcd60e51b815260040161055f906122d3565b600d92909255600e55600f55565b6106f93382610fb2565b6107155760405162461bcd60e51b815260040161055f906120e8565b61071e81611037565b50565b60008061072f6002846110fd565b509392505050565b600f5481565b610745610f29565b6001600160a01b0316610756610a25565b6001600160a01b03161461077c5760405162461bcd60e51b815260040161055f906122d3565b61071e8161111b565b600061069c8260405180606001604052806029815260200161252f6029913960029190611132565b6107b5610f29565b6001600160a01b03166107c6610a25565b6001600160a01b0316146107ec5760405162461bcd60e51b815260040161055f906122d3565b6107f58261082c565b156108125760405162461bcd60e51b815260040161055f906121d9565b61061783838361113f565b6060600980546104b590612482565b60006001600160a01b0382166108545760405162461bcd60e51b815260040161055f9061218f565b6001600160a01b038216600090815260016020526040902061069c90610f9b565b61087d610f29565b6001600160a01b031661088e610a25565b6001600160a01b0316146108b45760405162461bcd60e51b815260040161055f906122d3565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b610906610f29565b6001600160a01b0316610917610a25565b6001600160a01b03161461093d5760405162461bcd60e51b815260040161055f906122d3565b60005b818110156109fa5761098083838381811061096b57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061037d9190611b79565b1561099d5760405162461bcd60e51b815260040161055f906121d9565b6109e88383838181106109c057634e487b7160e01b600052603260045260246000fd5b90506020020160208101906109d59190611b79565b826010546109e3919061240f565b61124d565b806109f2816124bd565b915050610940565b508181905060106000828254610a10919061240f565b90915550505050565b60105481565b600d5481565b600a546001600160a01b031690565b600c5481565b6060600780546104b590612482565b610a51610f29565b6001600160a01b0316826001600160a01b03161415610a825760405162461bcd60e51b815260040161055f90612065565b8060056000610a8f610f29565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610ad3610f29565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610b0b9190611ead565b60405180910390a35050565b6000610b8083838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601154604051909250610b6591508890602001611e3f565b60405160208183030381529060405280519060200120611311565b90505b9392505050565b6000610b94610f29565b9050610b9f8161082c565b15610bbc5760405162461bcd60e51b815260040161055f90611f36565b610c0883838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601154604051909250610b6591508590602001611e3f565b610c245760405162461bcd60e51b815260040161055f906123e1565b610c308160105461124d565b601060008154610a10906124bd565b6060610c4a82610f1c565b610c665760405162461bcd60e51b815260040161055f90612351565b60008281526008602052604081208054610c7f90612482565b80601f0160208091040260200160405190810160405280929190818152602001828054610cab90612482565b8015610cf85780601f10610ccd57610100808354040283529160200191610cf8565b820191906000526020600020905b815481529060010190602001808311610cdb57829003601f168201915b505050505090506000610d0961081d565b9050805160001415610d1d575090506104a1565b815115610d4f578082604051602001610d37929190611e6a565b604051602081830303815290604052925050506104a1565b80610d5985611327565b604051602001610d6a929190611e6a565b60405160208183030381529060405292505050919050565b6000610d8d82610f1c565b610da95760405162461bcd60e51b815260040161055f90611f63565b600b54821015610dbc5750600d546104a1565b600c54821015610dcf5750600e546104a1565b5050600f5490565b600e5481565b610de5610f29565b6001600160a01b0316610df6610a25565b6001600160a01b031614610e1c5760405162461bcd60e51b815260040161055f906122d3565b601155565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60115481565b600b5481565b610e63610f29565b6001600160a01b0316610e74610a25565b6001600160a01b031614610e9a5760405162461bcd60e51b815260040161055f906122d3565b6001600160a01b038116610ec05760405162461bcd60e51b815260040161055f90611fa4565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600061069c600283611442565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610f6282610785565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061069c8261144e565b60006106998383611452565b6000610fbd82610f1c565b610fd95760405162461bcd60e51b815260040161055f9061209c565b6000610fe483610785565b9050806001600160a01b0316846001600160a01b0316148061101f5750836001600160a01b031661101484610538565b6001600160a01b0316145b8061102f575061102f8185610e21565b949350505050565b600061104282610785565b905061105081600084610617565b61105b600083610f2d565b6000828152600860205260409020805461107490612482565b159050611092576000828152600860205260408120611092916119db565b6001600160a01b03811660009081526001602052604090206110b490836114ab565b506110c06002836114b7565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600080808061110c86866114c3565b909450925050505b9250929050565b805161112e906009906020840190611a17565b5050565b6000610b80848484611533565b826001600160a01b031661115282610785565b6001600160a01b0316146111785760405162461bcd60e51b815260040161055f90612308565b6001600160a01b03821661119e5760405162461bcd60e51b815260040161055f90612021565b6111a9838383610617565b6111b4600082610f2d565b6001600160a01b03831660009081526001602052604090206111d690826114ab565b506001600160a01b03821660009081526001602052604090206111f990826115aa565b50611206600282846115b6565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6001600160a01b0382166112735760405162461bcd60e51b815260040161055f90612252565b61127c81610f1c565b156112995760405162461bcd60e51b815260040161055f90611fea565b6112a560008383610617565b6001600160a01b03821660009081526001602052604090206112c790826115aa565b506112d4600282846115b6565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008261131e85846115cc565b14949350505050565b60608161134c57506040805180820190915260018152600360fc1b60208201526104a1565b8160005b81156113765780611360816124bd565b915061136f9050600a83612427565b9150611350565b60008167ffffffffffffffff81111561139f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156113c9576020820181803683370190505b5090505b841561102f576113de60018361243b565b91506113eb600a866124d8565b6113f690603061240f565b60f81b81838151811061141957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061143b600a86612427565b94506113cd565b6000610699838361167c565b5490565b815460009082106114755760405162461bcd60e51b815260040161055f90611ef4565b82600001828154811061149857634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b60006106998383611694565b600061069983836117b1565b8154600090819083106114e85760405162461bcd60e51b815260040161055f90612210565b600084600001848154811061150d57634e487b7160e01b600052603260045260246000fd5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816115635760405162461bcd60e51b815260040161055f9190611ec1565b508461157060018361243b565b8154811061158e57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060020201600101549150509392505050565b600061069983836118e2565b6000610b8084846001600160a01b03851661192c565b600081815b845181101561072f5760008582815181106115fc57634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161163d578281604051602001611620929190611e5c565b604051602081830303815290604052805190602001209250611669565b8083604051602001611650929190611e5c565b6040516020818303038152906040528051906020012092505b5080611674816124bd565b9150506115d1565b60009081526001919091016020526040902054151590565b600081815260018301602052604081205480156117a75760006116b860018361243b565b85549091506000906116cc9060019061243b565b905060008660000182815481106116f357634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508087600001848154811061172457634e487b7160e01b600052603260045260246000fd5b60009182526020909120015561173b83600161240f565b6000828152600189016020526040902055865487908061176b57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061069c565b600091505061069c565b600081815260018301602052604081205480156117a75760006117d560018361243b565b85549091506000906117e99060019061243b565b9050600086600001828154811061181057634e487b7160e01b600052603260045260246000fd5b906000526020600020906002020190508087600001848154811061184457634e487b7160e01b600052603260045260246000fd5b6000918252602090912082546002909202019081556001918201549082015561186e90849061240f565b8154600090815260018901602052604090205586548790806118a057634e487b7160e01b600052603160045260246000fd5b600082815260208082206002600019909401938402018281556001908101839055929093558881528982019092526040822091909155945061069c9350505050565b60006118ee838361167c565b6119245750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561069c565b50600061069c565b600082815260018401602052604081205480611991575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055610b83565b828561199e60018461243b565b815481106119bc57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060020201600101819055506000915050610b83565b5080546119e790612482565b6000825580601f106119f9575061071e565b601f01602090049060005260206000209081019061071e9190611a9b565b828054611a2390612482565b90600052602060002090601f016020900481019282611a455760008555611a8b565b82601f10611a5e57805160ff1916838001178555611a8b565b82800160010185558215611a8b579182015b82811115611a8b578251825591602001919060010190611a70565b50611a97929150611a9b565b5090565b5b80821115611a975760008155600101611a9c565b600067ffffffffffffffff80841115611acb57611acb612518565b604051601f8501601f191681016020018281118282101715611aef57611aef612518565b604052848152915081838501861015611b0757600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b03811681146104a157600080fd5b60008083601f840112611b48578081fd5b50813567ffffffffffffffff811115611b5f578182fd5b602083019150836020808302850101111561111457600080fd5b600060208284031215611b8a578081fd5b61069982611b20565b60008060408385031215611ba5578081fd5b611bae83611b20565b9150611bbc60208401611b20565b90509250929050565b600080600060608486031215611bd9578081fd5b611be284611b20565b9250611bf060208501611b20565b9150604084013590509250925092565b60008060008060808587031215611c15578081fd5b611c1e85611b20565b9350611c2c60208601611b20565b925060408501359150606085013567ffffffffffffffff811115611c4e578182fd5b8501601f81018713611c5e578182fd5b611c6d87823560208401611ab0565b91505092959194509250565b600080600060408486031215611c8d578283fd5b611c9684611b20565b9250602084013567ffffffffffffffff811115611cb1578283fd5b611cbd86828701611b37565b9497909650939450505050565b60008060408385031215611cdc578182fd5b611ce583611b20565b915060208301358015158114611cf9578182fd5b809150509250929050565b60008060408385031215611d16578182fd5b611d1f83611b20565b946020939093013593505050565b60008060208385031215611d3f578182fd5b823567ffffffffffffffff811115611d55578283fd5b611d6185828601611b37565b90969095509350505050565b600060208284031215611d7e578081fd5b5035919050565b600060208284031215611d96578081fd5b81356001600160e01b031981168114610b83578182fd5b600060208284031215611dbe578081fd5b813567ffffffffffffffff811115611dd4578182fd5b8201601f81018413611de4578182fd5b61102f84823560208401611ab0565b60008060408385031215611e05578182fd5b50508035926020909101359150565b600080600060608486031215611e28578081fd5b505081359360208301359350604090920135919050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b918252602082015260400190565b60008351611e7c818460208801612452565b835190830190611e90818360208801612452565b01949350505050565b6001600160a01b0391909116815260200190565b901515815260200190565b90815260200190565b6000602082528251806020840152611ee0816040850160208701612452565b601f01601f19169190910160400192915050565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b602080825260139082015272416c726561647920686173206120626164676560681b604082015260600190565b60208082526021908201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b656040820152603760f91b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252602a908201527f4e46543a206275726e2063616c6c6572206973206e6f74206f776e6572206e6f6040820152691c88185c1c1c9bdd995960b21b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b6020808252601c908201527f526563656976657220616c726561647920686173206120626164676500000000604082015260600190565b60208082526022908201527f456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252601490820152734e6f7420616c6c6f77656420746f20636c61696d60601b604082015260600190565b60008219821115612422576124226124ec565b500190565b60008261243657612436612502565b500490565b60008282101561244d5761244d6124ec565b500390565b60005b8381101561246d578181015183820152602001612455565b8381111561247c576000848401525b50505050565b60028104600182168061249657607f821691505b602082108114156124b757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156124d1576124d16124ec565b5060010190565b6000826124e7576124e7612502565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fdfe4552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656ea2646970667358221220c65136f5fac90e35d92f28a30a25f44495f027373416aeab9aac737d72284a2c64736f6c6343000800003300000000000000000000000000000000000000000000000000000000000000210000000000000000000000000000000000000000000000000000000000000081000000000000000000000000000000000000000000000000000000000000001900000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000002
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102275760003560e01c8063715018a611610130578063b391c508116100b8578063dab5f3401161007c578063dab5f3401461043a578063e985e9c51461044d578063ebf0c71714610460578063edd31a7114610468578063f2fde38b1461047057610227565b8063b391c508146103eb578063b88d4fde146103fe578063c87b56dd1461040c578063ca54ea4e1461041f578063cf2ed56b1461043257610227565b80638da5cb5b116100ff5780638da5cb5b146103ad5780638f65f97b146103b557806395d89b41146103bd578063a22cb465146103c5578063b0febec1146103d857610227565b8063715018a614610382578063729ad39e1461038a57806375794a3c1461039d57806382ed4cfc146103a557610227565b806342842e0e116101b357806355f804b31161018257806355f804b31461032e5780636352211e1461034157806365f25e3c146103545780636c0360eb1461036757806370a082311461036f57610227565b806342842e0e146102c757806342966c68146103005780634f6ccce714610313578063555cb8d51461032657610227565b806315000abf116101fa57806315000abf1461029f57806318160ddd146102b257806323b872dd146102c75780632f745c59146102da578063364c067e146102ed57610227565b806301ffc9a71461022c57806306fdde0314610255578063081812fc1461026a578063095ea7b31461028a575b600080fd5b61023f61023a366004611d85565b610483565b60405161024c9190611ead565b60405180910390f35b61025d6104a6565b60405161024c9190611ec1565b61027d610278366004611d6d565b610538565b60405161024c9190611e99565b61029d610298366004611d04565b610584565b005b61029d6102ad366004611df3565b61061c565b6102ba610666565b60405161024c9190611eb8565b61029d6102d5366004611bc5565b610227565b6102ba6102e8366004611d04565b610677565b61029d6102fb366004611e14565b6106a2565b61029d61030e366004611d6d565b6106ef565b6102ba610321366004611d6d565b610721565b6102ba610737565b61029d61033c366004611dad565b61073d565b61027d61034f366004611d6d565b610785565b61029d610362366004611bc5565b6107ad565b61025d61081d565b6102ba61037d366004611b79565b61082c565b61029d610875565b61029d610398366004611d2d565b6108fe565b6102ba610a19565b6102ba610a1f565b61027d610a25565b6102ba610a34565b61025d610a3a565b61029d6103d3366004611cca565b610a49565b61023f6103e6366004611c79565b610b17565b61029d6103f9366004611d2d565b610b8a565b61029d6102d5366004611c00565b61025d61041a366004611d6d565b610c3f565b6102ba61042d366004611d6d565b610d82565b6102ba610dd7565b61029d610448366004611d6d565b610ddd565b61023f61045b366004611b93565b610e21565b6102ba610e4f565b6102ba610e55565b61029d61047e366004611b79565b610e5b565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b6060600680546104b590612482565b80601f01602080910402602001604051908101604052809291908181526020018280546104e190612482565b801561052e5780601f106105035761010080835404028352916020019161052e565b820191906000526020600020905b81548152906001019060200180831161051157829003601f168201915b5050505050905090565b600061054382610f1c565b6105685760405162461bcd60e51b815260040161055f90612287565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061058f82610785565b9050806001600160a01b0316836001600160a01b031614156105c35760405162461bcd60e51b815260040161055f906123a0565b806001600160a01b03166105d5610f29565b6001600160a01b031614806105f157506105f18161045b610f29565b61060d5760405162461bcd60e51b815260040161055f90612132565b6106178383610f2d565b505050565b610624610f29565b6001600160a01b0316610635610a25565b6001600160a01b03161461065b5760405162461bcd60e51b815260040161055f906122d3565b600b91909155600c55565b60006106726002610f9b565b905090565b6001600160a01b03821660009081526001602052604081206106999083610fa6565b90505b92915050565b6106aa610f29565b6001600160a01b03166106bb610a25565b6001600160a01b0316146106e15760405162461bcd60e51b815260040161055f906122d3565b600d92909255600e55600f55565b6106f93382610fb2565b6107155760405162461bcd60e51b815260040161055f906120e8565b61071e81611037565b50565b60008061072f6002846110fd565b509392505050565b600f5481565b610745610f29565b6001600160a01b0316610756610a25565b6001600160a01b03161461077c5760405162461bcd60e51b815260040161055f906122d3565b61071e8161111b565b600061069c8260405180606001604052806029815260200161252f6029913960029190611132565b6107b5610f29565b6001600160a01b03166107c6610a25565b6001600160a01b0316146107ec5760405162461bcd60e51b815260040161055f906122d3565b6107f58261082c565b156108125760405162461bcd60e51b815260040161055f906121d9565b61061783838361113f565b6060600980546104b590612482565b60006001600160a01b0382166108545760405162461bcd60e51b815260040161055f9061218f565b6001600160a01b038216600090815260016020526040902061069c90610f9b565b61087d610f29565b6001600160a01b031661088e610a25565b6001600160a01b0316146108b45760405162461bcd60e51b815260040161055f906122d3565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b610906610f29565b6001600160a01b0316610917610a25565b6001600160a01b03161461093d5760405162461bcd60e51b815260040161055f906122d3565b60005b818110156109fa5761098083838381811061096b57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061037d9190611b79565b1561099d5760405162461bcd60e51b815260040161055f906121d9565b6109e88383838181106109c057634e487b7160e01b600052603260045260246000fd5b90506020020160208101906109d59190611b79565b826010546109e3919061240f565b61124d565b806109f2816124bd565b915050610940565b508181905060106000828254610a10919061240f565b90915550505050565b60105481565b600d5481565b600a546001600160a01b031690565b600c5481565b6060600780546104b590612482565b610a51610f29565b6001600160a01b0316826001600160a01b03161415610a825760405162461bcd60e51b815260040161055f90612065565b8060056000610a8f610f29565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610ad3610f29565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610b0b9190611ead565b60405180910390a35050565b6000610b8083838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601154604051909250610b6591508890602001611e3f565b60405160208183030381529060405280519060200120611311565b90505b9392505050565b6000610b94610f29565b9050610b9f8161082c565b15610bbc5760405162461bcd60e51b815260040161055f90611f36565b610c0883838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601154604051909250610b6591508590602001611e3f565b610c245760405162461bcd60e51b815260040161055f906123e1565b610c308160105461124d565b601060008154610a10906124bd565b6060610c4a82610f1c565b610c665760405162461bcd60e51b815260040161055f90612351565b60008281526008602052604081208054610c7f90612482565b80601f0160208091040260200160405190810160405280929190818152602001828054610cab90612482565b8015610cf85780601f10610ccd57610100808354040283529160200191610cf8565b820191906000526020600020905b815481529060010190602001808311610cdb57829003601f168201915b505050505090506000610d0961081d565b9050805160001415610d1d575090506104a1565b815115610d4f578082604051602001610d37929190611e6a565b604051602081830303815290604052925050506104a1565b80610d5985611327565b604051602001610d6a929190611e6a565b60405160208183030381529060405292505050919050565b6000610d8d82610f1c565b610da95760405162461bcd60e51b815260040161055f90611f63565b600b54821015610dbc5750600d546104a1565b600c54821015610dcf5750600e546104a1565b5050600f5490565b600e5481565b610de5610f29565b6001600160a01b0316610df6610a25565b6001600160a01b031614610e1c5760405162461bcd60e51b815260040161055f906122d3565b601155565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60115481565b600b5481565b610e63610f29565b6001600160a01b0316610e74610a25565b6001600160a01b031614610e9a5760405162461bcd60e51b815260040161055f906122d3565b6001600160a01b038116610ec05760405162461bcd60e51b815260040161055f90611fa4565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600061069c600283611442565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610f6282610785565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061069c8261144e565b60006106998383611452565b6000610fbd82610f1c565b610fd95760405162461bcd60e51b815260040161055f9061209c565b6000610fe483610785565b9050806001600160a01b0316846001600160a01b0316148061101f5750836001600160a01b031661101484610538565b6001600160a01b0316145b8061102f575061102f8185610e21565b949350505050565b600061104282610785565b905061105081600084610617565b61105b600083610f2d565b6000828152600860205260409020805461107490612482565b159050611092576000828152600860205260408120611092916119db565b6001600160a01b03811660009081526001602052604090206110b490836114ab565b506110c06002836114b7565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600080808061110c86866114c3565b909450925050505b9250929050565b805161112e906009906020840190611a17565b5050565b6000610b80848484611533565b826001600160a01b031661115282610785565b6001600160a01b0316146111785760405162461bcd60e51b815260040161055f90612308565b6001600160a01b03821661119e5760405162461bcd60e51b815260040161055f90612021565b6111a9838383610617565b6111b4600082610f2d565b6001600160a01b03831660009081526001602052604090206111d690826114ab565b506001600160a01b03821660009081526001602052604090206111f990826115aa565b50611206600282846115b6565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6001600160a01b0382166112735760405162461bcd60e51b815260040161055f90612252565b61127c81610f1c565b156112995760405162461bcd60e51b815260040161055f90611fea565b6112a560008383610617565b6001600160a01b03821660009081526001602052604090206112c790826115aa565b506112d4600282846115b6565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008261131e85846115cc565b14949350505050565b60608161134c57506040805180820190915260018152600360fc1b60208201526104a1565b8160005b81156113765780611360816124bd565b915061136f9050600a83612427565b9150611350565b60008167ffffffffffffffff81111561139f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156113c9576020820181803683370190505b5090505b841561102f576113de60018361243b565b91506113eb600a866124d8565b6113f690603061240f565b60f81b81838151811061141957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061143b600a86612427565b94506113cd565b6000610699838361167c565b5490565b815460009082106114755760405162461bcd60e51b815260040161055f90611ef4565b82600001828154811061149857634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b60006106998383611694565b600061069983836117b1565b8154600090819083106114e85760405162461bcd60e51b815260040161055f90612210565b600084600001848154811061150d57634e487b7160e01b600052603260045260246000fd5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816115635760405162461bcd60e51b815260040161055f9190611ec1565b508461157060018361243b565b8154811061158e57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060020201600101549150509392505050565b600061069983836118e2565b6000610b8084846001600160a01b03851661192c565b600081815b845181101561072f5760008582815181106115fc57634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161163d578281604051602001611620929190611e5c565b604051602081830303815290604052805190602001209250611669565b8083604051602001611650929190611e5c565b6040516020818303038152906040528051906020012092505b5080611674816124bd565b9150506115d1565b60009081526001919091016020526040902054151590565b600081815260018301602052604081205480156117a75760006116b860018361243b565b85549091506000906116cc9060019061243b565b905060008660000182815481106116f357634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508087600001848154811061172457634e487b7160e01b600052603260045260246000fd5b60009182526020909120015561173b83600161240f565b6000828152600189016020526040902055865487908061176b57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061069c565b600091505061069c565b600081815260018301602052604081205480156117a75760006117d560018361243b565b85549091506000906117e99060019061243b565b9050600086600001828154811061181057634e487b7160e01b600052603260045260246000fd5b906000526020600020906002020190508087600001848154811061184457634e487b7160e01b600052603260045260246000fd5b6000918252602090912082546002909202019081556001918201549082015561186e90849061240f565b8154600090815260018901602052604090205586548790806118a057634e487b7160e01b600052603160045260246000fd5b600082815260208082206002600019909401938402018281556001908101839055929093558881528982019092526040822091909155945061069c9350505050565b60006118ee838361167c565b6119245750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561069c565b50600061069c565b600082815260018401602052604081205480611991575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055610b83565b828561199e60018461243b565b815481106119bc57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060020201600101819055506000915050610b83565b5080546119e790612482565b6000825580601f106119f9575061071e565b601f01602090049060005260206000209081019061071e9190611a9b565b828054611a2390612482565b90600052602060002090601f016020900481019282611a455760008555611a8b565b82601f10611a5e57805160ff1916838001178555611a8b565b82800160010185558215611a8b579182015b82811115611a8b578251825591602001919060010190611a70565b50611a97929150611a9b565b5090565b5b80821115611a975760008155600101611a9c565b600067ffffffffffffffff80841115611acb57611acb612518565b604051601f8501601f191681016020018281118282101715611aef57611aef612518565b604052848152915081838501861015611b0757600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b03811681146104a157600080fd5b60008083601f840112611b48578081fd5b50813567ffffffffffffffff811115611b5f578182fd5b602083019150836020808302850101111561111457600080fd5b600060208284031215611b8a578081fd5b61069982611b20565b60008060408385031215611ba5578081fd5b611bae83611b20565b9150611bbc60208401611b20565b90509250929050565b600080600060608486031215611bd9578081fd5b611be284611b20565b9250611bf060208501611b20565b9150604084013590509250925092565b60008060008060808587031215611c15578081fd5b611c1e85611b20565b9350611c2c60208601611b20565b925060408501359150606085013567ffffffffffffffff811115611c4e578182fd5b8501601f81018713611c5e578182fd5b611c6d87823560208401611ab0565b91505092959194509250565b600080600060408486031215611c8d578283fd5b611c9684611b20565b9250602084013567ffffffffffffffff811115611cb1578283fd5b611cbd86828701611b37565b9497909650939450505050565b60008060408385031215611cdc578182fd5b611ce583611b20565b915060208301358015158114611cf9578182fd5b809150509250929050565b60008060408385031215611d16578182fd5b611d1f83611b20565b946020939093013593505050565b60008060208385031215611d3f578182fd5b823567ffffffffffffffff811115611d55578283fd5b611d6185828601611b37565b90969095509350505050565b600060208284031215611d7e578081fd5b5035919050565b600060208284031215611d96578081fd5b81356001600160e01b031981168114610b83578182fd5b600060208284031215611dbe578081fd5b813567ffffffffffffffff811115611dd4578182fd5b8201601f81018413611de4578182fd5b61102f84823560208401611ab0565b60008060408385031215611e05578182fd5b50508035926020909101359150565b600080600060608486031215611e28578081fd5b505081359360208301359350604090920135919050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b918252602082015260400190565b60008351611e7c818460208801612452565b835190830190611e90818360208801612452565b01949350505050565b6001600160a01b0391909116815260200190565b901515815260200190565b90815260200190565b6000602082528251806020840152611ee0816040850160208701612452565b601f01601f19169190910160400192915050565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b602080825260139082015272416c726561647920686173206120626164676560681b604082015260600190565b60208082526021908201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b656040820152603760f91b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252602a908201527f4e46543a206275726e2063616c6c6572206973206e6f74206f776e6572206e6f6040820152691c88185c1c1c9bdd995960b21b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b6020808252601c908201527f526563656976657220616c726561647920686173206120626164676500000000604082015260600190565b60208082526022908201527f456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252601490820152734e6f7420616c6c6f77656420746f20636c61696d60601b604082015260600190565b60008219821115612422576124226124ec565b500190565b60008261243657612436612502565b500490565b60008282101561244d5761244d6124ec565b500390565b60005b8381101561246d578181015183820152602001612455565b8381111561247c576000848401525b50505050565b60028104600182168061249657607f821691505b602082108114156124b757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156124d1576124d16124ec565b5060010190565b6000826124e7576124e7612502565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fdfe4552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656ea2646970667358221220c65136f5fac90e35d92f28a30a25f44495f027373416aeab9aac737d72284a2c64736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000210000000000000000000000000000000000000000000000000000000000000081000000000000000000000000000000000000000000000000000000000000001900000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000002
-----Decoded View---------------
Arg [0] : _breakpointForPurple (uint256): 33
Arg [1] : _breakpointForGold (uint256): 129
Arg [2] : _pointForPurple (uint256): 25
Arg [3] : _pointForGold (uint256): 5
Arg [4] : _pointForSilver (uint256): 2
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000021
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000081
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000002
Deployed Bytecode Sourcemap
60227:3646:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10162:150;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;43880:100;;;:::i;:::-;;;;;;;:::i;46666:221::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;46196:404::-;;;;;;:::i;:::-;;:::i;:::-;;61876:210;;;;;;:::i;:::-;;:::i;45674:211::-;;;:::i;:::-;;;;;;;:::i;62456:97::-;;;;;;:::i;:::-;;:::i;45436:162::-;;;;;;:::i;:::-;;:::i;62094:243::-;;;;;;:::i;:::-;;:::i;63692:178::-;;;;;;:::i;:::-;;:::i;45962:172::-;;;;;;:::i;:::-;;:::i;61095:29::-;;;:::i;62345:103::-;;;;;;:::i;:::-;;:::i;43636:177::-;;;;;;:::i;:::-;;:::i;62899:217::-;;;;;;:::i;:::-;;:::i;45255:97::-;;;:::i;43353:221::-;;;;;;:::i;:::-;;:::i;58574:148::-;;;:::i;61194:320::-;;;;;;:::i;:::-;;:::i;61131:26::-;;;:::i;61025:29::-;;;:::i;57923:87::-;;;:::i;60984:32::-;;;:::i;44049:104::-;;;:::i;46959:295::-;;;;;;:::i;:::-;;:::i;63124:189::-;;;;;;:::i;:::-;;:::i;61522:346::-;;;;;;:::i;:::-;;:::i;62655:106::-;;;;;;:::i;44224:792::-;;;;;;:::i;:::-;;:::i;63321:363::-;;;;;;:::i;:::-;;:::i;61061:27::-;;;:::i;62769:82::-;;;;;;:::i;:::-;;:::i;47325:164::-;;;;;;:::i;:::-;;:::i;61166:19::-;;;:::i;60942:34::-;;;:::i;58877:244::-;;;;;;:::i;:::-;;:::i;10162:150::-;-1:-1:-1;;;;;;10271:33:0;;10247:4;10271:33;;;;;;;;;;;;;10162:150;;;;:::o;43880:100::-;43934:13;43967:5;43960:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43880:100;:::o;46666:221::-;46742:7;46770:16;46778:7;46770;:16::i;:::-;46762:73;;;;-1:-1:-1;;;46762:73:0;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;46855:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;46855:24:0;;46666:221::o;46196:404::-;46277:13;46293:23;46308:7;46293:14;:23::i;:::-;46277:39;;46341:5;-1:-1:-1;;;;;46335:11:0;:2;-1:-1:-1;;;;;46335:11:0;;;46327:57;;;;-1:-1:-1;;;46327:57:0;;;;;;;:::i;:::-;46421:5;-1:-1:-1;;;;;46405:21:0;:12;:10;:12::i;:::-;-1:-1:-1;;;;;46405:21:0;;:69;;;;46430:44;46454:5;46461:12;:10;:12::i;46430:44::-;46397:161;;;;-1:-1:-1;;;46397:161:0;;;;;;;:::i;:::-;46571:21;46580:2;46584:7;46571:8;:21::i;:::-;46196:404;;;:::o;61876:210::-;58154:12;:10;:12::i;:::-;-1:-1:-1;;;;;58143:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;58143:23:0;;58135:68;;;;-1:-1:-1;;;58135:68:0;;;;;;;:::i;:::-;61987:19:::1;:42:::0;;;;62040:17:::1;:38:::0;61876:210::o;45674:211::-;45735:7;45856:21;:12;:19;:21::i;:::-;45849:28;;45674:211;:::o;45436:162::-;-1:-1:-1;;;;;45560:20:0;;45533:7;45560:20;;;:13;:20;;;;;:30;;45584:5;45560:23;:30::i;:::-;45553:37;;45436:162;;;;;:::o;62094:243::-;58154:12;:10;:12::i;:::-;-1:-1:-1;;;;;58143:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;58143:23:0;;58135:68;;;;-1:-1:-1;;;58135:68:0;;;;;;;:::i;:::-;62215:14:::1;:32:::0;;;;62258:12:::1;:28:::0;62297:14:::1;:32:::0;62094:243::o;63692:178::-;63751:39;63770:10;63782:7;63751:18;:39::i;:::-;63743:94;;;;-1:-1:-1;;;63743:94:0;;;;;;;:::i;:::-;63848:14;63854:7;63848:5;:14::i;:::-;63692:178;:::o;45962:172::-;46037:7;;46079:22;:12;46095:5;46079:15;:22::i;:::-;-1:-1:-1;46057:44:0;45962:172;-1:-1:-1;;;45962:172:0:o;61095:29::-;;;;:::o;62345:103::-;58154:12;:10;:12::i;:::-;-1:-1:-1;;;;;58143:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;58143:23:0;;58135:68;;;;-1:-1:-1;;;58135:68:0;;;;;;;:::i;:::-;62419:21:::1;62431:8;62419:11;:21::i;43636:177::-:0;43708:7;43735:70;43752:7;43735:70;;;;;;;;;;;;;;;;;:12;;:70;:16;:70::i;62899:217::-;58154:12;:10;:12::i;:::-;-1:-1:-1;;;;;58143:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;58143:23:0;;58135:68;;;;-1:-1:-1;;;58135:68:0;;;;;;;:::i;:::-;63018:13:::1;63028:2;63018:9;:13::i;:::-;:18:::0;63010:59:::1;;;;-1:-1:-1::0;;;63010:59:0::1;;;;;;;:::i;:::-;63080:28;63090:4;63096:2;63100:7;63080:9;:28::i;45255:97::-:0;45303:13;45336:8;45329:15;;;;;:::i;43353:221::-;43425:7;-1:-1:-1;;;;;43453:19:0;;43445:74;;;;-1:-1:-1;;;43445:74:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;43537:20:0;;;;;;:13;:20;;;;;:29;;:27;:29::i;58574:148::-;58154:12;:10;:12::i;:::-;-1:-1:-1;;;;;58143:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;58143:23:0;;58135:68;;;;-1:-1:-1;;;58135:68:0;;;;;;;:::i;:::-;58665:6:::1;::::0;58644:40:::1;::::0;58681:1:::1;::::0;-1:-1:-1;;;;;58665:6:0::1;::::0;58644:40:::1;::::0;58681:1;;58644:40:::1;58695:6;:19:::0;;-1:-1:-1;;;;;;58695:19:0::1;::::0;;58574:148::o;61194:320::-;58154:12;:10;:12::i;:::-;-1:-1:-1;;;;;58143:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;58143:23:0;;58135:68;;;;-1:-1:-1;;;58135:68:0;;;;;;;:::i;:::-;61276:9:::1;61271:194;61291:20:::0;;::::1;61271:194;;;61341:23;61351:9;;61361:1;61351:12;;;;;-1:-1:-1::0;;;61351:12:0::1;;;;;;;;;;;;;;;;;;;;;;:::i;61341:23::-;:28:::0;61333:69:::1;;;;-1:-1:-1::0;;;61333:69:0::1;;;;;;;:::i;:::-;61417:36;61423:9;;61433:1;61423:12;;;;;-1:-1:-1::0;;;61423:12:0::1;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61451:1;61437:11;;:15;;;;:::i;:::-;61417:5;:36::i;:::-;61313:3:::0;::::1;::::0;::::1;:::i;:::-;;;;61271:194;;;;61490:9;;:16;;61475:11;;:31;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;;;61194:320:0:o;61131:26::-;;;;:::o;61025:29::-;;;;:::o;57923:87::-;57996:6;;-1:-1:-1;;;;;57996:6:0;57923:87;:::o;60984:32::-;;;;:::o;44049:104::-;44105:13;44138:7;44131:14;;;;;:::i;46959:295::-;47074:12;:10;:12::i;:::-;-1:-1:-1;;;;;47062:24:0;:8;-1:-1:-1;;;;;47062:24:0;;;47054:62;;;;-1:-1:-1;;;47054:62:0;;;;;;;:::i;:::-;47174:8;47129:18;:32;47148:12;:10;:12::i;:::-;-1:-1:-1;;;;;47129:32:0;;;;;;;;;;;;;;;;;-1:-1:-1;47129:32:0;;;:42;;;;;;;;;;;;:53;;-1:-1:-1;;47129:53:0;;;;;;;;;;;47213:12;:10;:12::i;:::-;-1:-1:-1;;;;;47198:48:0;;47237:8;47198:48;;;;;;:::i;:::-;;;;;;;;46959:295;;:::o;63124:189::-;63211:4;63235:70;63254:5;;63235:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;63261:4:0;;63277:26;;63261:4;;-1:-1:-1;63277:26:0;;-1:-1:-1;63294:8:0;;63277:26;;;:::i;:::-;;;;;;;;;;;;;63267:37;;;;;;63235:18;:70::i;:::-;63228:77;;63124:189;;;;;;:::o;61522:346::-;61583:16;61602:12;:10;:12::i;:::-;61583:31;;61633:19;61643:8;61633:9;:19::i;:::-;:24;61625:56;;;;-1:-1:-1;;;61625:56:0;;;;;;;:::i;:::-;61700:70;61719:5;;61700:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;61726:4:0;;61742:26;;61726:4;;-1:-1:-1;61742:26:0;;-1:-1:-1;61759:8:0;;61742:26;;;:::i;61700:70::-;61692:103;;;;-1:-1:-1;;;61692:103:0;;;;;;;:::i;:::-;61808:28;61814:8;61824:11;;61808:5;:28::i;:::-;61849:11;;61847:13;;;;;:::i;44224:792::-;44297:13;44331:16;44339:7;44331;:16::i;:::-;44323:76;;;;-1:-1:-1;;;44323:76:0;;;;;;;:::i;:::-;44412:23;44438:19;;;:10;:19;;;;;44412:45;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44468:18;44489:9;:7;:9::i;:::-;44468:30;;44580:4;44574:18;44596:1;44574:23;44570:72;;;-1:-1:-1;44621:9:0;-1:-1:-1;44614:16:0;;44570:72;44746:23;;:27;44742:108;;44821:4;44827:9;44804:33;;;;;;;;;:::i;:::-;;;;;;;;;;;;;44790:48;;;;;;44742:108;44982:4;44988:18;:7;:16;:18::i;:::-;44965:42;;;;;;;;;:::i;:::-;;;;;;;;;;;;;44951:57;;;;44224:792;;;:::o;63321:363::-;63377:7;63405:16;63413:7;63405;:16::i;:::-;63397:62;;;;-1:-1:-1;;;63397:62:0;;;;;;;:::i;:::-;63486:19;;63476:7;:29;63472:83;;;-1:-1:-1;63529:14:0;;63522:21;;63472:83;63580:17;;63570:7;:27;63566:79;;;-1:-1:-1;63621:12:0;;63614:19;;63566:79;-1:-1:-1;;63662:14:0;;;63321:363::o;61061:27::-;;;;:::o;62769:82::-;58154:12;:10;:12::i;:::-;-1:-1:-1;;;;;58143:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;58143:23:0;;58135:68;;;;-1:-1:-1;;;58135:68:0;;;;;;;:::i;:::-;62831:4:::1;:12:::0;62769:82::o;47325:164::-;-1:-1:-1;;;;;47446:25:0;;;47422:4;47446:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;47325:164::o;61166:19::-;;;;:::o;60942:34::-;;;;:::o;58877:244::-;58154:12;:10;:12::i;:::-;-1:-1:-1;;;;;58143:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;58143:23:0;;58135:68;;;;-1:-1:-1;;;58135:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;58966:22:0;::::1;58958:73;;;;-1:-1:-1::0;;;58958:73:0::1;;;;;;;:::i;:::-;59068:6;::::0;59047:38:::1;::::0;-1:-1:-1;;;;;59047:38:0;;::::1;::::0;59068:6:::1;::::0;59047:38:::1;::::0;59068:6:::1;::::0;59047:38:::1;59096:6;:17:::0;;-1:-1:-1;;;;;;59096:17:0::1;-1:-1:-1::0;;;;;59096:17:0;;;::::1;::::0;;;::::1;::::0;;58877:244::o;49906:127::-;49971:4;49995:30;:12;50017:7;49995:21;:30::i;659:98::-;739:10;659:98;:::o;55924:192::-;55999:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;55999:29:0;-1:-1:-1;;;;;55999:29:0;;;;;;;;:24;;56053:23;55999:24;56053:14;:23::i;:::-;-1:-1:-1;;;;;56044:46:0;;;;;;;;;;;55924:192;;:::o;36718:123::-;36787:7;36814:19;36822:3;36814:7;:19::i;28517:137::-;28588:7;28623:22;28627:3;28639:5;28623:3;:22::i;50200:355::-;50293:4;50318:16;50326:7;50318;:16::i;:::-;50310:73;;;;-1:-1:-1;;;50310:73:0;;;;;;;:::i;:::-;50394:13;50410:23;50425:7;50410:14;:23::i;:::-;50394:39;;50463:5;-1:-1:-1;;;;;50452:16:0;:7;-1:-1:-1;;;;;50452:16:0;;:51;;;;50496:7;-1:-1:-1;;;;;50472:31:0;:20;50484:7;50472:11;:20::i;:::-;-1:-1:-1;;;;;50472:31:0;;50452:51;:94;;;;50507:39;50531:5;50538:7;50507:23;:39::i;:::-;50444:103;50200:355;-1:-1:-1;;;;50200:355:0:o;52454:545::-;52514:13;52530:23;52545:7;52530:14;:23::i;:::-;52514:39;;52584:48;52605:5;52620:1;52624:7;52584:20;:48::i;:::-;52673:29;52690:1;52694:7;52673:8;:29::i;:::-;52761:19;;;;:10;:19;;;;;52755:33;;;;;:::i;:::-;:38;;-1:-1:-1;52751:97:0;;52817:19;;;;:10;:19;;;;;52810:26;;;:::i;:::-;-1:-1:-1;;;;;52860:20:0;;;;;;:13;:20;;;;;:36;;52888:7;52860:27;:36::i;:::-;-1:-1:-1;52909:28:0;:12;52929:7;52909:19;:28::i;:::-;-1:-1:-1;52955:36:0;;52983:7;;52979:1;;-1:-1:-1;;;;;52955:36:0;;;;;52979:1;;52955:36;52454:545;;:::o;37180:236::-;37260:7;;;;37320:22;37324:3;37336:5;37320:3;:22::i;:::-;37289:53;;-1:-1:-1;37289:53:0;-1:-1:-1;;;37180:236:0;;;;;;:::o;54536:100::-;54609:19;;;;:8;;:19;;;;;:::i;:::-;;54536:100;:::o;38466:213::-;38573:7;38624:44;38629:3;38649;38655:12;38624:4;:44::i;53336:599::-;53461:4;-1:-1:-1;;;;;53434:31:0;:23;53449:7;53434:14;:23::i;:::-;-1:-1:-1;;;;;53434:31:0;;53426:85;;;;-1:-1:-1;;;53426:85:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;53548:16:0;;53540:65;;;;-1:-1:-1;;;53540:65:0;;;;;;;:::i;:::-;53618:39;53639:4;53645:2;53649:7;53618:20;:39::i;:::-;53722:29;53739:1;53743:7;53722:8;:29::i;:::-;-1:-1:-1;;;;;53764:19:0;;;;;;:13;:19;;;;;:35;;53791:7;53764:26;:35::i;:::-;-1:-1:-1;;;;;;53810:17:0;;;;;;:13;:17;;;;;:30;;53832:7;53810:21;:30::i;:::-;-1:-1:-1;53853:29:0;:12;53870:7;53879:2;53853:16;:29::i;:::-;;53919:7;53915:2;-1:-1:-1;;;;;53900:27:0;53909:4;-1:-1:-1;;;;;53900:27:0;;;;;;;;;;;53336:599;;;:::o;51821:404::-;-1:-1:-1;;;;;51901:16:0;;51893:61;;;;-1:-1:-1;;;51893:61:0;;;;;;;:::i;:::-;51974:16;51982:7;51974;:16::i;:::-;51973:17;51965:58;;;;-1:-1:-1;;;51965:58:0;;;;;;;:::i;:::-;52036:45;52065:1;52069:2;52073:7;52036:20;:45::i;:::-;-1:-1:-1;;;;;52094:17:0;;;;;;:13;:17;;;;;:30;;52116:7;52094:21;:30::i;:::-;-1:-1:-1;52137:29:0;:12;52154:7;52163:2;52137:16;:29::i;:::-;-1:-1:-1;52184:33:0;;52209:7;;-1:-1:-1;;;;;52184:33:0;;;52201:1;;52184:33;;52201:1;;52184:33;51821:404;;:::o;59163:190::-;59288:4;59341;59312:25;59325:5;59332:4;59312:12;:25::i;:::-;:33;;59163:190;-1:-1:-1;;;;59163:190:0:o;38922:723::-;38978:13;39199:10;39195:53;;-1:-1:-1;39226:10:0;;;;;;;;;;;;-1:-1:-1;;;39226:10:0;;;;;;39195:53;39273:5;39258:12;39314:78;39321:9;;39314:78;;39347:8;;;;:::i;:::-;;-1:-1:-1;39370:10:0;;-1:-1:-1;39378:2:0;39370:10;;:::i;:::-;;;39314:78;;;39402:19;39434:6;39424:17;;;;;;-1:-1:-1;;;39424:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39424:17:0;;39402:39;;39452:154;39459:10;;39452:154;;39486:11;39496:1;39486:11;;:::i;:::-;;-1:-1:-1;39555:10:0;39563:2;39555:5;:10;:::i;:::-;39542:24;;:2;:24;:::i;:::-;39529:39;;39512:6;39519;39512:14;;;;;;-1:-1:-1;;;39512:14:0;;;;;;;;;;;;:56;-1:-1:-1;;;;;39512:56:0;;;;;;;;-1:-1:-1;39583:11:0;39592:2;39583:11;;:::i;:::-;;;39452:154;;36479:151;36563:4;36587:35;36597:3;36617;36587:9;:35::i;33297:110::-;33380:19;;33297:110::o;23555:204::-;23650:18;;23622:7;;23650:26;-1:-1:-1;23642:73:0;;;;-1:-1:-1;;;23642:73:0;;;;;;;:::i;:::-;23733:3;:11;;23745:5;23733:18;;;;;;-1:-1:-1;;;23733:18:0;;;;;;;;;;;;;;;;;23726:25;;23555:204;;;;:::o;27604:137::-;27674:4;27698:35;27706:3;27726:5;27698:7;:35::i;36253:142::-;36330:4;36354:33;36362:3;36382;36354:7;:33::i;33762:279::-;33866:19;;33829:7;;;;33866:27;-1:-1:-1;33858:74:0;;;;-1:-1:-1;;;33858:74:0;;;;;;;:::i;:::-;33945:22;33970:3;:12;;33983:5;33970:19;;;;;;-1:-1:-1;;;33970:19:0;;;;;;;;;;;;;;;;;;;33945:44;;34008:5;:10;;;34020:5;:12;;;34000:33;;;;;33762:279;;;;;:::o;35259:319::-;35353:7;35392:17;;;:12;;;:17;;;;;;35443:12;35428:13;35420:36;;;;-1:-1:-1;;;35420:36:0;;;;;;;;:::i;:::-;-1:-1:-1;35510:3:0;35523:12;35534:1;35523:8;:12;:::i;:::-;35510:26;;;;;;-1:-1:-1;;;35510:26:0;;;;;;;;;;;;;;;;;;;:33;;;35503:40;;;35259:319;;;;;:::o;27297:131::-;27364:4;27388:32;27393:3;27413:5;27388:4;:32::i;35902:185::-;35991:4;36015:64;36020:3;36040;-1:-1:-1;;;;;36054:23:0;;36015:4;:64::i;59367:701::-;59450:7;59493:4;59450:7;59508:523;59532:5;:12;59528:1;:16;59508:523;;;59566:20;59589:5;59595:1;59589:8;;;;;;-1:-1:-1;;;59589:8:0;;;;;;;;;;;;;;;59566:31;;59632:12;59616;:28;59612:408;;59786:12;59800;59769:44;;;;;;;;;:::i;:::-;;;;;;;;;;;;;59759:55;;;;;;59744:70;;59612:408;;;59976:12;59990;59959:44;;;;;;;;;:::i;:::-;;;;;;;;;;;;;59949:55;;;;;;59934:70;;59612:408;-1:-1:-1;59546:3:0;;;;:::i;:::-;;;;59508:523;;33077:125;33148:4;33172:17;;;:12;;;;;:17;;;;;;:22;;;33077:125::o;21257:1544::-;21323:4;21462:19;;;:12;;;:19;;;;;;21498:15;;21494:1300;;21860:21;21884:14;21897:1;21884:10;:14;:::i;:::-;21933:18;;21860:38;;-1:-1:-1;21913:17:0;;21933:22;;21954:1;;21933:22;:::i;:::-;21913:42;;22200:17;22220:3;:11;;22232:9;22220:22;;;;;;-1:-1:-1;;;22220:22:0;;;;;;;;;;;;;;;;;22200:42;;22366:9;22337:3;:11;;22349:13;22337:26;;;;;;-1:-1:-1;;;22337:26:0;;;;;;;;;;;;;;;;;;:38;22469:17;:13;22485:1;22469:17;:::i;:::-;22443:23;;;;:12;;;:23;;;;;:43;22595:17;;22443:3;;22595:17;;;-1:-1:-1;;;22595:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;22690:3;:12;;:19;22703:5;22690:19;;;;;;;;;;;22683:26;;;22733:4;22726:11;;;;;;;;21494:1300;22777:5;22770:12;;;;;31444:1549;31508:4;31643:17;;;:12;;;:17;;;;;;31677:13;;31673:1313;;32038:21;32062:12;32073:1;32062:8;:12;:::i;:::-;32109:19;;32038:36;;-1:-1:-1;32089:17:0;;32109:23;;32131:1;;32109:23;:::i;:::-;32089:43;;32377:26;32406:3;:12;;32419:9;32406:23;;;;;;-1:-1:-1;;;32406:23:0;;;;;;;;;;;;;;;;;;;32377:52;;32554:9;32524:3;:12;;32537:13;32524:27;;;;;;-1:-1:-1;;;32524:27:0;;;;;;;;;;;;;;;;;:39;;:27;;;;;:39;;;;;;;;;;;;32662:17;;:13;;:17;:::i;:::-;32644:14;;32631:28;;;;:12;;;:28;;;;;:48;32788:18;;32631:3;;32788:18;;;-1:-1:-1;;;32788:18:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;32788:18:0;;;;;;;;;;;;;;;;;;;;;32884:17;;;:12;;;:17;;;;;;32877:24;;;;32788:18;-1:-1:-1;32918:11:0;;-1:-1:-1;;;;32918:11:0;20667:414;20730:4;20752:21;20762:3;20767:5;20752:9;:21::i;:::-;20747:327;;-1:-1:-1;20790:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;20973:18;;20951:19;;;:12;;;:19;;;;;;:40;;;;21006:11;;20747:327;-1:-1:-1;21057:5:0;21050:12;;30577:692;30653:4;30788:17;;;:12;;;:17;;;;;;30822:13;30818:444;;-1:-1:-1;;30907:38:0;;;;;;;;;;;;;;;;;;30889:57;;;;;;;;:12;:57;;;;;;;;;;;;;;;;;;;;;;;;31104:19;;31084:17;;;:12;;;:17;;;;;;;:39;31138:11;;30818:444;31218:5;31182:3;31195:12;31206:1;31195:8;:12;:::i;:::-;31182:26;;;;;;-1:-1:-1;;;31182:26:0;;;;;;;;;;;;;;;;;;;:33;;:41;;;;31245:5;31238:12;;;;;-1:-1:-1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:607:1;;110:18;151:2;143:6;140:14;137:2;;;157:18;;:::i;:::-;206:2;200:9;279:2;256:17;;-1:-1:-1;;252:31:1;240:44;;286:4;236:55;306:18;;;326:22;;;303:46;300:2;;;352:18;;:::i;:::-;388:2;381:22;436;;;421:6;-1:-1:-1;421:6:1;473:16;;;470:25;-1:-1:-1;467:2:1;;;508:1;505;498:12;467:2;558:6;553:3;546:4;538:6;534:17;521:44;613:1;606:4;597:6;589;585:19;581:30;574:41;;;90:531;;;;;:::o;626:175::-;696:20;;-1:-1:-1;;;;;745:31:1;;735:42;;725:2;;791:1;788;781:12;806:400;;;939:3;932:4;924:6;920:17;916:27;906:2;;962:6;954;947:22;906:2;-1:-1:-1;990:20:1;;1033:18;1022:30;;1019:2;;;1072:8;1062;1055:26;1019:2;1116:4;1108:6;1104:17;1092:29;;1179:3;1172:4;1164;1156:6;1152:17;1144:6;1140:30;1136:41;1133:50;1130:2;;;1196:1;1193;1186:12;1211:198;;1323:2;1311:9;1302:7;1298:23;1294:32;1291:2;;;1344:6;1336;1329:22;1291:2;1372:31;1393:9;1372:31;:::i;1414:274::-;;;1543:2;1531:9;1522:7;1518:23;1514:32;1511:2;;;1564:6;1556;1549:22;1511:2;1592:31;1613:9;1592:31;:::i;:::-;1582:41;;1642:40;1678:2;1667:9;1663:18;1642:40;:::i;:::-;1632:50;;1501:187;;;;;:::o;1693:342::-;;;;1839:2;1827:9;1818:7;1814:23;1810:32;1807:2;;;1860:6;1852;1845:22;1807:2;1888:31;1909:9;1888:31;:::i;:::-;1878:41;;1938:40;1974:2;1963:9;1959:18;1938:40;:::i;:::-;1928:50;;2025:2;2014:9;2010:18;1997:32;1987:42;;1797:238;;;;;:::o;2040:702::-;;;;;2212:3;2200:9;2191:7;2187:23;2183:33;2180:2;;;2234:6;2226;2219:22;2180:2;2262:31;2283:9;2262:31;:::i;:::-;2252:41;;2312:40;2348:2;2337:9;2333:18;2312:40;:::i;:::-;2302:50;;2399:2;2388:9;2384:18;2371:32;2361:42;;2454:2;2443:9;2439:18;2426:32;2481:18;2473:6;2470:30;2467:2;;;2518:6;2510;2503:22;2467:2;2546:22;;2599:4;2591:13;;2587:27;-1:-1:-1;2577:2:1;;2633:6;2625;2618:22;2577:2;2661:75;2728:7;2723:2;2710:16;2705:2;2701;2697:11;2661:75;:::i;:::-;2651:85;;;2170:572;;;;;;;:::o;2747:539::-;;;;2911:2;2899:9;2890:7;2886:23;2882:32;2879:2;;;2932:6;2924;2917:22;2879:2;2960:31;2981:9;2960:31;:::i;:::-;2950:41;;3042:2;3031:9;3027:18;3014:32;3069:18;3061:6;3058:30;3055:2;;;3106:6;3098;3091:22;3055:2;3150:76;3218:7;3209:6;3198:9;3194:22;3150:76;:::i;:::-;2869:417;;3245:8;;-1:-1:-1;3124:102:1;;-1:-1:-1;;;;2869:417:1:o;3291:369::-;;;3417:2;3405:9;3396:7;3392:23;3388:32;3385:2;;;3438:6;3430;3423:22;3385:2;3466:31;3487:9;3466:31;:::i;:::-;3456:41;;3547:2;3536:9;3532:18;3519:32;3594:5;3587:13;3580:21;3573:5;3570:32;3560:2;;3621:6;3613;3606:22;3560:2;3649:5;3639:15;;;3375:285;;;;;:::o;3665:266::-;;;3794:2;3782:9;3773:7;3769:23;3765:32;3762:2;;;3815:6;3807;3800:22;3762:2;3843:31;3864:9;3843:31;:::i;:::-;3833:41;3921:2;3906:18;;;;3893:32;;-1:-1:-1;;;3752:179:1:o;3936:463::-;;;4083:2;4071:9;4062:7;4058:23;4054:32;4051:2;;;4104:6;4096;4089:22;4051:2;4149:9;4136:23;4182:18;4174:6;4171:30;4168:2;;;4219:6;4211;4204:22;4168:2;4263:76;4331:7;4322:6;4311:9;4307:22;4263:76;:::i;:::-;4358:8;;4237:102;;-1:-1:-1;4041:358:1;-1:-1:-1;;;;4041:358:1:o;4872:190::-;;4984:2;4972:9;4963:7;4959:23;4955:32;4952:2;;;5005:6;4997;4990:22;4952:2;-1:-1:-1;5033:23:1;;4942:120;-1:-1:-1;4942:120:1:o;5067:306::-;;5178:2;5166:9;5157:7;5153:23;5149:32;5146:2;;;5199:6;5191;5184:22;5146:2;5230:23;;-1:-1:-1;;;;;;5282:32:1;;5272:43;;5262:2;;5334:6;5326;5319:22;5378:482;;5500:2;5488:9;5479:7;5475:23;5471:32;5468:2;;;5521:6;5513;5506:22;5468:2;5566:9;5553:23;5599:18;5591:6;5588:30;5585:2;;;5636:6;5628;5621:22;5585:2;5664:22;;5717:4;5709:13;;5705:27;-1:-1:-1;5695:2:1;;5751:6;5743;5736:22;5695:2;5779:75;5846:7;5841:2;5828:16;5823:2;5819;5815:11;5779:75;:::i;6060:258::-;;;6189:2;6177:9;6168:7;6164:23;6160:32;6157:2;;;6210:6;6202;6195:22;6157:2;-1:-1:-1;;6238:23:1;;;6308:2;6293:18;;;6280:32;;-1:-1:-1;6147:171:1:o;6323:326::-;;;;6469:2;6457:9;6448:7;6444:23;6440:32;6437:2;;;6490:6;6482;6475:22;6437:2;-1:-1:-1;;6518:23:1;;;6588:2;6573:18;;6560:32;;-1:-1:-1;6639:2:1;6624:18;;;6611:32;;6427:222;-1:-1:-1;6427:222:1:o;6654:229::-;6803:2;6799:15;;;;-1:-1:-1;;6795:53:1;6783:66;;6874:2;6865:12;;6773:110::o;6888:247::-;7045:19;;;7089:2;7080:12;;7073:28;7126:2;7117:12;;7035:100::o;7140:470::-;;7357:6;7351:13;7373:53;7419:6;7414:3;7407:4;7399:6;7395:17;7373:53;:::i;:::-;7489:13;;7448:16;;;;7511:57;7489:13;7448:16;7545:4;7533:17;;7511:57;:::i;:::-;7584:20;;7327:283;-1:-1:-1;;;;7327:283:1:o;7615:203::-;-1:-1:-1;;;;;7779:32:1;;;;7761:51;;7749:2;7734:18;;7716:102::o;7823:187::-;7988:14;;7981:22;7963:41;;7951:2;7936:18;;7918:92::o;8015:177::-;8161:25;;;8149:2;8134:18;;8116:76::o;8197:383::-;;8346:2;8335:9;8328:21;8378:6;8372:13;8421:6;8416:2;8405:9;8401:18;8394:34;8437:66;8496:6;8491:2;8480:9;8476:18;8471:2;8463:6;8459:15;8437:66;:::i;:::-;8564:2;8543:15;-1:-1:-1;;8539:29:1;8524:45;;;;8571:2;8520:54;;8318:262;-1:-1:-1;;8318:262:1:o;8585:398::-;8787:2;8769:21;;;8826:2;8806:18;;;8799:30;8865:34;8860:2;8845:18;;8838:62;-1:-1:-1;;;8931:2:1;8916:18;;8909:32;8973:3;8958:19;;8759:224::o;8988:343::-;9190:2;9172:21;;;9229:2;9209:18;;;9202:30;-1:-1:-1;;;9263:2:1;9248:18;;9241:49;9322:2;9307:18;;9162:169::o;9336:397::-;9538:2;9520:21;;;9577:2;9557:18;;;9550:30;9616:34;9611:2;9596:18;;9589:62;-1:-1:-1;;;9682:2:1;9667:18;;9660:31;9723:3;9708:19;;9510:223::o;9738:402::-;9940:2;9922:21;;;9979:2;9959:18;;;9952:30;10018:34;10013:2;9998:18;;9991:62;-1:-1:-1;;;10084:2:1;10069:18;;10062:36;10130:3;10115:19;;9912:228::o;10145:352::-;10347:2;10329:21;;;10386:2;10366:18;;;10359:30;10425;10420:2;10405:18;;10398:58;10488:2;10473:18;;10319:178::o;10502:400::-;10704:2;10686:21;;;10743:2;10723:18;;;10716:30;10782:34;10777:2;10762:18;;10755:62;-1:-1:-1;;;10848:2:1;10833:18;;10826:34;10892:3;10877:19;;10676:226::o;10907:349::-;11109:2;11091:21;;;11148:2;11128:18;;;11121:30;11187:27;11182:2;11167:18;;11160:55;11247:2;11232:18;;11081:175::o;11261:408::-;11463:2;11445:21;;;11502:2;11482:18;;;11475:30;11541:34;11536:2;11521:18;;11514:62;-1:-1:-1;;;11607:2:1;11592:18;;11585:42;11659:3;11644:19;;11435:234::o;11674:406::-;11876:2;11858:21;;;11915:2;11895:18;;;11888:30;11954:34;11949:2;11934:18;;11927:62;-1:-1:-1;;;12020:2:1;12005:18;;11998:40;12070:3;12055:19;;11848:232::o;12085:420::-;12287:2;12269:21;;;12326:2;12306:18;;;12299:30;12365:34;12360:2;12345:18;;12338:62;12436:26;12431:2;12416:18;;12409:54;12495:3;12480:19;;12259:246::o;12510:406::-;12712:2;12694:21;;;12751:2;12731:18;;;12724:30;12790:34;12785:2;12770:18;;12763:62;-1:-1:-1;;;12856:2:1;12841:18;;12834:40;12906:3;12891:19;;12684:232::o;12921:352::-;13123:2;13105:21;;;13162:2;13142:18;;;13135:30;13201;13196:2;13181:18;;13174:58;13264:2;13249:18;;13095:178::o;13278:398::-;13480:2;13462:21;;;13519:2;13499:18;;;13492:30;13558:34;13553:2;13538:18;;13531:62;-1:-1:-1;;;13624:2:1;13609:18;;13602:32;13666:3;13651:19;;13452:224::o;13681:356::-;13883:2;13865:21;;;13902:18;;;13895:30;13961:34;13956:2;13941:18;;13934:62;14028:2;14013:18;;13855:182::o;14042:408::-;14244:2;14226:21;;;14283:2;14263:18;;;14256:30;14322:34;14317:2;14302:18;;14295:62;-1:-1:-1;;;14388:2:1;14373:18;;14366:42;14440:3;14425:19;;14216:234::o;14455:356::-;14657:2;14639:21;;;14676:18;;;14669:30;14735:34;14730:2;14715:18;;14708:62;14802:2;14787:18;;14629:182::o;14816:405::-;15018:2;15000:21;;;15057:2;15037:18;;;15030:30;15096:34;15091:2;15076:18;;15069:62;-1:-1:-1;;;15162:2:1;15147:18;;15140:39;15211:3;15196:19;;14990:231::o;15226:411::-;15428:2;15410:21;;;15467:2;15447:18;;;15440:30;15506:34;15501:2;15486:18;;15479:62;-1:-1:-1;;;15572:2:1;15557:18;;15550:45;15627:3;15612:19;;15400:237::o;15642:397::-;15844:2;15826:21;;;15883:2;15863:18;;;15856:30;15922:34;15917:2;15902:18;;15895:62;-1:-1:-1;;;15988:2:1;15973:18;;15966:31;16029:3;16014:19;;15816:223::o;16044:344::-;16246:2;16228:21;;;16285:2;16265:18;;;16258:30;-1:-1:-1;;;16319:2:1;16304:18;;16297:50;16379:2;16364:18;;16218:170::o;16575:128::-;;16646:1;16642:6;16639:1;16636:13;16633:2;;;16652:18;;:::i;:::-;-1:-1:-1;16688:9:1;;16623:80::o;16708:120::-;;16774:1;16764:2;;16779:18;;:::i;:::-;-1:-1:-1;16813:9:1;;16754:74::o;16833:125::-;;16901:1;16898;16895:8;16892:2;;;16906:18;;:::i;:::-;-1:-1:-1;16943:9:1;;16882:76::o;16963:258::-;17035:1;17045:113;17059:6;17056:1;17053:13;17045:113;;;17135:11;;;17129:18;17116:11;;;17109:39;17081:2;17074:10;17045:113;;;17176:6;17173:1;17170:13;17167:2;;;17211:1;17202:6;17197:3;17193:16;17186:27;17167:2;;17016:205;;;:::o;17226:380::-;17311:1;17301:12;;17358:1;17348:12;;;17369:2;;17423:4;17415:6;17411:17;17401:27;;17369:2;17476;17468:6;17465:14;17445:18;17442:38;17439:2;;;17522:10;17517:3;17513:20;17510:1;17503:31;17557:4;17554:1;17547:15;17585:4;17582:1;17575:15;17439:2;;17281:325;;;:::o;17611:135::-;;-1:-1:-1;;17671:17:1;;17668:2;;;17691:18;;:::i;:::-;-1:-1:-1;17738:1:1;17727:13;;17658:88::o;17751:112::-;;17809:1;17799:2;;17814:18;;:::i;:::-;-1:-1:-1;17848:9:1;;17789:74::o;17868:127::-;17929:10;17924:3;17920:20;17917:1;17910:31;17960:4;17957:1;17950:15;17984:4;17981:1;17974:15;18000:127;18061:10;18056:3;18052:20;18049:1;18042:31;18092:4;18089:1;18082:15;18116:4;18113:1;18106:15;18132:127;18193:10;18188:3;18184:20;18181:1;18174:31;18224:4;18221:1;18214:15;18248:4;18245:1;18238:15
Swarm Source
ipfs://c65136f5fac90e35d92f28a30a25f44495f027373416aeab9aac737d72284a2c
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.