ERC-721
Overview
Max Total Supply
85 DNFT
Holders
10
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 DNFTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DigiNFT
Compiler Version
v0.6.5+commit.f956cc89
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-04-25 */ // File: @openzeppelin/contracts/GSN/Context.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.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 payable) { 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 // SPDX-License-Identifier: MIT pragma solidity ^0.6.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 // SPDX-License-Identifier: MIT pragma solidity ^0.6.2; /** * @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 // SPDX-License-Identifier: MIT pragma solidity ^0.6.2; /** * @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 // SPDX-License-Identifier: MIT pragma solidity ^0.6.2; /** * @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 // SPDX-License-Identifier: MIT pragma solidity ^0.6.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 // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ 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 () internal { // 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 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/math/SafeMath.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: @openzeppelin/contracts/utils/Address.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.2; /** * @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 in 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"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); 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 // SPDX-License-Identifier: MIT pragma solidity ^0.6.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.0.0, only sets of type `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]; } // 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(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(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(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(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 // SPDX-License-Identifier: MIT pragma solidity ^0.6.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 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) { return _get(map, key, "EnumerableMap: nonexistent key"); } /** * @dev Same as {_get}, with a custom error message when `key` is not in the map. */ 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(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(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(uint256(_get(map._inner, bytes32(key)))); } /** * @dev Same as {get}, with a custom error message when `key` is not in the map. */ function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) { return address(uint256(_get(map._inner, bytes32(key), errorMessage))); } } // File: @openzeppelin/contracts/utils/Strings.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.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); uint256 index = digits - 1; temp = value; while (temp != 0) { buffer[index--] = byte(uint8(48 + temp % 10)); temp /= 10; } return string(buffer); } } // File: @openzeppelin/contracts/token/ERC721/ERC721.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.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 SafeMath for uint256; 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) public { _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 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 override returns (address) { return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token"); } /** * @dev See {IERC721Metadata-name}. */ function name() public view override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; // If there is no base URI, return the token URI. if (bytes(_baseURI).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(_baseURI, _tokenURI)); } // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI. return string(abi.encodePacked(_baseURI, 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 returns (string memory) { return _baseURI; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { return _holderTokens[owner].at(index); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view 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 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 = ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require(_msgSender() == owner || 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 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 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 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 returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || 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 = ownerOf(tokenId); _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(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); 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); } function _approve(address to, uint256 tokenId) private { _tokenApprovals[tokenId] = to; emit Approval(ownerOf(tokenId), to, tokenId); } /** * @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/utils/Counters.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath} * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never * directly accessed. */ library Counters { using SafeMath for uint256; struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { // The {SafeMath} overflow check can be skipped here, see the comment at the top counter._value += 1; } function decrement(Counter storage counter) internal { counter._value = counter._value.sub(1); } } // File: @openzeppelin/contracts/access/AccessControl.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context { using EnumerableSet for EnumerableSet.AddressSet; using Address for address; struct RoleData { EnumerableSet.AddressSet members; bytes32 adminRole; } mapping (bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view returns (bool) { return _roles[role].members.contains(account); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view returns (uint256) { return _roles[role].members.length(); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view returns (address) { return _roles[role].members.at(index); } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant"); _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke"); _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { emit RoleAdminChanged(role, _roles[role].adminRole, adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (_roles[role].members.add(account)) { emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (_roles[role].members.remove(account)) { emit RoleRevoked(role, account, _msgSender()); } } } // File: contracts/DigiNFT.sol pragma solidity 0.6.5; contract DigiNFT is ERC721, AccessControl { using Counters for Counters.Counter; Counters.Counter private _tokenIds; bytes32 public constant MINTER = keccak256("MINTER"); mapping (uint256 => string) private _cardNames; mapping (uint256 => string) public _cardImages; mapping (uint256 => bool) private _cardPhysicals; constructor( string memory baseURI ) public ERC721("Digi NFT", "DNFT") { _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(MINTER, msg.sender); _setBaseURI(baseURI); } /** * @dev Mints a new DIGI NFT for a wallet. */ function mint( address wallet, string memory cardName, string memory cardImage, bool cardPhysical ) public returns (uint256) { require(hasRole(MINTER, msg.sender), 'DigiNFT: Only for role MINTER'); _tokenIds.increment(); uint256 newItemId = _tokenIds.current(); _mint(wallet, newItemId); _setCardName(newItemId, cardName); _setCardImage(newItemId, cardImage); _setCardPhysical(newItemId, cardPhysical); return newItemId; } function cardName(uint256 tokenId) public view returns (string memory) { require(_exists(tokenId), "ERC721Metadata: Name query for nonexistent token"); return _cardNames[tokenId]; } function cardPhysical(uint256 tokenId) public view returns (bool) { require(_exists(tokenId), "ERC721Metadata: Physical query for nonexistent token"); return _cardPhysicals[tokenId]; } function cardImage(uint256 tokenId) public view returns (string memory) { require(_exists(tokenId), "ERC721Metadata: Image query for nonexistent token"); return _cardImages[tokenId]; } function _setCardName(uint256 tokenId, string memory _cardName) internal virtual { require(_exists(tokenId), "ERC721Metadata: Name set of nonexistent token"); _cardNames[tokenId] = _cardName; } function _setCardPhysical(uint256 tokenId, bool _cardPhysical) internal virtual { require(_exists(tokenId), "ERC721Metadata: Physical set of nonexistent token"); _cardPhysicals[tokenId] = _cardPhysical; } function _setCardImage(uint256 tokenId, string memory _cardImage) internal virtual { require(_exists(tokenId), "ERC721Metadata: Image set of nonexistent token"); _cardImages[tokenId] = _cardImage; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_cardImages","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"cardImage","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"cardName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"cardPhysical","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"wallet","type":"address"},{"internalType":"string","name":"cardName","type":"string"},{"internalType":"string","name":"cardImage","type":"string"},{"internalType":"bool","name":"cardPhysical","type":"bool"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200430838038062004308833981810160405260208110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b838201915060208201858111156200006f57600080fd5b82518660018202830111640100000000821117156200008d57600080fd5b8083526020830192505050908051906020019080838360005b83811015620000c3578082015181840152602081019050620000a6565b50505050905090810190601f168015620000f15780820380516001836020036101000a031916815260200191505b506040525050506040518060400160405280600881526020017f44696769204e46540000000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f444e4654000000000000000000000000000000000000000000000000000000008152506200017c6301ffc9a760e01b6200026c60201b60201c565b81600690805190602001906200019492919062000528565b508060079080519060200190620001ad92919062000528565b50620001c66380ac58cd60e01b6200026c60201b60201c565b620001de635b5e139f60e01b6200026c60201b60201c565b620001f663780e9d6360e01b6200026c60201b60201c565b50506200020d6000801b336200037560201b60201c565b6200025460405180807f4d494e544552000000000000000000000000000000000000000000000000000081525060060190506040518091039020336200037560201b60201c565b62000265816200038b60201b60201c565b50620005d7565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141562000309576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433136353a20696e76616c696420696e746572666163652069640000000081525060200191505060405180910390fd5b6001600080837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b620003878282620003a760201b60201c565b5050565b8060099080519060200190620003a392919062000528565b5050565b620003d681600a60008581526020019081526020016000206000016200044b60201b62002efd1790919060201c565b156200044757620003ec6200048360201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006200047b836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6200048b60201b60201c565b905092915050565b600033905090565b60006200049f83836200050560201b60201c565b620004fa578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050620004ff565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200056b57805160ff19168380011785556200059c565b828001600101855582156200059c579182015b828111156200059b5782518255916020019190600101906200057e565b5b509050620005ab9190620005af565b5090565b620005d491905b80821115620005d0576000816000905550600101620005b6565b5090565b90565b613d2180620005e76000396000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c80636352211e1161010f578063b88d4fde116100a2578063d98abda711610071578063d98abda714610ddd578063e6b25dfc14610e84578063e985e9c514610f2b578063fe6d812414610fa7576101e5565b8063b88d4fde14610ba1578063c87b56dd14610ca6578063ca15c87314610d4d578063d547741f14610d8f576101e5565b806391d14854116100de57806391d1485414610a4a57806395d89b4114610ab0578063a217fddf14610b33578063a22cb46514610b51576101e5565b80636352211e146108895780636c0360eb146108f757806370a082311461097a5780639010d07c146109d2576101e5565b8063248a9ca3116101875780633866d8a4116101565780633866d8a4146105a05780633c3689001461073257806342842e0e146107d95780634f6ccce714610847576101e5565b8063248a9ca3146104605780632f2ff15d146104a25780632f745c59146104f057806336568abe14610552576101e5565b8063095ea7b3116101c3578063095ea7b3146103405780630c6afb6e1461038e57806318160ddd146103d457806323b872dd146103f2576101e5565b806301ffc9a7146101ea57806306fdde031461024f578063081812fc146102d2575b600080fd5b6102356004803603602081101561020057600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190505050610fc5565b604051808215151515815260200191505060405180910390f35b61025761102c565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561029757808201518184015260208101905061027c565b50505050905090810190601f1680156102c45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102fe600480360360208110156102e857600080fd5b81019080803590602001909291905050506110ce565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61038c6004803603604081101561035657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611169565b005b6103ba600480360360208110156103a457600080fd5b81019080803590602001909291905050506112ad565b604051808215151515815260200191505060405180910390f35b6103dc611335565b6040518082815260200191505060405180910390f35b61045e6004803603606081101561040857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611346565b005b61048c6004803603602081101561047657600080fd5b81019080803590602001909291905050506113bc565b6040518082815260200191505060405180910390f35b6104ee600480360360408110156104b857600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506113dc565b005b61053c6004803603604081101561050657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611466565b6040518082815260200191505060405180910390f35b61059e6004803603604081101561056857600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506114c1565b005b61071c600480360360808110156105b657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001906401000000008111156105f357600080fd5b82018360208201111561060557600080fd5b8035906020019184600183028401116401000000008311171561062757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192908035906020019064010000000081111561068a57600080fd5b82018360208201111561069c57600080fd5b803590602001918460018302840111640100000000831117156106be57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929080351515906020019092919050505061155a565b6040518082815260200191505060405180910390f35b61075e6004803603602081101561074857600080fd5b8101908080359060200190929190505050611659565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561079e578082015181840152602081019050610783565b50505050905090810190601f1680156107cb5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610845600480360360608110156107ef57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611709565b005b6108736004803603602081101561085d57600080fd5b8101908080359060200190929190505050611729565b6040518082815260200191505060405180910390f35b6108b56004803603602081101561089f57600080fd5b810190808035906020019092919050505061174c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6108ff611783565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561093f578082015181840152602081019050610924565b50505050905090810190601f16801561096c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6109bc6004803603602081101561099057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611825565b6040518082815260200191505060405180910390f35b610a08600480360360408110156109e857600080fd5b8101908080359060200190929190803590602001909291905050506118fa565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610a9660048036036040811015610a6057600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061192c565b604051808215151515815260200191505060405180910390f35b610ab861195e565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610af8578082015181840152602081019050610add565b50505050905090810190601f168015610b255780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610b3b611a00565b6040518082815260200191505060405180910390f35b610b9f60048036036040811015610b6757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050611a07565b005b610ca460048036036080811015610bb757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190640100000000811115610c1e57600080fd5b820183602082011115610c3057600080fd5b80359060200191846001830284011164010000000083111715610c5257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611bbf565b005b610cd260048036036020811015610cbc57600080fd5b8101908080359060200190929190505050611c37565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610d12578082015181840152602081019050610cf7565b50505050905090810190601f168015610d3f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610d7960048036036020811015610d6357600080fd5b8101908080359060200190929190505050611f20565b6040518082815260200191505060405180910390f35b610ddb60048036036040811015610da557600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611f47565b005b610e0960048036036020811015610df357600080fd5b8101908080359060200190929190505050611fd1565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610e49578082015181840152602081019050610e2e565b50505050905090810190601f168015610e765780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610eb060048036036020811015610e9a57600080fd5b81019080803590602001909291905050506120e4565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610ef0578082015181840152602081019050610ed5565b50505050905090810190601f168015610f1d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610f8d60048036036040811015610f4157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506121f7565b604051808215151515815260200191505060405180910390f35b610faf61228b565b6040518082815260200191505060405180910390f35b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b606060068054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156110c45780601f10611099576101008083540402835291602001916110c4565b820191906000526020600020905b8154815290600101906020018083116110a757829003601f168201915b5050505050905090565b60006110d9826122c4565b61112e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180613b58602c913960400191505060405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006111748261174c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156111fb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180613c0a6021913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661121a6122e1565b73ffffffffffffffffffffffffffffffffffffffff1614806112495750611248816112436122e1565b6121f7565b5b61129e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526038815260200180613a7e6038913960400191505060405180910390fd5b6112a883836122e9565b505050565b60006112b8826122c4565b61130d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260348152602001806139166034913960400191505060405180910390fd5b600e600083815260200190815260200160002060009054906101000a900460ff169050919050565b600061134160026123a2565b905090565b6113576113516122e1565b826123b7565b6113ac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180613c2b6031913960400191505060405180910390fd5b6113b78383836124ab565b505050565b6000600a6000838152602001908152602001600020600201549050919050565b611403600a6000848152602001908152602001600020600201546113fe6122e1565b61192c565b611458576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f81526020018061399d602f913960400191505060405180910390fd5b61146282826126ee565b5050565b60006114b982600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061278290919063ffffffff16565b905092915050565b6114c96122e1565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461154c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180613cbd602f913960400191505060405180910390fd5b611556828261279c565b5050565b600061159b60405180807f4d494e5445520000000000000000000000000000000000000000000000000000815250600601905060405180910390203361192c565b61160d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f446967694e46543a204f6e6c7920666f7220726f6c65204d494e54455200000081525060200191505060405180910390fd5b611617600b612830565b6000611623600b612846565b905061162f8682612854565b6116398186612a48565b6116438185612ad2565b61164d8184612b5c565b80915050949350505050565b600d6020528060005260406000206000915090508054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156117015780601f106116d657610100808354040283529160200191611701565b820191906000526020600020905b8154815290600101906020018083116116e457829003601f168201915b505050505081565b61172483838360405180602001604052806000815250611bbf565b505050565b600080611740836002612be990919063ffffffff16565b50905080915050919050565b600061177c82604051806060016040528060298152602001613ae0602991396002612c189092919063ffffffff16565b9050919050565b606060098054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561181b5780601f106117f05761010080835404028352916020019161181b565b820191906000526020600020905b8154815290600101906020018083116117fe57829003601f168201915b5050505050905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180613ab6602a913960400191505060405180910390fd5b6118f3600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612c37565b9050919050565b600061192482600a6000868152602001908152602001600020600001612c4c90919063ffffffff16565b905092915050565b600061195682600a6000868152602001908152602001600020600001612c6690919063ffffffff16565b905092915050565b606060078054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156119f65780601f106119cb576101008083540402835291602001916119f6565b820191906000526020600020905b8154815290600101906020018083116119d957829003601f168201915b5050505050905090565b6000801b81565b611a0f6122e1565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ab0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f4552433732313a20617070726f766520746f2063616c6c65720000000000000081525060200191505060405180910390fd5b8060056000611abd6122e1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b6a6122e1565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051808215151515815260200191505060405180910390a35050565b611bd0611bca6122e1565b836123b7565b611c25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180613c2b6031913960400191505060405180910390fd5b611c3184848484612c96565b50505050565b6060611c42826122c4565b611c97576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180613bad602f913960400191505060405180910390fd5b6060600860008481526020019081526020016000208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611d405780601f10611d1557610100808354040283529160200191611d40565b820191906000526020600020905b815481529060010190602001808311611d2357829003601f168201915b50505050509050600060098054600181600116156101000203166002900490501415611d6f5780915050611f1b565b600081511115611e48576009816040516020018083805460018160011615610100020316600290048015611dda5780601f10611db8576101008083540402835291820191611dda565b820191906000526020600020905b815481529060010190602001808311611dc6575b505082805190602001908083835b60208310611e0b5780518252602082019150602081019050602083039250611de8565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050611f1b565b6009611e5384612d08565b6040516020018083805460018160011615610100020316600290048015611eb15780601f10611e8f576101008083540402835291820191611eb1565b820191906000526020600020905b815481529060010190602001808311611e9d575b505082805190602001908083835b60208310611ee25780518252602082019150602081019050602083039250611ebf565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040529150505b919050565b6000611f40600a6000848152602001908152602001600020600001612e4f565b9050919050565b611f6e600a600084815260200190815260200160002060020154611f696122e1565b61192c565b611fc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526030815260200180613a4e6030913960400191505060405180910390fd5b611fcd828261279c565b5050565b6060611fdc826122c4565b612031576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526030815260200180613c8d6030913960400191505060405180910390fd5b600c60008381526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156120d85780601f106120ad576101008083540402835291602001916120d8565b820191906000526020600020905b8154815290600101906020018083116120bb57829003601f168201915b50505050509050919050565b60606120ef826122c4565b612144576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603181526020018061396c6031913960400191505060405180910390fd5b600d60008381526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156121eb5780601f106121c0576101008083540402835291602001916121eb565b820191906000526020600020905b8154815290600101906020018083116121ce57829003601f168201915b50505050509050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60405180807f4d494e54455200000000000000000000000000000000000000000000000000008152506006019050604051809103902081565b60006122da826002612e6490919063ffffffff16565b9050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661235c8361174c565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006123b082600001612e7e565b9050919050565b60006123c2826122c4565b612417576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180613a22602c913960400191505060405180910390fd5b60006124228361174c565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061249157508373ffffffffffffffffffffffffffffffffffffffff16612479846110ce565b73ffffffffffffffffffffffffffffffffffffffff16145b806124a257506124a181856121f7565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166124cb8261174c565b73ffffffffffffffffffffffffffffffffffffffff1614612537576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180613b846029913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156125bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806139fe6024913960400191505060405180910390fd5b6125c8838383612e8f565b6125d36000826122e9565b61262481600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612e9490919063ffffffff16565b5061267681600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612eae90919063ffffffff16565b5061268d81836002612ec89092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b61271681600a6000858152602001908152602001600020600001612efd90919063ffffffff16565b1561277e576127236122e1565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006127918360000183612f2d565b60001c905092915050565b6127c481600a6000858152602001908152602001600020600001612fb090919063ffffffff16565b1561282c576127d16122e1565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6001816000016000828254019250508190555050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156128f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4552433732313a206d696e7420746f20746865207a65726f206164647265737381525060200191505060405180910390fd5b612900816122c4565b15612973576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081525060200191505060405180910390fd5b61297f60008383612e8f565b6129d081600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612eae90919063ffffffff16565b506129e781836002612ec89092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b612a51826122c4565b612aa6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d815260200180613b2b602d913960400191505060405180910390fd5b80600c60008481526020019081526020016000209080519060200190612acd929190613870565b505050565b612adb826122c4565b612b30576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180613bdc602e913960400191505060405180910390fd5b80600d60008481526020019081526020016000209080519060200190612b57929190613870565b505050565b612b65826122c4565b612bba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180613c5c6031913960400191505060405180910390fd5b80600e600084815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600080600080612bfc8660000186612fe0565b915091508160001c8160001c8090509350935050509250929050565b6000612c2b846000018460001b84613079565b60001c90509392505050565b6000612c458260000161316f565b9050919050565b6000612c5b8360000183612f2d565b60001c905092915050565b6000612c8e836000018373ffffffffffffffffffffffffffffffffffffffff1660001b613180565b905092915050565b612ca18484846124ab565b612cad848484846131a3565b612d02576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260328152602001806139cc6032913960400191505060405180910390fd5b50505050565b60606000821415612d50576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612e4a565b600082905060005b60008214612d7a578080600101915050600a8281612d7257fe5b049150612d58565b60608167ffffffffffffffff81118015612d9357600080fd5b506040519080825280601f01601f191660200182016040528015612dc65781602001600182028036833780820191505090505b50905060006001830390508593505b60008414612e4257600a8481612de757fe5b0660300160f81b82828060019003935081518110612e0157fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8481612e3a57fe5b049350612dd5565b819450505050505b919050565b6000612e5d8260000161316f565b9050919050565b6000612e76836000018360001b6133e8565b905092915050565b600081600001805490509050919050565b505050565b6000612ea6836000018360001b61340b565b905092915050565b6000612ec0836000018360001b6134f3565b905092915050565b6000612ef4846000018460001b8473ffffffffffffffffffffffffffffffffffffffff1660001b613563565b90509392505050565b6000612f25836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6134f3565b905092915050565b600081836000018054905011612f8e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602281526020018061394a6022913960400191505060405180910390fd5b826000018281548110612f9d57fe5b9060005260206000200154905092915050565b6000612fd8836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61340b565b905092915050565b60008082846000018054905011613042576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180613b096022913960400191505060405180910390fd5b600084600001848154811061305357fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008084600101600085815260200190815260200160002054905060008114158390613140576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156131055780820151818401526020810190506130ea565b50505050905090810190601f1680156131325780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5084600001600182038154811061315357fe5b9060005260206000209060020201600101549150509392505050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b60006131c48473ffffffffffffffffffffffffffffffffffffffff1661363f565b6131d157600190506133e0565b606061336763150b7a0260e01b6131e66122e1565b888787604051602401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561329657808201518184015260208101905061327b565b50505050905090810190601f1680156132c35780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518060600160405280603281526020016139cc603291398773ffffffffffffffffffffffffffffffffffffffff166136529092919063ffffffff16565b9050600081806020019051602081101561338057600080fd5b8101908080519060200190929190505050905063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614925050505b949350505050565b600080836001016000848152602001908152602001600020541415905092915050565b600080836001016000848152602001908152602001600020549050600081146134e7576000600182039050600060018660000180549050039050600086600001828154811061345657fe5b906000526020600020015490508087600001848154811061347357fe5b90600052602060002001819055506001830187600101600083815260200190815260200160002081905550866000018054806134ab57fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506134ed565b60009150505b92915050565b60006134ff8383613180565b61355857826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905061355d565b600090505b92915050565b600080846001016000858152602001908152602001600020549050600081141561360a57846000016040518060400160405280868152602001858152509080600181540180825580915050600190039060005260206000209060020201600090919091909150600082015181600001556020820151816001015550508460000180549050856001016000868152602001908152602001600020819055506001915050613638565b8285600001600183038154811061361d57fe5b90600052602060002090600202016001018190555060009150505b9392505050565b600080823b905060008111915050919050565b6060613661848460008561366a565b90509392505050565b60606136758561363f565b6136e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106137375780518252602082019150602081019050602083039250613714565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613799576040519150601f19603f3d011682016040523d82523d6000602084013e61379e565b606091505b509150915081156137b3578092505050613868565b6000815111156137c65780518082602001fd5b836040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561382d578082015181840152602081019050613812565b50505050905090810190601f16801561385a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b949350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106138b157805160ff19168380011785556138df565b828001600101855582156138df579182015b828111156138de5782518255916020019190600101906138c3565b5b5090506138ec91906138f0565b5090565b61391291905b8082111561390e5760008160009055506001016138f6565b5090565b9056fe4552433732314d657461646174613a20506879736963616c20717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732314d657461646174613a20496d61676520717565727920666f72206e6f6e6578697374656e7420746f6b656e416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e744552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b654552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732314d657461646174613a204e616d6520736574206f66206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732314d657461646174613a20496d61676520736574206f66206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644552433732314d657461646174613a20506879736963616c20736574206f66206e6f6e6578697374656e7420746f6b656e4552433732314d657461646174613a204e616d6520717565727920666f72206e6f6e6578697374656e7420746f6b656e416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a2646970667358221220acdc3e14d6fe476fe76c4b984c1998b13c8a41060fc7508af3cd79fa7998f0a864736f6c634300060500330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001b68747470733a2f2f6170692e64696769626c652e696f2f6e66742f0000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101e55760003560e01c80636352211e1161010f578063b88d4fde116100a2578063d98abda711610071578063d98abda714610ddd578063e6b25dfc14610e84578063e985e9c514610f2b578063fe6d812414610fa7576101e5565b8063b88d4fde14610ba1578063c87b56dd14610ca6578063ca15c87314610d4d578063d547741f14610d8f576101e5565b806391d14854116100de57806391d1485414610a4a57806395d89b4114610ab0578063a217fddf14610b33578063a22cb46514610b51576101e5565b80636352211e146108895780636c0360eb146108f757806370a082311461097a5780639010d07c146109d2576101e5565b8063248a9ca3116101875780633866d8a4116101565780633866d8a4146105a05780633c3689001461073257806342842e0e146107d95780634f6ccce714610847576101e5565b8063248a9ca3146104605780632f2ff15d146104a25780632f745c59146104f057806336568abe14610552576101e5565b8063095ea7b3116101c3578063095ea7b3146103405780630c6afb6e1461038e57806318160ddd146103d457806323b872dd146103f2576101e5565b806301ffc9a7146101ea57806306fdde031461024f578063081812fc146102d2575b600080fd5b6102356004803603602081101561020057600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190505050610fc5565b604051808215151515815260200191505060405180910390f35b61025761102c565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561029757808201518184015260208101905061027c565b50505050905090810190601f1680156102c45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102fe600480360360208110156102e857600080fd5b81019080803590602001909291905050506110ce565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61038c6004803603604081101561035657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611169565b005b6103ba600480360360208110156103a457600080fd5b81019080803590602001909291905050506112ad565b604051808215151515815260200191505060405180910390f35b6103dc611335565b6040518082815260200191505060405180910390f35b61045e6004803603606081101561040857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611346565b005b61048c6004803603602081101561047657600080fd5b81019080803590602001909291905050506113bc565b6040518082815260200191505060405180910390f35b6104ee600480360360408110156104b857600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506113dc565b005b61053c6004803603604081101561050657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611466565b6040518082815260200191505060405180910390f35b61059e6004803603604081101561056857600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506114c1565b005b61071c600480360360808110156105b657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001906401000000008111156105f357600080fd5b82018360208201111561060557600080fd5b8035906020019184600183028401116401000000008311171561062757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192908035906020019064010000000081111561068a57600080fd5b82018360208201111561069c57600080fd5b803590602001918460018302840111640100000000831117156106be57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929080351515906020019092919050505061155a565b6040518082815260200191505060405180910390f35b61075e6004803603602081101561074857600080fd5b8101908080359060200190929190505050611659565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561079e578082015181840152602081019050610783565b50505050905090810190601f1680156107cb5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610845600480360360608110156107ef57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611709565b005b6108736004803603602081101561085d57600080fd5b8101908080359060200190929190505050611729565b6040518082815260200191505060405180910390f35b6108b56004803603602081101561089f57600080fd5b810190808035906020019092919050505061174c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6108ff611783565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561093f578082015181840152602081019050610924565b50505050905090810190601f16801561096c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6109bc6004803603602081101561099057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611825565b6040518082815260200191505060405180910390f35b610a08600480360360408110156109e857600080fd5b8101908080359060200190929190803590602001909291905050506118fa565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610a9660048036036040811015610a6057600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061192c565b604051808215151515815260200191505060405180910390f35b610ab861195e565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610af8578082015181840152602081019050610add565b50505050905090810190601f168015610b255780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610b3b611a00565b6040518082815260200191505060405180910390f35b610b9f60048036036040811015610b6757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050611a07565b005b610ca460048036036080811015610bb757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190640100000000811115610c1e57600080fd5b820183602082011115610c3057600080fd5b80359060200191846001830284011164010000000083111715610c5257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611bbf565b005b610cd260048036036020811015610cbc57600080fd5b8101908080359060200190929190505050611c37565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610d12578082015181840152602081019050610cf7565b50505050905090810190601f168015610d3f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610d7960048036036020811015610d6357600080fd5b8101908080359060200190929190505050611f20565b6040518082815260200191505060405180910390f35b610ddb60048036036040811015610da557600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611f47565b005b610e0960048036036020811015610df357600080fd5b8101908080359060200190929190505050611fd1565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610e49578082015181840152602081019050610e2e565b50505050905090810190601f168015610e765780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610eb060048036036020811015610e9a57600080fd5b81019080803590602001909291905050506120e4565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610ef0578082015181840152602081019050610ed5565b50505050905090810190601f168015610f1d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610f8d60048036036040811015610f4157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506121f7565b604051808215151515815260200191505060405180910390f35b610faf61228b565b6040518082815260200191505060405180910390f35b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b606060068054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156110c45780601f10611099576101008083540402835291602001916110c4565b820191906000526020600020905b8154815290600101906020018083116110a757829003601f168201915b5050505050905090565b60006110d9826122c4565b61112e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180613b58602c913960400191505060405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006111748261174c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156111fb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180613c0a6021913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661121a6122e1565b73ffffffffffffffffffffffffffffffffffffffff1614806112495750611248816112436122e1565b6121f7565b5b61129e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526038815260200180613a7e6038913960400191505060405180910390fd5b6112a883836122e9565b505050565b60006112b8826122c4565b61130d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260348152602001806139166034913960400191505060405180910390fd5b600e600083815260200190815260200160002060009054906101000a900460ff169050919050565b600061134160026123a2565b905090565b6113576113516122e1565b826123b7565b6113ac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180613c2b6031913960400191505060405180910390fd5b6113b78383836124ab565b505050565b6000600a6000838152602001908152602001600020600201549050919050565b611403600a6000848152602001908152602001600020600201546113fe6122e1565b61192c565b611458576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f81526020018061399d602f913960400191505060405180910390fd5b61146282826126ee565b5050565b60006114b982600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061278290919063ffffffff16565b905092915050565b6114c96122e1565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461154c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180613cbd602f913960400191505060405180910390fd5b611556828261279c565b5050565b600061159b60405180807f4d494e5445520000000000000000000000000000000000000000000000000000815250600601905060405180910390203361192c565b61160d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f446967694e46543a204f6e6c7920666f7220726f6c65204d494e54455200000081525060200191505060405180910390fd5b611617600b612830565b6000611623600b612846565b905061162f8682612854565b6116398186612a48565b6116438185612ad2565b61164d8184612b5c565b80915050949350505050565b600d6020528060005260406000206000915090508054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156117015780601f106116d657610100808354040283529160200191611701565b820191906000526020600020905b8154815290600101906020018083116116e457829003601f168201915b505050505081565b61172483838360405180602001604052806000815250611bbf565b505050565b600080611740836002612be990919063ffffffff16565b50905080915050919050565b600061177c82604051806060016040528060298152602001613ae0602991396002612c189092919063ffffffff16565b9050919050565b606060098054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561181b5780601f106117f05761010080835404028352916020019161181b565b820191906000526020600020905b8154815290600101906020018083116117fe57829003601f168201915b5050505050905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180613ab6602a913960400191505060405180910390fd5b6118f3600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612c37565b9050919050565b600061192482600a6000868152602001908152602001600020600001612c4c90919063ffffffff16565b905092915050565b600061195682600a6000868152602001908152602001600020600001612c6690919063ffffffff16565b905092915050565b606060078054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156119f65780601f106119cb576101008083540402835291602001916119f6565b820191906000526020600020905b8154815290600101906020018083116119d957829003601f168201915b5050505050905090565b6000801b81565b611a0f6122e1565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ab0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f4552433732313a20617070726f766520746f2063616c6c65720000000000000081525060200191505060405180910390fd5b8060056000611abd6122e1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b6a6122e1565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051808215151515815260200191505060405180910390a35050565b611bd0611bca6122e1565b836123b7565b611c25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180613c2b6031913960400191505060405180910390fd5b611c3184848484612c96565b50505050565b6060611c42826122c4565b611c97576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180613bad602f913960400191505060405180910390fd5b6060600860008481526020019081526020016000208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611d405780601f10611d1557610100808354040283529160200191611d40565b820191906000526020600020905b815481529060010190602001808311611d2357829003601f168201915b50505050509050600060098054600181600116156101000203166002900490501415611d6f5780915050611f1b565b600081511115611e48576009816040516020018083805460018160011615610100020316600290048015611dda5780601f10611db8576101008083540402835291820191611dda565b820191906000526020600020905b815481529060010190602001808311611dc6575b505082805190602001908083835b60208310611e0b5780518252602082019150602081019050602083039250611de8565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050611f1b565b6009611e5384612d08565b6040516020018083805460018160011615610100020316600290048015611eb15780601f10611e8f576101008083540402835291820191611eb1565b820191906000526020600020905b815481529060010190602001808311611e9d575b505082805190602001908083835b60208310611ee25780518252602082019150602081019050602083039250611ebf565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040529150505b919050565b6000611f40600a6000848152602001908152602001600020600001612e4f565b9050919050565b611f6e600a600084815260200190815260200160002060020154611f696122e1565b61192c565b611fc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526030815260200180613a4e6030913960400191505060405180910390fd5b611fcd828261279c565b5050565b6060611fdc826122c4565b612031576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526030815260200180613c8d6030913960400191505060405180910390fd5b600c60008381526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156120d85780601f106120ad576101008083540402835291602001916120d8565b820191906000526020600020905b8154815290600101906020018083116120bb57829003601f168201915b50505050509050919050565b60606120ef826122c4565b612144576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603181526020018061396c6031913960400191505060405180910390fd5b600d60008381526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156121eb5780601f106121c0576101008083540402835291602001916121eb565b820191906000526020600020905b8154815290600101906020018083116121ce57829003601f168201915b50505050509050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60405180807f4d494e54455200000000000000000000000000000000000000000000000000008152506006019050604051809103902081565b60006122da826002612e6490919063ffffffff16565b9050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661235c8361174c565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006123b082600001612e7e565b9050919050565b60006123c2826122c4565b612417576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180613a22602c913960400191505060405180910390fd5b60006124228361174c565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061249157508373ffffffffffffffffffffffffffffffffffffffff16612479846110ce565b73ffffffffffffffffffffffffffffffffffffffff16145b806124a257506124a181856121f7565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166124cb8261174c565b73ffffffffffffffffffffffffffffffffffffffff1614612537576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180613b846029913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156125bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806139fe6024913960400191505060405180910390fd5b6125c8838383612e8f565b6125d36000826122e9565b61262481600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612e9490919063ffffffff16565b5061267681600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612eae90919063ffffffff16565b5061268d81836002612ec89092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b61271681600a6000858152602001908152602001600020600001612efd90919063ffffffff16565b1561277e576127236122e1565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006127918360000183612f2d565b60001c905092915050565b6127c481600a6000858152602001908152602001600020600001612fb090919063ffffffff16565b1561282c576127d16122e1565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6001816000016000828254019250508190555050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156128f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4552433732313a206d696e7420746f20746865207a65726f206164647265737381525060200191505060405180910390fd5b612900816122c4565b15612973576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081525060200191505060405180910390fd5b61297f60008383612e8f565b6129d081600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612eae90919063ffffffff16565b506129e781836002612ec89092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b612a51826122c4565b612aa6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d815260200180613b2b602d913960400191505060405180910390fd5b80600c60008481526020019081526020016000209080519060200190612acd929190613870565b505050565b612adb826122c4565b612b30576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180613bdc602e913960400191505060405180910390fd5b80600d60008481526020019081526020016000209080519060200190612b57929190613870565b505050565b612b65826122c4565b612bba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180613c5c6031913960400191505060405180910390fd5b80600e600084815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600080600080612bfc8660000186612fe0565b915091508160001c8160001c8090509350935050509250929050565b6000612c2b846000018460001b84613079565b60001c90509392505050565b6000612c458260000161316f565b9050919050565b6000612c5b8360000183612f2d565b60001c905092915050565b6000612c8e836000018373ffffffffffffffffffffffffffffffffffffffff1660001b613180565b905092915050565b612ca18484846124ab565b612cad848484846131a3565b612d02576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260328152602001806139cc6032913960400191505060405180910390fd5b50505050565b60606000821415612d50576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612e4a565b600082905060005b60008214612d7a578080600101915050600a8281612d7257fe5b049150612d58565b60608167ffffffffffffffff81118015612d9357600080fd5b506040519080825280601f01601f191660200182016040528015612dc65781602001600182028036833780820191505090505b50905060006001830390508593505b60008414612e4257600a8481612de757fe5b0660300160f81b82828060019003935081518110612e0157fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8481612e3a57fe5b049350612dd5565b819450505050505b919050565b6000612e5d8260000161316f565b9050919050565b6000612e76836000018360001b6133e8565b905092915050565b600081600001805490509050919050565b505050565b6000612ea6836000018360001b61340b565b905092915050565b6000612ec0836000018360001b6134f3565b905092915050565b6000612ef4846000018460001b8473ffffffffffffffffffffffffffffffffffffffff1660001b613563565b90509392505050565b6000612f25836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6134f3565b905092915050565b600081836000018054905011612f8e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602281526020018061394a6022913960400191505060405180910390fd5b826000018281548110612f9d57fe5b9060005260206000200154905092915050565b6000612fd8836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61340b565b905092915050565b60008082846000018054905011613042576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180613b096022913960400191505060405180910390fd5b600084600001848154811061305357fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008084600101600085815260200190815260200160002054905060008114158390613140576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156131055780820151818401526020810190506130ea565b50505050905090810190601f1680156131325780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5084600001600182038154811061315357fe5b9060005260206000209060020201600101549150509392505050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b60006131c48473ffffffffffffffffffffffffffffffffffffffff1661363f565b6131d157600190506133e0565b606061336763150b7a0260e01b6131e66122e1565b888787604051602401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561329657808201518184015260208101905061327b565b50505050905090810190601f1680156132c35780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518060600160405280603281526020016139cc603291398773ffffffffffffffffffffffffffffffffffffffff166136529092919063ffffffff16565b9050600081806020019051602081101561338057600080fd5b8101908080519060200190929190505050905063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614925050505b949350505050565b600080836001016000848152602001908152602001600020541415905092915050565b600080836001016000848152602001908152602001600020549050600081146134e7576000600182039050600060018660000180549050039050600086600001828154811061345657fe5b906000526020600020015490508087600001848154811061347357fe5b90600052602060002001819055506001830187600101600083815260200190815260200160002081905550866000018054806134ab57fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506134ed565b60009150505b92915050565b60006134ff8383613180565b61355857826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905061355d565b600090505b92915050565b600080846001016000858152602001908152602001600020549050600081141561360a57846000016040518060400160405280868152602001858152509080600181540180825580915050600190039060005260206000209060020201600090919091909150600082015181600001556020820151816001015550508460000180549050856001016000868152602001908152602001600020819055506001915050613638565b8285600001600183038154811061361d57fe5b90600052602060002090600202016001018190555060009150505b9392505050565b600080823b905060008111915050919050565b6060613661848460008561366a565b90509392505050565b60606136758561363f565b6136e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106137375780518252602082019150602081019050602083039250613714565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613799576040519150601f19603f3d011682016040523d82523d6000602084013e61379e565b606091505b509150915081156137b3578092505050613868565b6000815111156137c65780518082602001fd5b836040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561382d578082015181840152602081019050613812565b50505050905090810190601f16801561385a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b949350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106138b157805160ff19168380011785556138df565b828001600101855582156138df579182015b828111156138de5782518255916020019190600101906138c3565b5b5090506138ec91906138f0565b5090565b61391291905b8082111561390e5760008160009055506001016138f6565b5090565b9056fe4552433732314d657461646174613a20506879736963616c20717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732314d657461646174613a20496d61676520717565727920666f72206e6f6e6578697374656e7420746f6b656e416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e744552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b654552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732314d657461646174613a204e616d6520736574206f66206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732314d657461646174613a20496d61676520736574206f66206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644552433732314d657461646174613a20506879736963616c20736574206f66206e6f6e6578697374656e7420746f6b656e4552433732314d657461646174613a204e616d6520717565727920666f72206e6f6e6578697374656e7420746f6b656e416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a2646970667358221220acdc3e14d6fe476fe76c4b984c1998b13c8a41060fc7508af3cd79fa7998f0a864736f6c63430006050033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001b68747470733a2f2f6170692e64696769626c652e696f2f6e66742f0000000000
-----Decoded View---------------
Arg [0] : baseURI (string): https://api.digible.io/nft/
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 000000000000000000000000000000000000000000000000000000000000001b
Arg [2] : 68747470733a2f2f6170692e64696769626c652e696f2f6e66742f0000000000
Deployed Bytecode Sourcemap
66469:2552:0:-:0;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;66469:2552:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;10357:142:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;10357:142:0;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;44638:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;44638:92:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47325:213;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;47325:213:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;46869:390;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;46869:390:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;67906:207;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;67906:207:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;46363:203;;;:::i;:::-;;;;;;;;;;;;;;;;;;;48199:305;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;48199:305:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;63180:114;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;63180:114:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;63556:227;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;63556:227:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;46133:154;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;46133:154:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;64765:209;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;64765:209:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;67117:569;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;67117:569:0;;;;;;;;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;67117:569:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;67117:569:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;67117:569:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;67117:569:0;;;;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;67117:569:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;67117:569:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;67117:569:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;67117:569:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;66717:46;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;66717:46:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;66717:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48575:151;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;48575:151:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;46643:164;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;46643:164:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;44402:169;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;44402:169:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;45960:89;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;45960:89:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44125:215;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;44125:215:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;62853:138;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;62853:138:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;61814:139;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;61814:139:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;44799:96;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;44799:96:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60559:49;;;:::i;:::-;;;;;;;;;;;;;;;;;;;47610:295;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;47610:295:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;48797:285;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;48797:285:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;48797:285:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;48797:285:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;48797:285:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;48797:285:0;;;;;;;;;;;;;;;:::i;:::-;;44966:755;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;44966:755:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;44966:755:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62127:127;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;62127:127:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;64028:230;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;64028:230:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;67694:204;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;67694:204:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;67694:204:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68121:207;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;68121:207:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;68121:207:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47976:156;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;47976:156:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;66603:52;;;:::i;:::-;;;;;;;;;;;;;;;;;;;10357:142;10434:4;10458:20;:33;10479:11;10458:33;;;;;;;;;;;;;;;;;;;;;;;;;;;10451:40;;10357:142;;;:::o;44638:92::-;44684:13;44717:5;44710:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44638:92;:::o;47325:213::-;47393:7;47421:16;47429:7;47421;:16::i;:::-;47413:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47506:15;:24;47522:7;47506:24;;;;;;;;;;;;;;;;;;;;;47499:31;;47325:213;;;:::o;46869:390::-;46950:13;46966:16;46974:7;46966;:16::i;:::-;46950:32;;47007:5;47001:11;;:2;:11;;;;46993:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47087:5;47071:21;;:12;:10;:12::i;:::-;:21;;;:62;;;;47096:37;47113:5;47120:12;:10;:12::i;:::-;47096:16;:37::i;:::-;47071:62;47063:154;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47230:21;47239:2;47243:7;47230:8;:21::i;:::-;46869:390;;;:::o;67906:207::-;67966:4;67991:16;67999:7;67991;:16::i;:::-;67983:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68082:14;:23;68097:7;68082:23;;;;;;;;;;;;;;;;;;;;;68075:30;;67906:207;;;:::o;46363:203::-;46416:7;46537:21;:12;:19;:21::i;:::-;46530:28;;46363:203;:::o;48199:305::-;48360:41;48379:12;:10;:12::i;:::-;48393:7;48360:18;:41::i;:::-;48352:103;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48468:28;48478:4;48484:2;48488:7;48468:9;:28::i;:::-;48199:305;;;:::o;63180:114::-;63237:7;63264:6;:12;63271:4;63264:12;;;;;;;;;;;:22;;;63257:29;;63180:114;;;:::o;63556:227::-;63640:45;63648:6;:12;63655:4;63648:12;;;;;;;;;;;:22;;;63672:12;:10;:12::i;:::-;63640:7;:45::i;:::-;63632:105;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63750:25;63761:4;63767:7;63750:10;:25::i;:::-;63556:227;;:::o;46133:154::-;46222:7;46249:30;46273:5;46249:13;:20;46263:5;46249:20;;;;;;;;;;;;;;;:23;;:30;;;;:::i;:::-;46242:37;;46133:154;;;;:::o;64765:209::-;64863:12;:10;:12::i;:::-;64852:23;;:7;:23;;;64844:83;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64940:26;64952:4;64958:7;64940:11;:26::i;:::-;64765:209;;:::o;67117:569::-;67292:7;67325:27;66636:19;;;;;;;;;;;;;;;;;;;67341:10;67325:7;:27::i;:::-;67317:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67399:21;:9;:19;:21::i;:::-;67433:17;67453:19;:9;:17;:19::i;:::-;67433:39;;67483:24;67489:6;67497:9;67483:5;:24::i;:::-;67518:33;67531:9;67542:8;67518:12;:33::i;:::-;67562:35;67576:9;67587;67562:13;:35::i;:::-;67608:41;67625:9;67636:12;67608:16;:41::i;:::-;67669:9;67662:16;;;67117:569;;;;;;:::o;66717:46::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;48575:151::-;48679:39;48696:4;48702:2;48706:7;48679:39;;;;;;;;;;;;:16;:39::i;:::-;48575:151;;;:::o;46643:164::-;46710:7;46731:15;46752:22;46768:5;46752:12;:15;;:22;;;;:::i;:::-;46730:44;;;46792:7;46785:14;;;46643:164;;;:::o;44402:169::-;44466:7;44493:70;44510:7;44493:70;;;;;;;;;;;;;;;;;:12;:16;;:70;;;;;:::i;:::-;44486:77;;44402:169;;;:::o;45960:89::-;46000:13;46033:8;46026:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45960:89;:::o;44125:215::-;44189:7;44234:1;44217:19;;:5;:19;;;;44209:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44303:29;:13;:20;44317:5;44303:20;;;;;;;;;;;;;;;:27;:29::i;:::-;44296:36;;44125:215;;;:::o;62853:138::-;62926:7;62953:30;62977:5;62953:6;:12;62960:4;62953:12;;;;;;;;;;;:20;;:23;;:30;;;;:::i;:::-;62946:37;;62853:138;;;;:::o;61814:139::-;61883:4;61907:38;61937:7;61907:6;:12;61914:4;61907:12;;;;;;;;;;;:20;;:29;;:38;;;;:::i;:::-;61900:45;;61814:139;;;;:::o;44799:96::-;44847:13;44880:7;44873:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44799:96;:::o;60559:49::-;60604:4;60559:49;;;:::o;47610:295::-;47725:12;:10;:12::i;:::-;47713:24;;:8;:24;;;;47705:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47825:8;47780:18;:32;47799:12;:10;:12::i;:::-;47780:32;;;;;;;;;;;;;;;:42;47813:8;47780:42;;;;;;;;;;;;;;;;:53;;;;;;;;;;;;;;;;;;47878:8;47849:48;;47864:12;:10;:12::i;:::-;47849:48;;;47888:8;47849:48;;;;;;;;;;;;;;;;;;;;;;47610:295;;:::o;48797:285::-;48929:41;48948:12;:10;:12::i;:::-;48962:7;48929:18;:41::i;:::-;48921:103;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49035:39;49049:4;49055:2;49059:7;49068:5;49035:13;:39::i;:::-;48797:285;;;;:::o;44966:755::-;45031:13;45065:16;45073:7;45065;:16::i;:::-;45057:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45146:23;45172:10;:19;45183:7;45172:19;;;;;;;;;;;45146:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45293:1;45273:8;45267:22;;;;;;;;;;;;;;;;:27;45263:76;;;45318:9;45311:16;;;;;45263:76;45469:1;45449:9;45443:23;:27;45439:112;;;45518:8;45528:9;45501:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;45501:37:0;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;45501:37:0;;;45487:52;;;;;45439:112;45683:8;45693:18;:7;:16;:18::i;:::-;45666:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;45666:46:0;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;45666:46:0;;;45652:61;;;44966:755;;;;:::o;62127:127::-;62190:7;62217:29;:6;:12;62224:4;62217:12;;;;;;;;;;;:20;;:27;:29::i;:::-;62210:36;;62127:127;;;:::o;64028:230::-;64113:45;64121:6;:12;64128:4;64121:12;;;;;;;;;;;:22;;;64145:12;:10;:12::i;:::-;64113:7;:45::i;:::-;64105:106;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64224:26;64236:4;64242:7;64224:11;:26::i;:::-;64028:230;;:::o;67694:204::-;67750:13;67784:16;67792:7;67784;:16::i;:::-;67776:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67871:10;:19;67882:7;67871:19;;;;;;;;;;;67864:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67694:204;;;:::o;68121:207::-;68178:13;68212:16;68220:7;68212;:16::i;:::-;68204:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68300:11;:20;68312:7;68300:20;;;;;;;;;;;68293:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68121:207;;;:::o;47976:156::-;48065:4;48089:18;:25;48108:5;48089:25;;;;;;;;;;;;;;;:35;48115:8;48089:35;;;;;;;;;;;;;;;;;;;;;;;;;48082:42;;47976:156;;;;:::o;66603:52::-;66636:19;;;;;;;;;;;;;;;;;;;66603:52;:::o;50549:119::-;50606:4;50630:30;50652:7;50630:12;:21;;:30;;;;:::i;:::-;50623:37;;50549:119;;;:::o;657:106::-;710:15;745:10;738:17;;657:106;:::o;56376:158::-;56469:2;56442:15;:24;56458:7;56442:24;;;;;;;;;;;;:29;;;;;;;;;;;;;;;;;;56518:7;56514:2;56487:39;;56496:16;56504:7;56496;:16::i;:::-;56487:39;;;;;;;;;;;;56376:158;;:::o;37984:123::-;38053:7;38080:19;38088:3;:10;;38080:7;:19::i;:::-;38073:26;;37984:123;;;:::o;50835:333::-;50920:4;50945:16;50953:7;50945;:16::i;:::-;50937:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51021:13;51037:16;51045:7;51037;:16::i;:::-;51021:32;;51083:5;51072:16;;:7;:16;;;:51;;;;51116:7;51092:31;;:20;51104:7;51092:11;:20::i;:::-;:31;;;51072:51;:87;;;;51127:32;51144:5;51151:7;51127:16;:32::i;:::-;51072:87;51064:96;;;50835:333;;;;:::o;53924:574::-;54042:4;54022:24;;:16;54030:7;54022;:16::i;:::-;:24;;;54014:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54125:1;54111:16;;:2;:16;;;;54103:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54181:39;54202:4;54208:2;54212:7;54181:20;:39::i;:::-;54285:29;54302:1;54306:7;54285:8;:29::i;:::-;54327:35;54354:7;54327:13;:19;54341:4;54327:19;;;;;;;;;;;;;;;:26;;:35;;;;:::i;:::-;;54373:30;54395:7;54373:13;:17;54387:2;54373:17;;;;;;;;;;;;;;;:21;;:30;;;;:::i;:::-;;54416:29;54433:7;54442:2;54416:12;:16;;:29;;;;;:::i;:::-;;54482:7;54478:2;54463:27;;54472:4;54463:27;;;;;;;;;;;;53924:574;;;:::o;66008:188::-;66082:33;66107:7;66082:6;:12;66089:4;66082:12;;;;;;;;;;;:20;;:24;;:33;;;;:::i;:::-;66078:111;;;66164:12;:10;:12::i;:::-;66137:40;;66155:7;66137:40;;66149:4;66137:40;;;;;;;;;;66078:111;66008:188;;:::o;30556:137::-;30627:7;30662:22;30666:3;:10;;30678:5;30662:3;:22::i;:::-;30654:31;;30647:38;;30556:137;;;;:::o;66204:192::-;66279:36;66307:7;66279:6;:12;66286:4;66279:12;;;;;;;;;;;:20;;:27;;:36;;;;:::i;:::-;66275:114;;;66364:12;:10;:12::i;:::-;66337:40;;66355:7;66337:40;;66349:4;66337:40;;;;;;;;;;66275:114;66204:192;;:::o;58517:181::-;58689:1;58671:7;:14;;;:19;;;;;;;;;;;58517:181;:::o;58395:114::-;58460:7;58487;:14;;;58480:21;;58395:114;;;:::o;52434:404::-;52528:1;52514:16;;:2;:16;;;;52506:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52587:16;52595:7;52587;:16::i;:::-;52586:17;52578:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52649:45;52678:1;52682:2;52686:7;52649:20;:45::i;:::-;52707:30;52729:7;52707:13;:17;52721:2;52707:17;;;;;;;;;;;;;;;:21;;:30;;;;:::i;:::-;;52750:29;52767:7;52776:2;52750:12;:16;;:29;;;;;:::i;:::-;;52822:7;52818:2;52797:33;;52814:1;52797:33;;;;;;;;;;;;52434:404;;:::o;68336:216::-;68436:16;68444:7;68436;:16::i;:::-;68428:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68535:9;68513:10;:19;68524:7;68513:19;;;;;;;;;;;:31;;;;;;;;;;;;:::i;:::-;;68336:216;;:::o;68795:221::-;68897:16;68905:7;68897;:16::i;:::-;68889:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68998:10;68975:11;:20;68987:7;68975:20;;;;;;;;;;;:33;;;;;;;;;;;;:::i;:::-;;68795:221;;:::o;68560:227::-;68659:16;68667:7;68659;:16::i;:::-;68651:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68766:13;68740:14;:23;68755:7;68740:23;;;;;;;;;;;;:39;;;;;;;;;;;;;;;;;;68560:227;;:::o;38446:::-;38526:7;38535;38556:11;38569:13;38586:22;38590:3;:10;;38602:5;38586:3;:22::i;:::-;38555:53;;;;38635:3;38627:12;;38657:5;38649:14;;38619:46;;;;;;;;;38446:227;;;;;:::o;39108:204::-;39215:7;39258:44;39263:3;:10;;39283:3;39275:12;;39289;39258:4;:44::i;:::-;39250:53;;39235:69;;39108:204;;;;;:::o;30098:114::-;30158:7;30185:19;30193:3;:10;;30185:7;:19::i;:::-;30178:26;;30098:114;;;:::o;28937:149::-;29011:7;29054:22;29058:3;:10;;29070:5;29054:3;:22::i;:::-;29046:31;;29031:47;;28937:149;;;;:::o;28232:158::-;28312:4;28336:46;28346:3;:10;;28374:5;28366:14;;28358:23;;28336:9;:46::i;:::-;28329:53;;28232:158;;;;:::o;49964:272::-;50078:28;50088:4;50094:2;50098:7;50078:9;:28::i;:::-;50125:48;50148:4;50154:2;50158:7;50167:5;50125:22;:48::i;:::-;50117:111;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49964:272;;;;:::o;39586:744::-;39642:13;39872:1;39863:5;:10;39859:53;;;39890:10;;;;;;;;;;;;;;;;;;;;;39859:53;39922:12;39937:5;39922:20;;39953:14;39978:78;39993:1;39985:4;:9;39978:78;;40011:8;;;;;;;40042:2;40034:10;;;;;;;;;39978:78;;;40066:19;40098:6;40088:17;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;40088:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;29:1:-1;21:6;17:14;124:4;108:14;100:6;87:42;155:4;147:6;143:17;133:27;;0:164;40088:17:0;;;;40066:39;;40116:13;40141:1;40132:6;:10;40116:26;;40160:5;40153:12;;40176:115;40191:1;40183:4;:9;40176:115;;40250:2;40243:4;:9;;;;;;40238:2;:14;40227:27;;40209:6;40216:7;;;;;;;40209:15;;;;;;;;;;;:45;;;;;;;;;;;40277:2;40269:10;;;;;;;;;40176:115;;;40315:6;40301:21;;;;;;39586:744;;;;:::o;28476:117::-;28539:7;28566:19;28574:3;:10;;28566:7;:19::i;:::-;28559:26;;28476:117;;;:::o;37745:151::-;37829:4;37853:35;37863:3;:10;;37883:3;37875:12;;37853:9;:35::i;:::-;37846:42;;37745:151;;;;:::o;35367:110::-;35423:7;35450:3;:12;;:19;;;;35443:26;;35367:110;;;:::o;57147:93::-;;;;:::o;29643:137::-;29713:4;29737:35;29745:3;:10;;29765:5;29757:14;;29737:7;:35::i;:::-;29730:42;;29643:137;;;;:::o;29336:131::-;29403:4;29427:32;29432:3;:10;;29452:5;29444:14;;29427:4;:32::i;:::-;29420:39;;29336:131;;;;:::o;37177:176::-;37266:4;37290:55;37295:3;:10;;37315:3;37307:12;;37337:5;37329:14;;37321:23;;37290:4;:55::i;:::-;37283:62;;37177:176;;;;;:::o;27678:143::-;27748:4;27772:41;27777:3;:10;;27805:5;27797:14;;27789:23;;27772:4;:41::i;:::-;27765:48;;27678:143;;;;:::o;27220:204::-;27287:7;27336:5;27315:3;:11;;:18;;;;:26;27307:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27398:3;:11;;27410:5;27398:18;;;;;;;;;;;;;;;;27391:25;;27220:204;;;;:::o;27997:149::-;28070:4;28094:44;28102:3;:10;;28130:5;28122:14;;28114:23;;28094:7;:44::i;:::-;28087:51;;27997:149;;;;:::o;35832:279::-;35899:7;35908;35958:5;35936:3;:12;;:19;;;;:27;35928:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36015:22;36040:3;:12;;36053:5;36040:19;;;;;;;;;;;;;;;;;;36015:44;;36078:5;:10;;;36090:5;:12;;;36070:33;;;;;35832:279;;;;;:::o;36534:319::-;36628:7;36648:16;36667:3;:12;;:17;36680:3;36667:17;;;;;;;;;;;;36648:36;;36715:1;36703:8;:13;;36718:12;36695:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;36695:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36785:3;:12;;36809:1;36798:8;:12;36785:26;;;;;;;;;;;;;;;;;;:33;;;36778:40;;;36534:319;;;;;:::o;26767:109::-;26823:7;26850:3;:11;;:18;;;;26843:25;;26767:109;;;:::o;26552:129::-;26625:4;26672:1;26649:3;:12;;:19;26662:5;26649:19;;;;;;;;;;;;:24;;26642:31;;26552:129;;;;:::o;55764:604::-;55885:4;55912:15;:2;:13;;;:15::i;:::-;55907:60;;55951:4;55944:11;;;;55907:60;55977:23;56003:252;56056:45;;;56116:12;:10;:12::i;:::-;56143:4;56162:7;56184:5;56019:181;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;56019:181:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;56019:181:0;;;;;;;38:4:-1;29:7;25:18;67:10;61:17;96:58;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;56019:181:0;56003:252;;;;;;;;;;;;;;;;;:2;:15;;;;:252;;;;;:::i;:::-;55977:278;;56266:13;56293:10;56282:32;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;56282:32:0;;;;;;;;;;;;;;;;56266:48;;41126:10;56343:16;;56333:26;;;:6;:26;;;;56325:35;;;;55764:604;;;;;;;:::o;35147:125::-;35218:4;35263:1;35242:3;:12;;:17;35255:3;35242:17;;;;;;;;;;;;:22;;35235:29;;35147:125;;;;:::o;24922:1544::-;24988:4;25106:18;25127:3;:12;;:19;25140:5;25127:19;;;;;;;;;;;;25106:40;;25177:1;25163:10;:15;25159:1300;;25525:21;25562:1;25549:10;:14;25525:38;;25578:17;25619:1;25598:3;:11;;:18;;;;:22;25578:42;;25865:17;25885:3;:11;;25897:9;25885:22;;;;;;;;;;;;;;;;25865:42;;26031:9;26002:3;:11;;26014:13;26002:26;;;;;;;;;;;;;;;:38;;;;26150:1;26134:13;:17;26108:3;:12;;:23;26121:9;26108:23;;;;;;;;;;;:43;;;;26260:3;:11;;:17;;;;;;;;;;;;;;;;;;;;;;;;26355:3;:12;;:19;26368:5;26355:19;;;;;;;;;;;26348:26;;;26398:4;26391:11;;;;;;;;25159:1300;26442:5;26435:12;;;24922:1544;;;;;:::o;24332:414::-;24395:4;24417:21;24427:3;24432:5;24417:9;:21::i;:::-;24412:327;;24455:3;:11;;24472:5;24455:23;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;24455:23:0;;;;;;;;;;;;;;;;;;;24638:3;:11;;:18;;;;24616:3;:12;;:19;24629:5;24616:19;;;;;;;;;;;:40;;;;24678:4;24671:11;;;;24412:327;24722:5;24715:12;;24332:414;;;;;:::o;32647:692::-;32723:4;32839:16;32858:3;:12;;:17;32871:3;32858:17;;;;;;;;;;;;32839:36;;32904:1;32892:8;:13;32888:444;;;32959:3;:12;;32977:38;;;;;;;;32994:3;32977:38;;;;33007:5;32977:38;;;32959:57;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;32959:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33174:3;:12;;:19;;;;33154:3;:12;;:17;33167:3;33154:17;;;;;;;;;;;:39;;;;33215:4;33208:11;;;;;32888:444;33288:5;33252:3;:12;;33276:1;33265:8;:12;33252:26;;;;;;;;;;;;;;;;;;:33;;:41;;;;33315:5;33308:12;;;32647:692;;;;;;:::o;17327:422::-;17387:4;17595:12;17706:7;17694:20;17686:28;;17740:1;17733:4;:8;17726:15;;;17327:422;;;:::o;20245:196::-;20348:12;20380:53;20403:6;20411:4;20417:1;20420:12;20380:22;:53::i;:::-;20373:60;;20245:196;;;;;:::o;21622:979::-;21752:12;21785:18;21796:6;21785:10;:18::i;:::-;21777:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21911:12;21925:23;21952:6;:11;;21972:8;21983:4;21952:36;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;21952:36:0;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;21910:78:0;;;;22003:7;21999:595;;;22034:10;22027:17;;;;;;21999:595;22168:1;22148:10;:17;:21;22144:439;;;22411:10;22405:17;22472:15;22459:10;22455:2;22451:19;22444:44;22359:148;22554:12;22547:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;22547:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21622:979;;;;;;;:::o;66469:2552::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o
Swarm Source
ipfs://acdc3e14d6fe476fe76c4b984c1998b13c8a41060fc7508af3cd79fa7998f0a8
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.