NFT
Overview
TokenID
689
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
NFTBoxesBox
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-05-13 */ // SPDX-License-Identifier: NONE pragma solidity 0.6.12; pragma experimental ABIEncoderV2; // Part: IVendingMachine interface IVendingMachine { function NFTMachineFor(uint256 NFTId, address _recipient) external; } // Part: OpenZeppelin/[email protected]/Address /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // Part: OpenZeppelin/[email protected]/Context /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // Part: OpenZeppelin/[email protected]/EnumerableMap /** * @dev Library for managing an enumerable variant of Solidity's * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`] * type. * * Maps have the following properties: * * - Entries are added, removed, and checked for existence in constant time * (O(1)). * - Entries are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableMap for EnumerableMap.UintToAddressMap; * * // Declare a set state variable * EnumerableMap.UintToAddressMap private myMap; * } * ``` * * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are * supported. */ library EnumerableMap { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Map type with // bytes32 keys and values. // The Map implementation uses private functions, and user-facing // implementations (such as Uint256ToAddressMap) are just wrappers around // the underlying Map. // This means that we can only create new EnumerableMaps for types that fit // in bytes32. struct MapEntry { bytes32 _key; bytes32 _value; } struct Map { // Storage of map keys and values MapEntry[] _entries; // Position of the entry defined by a key in the `entries` array, plus 1 // because index 0 means a key is not in the map. mapping (bytes32 => uint256) _indexes; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) { // We read and store the key's index to prevent multiple reads from the same storage slot uint256 keyIndex = map._indexes[key]; if (keyIndex == 0) { // Equivalent to !contains(map, key) map._entries.push(MapEntry({ _key: key, _value: value })); // The entry is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value map._indexes[key] = map._entries.length; return true; } else { map._entries[keyIndex - 1]._value = value; return false; } } /** * @dev Removes a key-value pair from a map. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function _remove(Map storage map, bytes32 key) private returns (bool) { // We read and store the key's index to prevent multiple reads from the same storage slot uint256 keyIndex = map._indexes[key]; if (keyIndex != 0) { // Equivalent to contains(map, key) // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one // in the array, and then remove the last entry (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = keyIndex - 1; uint256 lastIndex = map._entries.length - 1; // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. MapEntry storage lastEntry = map._entries[lastIndex]; // Move the last entry to the index where the entry to delete is map._entries[toDeleteIndex] = lastEntry; // Update the index for the moved entry map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved entry was stored map._entries.pop(); // Delete the index for the deleted slot delete map._indexes[key]; return true; } else { return false; } } /** * @dev Returns true if the key is in the map. O(1). */ function _contains(Map storage map, bytes32 key) private view returns (bool) { return map._indexes[key] != 0; } /** * @dev Returns the number of key-value pairs in the map. O(1). */ function _length(Map storage map) private view returns (uint256) { return map._entries.length; } /** * @dev Returns the key-value pair stored at position `index` in the map. O(1). * * Note that there are no guarantees on the ordering of entries inside the * array, and it may change when more entries are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) { require(map._entries.length > index, "EnumerableMap: index out of bounds"); MapEntry storage entry = map._entries[index]; return (entry._key, entry._value); } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function _get(Map storage map, bytes32 key) private view returns (bytes32) { return _get(map, key, "EnumerableMap: nonexistent key"); } /** * @dev Same as {_get}, with a custom error message when `key` is not in the map. */ function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) { uint256 keyIndex = map._indexes[key]; require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key) return map._entries[keyIndex - 1]._value; // All indexes are 1-based } // UintToAddressMap struct UintToAddressMap { Map _inner; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) { return _set(map._inner, bytes32(key), bytes32(uint256(value))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) { return _remove(map._inner, bytes32(key)); } /** * @dev Returns true if the key is in the map. O(1). */ function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) { return _contains(map._inner, bytes32(key)); } /** * @dev Returns the number of elements in the map. O(1). */ function length(UintToAddressMap storage map) internal view returns (uint256) { return _length(map._inner); } /** * @dev Returns the element stored at position `index` in the set. O(1). * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) { (bytes32 key, bytes32 value) = _at(map._inner, index); return (uint256(key), address(uint256(value))); } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function get(UintToAddressMap storage map, uint256 key) internal view returns (address) { return address(uint256(_get(map._inner, bytes32(key)))); } /** * @dev Same as {get}, with a custom error message when `key` is not in the map. */ function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) { return address(uint256(_get(map._inner, bytes32(key), errorMessage))); } } // Part: OpenZeppelin/[email protected]/EnumerableSet /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256` * (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(value))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(value))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(value))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint256(_at(set._inner, index))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } } // Part: OpenZeppelin/[email protected]/IERC165 /** * @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); } // Part: OpenZeppelin/[email protected]/IERC721Receiver /** * @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); } // Part: OpenZeppelin/[email protected]/SafeMath /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // Part: OpenZeppelin/[email protected]/Strings /** * @dev String operations. */ library Strings { /** * @dev Converts a `uint256` to its ASCII `string` representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); uint256 index = digits - 1; temp = value; while (temp != 0) { buffer[index--] = byte(uint8(48 + temp % 10)); temp /= 10; } return string(buffer); } } // Part: OpenZeppelin/[email protected]/ERC165 /** * @dev Implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ contract ERC165 is IERC165 { /* * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7 */ bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; constructor () internal { // Derived contracts need only register support for their own interfaces, // we register support for ERC165 itself here _registerInterface(_INTERFACE_ID_ERC165); } /** * @dev See {IERC165-supportsInterface}. * * Time complexity O(1), guaranteed to always use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) public view override returns (bool) { return _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal virtual { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } } // Part: OpenZeppelin/[email protected]/IERC1155 /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom(address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external; } // Part: OpenZeppelin/[email protected]/IERC721 /** * @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; } // Part: OpenZeppelin/[email protected]/Ownable /** * @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. */ 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 () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // Part: HasSecondaryBoxSaleFees contract HasSecondaryBoxSaleFees is ERC165 { address payable teamAddress; uint256 teamSecondaryBps; /* * bytes4(keccak256('getFeeBps(uint256)')) == 0x0ebd4c7f * bytes4(keccak256('getFeeRecipients(uint256)')) == 0xb9c4d9fb * * => 0x0ebd4c7f ^ 0xb9c4d9fb == 0xb7799584 */ bytes4 private constant _INTERFACE_ID_FEES = 0xb7799584; constructor() public { _registerInterface(_INTERFACE_ID_FEES); } function getFeeRecipients(uint256 id) public view returns (address payable[] memory){ address payable[] memory addressArray = new address payable[](1); addressArray[0] = teamAddress; return addressArray; } function getFeeBps(uint256 id) public view returns (uint[] memory){ uint[] memory bpsArray = new uint[](1); bpsArray[0] = teamSecondaryBps; return bpsArray; } } // Part: IBoxVoucher interface IBoxVoucher is IERC1155 { function mintFor(address _to, uint256 _id, uint256 _amount) external; function burnFrom(address _from, uint256 _id, uint256 _amount) external; function totalSupply(uint256 _id) external view returns(uint256); } // Part: OpenZeppelin/[email protected]/IERC721Enumerable /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // Part: OpenZeppelin/[email protected]/IERC721Metadata /** * @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); } // Part: OpenZeppelin/[email protected]/ERC721 /** * @title ERC721 Non-Fungible Token Standard basic implementation * @dev see https://eips.ethereum.org/EIPS/eip-721 */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector` bytes4 private constant _ERC721_RECEIVED = 0x150b7a02; // Mapping from holder address to their (enumerable) set of owned tokens mapping (address => EnumerableSet.UintSet) private _holderTokens; // Enumerable mapping from token ids to their owners EnumerableMap.UintToAddressMap private _tokenOwners; // Mapping from token ID to approved address mapping (uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) private _operatorApprovals; // Token name string private _name; // Token symbol string private _symbol; // Optional mapping for token URIs mapping (uint256 => string) private _tokenURIs; // Base URI string private _baseURI; /* * bytes4(keccak256('balanceOf(address)')) == 0x70a08231 * bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e * bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3 * bytes4(keccak256('getApproved(uint256)')) == 0x081812fc * bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465 * bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5 * bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd * bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e * bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde * * => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^ * 0xa22cb465 ^ 0xe985e9c5 ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd */ bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd; /* * bytes4(keccak256('name()')) == 0x06fdde03 * bytes4(keccak256('symbol()')) == 0x95d89b41 * bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd * * => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f */ bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f; /* * bytes4(keccak256('totalSupply()')) == 0x18160ddd * bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59 * bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7 * * => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63 */ bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor (string memory name, string memory symbol) public { _name = name; _symbol = symbol; // register the supported interfaces to conform to ERC721 via ERC165 _registerInterface(_INTERFACE_ID_ERC721); _registerInterface(_INTERFACE_ID_ERC721_METADATA); _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _holderTokens[owner].length(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token"); } /** * @dev See {IERC721Metadata-name}. */ function name() public view override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; // If there is no base URI, return the token URI. if (bytes(_baseURI).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(_baseURI, _tokenURI)); } // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI. return string(abi.encodePacked(_baseURI, tokenId.toString())); } /** * @dev Returns the base URI set via {_setBaseURI}. This will be * automatically added as a prefix in {tokenURI} to each token's URI, or * to the token ID if no specific URI is set for that token ID. */ function baseURI() public view returns (string memory) { return _baseURI; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { return _holderTokens[owner].at(index); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds return _tokenOwners.length(); } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { (uint256 tokenId, ) = _tokenOwners.at(index); return tokenId; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view returns (bool) { return _tokenOwners.contains(tokenId); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: d* * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual { _mint(to, tokenId); require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _holderTokens[to].add(tokenId); _tokenOwners.set(tokenId, to); emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); // Clear metadata (if any) if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } _holderTokens[owner].remove(tokenId); _tokenOwners.remove(tokenId); emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _holderTokens[from].remove(tokenId); _holderTokens[to].add(tokenId); _tokenOwners.set(tokenId, to); emit Transfer(from, to, tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev Internal function to set the base URI for all token IDs. It is * automatically added as a prefix to the value returned in {tokenURI}, * or to the token ID if {tokenURI} is empty. */ function _setBaseURI(string memory baseURI_) internal virtual { _baseURI = baseURI_; } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data) private returns (bool) { if (!to.isContract()) { return true; } bytes memory returndata = to.functionCall(abi.encodeWithSelector( IERC721Receiver(to).onERC721Received.selector, _msgSender(), from, tokenId, _data ), "ERC721: transfer to non ERC721Receiver implementer"); bytes4 retval = abi.decode(returndata, (bytes4)); return (retval == _ERC721_RECEIVED); } function _approve(address to, uint256 tokenId) private { _tokenApprovals[tokenId] = to; emit Approval(ownerOf(tokenId), to, tokenId); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { } } // File: NFTBoxes.sol contract NFTBoxesBox is ERC721("NFTBox", "[BOX]"), Ownable, HasSecondaryBoxSaleFees { struct BoxMould{ uint8 live; // bool uint8 shared; // bool uint128 maxEdition; uint128 maxBuyAmount; uint128 currentEditionCount; uint256 price; address payable[] artists; uint256[] shares; string name; string series; string theme; string ipfsHash; string arweaveHash; } struct Box { uint256 mouldId; uint256 edition; } IVendingMachine public vendingMachine; IBoxVoucher public boxVoucher; uint256 public boxMouldCount; uint256 public gasFee; uint256 constant public TOTAL_SHARES = 1000; uint256 constant DELIMITOR = 100000; mapping(uint256 => BoxMould) public boxMoulds; mapping(uint256 => Box) public boxes; mapping(uint256 => bool) public lockedBoxes; mapping(uint256 => uint256) public voucherValidityInterval; mapping(uint256 => address[]) public reservations; mapping(uint256 => mapping(address => uint256)) boxBoughtMapping; mapping(address => uint256) public teamShare; address payable[] public team; uint256 gasMoney; mapping(address => bool) public authorisedCaller; event BoxMouldCreated(uint256 id); event BoxBought(uint256 indexed boxMould, uint256 boxEdition, uint256 tokenId); event BatchDeployed(uint256 indexed boxMould, uint256 batchSize); constructor() public { _setBaseURI("https://nftboxesbox.azurewebsites.net/api/HttpTrigger?id="); gasFee = 1050; boxMouldCount = 4; team.push(payable(0x3428B1746Dfd26C7C725913D829BE2706AA89B2e)); team.push(payable(0x63a9dbCe75413036B2B778E670aaBd4493aAF9F3)); team.push(payable(0x4C7BEdfA26C744e6bd61CBdF86F3fc4a76DCa073)); team.push(payable(0xf521Bb7437bEc77b0B15286dC3f49A87b9946773)); team.push(payable(0x3945476E477De76d53b4833a46c806Ef3D72b21E)); team.push(payable(0xd084c5fF298E951E0e4CD29dD29684d5a54C0d8e)); teamShare[address(0x3428B1746Dfd26C7C725913D829BE2706AA89B2e)] = 600; teamShare[address(0x63a9dbCe75413036B2B778E670aaBd4493aAF9F3)] = 10; teamShare[address(0x4C7BEdfA26C744e6bd61CBdF86F3fc4a76DCa073)] = 30; teamShare[address(0xf521Bb7437bEc77b0B15286dC3f49A87b9946773)] = 60; teamShare[address(0x3945476E477De76d53b4833a46c806Ef3D72b21E)] = 10; teamShare[address(0xd084c5fF298E951E0e4CD29dD29684d5a54C0d8e)] = 20; authorisedCaller[0x63a9dbCe75413036B2B778E670aaBd4493aAF9F3] = true; vendingMachine = IVendingMachine(0x6d4530149e5B4483d2F7E60449C02570531A0751); } function updateURI(string memory newURI) public onlyOwner { _setBaseURI(newURI); } modifier authorised() { require(authorisedCaller[msg.sender] || msg.sender == owner(), "Not authorised to execute."); _; } function setCaller(address _caller, bool _value) external onlyOwner { authorisedCaller[_caller] = _value; } function addTeamMember(address payable _member) external onlyOwner { for (uint256 i = 0; i < team.length; i++) require( _member != team[i], "members exists already"); team.push(_member); } function removeTeamMember(address payable _member) external onlyOwner { for (uint256 i = 0; i < team.length; i++) if (team[i] == _member) { delete teamShare[_member]; team[i] = team[team.length - 1]; team.pop(); } } function setTeamShare(address _member, uint _share) external onlyOwner { require(_share <= TOTAL_SHARES, "share must be below 1000"); for (uint256 i = 0; i < team.length; i++) if (team[i] == _member) teamShare[_member] = _share; } function setLockOnBox(uint256 _id, bool _lock) external authorised { require(_id <= boxMouldCount && _id > 0, "ID !exist."); lockedBoxes[_id] = _lock; } function createBoxMould( uint128 _max, uint128 _maxBuyAmount, uint128 _reserve, uint256 _price, address payable[] memory _artists, uint256[] memory _shares, string memory _name, string memory _series, string memory _theme, string memory _ipfsHash, string memory _arweaveHash) external onlyOwner { require(_artists.length == _shares.length, "arrays !same len"); require(_reserve <= _max, "!mint"); boxMoulds[boxMouldCount + 1] = BoxMould({ live: uint8(0), shared: uint8(0), maxEdition: _max, maxBuyAmount: _maxBuyAmount, currentEditionCount: 0, price: _price, artists: _artists, shares: _shares, name: _name, series: _series, theme: _theme, ipfsHash: _ipfsHash, arweaveHash: _arweaveHash }); boxMouldCount++; lockedBoxes[boxMouldCount] = true; boxVoucher.mintFor(msg.sender, boxMouldCount, _reserve); emit BoxMouldCreated(boxMouldCount); } function removeArtist(uint256 _id, address payable _artist) external onlyOwner { BoxMould storage boxMould = boxMoulds[_id]; require(_id <= boxMouldCount && _id > 0, "ID !exist"); for (uint256 i = 0; i < boxMould.artists.length; i++) { if (boxMould.artists[i] == _artist) { boxMould.artists[i] = boxMould.artists[boxMould.artists.length - 1]; boxMould.artists.pop(); boxMould.shares[i] = boxMould.shares[boxMould.shares.length - 1]; boxMould.shares.pop(); } } } function addArtists(uint256 _id, address payable _artist, uint256 _share) external onlyOwner { BoxMould storage boxMould = boxMoulds[_id]; require(_id <= boxMouldCount && _id > 0, "ID !exist"); boxMould.artists.push(_artist); boxMould.shares.push(_share); } // dont even need this tbh? // function getArtistRoyalties(uint256 _id) external view returns (address payable[] memory artists, uint256[] memory royalties) { // require(_id <= boxMouldCount && _id > 0, "ID !exist."); // BoxMould memory boxMould = boxMoulds[_id]; // artists = boxMould.artists; // royalties = boxMould.shares; // } function buyManyBoxes(uint256 _id, uint128 _quantity) external payable { BoxMould storage boxMould = boxMoulds[_id]; uint128 currentEdition = boxMould.currentEditionCount; uint128 max = boxMould.maxEdition; require(_id <= boxMouldCount && _id > 0, "ID !exist"); require(boxMould.live == 0, "!live"); require(!lockedBoxes[_id], "locked"); require(voucherValidityInterval[_id] != 0 && block.timestamp > voucherValidityInterval[_id], "Buy window !open"); require(boxMould.price.mul(_quantity) == msg.value, "!price"); require(currentEdition + _quantity <= max, "Too many boxes"); require(boxBoughtMapping[_id][msg.sender].add(_quantity) <= boxMould.maxBuyAmount, "!buy"); for (uint128 i = 0; i < _quantity; i++) _buy(currentEdition, _id, i, msg.sender); boxMould.currentEditionCount += _quantity; boxBoughtMapping[_id][msg.sender] = boxBoughtMapping[_id][msg.sender].add(_quantity); if (currentEdition + _quantity == max) boxMould.live = uint8(1); } function buyBoxesWithVouchers(uint256 _id, uint128 _quantity) external payable { BoxMould storage boxMould = boxMoulds[_id]; uint128 currentEdition = boxMould.currentEditionCount; uint128 max = boxMould.maxEdition; require(_id <= boxMouldCount && _id > 0, "ID !exist"); require(!lockedBoxes[_id], "locked"); require(boxMould.price.mul(_quantity) == msg.value, "!price"); require(boxMould.live == 0, "!live"); boxVoucher.burnFrom(msg.sender, _id, _quantity); boxVoucher.mintFor(msg.sender, _id + DELIMITOR, _quantity); for (uint128 i = 0; i < _quantity; i++) _buy(currentEdition, _id, i, msg.sender); boxMould.currentEditionCount += _quantity; if (currentEdition + _quantity == max) boxMould.live = uint8(1); } function reserveBoxes(uint256 _id, uint256 _quantity) external payable { BoxMould memory boxMould = boxMoulds[_id]; require(_id <= boxMouldCount && _id > 0, "ID !exist"); require(voucherValidityInterval[_id] == 0, "Cannot reserve"); require(boxMould.price.mul(_quantity).mul(gasFee).div(TOTAL_SHARES) == msg.value, "!price"); boxVoucher.burnFrom(msg.sender, _id, _quantity); boxVoucher.mintFor(msg.sender, _id + DELIMITOR, _quantity); for (uint256 i = 0; i < _quantity; i++) reservations[_id].push(msg.sender); gasMoney = gasMoney.add(msg.value.sub(boxMould.price.mul(_quantity))); } function withdrawGasMoney() external onlyOwner { msg.sender.transfer(gasMoney); gasMoney = 0; } function distributeReservedBoxes(uint256 _id, uint256 _amount) external authorised { require(_id <= boxMouldCount && _id > 0, "ID !exist"); require(!lockedBoxes[_id], "Box locked"); require(voucherValidityInterval[_id] == 0, "Box distro over"); BoxMould storage boxMould = boxMoulds[_id]; uint128 currentEdition = boxMould.currentEditionCount; uint256 length = reservations[_id].length; uint256 i = 0; while (length > 0 && _amount > 0) { _buy(currentEdition, _id, i, reservations[_id][length - 1]); reservations[_id].pop(); length--; _amount--; i++; } boxMould.currentEditionCount += uint128(i); if (currentEdition + i == boxMould.maxEdition) boxMould.live = uint8(1); if (length == 0) voucherValidityInterval[_id] = block.timestamp + 900; } function _buy(uint128 _currentEdition, uint256 _id, uint256 _new, address _recipient) internal { boxes[totalSupply() + 1] = Box(_id, _currentEdition + _new + 1); //safe mint? emit BoxBought(_id, _currentEdition + _new + 1, totalSupply() + 1); _mint(_recipient, totalSupply() + 1); } // close a sale if not sold out function closeBox(uint256 _id) external authorised { BoxMould storage boxMould = boxMoulds[_id]; require(_id <= boxMouldCount && _id > 0, "ID !exist."); boxMould.live = uint8(1); } function setVendingMachine(address _machine) external onlyOwner { vendingMachine = IVendingMachine(_machine); } function setBoxVoucher(address _vouchers) external onlyOwner { boxVoucher = IBoxVoucher(_vouchers); } function setGasFee(uint256 _fee) external onlyOwner { gasFee = _fee; } function distributeOffchain(uint256 _id, address[][] calldata _recipients, uint256[] calldata _ids) external authorised { BoxMould memory boxMould= boxMoulds[_id]; require(boxMould.live == 1, "live"); require (_recipients[0].length == _ids.length, "bad array"); // i is batch number for (uint256 i = 0; i < _recipients.length; i++) { // j is for the index of nft ID to send for (uint256 j = 0;j < _recipients[0].length; j++) vendingMachine.NFTMachineFor(_ids[j], _recipients[i][j]); } emit BatchDeployed(_id, _recipients.length); } function distributeShares(uint256 _id) external { BoxMould storage boxMould= boxMoulds[_id]; require(_id <= boxMouldCount && _id > 0, "ID !exist."); require(boxMould.live == 1 && boxMould.shared == 0, "!distribute"); require(is100(_id), "sum != 100%."); boxMould.shared = 1; uint256 rev = uint256(boxMould.currentEditionCount).mul(boxMould.price); uint256 share; for (uint256 i = 0; i < team.length; i++) { share = rev.mul(teamShare[team[i]]).div(TOTAL_SHARES); team[i].transfer(share); } for (uint256 i = 0; i < boxMould.artists.length; i++) { share = rev.mul(boxMould.shares[i]).div(TOTAL_SHARES); boxMould.artists[i].transfer(share); } } function is100(uint256 _id) internal returns(bool) { BoxMould storage boxMould= boxMoulds[_id]; uint256 total; for (uint256 i = 0; i < team.length; i++) { total = total.add(teamShare[team[i]]); } for (uint256 i = 0; i < boxMould.shares.length; i++) { total = total.add(boxMould.shares[i]); } return total == TOTAL_SHARES; } function getReservationCount(uint256 _id) external view returns(uint256) { return reservations[_id].length; } function getArtist(uint256 _id) external view returns (address payable[] memory) { return boxMoulds[_id].artists; } function getArtistShares(uint256 _id) external view returns (uint256[] memory) { return boxMoulds[_id].shares; } function updateTeamAddress(address payable newTeamAddress) public onlyOwner { teamAddress = newTeamAddress; } function updateSecondaryFee(uint256 newSecondaryBps) public onlyOwner { teamSecondaryBps = newSecondaryBps; } function getBoxMetaData(uint256 _id) external view returns (uint256 boxId, uint256 boxEdition, uint128 boxMax, string memory boxName, string memory boxSeries, string memory boxTheme, string memory boxHashIPFS, string memory boxHashArweave) { Box memory box = boxes[_id]; BoxMould memory mould = boxMoulds[box.mouldId]; return (box.mouldId, box.edition, mould.maxEdition, mould.name, mould.series, mould.theme, mould.ipfsHash, mould.arweaveHash); } function _transfer(address from, address to, uint256 tokenId) internal override { Box memory box = boxes[tokenId]; require(!lockedBoxes[box.mouldId], "Box is locked"); super._transfer(from, to, tokenId); } }
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":"uint256","name":"boxMould","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"batchSize","type":"uint256"}],"name":"BatchDeployed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"boxMould","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"boxEdition","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"BoxBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"BoxMouldCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"TOTAL_SHARES","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address payable","name":"_artist","type":"address"},{"internalType":"uint256","name":"_share","type":"uint256"}],"name":"addArtists","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_member","type":"address"}],"name":"addTeamMember","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"authorisedCaller","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boxMouldCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"boxMoulds","outputs":[{"internalType":"uint8","name":"live","type":"uint8"},{"internalType":"uint8","name":"shared","type":"uint8"},{"internalType":"uint128","name":"maxEdition","type":"uint128"},{"internalType":"uint128","name":"maxBuyAmount","type":"uint128"},{"internalType":"uint128","name":"currentEditionCount","type":"uint128"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"series","type":"string"},{"internalType":"string","name":"theme","type":"string"},{"internalType":"string","name":"ipfsHash","type":"string"},{"internalType":"string","name":"arweaveHash","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boxVoucher","outputs":[{"internalType":"contract IBoxVoucher","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"boxes","outputs":[{"internalType":"uint256","name":"mouldId","type":"uint256"},{"internalType":"uint256","name":"edition","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint128","name":"_quantity","type":"uint128"}],"name":"buyBoxesWithVouchers","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint128","name":"_quantity","type":"uint128"}],"name":"buyManyBoxes","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"closeBox","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"_max","type":"uint128"},{"internalType":"uint128","name":"_maxBuyAmount","type":"uint128"},{"internalType":"uint128","name":"_reserve","type":"uint128"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"address payable[]","name":"_artists","type":"address[]"},{"internalType":"uint256[]","name":"_shares","type":"uint256[]"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_series","type":"string"},{"internalType":"string","name":"_theme","type":"string"},{"internalType":"string","name":"_ipfsHash","type":"string"},{"internalType":"string","name":"_arweaveHash","type":"string"}],"name":"createBoxMould","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address[][]","name":"_recipients","type":"address[][]"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"distributeOffchain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"distributeReservedBoxes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"distributeShares","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gasFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getArtist","outputs":[{"internalType":"address payable[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getArtistShares","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getBoxMetaData","outputs":[{"internalType":"uint256","name":"boxId","type":"uint256"},{"internalType":"uint256","name":"boxEdition","type":"uint256"},{"internalType":"uint128","name":"boxMax","type":"uint128"},{"internalType":"string","name":"boxName","type":"string"},{"internalType":"string","name":"boxSeries","type":"string"},{"internalType":"string","name":"boxTheme","type":"string"},{"internalType":"string","name":"boxHashIPFS","type":"string"},{"internalType":"string","name":"boxHashArweave","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getFeeBps","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address payable[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getReservationCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lockedBoxes","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address payable","name":"_artist","type":"address"}],"name":"removeArtist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_member","type":"address"}],"name":"removeTeamMember","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"reservations","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"reserveBoxes","outputs":[],"stateMutability":"payable","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":"address","name":"_vouchers","type":"address"}],"name":"setBoxVoucher","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_caller","type":"address"},{"internalType":"bool","name":"_value","type":"bool"}],"name":"setCaller","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setGasFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"bool","name":"_lock","type":"bool"}],"name":"setLockOnBox","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_member","type":"address"},{"internalType":"uint256","name":"_share","type":"uint256"}],"name":"setTeamShare","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_machine","type":"address"}],"name":"setVendingMachine","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"team","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"teamShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newSecondaryBps","type":"uint256"}],"name":"updateSecondaryFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"newTeamAddress","type":"address"}],"name":"updateTeamAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"updateURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vendingMachine","outputs":[{"internalType":"contract IVendingMachine","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"voucherValidityInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawGasMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604080518082018252600681526509c8ca884def60d31b602080830191909152825180840190935260058352645b424f585d60d81b90830152906200005e6301ffc9a760e01b620003a9565b81516200007390600690602085019062000421565b5080516200008990600790602084019062000421565b506200009c6380ac58cd60e01b620003a9565b620000ae635b5e139f60e01b620003a9565b620000c063780e9d6360e01b620003a9565b5060009050620000cf62000404565b600a80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506200012f632dde656160e21b620003a9565b62000153604051806060016040528060398152602001620064ac6039913962000408565b61041a6010556004600f5560188054600181810183557fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e91820180546001600160a01b0319908116733428b1746dfd26c7c725913d829be2706aa89b2e17909155835480830185558301805482167363a9dbce75413036b2b778e670aabd4493aaf9f390811790915584548084018655840180548316734c7bedfa26c744e6bd61cbdf86f3fc4a76dca0731790558454808401865584018054831673f521bb7437bec77b0b15286dc3f49a87b994677317905584548084018655840180548316733945476e477de76d53b4833a46c806ef3d72b21e1790558454808401909555939092018054831673d084c5ff298e951e0e4cd29dd29684d5a54c0d8e1790556102587fd0de32d438e05842a736311dbda92c06df00ab27b019c7f9fde53466e556b9da55600a7fc8a9b9972c115815b0033c70adfcdcb9b30c40f202e7120320e2d3db221a6832819055601e7f4959e3d53cf8f4ba62fa3022dfab793e58d2a9d8e10234f88cbb13a41eba30dc55603c7f0319da2288e4854a1ffab3f0012ae7663c67d322e6c436d056a3f1e1b7d2c39a557ff279f2c92ef9ca433a2cc9ce8716fe3e04a38565c08a7d8ca555ba79401caa8d5560147fec6fadb753c9b90060d228d189b38d073336ff4f78771ed4fa721c1481d0187d55600092909252601a6020527f6701bb2b038df13d440563db023339ce35c07766355cdd4a096a4adc005a0f0e805460ff1916909217909155600d8054909116736d4530149e5b4483d2f7e60449c02570531a0751179055620004f4565b6001600160e01b03198082161415620003df5760405162461bcd60e51b8152600401620003d690620004bd565b60405180910390fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b3390565b80516200041d90600990602084019062000421565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200046457805160ff191683800117855562000494565b8280016001018555821562000494579182015b828111156200049457825182559160200191906001019062000477565b50620004a2929150620004a6565b5090565b5b80821115620004a25760008155600101620004a7565b6020808252601c908201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604082015260600190565b615fa880620005046000396000f3fe6080604052600436106103a25760003560e01c806370a08231116101e7578063b2d443fe1161010d578063cd9fe121116100a0578063f5f0cebd1161006f578063f5f0cebd14610abb578063f769046f14610adb578063fb4a255814610afb578063fccee1b414610b1b576103a2565b8063cd9fe12114610a3b578063e985e9c514610a5b578063eba2389d14610a7b578063f2fde38b14610a9b576103a2565b8063b9c4d9fb116100dc578063b9c4d9fb146109bb578063c30f4a5a146109db578063c87b56dd146109fb578063cb67558e14610a1b576103a2565b8063b2d443fe1461093d578063b3ed1da414610952578063b5a3f84f14610986578063b88d4fde1461099b576103a2565b80638da5cb5b116101855780639e418926116101545780639e418926146108ca578063a22cb465146108ea578063a74772c81461090a578063aef078bc1461092a576103a2565b80638da5cb5b1461086057806395d89b411461087557806397de16f21461088a5780639cae6eae146108aa576103a2565b8063811dd0e2116101c1578063811dd0e2146107de57806385e3f9971461080b578063894ca535146108205780638ad0e8cc14610840576103a2565b806370a0823114610789578063715018a6146107a9578063783abc8e146107be576103a2565b806330662b7b116102cc5780634ccc6b5f1161026a5780636352211e116102395780636352211e1461071f578063658612e91461073f578063678edca3146107545780636c0360eb14610774576103a2565b80634ccc6b5f146106915780634ed3faf2146106b15780634f6ccce7146106df57806362638c8b146106ff576103a2565b80633f3266f3116102a65780633f3266f3146106275780633f53bbc71461063c578063424f4fef1461065c57806342842e0e14610671576103a2565b806330662b7b146105b057806333c1da70146105d05780633eb2b5ad14610607576103a2565b806314eba0261161034457806325bf8b5e1161031357806325bf8b5e1461053d57806326303056146105505780632b28bc99146105705780632f745c5914610590576103a2565b806314eba026146104bb57806318160ddd146104db578063197ebd53146104fd57806323b872dd1461051d576103a2565b8063095ea7b311610380578063095ea7b31461042c5780630ebd4c7f1461044e5780630fceb9ab1461047b57806314eb76ac1461049b576103a2565b806301ffc9a7146103a757806306fdde03146103dd578063081812fc146103ff575b600080fd5b3480156103b357600080fd5b506103c76103c2366004614f19565b610b2e565b6040516103d49190615429565b60405180910390f35b3480156103e957600080fd5b506103f2610b51565b6040516103d49190615434565b34801561040b57600080fd5b5061041f61041a3660046150e4565b610be7565b6040516103d49190615308565b34801561043857600080fd5b5061044c610447366004614eee565b610c33565b005b34801561045a57600080fd5b5061046e6104693660046150e4565b610ccb565b6040516103d491906153f1565b34801561048757600080fd5b5061044c6104963660046150e4565b610d11565b3480156104a757600080fd5b5061044c6104b6366004614dbf565b610dad565b3480156104c757600080fd5b5061044c6104d6366004614dbf565b610e04565b3480156104e757600080fd5b506104f0610f31565b6040516103d49190615cbc565b34801561050957600080fd5b5061041f6105183660046150e4565b610f42565b34801561052957600080fd5b5061044c610538366004614e13565b610f69565b61044c61054b366004615211565b610fa1565b34801561055c57600080fd5b5061046e61056b3660046150e4565b6115a0565b34801561057c57600080fd5b5061044c61058b366004615120565b611605565b34801561059c57600080fd5b506104f06105ab366004614eee565b6116c5565b3480156105bc57600080fd5b5061041f6105cb366004615211565b6116f0565b3480156105dc57600080fd5b506105f06105eb3660046150e4565b611725565b6040516103d49b9a99989796959493929190615d78565b34801561061357600080fd5b5061044c610622366004614dbf565b611a43565b34801561063357600080fd5b5061041f611b24565b34801561064857600080fd5b506104f06106573660046150e4565b611b33565b34801561066857600080fd5b5061041f611b45565b34801561067d57600080fd5b5061044c61068c366004614e13565b611b54565b34801561069d57600080fd5b506103c76106ac3660046150e4565b611b6f565b3480156106bd57600080fd5b506106d16106cc3660046150e4565b611b84565b6040516103d4929190615cdc565b3480156106eb57600080fd5b506104f06106fa3660046150e4565b611b9d565b34801561070b57600080fd5b506104f061071a3660046150e4565b611bb3565b34801561072b57600080fd5b5061041f61073a3660046150e4565b611bc5565b34801561074b57600080fd5b506104f0611bed565b34801561076057600080fd5b5061044c61076f3660046150e4565b611bf3565b34801561078057600080fd5b506103f2611c2d565b34801561079557600080fd5b506104f06107a4366004614dbf565b611c8e565b3480156107b557600080fd5b5061044c611cd7565b3480156107ca57600080fd5b5061044c6107d93660046150fc565b611d56565b3480156107ea57600080fd5b506107fe6107f93660046150e4565b611f11565b6040516103d491906153a4565b34801561081757600080fd5b506104f0611f7f565b34801561082c57600080fd5b5061044c61083b3660046150e4565b611f85565b34801561084c57600080fd5b5061044c61085b366004615211565b611fbf565b34801561086c57600080fd5b5061041f6121de565b34801561088157600080fd5b506103f26121ed565b34801561089657600080fd5b5061044c6108a5366004614f84565b61224e565b3480156108b657600080fd5b5061044c6108c5366004614ebd565b6125dc565b3480156108d657600080fd5b5061044c6108e53660046151bd565b61263c565b3480156108f657600080fd5b5061044c610905366004614ebd565b6126dc565b34801561091657600080fd5b506103c7610925366004614dbf565b6127aa565b61044c6109383660046151e5565b6127bf565b34801561094957600080fd5b5061044c612a41565b34801561095e57600080fd5b5061097261096d3660046150e4565b612aac565b6040516103d4989796959493929190615cea565b34801561099257600080fd5b506104f0612f43565b3480156109a757600080fd5b5061044c6109b6366004614e53565b612f49565b3480156109c757600080fd5b506107fe6109d63660046150e4565b612f82565b3480156109e757600080fd5b5061044c6109f6366004614f51565b612fe0565b348015610a0757600080fd5b506103f2610a163660046150e4565b613021565b348015610a2757600080fd5b5061044c610a36366004614dbf565b61316b565b348015610a4757600080fd5b5061044c610a56366004614dbf565b6131c2565b348015610a6757600080fd5b506103c7610a76366004614ddb565b613219565b348015610a8757600080fd5b5061044c610a96366004614eee565b613247565b348015610aa757600080fd5b5061044c610ab6366004614dbf565b613301565b348015610ac757600080fd5b5061044c610ad6366004615146565b6133b8565b348015610ae757600080fd5b506104f0610af6366004614dbf565b6139bb565b348015610b0757600080fd5b5061044c610b163660046150e4565b6139cd565b61044c610b293660046151e5565b613be4565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610bdd5780601f10610bb257610100808354040283529160200191610bdd565b820191906000526020600020905b815481529060010190602001808311610bc057829003601f168201915b5050505050905090565b6000610bf282613e1f565b610c175760405162461bcd60e51b8152600401610c0e906159c2565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610c3e82611bc5565b9050806001600160a01b0316836001600160a01b03161415610c725760405162461bcd60e51b8152600401610c0e90615afb565b806001600160a01b0316610c84613e2c565b6001600160a01b03161480610ca05750610ca081610a76613e2c565b610cbc5760405162461bcd60e51b8152600401610c0e906157d2565b610cc68383613e30565b505050565b60408051600180825281830190925260609182919060208083019080368337019050509050600c5481600081518110610d0057fe5b602090810291909101015292915050565b336000908152601a602052604090205460ff1680610d475750610d326121de565b6001600160a01b0316336001600160a01b0316145b610d635760405162461bcd60e51b8152600401610c0e90615c43565b6000818152601160205260409020600f548211801590610d835750600082115b610d9f5760405162461bcd60e51b8152600401610c0e9061595d565b805460ff1916600117905550565b610db5613e2c565b600a546001600160a01b03908116911614610de25760405162461bcd60e51b8152600401610c0e90615a0e565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b610e0c613e2c565b600a546001600160a01b03908116911614610e395760405162461bcd60e51b8152600401610c0e90615a0e565b60005b601854811015610f2d57816001600160a01b031660188281548110610e5d57fe5b6000918252602090912001546001600160a01b03161415610f25576001600160a01b038216600090815260176020526040812055601880546000198101908110610ea357fe5b600091825260209091200154601880546001600160a01b039092169183908110610ec957fe5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506018805480610f0257fe5b600082815260209020810160001990810180546001600160a01b03191690550190555b600101610e3c565b5050565b6000610f3d6002613e9e565b905090565b60188181548110610f4f57fe5b6000918252602090912001546001600160a01b0316905081565b610f7a610f74613e2c565b82613ea9565b610f965760405162461bcd60e51b8152600401610c0e90615b64565b610cc6838383613f2e565b610fa9614a38565b60008381526011602090815260409182902082516101a081018452815460ff8082168352610100820416828501526001600160801b036201000090910481168286015260018301548082166060840152600160801b9004166080820152600282015460a08201526003820180548551818602810186019096528086529194929360c0860193929083018282801561106957602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161104b575b50505050508152602001600482018054806020026020016040519081016040528092919081815260200182805480156110c157602002820191906000526020600020905b8154815260200190600101908083116110ad575b505050918352505060058201805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529382019392918301828280156111555780601f1061112a57610100808354040283529160200191611155565b820191906000526020600020905b81548152906001019060200180831161113857829003601f168201915b505050918352505060068201805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529382019392918301828280156111e95780601f106111be576101008083540402835291602001916111e9565b820191906000526020600020905b8154815290600101906020018083116111cc57829003601f168201915b505050918352505060078201805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815293820193929183018282801561127d5780601f106112525761010080835404028352916020019161127d565b820191906000526020600020905b81548152906001019060200180831161126057829003601f168201915b505050918352505060088201805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529382019392918301828280156113115780601f106112e657610100808354040283529160200191611311565b820191906000526020600020905b8154815290600101906020018083116112f457829003601f168201915b505050918352505060098201805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529382019392918301828280156113a55780601f1061137a576101008083540402835291602001916113a5565b820191906000526020600020905b81548152906001019060200180831161138857829003601f168201915b5050505050815250509050600f5483111580156113c25750600083115b6113de5760405162461bcd60e51b8152600401610c0e90615c99565b6000838152601460205260409020541561140a5760405162461bcd60e51b8152600401610c0e90615b3c565b3461143a6103e861143460105461142e878760a00151613f9590919063ffffffff16565b90613f95565b90613fcf565b146114575760405162461bcd60e51b8152600401610c0e90615c23565b600e5460405163124d91e560e01b81526001600160a01b039091169063124d91e59061148b90339087908790600401615383565b600060405180830381600087803b1580156114a557600080fd5b505af11580156114b9573d6000803e3d6000fd5b5050600e5460405163aab68bdb60e01b81526001600160a01b03909116925063aab68bdb91506114f6903390620186a08801908790600401615383565b600060405180830381600087803b15801561151057600080fd5b505af1158015611524573d6000803e3d6000fd5b5050505060005b8281101561156a5760008481526015602090815260408220805460018181018355918452919092200180546001600160a01b031916331790550161152b565b5061159861158f611588848460a00151613f9590919063ffffffff16565b3490614011565b60195490614053565b601955505050565b6000818152601160209081526040918290206004018054835181840281018401909452808452606093928301828280156115f957602002820191906000526020600020905b8154815260200190600101908083116115e5575b50505050509050919050565b61160d613e2c565b600a546001600160a01b0390811691161461163a5760405162461bcd60e51b8152600401610c0e90615a0e565b6000838152601160205260409020600f54841180159061165a5750600084115b6116765760405162461bcd60e51b8152600401610c0e90615c99565b600381018054600180820183556000928352602080842090920180546001600160a01b0319166001600160a01b0397909716969096179095556004909201805494850181558152209091015550565b6001600160a01b03821660009081526001602052604081206116e79083614078565b90505b92915050565b6015602052816000526040600020818154811061170957fe5b6000918252602090912001546001600160a01b03169150829050565b601160209081526000918252604091829020805460018083015460028085015460058601805489516101009682161587026000190190911693909304601f810189900489028401890190995288835260ff808716999587041697620100009096046001600160801b039081169781861697600160801b909604909116959294909392908301828280156117f95780601f106117ce576101008083540402835291602001916117f9565b820191906000526020600020905b8154815290600101906020018083116117dc57829003601f168201915b5050505060068301805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529495949350908301828280156118895780601f1061185e57610100808354040283529160200191611889565b820191906000526020600020905b81548152906001019060200180831161186c57829003601f168201915b5050505060078301805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529495949350908301828280156119195780601f106118ee57610100808354040283529160200191611919565b820191906000526020600020905b8154815290600101906020018083116118fc57829003601f168201915b5050505060088301805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529495949350908301828280156119a95780601f1061197e576101008083540402835291602001916119a9565b820191906000526020600020905b81548152906001019060200180831161198c57829003601f168201915b5050505060098301805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152949594935090830182828015611a395780601f10611a0e57610100808354040283529160200191611a39565b820191906000526020600020905b815481529060010190602001808311611a1c57829003601f168201915b505050505090508b565b611a4b613e2c565b600a546001600160a01b03908116911614611a785760405162461bcd60e51b8152600401610c0e90615a0e565b60005b601854811015611ad15760188181548110611a9257fe5b6000918252602090912001546001600160a01b0383811691161415611ac95760405162461bcd60e51b8152600401610c0e906154d6565b600101611a7b565b50601880546001810182556000919091527fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e0180546001600160a01b0319166001600160a01b0392909216919091179055565b600e546001600160a01b031681565b60146020526000908152604090205481565b600d546001600160a01b031681565b610cc683838360405180602001604052806000815250612f49565b60136020526000908152604090205460ff1681565b6012602052600090815260409020805460019091015482565b600080611bab600284614084565b509392505050565b60009081526015602052604090205490565b60006116ea82604051806060016040528060298152602001615f4a60299139600291906140a2565b60105481565b611bfb613e2c565b600a546001600160a01b03908116911614611c285760405162461bcd60e51b8152600401610c0e90615a0e565b601055565b60098054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610bdd5780601f10610bb257610100808354040283529160200191610bdd565b60006001600160a01b038216611cb65760405162461bcd60e51b8152600401610c0e9061582f565b6001600160a01b03821660009081526001602052604090206116ea90613e9e565b611cdf613e2c565b600a546001600160a01b03908116911614611d0c5760405162461bcd60e51b8152600401610c0e90615a0e565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b611d5e613e2c565b600a546001600160a01b03908116911614611d8b5760405162461bcd60e51b8152600401610c0e90615a0e565b6000828152601160205260409020600f548311801590611dab5750600083115b611dc75760405162461bcd60e51b8152600401610c0e90615c99565b60005b6003820154811015611f0b57826001600160a01b0316826003018281548110611def57fe5b6000918252602090912001546001600160a01b03161415611f03576003820180546000198101908110611e1e57fe5b6000918252602090912001546003830180546001600160a01b039092169183908110611e4657fe5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555081600301805480611e8157fe5b600082815260209020810160001990810180546001600160a01b031916905590810190915560048301805490918101908110611eb957fe5b9060005260206000200154826004018281548110611ed357fe5b60009182526020909120015560048201805480611eec57fe5b600190038181906000526020600020016000905590555b600101611dca565b50505050565b6000818152601160209081526040918290206003018054835181840281018401909452808452606093928301828280156115f957602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611f565750505050509050919050565b6103e881565b611f8d613e2c565b600a546001600160a01b03908116911614611fba5760405162461bcd60e51b8152600401610c0e90615a0e565b600c55565b336000908152601a602052604090205460ff1680611ff55750611fe06121de565b6001600160a01b0316336001600160a01b0316145b6120115760405162461bcd60e51b8152600401610c0e90615c43565b600f5482111580156120235750600082115b61203f5760405162461bcd60e51b8152600401610c0e90615c99565b60008281526013602052604090205460ff161561206e5760405162461bcd60e51b8152600401610c0e9061573d565b6000828152601460205260409020541561209a5760405162461bcd60e51b8152600401610c0e906155e6565b600082815260116020908152604080832060018101546015909352908320549092600160801b9092046001600160801b0316915b6000821180156120de5750600085115b1561217157612124838783601560008b8152602001908152602001600020600187038154811061210a57fe5b6000918252602090912001546001600160a01b03166140b9565b600086815260156020526040902080548061213b57fe5b600082815260209020810160001990810180546001600160a01b03191690559081019091559485019491909101906001016120ce565b6001840180546001600160801b03600160801b8083048216850182160291811691909117909155845484821683016201000090910490911614156121bb57835460ff191660011784555b816121d6576000868152601460205260409020610384420190555b505050505050565b600a546001600160a01b031690565b60078054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610bdd5780601f10610bb257610100808354040283529160200191610bdd565b612256613e2c565b600a546001600160a01b039081169116146122835760405162461bcd60e51b8152600401610c0e90615a0e565b85518751146122a45760405162461bcd60e51b8152600401610c0e90615576565b8a6001600160801b0316896001600160801b031611156122d65760405162461bcd60e51b8152600401610c0e90615c7a565b604051806101a00160405280600060ff168152602001600060ff1681526020018c6001600160801b031681526020018b6001600160801b0316815260200160006001600160801b031681526020018981526020018881526020018781526020018681526020018581526020018481526020018381526020018281525060116000600f54600101815260200190815260200160002060008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548160ff021916908360ff16021790555060408201518160000160026101000a8154816001600160801b0302191690836001600160801b0316021790555060608201518160010160006101000a8154816001600160801b0302191690836001600160801b0316021790555060808201518160010160106101000a8154816001600160801b0302191690836001600160801b0316021790555060a0820151816002015560c0820151816003019080519060200190612459929190614ac1565b5060e08201518051612475916004840191602090910190614b26565b506101008201518051612492916005840191602090910190614b6d565b5061012082015180516124af916006840191602090910190614b6d565b5061014082015180516124cc916007840191602090910190614b6d565b5061016082015180516124e9916008840191602090910190614b6d565b506101808201518051612506916009840191602090910190614b6d565b5050600f8054600190810180835560009081526013602052604090819020805460ff1916909217909155600e549154905163aab68bdb60e01b81526001600160a01b03909216925063aab68bdb916125649133918e90600401615359565b600060405180830381600087803b15801561257e57600080fd5b505af1158015612592573d6000803e3d6000fd5b505050507f77628c9166aca2fc4ccb8b7681fa345c93f54fb929f857d05cfebbfb665bad02600f546040516125c79190615cbc565b60405180910390a15050505050505050505050565b6125e4613e2c565b600a546001600160a01b039081169116146126115760405162461bcd60e51b8152600401610c0e90615a0e565b6001600160a01b03919091166000908152601a60205260409020805460ff1916911515919091179055565b336000908152601a602052604090205460ff1680612672575061265d6121de565b6001600160a01b0316336001600160a01b0316145b61268e5760405162461bcd60e51b8152600401610c0e90615c43565b600f5482111580156126a05750600082115b6126bc5760405162461bcd60e51b8152600401610c0e9061595d565b600091825260136020526040909120805460ff1916911515919091179055565b6126e4613e2c565b6001600160a01b0316826001600160a01b031614156127155760405162461bcd60e51b8152600401610c0e90615706565b8060056000612722613e2c565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155612766613e2c565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161279e9190615429565b60405180910390a35050565b601a6020526000908152604090205460ff1681565b600082815260116020526040902060018101548154600f54600160801b9092046001600160801b039081169262010000909204169085118015906128035750600085115b61281f5760405162461bcd60e51b8152600401610c0e90615c99565b825460ff16156128415760405162461bcd60e51b8152600401610c0e9061566c565b60008581526013602052604090205460ff16156128705760405162461bcd60e51b8152600401610c0e90615adb565b6000858152601460205260409020541580159061289a575060008581526014602052604090205442115b6128b65760405162461bcd60e51b8152600401610c0e90615489565b600283015434906128d0906001600160801b038716613f95565b146128ed5760405162461bcd60e51b8152600401610c0e90615c23565b806001600160801b03168483016001600160801b031611156129215760405162461bcd60e51b8152600401610c0e906158a0565b600183015460008681526016602090815260408083203384529091529020546001600160801b039182169161295891908716614053565b11156129765760405162461bcd60e51b8152600401610c0e90615558565b60005b846001600160801b0316816001600160801b031610156129b0576129a88387836001600160801b0316336140b9565b600101612979565b506001830180546001600160801b03600160801b808304821688018216029181169190911790915560008681526016602090815260408083203384529091529020546129fd918616614053565b60008681526016602090815260408083203384529091529020558184016001600160801b039081169082161415612a3a57825460ff191660011783555b5050505050565b612a49613e2c565b600a546001600160a01b03908116911614612a765760405162461bcd60e51b8152600401610c0e90615a0e565b601954604051339180156108fc02916000818181858888f19350505050158015612aa4573d6000803e3d6000fd5b506000601955565b60008060006060806060806060612ac1614bda565b506000898152601260209081526040918290208251808401909352805483526001015490820152612af0614a38565b815160009081526011602090815260409182902082516101a081018452815460ff8082168352610100820416828501526001600160801b036201000090910481168286015260018301548082166060840152600160801b9004166080820152600282015460a08201526003820180548551818602810186019096528086529194929360c08601939290830182828015612bb257602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612b94575b5050505050815260200160048201805480602002602001604051908101604052809291908181526020018280548015612c0a57602002820191906000526020600020905b815481526020019060010190808311612bf6575b505050918352505060058201805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152938201939291830182828015612c9e5780601f10612c7357610100808354040283529160200191612c9e565b820191906000526020600020905b815481529060010190602001808311612c8157829003601f168201915b505050918352505060068201805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152938201939291830182828015612d325780601f10612d0757610100808354040283529160200191612d32565b820191906000526020600020905b815481529060010190602001808311612d1557829003601f168201915b505050918352505060078201805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152938201939291830182828015612dc65780601f10612d9b57610100808354040283529160200191612dc6565b820191906000526020600020905b815481529060010190602001808311612da957829003601f168201915b505050918352505060088201805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152938201939291830182828015612e5a5780601f10612e2f57610100808354040283529160200191612e5a565b820191906000526020600020905b815481529060010190602001808311612e3d57829003601f168201915b505050918352505060098201805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152938201939291830182828015612eee5780601f10612ec357610100808354040283529160200191612eee565b820191906000526020600020905b815481529060010190602001808311612ed157829003601f168201915b5050505050815250509050816000015182602001518260400151836101000151846101200151856101400151866101600151876101800151995099509950995099509950995099505050919395975091939597565b600f5481565b612f5a612f54613e2c565b83613ea9565b612f765760405162461bcd60e51b8152600401610c0e90615b64565b611f0b84848484614176565b604080516001808252818301909252606091829190602080830190803683375050600b5482519293506001600160a01b031691839150600090612fc157fe5b6001600160a01b03909216602092830291909101909101529050919050565b612fe8613e2c565b600a546001600160a01b039081169116146130155760405162461bcd60e51b8152600401610c0e90615a0e565b61301e816141a9565b50565b606061302c82613e1f565b6130485760405162461bcd60e51b8152600401610c0e90615a8c565b60008281526008602090815260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452606093928301828280156130dd5780601f106130b2576101008083540402835291602001916130dd565b820191906000526020600020905b8154815290600101906020018083116130c057829003601f168201915b505060095493945050505060026000196101006001841615020190911604613106579050610b4c565b80511561313857600981604051602001613121929190615287565b604051602081830303815290604052915050610b4c565b6009613143846141bc565b604051602001613154929190615287565b604051602081830303815290604052915050919050565b613173613e2c565b600a546001600160a01b039081169116146131a05760405162461bcd60e51b8152600401610c0e90615a0e565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6131ca613e2c565b600a546001600160a01b039081169116146131f75760405162461bcd60e51b8152600401610c0e90615a0e565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61324f613e2c565b600a546001600160a01b0390811691161461327c5760405162461bcd60e51b8152600401610c0e90615a0e565b6103e881111561329e5760405162461bcd60e51b8152600401610c0e90615bec565b60005b601854811015610cc657826001600160a01b0316601882815481106132c257fe5b6000918252602090912001546001600160a01b031614156132f9576001600160a01b03831660009081526017602052604090208290555b6001016132a1565b613309613e2c565b600a546001600160a01b039081169116146133365760405162461bcd60e51b8152600401610c0e90615a0e565b6001600160a01b03811661335c5760405162461bcd60e51b8152600401610c0e906155a0565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b336000908152601a602052604090205460ff16806133ee57506133d96121de565b6001600160a01b0316336001600160a01b0316145b61340a5760405162461bcd60e51b8152600401610c0e90615c43565b613412614a38565b60008681526011602090815260409182902082516101a081018452815460ff8082168352610100820416828501526001600160801b036201000090910481168286015260018301548082166060840152600160801b9004166080820152600282015460a08201526003820180548551818602810186019096528086529194929360c086019392908301828280156134d257602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116134b4575b505050505081526020016004820180548060200260200160405190810160405280929190818152602001828054801561352a57602002820191906000526020600020905b815481526020019060010190808311613516575b505050918352505060058201805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529382019392918301828280156135be5780601f10613593576101008083540402835291602001916135be565b820191906000526020600020905b8154815290600101906020018083116135a157829003601f168201915b505050918352505060068201805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529382019392918301828280156136525780601f1061362757610100808354040283529160200191613652565b820191906000526020600020905b81548152906001019060200180831161363557829003601f168201915b505050918352505060078201805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529382019392918301828280156136e65780601f106136bb576101008083540402835291602001916136e6565b820191906000526020600020905b8154815290600101906020018083116136c957829003601f168201915b505050918352505060088201805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815293820193929183018282801561377a5780601f1061374f5761010080835404028352916020019161377a565b820191906000526020600020905b81548152906001019060200180831161375d57829003601f168201915b505050918352505060098201805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815293820193929183018282801561380e5780601f106137e35761010080835404028352916020019161380e565b820191906000526020600020905b8154815290600101906020018083116137f157829003601f168201915b5050505050815250509050806000015160ff166001146138405760405162461bcd60e51b8152600401610c0e9061590a565b81858560008161384c57fe5b905060200281019061385e9190615e32565b90501461387d5760405162461bcd60e51b8152600401610c0e906154b3565b60005b848110156139785760005b8686600081811061389857fe5b90506020028101906138aa9190615e32565b905081101561396f57600d546001600160a01b031663e56e34798686848181106138d057fe5b905060200201358989868181106138e357fe5b90506020028101906138f59190615e32565b858181106138ff57fe5b90506020020160208101906139149190614dbf565b6040518363ffffffff1660e01b8152600401613931929190615cc5565b600060405180830381600087803b15801561394b57600080fd5b505af115801561395f573d6000803e3d6000fd5b50506001909201915061388b9050565b50600101613880565b5060405186907fb3e821bfa4e118cf1cac28128930a4e53e59dd51d9e30c95ee100e4d3b0d2ef2906139ab908790615cbc565b60405180910390a2505050505050565b60176020526000908152604090205481565b6000818152601160205260409020600f5482118015906139ed5750600082115b613a095760405162461bcd60e51b8152600401610c0e9061595d565b805460ff166001148015613a2457508054610100900460ff16155b613a405760405162461bcd60e51b8152600401610c0e906157ad565b613a4982614297565b613a655760405162461bcd60e51b8152600401610c0e9061560f565b805461ff00191661010017815560028101546001820154600091613a9a916001600160801b03600160801b9091041690613f95565b90506000805b601854811015613b4857613af06103e86114346017600060188681548110613ac457fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020548690613f95565b915060188181548110613aff57fe5b60009182526020822001546040516001600160a01b039091169184156108fc02918591818181858888f19350505050158015613b3f573d6000803e3d6000fd5b50600101613aa0565b5060005b6003840154811015612a3a57613b8a6103e8611434866004018481548110613b7057fe5b906000526020600020015486613f9590919063ffffffff16565b9150836003018181548110613b9b57fe5b60009182526020822001546040516001600160a01b039091169184156108fc02918591818181858888f19350505050158015613bdb573d6000803e3d6000fd5b50600101613b4c565b600082815260116020526040902060018101548154600f54600160801b9092046001600160801b03908116926201000090920416908511801590613c285750600085115b613c445760405162461bcd60e51b8152600401610c0e90615c99565b60008581526013602052604090205460ff1615613c735760405162461bcd60e51b8152600401610c0e90615adb565b60028301543490613c8d906001600160801b038716613f95565b14613caa5760405162461bcd60e51b8152600401610c0e90615c23565b825460ff1615613ccc5760405162461bcd60e51b8152600401610c0e9061566c565b600e5460405163124d91e560e01b81526001600160a01b039091169063124d91e590613d0090339089908990600401615359565b600060405180830381600087803b158015613d1a57600080fd5b505af1158015613d2e573d6000803e3d6000fd5b5050600e5460405163aab68bdb60e01b81526001600160a01b03909116925063aab68bdb9150613d6b903390620186a08a01908990600401615359565b600060405180830381600087803b158015613d8557600080fd5b505af1158015613d99573d6000803e3d6000fd5b5050505060005b846001600160801b0316816001600160801b03161015613dd757613dcf8387836001600160801b0316336140b9565b600101613da0565b506001830180546001600160801b03600160801b808304821688018216029181169190911790915582850181169082161415612a3a57825460ff191660011783555050505050565b60006116ea60028361434e565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190613e6582611bc5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006116ea8261435a565b6000613eb482613e1f565b613ed05760405162461bcd60e51b8152600401610c0e90615761565b6000613edb83611bc5565b9050806001600160a01b0316846001600160a01b03161480613f165750836001600160a01b0316613f0b84610be7565b6001600160a01b0316145b80613f265750613f268185613219565b949350505050565b613f36614bda565b5060008181526012602090815260408083208151808301835281548082526001909201548185015290845260139092529091205460ff1615613f8a5760405162461bcd60e51b8152600401610c0e90615879565b611f0b84848461435e565b600082613fa4575060006116ea565b82820282848281613fb157fe5b04146116e75760405162461bcd60e51b8152600401610c0e90615981565b60006116e783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061446c565b60006116e783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506144a3565b6000828201838110156116e75760405162461bcd60e51b8152600401610c0e9061568b565b60006116e783836144cf565b60008080806140938686614514565b909450925050505b9250929050565b60006140af848484614570565b90505b9392505050565b604051806040016040528084815260200183866001600160801b031601600101815250601260006140e8610f31565b60010181526020019081526020016000206000820151816000015560208201518160010155905050827f5420392aab8a9f3a70c0145321ff58bc86c3da3596336224396de59f430fc0f583866001600160801b031601600101614149610f31565b60010160405161415a929190615cdc565b60405180910390a2611f0b8161416e610f31565b6001016145cf565b614181848484613f2e565b61418d84848484614693565b611f0b5760405162461bcd60e51b8152600401610c0e90615506565b8051610f2d906009906020840190614b6d565b6060816141e157506040805180820190915260018152600360fc1b6020820152610b4c565b8160005b81156141f957600101600a820491506141e5565b60608167ffffffffffffffff8111801561421257600080fd5b506040519080825280601f01601f19166020018201604052801561423d576020820181803683370190505b50859350905060001982015b831561428e57600a840660300160f81b8282806001900393508151811061426c57fe5b60200101906001600160f81b031916908160001a905350600a84049350614249565b50949350505050565b600081815260116020526040812081805b6018548110156142fc576142f260176000601884815481106142c657fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020548390614053565b91506001016142a8565b5060005b60048301548110156143425761433883600401828154811061431e57fe5b90600052602060002001548361405390919063ffffffff16565b9150600101614300565b506103e8149392505050565b60006116e78383614772565b5490565b826001600160a01b031661437182611bc5565b6001600160a01b0316146143975760405162461bcd60e51b8152600401610c0e90615a43565b6001600160a01b0382166143bd5760405162461bcd60e51b8152600401610c0e906156c2565b6143c8838383610cc6565b6143d3600082613e30565b6001600160a01b03831660009081526001602052604090206143f5908261478a565b506001600160a01b03821660009081526001602052604090206144189082614796565b50614425600282846147a2565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000818361448d5760405162461bcd60e51b8152600401610c0e9190615434565b50600083858161449957fe5b0495945050505050565b600081848411156144c75760405162461bcd60e51b8152600401610c0e9190615434565b505050900390565b815460009082106144f25760405162461bcd60e51b8152600401610c0e90615447565b82600001828154811061450157fe5b9060005260206000200154905092915050565b8154600090819083106145395760405162461bcd60e51b8152600401610c0e906158c8565b600084600001848154811061454a57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816145a05760405162461bcd60e51b8152600401610c0e9190615434565b508460000160018203815481106145b357fe5b9060005260206000209060020201600101549150509392505050565b6001600160a01b0382166145f55760405162461bcd60e51b8152600401610c0e90615928565b6145fe81613e1f565b1561461b5760405162461bcd60e51b8152600401610c0e90615635565b61462760008383610cc6565b6001600160a01b03821660009081526001602052604090206146499082614796565b50614656600282846147a2565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006146a7846001600160a01b03166147b8565b6146b357506001613f26565b606061473b630a85bd0160e11b6146c8613e2c565b8887876040516024016146de949392919061531c565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001615f18603291396001600160a01b03881691906147be565b90506000818060200190518101906147539190614f35565b6001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b60006116e783836147cd565b60006116e78383614893565b60006140af84846001600160a01b0385166148dd565b3b151590565b60606140af8484600085614974565b60008181526001830160205260408120548015614889578354600019808301919081019060009087908390811061480057fe5b906000526020600020015490508087600001848154811061481d57fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061484d57fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506116ea565b60009150506116ea565b600061489f8383614772565b6148d5575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556116ea565b5060006116ea565b6000828152600184016020526040812054806149425750506040805180820182528381526020808201848152865460018181018955600089815284812095516002909302909501918255915190820155865486845281880190925292909120556140b2565b8285600001600183038154811061495557fe5b90600052602060002090600202016001018190555060009150506140b2565b606061497f856147b8565b61499b5760405162461bcd60e51b8152600401610c0e90615bb5565b60006060866001600160a01b031685876040516149b8919061526b565b60006040518083038185875af1925050503d80600081146149f5576040519150601f19603f3d011682016040523d82523d6000602084013e6149fa565b606091505b50915091508115614a0e579150613f269050565b805115614a1e5780518082602001fd5b8360405162461bcd60e51b8152600401610c0e9190615434565b604051806101a00160405280600060ff168152602001600060ff16815260200160006001600160801b0316815260200160006001600160801b0316815260200160006001600160801b0316815260200160008152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001606081525090565b828054828255906000526020600020908101928215614b16579160200282015b82811115614b1657825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190614ae1565b50614b22929150614bf4565b5090565b828054828255906000526020600020908101928215614b61579160200282015b82811115614b61578251825591602001919060010190614b46565b50614b22929150614c13565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614bae57805160ff1916838001178555614b61565b82800160010185558215614b615791820182811115614b61578251825591602001919060010190614b46565b604051806040016040528060008152602001600081525090565b5b80821115614b225780546001600160a01b0319168155600101614bf5565b5b80821115614b225760008155600101614c14565b600082601f830112614c38578081fd5b8135614c4b614c4682615ea0565b615e79565b818152915060208083019084810181840286018201871015614c6c57600080fd5b60005b84811015614c94578135614c8281615eec565b84529282019290820190600101614c6f565b505050505092915050565b60008083601f840112614cb0578081fd5b50813567ffffffffffffffff811115614cc7578182fd5b602083019150836020808302850101111561409b57600080fd5b600082601f830112614cf1578081fd5b8135614cff614c4682615ea0565b818152915060208083019084810181840286018201871015614d2057600080fd5b60005b84811015614c9457813584529282019290820190600101614d23565b600082601f830112614d4f578081fd5b813567ffffffffffffffff811115614d65578182fd5b614d78601f8201601f1916602001615e79565b9150808252836020828501011115614d8f57600080fd5b8060208401602084013760009082016020015292915050565b80356001600160801b03811681146116ea57600080fd5b600060208284031215614dd0578081fd5b81356116e781615eec565b60008060408385031215614ded578081fd5b8235614df881615eec565b91506020830135614e0881615eec565b809150509250929050565b600080600060608486031215614e27578081fd5b8335614e3281615eec565b92506020840135614e4281615eec565b929592945050506040919091013590565b60008060008060808587031215614e68578081fd5b8435614e7381615eec565b93506020850135614e8381615eec565b925060408501359150606085013567ffffffffffffffff811115614ea5578182fd5b614eb187828801614d3f565b91505092959194509250565b60008060408385031215614ecf578182fd5b8235614eda81615eec565b915060208301358015158114614e08578182fd5b60008060408385031215614f00578182fd5b8235614f0b81615eec565b946020939093013593505050565b600060208284031215614f2a578081fd5b81356116e781615f01565b600060208284031215614f46578081fd5b81516116e781615f01565b600060208284031215614f62578081fd5b813567ffffffffffffffff811115614f78578182fd5b613f2684828501614d3f565b60008060008060008060008060008060006101608c8e031215614fa5578889fd5b614faf8d8d614da8565b9a50614fbe8d60208e01614da8565b9950614fcd8d60408e01614da8565b985060608c0135975067ffffffffffffffff8060808e01351115614fef578788fd5b614fff8e60808f01358f01614c28565b97508060a08e01351115615011578687fd5b6150218e60a08f01358f01614ce1565b96508060c08e01351115615033578586fd5b6150438e60c08f01358f01614d3f565b95508060e08e01351115615055578485fd5b6150658e60e08f01358f01614d3f565b9450806101008e01351115615078578384fd5b6150898e6101008f01358f01614d3f565b9350806101208e0135111561509c578283fd5b6150ad8e6101208f01358f01614d3f565b9250806101408e013511156150c0578182fd5b506150d28d6101408e01358e01614d3f565b90509295989b509295989b9093969950565b6000602082840312156150f5578081fd5b5035919050565b6000806040838503121561510e578182fd5b823591506020830135614e0881615eec565b600080600060608486031215615134578081fd5b833592506020840135614e4281615eec565b60008060008060006060868803121561515d578283fd5b85359450602086013567ffffffffffffffff8082111561517b578485fd5b61518789838a01614c9f565b9096509450604088013591508082111561519f578283fd5b506151ac88828901614c9f565b969995985093965092949392505050565b600080604083850312156151cf578182fd5b8235915060208301358015158114614e08578182fd5b600080604083850312156151f7578182fd5b823591506152088460208501614da8565b90509250929050565b60008060408385031215615223578182fd5b50508035926020909101359150565b6000815180845261524a816020860160208601615ec0565b601f01601f19169290920160200192915050565b6001600160801b03169052565b6000825161527d818460208701615ec0565b9190910192915050565b60008084546001808216600081146152a657600181146152bd576152ec565b60ff198316865260028304607f16860193506152ec565b600283048886526020808720875b838110156152e45781548a8201529085019082016152cb565b505050860193505b50505083516152ff818360208801615ec0565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061534f90830184615232565b9695505050505050565b6001600160a01b0393909316835260208301919091526001600160801b0316604082015260600190565b6001600160a01b039390931683526020830191909152604082015260600190565b6020808252825182820181905260009190848201906040850190845b818110156153e55783516001600160a01b0316835292840192918401916001016153c0565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156153e55783518352928401929184019160010161540d565b901515815260200190565b6000602082526116e76020830184615232565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b60208082526010908201526f213abc903bb4b73237bb9010b7b832b760811b604082015260600190565b60208082526009908201526862616420617272617960b81b604082015260600190565b6020808252601690820152756d656d626572732065786973747320616c726561647960501b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600490820152632162757960e01b604082015260600190565b60208082526010908201526f30b93930bcb99010b9b0b6b2903632b760811b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252600f908201526e2137bc103234b9ba39379037bb32b960891b604082015260600190565b6020808252600c908201526b39bab690109e90189818129760a11b604082015260600190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b602080825260059082015264216c69766560d81b604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252600a9082015269109bde081b1bd8dad95960b21b604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252600b908201526a216469737472696275746560a81b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b6020808252600d908201526c109bde081a5cc81b1bd8dad959609a1b604082015260600190565b6020808252600e908201526d546f6f206d616e7920626f78657360901b604082015260600190565b60208082526022908201527f456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b6020808252600490820152636c69766560e01b604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252600a908201526924a21010b2bc34b9ba1760b11b604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b6020808252600690820152651b1bd8dad95960d21b604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252600e908201526d43616e6e6f74207265736572766560901b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526018908201527f7368617265206d7573742062652062656c6f7720313030300000000000000000604082015260600190565b60208082526006908201526521707269636560d01b604082015260600190565b6020808252601a908201527f4e6f7420617574686f726973656420746f20657865637574652e000000000000604082015260600190565b602080825260059082015264085b5a5b9d60da1b604082015260600190565b60208082526009908201526812510808595e1a5cdd60ba1b604082015260600190565b90815260200190565b9182526001600160a01b0316602082015260400190565b918252602082015260400190565b60006101008a83528960208401526001600160801b0389166040840152806060840152615d1981840189615232565b90508281036080840152615d2d8188615232565b905082810360a0840152615d418187615232565b905082810360c0840152615d558186615232565b905082810360e0840152615d698185615232565b9b9a5050505050505050505050565b600061016060ff8e16835260ff8d1660208401526001600160801b038c166040840152615da8606084018c61525e565b615db5608084018b61525e565b8860a08401528060c0840152615dcd81840189615232565b905082810360e0840152615de18188615232565b9050828103610100840152615df68187615232565b9050828103610120840152615e0b8186615232565b9050828103610140840152615e208185615232565b9e9d5050505050505050505050505050565b6000808335601e19843603018112615e48578283fd5b83018035915067ffffffffffffffff821115615e62578283fd5b602090810192508102360382131561409b57600080fd5b60405181810167ffffffffffffffff81118282101715615e9857600080fd5b604052919050565b600067ffffffffffffffff821115615eb6578081fd5b5060209081020190565b60005b83811015615edb578181015183820152602001615ec3565b83811115611f0b5750506000910152565b6001600160a01b038116811461301e57600080fd5b6001600160e01b03198116811461301e57600080fdfe4552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656ea2646970667358221220d33d0b4bd0dd0cc72c70e85fa170e3b644508fa00d03d745c24620755d09a8db64736f6c634300060c003368747470733a2f2f6e6674626f786573626f782e617a75726577656273697465732e6e65742f6170692f48747470547269676765723f69643d
Deployed Bytecode
0x6080604052600436106103a25760003560e01c806370a08231116101e7578063b2d443fe1161010d578063cd9fe121116100a0578063f5f0cebd1161006f578063f5f0cebd14610abb578063f769046f14610adb578063fb4a255814610afb578063fccee1b414610b1b576103a2565b8063cd9fe12114610a3b578063e985e9c514610a5b578063eba2389d14610a7b578063f2fde38b14610a9b576103a2565b8063b9c4d9fb116100dc578063b9c4d9fb146109bb578063c30f4a5a146109db578063c87b56dd146109fb578063cb67558e14610a1b576103a2565b8063b2d443fe1461093d578063b3ed1da414610952578063b5a3f84f14610986578063b88d4fde1461099b576103a2565b80638da5cb5b116101855780639e418926116101545780639e418926146108ca578063a22cb465146108ea578063a74772c81461090a578063aef078bc1461092a576103a2565b80638da5cb5b1461086057806395d89b411461087557806397de16f21461088a5780639cae6eae146108aa576103a2565b8063811dd0e2116101c1578063811dd0e2146107de57806385e3f9971461080b578063894ca535146108205780638ad0e8cc14610840576103a2565b806370a0823114610789578063715018a6146107a9578063783abc8e146107be576103a2565b806330662b7b116102cc5780634ccc6b5f1161026a5780636352211e116102395780636352211e1461071f578063658612e91461073f578063678edca3146107545780636c0360eb14610774576103a2565b80634ccc6b5f146106915780634ed3faf2146106b15780634f6ccce7146106df57806362638c8b146106ff576103a2565b80633f3266f3116102a65780633f3266f3146106275780633f53bbc71461063c578063424f4fef1461065c57806342842e0e14610671576103a2565b806330662b7b146105b057806333c1da70146105d05780633eb2b5ad14610607576103a2565b806314eba0261161034457806325bf8b5e1161031357806325bf8b5e1461053d57806326303056146105505780632b28bc99146105705780632f745c5914610590576103a2565b806314eba026146104bb57806318160ddd146104db578063197ebd53146104fd57806323b872dd1461051d576103a2565b8063095ea7b311610380578063095ea7b31461042c5780630ebd4c7f1461044e5780630fceb9ab1461047b57806314eb76ac1461049b576103a2565b806301ffc9a7146103a757806306fdde03146103dd578063081812fc146103ff575b600080fd5b3480156103b357600080fd5b506103c76103c2366004614f19565b610b2e565b6040516103d49190615429565b60405180910390f35b3480156103e957600080fd5b506103f2610b51565b6040516103d49190615434565b34801561040b57600080fd5b5061041f61041a3660046150e4565b610be7565b6040516103d49190615308565b34801561043857600080fd5b5061044c610447366004614eee565b610c33565b005b34801561045a57600080fd5b5061046e6104693660046150e4565b610ccb565b6040516103d491906153f1565b34801561048757600080fd5b5061044c6104963660046150e4565b610d11565b3480156104a757600080fd5b5061044c6104b6366004614dbf565b610dad565b3480156104c757600080fd5b5061044c6104d6366004614dbf565b610e04565b3480156104e757600080fd5b506104f0610f31565b6040516103d49190615cbc565b34801561050957600080fd5b5061041f6105183660046150e4565b610f42565b34801561052957600080fd5b5061044c610538366004614e13565b610f69565b61044c61054b366004615211565b610fa1565b34801561055c57600080fd5b5061046e61056b3660046150e4565b6115a0565b34801561057c57600080fd5b5061044c61058b366004615120565b611605565b34801561059c57600080fd5b506104f06105ab366004614eee565b6116c5565b3480156105bc57600080fd5b5061041f6105cb366004615211565b6116f0565b3480156105dc57600080fd5b506105f06105eb3660046150e4565b611725565b6040516103d49b9a99989796959493929190615d78565b34801561061357600080fd5b5061044c610622366004614dbf565b611a43565b34801561063357600080fd5b5061041f611b24565b34801561064857600080fd5b506104f06106573660046150e4565b611b33565b34801561066857600080fd5b5061041f611b45565b34801561067d57600080fd5b5061044c61068c366004614e13565b611b54565b34801561069d57600080fd5b506103c76106ac3660046150e4565b611b6f565b3480156106bd57600080fd5b506106d16106cc3660046150e4565b611b84565b6040516103d4929190615cdc565b3480156106eb57600080fd5b506104f06106fa3660046150e4565b611b9d565b34801561070b57600080fd5b506104f061071a3660046150e4565b611bb3565b34801561072b57600080fd5b5061041f61073a3660046150e4565b611bc5565b34801561074b57600080fd5b506104f0611bed565b34801561076057600080fd5b5061044c61076f3660046150e4565b611bf3565b34801561078057600080fd5b506103f2611c2d565b34801561079557600080fd5b506104f06107a4366004614dbf565b611c8e565b3480156107b557600080fd5b5061044c611cd7565b3480156107ca57600080fd5b5061044c6107d93660046150fc565b611d56565b3480156107ea57600080fd5b506107fe6107f93660046150e4565b611f11565b6040516103d491906153a4565b34801561081757600080fd5b506104f0611f7f565b34801561082c57600080fd5b5061044c61083b3660046150e4565b611f85565b34801561084c57600080fd5b5061044c61085b366004615211565b611fbf565b34801561086c57600080fd5b5061041f6121de565b34801561088157600080fd5b506103f26121ed565b34801561089657600080fd5b5061044c6108a5366004614f84565b61224e565b3480156108b657600080fd5b5061044c6108c5366004614ebd565b6125dc565b3480156108d657600080fd5b5061044c6108e53660046151bd565b61263c565b3480156108f657600080fd5b5061044c610905366004614ebd565b6126dc565b34801561091657600080fd5b506103c7610925366004614dbf565b6127aa565b61044c6109383660046151e5565b6127bf565b34801561094957600080fd5b5061044c612a41565b34801561095e57600080fd5b5061097261096d3660046150e4565b612aac565b6040516103d4989796959493929190615cea565b34801561099257600080fd5b506104f0612f43565b3480156109a757600080fd5b5061044c6109b6366004614e53565b612f49565b3480156109c757600080fd5b506107fe6109d63660046150e4565b612f82565b3480156109e757600080fd5b5061044c6109f6366004614f51565b612fe0565b348015610a0757600080fd5b506103f2610a163660046150e4565b613021565b348015610a2757600080fd5b5061044c610a36366004614dbf565b61316b565b348015610a4757600080fd5b5061044c610a56366004614dbf565b6131c2565b348015610a6757600080fd5b506103c7610a76366004614ddb565b613219565b348015610a8757600080fd5b5061044c610a96366004614eee565b613247565b348015610aa757600080fd5b5061044c610ab6366004614dbf565b613301565b348015610ac757600080fd5b5061044c610ad6366004615146565b6133b8565b348015610ae757600080fd5b506104f0610af6366004614dbf565b6139bb565b348015610b0757600080fd5b5061044c610b163660046150e4565b6139cd565b61044c610b293660046151e5565b613be4565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610bdd5780601f10610bb257610100808354040283529160200191610bdd565b820191906000526020600020905b815481529060010190602001808311610bc057829003601f168201915b5050505050905090565b6000610bf282613e1f565b610c175760405162461bcd60e51b8152600401610c0e906159c2565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610c3e82611bc5565b9050806001600160a01b0316836001600160a01b03161415610c725760405162461bcd60e51b8152600401610c0e90615afb565b806001600160a01b0316610c84613e2c565b6001600160a01b03161480610ca05750610ca081610a76613e2c565b610cbc5760405162461bcd60e51b8152600401610c0e906157d2565b610cc68383613e30565b505050565b60408051600180825281830190925260609182919060208083019080368337019050509050600c5481600081518110610d0057fe5b602090810291909101015292915050565b336000908152601a602052604090205460ff1680610d475750610d326121de565b6001600160a01b0316336001600160a01b0316145b610d635760405162461bcd60e51b8152600401610c0e90615c43565b6000818152601160205260409020600f548211801590610d835750600082115b610d9f5760405162461bcd60e51b8152600401610c0e9061595d565b805460ff1916600117905550565b610db5613e2c565b600a546001600160a01b03908116911614610de25760405162461bcd60e51b8152600401610c0e90615a0e565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b610e0c613e2c565b600a546001600160a01b03908116911614610e395760405162461bcd60e51b8152600401610c0e90615a0e565b60005b601854811015610f2d57816001600160a01b031660188281548110610e5d57fe5b6000918252602090912001546001600160a01b03161415610f25576001600160a01b038216600090815260176020526040812055601880546000198101908110610ea357fe5b600091825260209091200154601880546001600160a01b039092169183908110610ec957fe5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506018805480610f0257fe5b600082815260209020810160001990810180546001600160a01b03191690550190555b600101610e3c565b5050565b6000610f3d6002613e9e565b905090565b60188181548110610f4f57fe5b6000918252602090912001546001600160a01b0316905081565b610f7a610f74613e2c565b82613ea9565b610f965760405162461bcd60e51b8152600401610c0e90615b64565b610cc6838383613f2e565b610fa9614a38565b60008381526011602090815260409182902082516101a081018452815460ff8082168352610100820416828501526001600160801b036201000090910481168286015260018301548082166060840152600160801b9004166080820152600282015460a08201526003820180548551818602810186019096528086529194929360c0860193929083018282801561106957602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161104b575b50505050508152602001600482018054806020026020016040519081016040528092919081815260200182805480156110c157602002820191906000526020600020905b8154815260200190600101908083116110ad575b505050918352505060058201805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529382019392918301828280156111555780601f1061112a57610100808354040283529160200191611155565b820191906000526020600020905b81548152906001019060200180831161113857829003601f168201915b505050918352505060068201805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529382019392918301828280156111e95780601f106111be576101008083540402835291602001916111e9565b820191906000526020600020905b8154815290600101906020018083116111cc57829003601f168201915b505050918352505060078201805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815293820193929183018282801561127d5780601f106112525761010080835404028352916020019161127d565b820191906000526020600020905b81548152906001019060200180831161126057829003601f168201915b505050918352505060088201805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529382019392918301828280156113115780601f106112e657610100808354040283529160200191611311565b820191906000526020600020905b8154815290600101906020018083116112f457829003601f168201915b505050918352505060098201805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529382019392918301828280156113a55780601f1061137a576101008083540402835291602001916113a5565b820191906000526020600020905b81548152906001019060200180831161138857829003601f168201915b5050505050815250509050600f5483111580156113c25750600083115b6113de5760405162461bcd60e51b8152600401610c0e90615c99565b6000838152601460205260409020541561140a5760405162461bcd60e51b8152600401610c0e90615b3c565b3461143a6103e861143460105461142e878760a00151613f9590919063ffffffff16565b90613f95565b90613fcf565b146114575760405162461bcd60e51b8152600401610c0e90615c23565b600e5460405163124d91e560e01b81526001600160a01b039091169063124d91e59061148b90339087908790600401615383565b600060405180830381600087803b1580156114a557600080fd5b505af11580156114b9573d6000803e3d6000fd5b5050600e5460405163aab68bdb60e01b81526001600160a01b03909116925063aab68bdb91506114f6903390620186a08801908790600401615383565b600060405180830381600087803b15801561151057600080fd5b505af1158015611524573d6000803e3d6000fd5b5050505060005b8281101561156a5760008481526015602090815260408220805460018181018355918452919092200180546001600160a01b031916331790550161152b565b5061159861158f611588848460a00151613f9590919063ffffffff16565b3490614011565b60195490614053565b601955505050565b6000818152601160209081526040918290206004018054835181840281018401909452808452606093928301828280156115f957602002820191906000526020600020905b8154815260200190600101908083116115e5575b50505050509050919050565b61160d613e2c565b600a546001600160a01b0390811691161461163a5760405162461bcd60e51b8152600401610c0e90615a0e565b6000838152601160205260409020600f54841180159061165a5750600084115b6116765760405162461bcd60e51b8152600401610c0e90615c99565b600381018054600180820183556000928352602080842090920180546001600160a01b0319166001600160a01b0397909716969096179095556004909201805494850181558152209091015550565b6001600160a01b03821660009081526001602052604081206116e79083614078565b90505b92915050565b6015602052816000526040600020818154811061170957fe5b6000918252602090912001546001600160a01b03169150829050565b601160209081526000918252604091829020805460018083015460028085015460058601805489516101009682161587026000190190911693909304601f810189900489028401890190995288835260ff808716999587041697620100009096046001600160801b039081169781861697600160801b909604909116959294909392908301828280156117f95780601f106117ce576101008083540402835291602001916117f9565b820191906000526020600020905b8154815290600101906020018083116117dc57829003601f168201915b5050505060068301805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529495949350908301828280156118895780601f1061185e57610100808354040283529160200191611889565b820191906000526020600020905b81548152906001019060200180831161186c57829003601f168201915b5050505060078301805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529495949350908301828280156119195780601f106118ee57610100808354040283529160200191611919565b820191906000526020600020905b8154815290600101906020018083116118fc57829003601f168201915b5050505060088301805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529495949350908301828280156119a95780601f1061197e576101008083540402835291602001916119a9565b820191906000526020600020905b81548152906001019060200180831161198c57829003601f168201915b5050505060098301805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152949594935090830182828015611a395780601f10611a0e57610100808354040283529160200191611a39565b820191906000526020600020905b815481529060010190602001808311611a1c57829003601f168201915b505050505090508b565b611a4b613e2c565b600a546001600160a01b03908116911614611a785760405162461bcd60e51b8152600401610c0e90615a0e565b60005b601854811015611ad15760188181548110611a9257fe5b6000918252602090912001546001600160a01b0383811691161415611ac95760405162461bcd60e51b8152600401610c0e906154d6565b600101611a7b565b50601880546001810182556000919091527fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e0180546001600160a01b0319166001600160a01b0392909216919091179055565b600e546001600160a01b031681565b60146020526000908152604090205481565b600d546001600160a01b031681565b610cc683838360405180602001604052806000815250612f49565b60136020526000908152604090205460ff1681565b6012602052600090815260409020805460019091015482565b600080611bab600284614084565b509392505050565b60009081526015602052604090205490565b60006116ea82604051806060016040528060298152602001615f4a60299139600291906140a2565b60105481565b611bfb613e2c565b600a546001600160a01b03908116911614611c285760405162461bcd60e51b8152600401610c0e90615a0e565b601055565b60098054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610bdd5780601f10610bb257610100808354040283529160200191610bdd565b60006001600160a01b038216611cb65760405162461bcd60e51b8152600401610c0e9061582f565b6001600160a01b03821660009081526001602052604090206116ea90613e9e565b611cdf613e2c565b600a546001600160a01b03908116911614611d0c5760405162461bcd60e51b8152600401610c0e90615a0e565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b611d5e613e2c565b600a546001600160a01b03908116911614611d8b5760405162461bcd60e51b8152600401610c0e90615a0e565b6000828152601160205260409020600f548311801590611dab5750600083115b611dc75760405162461bcd60e51b8152600401610c0e90615c99565b60005b6003820154811015611f0b57826001600160a01b0316826003018281548110611def57fe5b6000918252602090912001546001600160a01b03161415611f03576003820180546000198101908110611e1e57fe5b6000918252602090912001546003830180546001600160a01b039092169183908110611e4657fe5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555081600301805480611e8157fe5b600082815260209020810160001990810180546001600160a01b031916905590810190915560048301805490918101908110611eb957fe5b9060005260206000200154826004018281548110611ed357fe5b60009182526020909120015560048201805480611eec57fe5b600190038181906000526020600020016000905590555b600101611dca565b50505050565b6000818152601160209081526040918290206003018054835181840281018401909452808452606093928301828280156115f957602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611f565750505050509050919050565b6103e881565b611f8d613e2c565b600a546001600160a01b03908116911614611fba5760405162461bcd60e51b8152600401610c0e90615a0e565b600c55565b336000908152601a602052604090205460ff1680611ff55750611fe06121de565b6001600160a01b0316336001600160a01b0316145b6120115760405162461bcd60e51b8152600401610c0e90615c43565b600f5482111580156120235750600082115b61203f5760405162461bcd60e51b8152600401610c0e90615c99565b60008281526013602052604090205460ff161561206e5760405162461bcd60e51b8152600401610c0e9061573d565b6000828152601460205260409020541561209a5760405162461bcd60e51b8152600401610c0e906155e6565b600082815260116020908152604080832060018101546015909352908320549092600160801b9092046001600160801b0316915b6000821180156120de5750600085115b1561217157612124838783601560008b8152602001908152602001600020600187038154811061210a57fe5b6000918252602090912001546001600160a01b03166140b9565b600086815260156020526040902080548061213b57fe5b600082815260209020810160001990810180546001600160a01b03191690559081019091559485019491909101906001016120ce565b6001840180546001600160801b03600160801b8083048216850182160291811691909117909155845484821683016201000090910490911614156121bb57835460ff191660011784555b816121d6576000868152601460205260409020610384420190555b505050505050565b600a546001600160a01b031690565b60078054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610bdd5780601f10610bb257610100808354040283529160200191610bdd565b612256613e2c565b600a546001600160a01b039081169116146122835760405162461bcd60e51b8152600401610c0e90615a0e565b85518751146122a45760405162461bcd60e51b8152600401610c0e90615576565b8a6001600160801b0316896001600160801b031611156122d65760405162461bcd60e51b8152600401610c0e90615c7a565b604051806101a00160405280600060ff168152602001600060ff1681526020018c6001600160801b031681526020018b6001600160801b0316815260200160006001600160801b031681526020018981526020018881526020018781526020018681526020018581526020018481526020018381526020018281525060116000600f54600101815260200190815260200160002060008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548160ff021916908360ff16021790555060408201518160000160026101000a8154816001600160801b0302191690836001600160801b0316021790555060608201518160010160006101000a8154816001600160801b0302191690836001600160801b0316021790555060808201518160010160106101000a8154816001600160801b0302191690836001600160801b0316021790555060a0820151816002015560c0820151816003019080519060200190612459929190614ac1565b5060e08201518051612475916004840191602090910190614b26565b506101008201518051612492916005840191602090910190614b6d565b5061012082015180516124af916006840191602090910190614b6d565b5061014082015180516124cc916007840191602090910190614b6d565b5061016082015180516124e9916008840191602090910190614b6d565b506101808201518051612506916009840191602090910190614b6d565b5050600f8054600190810180835560009081526013602052604090819020805460ff1916909217909155600e549154905163aab68bdb60e01b81526001600160a01b03909216925063aab68bdb916125649133918e90600401615359565b600060405180830381600087803b15801561257e57600080fd5b505af1158015612592573d6000803e3d6000fd5b505050507f77628c9166aca2fc4ccb8b7681fa345c93f54fb929f857d05cfebbfb665bad02600f546040516125c79190615cbc565b60405180910390a15050505050505050505050565b6125e4613e2c565b600a546001600160a01b039081169116146126115760405162461bcd60e51b8152600401610c0e90615a0e565b6001600160a01b03919091166000908152601a60205260409020805460ff1916911515919091179055565b336000908152601a602052604090205460ff1680612672575061265d6121de565b6001600160a01b0316336001600160a01b0316145b61268e5760405162461bcd60e51b8152600401610c0e90615c43565b600f5482111580156126a05750600082115b6126bc5760405162461bcd60e51b8152600401610c0e9061595d565b600091825260136020526040909120805460ff1916911515919091179055565b6126e4613e2c565b6001600160a01b0316826001600160a01b031614156127155760405162461bcd60e51b8152600401610c0e90615706565b8060056000612722613e2c565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155612766613e2c565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161279e9190615429565b60405180910390a35050565b601a6020526000908152604090205460ff1681565b600082815260116020526040902060018101548154600f54600160801b9092046001600160801b039081169262010000909204169085118015906128035750600085115b61281f5760405162461bcd60e51b8152600401610c0e90615c99565b825460ff16156128415760405162461bcd60e51b8152600401610c0e9061566c565b60008581526013602052604090205460ff16156128705760405162461bcd60e51b8152600401610c0e90615adb565b6000858152601460205260409020541580159061289a575060008581526014602052604090205442115b6128b65760405162461bcd60e51b8152600401610c0e90615489565b600283015434906128d0906001600160801b038716613f95565b146128ed5760405162461bcd60e51b8152600401610c0e90615c23565b806001600160801b03168483016001600160801b031611156129215760405162461bcd60e51b8152600401610c0e906158a0565b600183015460008681526016602090815260408083203384529091529020546001600160801b039182169161295891908716614053565b11156129765760405162461bcd60e51b8152600401610c0e90615558565b60005b846001600160801b0316816001600160801b031610156129b0576129a88387836001600160801b0316336140b9565b600101612979565b506001830180546001600160801b03600160801b808304821688018216029181169190911790915560008681526016602090815260408083203384529091529020546129fd918616614053565b60008681526016602090815260408083203384529091529020558184016001600160801b039081169082161415612a3a57825460ff191660011783555b5050505050565b612a49613e2c565b600a546001600160a01b03908116911614612a765760405162461bcd60e51b8152600401610c0e90615a0e565b601954604051339180156108fc02916000818181858888f19350505050158015612aa4573d6000803e3d6000fd5b506000601955565b60008060006060806060806060612ac1614bda565b506000898152601260209081526040918290208251808401909352805483526001015490820152612af0614a38565b815160009081526011602090815260409182902082516101a081018452815460ff8082168352610100820416828501526001600160801b036201000090910481168286015260018301548082166060840152600160801b9004166080820152600282015460a08201526003820180548551818602810186019096528086529194929360c08601939290830182828015612bb257602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612b94575b5050505050815260200160048201805480602002602001604051908101604052809291908181526020018280548015612c0a57602002820191906000526020600020905b815481526020019060010190808311612bf6575b505050918352505060058201805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152938201939291830182828015612c9e5780601f10612c7357610100808354040283529160200191612c9e565b820191906000526020600020905b815481529060010190602001808311612c8157829003601f168201915b505050918352505060068201805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152938201939291830182828015612d325780601f10612d0757610100808354040283529160200191612d32565b820191906000526020600020905b815481529060010190602001808311612d1557829003601f168201915b505050918352505060078201805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152938201939291830182828015612dc65780601f10612d9b57610100808354040283529160200191612dc6565b820191906000526020600020905b815481529060010190602001808311612da957829003601f168201915b505050918352505060088201805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152938201939291830182828015612e5a5780601f10612e2f57610100808354040283529160200191612e5a565b820191906000526020600020905b815481529060010190602001808311612e3d57829003601f168201915b505050918352505060098201805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152938201939291830182828015612eee5780601f10612ec357610100808354040283529160200191612eee565b820191906000526020600020905b815481529060010190602001808311612ed157829003601f168201915b5050505050815250509050816000015182602001518260400151836101000151846101200151856101400151866101600151876101800151995099509950995099509950995099505050919395975091939597565b600f5481565b612f5a612f54613e2c565b83613ea9565b612f765760405162461bcd60e51b8152600401610c0e90615b64565b611f0b84848484614176565b604080516001808252818301909252606091829190602080830190803683375050600b5482519293506001600160a01b031691839150600090612fc157fe5b6001600160a01b03909216602092830291909101909101529050919050565b612fe8613e2c565b600a546001600160a01b039081169116146130155760405162461bcd60e51b8152600401610c0e90615a0e565b61301e816141a9565b50565b606061302c82613e1f565b6130485760405162461bcd60e51b8152600401610c0e90615a8c565b60008281526008602090815260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452606093928301828280156130dd5780601f106130b2576101008083540402835291602001916130dd565b820191906000526020600020905b8154815290600101906020018083116130c057829003601f168201915b505060095493945050505060026000196101006001841615020190911604613106579050610b4c565b80511561313857600981604051602001613121929190615287565b604051602081830303815290604052915050610b4c565b6009613143846141bc565b604051602001613154929190615287565b604051602081830303815290604052915050919050565b613173613e2c565b600a546001600160a01b039081169116146131a05760405162461bcd60e51b8152600401610c0e90615a0e565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6131ca613e2c565b600a546001600160a01b039081169116146131f75760405162461bcd60e51b8152600401610c0e90615a0e565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61324f613e2c565b600a546001600160a01b0390811691161461327c5760405162461bcd60e51b8152600401610c0e90615a0e565b6103e881111561329e5760405162461bcd60e51b8152600401610c0e90615bec565b60005b601854811015610cc657826001600160a01b0316601882815481106132c257fe5b6000918252602090912001546001600160a01b031614156132f9576001600160a01b03831660009081526017602052604090208290555b6001016132a1565b613309613e2c565b600a546001600160a01b039081169116146133365760405162461bcd60e51b8152600401610c0e90615a0e565b6001600160a01b03811661335c5760405162461bcd60e51b8152600401610c0e906155a0565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b336000908152601a602052604090205460ff16806133ee57506133d96121de565b6001600160a01b0316336001600160a01b0316145b61340a5760405162461bcd60e51b8152600401610c0e90615c43565b613412614a38565b60008681526011602090815260409182902082516101a081018452815460ff8082168352610100820416828501526001600160801b036201000090910481168286015260018301548082166060840152600160801b9004166080820152600282015460a08201526003820180548551818602810186019096528086529194929360c086019392908301828280156134d257602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116134b4575b505050505081526020016004820180548060200260200160405190810160405280929190818152602001828054801561352a57602002820191906000526020600020905b815481526020019060010190808311613516575b505050918352505060058201805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529382019392918301828280156135be5780601f10613593576101008083540402835291602001916135be565b820191906000526020600020905b8154815290600101906020018083116135a157829003601f168201915b505050918352505060068201805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529382019392918301828280156136525780601f1061362757610100808354040283529160200191613652565b820191906000526020600020905b81548152906001019060200180831161363557829003601f168201915b505050918352505060078201805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529382019392918301828280156136e65780601f106136bb576101008083540402835291602001916136e6565b820191906000526020600020905b8154815290600101906020018083116136c957829003601f168201915b505050918352505060088201805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815293820193929183018282801561377a5780601f1061374f5761010080835404028352916020019161377a565b820191906000526020600020905b81548152906001019060200180831161375d57829003601f168201915b505050918352505060098201805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815293820193929183018282801561380e5780601f106137e35761010080835404028352916020019161380e565b820191906000526020600020905b8154815290600101906020018083116137f157829003601f168201915b5050505050815250509050806000015160ff166001146138405760405162461bcd60e51b8152600401610c0e9061590a565b81858560008161384c57fe5b905060200281019061385e9190615e32565b90501461387d5760405162461bcd60e51b8152600401610c0e906154b3565b60005b848110156139785760005b8686600081811061389857fe5b90506020028101906138aa9190615e32565b905081101561396f57600d546001600160a01b031663e56e34798686848181106138d057fe5b905060200201358989868181106138e357fe5b90506020028101906138f59190615e32565b858181106138ff57fe5b90506020020160208101906139149190614dbf565b6040518363ffffffff1660e01b8152600401613931929190615cc5565b600060405180830381600087803b15801561394b57600080fd5b505af115801561395f573d6000803e3d6000fd5b50506001909201915061388b9050565b50600101613880565b5060405186907fb3e821bfa4e118cf1cac28128930a4e53e59dd51d9e30c95ee100e4d3b0d2ef2906139ab908790615cbc565b60405180910390a2505050505050565b60176020526000908152604090205481565b6000818152601160205260409020600f5482118015906139ed5750600082115b613a095760405162461bcd60e51b8152600401610c0e9061595d565b805460ff166001148015613a2457508054610100900460ff16155b613a405760405162461bcd60e51b8152600401610c0e906157ad565b613a4982614297565b613a655760405162461bcd60e51b8152600401610c0e9061560f565b805461ff00191661010017815560028101546001820154600091613a9a916001600160801b03600160801b9091041690613f95565b90506000805b601854811015613b4857613af06103e86114346017600060188681548110613ac457fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020548690613f95565b915060188181548110613aff57fe5b60009182526020822001546040516001600160a01b039091169184156108fc02918591818181858888f19350505050158015613b3f573d6000803e3d6000fd5b50600101613aa0565b5060005b6003840154811015612a3a57613b8a6103e8611434866004018481548110613b7057fe5b906000526020600020015486613f9590919063ffffffff16565b9150836003018181548110613b9b57fe5b60009182526020822001546040516001600160a01b039091169184156108fc02918591818181858888f19350505050158015613bdb573d6000803e3d6000fd5b50600101613b4c565b600082815260116020526040902060018101548154600f54600160801b9092046001600160801b03908116926201000090920416908511801590613c285750600085115b613c445760405162461bcd60e51b8152600401610c0e90615c99565b60008581526013602052604090205460ff1615613c735760405162461bcd60e51b8152600401610c0e90615adb565b60028301543490613c8d906001600160801b038716613f95565b14613caa5760405162461bcd60e51b8152600401610c0e90615c23565b825460ff1615613ccc5760405162461bcd60e51b8152600401610c0e9061566c565b600e5460405163124d91e560e01b81526001600160a01b039091169063124d91e590613d0090339089908990600401615359565b600060405180830381600087803b158015613d1a57600080fd5b505af1158015613d2e573d6000803e3d6000fd5b5050600e5460405163aab68bdb60e01b81526001600160a01b03909116925063aab68bdb9150613d6b903390620186a08a01908990600401615359565b600060405180830381600087803b158015613d8557600080fd5b505af1158015613d99573d6000803e3d6000fd5b5050505060005b846001600160801b0316816001600160801b03161015613dd757613dcf8387836001600160801b0316336140b9565b600101613da0565b506001830180546001600160801b03600160801b808304821688018216029181169190911790915582850181169082161415612a3a57825460ff191660011783555050505050565b60006116ea60028361434e565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190613e6582611bc5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006116ea8261435a565b6000613eb482613e1f565b613ed05760405162461bcd60e51b8152600401610c0e90615761565b6000613edb83611bc5565b9050806001600160a01b0316846001600160a01b03161480613f165750836001600160a01b0316613f0b84610be7565b6001600160a01b0316145b80613f265750613f268185613219565b949350505050565b613f36614bda565b5060008181526012602090815260408083208151808301835281548082526001909201548185015290845260139092529091205460ff1615613f8a5760405162461bcd60e51b8152600401610c0e90615879565b611f0b84848461435e565b600082613fa4575060006116ea565b82820282848281613fb157fe5b04146116e75760405162461bcd60e51b8152600401610c0e90615981565b60006116e783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061446c565b60006116e783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506144a3565b6000828201838110156116e75760405162461bcd60e51b8152600401610c0e9061568b565b60006116e783836144cf565b60008080806140938686614514565b909450925050505b9250929050565b60006140af848484614570565b90505b9392505050565b604051806040016040528084815260200183866001600160801b031601600101815250601260006140e8610f31565b60010181526020019081526020016000206000820151816000015560208201518160010155905050827f5420392aab8a9f3a70c0145321ff58bc86c3da3596336224396de59f430fc0f583866001600160801b031601600101614149610f31565b60010160405161415a929190615cdc565b60405180910390a2611f0b8161416e610f31565b6001016145cf565b614181848484613f2e565b61418d84848484614693565b611f0b5760405162461bcd60e51b8152600401610c0e90615506565b8051610f2d906009906020840190614b6d565b6060816141e157506040805180820190915260018152600360fc1b6020820152610b4c565b8160005b81156141f957600101600a820491506141e5565b60608167ffffffffffffffff8111801561421257600080fd5b506040519080825280601f01601f19166020018201604052801561423d576020820181803683370190505b50859350905060001982015b831561428e57600a840660300160f81b8282806001900393508151811061426c57fe5b60200101906001600160f81b031916908160001a905350600a84049350614249565b50949350505050565b600081815260116020526040812081805b6018548110156142fc576142f260176000601884815481106142c657fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020548390614053565b91506001016142a8565b5060005b60048301548110156143425761433883600401828154811061431e57fe5b90600052602060002001548361405390919063ffffffff16565b9150600101614300565b506103e8149392505050565b60006116e78383614772565b5490565b826001600160a01b031661437182611bc5565b6001600160a01b0316146143975760405162461bcd60e51b8152600401610c0e90615a43565b6001600160a01b0382166143bd5760405162461bcd60e51b8152600401610c0e906156c2565b6143c8838383610cc6565b6143d3600082613e30565b6001600160a01b03831660009081526001602052604090206143f5908261478a565b506001600160a01b03821660009081526001602052604090206144189082614796565b50614425600282846147a2565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000818361448d5760405162461bcd60e51b8152600401610c0e9190615434565b50600083858161449957fe5b0495945050505050565b600081848411156144c75760405162461bcd60e51b8152600401610c0e9190615434565b505050900390565b815460009082106144f25760405162461bcd60e51b8152600401610c0e90615447565b82600001828154811061450157fe5b9060005260206000200154905092915050565b8154600090819083106145395760405162461bcd60e51b8152600401610c0e906158c8565b600084600001848154811061454a57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816145a05760405162461bcd60e51b8152600401610c0e9190615434565b508460000160018203815481106145b357fe5b9060005260206000209060020201600101549150509392505050565b6001600160a01b0382166145f55760405162461bcd60e51b8152600401610c0e90615928565b6145fe81613e1f565b1561461b5760405162461bcd60e51b8152600401610c0e90615635565b61462760008383610cc6565b6001600160a01b03821660009081526001602052604090206146499082614796565b50614656600282846147a2565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006146a7846001600160a01b03166147b8565b6146b357506001613f26565b606061473b630a85bd0160e11b6146c8613e2c565b8887876040516024016146de949392919061531c565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001615f18603291396001600160a01b03881691906147be565b90506000818060200190518101906147539190614f35565b6001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b60006116e783836147cd565b60006116e78383614893565b60006140af84846001600160a01b0385166148dd565b3b151590565b60606140af8484600085614974565b60008181526001830160205260408120548015614889578354600019808301919081019060009087908390811061480057fe5b906000526020600020015490508087600001848154811061481d57fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061484d57fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506116ea565b60009150506116ea565b600061489f8383614772565b6148d5575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556116ea565b5060006116ea565b6000828152600184016020526040812054806149425750506040805180820182528381526020808201848152865460018181018955600089815284812095516002909302909501918255915190820155865486845281880190925292909120556140b2565b8285600001600183038154811061495557fe5b90600052602060002090600202016001018190555060009150506140b2565b606061497f856147b8565b61499b5760405162461bcd60e51b8152600401610c0e90615bb5565b60006060866001600160a01b031685876040516149b8919061526b565b60006040518083038185875af1925050503d80600081146149f5576040519150601f19603f3d011682016040523d82523d6000602084013e6149fa565b606091505b50915091508115614a0e579150613f269050565b805115614a1e5780518082602001fd5b8360405162461bcd60e51b8152600401610c0e9190615434565b604051806101a00160405280600060ff168152602001600060ff16815260200160006001600160801b0316815260200160006001600160801b0316815260200160006001600160801b0316815260200160008152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001606081525090565b828054828255906000526020600020908101928215614b16579160200282015b82811115614b1657825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190614ae1565b50614b22929150614bf4565b5090565b828054828255906000526020600020908101928215614b61579160200282015b82811115614b61578251825591602001919060010190614b46565b50614b22929150614c13565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614bae57805160ff1916838001178555614b61565b82800160010185558215614b615791820182811115614b61578251825591602001919060010190614b46565b604051806040016040528060008152602001600081525090565b5b80821115614b225780546001600160a01b0319168155600101614bf5565b5b80821115614b225760008155600101614c14565b600082601f830112614c38578081fd5b8135614c4b614c4682615ea0565b615e79565b818152915060208083019084810181840286018201871015614c6c57600080fd5b60005b84811015614c94578135614c8281615eec565b84529282019290820190600101614c6f565b505050505092915050565b60008083601f840112614cb0578081fd5b50813567ffffffffffffffff811115614cc7578182fd5b602083019150836020808302850101111561409b57600080fd5b600082601f830112614cf1578081fd5b8135614cff614c4682615ea0565b818152915060208083019084810181840286018201871015614d2057600080fd5b60005b84811015614c9457813584529282019290820190600101614d23565b600082601f830112614d4f578081fd5b813567ffffffffffffffff811115614d65578182fd5b614d78601f8201601f1916602001615e79565b9150808252836020828501011115614d8f57600080fd5b8060208401602084013760009082016020015292915050565b80356001600160801b03811681146116ea57600080fd5b600060208284031215614dd0578081fd5b81356116e781615eec565b60008060408385031215614ded578081fd5b8235614df881615eec565b91506020830135614e0881615eec565b809150509250929050565b600080600060608486031215614e27578081fd5b8335614e3281615eec565b92506020840135614e4281615eec565b929592945050506040919091013590565b60008060008060808587031215614e68578081fd5b8435614e7381615eec565b93506020850135614e8381615eec565b925060408501359150606085013567ffffffffffffffff811115614ea5578182fd5b614eb187828801614d3f565b91505092959194509250565b60008060408385031215614ecf578182fd5b8235614eda81615eec565b915060208301358015158114614e08578182fd5b60008060408385031215614f00578182fd5b8235614f0b81615eec565b946020939093013593505050565b600060208284031215614f2a578081fd5b81356116e781615f01565b600060208284031215614f46578081fd5b81516116e781615f01565b600060208284031215614f62578081fd5b813567ffffffffffffffff811115614f78578182fd5b613f2684828501614d3f565b60008060008060008060008060008060006101608c8e031215614fa5578889fd5b614faf8d8d614da8565b9a50614fbe8d60208e01614da8565b9950614fcd8d60408e01614da8565b985060608c0135975067ffffffffffffffff8060808e01351115614fef578788fd5b614fff8e60808f01358f01614c28565b97508060a08e01351115615011578687fd5b6150218e60a08f01358f01614ce1565b96508060c08e01351115615033578586fd5b6150438e60c08f01358f01614d3f565b95508060e08e01351115615055578485fd5b6150658e60e08f01358f01614d3f565b9450806101008e01351115615078578384fd5b6150898e6101008f01358f01614d3f565b9350806101208e0135111561509c578283fd5b6150ad8e6101208f01358f01614d3f565b9250806101408e013511156150c0578182fd5b506150d28d6101408e01358e01614d3f565b90509295989b509295989b9093969950565b6000602082840312156150f5578081fd5b5035919050565b6000806040838503121561510e578182fd5b823591506020830135614e0881615eec565b600080600060608486031215615134578081fd5b833592506020840135614e4281615eec565b60008060008060006060868803121561515d578283fd5b85359450602086013567ffffffffffffffff8082111561517b578485fd5b61518789838a01614c9f565b9096509450604088013591508082111561519f578283fd5b506151ac88828901614c9f565b969995985093965092949392505050565b600080604083850312156151cf578182fd5b8235915060208301358015158114614e08578182fd5b600080604083850312156151f7578182fd5b823591506152088460208501614da8565b90509250929050565b60008060408385031215615223578182fd5b50508035926020909101359150565b6000815180845261524a816020860160208601615ec0565b601f01601f19169290920160200192915050565b6001600160801b03169052565b6000825161527d818460208701615ec0565b9190910192915050565b60008084546001808216600081146152a657600181146152bd576152ec565b60ff198316865260028304607f16860193506152ec565b600283048886526020808720875b838110156152e45781548a8201529085019082016152cb565b505050860193505b50505083516152ff818360208801615ec0565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061534f90830184615232565b9695505050505050565b6001600160a01b0393909316835260208301919091526001600160801b0316604082015260600190565b6001600160a01b039390931683526020830191909152604082015260600190565b6020808252825182820181905260009190848201906040850190845b818110156153e55783516001600160a01b0316835292840192918401916001016153c0565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156153e55783518352928401929184019160010161540d565b901515815260200190565b6000602082526116e76020830184615232565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b60208082526010908201526f213abc903bb4b73237bb9010b7b832b760811b604082015260600190565b60208082526009908201526862616420617272617960b81b604082015260600190565b6020808252601690820152756d656d626572732065786973747320616c726561647960501b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600490820152632162757960e01b604082015260600190565b60208082526010908201526f30b93930bcb99010b9b0b6b2903632b760811b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252600f908201526e2137bc103234b9ba39379037bb32b960891b604082015260600190565b6020808252600c908201526b39bab690109e90189818129760a11b604082015260600190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b602080825260059082015264216c69766560d81b604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252600a9082015269109bde081b1bd8dad95960b21b604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252600b908201526a216469737472696275746560a81b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b6020808252600d908201526c109bde081a5cc81b1bd8dad959609a1b604082015260600190565b6020808252600e908201526d546f6f206d616e7920626f78657360901b604082015260600190565b60208082526022908201527f456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b6020808252600490820152636c69766560e01b604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252600a908201526924a21010b2bc34b9ba1760b11b604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b6020808252600690820152651b1bd8dad95960d21b604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252600e908201526d43616e6e6f74207265736572766560901b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526018908201527f7368617265206d7573742062652062656c6f7720313030300000000000000000604082015260600190565b60208082526006908201526521707269636560d01b604082015260600190565b6020808252601a908201527f4e6f7420617574686f726973656420746f20657865637574652e000000000000604082015260600190565b602080825260059082015264085b5a5b9d60da1b604082015260600190565b60208082526009908201526812510808595e1a5cdd60ba1b604082015260600190565b90815260200190565b9182526001600160a01b0316602082015260400190565b918252602082015260400190565b60006101008a83528960208401526001600160801b0389166040840152806060840152615d1981840189615232565b90508281036080840152615d2d8188615232565b905082810360a0840152615d418187615232565b905082810360c0840152615d558186615232565b905082810360e0840152615d698185615232565b9b9a5050505050505050505050565b600061016060ff8e16835260ff8d1660208401526001600160801b038c166040840152615da8606084018c61525e565b615db5608084018b61525e565b8860a08401528060c0840152615dcd81840189615232565b905082810360e0840152615de18188615232565b9050828103610100840152615df68187615232565b9050828103610120840152615e0b8186615232565b9050828103610140840152615e208185615232565b9e9d5050505050505050505050505050565b6000808335601e19843603018112615e48578283fd5b83018035915067ffffffffffffffff821115615e62578283fd5b602090810192508102360382131561409b57600080fd5b60405181810167ffffffffffffffff81118282101715615e9857600080fd5b604052919050565b600067ffffffffffffffff821115615eb6578081fd5b5060209081020190565b60005b83811015615edb578181015183820152602001615ec3565b83811115611f0b5750506000910152565b6001600160a01b038116811461301e57600080fd5b6001600160e01b03198116811461301e57600080fdfe4552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656ea2646970667358221220d33d0b4bd0dd0cc72c70e85fa170e3b644508fa00d03d745c24620755d09a8db64736f6c634300060c0033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.