Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 75 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 17888599 | 553 days ago | IN | 0 ETH | 0.00039985 | ||||
Set Approval For... | 15830507 | 842 days ago | IN | 0 ETH | 0.00042188 | ||||
Set Approval For... | 15763634 | 851 days ago | IN | 0 ETH | 0.00073574 | ||||
Set Approval For... | 15146586 | 944 days ago | IN | 0 ETH | 0.00032183 | ||||
Set Approval For... | 14832205 | 997 days ago | IN | 0 ETH | 0.00105636 | ||||
Set Base URI | 14805034 | 1001 days ago | IN | 0 ETH | 0.00053936 | ||||
Set Approval For... | 14722494 | 1015 days ago | IN | 0 ETH | 0.00147327 | ||||
Set Approval For... | 14568520 | 1039 days ago | IN | 0 ETH | 0.0016049 | ||||
Set Approval For... | 14555419 | 1041 days ago | IN | 0 ETH | 0.0009609 | ||||
Set Approval For... | 14555387 | 1041 days ago | IN | 0 ETH | 0.00100778 | ||||
Set Approval For... | 14555365 | 1041 days ago | IN | 0 ETH | 0.00111478 | ||||
Set Approval For... | 14555350 | 1041 days ago | IN | 0 ETH | 0.00107368 | ||||
Set Approval For... | 14555328 | 1041 days ago | IN | 0 ETH | 0.00099403 | ||||
Set Approval For... | 14555316 | 1041 days ago | IN | 0 ETH | 0.00101476 | ||||
Set Approval For... | 14550426 | 1042 days ago | IN | 0 ETH | 0.00142863 | ||||
Set Approval For... | 14538723 | 1043 days ago | IN | 0 ETH | 0.00134549 | ||||
Set Base URI | 14537674 | 1044 days ago | IN | 0 ETH | 0.00154219 | ||||
Set Base URI | 14537640 | 1044 days ago | IN | 0 ETH | 0.00159119 | ||||
Transfer From | 14532546 | 1044 days ago | IN | 0 ETH | 0.00314003 | ||||
Transfer From | 14532541 | 1044 days ago | IN | 0 ETH | 0.0032374 | ||||
Set Approval For... | 14519342 | 1046 days ago | IN | 0 ETH | 0.00184888 | ||||
Set Approval For... | 14512213 | 1048 days ago | IN | 0 ETH | 0.00149089 | ||||
Set Approval For... | 14511859 | 1048 days ago | IN | 0 ETH | 0.00207742 | ||||
Transfer From | 14500238 | 1049 days ago | IN | 0 ETH | 0.00388153 | ||||
Transfer From | 14500234 | 1049 days ago | IN | 0 ETH | 0.00393619 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
P_NFTs
Compiler Version
v0.8.13+commit.abaa5c0e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-03-25 */ // File: @openzeppelin/contracts/utils/structs/EnumerableSet.sol // OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { 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] = valueIndex; // Replace lastvalue's index to valueIndex } // 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) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // 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)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } } // File: @openzeppelin/contracts/utils/Counters.sol // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. 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;` */ library Counters { 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 { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: @openzeppelin/contracts/security/Pausable.sol // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } // File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: @openzeppelin/contracts/token/ERC721/IERC721.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // File: @openzeppelin/contracts/token/ERC721/ERC721.sol // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} } // File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Pausable.sol) pragma solidity ^0.8.0; /** * @dev ERC721 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC721Pausable is ERC721, Pausable { /** * @dev See {ERC721-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); require(!paused(), "ERC721Pausable: token transfer while paused"); } } // File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } } // File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @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 override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } // File: contracts/NFT.sol //SPDX-License-Identifier: None pragma solidity ^0.8.7; contract P_NFTs is Context, Ownable, ERC721Enumerable, ERC721Pausable { using Counters for Counters.Counter; using EnumerableSet for EnumerableSet.AddressSet; /** @notice Capped max supply */ uint256 public immutable supplyCap = 1770; /** @notice Each address has a mint quota */ uint16 public immutable quota = 2; string private _baseTokenURI; /** @notice Token ID counter declared */ Counters.Counter private _tokenIds; /** @notice Freeze token base URI. Irrevocable */ bool public isFrozen; /** @notice Public mint open */ bool public isOpen; /** @notice Mapping to track number of mints per address */ mapping(address => uint256) public userMintCount; modifier mintOpen() { require(isOpen, "Public mint not open"); _; } /** @notice Functions related to minting or changing * NFT metadata are inaccessible after freezing */ modifier nonFrozen() { require(!isFrozen, "NFT metadata is frozen"); _; } constructor() ERC721("Out of Africa: Poster NFTs", "P-NFT") { _baseTokenURI = "ipfs://QmSGCfSazPHvdz7EvqFrPBKnjxt139CxATtsbvh69nCdSa/"; } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } /** @notice Owner can change baseURI */ function setBaseURI(string memory baseTokenURI) external onlyOwner nonFrozen { _baseTokenURI = baseTokenURI; } /** @notice Open public mint */ function openMint() external onlyOwner nonFrozen { isOpen = true; } /** @notice End public mint */ function closeMint() external onlyOwner nonFrozen { isOpen = false; } /** * @dev Creates a new token. Its token ID will be automatically * assigned (and available on the emitted {IERC721-Transfer} event), and the token * URI autogenerated based on the base URI passed at construction. */ function mintPNFT() public mintOpen { //require(msg.sender == tx.origin, "no bots"); require(userMintCount[msg.sender] < quota, "Exceed quota"); require(totalSupply() < supplyCap, "Exceed cap"); require(!paused(), "Paused"); userMintCount[msg.sender]++; _mint(_msgSender(), _tokenIds.current() + 1); _tokenIds.increment(); } /** @notice Contract owner can burn token he owns * @param _id token to be burned */ function burn(uint256 _id) external onlyOwner { require(ownerOf(_id) == _msgSender()); _burn(_id); } /** @notice Pass an array of address to batch mint * @param _recipients List of addresses to receive the batch mint */ function batchMint(address[] calldata _recipients) external nonFrozen onlyOwner { require( totalSupply() + _recipients.length - 1 < supplyCap, "Exceed cap" ); for (uint256 i = 0; i < _recipients.length; i++) { _mint(_recipients[i], _tokenIds.current() + 1); _tokenIds.increment(); } } /** @notice Owner can batch mint to itself * @param _amount Number of tokens to be minted */ function batchMintForOwner(uint256 _amount) external onlyOwner nonFrozen { require(totalSupply() + _amount - 1 < supplyCap, "Exceed cap"); for (uint256 i = 0; i < _amount; i++) { _mint(_msgSender(), _tokenIds.current() + 1); _tokenIds.increment(); } } /** * @dev Pauses all token transfers and mint */ function pause() external onlyOwner { _pause(); } /** * @dev Unpauses all token transfers and mint. */ function unpause() external onlyOwner { _unpause(); } /** @notice Prevent most token functions being called thereby freezing metadata NON-REVERSIBLE**/ function freeze() external onlyOwner { isFrozen = true; } //Check if public mint is open function isMintActive() external view returns (bool) { return isOpen; } //Check number of PNFTs issued function totalMintCount() external view returns (uint256) { return _tokenIds.current(); } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override(ERC721Enumerable, ERC721Pausable) { super._beforeTokenTransfer(from, to, tokenId); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_recipients","type":"address[]"}],"name":"batchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"batchMintForOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"closeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeze","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"quota","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseTokenURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supplyCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":"totalMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c06040526106ea608052600260a0523480156200001c57600080fd5b506040518060400160405280601a81526020017f4f7574206f66204166726963613a20506f73746572204e46547300000000000081525060405180604001604052806005815260200164140b53919560da1b8152506200008b62000085620000f960201b60201c565b620000fd565b8151620000a09060019060208501906200014d565b508051620000b69060029060208401906200014d565b5050600b805460ff1916905550604080516060810190915260368082526200278460208301398051620000f291600c916020909101906200014d565b506200022f565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200015b90620001f3565b90600052602060002090601f0160209004810192826200017f5760008555620001ca565b82601f106200019a57805160ff1916838001178555620001ca565b82800160010185558215620001ca579182015b82811115620001ca578251825591602001919060010190620001ad565b50620001d8929150620001dc565b5090565b5b80821115620001d85760008155600101620001dd565b600181811c908216806200020857607f821691505b6020821081036200022957634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a0516125136200027160003960008181610476015261104201526000818161040601528181610a1601528181610e9601526110a001526125136000f3fe608060405234801561001057600080fd5b50600436106102275760003560e01c806362a5af3b1161013057806395d89b41116100b8578063cebe09c91161007c578063cebe09c914610471578063d67b06c1146104ab578063e985e9c5146104be578063f2fde38b146104fa578063f64d66351461050d57600080fd5b806395d89b4114610428578063a22cb46514610430578063b88d4fde14610443578063bce6d67214610456578063c87b56dd1461045e57600080fd5b8063715018a6116100ff578063715018a6146103d85780637a0d2302146103e05780638456cb59146103e85780638da5cb5b146103f05780638f770ad01461040157600080fd5b806362a5af3b146103a25780636352211e146103aa57806364f101f0146103bd57806370a08231146103c557600080fd5b80633f4ba83a116101b35780634f6ccce7116101825780634f6ccce71461034e57806355f804b3146103615780635950ae20146103745780635b92ac0d146103875780635c975abb1461039757600080fd5b80633f4ba83a1461030e57806342842e0e1461031657806342966c681461032957806347535d7b1461033c57600080fd5b806318160ddd116101fa57806318160ddd146102a957806323b872dd146102bb5780632f745c59146102ce57806333eeb147146102e15780633950891f146102ee57600080fd5b806301ffc9a71461022c57806306fdde0314610254578063081812fc14610269578063095ea7b314610294575b600080fd5b61023f61023a366004611eb3565b610515565b60405190151581526020015b60405180910390f35b61025c610526565b60405161024b9190611f28565b61027c610277366004611f3b565b6105b8565b6040516001600160a01b03909116815260200161024b565b6102a76102a2366004611f70565b610652565b005b6009545b60405190815260200161024b565b6102a76102c9366004611f9a565b610767565b6102ad6102dc366004611f70565b610798565b600e5461023f9060ff1681565b6102ad6102fc366004611fd6565b600f6020526000908152604090205481565b6102a761082e565b6102a7610324366004611f9a565b610862565b6102a7610337366004611f3b565b61087d565b600e5461023f90610100900460ff1681565b6102ad61035c366004611f3b565b6108d0565b6102a761036f36600461207d565b610963565b6102a7610382366004611f3b565b6109c7565b600e54610100900460ff1661023f565b600b5460ff1661023f565b6102a7610ab5565b61027c6103b8366004611f3b565b610aee565b6102a7610b65565b6102ad6103d3366004611fd6565b610bbf565b6102a7610c46565b6102ad610c7a565b6102a7610c8a565b6000546001600160a01b031661027c565b6102ad7f000000000000000000000000000000000000000000000000000000000000000081565b61025c610cbc565b6102a761043e3660046120c6565b610ccb565b6102a7610451366004612102565b610cd6565b6102a7610d0e565b61025c61046c366004611f3b565b610d6c565b6104987f000000000000000000000000000000000000000000000000000000000000000081565b60405161ffff909116815260200161024b565b6102a76104b936600461217e565b610e47565b61023f6104cc3660046121f3565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6102a7610508366004611fd6565b610f47565b6102a7610fdf565b600061052082611159565b92915050565b60606001805461053590612226565b80601f016020809104026020016040519081016040528092919081815260200182805461056190612226565b80156105ae5780601f10610583576101008083540402835291602001916105ae565b820191906000526020600020905b81548152906001019060200180831161059157829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166106365760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061065d82610aee565b9050806001600160a01b0316836001600160a01b0316036106ca5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161062d565b336001600160a01b03821614806106e657506106e681336104cc565b6107585760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161062d565b610762838361117e565b505050565b61077133826111ec565b61078d5760405162461bcd60e51b815260040161062d90612260565b6107628383836112e3565b60006107a383610bbf565b82106108055760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161062d565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6000546001600160a01b031633146108585760405162461bcd60e51b815260040161062d906122b1565b61086061148a565b565b61076283838360405180602001604052806000815250610cd6565b6000546001600160a01b031633146108a75760405162461bcd60e51b815260040161062d906122b1565b336108b182610aee565b6001600160a01b0316146108c457600080fd5b6108cd8161151d565b50565b60006108db60095490565b821061093e5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161062d565b60098281548110610951576109516122e6565b90600052602060002001549050919050565b6000546001600160a01b0316331461098d5760405162461bcd60e51b815260040161062d906122b1565b600e5460ff16156109b05760405162461bcd60e51b815260040161062d906122fc565b80516109c390600c906020840190611e04565b5050565b6000546001600160a01b031633146109f15760405162461bcd60e51b815260040161062d906122b1565b600e5460ff1615610a145760405162461bcd60e51b815260040161062d906122fc565b7f0000000000000000000000000000000000000000000000000000000000000000600182610a4160095490565b610a4b9190612342565b610a55919061235a565b10610a725760405162461bcd60e51b815260040161062d90612371565b60005b818110156109c357610a95335b600d54610a90906001612342565b6115c4565b610aa3600d80546001019055565b80610aad81612395565b915050610a75565b6000546001600160a01b03163314610adf5760405162461bcd60e51b815260040161062d906122b1565b600e805460ff19166001179055565b6000818152600360205260408120546001600160a01b0316806105205760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161062d565b6000546001600160a01b03163314610b8f5760405162461bcd60e51b815260040161062d906122b1565b600e5460ff1615610bb25760405162461bcd60e51b815260040161062d906122fc565b600e805461ff0019169055565b60006001600160a01b038216610c2a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161062d565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b03163314610c705760405162461bcd60e51b815260040161062d906122b1565b6108606000611712565b6000610c85600d5490565b905090565b6000546001600160a01b03163314610cb45760405162461bcd60e51b815260040161062d906122b1565b610860611762565b60606002805461053590612226565b6109c33383836117dd565b610ce033836111ec565b610cfc5760405162461bcd60e51b815260040161062d90612260565b610d08848484846118ab565b50505050565b6000546001600160a01b03163314610d385760405162461bcd60e51b815260040161062d906122b1565b600e5460ff1615610d5b5760405162461bcd60e51b815260040161062d906122fc565b600e805461ff001916610100179055565b6000818152600360205260409020546060906001600160a01b0316610deb5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161062d565b6000610df56118de565b90506000815111610e155760405180602001604052806000815250610e40565b80610e1f846118ed565b604051602001610e309291906123ae565b6040516020818303038152906040525b9392505050565b600e5460ff1615610e6a5760405162461bcd60e51b815260040161062d906122fc565b6000546001600160a01b03163314610e945760405162461bcd60e51b815260040161062d906122b1565b7f0000000000000000000000000000000000000000000000000000000000000000600182610ec160095490565b610ecb9190612342565b610ed5919061235a565b10610ef25760405162461bcd60e51b815260040161062d90612371565b60005b8181101561076257610f27838383818110610f1257610f126122e6565b9050602002016020810190610a829190611fd6565b610f35600d80546001019055565b80610f3f81612395565b915050610ef5565b6000546001600160a01b03163314610f715760405162461bcd60e51b815260040161062d906122b1565b6001600160a01b038116610fd65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161062d565b6108cd81611712565b600e54610100900460ff1661102d5760405162461bcd60e51b8152602060048201526014602482015273283ab13634b19036b4b73a103737ba1037b832b760611b604482015260640161062d565b336000908152600f602052604090205461ffff7f0000000000000000000000000000000000000000000000000000000000000000161161109e5760405162461bcd60e51b815260206004820152600c60248201526b4578636565642071756f746160a01b604482015260640161062d565b7f00000000000000000000000000000000000000000000000000000000000000006110c860095490565b106110e55760405162461bcd60e51b815260040161062d90612371565b600b5460ff16156111215760405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b604482015260640161062d565b336000908152600f6020526040812080549161113c83612395565b919050555061114b610a823390565b610860600d80546001019055565b60006001600160e01b0319821663780e9d6360e01b14806105205750610520826119ee565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906111b382610aee565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b03166112655760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161062d565b600061127083610aee565b9050806001600160a01b0316846001600160a01b031614806112ab5750836001600160a01b03166112a0846105b8565b6001600160a01b0316145b806112db57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166112f682610aee565b6001600160a01b03161461135a5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161062d565b6001600160a01b0382166113bc5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161062d565b6113c7838383611a3e565b6113d260008261117e565b6001600160a01b03831660009081526004602052604081208054600192906113fb90849061235a565b90915550506001600160a01b0382166000908152600460205260408120805460019290611429908490612342565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600b5460ff166114d35760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161062d565b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600061152882610aee565b905061153681600084611a3e565b61154160008361117e565b6001600160a01b038116600090815260046020526040812080546001929061156a90849061235a565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b03821661161a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161062d565b6000818152600360205260409020546001600160a01b03161561167f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161062d565b61168b60008383611a3e565b6001600160a01b03821660009081526004602052604081208054600192906116b4908490612342565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600b5460ff16156117a85760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161062d565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586115003390565b816001600160a01b0316836001600160a01b03160361183e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161062d565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6118b68484846112e3565b6118c284848484611a49565b610d085760405162461bcd60e51b815260040161062d906123dd565b6060600c805461053590612226565b6060816000036119145750506040805180820190915260018152600360fc1b602082015290565b8160005b811561193e578061192881612395565b91506119379050600a83612445565b9150611918565b60008167ffffffffffffffff81111561195957611959611ff1565b6040519080825280601f01601f191660200182016040528015611983576020820181803683370190505b5090505b84156112db5761199860018361235a565b91506119a5600a86612459565b6119b0906030612342565b60f81b8183815181106119c5576119c56122e6565b60200101906001600160f81b031916908160001a9053506119e7600a86612445565b9450611987565b60006001600160e01b031982166380ac58cd60e01b1480611a1f57506001600160e01b03198216635b5e139f60e01b145b8061052057506301ffc9a760e01b6001600160e01b0319831614610520565b610762838383611b4a565b60006001600160a01b0384163b15611b3f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611a8d90339089908890889060040161246d565b6020604051808303816000875af1925050508015611ac8575060408051601f3d908101601f19168201909252611ac5918101906124aa565b60015b611b25573d808015611af6576040519150601f19603f3d011682016040523d82523d6000602084013e611afb565b606091505b508051600003611b1d5760405162461bcd60e51b815260040161062d906123dd565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506112db565b506001949350505050565b611b55838383611bbc565b600b5460ff16156107625760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b606482015260840161062d565b6001600160a01b038316611c1757611c1281600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b611c3a565b816001600160a01b0316836001600160a01b031614611c3a57611c3a8382611c74565b6001600160a01b038216611c515761076281611d11565b826001600160a01b0316826001600160a01b031614610762576107628282611dc0565b60006001611c8184610bbf565b611c8b919061235a565b600083815260086020526040902054909150808214611cde576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090611d239060019061235a565b6000838152600a602052604081205460098054939450909284908110611d4b57611d4b6122e6565b906000526020600020015490508060098381548110611d6c57611d6c6122e6565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480611da457611da46124c7565b6001900381819060005260206000200160009055905550505050565b6000611dcb83610bbf565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b828054611e1090612226565b90600052602060002090601f016020900481019282611e325760008555611e78565b82601f10611e4b57805160ff1916838001178555611e78565b82800160010185558215611e78579182015b82811115611e78578251825591602001919060010190611e5d565b50611e84929150611e88565b5090565b5b80821115611e845760008155600101611e89565b6001600160e01b0319811681146108cd57600080fd5b600060208284031215611ec557600080fd5b8135610e4081611e9d565b60005b83811015611eeb578181015183820152602001611ed3565b83811115610d085750506000910152565b60008151808452611f14816020860160208601611ed0565b601f01601f19169290920160200192915050565b602081526000610e406020830184611efc565b600060208284031215611f4d57600080fd5b5035919050565b80356001600160a01b0381168114611f6b57600080fd5b919050565b60008060408385031215611f8357600080fd5b611f8c83611f54565b946020939093013593505050565b600080600060608486031215611faf57600080fd5b611fb884611f54565b9250611fc660208501611f54565b9150604084013590509250925092565b600060208284031215611fe857600080fd5b610e4082611f54565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561202257612022611ff1565b604051601f8501601f19908116603f0116810190828211818310171561204a5761204a611ff1565b8160405280935085815286868601111561206357600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561208f57600080fd5b813567ffffffffffffffff8111156120a657600080fd5b8201601f810184136120b757600080fd5b6112db84823560208401612007565b600080604083850312156120d957600080fd5b6120e283611f54565b9150602083013580151581146120f757600080fd5b809150509250929050565b6000806000806080858703121561211857600080fd5b61212185611f54565b935061212f60208601611f54565b925060408501359150606085013567ffffffffffffffff81111561215257600080fd5b8501601f8101871361216357600080fd5b61217287823560208401612007565b91505092959194509250565b6000806020838503121561219157600080fd5b823567ffffffffffffffff808211156121a957600080fd5b818501915085601f8301126121bd57600080fd5b8135818111156121cc57600080fd5b8660208260051b85010111156121e157600080fd5b60209290920196919550909350505050565b6000806040838503121561220657600080fd5b61220f83611f54565b915061221d60208401611f54565b90509250929050565b600181811c9082168061223a57607f821691505b60208210810361225a57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60208082526016908201527527232a1036b2ba30b230ba309034b990333937bd32b760511b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156123555761235561232c565b500190565b60008282101561236c5761236c61232c565b500390565b6020808252600a90820152690457863656564206361760b41b604082015260600190565b6000600182016123a7576123a761232c565b5060010190565b600083516123c0818460208801611ed0565b8351908301906123d4818360208801611ed0565b01949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826124545761245461242f565b500490565b6000826124685761246861242f565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906124a090830184611efc565b9695505050505050565b6000602082840312156124bc57600080fd5b8151610e4081611e9d565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220f9877ee1ca9e30234662de412fd03c983ed801b1ffce799449f1a5d36babf36464736f6c634300080d0033697066733a2f2f516d5347436653617a504876647a37457671467250424b6e6a787431333943784154747362766836396e436453612f
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102275760003560e01c806362a5af3b1161013057806395d89b41116100b8578063cebe09c91161007c578063cebe09c914610471578063d67b06c1146104ab578063e985e9c5146104be578063f2fde38b146104fa578063f64d66351461050d57600080fd5b806395d89b4114610428578063a22cb46514610430578063b88d4fde14610443578063bce6d67214610456578063c87b56dd1461045e57600080fd5b8063715018a6116100ff578063715018a6146103d85780637a0d2302146103e05780638456cb59146103e85780638da5cb5b146103f05780638f770ad01461040157600080fd5b806362a5af3b146103a25780636352211e146103aa57806364f101f0146103bd57806370a08231146103c557600080fd5b80633f4ba83a116101b35780634f6ccce7116101825780634f6ccce71461034e57806355f804b3146103615780635950ae20146103745780635b92ac0d146103875780635c975abb1461039757600080fd5b80633f4ba83a1461030e57806342842e0e1461031657806342966c681461032957806347535d7b1461033c57600080fd5b806318160ddd116101fa57806318160ddd146102a957806323b872dd146102bb5780632f745c59146102ce57806333eeb147146102e15780633950891f146102ee57600080fd5b806301ffc9a71461022c57806306fdde0314610254578063081812fc14610269578063095ea7b314610294575b600080fd5b61023f61023a366004611eb3565b610515565b60405190151581526020015b60405180910390f35b61025c610526565b60405161024b9190611f28565b61027c610277366004611f3b565b6105b8565b6040516001600160a01b03909116815260200161024b565b6102a76102a2366004611f70565b610652565b005b6009545b60405190815260200161024b565b6102a76102c9366004611f9a565b610767565b6102ad6102dc366004611f70565b610798565b600e5461023f9060ff1681565b6102ad6102fc366004611fd6565b600f6020526000908152604090205481565b6102a761082e565b6102a7610324366004611f9a565b610862565b6102a7610337366004611f3b565b61087d565b600e5461023f90610100900460ff1681565b6102ad61035c366004611f3b565b6108d0565b6102a761036f36600461207d565b610963565b6102a7610382366004611f3b565b6109c7565b600e54610100900460ff1661023f565b600b5460ff1661023f565b6102a7610ab5565b61027c6103b8366004611f3b565b610aee565b6102a7610b65565b6102ad6103d3366004611fd6565b610bbf565b6102a7610c46565b6102ad610c7a565b6102a7610c8a565b6000546001600160a01b031661027c565b6102ad7f00000000000000000000000000000000000000000000000000000000000006ea81565b61025c610cbc565b6102a761043e3660046120c6565b610ccb565b6102a7610451366004612102565b610cd6565b6102a7610d0e565b61025c61046c366004611f3b565b610d6c565b6104987f000000000000000000000000000000000000000000000000000000000000000281565b60405161ffff909116815260200161024b565b6102a76104b936600461217e565b610e47565b61023f6104cc3660046121f3565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6102a7610508366004611fd6565b610f47565b6102a7610fdf565b600061052082611159565b92915050565b60606001805461053590612226565b80601f016020809104026020016040519081016040528092919081815260200182805461056190612226565b80156105ae5780601f10610583576101008083540402835291602001916105ae565b820191906000526020600020905b81548152906001019060200180831161059157829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166106365760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061065d82610aee565b9050806001600160a01b0316836001600160a01b0316036106ca5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161062d565b336001600160a01b03821614806106e657506106e681336104cc565b6107585760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161062d565b610762838361117e565b505050565b61077133826111ec565b61078d5760405162461bcd60e51b815260040161062d90612260565b6107628383836112e3565b60006107a383610bbf565b82106108055760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161062d565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6000546001600160a01b031633146108585760405162461bcd60e51b815260040161062d906122b1565b61086061148a565b565b61076283838360405180602001604052806000815250610cd6565b6000546001600160a01b031633146108a75760405162461bcd60e51b815260040161062d906122b1565b336108b182610aee565b6001600160a01b0316146108c457600080fd5b6108cd8161151d565b50565b60006108db60095490565b821061093e5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161062d565b60098281548110610951576109516122e6565b90600052602060002001549050919050565b6000546001600160a01b0316331461098d5760405162461bcd60e51b815260040161062d906122b1565b600e5460ff16156109b05760405162461bcd60e51b815260040161062d906122fc565b80516109c390600c906020840190611e04565b5050565b6000546001600160a01b031633146109f15760405162461bcd60e51b815260040161062d906122b1565b600e5460ff1615610a145760405162461bcd60e51b815260040161062d906122fc565b7f00000000000000000000000000000000000000000000000000000000000006ea600182610a4160095490565b610a4b9190612342565b610a55919061235a565b10610a725760405162461bcd60e51b815260040161062d90612371565b60005b818110156109c357610a95335b600d54610a90906001612342565b6115c4565b610aa3600d80546001019055565b80610aad81612395565b915050610a75565b6000546001600160a01b03163314610adf5760405162461bcd60e51b815260040161062d906122b1565b600e805460ff19166001179055565b6000818152600360205260408120546001600160a01b0316806105205760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161062d565b6000546001600160a01b03163314610b8f5760405162461bcd60e51b815260040161062d906122b1565b600e5460ff1615610bb25760405162461bcd60e51b815260040161062d906122fc565b600e805461ff0019169055565b60006001600160a01b038216610c2a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161062d565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b03163314610c705760405162461bcd60e51b815260040161062d906122b1565b6108606000611712565b6000610c85600d5490565b905090565b6000546001600160a01b03163314610cb45760405162461bcd60e51b815260040161062d906122b1565b610860611762565b60606002805461053590612226565b6109c33383836117dd565b610ce033836111ec565b610cfc5760405162461bcd60e51b815260040161062d90612260565b610d08848484846118ab565b50505050565b6000546001600160a01b03163314610d385760405162461bcd60e51b815260040161062d906122b1565b600e5460ff1615610d5b5760405162461bcd60e51b815260040161062d906122fc565b600e805461ff001916610100179055565b6000818152600360205260409020546060906001600160a01b0316610deb5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161062d565b6000610df56118de565b90506000815111610e155760405180602001604052806000815250610e40565b80610e1f846118ed565b604051602001610e309291906123ae565b6040516020818303038152906040525b9392505050565b600e5460ff1615610e6a5760405162461bcd60e51b815260040161062d906122fc565b6000546001600160a01b03163314610e945760405162461bcd60e51b815260040161062d906122b1565b7f00000000000000000000000000000000000000000000000000000000000006ea600182610ec160095490565b610ecb9190612342565b610ed5919061235a565b10610ef25760405162461bcd60e51b815260040161062d90612371565b60005b8181101561076257610f27838383818110610f1257610f126122e6565b9050602002016020810190610a829190611fd6565b610f35600d80546001019055565b80610f3f81612395565b915050610ef5565b6000546001600160a01b03163314610f715760405162461bcd60e51b815260040161062d906122b1565b6001600160a01b038116610fd65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161062d565b6108cd81611712565b600e54610100900460ff1661102d5760405162461bcd60e51b8152602060048201526014602482015273283ab13634b19036b4b73a103737ba1037b832b760611b604482015260640161062d565b336000908152600f602052604090205461ffff7f0000000000000000000000000000000000000000000000000000000000000002161161109e5760405162461bcd60e51b815260206004820152600c60248201526b4578636565642071756f746160a01b604482015260640161062d565b7f00000000000000000000000000000000000000000000000000000000000006ea6110c860095490565b106110e55760405162461bcd60e51b815260040161062d90612371565b600b5460ff16156111215760405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b604482015260640161062d565b336000908152600f6020526040812080549161113c83612395565b919050555061114b610a823390565b610860600d80546001019055565b60006001600160e01b0319821663780e9d6360e01b14806105205750610520826119ee565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906111b382610aee565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b03166112655760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161062d565b600061127083610aee565b9050806001600160a01b0316846001600160a01b031614806112ab5750836001600160a01b03166112a0846105b8565b6001600160a01b0316145b806112db57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166112f682610aee565b6001600160a01b03161461135a5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161062d565b6001600160a01b0382166113bc5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161062d565b6113c7838383611a3e565b6113d260008261117e565b6001600160a01b03831660009081526004602052604081208054600192906113fb90849061235a565b90915550506001600160a01b0382166000908152600460205260408120805460019290611429908490612342565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600b5460ff166114d35760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161062d565b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600061152882610aee565b905061153681600084611a3e565b61154160008361117e565b6001600160a01b038116600090815260046020526040812080546001929061156a90849061235a565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b03821661161a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161062d565b6000818152600360205260409020546001600160a01b03161561167f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161062d565b61168b60008383611a3e565b6001600160a01b03821660009081526004602052604081208054600192906116b4908490612342565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600b5460ff16156117a85760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161062d565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586115003390565b816001600160a01b0316836001600160a01b03160361183e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161062d565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6118b68484846112e3565b6118c284848484611a49565b610d085760405162461bcd60e51b815260040161062d906123dd565b6060600c805461053590612226565b6060816000036119145750506040805180820190915260018152600360fc1b602082015290565b8160005b811561193e578061192881612395565b91506119379050600a83612445565b9150611918565b60008167ffffffffffffffff81111561195957611959611ff1565b6040519080825280601f01601f191660200182016040528015611983576020820181803683370190505b5090505b84156112db5761199860018361235a565b91506119a5600a86612459565b6119b0906030612342565b60f81b8183815181106119c5576119c56122e6565b60200101906001600160f81b031916908160001a9053506119e7600a86612445565b9450611987565b60006001600160e01b031982166380ac58cd60e01b1480611a1f57506001600160e01b03198216635b5e139f60e01b145b8061052057506301ffc9a760e01b6001600160e01b0319831614610520565b610762838383611b4a565b60006001600160a01b0384163b15611b3f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611a8d90339089908890889060040161246d565b6020604051808303816000875af1925050508015611ac8575060408051601f3d908101601f19168201909252611ac5918101906124aa565b60015b611b25573d808015611af6576040519150601f19603f3d011682016040523d82523d6000602084013e611afb565b606091505b508051600003611b1d5760405162461bcd60e51b815260040161062d906123dd565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506112db565b506001949350505050565b611b55838383611bbc565b600b5460ff16156107625760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b606482015260840161062d565b6001600160a01b038316611c1757611c1281600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b611c3a565b816001600160a01b0316836001600160a01b031614611c3a57611c3a8382611c74565b6001600160a01b038216611c515761076281611d11565b826001600160a01b0316826001600160a01b031614610762576107628282611dc0565b60006001611c8184610bbf565b611c8b919061235a565b600083815260086020526040902054909150808214611cde576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090611d239060019061235a565b6000838152600a602052604081205460098054939450909284908110611d4b57611d4b6122e6565b906000526020600020015490508060098381548110611d6c57611d6c6122e6565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480611da457611da46124c7565b6001900381819060005260206000200160009055905550505050565b6000611dcb83610bbf565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b828054611e1090612226565b90600052602060002090601f016020900481019282611e325760008555611e78565b82601f10611e4b57805160ff1916838001178555611e78565b82800160010185558215611e78579182015b82811115611e78578251825591602001919060010190611e5d565b50611e84929150611e88565b5090565b5b80821115611e845760008155600101611e89565b6001600160e01b0319811681146108cd57600080fd5b600060208284031215611ec557600080fd5b8135610e4081611e9d565b60005b83811015611eeb578181015183820152602001611ed3565b83811115610d085750506000910152565b60008151808452611f14816020860160208601611ed0565b601f01601f19169290920160200192915050565b602081526000610e406020830184611efc565b600060208284031215611f4d57600080fd5b5035919050565b80356001600160a01b0381168114611f6b57600080fd5b919050565b60008060408385031215611f8357600080fd5b611f8c83611f54565b946020939093013593505050565b600080600060608486031215611faf57600080fd5b611fb884611f54565b9250611fc660208501611f54565b9150604084013590509250925092565b600060208284031215611fe857600080fd5b610e4082611f54565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561202257612022611ff1565b604051601f8501601f19908116603f0116810190828211818310171561204a5761204a611ff1565b8160405280935085815286868601111561206357600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561208f57600080fd5b813567ffffffffffffffff8111156120a657600080fd5b8201601f810184136120b757600080fd5b6112db84823560208401612007565b600080604083850312156120d957600080fd5b6120e283611f54565b9150602083013580151581146120f757600080fd5b809150509250929050565b6000806000806080858703121561211857600080fd5b61212185611f54565b935061212f60208601611f54565b925060408501359150606085013567ffffffffffffffff81111561215257600080fd5b8501601f8101871361216357600080fd5b61217287823560208401612007565b91505092959194509250565b6000806020838503121561219157600080fd5b823567ffffffffffffffff808211156121a957600080fd5b818501915085601f8301126121bd57600080fd5b8135818111156121cc57600080fd5b8660208260051b85010111156121e157600080fd5b60209290920196919550909350505050565b6000806040838503121561220657600080fd5b61220f83611f54565b915061221d60208401611f54565b90509250929050565b600181811c9082168061223a57607f821691505b60208210810361225a57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60208082526016908201527527232a1036b2ba30b230ba309034b990333937bd32b760511b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156123555761235561232c565b500190565b60008282101561236c5761236c61232c565b500390565b6020808252600a90820152690457863656564206361760b41b604082015260600190565b6000600182016123a7576123a761232c565b5060010190565b600083516123c0818460208801611ed0565b8351908301906123d4818360208801611ed0565b01949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826124545761245461242f565b500490565b6000826124685761246861242f565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906124a090830184611efc565b9695505050505050565b6000602082840312156124bc57600080fd5b8151610e4081611e9d565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220f9877ee1ca9e30234662de412fd03c983ed801b1ffce799449f1a5d36babf36464736f6c634300080d0033
Deployed Bytecode Sourcemap
63676:4926:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68370:229;;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;68370:229:0;;;;;;;;42494:100;;;:::i;:::-;;;;;;;:::i;44053:221::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1692:32:1;;;1674:51;;1662:2;1647:18;44053:221:0;1528:203:1;43576:411:0;;;;;;:::i;:::-;;:::i;:::-;;58062:113;58150:10;:17;58062:113;;;2319:25:1;;;2307:2;2292:18;58062:113:0;2173:177:1;44803:339:0;;;;;;:::i;:::-;;:::i;57730:256::-;;;;;;:::i;:::-;;:::i;64213:20::-;;;;;;;;;64371:48;;;;;;:::i;:::-;;;;;;;;;;;;;;67537:67;;;:::i;45213:185::-;;;;;;:::i;:::-;;:::i;66214:123::-;;;;;;:::i;:::-;;:::i;64279:18::-;;;;;;;;;;;;58252:233;;;;;;:::i;:::-;;:::i;65076:124::-;;;;;;:::i;:::-;;:::i;67010:311::-;;;;;;:::i;:::-;;:::i;67831:85::-;67902:6;;;;;;;67831:85;;20721:86;20792:7;;;;20721:86;;67720:71;;;:::i;42188:239::-;;;;;;:::i;:::-;;:::i;65370:83::-;;;:::i;41918:208::-;;;;;;:::i;:::-;;:::i;18772:103::-;;;:::i;67956:::-;;;:::i;67396:63::-;;;:::i;18121:87::-;18167:7;18194:6;-1:-1:-1;;;;;18194:6:0;18121:87;;63890:41;;;;;42663:104;;;:::i;44346:155::-;;;;;;:::i;:::-;;:::i;45469:328::-;;;;;;:::i;:::-;;:::i;65245:81::-;;;:::i;42838:334::-;;;;;;:::i;:::-;;:::i;63990:33::-;;;;;;;;5302:6:1;5290:19;;;5272:38;;5260:2;5245:18;63990:33:0;5128:188:1;66481:411:0;;;;;;:::i;:::-;;:::i;44572:164::-;;;;;;:::i;:::-;-1:-1:-1;;;;;44693:25:0;;;44669:4;44693:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;44572:164;19030:201;;;;;;:::i;:::-;;:::i;65708:396::-;;;:::i;68370:229::-;68526:4;68555:36;68579:11;68555:23;:36::i;:::-;68548:43;68370:229;-1:-1:-1;;68370:229:0:o;42494:100::-;42548:13;42581:5;42574:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42494:100;:::o;44053:221::-;44129:7;47396:16;;;:7;:16;;;;;;-1:-1:-1;;;;;47396:16:0;44149:73;;;;-1:-1:-1;;;44149:73:0;;6793:2:1;44149:73:0;;;6775:21:1;6832:2;6812:18;;;6805:30;6871:34;6851:18;;;6844:62;-1:-1:-1;;;6922:18:1;;;6915:42;6974:19;;44149:73:0;;;;;;;;;-1:-1:-1;44242:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;44242:24:0;;44053:221::o;43576:411::-;43657:13;43673:23;43688:7;43673:14;:23::i;:::-;43657:39;;43721:5;-1:-1:-1;;;;;43715:11:0;:2;-1:-1:-1;;;;;43715:11:0;;43707:57;;;;-1:-1:-1;;;43707:57:0;;7206:2:1;43707:57:0;;;7188:21:1;7245:2;7225:18;;;7218:30;7284:34;7264:18;;;7257:62;-1:-1:-1;;;7335:18:1;;;7328:31;7376:19;;43707:57:0;7004:397:1;43707:57:0;16925:10;-1:-1:-1;;;;;43799:21:0;;;;:62;;-1:-1:-1;43824:37:0;43841:5;16925:10;44572:164;:::i;43824:37::-;43777:168;;;;-1:-1:-1;;;43777:168:0;;7608:2:1;43777:168:0;;;7590:21:1;7647:2;7627:18;;;7620:30;7686:34;7666:18;;;7659:62;7757:26;7737:18;;;7730:54;7801:19;;43777:168:0;7406:420:1;43777:168:0;43958:21;43967:2;43971:7;43958:8;:21::i;:::-;43646:341;43576:411;;:::o;44803:339::-;44998:41;16925:10;45031:7;44998:18;:41::i;:::-;44990:103;;;;-1:-1:-1;;;44990:103:0;;;;;;;:::i;:::-;45106:28;45116:4;45122:2;45126:7;45106:9;:28::i;57730:256::-;57827:7;57863:23;57880:5;57863:16;:23::i;:::-;57855:5;:31;57847:87;;;;-1:-1:-1;;;57847:87:0;;8451:2:1;57847:87:0;;;8433:21:1;8490:2;8470:18;;;8463:30;8529:34;8509:18;;;8502:62;-1:-1:-1;;;8580:18:1;;;8573:41;8631:19;;57847:87:0;8249:407:1;57847:87:0;-1:-1:-1;;;;;;57952:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;57730:256::o;67537:67::-;18167:7;18194:6;-1:-1:-1;;;;;18194:6:0;16925:10;18341:23;18333:68;;;;-1:-1:-1;;;18333:68:0;;;;;;;:::i;:::-;67586:10:::1;:8;:10::i;:::-;67537:67::o:0;45213:185::-;45351:39;45368:4;45374:2;45378:7;45351:39;;;;;;;;;;;;:16;:39::i;66214:123::-;18167:7;18194:6;-1:-1:-1;;;;;18194:6:0;16925:10;18341:23;18333:68;;;;-1:-1:-1;;;18333:68:0;;;;;;;:::i;:::-;16925:10;66279:12:::1;66287:3:::0;66279:7:::1;:12::i;:::-;-1:-1:-1::0;;;;;66279:28:0::1;;66271:37;;;::::0;::::1;;66319:10;66325:3;66319:5;:10::i;:::-;66214:123:::0;:::o;58252:233::-;58327:7;58363:30;58150:10;:17;;58062:113;58363:30;58355:5;:38;58347:95;;;;-1:-1:-1;;;58347:95:0;;9224:2:1;58347:95:0;;;9206:21:1;9263:2;9243:18;;;9236:30;9302:34;9282:18;;;9275:62;-1:-1:-1;;;9353:18:1;;;9346:42;9405:19;;58347:95:0;9022:408:1;58347:95:0;58460:10;58471:5;58460:17;;;;;;;;:::i;:::-;;;;;;;;;58453:24;;58252:233;;;:::o;65076:124::-;18167:7;18194:6;-1:-1:-1;;;;;18194:6:0;16925:10;18341:23;18333:68;;;;-1:-1:-1;;;18333:68:0;;;;;;;:::i;:::-;64687:8:::1;::::0;::::1;;64686:9;64678:44;;;;-1:-1:-1::0;;;64678:44:0::1;;;;;;;:::i;:::-;65164:28:::0;;::::2;::::0;:13:::2;::::0;:28:::2;::::0;::::2;::::0;::::2;:::i;:::-;;65076:124:::0;:::o;67010:311::-;18167:7;18194:6;-1:-1:-1;;;;;18194:6:0;16925:10;18341:23;18333:68;;;;-1:-1:-1;;;18333:68:0;;;;;;;:::i;:::-;64687:8:::1;::::0;::::1;;64686:9;64678:44;;;;-1:-1:-1::0;;;64678:44:0::1;;;;;;;:::i;:::-;67132:9:::2;67128:1;67118:7;67102:13;58150:10:::0;:17;;58062:113;67102:13:::2;:23;;;;:::i;:::-;:27;;;;:::i;:::-;:39;67094:62;;;;-1:-1:-1::0;;;67094:62:0::2;;;;;;;:::i;:::-;67174:9;67169:145;67193:7;67189:1;:11;67169:145;;;67222:44;16925:10:::0;67228:12:::2;67242:9;13541:14:::0;67242:23:::2;::::0;67264:1:::2;67242:23;:::i;:::-;67222:5;:44::i;:::-;67281:21;:9;13660:19:::0;;13678:1;13660:19;;;13571:127;67281:21:::2;67202:3:::0;::::2;::::0;::::2;:::i;:::-;;;;67169:145;;67720:71:::0;18167:7;18194:6;-1:-1:-1;;;;;18194:6:0;16925:10;18341:23;18333:68;;;;-1:-1:-1;;;18333:68:0;;;;;;;:::i;:::-;67768:8:::1;:15:::0;;-1:-1:-1;;67768:15:0::1;67779:4;67768:15;::::0;;67720:71::o;42188:239::-;42260:7;42296:16;;;:7;:16;;;;;;-1:-1:-1;;;;;42296:16:0;;42323:73;;;;-1:-1:-1;;;42323:73:0;;10994:2:1;42323:73:0;;;10976:21:1;11033:2;11013:18;;;11006:30;11072:34;11052:18;;;11045:62;-1:-1:-1;;;11123:18:1;;;11116:39;11172:19;;42323:73:0;10792:405:1;65370:83:0;18167:7;18194:6;-1:-1:-1;;;;;18194:6:0;16925:10;18341:23;18333:68;;;;-1:-1:-1;;;18333:68:0;;;;;;;:::i;:::-;64687:8:::1;::::0;::::1;;64686:9;64678:44;;;;-1:-1:-1::0;;;64678:44:0::1;;;;;;;:::i;:::-;65431:6:::2;:14:::0;;-1:-1:-1;;65431:14:0::2;::::0;;65370:83::o;41918:208::-;41990:7;-1:-1:-1;;;;;42018:19:0;;42010:74;;;;-1:-1:-1;;;42010:74:0;;11404:2:1;42010:74:0;;;11386:21:1;11443:2;11423:18;;;11416:30;11482:34;11462:18;;;11455:62;-1:-1:-1;;;11533:18:1;;;11526:40;11583:19;;42010:74:0;11202:406:1;42010:74:0;-1:-1:-1;;;;;;42102:16:0;;;;;:9;:16;;;;;;;41918:208::o;18772:103::-;18167:7;18194:6;-1:-1:-1;;;;;18194:6:0;16925:10;18341:23;18333:68;;;;-1:-1:-1;;;18333:68:0;;;;;;;:::i;:::-;18837:30:::1;18864:1;18837:18;:30::i;67956:103::-:0;68005:7;68032:19;:9;13541:14;;13449:114;68032:19;68025:26;;67956:103;:::o;67396:63::-;18167:7;18194:6;-1:-1:-1;;;;;18194:6:0;16925:10;18341:23;18333:68;;;;-1:-1:-1;;;18333:68:0;;;;;;;:::i;:::-;67443:8:::1;:6;:8::i;42663:104::-:0;42719:13;42752:7;42745:14;;;;;:::i;44346:155::-;44441:52;16925:10;44474:8;44484;44441:18;:52::i;45469:328::-;45644:41;16925:10;45677:7;45644:18;:41::i;:::-;45636:103;;;;-1:-1:-1;;;45636:103:0;;;;;;;:::i;:::-;45750:39;45764:4;45770:2;45774:7;45783:5;45750:13;:39::i;:::-;45469:328;;;;:::o;65245:81::-;18167:7;18194:6;-1:-1:-1;;;;;18194:6:0;16925:10;18341:23;18333:68;;;;-1:-1:-1;;;18333:68:0;;;;;;;:::i;:::-;64687:8:::1;::::0;::::1;;64686:9;64678:44;;;;-1:-1:-1::0;;;64678:44:0::1;;;;;;;:::i;:::-;65305:6:::2;:13:::0;;-1:-1:-1;;65305:13:0::2;;;::::0;;65245:81::o;42838:334::-;47372:4;47396:16;;;:7;:16;;;;;;42911:13;;-1:-1:-1;;;;;47396:16:0;42937:76;;;;-1:-1:-1;;;42937:76:0;;11815:2:1;42937:76:0;;;11797:21:1;11854:2;11834:18;;;11827:30;11893:34;11873:18;;;11866:62;-1:-1:-1;;;11944:18:1;;;11937:45;11999:19;;42937:76:0;11613:411:1;42937:76:0;43026:21;43050:10;:8;:10::i;:::-;43026:34;;43102:1;43084:7;43078:21;:25;:86;;;;;;;;;;;;;;;;;43130:7;43139:18;:7;:16;:18::i;:::-;43113:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;43078:86;43071:93;42838:334;-1:-1:-1;;;42838:334:0:o;66481:411::-;64687:8;;;;64686:9;64678:44;;;;-1:-1:-1;;;64678:44:0;;;;;;;:::i;:::-;18167:7;18194:6;-1:-1:-1;;;;;18194:6:0;16925:10;18341:23:::1;18333:68;;;;-1:-1:-1::0;;;18333:68:0::1;;;;;;;:::i;:::-;66667:9:::2;66663:1;66642:11:::0;66626:13:::2;58150:10:::0;:17;;58062:113;66626:13:::2;:34;;;;:::i;:::-;:38;;;;:::i;:::-;:50;66604:110;;;;-1:-1:-1::0;;;66604:110:0::2;;;;;;;:::i;:::-;66732:9;66727:158;66747:22:::0;;::::2;66727:158;;;66791:46;66797:11;;66809:1;66797:14;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;66791:46::-;66852:21;:9;13660:19:::0;;13678:1;13660:19;;;13571:127;66852:21:::2;66771:3:::0;::::2;::::0;::::2;:::i;:::-;;;;66727:158;;19030:201:::0;18167:7;18194:6;-1:-1:-1;;;;;18194:6:0;16925:10;18341:23;18333:68;;;;-1:-1:-1;;;18333:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;19119:22:0;::::1;19111:73;;;::::0;-1:-1:-1;;;19111:73:0;;12706:2:1;19111:73:0::1;::::0;::::1;12688:21:1::0;12745:2;12725:18;;;12718:30;12784:34;12764:18;;;12757:62;-1:-1:-1;;;12835:18:1;;;12828:36;12881:19;;19111:73:0::1;12504:402:1::0;19111:73:0::1;19195:28;19214:8;19195:18;:28::i;65708:396::-:0;64467:6;;;;;;;64459:39;;;;-1:-1:-1;;;64459:39:0;;13113:2:1;64459:39:0;;;13095:21:1;13152:2;13132:18;;;13125:30;-1:-1:-1;;;13171:18:1;;;13164:50;13231:18;;64459:39:0;12911:344:1;64459:39:0;65833:10:::1;65819:25;::::0;;;:13:::1;:25;::::0;;;;;:33:::1;65847:5;65819:33;-1:-1:-1::0;65811:58:0::1;;;::::0;-1:-1:-1;;;65811:58:0;;13462:2:1;65811:58:0::1;::::0;::::1;13444:21:1::0;13501:2;13481:18;;;13474:30;-1:-1:-1;;;13520:18:1;;;13513:42;13572:18;;65811:58:0::1;13260:336:1::0;65811:58:0::1;65906:9;65890:13;58150:10:::0;:17;;58062:113;65890:13:::1;:25;65882:48;;;;-1:-1:-1::0;;;65882:48:0::1;;;;;;;:::i;:::-;20792:7:::0;;;;65949:9:::1;65941:28;;;::::0;-1:-1:-1;;;65941:28:0;;13803:2:1;65941:28:0::1;::::0;::::1;13785:21:1::0;13842:1;13822:18;;;13815:29;-1:-1:-1;;;13860:18:1;;;13853:36;13906:18;;65941:28:0::1;13601:329:1::0;65941:28:0::1;65994:10;65980:25;::::0;;;:13:::1;:25;::::0;;;;:27;;;::::1;::::0;::::1;:::i;:::-;;;;;;66020:44;66026:12;16925:10:::0;;16845:98;66020:44:::1;66075:21;:9;13660:19:::0;;13678:1;13660:19;;;13571:127;57422:224;57524:4;-1:-1:-1;;;;;;57548:50:0;;-1:-1:-1;;;57548:50:0;;:90;;;57602:36;57626:11;57602:23;:36::i;51453:174::-;51528:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;51528:29:0;-1:-1:-1;;;;;51528:29:0;;;;;;;;:24;;51582:23;51528:24;51582:14;:23::i;:::-;-1:-1:-1;;;;;51573:46:0;;;;;;;;;;;51453:174;;:::o;47601:348::-;47694:4;47396:16;;;:7;:16;;;;;;-1:-1:-1;;;;;47396:16:0;47711:73;;;;-1:-1:-1;;;47711:73:0;;14137:2:1;47711:73:0;;;14119:21:1;14176:2;14156:18;;;14149:30;14215:34;14195:18;;;14188:62;-1:-1:-1;;;14266:18:1;;;14259:42;14318:19;;47711:73:0;13935:408:1;47711:73:0;47795:13;47811:23;47826:7;47811:14;:23::i;:::-;47795:39;;47864:5;-1:-1:-1;;;;;47853:16:0;:7;-1:-1:-1;;;;;47853:16:0;;:51;;;;47897:7;-1:-1:-1;;;;;47873:31:0;:20;47885:7;47873:11;:20::i;:::-;-1:-1:-1;;;;;47873:31:0;;47853:51;:87;;;-1:-1:-1;;;;;;44693:25:0;;;44669:4;44693:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;47908:32;47845:96;47601:348;-1:-1:-1;;;;47601:348:0:o;50710:625::-;50869:4;-1:-1:-1;;;;;50842:31:0;:23;50857:7;50842:14;:23::i;:::-;-1:-1:-1;;;;;50842:31:0;;50834:81;;;;-1:-1:-1;;;50834:81:0;;14550:2:1;50834:81:0;;;14532:21:1;14589:2;14569:18;;;14562:30;14628:34;14608:18;;;14601:62;-1:-1:-1;;;14679:18:1;;;14672:35;14724:19;;50834:81:0;14348:401:1;50834:81:0;-1:-1:-1;;;;;50934:16:0;;50926:65;;;;-1:-1:-1;;;50926:65:0;;14956:2:1;50926:65:0;;;14938:21:1;14995:2;14975:18;;;14968:30;15034:34;15014:18;;;15007:62;-1:-1:-1;;;15085:18:1;;;15078:34;15129:19;;50926:65:0;14754:400:1;50926:65:0;51004:39;51025:4;51031:2;51035:7;51004:20;:39::i;:::-;51108:29;51125:1;51129:7;51108:8;:29::i;:::-;-1:-1:-1;;;;;51150:15:0;;;;;;:9;:15;;;;;:20;;51169:1;;51150:15;:20;;51169:1;;51150:20;:::i;:::-;;;;-1:-1:-1;;;;;;;51181:13:0;;;;;;:9;:13;;;;;:18;;51198:1;;51181:13;:18;;51198:1;;51181:18;:::i;:::-;;;;-1:-1:-1;;51210:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;51210:21:0;-1:-1:-1;;;;;51210:21:0;;;;;;;;;51249:27;;51210:16;;51249:27;;;;;;;43646:341;43576:411;;:::o;21780:120::-;20792:7;;;;21316:41;;;;-1:-1:-1;;;21316:41:0;;15361:2:1;21316:41:0;;;15343:21:1;15400:2;15380:18;;;15373:30;-1:-1:-1;;;15419:18:1;;;15412:50;15479:18;;21316:41:0;15159:344:1;21316:41:0;21839:7:::1;:15:::0;;-1:-1:-1;;21839:15:0::1;::::0;;21870:22:::1;16925:10:::0;21879:12:::1;21870:22;::::0;-1:-1:-1;;;;;1692:32:1;;;1674:51;;1662:2;1647:18;21870:22:0::1;;;;;;;21780:120::o:0;49953:420::-;50013:13;50029:23;50044:7;50029:14;:23::i;:::-;50013:39;;50065:48;50086:5;50101:1;50105:7;50065:20;:48::i;:::-;50154:29;50171:1;50175:7;50154:8;:29::i;:::-;-1:-1:-1;;;;;50196:16:0;;;;;;:9;:16;;;;;:21;;50216:1;;50196:16;:21;;50216:1;;50196:21;:::i;:::-;;;;-1:-1:-1;;50235:16:0;;;;:7;:16;;;;;;50228:23;;-1:-1:-1;;;;;;50228:23:0;;;50269:36;50243:7;;50235:16;-1:-1:-1;;;;;50269:36:0;;;;;50235:16;;50269:36;65164:28:::2;65076:124:::0;:::o;49285:439::-;-1:-1:-1;;;;;49365:16:0;;49357:61;;;;-1:-1:-1;;;49357:61:0;;15710:2:1;49357:61:0;;;15692:21:1;;;15729:18;;;15722:30;15788:34;15768:18;;;15761:62;15840:18;;49357:61:0;15508:356:1;49357:61:0;47372:4;47396:16;;;:7;:16;;;;;;-1:-1:-1;;;;;47396:16:0;:30;49429:58;;;;-1:-1:-1;;;49429:58:0;;16071:2:1;49429:58:0;;;16053:21:1;16110:2;16090:18;;;16083:30;16149;16129:18;;;16122:58;16197:18;;49429:58:0;15869:352:1;49429:58:0;49500:45;49529:1;49533:2;49537:7;49500:20;:45::i;:::-;-1:-1:-1;;;;;49558:13:0;;;;;;:9;:13;;;;;:18;;49575:1;;49558:13;:18;;49575:1;;49558:18;:::i;:::-;;;;-1:-1:-1;;49587:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;49587:21:0;-1:-1:-1;;;;;49587:21:0;;;;;;;;49626:33;;49587:16;;;49626:33;;49587:16;;49626:33;65164:28:::2;65076:124:::0;:::o;19391:191::-;19465:16;19484:6;;-1:-1:-1;;;;;19501:17:0;;;-1:-1:-1;;;;;;19501:17:0;;;;;;19534:40;;19484:6;;;;;;;19534:40;;19465:16;19534:40;19454:128;19391:191;:::o;21521:118::-;20792:7;;;;21046:9;21038:38;;;;-1:-1:-1;;;21038:38:0;;16428:2:1;21038:38:0;;;16410:21:1;16467:2;16447:18;;;16440:30;-1:-1:-1;;;16486:18:1;;;16479:46;16542:18;;21038:38:0;16226:340:1;21038:38:0;21581:7:::1;:14:::0;;-1:-1:-1;;21581:14:0::1;21591:4;21581:14;::::0;;21611:20:::1;21618:12;16925:10:::0;;16845:98;51769:315;51924:8;-1:-1:-1;;;;;51915:17:0;:5;-1:-1:-1;;;;;51915:17:0;;51907:55;;;;-1:-1:-1;;;51907:55:0;;16773:2:1;51907:55:0;;;16755:21:1;16812:2;16792:18;;;16785:30;16851:27;16831:18;;;16824:55;16896:18;;51907:55:0;16571:349:1;51907:55:0;-1:-1:-1;;;;;51973:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;51973:46:0;;;;;;;;;;52035:41;;540::1;;;52035::0;;513:18:1;52035:41:0;;;;;;;51769:315;;;:::o;46679:::-;46836:28;46846:4;46852:2;46856:7;46836:9;:28::i;:::-;46883:48;46906:4;46912:2;46916:7;46925:5;46883:22;:48::i;:::-;46875:111;;;;-1:-1:-1;;;46875:111:0;;;;;;;:::i;64909:114::-;64969:13;65002;64995:20;;;;;:::i;14407:723::-;14463:13;14684:5;14693:1;14684:10;14680:53;;-1:-1:-1;;14711:10:0;;;;;;;;;;;;-1:-1:-1;;;14711:10:0;;;;;14407:723::o;14680:53::-;14758:5;14743:12;14799:78;14806:9;;14799:78;;14832:8;;;;:::i;:::-;;-1:-1:-1;14855:10:0;;-1:-1:-1;14863:2:0;14855:10;;:::i;:::-;;;14799:78;;;14887:19;14919:6;14909:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14909:17:0;;14887:39;;14937:154;14944:10;;14937:154;;14971:11;14981:1;14971:11;;:::i;:::-;;-1:-1:-1;15040:10:0;15048:2;15040:5;:10;:::i;:::-;15027:24;;:2;:24;:::i;:::-;15014:39;;14997:6;15004;14997:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;14997:56:0;;;;;;;;-1:-1:-1;15068:11:0;15077:2;15068:11;;:::i;:::-;;;14937:154;;41549:305;41651:4;-1:-1:-1;;;;;;41688:40:0;;-1:-1:-1;;;41688:40:0;;:105;;-1:-1:-1;;;;;;;41745:48:0;;-1:-1:-1;;;41745:48:0;41688:105;:158;;;-1:-1:-1;;;;;;;;;;33332:40:0;;;41810:36;33223:157;68067:231;68245:45;68272:4;68278:2;68282:7;68245:26;:45::i;52649:799::-;52804:4;-1:-1:-1;;;;;52825:13:0;;23435:19;:23;52821:620;;52861:72;;-1:-1:-1;;;52861:72:0;;-1:-1:-1;;;;;52861:36:0;;;;;:72;;16925:10;;52912:4;;52918:7;;52927:5;;52861:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52861:72:0;;;;;;;;-1:-1:-1;;52861:72:0;;;;;;;;;;;;:::i;:::-;;;52857:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53103:6;:13;53120:1;53103:18;53099:272;;53146:60;;-1:-1:-1;;;53146:60:0;;;;;;;:::i;53099:272::-;53321:6;53315:13;53306:6;53302:2;53298:15;53291:38;52857:529;-1:-1:-1;;;;;;52984:51:0;-1:-1:-1;;;52984:51:0;;-1:-1:-1;52977:58:0;;52821:620;-1:-1:-1;53425:4:0;52649:799;;;;;;:::o;55341:275::-;55485:45;55512:4;55518:2;55522:7;55485:26;:45::i;:::-;20792:7;;;;55551:9;55543:65;;;;-1:-1:-1;;;55543:65:0;;18668:2:1;55543:65:0;;;18650:21:1;18707:2;18687:18;;;18680:30;18746:34;18726:18;;;18719:62;-1:-1:-1;;;18797:18:1;;;18790:41;18848:19;;55543:65:0;18466:407:1;59098:589:0;-1:-1:-1;;;;;59304:18:0;;59300:187;;59339:40;59371:7;60514:10;:17;;60487:24;;;;:15;:24;;;;;:44;;;60542:24;;;;;;;;;;;;60410:164;59339:40;59300:187;;;59409:2;-1:-1:-1;;;;;59401:10:0;:4;-1:-1:-1;;;;;59401:10:0;;59397:90;;59428:47;59461:4;59467:7;59428:32;:47::i;:::-;-1:-1:-1;;;;;59501:16:0;;59497:183;;59534:45;59571:7;59534:36;:45::i;59497:183::-;59607:4;-1:-1:-1;;;;;59601:10:0;:2;-1:-1:-1;;;;;59601:10:0;;59597:83;;59628:40;59656:2;59660:7;59628:27;:40::i;61201:988::-;61467:22;61517:1;61492:22;61509:4;61492:16;:22::i;:::-;:26;;;;:::i;:::-;61529:18;61550:26;;;:17;:26;;;;;;61467:51;;-1:-1:-1;61683:28:0;;;61679:328;;-1:-1:-1;;;;;61750:18:0;;61728:19;61750:18;;;:12;:18;;;;;;;;:34;;;;;;;;;61801:30;;;;;;:44;;;61918:30;;:17;:30;;;;;:43;;;61679:328;-1:-1:-1;62103:26:0;;;;:17;:26;;;;;;;;62096:33;;;-1:-1:-1;;;;;62147:18:0;;;;;:12;:18;;;;;:34;;;;;;;62140:41;61201:988::o;62484:1079::-;62762:10;:17;62737:22;;62762:21;;62782:1;;62762:21;:::i;:::-;62794:18;62815:24;;;:15;:24;;;;;;63188:10;:26;;62737:46;;-1:-1:-1;62815:24:0;;62737:46;;63188:26;;;;;;:::i;:::-;;;;;;;;;63166:48;;63252:11;63227:10;63238;63227:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;63332:28;;;:15;:28;;;;;;;:41;;;63504:24;;;;;63497:31;63539:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;62555:1008;;;62484:1079;:::o;59988:221::-;60073:14;60090:20;60107:2;60090:16;:20::i;:::-;-1:-1:-1;;;;;60121:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;60166:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;59988:221:0:o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:131:1;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:258::-;664:1;674:113;688:6;685:1;682:13;674:113;;;764:11;;;758:18;745:11;;;738:39;710:2;703:10;674:113;;;805:6;802:1;799:13;796:48;;;-1:-1:-1;;840:1:1;822:16;;815:27;592:258::o;855:::-;897:3;935:5;929:12;962:6;957:3;950:19;978:63;1034:6;1027:4;1022:3;1018:14;1011:4;1004:5;1000:16;978:63;:::i;:::-;1095:2;1074:15;-1:-1:-1;;1070:29:1;1061:39;;;;1102:4;1057:50;;855:258;-1:-1:-1;;855:258:1:o;1118:220::-;1267:2;1256:9;1249:21;1230:4;1287:45;1328:2;1317:9;1313:18;1305:6;1287:45;:::i;1343:180::-;1402:6;1455:2;1443:9;1434:7;1430:23;1426:32;1423:52;;;1471:1;1468;1461:12;1423:52;-1:-1:-1;1494:23:1;;1343:180;-1:-1:-1;1343:180:1:o;1736:173::-;1804:20;;-1:-1:-1;;;;;1853:31:1;;1843:42;;1833:70;;1899:1;1896;1889:12;1833:70;1736:173;;;:::o;1914:254::-;1982:6;1990;2043:2;2031:9;2022:7;2018:23;2014:32;2011:52;;;2059:1;2056;2049:12;2011:52;2082:29;2101:9;2082:29;:::i;:::-;2072:39;2158:2;2143:18;;;;2130:32;;-1:-1:-1;;;1914:254:1:o;2355:328::-;2432:6;2440;2448;2501:2;2489:9;2480:7;2476:23;2472:32;2469:52;;;2517:1;2514;2507:12;2469:52;2540:29;2559:9;2540:29;:::i;:::-;2530:39;;2588:38;2622:2;2611:9;2607:18;2588:38;:::i;:::-;2578:48;;2673:2;2662:9;2658:18;2645:32;2635:42;;2355:328;;;;;:::o;2688:186::-;2747:6;2800:2;2788:9;2779:7;2775:23;2771:32;2768:52;;;2816:1;2813;2806:12;2768:52;2839:29;2858:9;2839:29;:::i;2879:127::-;2940:10;2935:3;2931:20;2928:1;2921:31;2971:4;2968:1;2961:15;2995:4;2992:1;2985:15;3011:632;3076:5;3106:18;3147:2;3139:6;3136:14;3133:40;;;3153:18;;:::i;:::-;3228:2;3222:9;3196:2;3282:15;;-1:-1:-1;;3278:24:1;;;3304:2;3274:33;3270:42;3258:55;;;3328:18;;;3348:22;;;3325:46;3322:72;;;3374:18;;:::i;:::-;3414:10;3410:2;3403:22;3443:6;3434:15;;3473:6;3465;3458:22;3513:3;3504:6;3499:3;3495:16;3492:25;3489:45;;;3530:1;3527;3520:12;3489:45;3580:6;3575:3;3568:4;3560:6;3556:17;3543:44;3635:1;3628:4;3619:6;3611;3607:19;3603:30;3596:41;;;;3011:632;;;;;:::o;3648:451::-;3717:6;3770:2;3758:9;3749:7;3745:23;3741:32;3738:52;;;3786:1;3783;3776:12;3738:52;3826:9;3813:23;3859:18;3851:6;3848:30;3845:50;;;3891:1;3888;3881:12;3845:50;3914:22;;3967:4;3959:13;;3955:27;-1:-1:-1;3945:55:1;;3996:1;3993;3986:12;3945:55;4019:74;4085:7;4080:2;4067:16;4062:2;4058;4054:11;4019:74;:::i;4104:347::-;4169:6;4177;4230:2;4218:9;4209:7;4205:23;4201:32;4198:52;;;4246:1;4243;4236:12;4198:52;4269:29;4288:9;4269:29;:::i;:::-;4259:39;;4348:2;4337:9;4333:18;4320:32;4395:5;4388:13;4381:21;4374:5;4371:32;4361:60;;4417:1;4414;4407:12;4361:60;4440:5;4430:15;;;4104:347;;;;;:::o;4456:667::-;4551:6;4559;4567;4575;4628:3;4616:9;4607:7;4603:23;4599:33;4596:53;;;4645:1;4642;4635:12;4596:53;4668:29;4687:9;4668:29;:::i;:::-;4658:39;;4716:38;4750:2;4739:9;4735:18;4716:38;:::i;:::-;4706:48;;4801:2;4790:9;4786:18;4773:32;4763:42;;4856:2;4845:9;4841:18;4828:32;4883:18;4875:6;4872:30;4869:50;;;4915:1;4912;4905:12;4869:50;4938:22;;4991:4;4983:13;;4979:27;-1:-1:-1;4969:55:1;;5020:1;5017;5010:12;4969:55;5043:74;5109:7;5104:2;5091:16;5086:2;5082;5078:11;5043:74;:::i;:::-;5033:84;;;4456:667;;;;;;;:::o;5321:615::-;5407:6;5415;5468:2;5456:9;5447:7;5443:23;5439:32;5436:52;;;5484:1;5481;5474:12;5436:52;5524:9;5511:23;5553:18;5594:2;5586:6;5583:14;5580:34;;;5610:1;5607;5600:12;5580:34;5648:6;5637:9;5633:22;5623:32;;5693:7;5686:4;5682:2;5678:13;5674:27;5664:55;;5715:1;5712;5705:12;5664:55;5755:2;5742:16;5781:2;5773:6;5770:14;5767:34;;;5797:1;5794;5787:12;5767:34;5850:7;5845:2;5835:6;5832:1;5828:14;5824:2;5820:23;5816:32;5813:45;5810:65;;;5871:1;5868;5861:12;5810:65;5902:2;5894:11;;;;;5924:6;;-1:-1:-1;5321:615:1;;-1:-1:-1;;;;5321:615:1:o;5941:260::-;6009:6;6017;6070:2;6058:9;6049:7;6045:23;6041:32;6038:52;;;6086:1;6083;6076:12;6038:52;6109:29;6128:9;6109:29;:::i;:::-;6099:39;;6157:38;6191:2;6180:9;6176:18;6157:38;:::i;:::-;6147:48;;5941:260;;;;;:::o;6206:380::-;6285:1;6281:12;;;;6328;;;6349:61;;6403:4;6395:6;6391:17;6381:27;;6349:61;6456:2;6448:6;6445:14;6425:18;6422:38;6419:161;;6502:10;6497:3;6493:20;6490:1;6483:31;6537:4;6534:1;6527:15;6565:4;6562:1;6555:15;6419:161;;6206:380;;;:::o;7831:413::-;8033:2;8015:21;;;8072:2;8052:18;;;8045:30;8111:34;8106:2;8091:18;;8084:62;-1:-1:-1;;;8177:2:1;8162:18;;8155:47;8234:3;8219:19;;7831:413::o;8661:356::-;8863:2;8845:21;;;8882:18;;;8875:30;8941:34;8936:2;8921:18;;8914:62;9008:2;8993:18;;8661:356::o;9435:127::-;9496:10;9491:3;9487:20;9484:1;9477:31;9527:4;9524:1;9517:15;9551:4;9548:1;9541:15;9567:346;9769:2;9751:21;;;9808:2;9788:18;;;9781:30;-1:-1:-1;;;9842:2:1;9827:18;;9820:52;9904:2;9889:18;;9567:346::o;9918:127::-;9979:10;9974:3;9970:20;9967:1;9960:31;10010:4;10007:1;10000:15;10034:4;10031:1;10024:15;10050:128;10090:3;10121:1;10117:6;10114:1;10111:13;10108:39;;;10127:18;;:::i;:::-;-1:-1:-1;10163:9:1;;10050:128::o;10183:125::-;10223:4;10251:1;10248;10245:8;10242:34;;;10256:18;;:::i;:::-;-1:-1:-1;10293:9:1;;10183:125::o;10313:334::-;10515:2;10497:21;;;10554:2;10534:18;;;10527:30;-1:-1:-1;;;10588:2:1;10573:18;;10566:40;10638:2;10623:18;;10313:334::o;10652:135::-;10691:3;10712:17;;;10709:43;;10732:18;;:::i;:::-;-1:-1:-1;10779:1:1;10768:13;;10652:135::o;12029:470::-;12208:3;12246:6;12240:13;12262:53;12308:6;12303:3;12296:4;12288:6;12284:17;12262:53;:::i;:::-;12378:13;;12337:16;;;;12400:57;12378:13;12337:16;12434:4;12422:17;;12400:57;:::i;:::-;12473:20;;12029:470;-1:-1:-1;;;;12029:470:1:o;16925:414::-;17127:2;17109:21;;;17166:2;17146:18;;;17139:30;17205:34;17200:2;17185:18;;17178:62;-1:-1:-1;;;17271:2:1;17256:18;;17249:48;17329:3;17314:19;;16925:414::o;17344:127::-;17405:10;17400:3;17396:20;17393:1;17386:31;17436:4;17433:1;17426:15;17460:4;17457:1;17450:15;17476:120;17516:1;17542;17532:35;;17547:18;;:::i;:::-;-1:-1:-1;17581:9:1;;17476:120::o;17601:112::-;17633:1;17659;17649:35;;17664:18;;:::i;:::-;-1:-1:-1;17698:9:1;;17601:112::o;17718:489::-;-1:-1:-1;;;;;17987:15:1;;;17969:34;;18039:15;;18034:2;18019:18;;18012:43;18086:2;18071:18;;18064:34;;;18134:3;18129:2;18114:18;;18107:31;;;17912:4;;18155:46;;18181:19;;18173:6;18155:46;:::i;:::-;18147:54;17718:489;-1:-1:-1;;;;;;17718:489:1:o;18212:249::-;18281:6;18334:2;18322:9;18313:7;18309:23;18305:32;18302:52;;;18350:1;18347;18340:12;18302:52;18382:9;18376:16;18401:30;18425:5;18401:30;:::i;18878:127::-;18939:10;18934:3;18930:20;18927:1;18920:31;18970:4;18967:1;18960:15;18994:4;18991:1;18984:15
Swarm Source
ipfs://f9877ee1ca9e30234662de412fd03c983ed801b1ffce799449f1a5d36babf364
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.