Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
24 EGG
Holders
19
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 EGGLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Eggs
Compiler Version
v0.7.4+commit.3f05b770
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: MIT // Degen'$ Farm: Collectible NFT game (https://degens.farm) pragma solidity ^0.7.4; pragma experimental ABIEncoderV2; import "./ERC721URIStorage.sol"; contract Eggs is ERC721URIStorage { mapping(address => bool) public trusted_markets; event TrustedMarket(address indexed _market, bool _state); constructor() ERC721("Degen$ Farm Eggs", "EGG") { } function mint( address to, uint256 tokenId ) external onlyOwner { _mint(to, tokenId); } function setTrustedMarket(address _market, bool _state) external onlyOwner { trusted_markets[_market] = _state; emit TrustedMarket(_market, _state); } function getUsersTokens(address _owner) external view returns (uint256[] memory) { //We can return only uint256[] memory, but we cant use push // with memory arrays. //https://docs.soliditylang.org/en/v0.7.4/types.html#allocating-memory-arrays uint256 n = balanceOf(_owner); uint256[] memory result = new uint256[](n); for (uint16 i=0; i < n; i++) { result[i]=tokenOfOwnerByIndex(_owner, i); } return result; } function baseURI() public view override returns (string memory) { return 'http://degens.farm/meta/eggs/'; } /** * @dev Overriding standard function for gas safe traiding with trusted parts like DegenFarm * Requirements: * * - `from` and `to` cannot be the zero address. * - `caller` must be added to trustedMarkets. */ function transferFrom(address from, address to, uint256 tokenId) public override { if (trusted_markets[msg.sender]) { _transfer(from, to, tokenId); } else { super.transferFrom(from, to, tokenId); } } function burn(uint256 tokenId) external onlyOwner { _burn(tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address 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; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Library for managing an enumerable variant of Solidity's * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`] * type. * * Maps have the following properties: * * - Entries are added, removed, and checked for existence in constant time * (O(1)). * - Entries are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableMap for EnumerableMap.UintToAddressMap; * * // Declare a set state variable * EnumerableMap.UintToAddressMap private myMap; * } * ``` * * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are * supported. */ library EnumerableMap { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Map type with // bytes32 keys and values. // The Map implementation uses private functions, and user-facing // implementations (such as Uint256ToAddressMap) are just wrappers around // the underlying Map. // This means that we can only create new EnumerableMaps for types that fit // in bytes32. struct MapEntry { bytes32 _key; bytes32 _value; } struct Map { // Storage of map keys and values MapEntry[] _entries; // Position of the entry defined by a key in the `entries` array, plus 1 // because index 0 means a key is not in the map. mapping (bytes32 => uint256) _indexes; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) { // We read and store the key's index to prevent multiple reads from the same storage slot uint256 keyIndex = map._indexes[key]; if (keyIndex == 0) { // Equivalent to !contains(map, key) map._entries.push(MapEntry({ _key: key, _value: value })); // The entry is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value map._indexes[key] = map._entries.length; return true; } else { map._entries[keyIndex - 1]._value = value; return false; } } /** * @dev Removes a key-value pair from a map. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function _remove(Map storage map, bytes32 key) private returns (bool) { // We read and store the key's index to prevent multiple reads from the same storage slot uint256 keyIndex = map._indexes[key]; if (keyIndex != 0) { // Equivalent to contains(map, key) // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one // in the array, and then remove the last entry (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = keyIndex - 1; uint256 lastIndex = map._entries.length - 1; // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. MapEntry storage lastEntry = map._entries[lastIndex]; // Move the last entry to the index where the entry to delete is map._entries[toDeleteIndex] = lastEntry; // Update the index for the moved entry map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved entry was stored map._entries.pop(); // Delete the index for the deleted slot delete map._indexes[key]; return true; } else { return false; } } /** * @dev Returns true if the key is in the map. O(1). */ function _contains(Map storage map, bytes32 key) private view returns (bool) { return map._indexes[key] != 0; } /** * @dev Returns the number of key-value pairs in the map. O(1). */ function _length(Map storage map) private view returns (uint256) { return map._entries.length; } /** * @dev Returns the key-value pair stored at position `index` in the map. O(1). * * Note that there are no guarantees on the ordering of entries inside the * array, and it may change when more entries are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) { require(map._entries.length > index, "EnumerableMap: index out of bounds"); MapEntry storage entry = map._entries[index]; return (entry._key, entry._value); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. */ function _tryGet(Map storage map, bytes32 key) private view returns (bool, bytes32) { uint256 keyIndex = map._indexes[key]; if (keyIndex == 0) return (false, 0); // Equivalent to contains(map, key) return (true, map._entries[keyIndex - 1]._value); // All indexes are 1-based } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function _get(Map storage map, bytes32 key) private view returns (bytes32) { uint256 keyIndex = map._indexes[key]; require(keyIndex != 0, "EnumerableMap: nonexistent key"); // Equivalent to contains(map, key) return map._entries[keyIndex - 1]._value; // All indexes are 1-based } /** * @dev Same as {_get}, with a custom error message when `key` is not in the map. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {_tryGet}. */ function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) { uint256 keyIndex = map._indexes[key]; require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key) return map._entries[keyIndex - 1]._value; // All indexes are 1-based } // UintToAddressMap struct UintToAddressMap { Map _inner; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) { return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) { return _remove(map._inner, bytes32(key)); } /** * @dev Returns true if the key is in the map. O(1). */ function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) { return _contains(map._inner, bytes32(key)); } /** * @dev Returns the number of elements in the map. O(1). */ function length(UintToAddressMap storage map) internal view returns (uint256) { return _length(map._inner); } /** * @dev Returns the element stored at position `index` in the set. O(1). * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) { (bytes32 key, bytes32 value) = _at(map._inner, index); return (uint256(key), address(uint160(uint256(value)))); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. * * _Available since v3.4._ */ function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) { (bool success, bytes32 value) = _tryGet(map._inner, bytes32(key)); return (success, address(uint160(uint256(value)))); } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function get(UintToAddressMap storage map, uint256 key) internal view returns (address) { return address(uint160(uint256(_get(map._inner, bytes32(key))))); } /** * @dev Same as {get}, with a custom error message when `key` is not in the map. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryGet}. */ function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) { return address(uint160(uint256(_get(map._inner, bytes32(key), errorMessage)))); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ abstract contract ERC165 is IERC165 { /* * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7 */ bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; constructor () 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 virtual override returns (bool) { return _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal virtual { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./Context.sol"; import "./IERC721.sol"; import "./IERC721Metadata.sol"; import "./IERC721Enumerable.sol"; import "./IERC721Receiver.sol"; import "./ERC165.sol"; import "./SafeMath.sol"; import "./Address.sol"; import "./EnumerableSet.sol"; import "./EnumerableMap.sol"; import "./Strings.sol"; /** * @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 virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _holderTokens[owner].length(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token"); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI. return string(abi.encodePacked(base, tokenId.toString())); } /** * @dev Returns the base URI set via {_setBaseURI}. This will be * automatically added as a prefix in {tokenURI} to each token's URI, or * to the token ID if no specific URI is set for that token ID. */ function baseURI() public view virtual returns (string memory) { return _baseURI; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { return _holderTokens[owner].at(index); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds return _tokenOwners.length(); } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { (uint256 tokenId, ) = _tokenOwners.at(index); return tokenId; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require(_msgSender() == owner || ERC721.isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _tokenOwners.contains(tokenId); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || ERC721.isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: d* * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual { _mint(to, tokenId); require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _holderTokens[to].add(tokenId); _tokenOwners.set(tokenId, to); emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); // internal owner _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); // Clear metadata (if any) if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } _holderTokens[owner].remove(tokenId); _tokenOwners.remove(tokenId); emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); // internal owner require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _holderTokens[from].remove(tokenId); _holderTokens[to].add(tokenId); _tokenOwners.set(tokenId, to); emit Transfer(from, to, tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev Internal function to set the base URI for all token IDs. It is * automatically added as a prefix to the value returned in {tokenURI}, * or to the token ID if {tokenURI} is empty. */ function _setBaseURI(string memory baseURI_) internal virtual { _baseURI = baseURI_; } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data) private returns (bool) { if (!to.isContract()) { return true; } bytes memory returndata = to.functionCall(abi.encodeWithSelector( IERC721Receiver(to).onERC721Received.selector, _msgSender(), from, tokenId, _data ), "ERC721: transfer to non ERC721Receiver implementer"); bytes4 retval = abi.decode(returndata, (bytes4)); return (retval == _ERC721_RECEIVED); } function _approve(address to, uint256 tokenId) private { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); // internal owner } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.4; pragma experimental ABIEncoderV2; import "./ERC721.sol"; import "./Operators.sol"; /** * @dev this contract used just for override some * OpneZeppelin tokenURI() behavior * so we need redeclare _tokenURIs becouse in OpenZeppelin * ERC721 it has private visibility */ abstract contract ERC721URIStorage is ERC721, Operators { using Strings for uint256; // Optional mapping for token URIs mapping (uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { //return string(abi.encodePacked(base, _tokenURI)); //Due customer requirements return _tokenURI; } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual override { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @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 override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } function setURI(uint256 tokenId, string calldata _tokenURI) external onlyOperator { _setTokenURI(tokenId, _tokenURI); } function setURIBatch(uint256[] calldata tokenId, string[] calldata _tokenURI) external onlyOperator { require(tokenId.length == _tokenURI.length, "tokenId length is not equal to _tokenURI length"); for (uint i = 0; i < tokenId.length; i++) { _setTokenURI(tokenId[i], _tokenURI[i]); } } address public signerAddress; function setSigner(address _newSigner) external onlyOwner { signerAddress = _newSigner; } function hashArguments(uint256 tokenId, string calldata _tokenURI) public pure returns (bytes32 msgHash) { msgHash = keccak256(abi.encode(tokenId, _tokenURI)); } function getSigner(uint256 tokenId, string calldata _tokenURI, uint8 _v, bytes32 _r, bytes32 _s) public pure returns (address) { bytes32 msgHash = hashArguments(tokenId, _tokenURI); return ecrecover(msgHash, _v, _r, _s); } function isValidSignature(uint256 tokenId, string calldata _tokenURI, uint8 _v, bytes32 _r, bytes32 _s) public view returns (bool) { return getSigner(tokenId, _tokenURI, _v, _r, _s) == signerAddress; } /** * @dev Sets token URI using signature * This method can be called by anyone, who has signature, * that was created by signer role */ function setURISigned(uint256 tokenId, string calldata _tokenURI, uint8 _v, bytes32 _r, bytes32 _s) external { require(isValidSignature(tokenId, _tokenURI, _v, _r, _s), "Invalid signature"); _setTokenURI(tokenId, _tokenURI); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; import "./IERC165.sol"; /** * @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; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; import "./IERC721.sol"; /** * @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); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; import "./IERC721.sol"; /** * @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); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4); }
// SPDX-License-Identifier: MIT // Degen'$ Farm: Collectible NFT game (https://degens.farm) pragma solidity ^0.7.4; import "./IERC20.sol"; import "./Ownable.sol"; contract Operators is Ownable { mapping (address=>bool) operatorAddress; modifier onlyOperator() { require(isOperator(msg.sender), "Access denied"); _; } function isOwner(address _addr) public view returns (bool) { return owner() == _addr; } function isOperator(address _addr) public view returns (bool) { return operatorAddress[_addr] || isOwner(_addr); } function addOperator(address _newOperator) external onlyOwner { require(_newOperator != address(0), "New operator is empty"); operatorAddress[_newOperator] = true; } function removeOperator(address _oldOperator) external onlyOwner { delete(operatorAddress[_oldOperator]); } /** * @dev Owner can claim any tokens that transferred * to this contract address */ function withdrawERC20(IERC20 _tokenContract, address _admin) external onlyOwner { uint256 balance = _tokenContract.balanceOf(address(this)); _tokenContract.transfer(_admin, balance); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @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) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @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) { 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, reverting 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) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting 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) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * 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); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * 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); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * 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; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev String operations. */ library Strings { /** * @dev Converts a `uint256` to its ASCII `string` representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); uint256 index = digits - 1; temp = value; while (temp != 0) { buffer[index--] = bytes1(uint8(48 + temp % 10)); temp /= 10; } return string(buffer); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_market","type":"address"},{"indexed":false,"internalType":"bool","name":"_state","type":"bool"}],"name":"TrustedMarket","type":"event"},{"inputs":[{"internalType":"address","name":"_newOperator","type":"address"}],"name":"addOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"},{"internalType":"uint8","name":"_v","type":"uint8"},{"internalType":"bytes32","name":"_r","type":"bytes32"},{"internalType":"bytes32","name":"_s","type":"bytes32"}],"name":"getSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"getUsersTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"hashArguments","outputs":[{"internalType":"bytes32","name":"msgHash","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"isOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"},{"internalType":"uint8","name":"_v","type":"uint8"},{"internalType":"bytes32","name":"_r","type":"bytes32"},{"internalType":"bytes32","name":"_s","type":"bytes32"}],"name":"isValidSignature","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","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":"address","name":"_oldOperator","type":"address"}],"name":"removeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newSigner","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_market","type":"address"},{"internalType":"bool","name":"_state","type":"bool"}],"name":"setTrustedMarket","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenId","type":"uint256[]"},{"internalType":"string[]","name":"_tokenURI","type":"string[]"}],"name":"setURIBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"},{"internalType":"uint8","name":"_v","type":"uint8"},{"internalType":"bytes32","name":"_r","type":"bytes32"},{"internalType":"bytes32","name":"_s","type":"bytes32"}],"name":"setURISigned","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"address","name":"","type":"address"}],"name":"trusted_markets","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_tokenContract","type":"address"},{"internalType":"address","name":"_admin","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604080518082018252601081526f446567656e24204661726d204567677360801b6020808301919091528251808401909352600383526245474760e81b9083015290620000666301ffc9a760e01b6200012b565b81516200007b906006906020850190620001b4565b50805162000091906007906020840190620001b4565b50620000a46380ac58cd60e01b6200012b565b620000b6635b5e139f60e01b6200012b565b620000c863780e9d6360e01b6200012b565b5060009050620000d7620001b0565b600a80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35062000260565b6001600160e01b031980821614156200018b576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620001ec576000855562000237565b82601f106200020757805160ff191683800117855562000237565b8280016001018555821562000237579182015b82811115620002375782518255916020019190600101906200021a565b506200024592915062000249565b5090565b5b808211156200024557600081556001016200024a565b6130a480620002706000396000f3fe608060405234801561001057600080fd5b50600436106102325760003560e01c80636d70f7ae11610130578063963513ca116100b8578063c87b56dd1161007c578063c87b56dd146104a9578063d7a377a1146104bc578063e985e9c5146104cf578063eb46a466146104e2578063f2fde38b146104f557610232565b8063963513ca1461044a5780639870d7fe1461045d578063a22cb46514610470578063ac8a584a14610483578063b88d4fde1461049657610232565b8063862440e2116100ff578063862440e21461040157806389dd289f146104145780638da5cb5b146104275780639456fbcc1461042f57806395d89b411461044257610232565b80636d70f7ae146103c057806370a08231146103d3578063715018a6146103e657806385aa84b6146103ee57610232565b806340c10f19116101be578063540d259e11610182578063540d259e146103775780635b7633d01461038a5780636352211e146103925780636c0360eb146103a55780636c19e783146103ad57610232565b806340c10f191461030b57806342842e0e1461031e57806342966c68146103315780634f6ccce714610344578063509044be1461035757610232565b8063095ea7b311610205578063095ea7b3146102aa57806318160ddd146102bd57806323b872dd146102d25780632f54bf6e146102e55780632f745c59146102f857610232565b806301b98ea01461023757806301ffc9a71461024c57806306fdde0314610275578063081812fc1461028a575b600080fd5b61024a6102453660046129dc565b610508565b005b61025f61025a366004612a45565b610602565b60405161026c9190612bad565b60405180910390f35b61027d610625565b60405161026c9190612bdf565b61029d610298366004612a7f565b6106bb565b60405161026c9190612b55565b61024a6102b83660046129b1565b61071d565b6102c56107f3565b60405161026c9190612bb8565b61024a6102e036600461287c565b610804565b61025f6102f3366004612828565b610837565b6102c56103063660046129b1565b61085b565b61024a6103193660046129b1565b610886565b61024a61032c36600461287c565b6108f6565b61024a61033f366004612a7f565b610911565b6102c5610352366004612a7f565b61097f565b61036a610365366004612828565b610995565b60405161026c9190612b69565b61024a610385366004612ae1565b610a2a565b61029d610a9c565b61029d6103a0366004612a7f565b610aab565b61027d610ad3565b61024a6103bb366004612828565b610b0a565b61025f6103ce366004612828565b610b8e565b6102c56103e1366004612828565b610bb9565b61024a610c21565b61029d6103fc366004612ae1565b610ccd565b61024a61040f366004612a97565b610d39565b6102c5610422366004612a97565b610dc3565b61029d610df9565b61024a61043d366004612a6d565b610e08565b61027d610f65565b61025f610458366004612ae1565b610fc6565b61024a61046b366004612828565b610ff8565b61024a61047e366004612980565b6110d1565b61024a610491366004612828565b6111d6565b61024a6104a43660046128bc565b611259565b61027d6104b7366004612a7f565b6112b7565b61024a6104ca366004612980565b6113b8565b61025f6104dd366004612844565b61147a565b61025f6104f0366004612828565b6114a8565b61024a610503366004612828565b6114bd565b61051133610b8e565b610552576040805162461bcd60e51b815260206004820152600d60248201526c1058d8d95cdcc819195b9a5959609a1b604482015290519081900360640190fd5b82811461057a5760405162461bcd60e51b815260040161057190612c32565b60405180910390fd5b60005b838110156105fb576105f385858381811061059457fe5b905060200201358484848181106105a757fe5b90506020028101906105b99190612d81565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506115c092505050565b60010161057d565b5050505050565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106b15780601f10610686576101008083540402835291602001916106b1565b820191906000526020600020905b81548152906001019060200180831161069457829003601f168201915b5050505050905090565b60006106c682611604565b6107015760405162461bcd60e51b815260040180806020018281038252602c815260200180612f79602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061072882610aab565b9050806001600160a01b0316836001600160a01b0316141561077b5760405162461bcd60e51b815260040180806020018281038252602181526020018061301d6021913960400191505060405180910390fd5b806001600160a01b031661078d611611565b6001600160a01b031614806107a957506107a9816104dd611611565b6107e45760405162461bcd60e51b8152600401808060200182810382526038815260200180612ecc6038913960400191505060405180910390fd5b6107ee8383611615565b505050565b60006107ff6002611683565b905090565b336000908152600e602052604090205460ff161561082c5761082783838361168e565b6107ee565b6107ee8383836117da565b6000816001600160a01b031661084b610df9565b6001600160a01b03161492915050565b6001600160a01b038216600090815260016020526040812061087d9083611831565b90505b92915050565b61088e611611565b6001600160a01b031661089f610df9565b6001600160a01b0316146108e8576040805162461bcd60e51b81526020600482018190526024820152600080516020612fa5833981519152604482015290519081900360640190fd5b6108f2828261183d565b5050565b6107ee83838360405180602001604052806000815250611259565b610919611611565b6001600160a01b031661092a610df9565b6001600160a01b031614610973576040805162461bcd60e51b81526020600482018190526024820152600080516020612fa5833981519152604482015290519081900360640190fd5b61097c8161196b565b50565b60008061098d6002846119b2565b509392505050565b606060006109a283610bb9565b905060608167ffffffffffffffff811180156109bd57600080fd5b506040519080825280602002602001820160405280156109e7578160200160208202803683370190505b50905060005b828161ffff16101561098d57610a07858261ffff1661085b565b828261ffff1681518110610a1757fe5b60209081029190910101526001016109ed565b610a38868686868686610fc6565b610a545760405162461bcd60e51b815260040161057190612c81565b610a948686868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506115c092505050565b505050505050565b600d546001600160a01b031681565b600061088082604051806060016040528060298152602001612f2e60299139600291906119d0565b60408051808201909152601d81527f687474703a2f2f646567656e732e6661726d2f6d6574612f656767732f000000602082015290565b610b12611611565b6001600160a01b0316610b23610df9565b6001600160a01b031614610b6c576040805162461bcd60e51b81526020600482018190526024820152600080516020612fa5833981519152604482015290519081900360640190fd5b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0381166000908152600b602052604081205460ff1680610880575061088082610837565b60006001600160a01b038216610c005760405162461bcd60e51b815260040180806020018281038252602a815260200180612f04602a913960400191505060405180910390fd5b6001600160a01b038216600090815260016020526040902061088090611683565b610c29611611565b6001600160a01b0316610c3a610df9565b6001600160a01b031614610c83576040805162461bcd60e51b81526020600482018190526024820152600080516020612fa5833981519152604482015290519081900360640190fd5b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b600080610cdb888888610dc3565b905060018186868660405160008152602001604052604051610d009493929190612bc1565b6020604051602081039080840390855afa158015610d22573d6000803e3d6000fd5b5050604051601f1901519998505050505050505050565b610d4233610b8e565b610d83576040805162461bcd60e51b815260206004820152600d60248201526c1058d8d95cdcc819195b9a5959609a1b604482015290519081900360640190fd5b6107ee8383838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506115c092505050565b6000838383604051602001610dda93929190612d4b565b6040516020818303038152906040528051906020012090509392505050565b600a546001600160a01b031690565b610e10611611565b6001600160a01b0316610e21610df9565b6001600160a01b031614610e6a576040805162461bcd60e51b81526020600482018190526024820152600080516020612fa5833981519152604482015290519081900360640190fd5b6000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610eb957600080fd5b505afa158015610ecd573d6000803e3d6000fd5b505050506040513d6020811015610ee357600080fd5b50516040805163a9059cbb60e01b81526001600160a01b0385811660048301526024820184905291519293509085169163a9059cbb916044808201926020929091908290030181600087803b158015610f3b57600080fd5b505af1158015610f4f573d6000803e3d6000fd5b505050506040513d60208110156105fb57600080fd5b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106b15780601f10610686576101008083540402835291602001916106b1565b600d546000906001600160a01b0316610fe3888888888888610ccd565b6001600160a01b031614979650505050505050565b611000611611565b6001600160a01b0316611011610df9565b6001600160a01b03161461105a576040805162461bcd60e51b81526020600482018190526024820152600080516020612fa5833981519152604482015290519081900360640190fd5b6001600160a01b0381166110ad576040805162461bcd60e51b81526020600482015260156024820152744e6577206f70657261746f7220697320656d70747960581b604482015290519081900360640190fd5b6001600160a01b03166000908152600b60205260409020805460ff19166001179055565b6110d9611611565b6001600160a01b0316826001600160a01b0316141561113f576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b806005600061114c611611565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611190611611565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6111de611611565b6001600160a01b03166111ef610df9565b6001600160a01b031614611238576040805162461bcd60e51b81526020600482018190526024820152600080516020612fa5833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152600b60205260409020805460ff19169055565b61126a611264611611565b836119e7565b6112a55760405162461bcd60e51b815260040180806020018281038252603181526020018061303e6031913960400191505060405180910390fd5b6112b184848484611a83565b50505050565b60606112c282611604565b6112de5760405162461bcd60e51b815260040161057190612cfa565b6000828152600c602090815260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452606093928301828280156113735780601f1061134857610100808354040283529160200191611373565b820191906000526020600020905b81548152906001019060200180831161135657829003601f168201915b505050505090506060611384610ad3565b905080516000141561139857509050610620565b8151156113a757509050610620565b6113b084611ad5565b949350505050565b6113c0611611565b6001600160a01b03166113d1610df9565b6001600160a01b03161461141a576040805162461bcd60e51b81526020600482018190526024820152600080516020612fa5833981519152604482015290519081900360640190fd5b6001600160a01b0382166000818152600e602052604090819020805460ff1916841515179055517f735768a8abddcbaa527672c7b507c39cdfee45818f675893d3ccf2326523c09e9061146e908490612bad565b60405180910390a25050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600e6020526000908152604090205460ff1681565b6114c5611611565b6001600160a01b03166114d6610df9565b6001600160a01b03161461151f576040805162461bcd60e51b81526020600482018190526024820152600080516020612fa5833981519152604482015290519081900360640190fd5b6001600160a01b0381166115645760405162461bcd60e51b8152600401808060200182810382526026815260200180612e306026913960400191505060405180910390fd5b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6115c982611604565b6115e55760405162461bcd60e51b815260040161057190612cac565b6000828152600c6020908152604090912082516107ee928401906126c5565b6000610880600283611d58565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061164a82610aab565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061088082611d64565b826001600160a01b03166116a182610aab565b6001600160a01b0316146116e65760405162461bcd60e51b8152600401808060200182810382526029815260200180612fc56029913960400191505060405180910390fd5b6001600160a01b03821661172b5760405162461bcd60e51b8152600401808060200182810382526024815260200180612e566024913960400191505060405180910390fd5b6117368383836107ee565b611741600082611615565b6001600160a01b03831660009081526001602052604090206117639082611d68565b506001600160a01b03821660009081526001602052604090206117869082611d74565b5061179360028284611d80565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6117eb6117e5611611565b826119e7565b6118265760405162461bcd60e51b815260040180806020018281038252603181526020018061303e6031913960400191505060405180910390fd5b6107ee83838361168e565b600061087d8383611d96565b6001600160a01b038216611898576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b6118a181611604565b156118f3576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6118ff600083836107ee565b6001600160a01b03821660009081526001602052604090206119219082611d74565b5061192e60028284611d80565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b61197481611dfa565b6000818152600c6020526040902054600260001961010060018416150201909116041561097c576000818152600c6020526040812061097c91612751565b60008080806119c18686611ec7565b909450925050505b9250929050565b60006119dd848484611f42565b90505b9392505050565b60006119f282611604565b611a2d5760405162461bcd60e51b815260040180806020018281038252602c815260200180612ea0602c913960400191505060405180910390fd5b6000611a3883610aab565b9050806001600160a01b0316846001600160a01b03161480611a735750836001600160a01b0316611a68846106bb565b6001600160a01b0316145b806113b057506113b0818561147a565b611a8e84848461168e565b611a9a8484848461200c565b6112b15760405162461bcd60e51b8152600401808060200182810382526032815260200180612dfe6032913960400191505060405180910390fd5b6060611ae082611604565b611b1b5760405162461bcd60e51b815260040180806020018281038252602f815260200180612fee602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015611bb05780601f10611b8557610100808354040283529160200191611bb0565b820191906000526020600020905b815481529060010190602001808311611b9357829003601f168201915b505050505090506060611bc1610ad3565b9050805160001415611bd557509050610620565b815115611c965780826040516020018083805190602001908083835b60208310611c105780518252601f199092019160209182019101611bf1565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b60208310611c585780518252601f199092019160209182019101611c39565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405292505050610620565b80611ca085612174565b6040516020018083805190602001908083835b60208310611cd25780518252601f199092019160209182019101611cb3565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b60208310611d1a5780518252601f199092019160209182019101611cfb565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405292505050919050565b600061087d838361224f565b5490565b600061087d8383612267565b600061087d838361232d565b60006119dd84846001600160a01b038516612377565b81546000908210611dd85760405162461bcd60e51b8152600401808060200182810382526022815260200180612ddc6022913960400191505060405180910390fd5b826000018281548110611de757fe5b9060005260206000200154905092915050565b6000611e0582610aab565b9050611e13816000846107ee565b611e1e600083611615565b6000828152600860205260409020546002600019610100600184161502019091160415611e5c576000828152600860205260408120611e5c91612751565b6001600160a01b0381166000908152600160205260409020611e7e9083611d68565b50611e8a60028361240e565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b815460009081908310611f0b5760405162461bcd60e51b8152600401808060200182810382526022815260200180612f576022913960400191505060405180910390fd5b6000846000018481548110611f1c57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008281526001840160205260408120548281611fdd5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611fa2578181015183820152602001611f8a565b50505050905090810190601f168015611fcf5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50846000016001820381548110611ff057fe5b9060005260206000209060020201600101549150509392505050565b6000612020846001600160a01b031661241a565b61202c575060016113b0565b606061213a630a85bd0160e11b612041611611565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156120a8578181015183820152602001612090565b50505050905090810190601f1680156120d55780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001612dfe603291396001600160a01b0388169190612420565b9050600081806020019051602081101561215357600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60608161219957506040805180820190915260018152600360fc1b6020820152610620565b8160005b81156121b157600101600a8204915061219d565b60608167ffffffffffffffff811180156121ca57600080fd5b506040519080825280601f01601f1916602001820160405280156121f5576020820181803683370190505b50859350905060001982015b831561224657600a840660300160f81b8282806001900393508151811061222457fe5b60200101906001600160f81b031916908160001a905350600a84049350612201565b50949350505050565b60009081526001919091016020526040902054151590565b60008181526001830160205260408120548015612323578354600019808301919081019060009087908390811061229a57fe5b90600052602060002001549050808760000184815481106122b757fe5b6000918252602080832090910192909255828152600189810190925260409020908401905586548790806122e757fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610880565b6000915050610880565b6000612339838361224f565b61236f57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610880565b506000610880565b6000828152600184016020526040812054806123dc5750506040805180820182528381526020808201848152865460018181018955600089815284812095516002909302909501918255915190820155865486845281880190925292909120556119e0565b828560000160018303815481106123ef57fe5b90600052602060002090600202016001018190555060009150506119e0565b600061087d838361242f565b3b151590565b60606119dd8484600085612503565b60008181526001830160205260408120548015612323578354600019808301919081019060009087908390811061246257fe5b906000526020600020906002020190508087600001848154811061248257fe5b6000918252602080832084546002909302019182556001938401549184019190915583548252898301905260409020908401905586548790806124c157fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506108809350505050565b6060824710156125445760405162461bcd60e51b8152600401808060200182810382526026815260200180612e7a6026913960400191505060405180910390fd5b61254d8561241a565b61259e576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106125dd5780518252601f1990920191602091820191016125be565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461263f576040519150601f19603f3d011682016040523d82523d6000602084013e612644565b606091505b509150915061265482828661265f565b979650505050505050565b6060831561266e5750816119e0565b82511561267e5782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315611fa2578181015183820152602001611f8a565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826126fb5760008555612741565b82601f1061271457805160ff1916838001178555612741565b82800160010185558215612741579182015b82811115612741578251825591602001919060010190612726565b5061274d929150612791565b5090565b50805460018160011615610100020316600290046000825580601f10612777575061097c565b601f01602090049060005260206000209081019061097c91905b5b8082111561274d5760008155600101612792565b60008083601f8401126127b7578182fd5b50813567ffffffffffffffff8111156127ce578182fd5b60208301915083602080830285010111156119c957600080fd5b60008083601f8401126127f9578182fd5b50813567ffffffffffffffff811115612810578182fd5b6020830191508360208285010111156119c957600080fd5b600060208284031215612839578081fd5b81356119e081612dc6565b60008060408385031215612856578081fd5b823561286181612dc6565b9150602083013561287181612dc6565b809150509250929050565b600080600060608486031215612890578081fd5b833561289b81612dc6565b925060208401356128ab81612dc6565b929592945050506040919091013590565b600080600080608085870312156128d1578081fd5b84356128dc81612dc6565b93506020858101356128ed81612dc6565b935060408601359250606086013567ffffffffffffffff80821115612910578384fd5b818801915088601f830112612923578384fd5b81358181111561292f57fe5b604051601f8201601f191681018501838111828210171561294c57fe5b60405281815283820185018b1015612962578586fd5b81858501868301379081019093019390935250939692955090935050565b60008060408385031215612992578182fd5b823561299d81612dc6565b915060208301358015158114612871578182fd5b600080604083850312156129c3578182fd5b82356129ce81612dc6565b946020939093013593505050565b600080600080604085870312156129f1578384fd5b843567ffffffffffffffff80821115612a08578586fd5b612a14888389016127a6565b90965094506020870135915080821115612a2c578384fd5b50612a39878288016127a6565b95989497509550505050565b600060208284031215612a56578081fd5b81356001600160e01b0319811681146119e0578182fd5b60008060408385031215612856578182fd5b600060208284031215612a90578081fd5b5035919050565b600080600060408486031215612aab578283fd5b83359250602084013567ffffffffffffffff811115612ac8578283fd5b612ad4868287016127e8565b9497909650939450505050565b60008060008060008060a08789031215612af9578182fd5b86359550602087013567ffffffffffffffff811115612b16578283fd5b612b2289828a016127e8565b909650945050604087013560ff81168114612b3b578283fd5b959894975092956060810135946080909101359350915050565b6001600160a01b0391909116815260200190565b6020808252825182820181905260009190848201906040850190845b81811015612ba157835183529284019291840191600101612b85565b50909695505050505050565b901515815260200190565b90815260200190565b93845260ff9290921660208401526040830152606082015260800190565b6000602080835283518082850152825b81811015612c0b57858101830151858201604001528201612bef565b81811115612c1c5783604083870101525b50601f01601f1916929092016040019392505050565b6020808252602f908201527f746f6b656e4964206c656e677468206973206e6f7420657175616c20746f205f60408201526e0e8ded6cadcaaa49240d8cadccee8d608b1b606082015260800190565b602080825260119082015270496e76616c6964207369676e617475726560781b604082015260600190565b6020808252602e908201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60408201526d32bc34b9ba32b73a103a37b5b2b760911b606082015260800190565b60208082526031908201527f45524337323155524953746f726167653a2055524920717565727920666f72206040820152703737b732bc34b9ba32b73a103a37b5b2b760791b606082015260800190565b60008482526040602083015282604083015282846060840137818301606090810191909152601f909201601f1916010192915050565b6000808335601e19843603018112612d97578283fd5b83018035915067ffffffffffffffff821115612db1578283fd5b6020019150368190038213156119c957600080fd5b6001600160a01b038116811461097c57600080fdfe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734552433732313a207472616e7366657220746f20746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a26469706673582212200fc02e415241d668d7fc0f4499deb6d9790d56ba1209cb1e1ac759addecc505464736f6c63430007040033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102325760003560e01c80636d70f7ae11610130578063963513ca116100b8578063c87b56dd1161007c578063c87b56dd146104a9578063d7a377a1146104bc578063e985e9c5146104cf578063eb46a466146104e2578063f2fde38b146104f557610232565b8063963513ca1461044a5780639870d7fe1461045d578063a22cb46514610470578063ac8a584a14610483578063b88d4fde1461049657610232565b8063862440e2116100ff578063862440e21461040157806389dd289f146104145780638da5cb5b146104275780639456fbcc1461042f57806395d89b411461044257610232565b80636d70f7ae146103c057806370a08231146103d3578063715018a6146103e657806385aa84b6146103ee57610232565b806340c10f19116101be578063540d259e11610182578063540d259e146103775780635b7633d01461038a5780636352211e146103925780636c0360eb146103a55780636c19e783146103ad57610232565b806340c10f191461030b57806342842e0e1461031e57806342966c68146103315780634f6ccce714610344578063509044be1461035757610232565b8063095ea7b311610205578063095ea7b3146102aa57806318160ddd146102bd57806323b872dd146102d25780632f54bf6e146102e55780632f745c59146102f857610232565b806301b98ea01461023757806301ffc9a71461024c57806306fdde0314610275578063081812fc1461028a575b600080fd5b61024a6102453660046129dc565b610508565b005b61025f61025a366004612a45565b610602565b60405161026c9190612bad565b60405180910390f35b61027d610625565b60405161026c9190612bdf565b61029d610298366004612a7f565b6106bb565b60405161026c9190612b55565b61024a6102b83660046129b1565b61071d565b6102c56107f3565b60405161026c9190612bb8565b61024a6102e036600461287c565b610804565b61025f6102f3366004612828565b610837565b6102c56103063660046129b1565b61085b565b61024a6103193660046129b1565b610886565b61024a61032c36600461287c565b6108f6565b61024a61033f366004612a7f565b610911565b6102c5610352366004612a7f565b61097f565b61036a610365366004612828565b610995565b60405161026c9190612b69565b61024a610385366004612ae1565b610a2a565b61029d610a9c565b61029d6103a0366004612a7f565b610aab565b61027d610ad3565b61024a6103bb366004612828565b610b0a565b61025f6103ce366004612828565b610b8e565b6102c56103e1366004612828565b610bb9565b61024a610c21565b61029d6103fc366004612ae1565b610ccd565b61024a61040f366004612a97565b610d39565b6102c5610422366004612a97565b610dc3565b61029d610df9565b61024a61043d366004612a6d565b610e08565b61027d610f65565b61025f610458366004612ae1565b610fc6565b61024a61046b366004612828565b610ff8565b61024a61047e366004612980565b6110d1565b61024a610491366004612828565b6111d6565b61024a6104a43660046128bc565b611259565b61027d6104b7366004612a7f565b6112b7565b61024a6104ca366004612980565b6113b8565b61025f6104dd366004612844565b61147a565b61025f6104f0366004612828565b6114a8565b61024a610503366004612828565b6114bd565b61051133610b8e565b610552576040805162461bcd60e51b815260206004820152600d60248201526c1058d8d95cdcc819195b9a5959609a1b604482015290519081900360640190fd5b82811461057a5760405162461bcd60e51b815260040161057190612c32565b60405180910390fd5b60005b838110156105fb576105f385858381811061059457fe5b905060200201358484848181106105a757fe5b90506020028101906105b99190612d81565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506115c092505050565b60010161057d565b5050505050565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106b15780601f10610686576101008083540402835291602001916106b1565b820191906000526020600020905b81548152906001019060200180831161069457829003601f168201915b5050505050905090565b60006106c682611604565b6107015760405162461bcd60e51b815260040180806020018281038252602c815260200180612f79602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061072882610aab565b9050806001600160a01b0316836001600160a01b0316141561077b5760405162461bcd60e51b815260040180806020018281038252602181526020018061301d6021913960400191505060405180910390fd5b806001600160a01b031661078d611611565b6001600160a01b031614806107a957506107a9816104dd611611565b6107e45760405162461bcd60e51b8152600401808060200182810382526038815260200180612ecc6038913960400191505060405180910390fd5b6107ee8383611615565b505050565b60006107ff6002611683565b905090565b336000908152600e602052604090205460ff161561082c5761082783838361168e565b6107ee565b6107ee8383836117da565b6000816001600160a01b031661084b610df9565b6001600160a01b03161492915050565b6001600160a01b038216600090815260016020526040812061087d9083611831565b90505b92915050565b61088e611611565b6001600160a01b031661089f610df9565b6001600160a01b0316146108e8576040805162461bcd60e51b81526020600482018190526024820152600080516020612fa5833981519152604482015290519081900360640190fd5b6108f2828261183d565b5050565b6107ee83838360405180602001604052806000815250611259565b610919611611565b6001600160a01b031661092a610df9565b6001600160a01b031614610973576040805162461bcd60e51b81526020600482018190526024820152600080516020612fa5833981519152604482015290519081900360640190fd5b61097c8161196b565b50565b60008061098d6002846119b2565b509392505050565b606060006109a283610bb9565b905060608167ffffffffffffffff811180156109bd57600080fd5b506040519080825280602002602001820160405280156109e7578160200160208202803683370190505b50905060005b828161ffff16101561098d57610a07858261ffff1661085b565b828261ffff1681518110610a1757fe5b60209081029190910101526001016109ed565b610a38868686868686610fc6565b610a545760405162461bcd60e51b815260040161057190612c81565b610a948686868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506115c092505050565b505050505050565b600d546001600160a01b031681565b600061088082604051806060016040528060298152602001612f2e60299139600291906119d0565b60408051808201909152601d81527f687474703a2f2f646567656e732e6661726d2f6d6574612f656767732f000000602082015290565b610b12611611565b6001600160a01b0316610b23610df9565b6001600160a01b031614610b6c576040805162461bcd60e51b81526020600482018190526024820152600080516020612fa5833981519152604482015290519081900360640190fd5b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0381166000908152600b602052604081205460ff1680610880575061088082610837565b60006001600160a01b038216610c005760405162461bcd60e51b815260040180806020018281038252602a815260200180612f04602a913960400191505060405180910390fd5b6001600160a01b038216600090815260016020526040902061088090611683565b610c29611611565b6001600160a01b0316610c3a610df9565b6001600160a01b031614610c83576040805162461bcd60e51b81526020600482018190526024820152600080516020612fa5833981519152604482015290519081900360640190fd5b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b600080610cdb888888610dc3565b905060018186868660405160008152602001604052604051610d009493929190612bc1565b6020604051602081039080840390855afa158015610d22573d6000803e3d6000fd5b5050604051601f1901519998505050505050505050565b610d4233610b8e565b610d83576040805162461bcd60e51b815260206004820152600d60248201526c1058d8d95cdcc819195b9a5959609a1b604482015290519081900360640190fd5b6107ee8383838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506115c092505050565b6000838383604051602001610dda93929190612d4b565b6040516020818303038152906040528051906020012090509392505050565b600a546001600160a01b031690565b610e10611611565b6001600160a01b0316610e21610df9565b6001600160a01b031614610e6a576040805162461bcd60e51b81526020600482018190526024820152600080516020612fa5833981519152604482015290519081900360640190fd5b6000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610eb957600080fd5b505afa158015610ecd573d6000803e3d6000fd5b505050506040513d6020811015610ee357600080fd5b50516040805163a9059cbb60e01b81526001600160a01b0385811660048301526024820184905291519293509085169163a9059cbb916044808201926020929091908290030181600087803b158015610f3b57600080fd5b505af1158015610f4f573d6000803e3d6000fd5b505050506040513d60208110156105fb57600080fd5b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106b15780601f10610686576101008083540402835291602001916106b1565b600d546000906001600160a01b0316610fe3888888888888610ccd565b6001600160a01b031614979650505050505050565b611000611611565b6001600160a01b0316611011610df9565b6001600160a01b03161461105a576040805162461bcd60e51b81526020600482018190526024820152600080516020612fa5833981519152604482015290519081900360640190fd5b6001600160a01b0381166110ad576040805162461bcd60e51b81526020600482015260156024820152744e6577206f70657261746f7220697320656d70747960581b604482015290519081900360640190fd5b6001600160a01b03166000908152600b60205260409020805460ff19166001179055565b6110d9611611565b6001600160a01b0316826001600160a01b0316141561113f576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b806005600061114c611611565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611190611611565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6111de611611565b6001600160a01b03166111ef610df9565b6001600160a01b031614611238576040805162461bcd60e51b81526020600482018190526024820152600080516020612fa5833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152600b60205260409020805460ff19169055565b61126a611264611611565b836119e7565b6112a55760405162461bcd60e51b815260040180806020018281038252603181526020018061303e6031913960400191505060405180910390fd5b6112b184848484611a83565b50505050565b60606112c282611604565b6112de5760405162461bcd60e51b815260040161057190612cfa565b6000828152600c602090815260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452606093928301828280156113735780601f1061134857610100808354040283529160200191611373565b820191906000526020600020905b81548152906001019060200180831161135657829003601f168201915b505050505090506060611384610ad3565b905080516000141561139857509050610620565b8151156113a757509050610620565b6113b084611ad5565b949350505050565b6113c0611611565b6001600160a01b03166113d1610df9565b6001600160a01b03161461141a576040805162461bcd60e51b81526020600482018190526024820152600080516020612fa5833981519152604482015290519081900360640190fd5b6001600160a01b0382166000818152600e602052604090819020805460ff1916841515179055517f735768a8abddcbaa527672c7b507c39cdfee45818f675893d3ccf2326523c09e9061146e908490612bad565b60405180910390a25050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600e6020526000908152604090205460ff1681565b6114c5611611565b6001600160a01b03166114d6610df9565b6001600160a01b03161461151f576040805162461bcd60e51b81526020600482018190526024820152600080516020612fa5833981519152604482015290519081900360640190fd5b6001600160a01b0381166115645760405162461bcd60e51b8152600401808060200182810382526026815260200180612e306026913960400191505060405180910390fd5b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6115c982611604565b6115e55760405162461bcd60e51b815260040161057190612cac565b6000828152600c6020908152604090912082516107ee928401906126c5565b6000610880600283611d58565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061164a82610aab565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061088082611d64565b826001600160a01b03166116a182610aab565b6001600160a01b0316146116e65760405162461bcd60e51b8152600401808060200182810382526029815260200180612fc56029913960400191505060405180910390fd5b6001600160a01b03821661172b5760405162461bcd60e51b8152600401808060200182810382526024815260200180612e566024913960400191505060405180910390fd5b6117368383836107ee565b611741600082611615565b6001600160a01b03831660009081526001602052604090206117639082611d68565b506001600160a01b03821660009081526001602052604090206117869082611d74565b5061179360028284611d80565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6117eb6117e5611611565b826119e7565b6118265760405162461bcd60e51b815260040180806020018281038252603181526020018061303e6031913960400191505060405180910390fd5b6107ee83838361168e565b600061087d8383611d96565b6001600160a01b038216611898576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b6118a181611604565b156118f3576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6118ff600083836107ee565b6001600160a01b03821660009081526001602052604090206119219082611d74565b5061192e60028284611d80565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b61197481611dfa565b6000818152600c6020526040902054600260001961010060018416150201909116041561097c576000818152600c6020526040812061097c91612751565b60008080806119c18686611ec7565b909450925050505b9250929050565b60006119dd848484611f42565b90505b9392505050565b60006119f282611604565b611a2d5760405162461bcd60e51b815260040180806020018281038252602c815260200180612ea0602c913960400191505060405180910390fd5b6000611a3883610aab565b9050806001600160a01b0316846001600160a01b03161480611a735750836001600160a01b0316611a68846106bb565b6001600160a01b0316145b806113b057506113b0818561147a565b611a8e84848461168e565b611a9a8484848461200c565b6112b15760405162461bcd60e51b8152600401808060200182810382526032815260200180612dfe6032913960400191505060405180910390fd5b6060611ae082611604565b611b1b5760405162461bcd60e51b815260040180806020018281038252602f815260200180612fee602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015611bb05780601f10611b8557610100808354040283529160200191611bb0565b820191906000526020600020905b815481529060010190602001808311611b9357829003601f168201915b505050505090506060611bc1610ad3565b9050805160001415611bd557509050610620565b815115611c965780826040516020018083805190602001908083835b60208310611c105780518252601f199092019160209182019101611bf1565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b60208310611c585780518252601f199092019160209182019101611c39565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405292505050610620565b80611ca085612174565b6040516020018083805190602001908083835b60208310611cd25780518252601f199092019160209182019101611cb3565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b60208310611d1a5780518252601f199092019160209182019101611cfb565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405292505050919050565b600061087d838361224f565b5490565b600061087d8383612267565b600061087d838361232d565b60006119dd84846001600160a01b038516612377565b81546000908210611dd85760405162461bcd60e51b8152600401808060200182810382526022815260200180612ddc6022913960400191505060405180910390fd5b826000018281548110611de757fe5b9060005260206000200154905092915050565b6000611e0582610aab565b9050611e13816000846107ee565b611e1e600083611615565b6000828152600860205260409020546002600019610100600184161502019091160415611e5c576000828152600860205260408120611e5c91612751565b6001600160a01b0381166000908152600160205260409020611e7e9083611d68565b50611e8a60028361240e565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b815460009081908310611f0b5760405162461bcd60e51b8152600401808060200182810382526022815260200180612f576022913960400191505060405180910390fd5b6000846000018481548110611f1c57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008281526001840160205260408120548281611fdd5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611fa2578181015183820152602001611f8a565b50505050905090810190601f168015611fcf5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50846000016001820381548110611ff057fe5b9060005260206000209060020201600101549150509392505050565b6000612020846001600160a01b031661241a565b61202c575060016113b0565b606061213a630a85bd0160e11b612041611611565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156120a8578181015183820152602001612090565b50505050905090810190601f1680156120d55780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001612dfe603291396001600160a01b0388169190612420565b9050600081806020019051602081101561215357600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60608161219957506040805180820190915260018152600360fc1b6020820152610620565b8160005b81156121b157600101600a8204915061219d565b60608167ffffffffffffffff811180156121ca57600080fd5b506040519080825280601f01601f1916602001820160405280156121f5576020820181803683370190505b50859350905060001982015b831561224657600a840660300160f81b8282806001900393508151811061222457fe5b60200101906001600160f81b031916908160001a905350600a84049350612201565b50949350505050565b60009081526001919091016020526040902054151590565b60008181526001830160205260408120548015612323578354600019808301919081019060009087908390811061229a57fe5b90600052602060002001549050808760000184815481106122b757fe5b6000918252602080832090910192909255828152600189810190925260409020908401905586548790806122e757fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610880565b6000915050610880565b6000612339838361224f565b61236f57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610880565b506000610880565b6000828152600184016020526040812054806123dc5750506040805180820182528381526020808201848152865460018181018955600089815284812095516002909302909501918255915190820155865486845281880190925292909120556119e0565b828560000160018303815481106123ef57fe5b90600052602060002090600202016001018190555060009150506119e0565b600061087d838361242f565b3b151590565b60606119dd8484600085612503565b60008181526001830160205260408120548015612323578354600019808301919081019060009087908390811061246257fe5b906000526020600020906002020190508087600001848154811061248257fe5b6000918252602080832084546002909302019182556001938401549184019190915583548252898301905260409020908401905586548790806124c157fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506108809350505050565b6060824710156125445760405162461bcd60e51b8152600401808060200182810382526026815260200180612e7a6026913960400191505060405180910390fd5b61254d8561241a565b61259e576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106125dd5780518252601f1990920191602091820191016125be565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461263f576040519150601f19603f3d011682016040523d82523d6000602084013e612644565b606091505b509150915061265482828661265f565b979650505050505050565b6060831561266e5750816119e0565b82511561267e5782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315611fa2578181015183820152602001611f8a565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826126fb5760008555612741565b82601f1061271457805160ff1916838001178555612741565b82800160010185558215612741579182015b82811115612741578251825591602001919060010190612726565b5061274d929150612791565b5090565b50805460018160011615610100020316600290046000825580601f10612777575061097c565b601f01602090049060005260206000209081019061097c91905b5b8082111561274d5760008155600101612792565b60008083601f8401126127b7578182fd5b50813567ffffffffffffffff8111156127ce578182fd5b60208301915083602080830285010111156119c957600080fd5b60008083601f8401126127f9578182fd5b50813567ffffffffffffffff811115612810578182fd5b6020830191508360208285010111156119c957600080fd5b600060208284031215612839578081fd5b81356119e081612dc6565b60008060408385031215612856578081fd5b823561286181612dc6565b9150602083013561287181612dc6565b809150509250929050565b600080600060608486031215612890578081fd5b833561289b81612dc6565b925060208401356128ab81612dc6565b929592945050506040919091013590565b600080600080608085870312156128d1578081fd5b84356128dc81612dc6565b93506020858101356128ed81612dc6565b935060408601359250606086013567ffffffffffffffff80821115612910578384fd5b818801915088601f830112612923578384fd5b81358181111561292f57fe5b604051601f8201601f191681018501838111828210171561294c57fe5b60405281815283820185018b1015612962578586fd5b81858501868301379081019093019390935250939692955090935050565b60008060408385031215612992578182fd5b823561299d81612dc6565b915060208301358015158114612871578182fd5b600080604083850312156129c3578182fd5b82356129ce81612dc6565b946020939093013593505050565b600080600080604085870312156129f1578384fd5b843567ffffffffffffffff80821115612a08578586fd5b612a14888389016127a6565b90965094506020870135915080821115612a2c578384fd5b50612a39878288016127a6565b95989497509550505050565b600060208284031215612a56578081fd5b81356001600160e01b0319811681146119e0578182fd5b60008060408385031215612856578182fd5b600060208284031215612a90578081fd5b5035919050565b600080600060408486031215612aab578283fd5b83359250602084013567ffffffffffffffff811115612ac8578283fd5b612ad4868287016127e8565b9497909650939450505050565b60008060008060008060a08789031215612af9578182fd5b86359550602087013567ffffffffffffffff811115612b16578283fd5b612b2289828a016127e8565b909650945050604087013560ff81168114612b3b578283fd5b959894975092956060810135946080909101359350915050565b6001600160a01b0391909116815260200190565b6020808252825182820181905260009190848201906040850190845b81811015612ba157835183529284019291840191600101612b85565b50909695505050505050565b901515815260200190565b90815260200190565b93845260ff9290921660208401526040830152606082015260800190565b6000602080835283518082850152825b81811015612c0b57858101830151858201604001528201612bef565b81811115612c1c5783604083870101525b50601f01601f1916929092016040019392505050565b6020808252602f908201527f746f6b656e4964206c656e677468206973206e6f7420657175616c20746f205f60408201526e0e8ded6cadcaaa49240d8cadccee8d608b1b606082015260800190565b602080825260119082015270496e76616c6964207369676e617475726560781b604082015260600190565b6020808252602e908201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60408201526d32bc34b9ba32b73a103a37b5b2b760911b606082015260800190565b60208082526031908201527f45524337323155524953746f726167653a2055524920717565727920666f72206040820152703737b732bc34b9ba32b73a103a37b5b2b760791b606082015260800190565b60008482526040602083015282604083015282846060840137818301606090810191909152601f909201601f1916010192915050565b6000808335601e19843603018112612d97578283fd5b83018035915067ffffffffffffffff821115612db1578283fd5b6020019150368190038213156119c957600080fd5b6001600160a01b038116811461097c57600080fdfe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734552433732313a207472616e7366657220746f20746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a26469706673582212200fc02e415241d668d7fc0f4499deb6d9790d56ba1209cb1e1ac759addecc505464736f6c63430007040033
Deployed Bytecode Sourcemap
185:1751:5:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2240:325:4;;;;;;:::i;:::-;;:::i;:::-;;965:148:2;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;4440:98:3;;;:::i;:::-;;;;;;;:::i;7145:217::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;6689:395::-;;;;;;:::i;:::-;;:::i;6183:208::-;;;:::i;:::-;;;;;;;:::i;1596:251:5:-;;;;;;:::i;:::-;;:::i;353:99:14:-;;;;;;:::i;:::-;;:::i;5952:160:3:-;;;;;;:::i;:::-;;:::i;405:130:5:-;;;;;;:::i;:::-;;:::i;8375:149:3:-;;;;;;:::i;:::-;;:::i;1853:81:5:-;;;;;;:::i;:::-;;:::i;6463:169:3:-;;;;;;:::i;:::-;;:::i;721:494:5:-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;3596:246:4:-;;;;;;:::i;:::-;;:::i;2571:28::-;;;:::i;4203:175:3:-;;;;;;:::i;:::-;;:::i;1221:120:5:-;;;:::i;2606:101:4:-;;;;;;:::i;:::-;;:::i;458:126:14:-;;;;;;:::i;:::-;;:::i;3928:218:3:-;;;;;;:::i;:::-;;:::i;1710:145:15:-;;;:::i;2904:270:4:-;;;;;;:::i;:::-;;:::i;2103:131::-;;;;;;:::i;:::-;;:::i;2713:185::-;;;;;;:::i;:::-;;:::i;1078:85:15:-;;;:::i;1011:209:14:-;;;;;;:::i;:::-;;:::i;4602:102:3:-;;;:::i;3180:241:4:-;;;;;;:::i;:::-;;:::i;590:186:14:-;;;;;;:::i;:::-;;:::i;7429:290:3:-;;;;;;:::i;:::-;;:::i;782:119:14:-;;;;;;:::i;:::-;;:::i;8590:282:3:-;;;;;;:::i;:::-;;:::i;576:734:4:-;;;;;;:::i;:::-;;:::i;545:170:5:-;;;;;;:::i;:::-;;:::i;7785:162:3:-;;;;;;:::i;:::-;;:::i;226:47:5:-;;;;;;:::i;:::-;;:::i;2004:240:15:-;;;;;;:::i;:::-;;:::i;2240:325:4:-;289:22:14;300:10;289;:22::i;:::-;281:48;;;;;-1:-1:-1;;;281:48:14;;;;;;;;;;;;-1:-1:-1;;;281:48:14;;;;;;;;;;;;;;;2358:34:4;;::::1;2350:94;;;;-1:-1:-1::0;;;2350:94:4::1;;;;;;;:::i;:::-;;;;;;;;;2459:6;2454:105;2471:18:::0;;::::1;2454:105;;;2510:38;2523:7;;2531:1;2523:10;;;;;;;;;;;;;2535:9;;2545:1;2535:12;;;;;;;;;;;;;;;;;;:::i;:::-;2510:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;2510:12:4::1;::::0;-1:-1:-1;;;2510:38:4:i:1;:::-;2491:3;;2454:105;;;;2240:325:::0;;;;:::o;965:148:2:-;-1:-1:-1;;;;;;1073:33:2;;1050:4;1073:33;;;;;;;;;;;;;965:148;;;;:::o;4440:98:3:-;4526:5;4519:12;;;;;;;;-1:-1:-1;;4519:12:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4494:13;;4519:12;;4526:5;;4519:12;;4526:5;4519:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4440:98;:::o;7145:217::-;7221:7;7248:16;7256:7;7248;:16::i;:::-;7240:73;;;;-1:-1:-1;;;7240:73:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7331:24:3;;;;:15;:24;;;;;;-1:-1:-1;;;;;7331:24:3;;7145:217::o;6689:395::-;6769:13;6785:23;6800:7;6785:14;:23::i;:::-;6769:39;;6832:5;-1:-1:-1;;;;;6826:11:3;:2;-1:-1:-1;;;;;6826:11:3;;;6818:57;;;;-1:-1:-1;;;6818:57:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6910:5;-1:-1:-1;;;;;6894:21:3;:12;:10;:12::i;:::-;-1:-1:-1;;;;;6894:21:3;;:69;;;;6919:44;6943:5;6950:12;:10;:12::i;6919:44::-;6886:159;;;;-1:-1:-1;;;6886:159:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7056:21;7065:2;7069:7;7056:8;:21::i;:::-;6689:395;;;:::o;6183:208::-;6244:7;6363:21;:12;:19;:21::i;:::-;6356:28;;6183:208;:::o;1596:251:5:-;1707:10;1691:27;;;;:15;:27;;;;;;;;1687:154;;;1734:28;1744:4;1750:2;1754:7;1734:9;:28::i;:::-;1687:154;;;1793:37;1812:4;1818:2;1822:7;1793:18;:37::i;353:99:14:-;406:4;440:5;-1:-1:-1;;;;;429:16:14;:7;:5;:7::i;:::-;-1:-1:-1;;;;;429:16:14;;;353:99;-1:-1:-1;;353:99:14:o;5952:160:3:-;-1:-1:-1;;;;;6075:20:3;;6049:7;6075:20;;;:13;:20;;;;;:30;;6099:5;6075:23;:30::i;:::-;6068:37;;5952:160;;;;;:::o;405:130:5:-;1301:12:15;:10;:12::i;:::-;-1:-1:-1;;;;;1290:23:15;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1290:23:15;;1282:68;;;;;-1:-1:-1;;;1282:68:15;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1282:68:15;;;;;;;;;;;;;;;510:18:5::1;516:2;520:7;510:5;:18::i;:::-;405:130:::0;;:::o;8375:149:3:-;8478:39;8495:4;8501:2;8505:7;8478:39;;;;;;;;;;;;:16;:39::i;1853:81:5:-;1301:12:15;:10;:12::i;:::-;-1:-1:-1;;;;;1290:23:15;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1290:23:15;;1282:68;;;;;-1:-1:-1;;;1282:68:15;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1282:68:15;;;;;;;;;;;;;;;1913:14:5::1;1919:7;1913:5;:14::i;:::-;1853:81:::0;:::o;6463:169:3:-;6538:7;;6579:22;:12;6595:5;6579:15;:22::i;:::-;-1:-1:-1;6557:44:3;6463:169;-1:-1:-1;;;6463:169:3:o;721:494:5:-;784:16;999:9;1011:17;1021:6;1011:9;:17::i;:::-;999:29;;1040:23;1080:1;1066:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1066:16:5;;1040:42;;1097:8;1092:94;1113:1;1109;:5;;;1092:94;;;1145:30;1165:6;1173:1;1145:30;;:19;:30::i;:::-;1135:6;1142:1;1135:9;;;;;;;;;;;;;;;;;;;:40;1116:3;;1092:94;;3596:246:4;3723:48;3740:7;3749:9;;3760:2;3764;3768;3723:16;:48::i;:::-;3715:78;;;;-1:-1:-1;;;3715:78:4;;;;;;;:::i;:::-;3803:32;3816:7;3825:9;;3803:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3803:12:4;;-1:-1:-1;;;3803:32:4:i;:::-;3596:246;;;;;;:::o;2571:28::-;;;-1:-1:-1;;;;;2571:28:4;;:::o;4203:175:3:-;4275:7;4301:70;4318:7;4301:70;;;;;;;;;;;;;;;;;:12;;:70;:16;:70::i;1221:120:5:-;1296:38;;;;;;;;;;;;;;;;;1221:120;:::o;2606:101:4:-;1301:12:15;:10;:12::i;:::-;-1:-1:-1;;;;;1290:23:15;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1290:23:15;;1282:68;;;;;-1:-1:-1;;;1282:68:15;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1282:68:15;;;;;;;;;;;;;;;2674:13:4::1;:26:::0;;-1:-1:-1;;;;;;2674:26:4::1;-1:-1:-1::0;;;;;2674:26:4;;;::::1;::::0;;;::::1;::::0;;2606:101::o;458:126:14:-;-1:-1:-1;;;;;537:22:14;;514:4;537:22;;;:15;:22;;;;;;;;;:40;;;563:14;571:5;563:7;:14::i;3928:218:3:-;4000:7;-1:-1:-1;;;;;4027:19:3;;4019:74;;;;-1:-1:-1;;;4019:74:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;4110:20:3;;;;;;:13;:20;;;;;:29;;:27;:29::i;1710:145:15:-;1301:12;:10;:12::i;:::-;-1:-1:-1;;;;;1290:23:15;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1290:23:15;;1282:68;;;;;-1:-1:-1;;;1282:68:15;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1282:68:15;;;;;;;;;;;;;;;1800:6:::1;::::0;1779:40:::1;::::0;1816:1:::1;::::0;-1:-1:-1;;;;;1800:6:15::1;::::0;1779:40:::1;::::0;1816:1;;1779:40:::1;1829:6;:19:::0;;-1:-1:-1;;;;;;1829:19:15::1;::::0;;1710:145::o;2904:270:4:-;3046:7;3069:15;3087:33;3101:7;3110:9;;3087:13;:33::i;:::-;3069:51;;3137:30;3147:7;3156:2;3160;3164;3137:30;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3137:30:4;;-1:-1:-1;;3137:30:4;;;2904:270;-1:-1:-1;;;;;;;;;2904:270:4:o;2103:131::-;289:22:14;300:10;289;:22::i;:::-;281:48;;;;;-1:-1:-1;;;281:48:14;;;;;;;;;;;;-1:-1:-1;;;281:48:14;;;;;;;;;;;;;;;2195:32:4::1;2208:7;2217:9;;2195:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;2195:12:4::1;::::0;-1:-1:-1;;;2195:32:4:i:1;2713:185::-:0;2809:15;2871:7;2880:9;;2860:30;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;2850:41;;;;;;2840:51;;2713:185;;;;;:::o;1078:85:15:-;1150:6;;-1:-1:-1;;;;;1150:6:15;1078:85;:::o;1011:209:14:-;1301:12:15;:10;:12::i;:::-;-1:-1:-1;;;;;1290:23:15;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1290:23:15;;1282:68;;;;;-1:-1:-1;;;1282:68:15;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1282:68:15;;;;;;;;;;;;;;;1106:15:14::1;1124:14;-1:-1:-1::0;;;;;1124:24:14::1;;1157:4;1124:39;;;;;;;;;;;;;-1:-1:-1::0;;;;;1124:39:14::1;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;1124:39:14;1173:40:::1;::::0;;-1:-1:-1;;;1173:40:14;;-1:-1:-1;;;;;1173:40:14;;::::1;;::::0;::::1;::::0;;;;;;;;;1124:39;;-1:-1:-1;1173:23:14;;::::1;::::0;::::1;::::0;:40;;;;;1124:39:::1;::::0;1173:40;;;;;;;;-1:-1:-1;1173:23:14;:40;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;4602:102:3::0;4690:7;4683:14;;;;;;;;-1:-1:-1;;4683:14:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4658:13;;4683:14;;4690:7;;4683:14;;4690:7;4683:14;;;;;;;;;;;;;;;;;;;;;;;;3180:241:4;3401:13;;3329:4;;-1:-1:-1;;;;;3401:13:4;3356:41;3366:7;3375:9;;3386:2;3390;3394;3356:9;:41::i;:::-;-1:-1:-1;;;;;3356:58:4;;;3180:241;-1:-1:-1;;;;;;;3180:241:4:o;590:186:14:-;1301:12:15;:10;:12::i;:::-;-1:-1:-1;;;;;1290:23:15;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1290:23:15;;1282:68;;;;;-1:-1:-1;;;1282:68:15;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1282:68:15;;;;;;;;;;;;;;;-1:-1:-1;;;;;670:26:14;::::1;662:60;;;::::0;;-1:-1:-1;;;662:60:14;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;662:60:14;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;733:29:14::1;;::::0;;;:15:::1;:29;::::0;;;;:36;;-1:-1:-1;;733:36:14::1;765:4;733:36;::::0;;590:186::o;7429:290:3:-;7543:12;:10;:12::i;:::-;-1:-1:-1;;;;;7531:24:3;:8;-1:-1:-1;;;;;7531:24:3;;;7523:62;;;;;-1:-1:-1;;;7523:62:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;7641:8;7596:18;:32;7615:12;:10;:12::i;:::-;-1:-1:-1;;;;;7596:32:3;;;;;;;;;;;;;;;;;-1:-1:-1;7596:32:3;;;:42;;;;;;;;;;;;:53;;-1:-1:-1;;7596:53:3;;;;;;;;;;;7679:12;:10;:12::i;:::-;-1:-1:-1;;;;;7664:48:3;;7703:8;7664:48;;;;;;;;;;;;;;;;;;;;7429:290;;:::o;782:119:14:-;1301:12:15;:10;:12::i;:::-;-1:-1:-1;;;;;1290:23:15;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1290:23:15;;1282:68;;;;;-1:-1:-1;;;1282:68:15;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1282:68:15;;;;;;;;;;;;;;;-1:-1:-1;;;;;864:29:14::1;;::::0;;;:15:::1;:29;::::0;;;;857:37;;-1:-1:-1;;857:37:14::1;::::0;;782:119::o;8590:282:3:-;8721:41;8740:12;:10;:12::i;:::-;8754:7;8721:18;:41::i;:::-;8713:103;;;;-1:-1:-1;;;8713:103:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8826:39;8840:4;8846:2;8850:7;8859:5;8826:13;:39::i;:::-;8590:282;;;;:::o;576:734:4:-;649:13;682:16;690:7;682;:16::i;:::-;674:78;;;;-1:-1:-1;;;674:78:4;;;;;;;:::i;:::-;789:19;;;;:10;:19;;;;;;;;;763:45;;;;;;-1:-1:-1;;763:45:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:23;;:45;;;789:19;763:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;818:18;839:9;:7;:9::i;:::-;818:30;;927:4;921:18;943:1;921:23;917:70;;;-1:-1:-1;967:9:4;-1:-1:-1;960:16:4;;917:70;1089:23;;:27;1085:178;;-1:-1:-1;1243:9:4;-1:-1:-1;1236:16:4;;1085:178;1280:23;1295:7;1280:14;:23::i;:::-;1273:30;576:734;-1:-1:-1;;;;576:734:4:o;545:170:5:-;1301:12:15;:10;:12::i;:::-;-1:-1:-1;;;;;1290:23:15;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1290:23:15;;1282:68;;;;;-1:-1:-1;;;1282:68:15;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1282:68:15;;;;;;;;;;;;;;;-1:-1:-1;;;;;630:24:5;::::1;;::::0;;;:15:::1;:24;::::0;;;;;;:33;;-1:-1:-1;;630:33:5::1;::::0;::::1;;;::::0;;678:30;::::1;::::0;::::1;::::0;630:33;;678:30:::1;:::i;:::-;;;;;;;;545:170:::0;;:::o;7785:162:3:-;-1:-1:-1;;;;;7905:25:3;;;7882:4;7905:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;7785:162::o;226:47:5:-;;;;;;;;;;;;;;;:::o;2004:240:15:-;1301:12;:10;:12::i;:::-;-1:-1:-1;;;;;1290:23:15;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1290:23:15;;1282:68;;;;;-1:-1:-1;;;1282:68:15;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1282:68:15;;;;;;;;;;;;;;;-1:-1:-1;;;;;2092:22:15;::::1;2084:73;;;;-1:-1:-1::0;;;2084:73:15::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2193:6;::::0;2172:38:::1;::::0;-1:-1:-1;;;;;2172:38:15;;::::1;::::0;2193:6:::1;::::0;2172:38:::1;::::0;2193:6:::1;::::0;2172:38:::1;2220:6;:17:::0;;-1:-1:-1;;;;;;2220:17:15::1;-1:-1:-1::0;;;;;2220:17:15;;;::::1;::::0;;;::::1;::::0;;2004:240::o;1457:223:4:-;1565:16;1573:7;1565;:16::i;:::-;1557:75;;;;-1:-1:-1;;;1557:75:4;;;;;;;:::i;:::-;1642:19;;;;:10;:19;;;;;;;;:31;;;;;;;;:::i;10306:125:3:-;10371:4;10394:30;:12;10416:7;10394:21;:30::i;598:104:1:-;685:10;598:104;:::o;16042:180:3:-;16107:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;16107:29:3;-1:-1:-1;;;;;16107:29:3;;;;;;;;:24;;16160:23;16107:24;16160:14;:23::i;:::-;-1:-1:-1;;;;;16151:46:3;;;;;;;;;;;16042:180;;:::o;7820:121:6:-;7889:7;7915:19;7923:3;7915:7;:19::i;13630:584:3:-;13754:4;-1:-1:-1;;;;;13727:31:3;:23;13742:7;13727:14;:23::i;:::-;-1:-1:-1;;;;;13727:31:3;;13719:85;;;;-1:-1:-1;;;13719:85:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;13840:16:3;;13832:65;;;;-1:-1:-1;;;13832:65:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13908:39;13929:4;13935:2;13939:7;13908:20;:39::i;:::-;14009:29;14026:1;14030:7;14009:8;:29::i;:::-;-1:-1:-1;;;;;14049:19:3;;;;;;:13;:19;;;;;:35;;14076:7;14049:26;:35::i;:::-;-1:-1:-1;;;;;;14094:17:3;;;;;;:13;:17;;;;;:30;;14116:7;14094:21;:30::i;:::-;-1:-1:-1;14135:29:3;:12;14152:7;14161:2;14135:16;:29::i;:::-;;14199:7;14195:2;-1:-1:-1;;;;;14180:27:3;14189:4;-1:-1:-1;;;;;14180:27:3;;;;;;;;;;;13630:584;;;:::o;8009:300::-;8168:41;8187:12;:10;:12::i;:::-;8201:7;8168:18;:41::i;:::-;8160:103;;;;-1:-1:-1;;;8160:103:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8274:28;8284:4;8290:2;8294:7;8274:9;:28::i;9250:135:7:-;9321:7;9355:22;9359:3;9371:5;9355:3;:22::i;12169:393:3:-;-1:-1:-1;;;;;12248:16:3;;12240:61;;;;;-1:-1:-1;;;12240:61:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12320:16;12328:7;12320;:16::i;:::-;12319:17;12311:58;;;;;-1:-1:-1;;;12311:58:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;12380:45;12409:1;12413:2;12417:7;12380:20;:45::i;:::-;-1:-1:-1;;;;;12436:17:3;;;;;;:13;:17;;;;;:30;;12458:7;12436:21;:30::i;:::-;-1:-1:-1;12477:29:3;:12;12494:7;12503:2;12477:16;:29::i;:::-;-1:-1:-1;12522:33:3;;12547:7;;-1:-1:-1;;;;;12522:33:3;;;12539:1;;12522:33;;12539:1;;12522:33;12169:393;;:::o;1897:200:4:-;1965:20;1977:7;1965:11;:20::i;:::-;2006:19;;;;:10;:19;;;;;2000:33;;-1:-1:-1;;2000:33:4;;;;;;;;;;;:38;1996:95;;2061:19;;;;:10;:19;;;;;2054:26;;;:::i;8269:233:6:-;8349:7;;;;8408:22;8412:3;8424:5;8408:3;:22::i;:::-;8377:53;;-1:-1:-1;8377:53:6;-1:-1:-1;;;8269:233:6;;;;;;:::o;9522:211::-;9629:7;9679:44;9684:3;9704;9710:12;9679:4;:44::i;:::-;9671:53;-1:-1:-1;9522:211:6;;;;;;:::o;10589:351:3:-;10682:4;10706:16;10714:7;10706;:16::i;:::-;10698:73;;;;-1:-1:-1;;;10698:73:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10781:13;10797:23;10812:7;10797:14;:23::i;:::-;10781:39;;10849:5;-1:-1:-1;;;;;10838:16:3;:7;-1:-1:-1;;;;;10838:16:3;;:51;;;;10882:7;-1:-1:-1;;;;;10858:31:3;:20;10870:7;10858:11;:20::i;:::-;-1:-1:-1;;;;;10858:31:3;;10838:51;:94;;;;10893:39;10917:5;10924:7;10893:23;:39::i;9734:269::-;9847:28;9857:4;9863:2;9867:7;9847:9;:28::i;:::-;9893:48;9916:4;9922:2;9926:7;9935:5;9893:22;:48::i;:::-;9885:111;;;;-1:-1:-1;;;9885:111:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4770:776;4843:13;4876:16;4884:7;4876;:16::i;:::-;4868:76;;;;-1:-1:-1;;;4868:76:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4981:19;;;;:10;:19;;;;;;;;;4955:45;;;;;;-1:-1:-1;;4955:45:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:23;;:45;;;4981:19;4955:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5010:18;5031:9;:7;:9::i;:::-;5010:30;;5119:4;5113:18;5135:1;5113:23;5109:70;;;-1:-1:-1;5159:9:3;-1:-1:-1;5152:16:3;;5109:70;5281:23;;:27;5277:106;;5355:4;5361:9;5338:33;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5338:33:3;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5338:33:3;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5338:33:3;;;;;;;;;;;;;-1:-1:-1;;5338:33:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5324:48;;;;;;5277:106;5513:4;5519:18;:7;:16;:18::i;:::-;5496:42;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5496:42:3;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5496:42:3;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5496:42:3;;;;;;;;;;;;;-1:-1:-1;;5496:42:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5482:57;;;;4770:776;;;:::o;7588:149:6:-;7672:4;7695:35;7705:3;7725;7695:9;:35::i;4491:108::-;4573:19;;4491:108::o;8365:135:7:-;8435:4;8458:35;8466:3;8486:5;8458:7;:35::i;8068:129::-;8135:4;8158:32;8163:3;8183:5;8158:4;:32::i;7027:183:6:-;7116:4;7139:64;7144:3;7164;-1:-1:-1;;;;;7178:23:6;;7139:4;:64::i;4452:201:7:-;4546:18;;4519:7;;4546:26;-1:-1:-1;4538:73:7;;;;-1:-1:-1;;;4538:73:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4628:3;:11;;4640:5;4628:18;;;;;;;;;;;;;;;;4621:25;;4452:201;;;;:::o;12779:527:3:-;12838:13;12854:23;12869:7;12854:14;:23::i;:::-;12838:39;;12906:48;12927:5;12942:1;12946:7;12906:20;:48::i;:::-;12992:29;13009:1;13013:7;12992:8;:29::i;:::-;13077:19;;;;:10;:19;;;;;13071:33;;-1:-1:-1;;13071:33:3;;;;;;;;;;;:38;13067:95;;13132:19;;;;:10;:19;;;;;13125:26;;;:::i;:::-;-1:-1:-1;;;;;13172:20:3;;;;;;:13;:20;;;;;:36;;13200:7;13172:27;:36::i;:::-;-1:-1:-1;13219:28:3;:12;13239:7;13219:19;:28::i;:::-;-1:-1:-1;13263:36:3;;13291:7;;13287:1;;-1:-1:-1;;;;;13263:36:3;;;;;13287:1;;13263:36;12779:527;;:::o;4942:274:6:-;5045:19;;5009:7;;;;5045:27;-1:-1:-1;5037:74:6;;;;-1:-1:-1;;;5037:74:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5122:22;5147:3;:12;;5160:5;5147:19;;;;;;;;;;;;;;;;;;5122:44;;5184:5;:10;;;5196:5;:12;;;5176:33;;;;;4942:274;;;;;:::o;6403:315::-;6497:7;6535:17;;;:12;;;:17;;;;;;6585:12;6570:13;6562:36;;;;-1:-1:-1;;;6562:36:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6651:3;:12;;6675:1;6664:8;:12;6651:26;;;;;;;;;;;;;;;;;;:33;;;6644:40;;;6403:315;;;;;:::o;15447:589:3:-;15567:4;15592:15;:2;-1:-1:-1;;;;;15592:13:3;;:15::i;:::-;15587:58;;-1:-1:-1;15630:4:3;15623:11;;15587:58;15654:23;15680:246;-1:-1:-1;;;15791:12:3;:10;:12::i;:::-;15817:4;15835:7;15856:5;15696:175;;;;;;-1:-1:-1;;;;;15696:175:3;;;;;;-1:-1:-1;;;;;15696:175:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15696:175:3;;;;;;;-1:-1:-1;;;;;15696:175:3;;;;;;;;;;;15680:246;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15680:15:3;;;:246;:15;:246::i;:::-;15654:272;;15936:13;15963:10;15952:32;;;;;;;;;;;;;;;-1:-1:-1;15952:32:3;-1:-1:-1;;;;;;16002:26:3;-1:-1:-1;;;16002:26:3;;-1:-1:-1;;;15447:589:3;;;;;;:::o;210:725:17:-;266:13;483:10;479:51;;-1:-1:-1;509:10:17;;;;;;;;;;;;-1:-1:-1;;;509:10:17;;;;;;479:51;554:5;539:12;593:75;600:9;;593:75;;625:8;;655:2;647:10;;;;593:75;;;677:19;709:6;699:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;699:17:17;-1:-1:-1;769:5:17;;-1:-1:-1;677:39:17;-1:-1:-1;;;742:10:17;;784:114;791:9;;784:114;;859:2;852:4;:9;847:2;:14;834:29;;816:6;823:7;;;;;;;816:15;;;;;;;;;;;:47;-1:-1:-1;;;;;816:47:17;;;;;;;;-1:-1:-1;885:2:17;877:10;;;;784:114;;;-1:-1:-1;921:6:17;210:725;-1:-1:-1;;;;210:725:17:o;4278:123:6:-;4349:4;4372:17;;;:12;;;;;:17;;;;;;:22;;;4278:123::o;2212:1512:7:-;2278:4;2415:19;;;:12;;;:19;;;;;;2449:15;;2445:1273;;2878:18;;-1:-1:-1;;2830:14:7;;;;2878:22;;;;2806:21;;2878:3;;:22;;3160;;;;;;;;;;;;;;3140:42;;3303:9;3274:3;:11;;3286:13;3274:26;;;;;;;;;;;;;;;;;;;:38;;;;3378:23;;;3420:1;3378:12;;;:23;;;;;;3404:17;;;3378:43;;3527:17;;3378:3;;3527:17;;;;;;;;;;;;;;;;;;;;;;3619:3;:12;;:19;3632:5;3619:19;;;;;;;;;;;3612:26;;;3660:4;3653:11;;;;;;;;2445:1273;3702:5;3695:12;;;;;1640:404;1703:4;1724:21;1734:3;1739:5;1724:9;:21::i;:::-;1719:319;;-1:-1:-1;1761:23:7;;;;;;;;:11;:23;;;;;;;;;;;;;1941:18;;1919:19;;;:12;;;:19;;;;;;:40;;;;1973:11;;1719:319;-1:-1:-1;2022:5:7;2015:12;;1836:678:6;1912:4;2045:17;;;:12;;;:17;;;;;;2077:13;2073:435;;-1:-1:-1;;2161:38:6;;;;;;;;;;;;;;;;;;2143:57;;;;;;;;:12;:57;;;;;;;;;;;;;;;;;;;;;;;;2355:19;;2335:17;;;:12;;;:17;;;;;;;:39;2388:11;;2073:435;2466:5;2430:3;:12;;2454:1;2443:8;:12;2430:26;;;;;;;;;;;;;;;;;;:33;;:41;;;;2492:5;2485:12;;;;;7369:140;7446:4;7469:33;7477:3;7497;7469:7;:33::i;726:413:0:-;1086:20;1124:8;;;726:413::o;3581:193::-;3684:12;3715:52;3737:6;3745:4;3751:1;3754:12;3715:21;:52::i;2682:1517:6:-;2746:4;2879:17;;;:12;;;:17;;;;;;2911:13;;2907:1286;;3337:19;;-1:-1:-1;;3291:12:6;;;;3337:23;;;;3267:21;;3337:3;;:23;;3629;;;;;;;;;;;;;;;;3600:52;;3774:9;3744:3;:12;;3757:13;3744:27;;;;;;;;;;;;;;;;:39;;:27;;;;;:39;;;;;;;;;;;;;;;3862:14;;3849:28;;:12;;;:28;;;;;3880:17;;;3849:48;;4003:18;;3849:3;;4003:18;;;;;;;;;;;;;;-1:-1:-1;;4003:18:6;;;;;;;;;;;;;;;;;;;;;4096:17;;;:12;;;:17;;;;;;4089:24;;;;4003:18;-1:-1:-1;4128:11:6;;-1:-1:-1;;;;4128:11:6;4608:523:0;4735:12;4792:5;4767:21;:30;;4759:81;;;;-1:-1:-1;;;4759:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4858:18;4869:6;4858:10;:18::i;:::-;4850:60;;;;;-1:-1:-1;;;4850:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;4981:12;4995:23;5022:6;-1:-1:-1;;;;;5022:11:0;5042:5;5050:4;5022:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5022:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4980:75;;;;5072:52;5090:7;5099:10;5111:12;5072:17;:52::i;:::-;5065:59;4608:523;-1:-1:-1;;;;;;;4608:523:0:o;7091:725::-;7206:12;7234:7;7230:580;;;-1:-1:-1;7264:10:0;7257:17;;7230:580;7375:17;;:21;7371:429;;7633:10;7627:17;7693:15;7680:10;7676:2;7672:19;7665:44;7582:145;7765:20;;-1:-1:-1;;;7765:20:0;;;;;;;;;;;;;;;;;7772:12;;7765:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:412:18;;;155:3;148:4;140:6;136:17;132:27;122:2;;180:8;170;163:26;122:2;-1:-1:-1;210:20:18;;253:18;242:30;;239:2;;;292:8;282;275:26;239:2;336:4;328:6;324:17;312:29;;399:3;392:4;384;376:6;372:17;364:6;360:30;356:41;353:50;350:2;;;416:1;413;406:12;431:378;;;549:3;542:4;534:6;530:17;526:27;516:2;;574:8;564;557:26;516:2;-1:-1:-1;604:20:18;;647:18;636:30;;633:2;;;686:8;676;669:26;633:2;730:4;722:6;718:17;706:29;;782:3;775:4;766:6;758;754:19;750:30;747:39;744:2;;;799:1;796;789:12;814:259;;926:2;914:9;905:7;901:23;897:32;894:2;;;947:6;939;932:22;894:2;991:9;978:23;1010:33;1037:5;1010:33;:::i;1078:402::-;;;1207:2;1195:9;1186:7;1182:23;1178:32;1175:2;;;1228:6;1220;1213:22;1175:2;1272:9;1259:23;1291:33;1318:5;1291:33;:::i;:::-;1343:5;-1:-1:-1;1400:2:18;1385:18;;1372:32;1413:35;1372:32;1413:35;:::i;:::-;1467:7;1457:17;;;1165:315;;;;;:::o;1485:470::-;;;;1631:2;1619:9;1610:7;1606:23;1602:32;1599:2;;;1652:6;1644;1637:22;1599:2;1696:9;1683:23;1715:33;1742:5;1715:33;:::i;:::-;1767:5;-1:-1:-1;1824:2:18;1809:18;;1796:32;1837:35;1796:32;1837:35;:::i;:::-;1589:366;;1891:7;;-1:-1:-1;;;1945:2:18;1930:18;;;;1917:32;;1589:366::o;1960:1316::-;;;;;2132:3;2120:9;2111:7;2107:23;2103:33;2100:2;;;2154:6;2146;2139:22;2100:2;2198:9;2185:23;2217:33;2244:5;2217:33;:::i;:::-;2269:5;-1:-1:-1;2293:2:18;2332:18;;;2319:32;2360:35;2319:32;2360:35;:::i;:::-;2414:7;-1:-1:-1;2468:2:18;2453:18;;2440:32;;-1:-1:-1;2523:2:18;2508:18;;2495:32;2546:18;2576:14;;;2573:2;;;2608:6;2600;2593:22;2573:2;2651:6;2640:9;2636:22;2626:32;;2696:7;2689:4;2685:2;2681:13;2677:27;2667:2;;2723:6;2715;2708:22;2667:2;2768;2755:16;2794:2;2786:6;2783:14;2780:2;;;2800:9;2780:2;2840;2834:9;2913:2;2890:17;;-1:-1:-1;;2886:31:18;2874:44;;2870:53;;2938:18;;;2958:22;;;2935:46;2932:2;;;2984:9;2932:2;3011;3004:22;3035;;;3076:15;;;3072:24;;3069:37;-1:-1:-1;3066:2:18;;;3124:6;3116;3109:22;3066:2;3185:6;3180:2;3176;3172:11;3167:2;3159:6;3155:15;3142:50;3212:19;;;3208:28;;;3201:44;;;;-1:-1:-1;2090:1186:18;;;;-1:-1:-1;2090:1186:18;;-1:-1:-1;;2090:1186:18:o;3281:438::-;;;3407:2;3395:9;3386:7;3382:23;3378:32;3375:2;;;3428:6;3420;3413:22;3375:2;3472:9;3459:23;3491:33;3518:5;3491:33;:::i;:::-;3543:5;-1:-1:-1;3600:2:18;3585:18;;3572:32;3642:15;;3635:23;3623:36;;3613:2;;3678:6;3670;3663:22;3724:327;;;3853:2;3841:9;3832:7;3828:23;3824:32;3821:2;;;3874:6;3866;3859:22;3821:2;3918:9;3905:23;3937:33;3964:5;3937:33;:::i;:::-;3989:5;4041:2;4026:18;;;;4013:32;;-1:-1:-1;;;3811:240:18:o;4056:843::-;;;;;4267:2;4255:9;4246:7;4242:23;4238:32;4235:2;;;4288:6;4280;4273:22;4235:2;4333:9;4320:23;4362:18;4403:2;4395:6;4392:14;4389:2;;;4424:6;4416;4409:22;4389:2;4468:84;4544:7;4535:6;4524:9;4520:22;4468:84;:::i;:::-;4571:8;;-1:-1:-1;4442:110:18;-1:-1:-1;4659:2:18;4644:18;;4631:32;;-1:-1:-1;4675:16:18;;;4672:2;;;4709:6;4701;4694:22;4672:2;;4753:86;4831:7;4820:8;4809:9;4805:24;4753:86;:::i;:::-;4225:674;;;;-1:-1:-1;4858:8:18;-1:-1:-1;;;;4225:674:18:o;4904:306::-;;5015:2;5003:9;4994:7;4990:23;4986:32;4983:2;;;5036:6;5028;5021:22;4983:2;5067:23;;-1:-1:-1;;;;;;5119:32:18;;5109:43;;5099:2;;5171:6;5163;5156:22;5215:417;;;5359:2;5347:9;5338:7;5334:23;5330:32;5327:2;;;5380:6;5372;5365:22;5637:190;;5749:2;5737:9;5728:7;5724:23;5720:32;5717:2;;;5770:6;5762;5755:22;5717:2;-1:-1:-1;5798:23:18;;5707:120;-1:-1:-1;5707:120:18:o;5832:501::-;;;;5981:2;5969:9;5960:7;5956:23;5952:32;5949:2;;;6002:6;5994;5987:22;5949:2;6043:9;6030:23;6020:33;;6104:2;6093:9;6089:18;6076:32;6131:18;6123:6;6120:30;6117:2;;;6168:6;6160;6153:22;6117:2;6212:61;6265:7;6256:6;6245:9;6241:22;6212:61;:::i;:::-;5939:394;;6292:8;;-1:-1:-1;6186:87:18;;-1:-1:-1;;;;5939:394:18:o;6338:806::-;;;;;;;6536:3;6524:9;6515:7;6511:23;6507:33;6504:2;;;6558:6;6550;6543:22;6504:2;6599:9;6586:23;6576:33;;6660:2;6649:9;6645:18;6632:32;6687:18;6679:6;6676:30;6673:2;;;6724:6;6716;6709:22;6673:2;6768:61;6821:7;6812:6;6801:9;6797:22;6768:61;:::i;:::-;6848:8;;-1:-1:-1;6742:87:18;-1:-1:-1;;6933:2:18;6918:18;;6905:32;6977:4;6966:16;;6956:27;;6946:2;;7002:6;6994;6987:22;6946:2;6494:650;;;;-1:-1:-1;6494:650:18;;7082:2;7067:18;;7054:32;;7133:3;7118:19;;;7105:33;;-1:-1:-1;6494:650:18;-1:-1:-1;;6494:650:18:o;7149:203::-;-1:-1:-1;;;;;7313:32:18;;;;7295:51;;7283:2;7268:18;;7250:102::o;7357:635::-;7528:2;7580:21;;;7650:13;;7553:18;;;7672:22;;;7357:635;;7528:2;7751:15;;;;7725:2;7710:18;;;7357:635;7797:169;7811:6;7808:1;7805:13;7797:169;;;7872:13;;7860:26;;7941:15;;;;7906:12;;;;7833:1;7826:9;7797:169;;;-1:-1:-1;7983:3:18;;7508:484;-1:-1:-1;;;;;;7508:484:18:o;7997:187::-;8162:14;;8155:22;8137:41;;8125:2;8110:18;;8092:92::o;8189:177::-;8335:25;;;8323:2;8308:18;;8290:76::o;8371:398::-;8598:25;;;8671:4;8659:17;;;;8654:2;8639:18;;8632:45;8708:2;8693:18;;8686:34;8751:2;8736:18;;8729:34;8585:3;8570:19;;8552:217::o;8774:603::-;;8915:2;8944;8933:9;8926:21;8976:6;8970:13;9019:6;9014:2;9003:9;8999:18;8992:34;9044:4;9057:140;9071:6;9068:1;9065:13;9057:140;;;9166:14;;;9162:23;;9156:30;9132:17;;;9151:2;9128:26;9121:66;9086:10;;9057:140;;;9215:6;9212:1;9209:13;9206:2;;;9285:4;9280:2;9271:6;9260:9;9256:22;9252:31;9245:45;9206:2;-1:-1:-1;9361:2:18;9340:15;-1:-1:-1;;9336:29:18;9321:45;;;;9368:2;9317:54;;8895:482;-1:-1:-1;;;8895:482:18:o;9382:411::-;9584:2;9566:21;;;9623:2;9603:18;;;9596:30;9662:34;9657:2;9642:18;;9635:62;-1:-1:-1;;;9728:2:18;9713:18;;9706:45;9783:3;9768:19;;9556:237::o;9798:341::-;10000:2;9982:21;;;10039:2;10019:18;;;10012:30;-1:-1:-1;;;10073:2:18;10058:18;;10051:47;10130:2;10115:18;;9972:167::o;10144:410::-;10346:2;10328:21;;;10385:2;10365:18;;;10358:30;10424:34;10419:2;10404:18;;10397:62;-1:-1:-1;;;10490:2:18;10475:18;;10468:44;10544:3;10529:19;;10318:236::o;10559:413::-;10761:2;10743:21;;;10800:2;10780:18;;;10773:30;10839:34;10834:2;10819:18;;10812:62;-1:-1:-1;;;10905:2:18;10890:18;;10883:47;10962:3;10947:19;;10733:239::o;11159:464::-;;11346:6;11335:9;11328:25;11389:2;11384;11373:9;11369:18;11362:30;11428:6;11423:2;11412:9;11408:18;11401:34;11485:6;11477;11472:2;11461:9;11457:18;11444:48;11512:22;;;11536:2;11508:31;;;11501:45;;;;11607:2;11586:15;;;-1:-1:-1;;11582:29:18;11567:45;11563:54;;11318:305;-1:-1:-1;;11318:305:18:o;11628:534::-;;;11772:11;11759:25;11866:2;11862:7;11851:8;11835:14;11831:29;11827:43;11807:18;11803:68;11793:2;;11888:4;11882;11875:18;11793:2;11918:33;;11970:20;;;-1:-1:-1;12013:18:18;12002:30;;11999:2;;;12048:4;12042;12035:18;11999:2;12084:4;12072:17;;-1:-1:-1;12115:14:18;12111:27;;;12101:38;;12098:2;;;12152:1;12149;12142:12;12167:133;-1:-1:-1;;;;;12244:31:18;;12234:42;;12224:2;;12290:1;12287;12280:12
Swarm Source
ipfs://0fc02e415241d668d7fc0f4499deb6d9790d56ba1209cb1e1ac759addecc5054
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.