CRC-721
Overview
Max Total Supply
2,600 PFP
Holders
139
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Balance
3 PFPLoading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
PlushFootPrint
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at cronoscan.com on 2023-08-15 */ // SPDX-License-Identifier: MIT LICENSE // ___ // / \\ // //\\ | . . \\ // ////\\| || // /// \\ ___//\ // /// \\ \ // /// |\\ C.C. \ // /// | \\ \ \ ///// | \\ \ \ //// | \\ / / /// | \/ / // | \\/| // | \\| // | \\ // | |\ // |_________\\ /** NFT Contract - Plush Foot Print ────████ ──████████──────████────████ ─███████████───██████──██████ █████████████──██████──██████─████ █████████████───████────████─██████ ─████████████────────────────██████ ──██████████───────███████─────███──███ ───████████───████████████████─────█████ ─────████────█████████████████████──███ ────────────███████████████████████ ───────────█████████████████████████ ──────────███████████████████████████ ──────────████████████████████████████ ──────────████████████████████████████ ──────────████████████████████████████ ──────────████████████████████████████ ───────────███████████████████████████ ─────────────────█████████████████████ ─────────────────────█████████████████ ───────────────────────███████████████ ───────────────────────███████████████ ────────────────────────██████████████ ───────────────────────██████████████ ───────────────────────██████████████ ───────────────────────██████████████ ─────────────────────███████████████ ────────────────────████████████████ ───────────────────████████████████ ───────────────────███████████████ ──────────────────███████████████ ───────────────────█████████████ ────────────────────█████████ */ pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ```solidity * 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. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure * unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an * array of EnumerableSet. * ==== */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { bytes32[] memory store = _values(set._inner); bytes32[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values in the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } } // File: @openzeppelin/contracts/utils/structs/EnumerableMap.sol // OpenZeppelin Contracts (last updated v4.9.0) (utils/structs/EnumerableMap.sol) // This file was procedurally generated from scripts/generate/templates/EnumerableMap.js. pragma solidity ^0.8.0; /** * @dev Library for managing an enumerable variant of Solidity's * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`] * type. * * Maps have the following properties: * * - Entries are added, removed, and checked for existence in constant time * (O(1)). * - Entries are enumerated in O(n). No guarantees are made on the ordering. * * ```solidity * contract Example { * // Add the library methods * using EnumerableMap for EnumerableMap.UintToAddressMap; * * // Declare a set state variable * EnumerableMap.UintToAddressMap private myMap; * } * ``` * * The following map types are supported: * * - `uint256 -> address` (`UintToAddressMap`) since v3.0.0 * - `address -> uint256` (`AddressToUintMap`) since v4.6.0 * - `bytes32 -> bytes32` (`Bytes32ToBytes32Map`) since v4.6.0 * - `uint256 -> uint256` (`UintToUintMap`) since v4.7.0 * - `bytes32 -> uint256` (`Bytes32ToUintMap`) since v4.7.0 * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure * unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableMap, you can either remove all elements one by one or create a fresh instance using an * array of EnumerableMap. * ==== */ library EnumerableMap { using EnumerableSet for EnumerableSet.Bytes32Set; // 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 Bytes32ToBytes32Map { // Storage of keys EnumerableSet.Bytes32Set _keys; mapping(bytes32 => bytes32) _values; } /** * @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(Bytes32ToBytes32Map storage map, bytes32 key, bytes32 value) internal returns (bool) { map._values[key] = value; return map._keys.add(key); } /** * @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(Bytes32ToBytes32Map storage map, bytes32 key) internal returns (bool) { delete map._values[key]; return map._keys.remove(key); } /** * @dev Returns true if the key is in the map. O(1). */ function contains(Bytes32ToBytes32Map storage map, bytes32 key) internal view returns (bool) { return map._keys.contains(key); } /** * @dev Returns the number of key-value pairs in the map. O(1). */ function length(Bytes32ToBytes32Map storage map) internal view returns (uint256) { return map._keys.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(Bytes32ToBytes32Map storage map, uint256 index) internal view returns (bytes32, bytes32) { bytes32 key = map._keys.at(index); return (key, map._values[key]); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. */ function tryGet(Bytes32ToBytes32Map storage map, bytes32 key) internal view returns (bool, bytes32) { bytes32 value = map._values[key]; if (value == bytes32(0)) { return (contains(map, key), bytes32(0)); } else { return (true, value); } } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function get(Bytes32ToBytes32Map storage map, bytes32 key) internal view returns (bytes32) { bytes32 value = map._values[key]; require(value != 0 || contains(map, key), "EnumerableMap: nonexistent key"); return value; } /** * @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( Bytes32ToBytes32Map storage map, bytes32 key, string memory errorMessage ) internal view returns (bytes32) { bytes32 value = map._values[key]; require(value != 0 || contains(map, key), errorMessage); return value; } /** * @dev Return the an array containing all the keys * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the map grows to a point where copying to memory consumes too much gas to fit in a block. */ function keys(Bytes32ToBytes32Map storage map) internal view returns (bytes32[] memory) { return map._keys.values(); } // UintToUintMap struct UintToUintMap { Bytes32ToBytes32Map _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(UintToUintMap storage map, uint256 key, uint256 value) internal returns (bool) { return set(map._inner, bytes32(key), bytes32(value)); } /** * @dev Removes a value from a map. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function remove(UintToUintMap 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(UintToUintMap 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(UintToUintMap storage map) internal view returns (uint256) { return length(map._inner); } /** * @dev Returns the element stored at position `index` in the map. 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(UintToUintMap storage map, uint256 index) internal view returns (uint256, uint256) { (bytes32 key, bytes32 value) = at(map._inner, index); return (uint256(key), uint256(value)); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. */ function tryGet(UintToUintMap storage map, uint256 key) internal view returns (bool, uint256) { (bool success, bytes32 value) = tryGet(map._inner, bytes32(key)); return (success, uint256(value)); } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function get(UintToUintMap storage map, uint256 key) internal view returns (uint256) { return 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(UintToUintMap storage map, uint256 key, string memory errorMessage) internal view returns (uint256) { return uint256(get(map._inner, bytes32(key), errorMessage)); } /** * @dev Return the an array containing all the keys * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the map grows to a point where copying to memory consumes too much gas to fit in a block. */ function keys(UintToUintMap storage map) internal view returns (uint256[] memory) { bytes32[] memory store = keys(map._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // UintToAddressMap struct UintToAddressMap { Bytes32ToBytes32Map _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 map. 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 map. 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. */ 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)))); } /** * @dev Return the an array containing all the keys * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the map grows to a point where copying to memory consumes too much gas to fit in a block. */ function keys(UintToAddressMap storage map) internal view returns (uint256[] memory) { bytes32[] memory store = keys(map._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // AddressToUintMap struct AddressToUintMap { Bytes32ToBytes32Map _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(AddressToUintMap storage map, address key, uint256 value) internal returns (bool) { return set(map._inner, bytes32(uint256(uint160(key))), bytes32(value)); } /** * @dev Removes a value from a map. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function remove(AddressToUintMap storage map, address key) internal returns (bool) { return remove(map._inner, bytes32(uint256(uint160(key)))); } /** * @dev Returns true if the key is in the map. O(1). */ function contains(AddressToUintMap storage map, address key) internal view returns (bool) { return contains(map._inner, bytes32(uint256(uint160(key)))); } /** * @dev Returns the number of elements in the map. O(1). */ function length(AddressToUintMap storage map) internal view returns (uint256) { return length(map._inner); } /** * @dev Returns the element stored at position `index` in the map. 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(AddressToUintMap storage map, uint256 index) internal view returns (address, uint256) { (bytes32 key, bytes32 value) = at(map._inner, index); return (address(uint160(uint256(key))), uint256(value)); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. */ function tryGet(AddressToUintMap storage map, address key) internal view returns (bool, uint256) { (bool success, bytes32 value) = tryGet(map._inner, bytes32(uint256(uint160(key)))); return (success, uint256(value)); } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function get(AddressToUintMap storage map, address key) internal view returns (uint256) { return uint256(get(map._inner, bytes32(uint256(uint160(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( AddressToUintMap storage map, address key, string memory errorMessage ) internal view returns (uint256) { return uint256(get(map._inner, bytes32(uint256(uint160(key))), errorMessage)); } /** * @dev Return the an array containing all the keys * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the map grows to a point where copying to memory consumes too much gas to fit in a block. */ function keys(AddressToUintMap storage map) internal view returns (address[] memory) { bytes32[] memory store = keys(map._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // Bytes32ToUintMap struct Bytes32ToUintMap { Bytes32ToBytes32Map _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(Bytes32ToUintMap storage map, bytes32 key, uint256 value) internal returns (bool) { return set(map._inner, key, bytes32(value)); } /** * @dev Removes a value from a map. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function remove(Bytes32ToUintMap storage map, bytes32 key) internal returns (bool) { return remove(map._inner, key); } /** * @dev Returns true if the key is in the map. O(1). */ function contains(Bytes32ToUintMap storage map, bytes32 key) internal view returns (bool) { return contains(map._inner, key); } /** * @dev Returns the number of elements in the map. O(1). */ function length(Bytes32ToUintMap storage map) internal view returns (uint256) { return length(map._inner); } /** * @dev Returns the element stored at position `index` in the map. 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(Bytes32ToUintMap storage map, uint256 index) internal view returns (bytes32, uint256) { (bytes32 key, bytes32 value) = at(map._inner, index); return (key, uint256(value)); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. */ function tryGet(Bytes32ToUintMap storage map, bytes32 key) internal view returns (bool, uint256) { (bool success, bytes32 value) = tryGet(map._inner, key); return (success, uint256(value)); } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function get(Bytes32ToUintMap storage map, bytes32 key) internal view returns (uint256) { return uint256(get(map._inner, 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( Bytes32ToUintMap storage map, bytes32 key, string memory errorMessage ) internal view returns (uint256) { return uint256(get(map._inner, key, errorMessage)); } /** * @dev Return the an array containing all the keys * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the map grows to a point where copying to memory consumes too much gas to fit in a block. */ function keys(Bytes32ToUintMap storage map) internal view returns (bytes32[] memory) { bytes32[] memory store = keys(map._inner); bytes32[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } } // File: @openzeppelin/contracts/utils/math/SafeMath.sol // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ 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) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { 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) { unchecked { // 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) { unchecked { 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) { unchecked { 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) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return 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) { return a * b; } /** * @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. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { 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) { 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) { unchecked { 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. * * 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) { unchecked { 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) { unchecked { require(b > 0, errorMessage); return a % b; } } } // File: @openzeppelin/contracts/security/ReentrancyGuard.sol // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } } // File: @openzeppelin/contracts/utils/math/SignedMath.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } } // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } } // File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: @openzeppelin/contracts/token/ERC721/IERC721.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * 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; /** * @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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * 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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/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.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool); } // File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to * 0 before setting it to a non-zero value. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/token/ERC721/ERC721.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or 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: caller is not token owner or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @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 _ownerOf(tokenId) != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {} /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such * that `ownerOf(tokenId)` is `a`. */ // solhint-disable-next-line func-name-mixedcase function __unsafe_increaseBalance(address account, uint256 amount) internal { _balances[account] += amount; } } // File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev See {ERC721-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual override { super._beforeTokenTransfer(from, to, firstTokenId, batchSize); if (batchSize > 1) { // Will only trigger during construction. Batch transferring (minting) is not available afterwards. revert("ERC721Enumerable: consecutive transfers not supported"); } uint256 tokenId = firstTokenId; if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: PlushFootPrint.sol // ___ // / \\ // //\\ | . . \\ // ////\\| || // /// \\ ___//\ // /// \\ \ // /// |\\ C.C. \ // /// | \\ \ \ ///// | \\ \ \ //// | \\ / / /// | \/ / // | \\/| // | \\| // | \\ // | |\ // |_________\\ /** NFT Contract - Plush Foot Print ────████ ──████████──────████────████ ─███████████───██████──██████ █████████████──██████──██████─████ █████████████───████────████─██████ ─████████████────────────────██████ ──██████████───────███████─────███──███ ───████████───████████████████─────█████ ─────████────█████████████████████──███ ────────────███████████████████████ ───────────█████████████████████████ ──────────███████████████████████████ ──────────████████████████████████████ ──────────████████████████████████████ ──────────████████████████████████████ ──────────████████████████████████████ ───────────███████████████████████████ ─────────────────█████████████████████ ─────────────────────█████████████████ ───────────────────────███████████████ ───────────────────────███████████████ ────────────────────────██████████████ ───────────────────────██████████████ ───────────────────────██████████████ ───────────────────────██████████████ ─────────────────────███████████████ ────────────────────████████████████ ───────────────────████████████████ ───────────────────███████████████ ──────────────────███████████████ ───────────────────█████████████ ────────────────────█████████ */ pragma solidity ^0.8.0; contract PlushFootPrint is ReentrancyGuard, ERC721Enumerable, Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; receive() external payable {} struct TokenInfo { IERC20 ERC20paytoken; uint256 ERC20publicCost; uint256 ERC20whitelistCost; uint256 ERC20royaltyPercentage; address ERC20royaltyWallet; } struct ETHInfo { uint256 ETHpublicCost; uint256 ETHwhitelistCost; uint256 ETHroyaltyPercentage; address payable ETHroyaltyWallet; } using EnumerableSet for EnumerableSet.AddressSet; EnumerableSet.AddressSet private whitelist; mapping(address => TokenInfo) private payTokens; using EnumerableMap for EnumerableMap.AddressToUintMap; EnumerableMap.AddressToUintMap private publicCosts; EnumerableMap.AddressToUintMap private whitelistCosts; ETHInfo public ethInfo; using Strings for uint256; string public baseURI; string public baseExtension = ".json"; uint256 public constant maxSupply = 5000; uint256 public constant maxMintAmount = 10; bool public paused = false; mapping(address => bool) public whitelisted; constructor() ERC721("Plush Foot Print", "PFP") {} function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function walletOfOwner(address _owner) public view returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(_owner); uint256[] memory tokenIds = new uint256[](ownerTokenCount); for (uint256 i; i < ownerTokenCount; i++) { tokenIds[i] = tokenOfOwnerByIndex(_owner, i); } return tokenIds; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), baseExtension)) : ""; } function addCurrency(IERC20 _payToken, uint256 _ERC20publicCost, uint256 _ERC20whitelistCost, uint256 _ERC20royaltyPercentage, address _ERC20royaltyWallet) external onlyOwner { publicCosts.set(address(_payToken), _ERC20publicCost); whitelistCosts.set(address(_payToken), _ERC20whitelistCost); payTokens[address(_payToken)] = TokenInfo({ ERC20paytoken: _payToken, ERC20publicCost: _ERC20publicCost, ERC20whitelistCost: _ERC20whitelistCost, ERC20royaltyPercentage: _ERC20royaltyPercentage, ERC20royaltyWallet: _ERC20royaltyWallet }); } function removeCurrency(IERC20 _payToken) external onlyOwner { publicCosts.remove(address(_payToken)); whitelistCosts.remove(address(_payToken)); delete payTokens[address(_payToken)]; } function getTokenInfo(address _tokenAddress) public view returns (TokenInfo memory) { return payTokens[_tokenAddress]; } function setETHInfo(uint256 _ETHpublicCost, uint256 _ETHwhitelistCost, uint256 _ETHroyaltyPercentage, address payable _ETHroyaltyWallet) external onlyOwner { ethInfo = ETHInfo({ ETHpublicCost: _ETHpublicCost, ETHwhitelistCost: _ETHwhitelistCost, ETHroyaltyPercentage: _ETHroyaltyPercentage, ETHroyaltyWallet: _ETHroyaltyWallet }); } function setBaseURI(string memory _newBaseURI) external onlyOwner { baseURI = _newBaseURI; } function setBaseExtension(string memory _newBaseExtension) external onlyOwner { baseExtension = _newBaseExtension; } function pause(bool val) external onlyOwner { paused = val; } function whitelistAddresses(address[] memory _addresses) external onlyOwner { for (uint256 i = 0; i < _addresses.length; i++) { whitelisted[_addresses[i]] = true; whitelist.add(_addresses[i]); } } function removeAddressesFromWhitelist(address[] memory _addresses) external onlyOwner { for (uint256 i = 0; i < _addresses.length; i++) { whitelisted[_addresses[i]] = false; whitelist.remove(_addresses[i]); } } function isWhitelisted(address _address) public view returns (bool) { return whitelisted[_address]; } function purchaseWithERC20(uint256 _numberOfTokens, address _token) public nonReentrant { require(!paused, "Contract is paused"); require(_numberOfTokens > 0 && _numberOfTokens <= maxMintAmount, "Exceeds maximum purchase amount"); require(totalSupply() + _numberOfTokens <= maxSupply, "Exceeds maximum supply"); uint256 cost; if (isWhitelisted(msg.sender)) { cost = payTokens[_token].ERC20whitelistCost.mul(_numberOfTokens); } else { require(payTokens[_token].ERC20paytoken.allowance(msg.sender, address(this)) >= payTokens[_token].ERC20publicCost.mul(_numberOfTokens), "Allowance not sufficient"); cost = payTokens[_token].ERC20publicCost.mul(_numberOfTokens); } uint256 royaltyAmount = cost.mul(payTokens[_token].ERC20royaltyPercentage).div(100); uint256 ownerAmount = cost.sub(royaltyAmount); payTokens[_token].ERC20paytoken.safeTransferFrom(msg.sender, payTokens[_token].ERC20royaltyWallet, royaltyAmount); payTokens[_token].ERC20paytoken.safeTransferFrom(msg.sender, address(this), ownerAmount); for (uint256 i = 0; i < _numberOfTokens; i++) { uint256 tokenId = totalSupply(); if (totalSupply() < maxSupply) { _safeMint(msg.sender, tokenId); } } } function purchaseWithETH(uint256 _numberOfTokens) public payable nonReentrant { require(!paused, "Contract is paused"); require(_numberOfTokens > 0 && _numberOfTokens <= maxMintAmount, "Exceeds maximum purchase amount"); require(totalSupply() + _numberOfTokens <= maxSupply, "Exceeds maximum supply"); uint256 cost; if (isWhitelisted(msg.sender)) { cost = ethInfo.ETHwhitelistCost.mul(_numberOfTokens); } else { cost = ethInfo.ETHpublicCost.mul(_numberOfTokens); } uint256 royaltyAmount = cost.mul(ethInfo.ETHroyaltyPercentage).div(100); uint256 ownerAmount = cost.sub(royaltyAmount); if (msg.sender != owner()) { require(msg.value >= cost, "Ether value sent is not correct"); if (msg.value > cost) { payable(msg.sender).transfer(msg.value.sub(cost)); } ethInfo.ETHroyaltyWallet.transfer(royaltyAmount); payable(owner()).transfer(ownerAmount); } for (uint256 i = 0; i < _numberOfTokens; i++) { uint256 tokenId = totalSupply(); if (totalSupply() < maxSupply) { _safeMint(msg.sender, tokenId); } } } function teamMint(address _to, uint256 _mintAmount) external onlyOwner { uint256 supply = totalSupply(); require(!paused); require(_mintAmount > 0); require(_mintAmount <= maxMintAmount); require(supply + _mintAmount <= maxSupply); for (uint256 i = 0; i < _mintAmount; i++) { uint256 tokenId = totalSupply(); if (totalSupply() < maxSupply) { _safeMint(_to, tokenId); } } } function withdrawAll() external onlyOwner { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } function withdrawToken(IERC20 _token, uint256 _amount) external onlyOwner { uint256 tokenBalance = _token.balanceOf(address(this)); require(_amount <= tokenBalance, "Insufficient token balance"); SafeERC20.safeTransfer(_token, msg.sender, _amount); } }
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"},{"inputs":[{"internalType":"contract IERC20","name":"_payToken","type":"address"},{"internalType":"uint256","name":"_ERC20publicCost","type":"uint256"},{"internalType":"uint256","name":"_ERC20whitelistCost","type":"uint256"},{"internalType":"uint256","name":"_ERC20royaltyPercentage","type":"uint256"},{"internalType":"address","name":"_ERC20royaltyWallet","type":"address"}],"name":"addCurrency","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":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethInfo","outputs":[{"internalType":"uint256","name":"ETHpublicCost","type":"uint256"},{"internalType":"uint256","name":"ETHwhitelistCost","type":"uint256"},{"internalType":"uint256","name":"ETHroyaltyPercentage","type":"uint256"},{"internalType":"address payable","name":"ETHroyaltyWallet","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"getTokenInfo","outputs":[{"components":[{"internalType":"contract IERC20","name":"ERC20paytoken","type":"address"},{"internalType":"uint256","name":"ERC20publicCost","type":"uint256"},{"internalType":"uint256","name":"ERC20whitelistCost","type":"uint256"},{"internalType":"uint256","name":"ERC20royaltyPercentage","type":"uint256"},{"internalType":"address","name":"ERC20royaltyWallet","type":"address"}],"internalType":"struct PlushFootPrint.TokenInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numberOfTokens","type":"uint256"},{"internalType":"address","name":"_token","type":"address"}],"name":"purchaseWithERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numberOfTokens","type":"uint256"}],"name":"purchaseWithETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"removeAddressesFromWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_payToken","type":"address"}],"name":"removeCurrency","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":"string","name":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ETHpublicCost","type":"uint256"},{"internalType":"uint256","name":"_ETHwhitelistCost","type":"uint256"},{"internalType":"uint256","name":"_ETHroyaltyPercentage","type":"uint256"},{"internalType":"address payable","name":"_ETHroyaltyWallet","type":"address"}],"name":"setETHInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","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":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"whitelistAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c06040526005608090815264173539b7b760d91b60a052601a90620000269082620001ca565b50601b805460ff191690553480156200003e57600080fd5b506040518060400160405280601081526020016f141b1d5cda08119bdbdd08141c9a5b9d60821b8152506040518060400160405280600381526020016205046560ec1b815250600160008190555081600190816200009d9190620001ca565b506002620000ac8282620001ca565b505050620000c9620000c3620000cf60201b60201c565b620000d3565b62000296565b3390565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200015057607f821691505b6020821081036200017157634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001c557600081815260208120601f850160051c81016020861015620001a05750805b601f850160051c820191505b81811015620001c157828155600101620001ac565b5050505b505050565b81516001600160401b03811115620001e657620001e662000125565b620001fe81620001f784546200013b565b8462000177565b602080601f8311600181146200023657600084156200021d5750858301515b600019600386901b1c1916600185901b178555620001c1565b600085815260208120601f198616915b82811015620002675788860151825594840194600190910190840162000246565b5085821015620002865787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6135e880620002a66000396000f3fe6080604052600436106102555760003560e01c806370a0823111610139578063b88d4fde116100b6578063d5abeb011161007a578063d5abeb011461075e578063d936547e14610774578063da3ef23f146107a4578063e985e9c5146107c4578063ea236e1e1461080d578063f2fde38b1461082d57600080fd5b8063b88d4fde146106c9578063c5d3a107146106e9578063c668286214610709578063c87b56dd1461071e578063d55002211461073e57600080fd5b80639e281a98116100fd5780639e281a9814610601578063a22cb46514610621578063add5a4fa14610641578063b57a38d914610661578063b8189faf1461067457600080fd5b806370a0823114610584578063715018a6146105a4578063853828b6146105b95780638da5cb5b146105ce57806395d89b41146105ec57600080fd5b80632bf04304116101d25780634f6ccce7116101965780634f6ccce7146104d557806355f804b3146104f55780635c975abb146105155780635ffe43711461052f5780636352211e1461054f5780636c0360eb1461056f57600080fd5b80632bf043041461040f5780632f745c591461042f5780633af32abf1461044f57806342842e0e14610488578063438b6300146104a857600080fd5b806318160ddd1161021957806318160ddd146103325780631f69565f14610351578063239c70ae146103ba57806323b872dd146103cf57806324953eaa146103ef57600080fd5b806301ffc9a71461026157806302329a291461029657806306fdde03146102b8578063081812fc146102da578063095ea7b31461031257600080fd5b3661025c57005b600080fd5b34801561026d57600080fd5b5061028161027c366004612c9c565b61084d565b60405190151581526020015b60405180910390f35b3480156102a257600080fd5b506102b66102b1366004612cc7565b610878565b005b3480156102c457600080fd5b506102cd610893565b60405161028d9190612d34565b3480156102e657600080fd5b506102fa6102f5366004612d47565b610925565b6040516001600160a01b03909116815260200161028d565b34801561031e57600080fd5b506102b661032d366004612d75565b61094c565b34801561033e57600080fd5b506009545b60405190815260200161028d565b34801561035d57600080fd5b5061037161036c366004612da1565b610a66565b60405161028d919081516001600160a01b039081168252602080840151908301526040808401519083015260608084015190830152608092830151169181019190915260a00190565b3480156103c657600080fd5b50610343600a81565b3480156103db57600080fd5b506102b66103ea366004612dbe565b610b09565b3480156103fb57600080fd5b506102b661040a366004612e46565b610b3a565b34801561041b57600080fd5b506102b661042a366004612e46565b610be9565b34801561043b57600080fd5b5061034361044a366004612d75565b610c94565b34801561045b57600080fd5b5061028161046a366004612da1565b6001600160a01b03166000908152601c602052604090205460ff1690565b34801561049457600080fd5b506102b66104a3366004612dbe565b610d2a565b3480156104b457600080fd5b506104c86104c3366004612da1565b610d45565b60405161028d9190612ef8565b3480156104e157600080fd5b506103436104f0366004612d47565b610de7565b34801561050157600080fd5b506102b6610510366004612f94565b610e7a565b34801561052157600080fd5b50601b546102819060ff1681565b34801561053b57600080fd5b506102b661054a366004612fdd565b610e8e565b34801561055b57600080fd5b506102fa61056a366004612d47565b6111ed565b34801561057b57600080fd5b506102cd61124d565b34801561059057600080fd5b5061034361059f366004612da1565b6112db565b3480156105b057600080fd5b506102b6611361565b3480156105c557600080fd5b506102b6611375565b3480156105da57600080fd5b50600b546001600160a01b03166102fa565b3480156105f857600080fd5b506102cd6113ac565b34801561060d57600080fd5b506102b661061c366004612d75565b6113bb565b34801561062d57600080fd5b506102b661063c36600461300d565b61148b565b34801561064d57600080fd5b506102b661065c366004612d75565b611496565b6102b661066f366004612d47565b61153c565b34801561068057600080fd5b506015546016546017546018546106a0939291906001600160a01b031684565b604080519485526020850193909352918301526001600160a01b0316606082015260800161028d565b3480156106d557600080fd5b506102b66106e436600461303b565b61183b565b3480156106f557600080fd5b506102b6610704366004612da1565b61186d565b34801561071557600080fd5b506102cd6118d6565b34801561072a57600080fd5b506102cd610739366004612d47565b6118e3565b34801561074a57600080fd5b506102b66107593660046130bb565b6119c1565b34801561076a57600080fd5b5061034361138881565b34801561078057600080fd5b5061028161078f366004612da1565b601c6020526000908152604090205460ff1681565b3480156107b057600080fd5b506102b66107bf366004612f94565b611a1a565b3480156107d057600080fd5b506102816107df3660046130fc565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561081957600080fd5b506102b661082836600461312a565b611a2e565b34801561083957600080fd5b506102b6610848366004612da1565b611ad3565b60006001600160e01b0319821663780e9d6360e01b1480610872575061087282611b49565b92915050565b610880611b99565b601b805460ff1916911515919091179055565b6060600180546108a290613180565b80601f01602080910402602001604051908101604052809291908181526020018280546108ce90613180565b801561091b5780601f106108f05761010080835404028352916020019161091b565b820191906000526020600020905b8154815290600101906020018083116108fe57829003601f168201915b5050505050905090565b600061093082611bf3565b506000908152600560205260409020546001600160a01b031690565b6000610957826111ed565b9050806001600160a01b0316836001600160a01b0316036109c95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806109e557506109e581336107df565b610a575760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016109c0565b610a618383611c52565b505050565b610aaa6040518060a0016040528060006001600160a01b0316815260200160008152602001600081526020016000815260200160006001600160a01b031681525090565b506001600160a01b039081166000908152600e6020908152604091829020825160a08101845281548516815260018201549281019290925260028101549282019290925260038201546060820152600490910154909116608082015290565b610b133382611cc0565b610b2f5760405162461bcd60e51b81526004016109c0906131ba565b610a61838383611d3f565b610b42611b99565b60005b8151811015610be5576000601c6000848481518110610b6657610b66613207565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550610bd2828281518110610bba57610bba613207565b6020026020010151600c611eb090919063ffffffff16565b5080610bdd81613233565b915050610b45565b5050565b610bf1611b99565b60005b8151811015610be5576001601c6000848481518110610c1557610c15613207565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550610c81828281518110610c6957610c69613207565b6020026020010151600c611ec590919063ffffffff16565b5080610c8c81613233565b915050610bf4565b6000610c9f836112db565b8210610d015760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016109c0565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b610a618383836040518060200160405280600081525061183b565b60606000610d52836112db565b905060008167ffffffffffffffff811115610d6f57610d6f612dff565b604051908082528060200260200182016040528015610d98578160200160208202803683370190505b50905060005b82811015610ddf57610db08582610c94565b828281518110610dc257610dc2613207565b602090810291909101015280610dd781613233565b915050610d9e565b509392505050565b6000610df260095490565b8210610e555760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016109c0565b60098281548110610e6857610e68613207565b90600052602060002001549050919050565b610e82611b99565b6019610be5828261329a565b610e96611eda565b601b5460ff1615610ede5760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b60448201526064016109c0565b600082118015610eef5750600a8211155b610f3b5760405162461bcd60e51b815260206004820152601f60248201527f45786365656473206d6178696d756d20707572636861736520616d6f756e740060448201526064016109c0565b61138882610f4860095490565b610f52919061335a565b1115610f995760405162461bcd60e51b815260206004820152601660248201527545786365656473206d6178696d756d20737570706c7960501b60448201526064016109c0565b336000908152601c602052604081205460ff1615610fde576001600160a01b0382166000908152600e6020526040902060020154610fd79084611f33565b90506110fc565b6001600160a01b0382166000908152600e60205260409020600101546110049084611f33565b6001600160a01b038381166000908152600e602052604090819020549051636eb1769f60e11b815233600482015230602482015291169063dd62ed3e90604401602060405180830381865afa158015611061573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611085919061336d565b10156110d35760405162461bcd60e51b815260206004820152601860248201527f416c6c6f77616e6365206e6f742073756666696369656e74000000000000000060448201526064016109c0565b6001600160a01b0382166000908152600e60205260409020600101546110f99084611f33565b90505b6001600160a01b0382166000908152600e60205260408120600301546111309060649061112a908590611f33565b90611f3f565b9050600061113e8383611f4b565b6001600160a01b038086166000908152600e60205260409020600481015490549293506111719282169133911685611f57565b6001600160a01b038085166000908152600e60205260409020546111989116333084611f57565b60005b858110156111df5760006111ae60095490565b90506113886111bc60095490565b10156111cc576111cc3382611fc2565b50806111d781613233565b91505061119b565b50505050610be56001600055565b6000818152600360205260408120546001600160a01b0316806108725760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016109c0565b6019805461125a90613180565b80601f016020809104026020016040519081016040528092919081815260200182805461128690613180565b80156112d35780601f106112a8576101008083540402835291602001916112d3565b820191906000526020600020905b8154815290600101906020018083116112b657829003601f168201915b505050505081565b60006001600160a01b0382166113455760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016109c0565b506001600160a01b031660009081526004602052604090205490565b611369611b99565b6113736000611fdc565b565b61137d611b99565b6040514790339082156108fc029083906000818181858888f19350505050158015610be5573d6000803e3d6000fd5b6060600280546108a290613180565b6113c3611b99565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa15801561140a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142e919061336d565b9050808211156114805760405162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e7420746f6b656e2062616c616e636500000000000060448201526064016109c0565b610a6183338461202e565b610be533838361205e565b61149e611b99565b60006114a960095490565b601b5490915060ff16156114bc57600080fd5b600082116114c957600080fd5b600a8211156114d757600080fd5b6113886114e4838361335a565b11156114ef57600080fd5b60005b8281101561153657600061150560095490565b905061138861151360095490565b1015611523576115238582611fc2565b508061152e81613233565b9150506114f2565b50505050565b611544611eda565b601b5460ff161561158c5760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b60448201526064016109c0565b60008111801561159d5750600a8111155b6115e95760405162461bcd60e51b815260206004820152601f60248201527f45786365656473206d6178696d756d20707572636861736520616d6f756e740060448201526064016109c0565b611388816115f660095490565b611600919061335a565b11156116475760405162461bcd60e51b815260206004820152601660248201527545786365656473206d6178696d756d20737570706c7960501b60448201526064016109c0565b336000908152601c602052604081205460ff16156116735760165461166c9083611f33565b9050611683565b6015546116809083611f33565b90505b60006116a2606461112a60156002015485611f3390919063ffffffff16565b905060006116b08383611f4b565b90506116c4600b546001600160a01b031690565b6001600160a01b0316336001600160a01b0316146117e3578234101561172c5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f72726563740060448201526064016109c0565b8234111561176c57336108fc6117423486611f4b565b6040518115909202916000818181858888f1935050505015801561176a573d6000803e3d6000fd5b505b6018546040516001600160a01b039091169083156108fc029084906000818181858888f193505050501580156117a6573d6000803e3d6000fd5b50600b546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156117e1573d6000803e3d6000fd5b505b60005b8481101561182a5760006117f960095490565b905061138861180760095490565b1015611817576118173382611fc2565b508061182281613233565b9150506117e6565b505050506118386001600055565b50565b6118453383611cc0565b6118615760405162461bcd60e51b81526004016109c0906131ba565b6115368484848461212c565b611875611b99565b611880600f8261215f565b5061188c60128261215f565b506001600160a01b03166000908152600e6020526040812080546001600160a01b031990811682556001820183905560028201839055600382019290925560040180549091169055565b601a805461125a90613180565b6000818152600360205260409020546060906001600160a01b03166119625760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016109c0565b600061196c612174565b9050600081511161198c57604051806020016040528060008152506119ba565b8061199684612183565b601a6040516020016119aa93929190613386565b6040516020818303038152906040525b9392505050565b6119c9611b99565b60408051608081018252858152602081018590529081018390526001600160a01b039091166060909101819052601593909355601691909155601755601880546001600160a01b0319169091179055565b611a22611b99565b601a610be5828261329a565b611a36611b99565b611a42600f8686612216565b50611a4f60128685612216565b506040805160a0810182526001600160a01b03968716808252602080830197885282840196875260608301958652938816608083019081526000918252600e90945291909120905181549087166001600160a01b03199182161782559451600182015592516002840155905160038301555160049091018054919093169116179055565b611adb611b99565b6001600160a01b038116611b405760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109c0565b61183881611fdc565b60006001600160e01b031982166380ac58cd60e01b1480611b7a57506001600160e01b03198216635b5e139f60e01b145b8061087257506301ffc9a760e01b6001600160e01b0319831614610872565b600b546001600160a01b031633146113735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109c0565b6000818152600360205260409020546001600160a01b03166118385760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016109c0565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c87826111ed565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611ccc836111ed565b9050806001600160a01b0316846001600160a01b03161480611d1357506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b80611d375750836001600160a01b0316611d2c84610925565b6001600160a01b0316145b949350505050565b826001600160a01b0316611d52826111ed565b6001600160a01b031614611d785760405162461bcd60e51b81526004016109c090613426565b6001600160a01b038216611dda5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109c0565b611de7838383600161222c565b826001600160a01b0316611dfa826111ed565b6001600160a01b031614611e205760405162461bcd60e51b81526004016109c090613426565b600081815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260048552838620805460001901905590871680865283862080546001019055868652600390945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006119ba836001600160a01b038416612360565b60006119ba836001600160a01b038416612453565b600260005403611f2c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109c0565b6002600055565b60006119ba828461346b565b60006119ba8284613482565b60006119ba82846134a4565b6040516001600160a01b03808516602483015283166044820152606481018290526115369085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526124a2565b610be5828260405180602001604052806000815250612577565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040516001600160a01b038316602482015260448101829052610a6190849063a9059cbb60e01b90606401611f8b565b816001600160a01b0316836001600160a01b0316036120bf5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109c0565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612137848484611d3f565b612143848484846125aa565b6115365760405162461bcd60e51b81526004016109c0906134b7565b60006119ba836001600160a01b0384166126ab565b6060601980546108a290613180565b60606000612190836126c8565b600101905060008167ffffffffffffffff8111156121b0576121b0612dff565b6040519080825280601f01601f1916602001820160405280156121da576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846121e457509392505050565b6000611d37846001600160a01b038516846127a0565b600181111561229b5760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b60648201526084016109c0565b816001600160a01b0385166122f7576122f281600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b61231a565b836001600160a01b0316856001600160a01b03161461231a5761231a85826127bd565b6001600160a01b038416612336576123318161285a565b612359565b846001600160a01b0316846001600160a01b031614612359576123598482612909565b5050505050565b600081815260018301602052604081205480156124495760006123846001836134a4565b8554909150600090612398906001906134a4565b90508181146123fd5760008660000182815481106123b8576123b8613207565b90600052602060002001549050808760000184815481106123db576123db613207565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061240e5761240e613509565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610872565b6000915050610872565b600081815260018301602052604081205461249a57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610872565b506000610872565b60006124f7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661294d9092919063ffffffff16565b9050805160001480612518575080806020019051810190612518919061351f565b610a615760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016109c0565b612581838361295c565b61258e60008484846125aa565b610a615760405162461bcd60e51b81526004016109c0906134b7565b60006001600160a01b0384163b156126a057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906125ee90339089908890889060040161353c565b6020604051808303816000875af1925050508015612629575060408051601f3d908101601f1916820190925261262691810190613579565b60015b612686573d808015612657576040519150601f19603f3d011682016040523d82523d6000602084013e61265c565b606091505b50805160000361267e5760405162461bcd60e51b81526004016109c0906134b7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611d37565b506001949350505050565b600081815260028301602052604081208190556119ba8383612af5565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106127075772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612733576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061275157662386f26fc10000830492506010015b6305f5e1008310612769576305f5e100830492506008015b612710831061277d57612710830492506004015b6064831061278f576064830492506002015b600a83106108725760010192915050565b60008281526002840160205260408120829055611d378484612b01565b600060016127ca846112db565b6127d491906134a4565b600083815260086020526040902054909150808214612827576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061286c906001906134a4565b6000838152600a60205260408120546009805493945090928490811061289457612894613207565b9060005260206000200154905080600983815481106128b5576128b5613207565b6000918252602080832090910192909255828152600a909152604080822084905585825281205560098054806128ed576128ed613509565b6001900381819060005260206000200160009055905550505050565b6000612914836112db565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6060611d378484600085612b0d565b6001600160a01b0382166129b25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109c0565b6000818152600360205260409020546001600160a01b031615612a175760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109c0565b612a2560008383600161222c565b6000818152600360205260409020546001600160a01b031615612a8a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109c0565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006119ba8383612360565b60006119ba8383612453565b606082471015612b6e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016109c0565b600080866001600160a01b03168587604051612b8a9190613596565b60006040518083038185875af1925050503d8060008114612bc7576040519150601f19603f3d011682016040523d82523d6000602084013e612bcc565b606091505b5091509150612bdd87838387612be8565b979650505050505050565b60608315612c57578251600003612c50576001600160a01b0385163b612c505760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016109c0565b5081611d37565b611d378383815115612c6c5781518083602001fd5b8060405162461bcd60e51b81526004016109c09190612d34565b6001600160e01b03198116811461183857600080fd5b600060208284031215612cae57600080fd5b81356119ba81612c86565b801515811461183857600080fd5b600060208284031215612cd957600080fd5b81356119ba81612cb9565b60005b83811015612cff578181015183820152602001612ce7565b50506000910152565b60008151808452612d20816020860160208601612ce4565b601f01601f19169290920160200192915050565b6020815260006119ba6020830184612d08565b600060208284031215612d5957600080fd5b5035919050565b6001600160a01b038116811461183857600080fd5b60008060408385031215612d8857600080fd5b8235612d9381612d60565b946020939093013593505050565b600060208284031215612db357600080fd5b81356119ba81612d60565b600080600060608486031215612dd357600080fd5b8335612dde81612d60565b92506020840135612dee81612d60565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612e3e57612e3e612dff565b604052919050565b60006020808385031215612e5957600080fd5b823567ffffffffffffffff80821115612e7157600080fd5b818501915085601f830112612e8557600080fd5b813581811115612e9757612e97612dff565b8060051b9150612ea8848301612e15565b8181529183018401918481019088841115612ec257600080fd5b938501935b83851015612eec5784359250612edc83612d60565b8282529385019390850190612ec7565b98975050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612f3057835183529284019291840191600101612f14565b50909695505050505050565b600067ffffffffffffffff831115612f5657612f56612dff565b612f69601f8401601f1916602001612e15565b9050828152838383011115612f7d57600080fd5b828260208301376000602084830101529392505050565b600060208284031215612fa657600080fd5b813567ffffffffffffffff811115612fbd57600080fd5b8201601f81018413612fce57600080fd5b611d3784823560208401612f3c565b60008060408385031215612ff057600080fd5b82359150602083013561300281612d60565b809150509250929050565b6000806040838503121561302057600080fd5b823561302b81612d60565b9150602083013561300281612cb9565b6000806000806080858703121561305157600080fd5b843561305c81612d60565b9350602085013561306c81612d60565b925060408501359150606085013567ffffffffffffffff81111561308f57600080fd5b8501601f810187136130a057600080fd5b6130af87823560208401612f3c565b91505092959194509250565b600080600080608085870312156130d157600080fd5b84359350602085013592506040850135915060608501356130f181612d60565b939692955090935050565b6000806040838503121561310f57600080fd5b823561311a81612d60565b9150602083013561300281612d60565b600080600080600060a0868803121561314257600080fd5b853561314d81612d60565b9450602086013593506040860135925060608601359150608086013561317281612d60565b809150509295509295909350565b600181811c9082168061319457607f821691505b6020821081036131b457634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016132455761324561321d565b5060010190565b601f821115610a6157600081815260208120601f850160051c810160208610156132735750805b601f850160051c820191505b818110156132925782815560010161327f565b505050505050565b815167ffffffffffffffff8111156132b4576132b4612dff565b6132c8816132c28454613180565b8461324c565b602080601f8311600181146132fd57600084156132e55750858301515b600019600386901b1c1916600185901b178555613292565b600085815260208120601f198616915b8281101561332c5788860151825594840194600190910190840161330d565b508582101561334a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156108725761087261321d565b60006020828403121561337f57600080fd5b5051919050565b6000845160206133998285838a01612ce4565b8551918401916133ac8184848a01612ce4565b85549201916000906133bd81613180565b600182811680156133d557600181146133ea57613416565b60ff1984168752821515830287019450613416565b896000528560002060005b8481101561340e578154898201529083019087016133f5565b505082870194505b50929a9950505050505050505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b80820281158282048414176108725761087261321d565b60008261349f57634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156108725761087261321d565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052603160045260246000fd5b60006020828403121561353157600080fd5b81516119ba81612cb9565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061356f90830184612d08565b9695505050505050565b60006020828403121561358b57600080fd5b81516119ba81612c86565b600082516135a8818460208701612ce4565b919091019291505056fea26469706673582212203b3f8efd0895eee043858315bbbc99ceda7be105d16377f052385e32395411c664736f6c63430008120033
Deployed Bytecode
0x6080604052600436106102555760003560e01c806370a0823111610139578063b88d4fde116100b6578063d5abeb011161007a578063d5abeb011461075e578063d936547e14610774578063da3ef23f146107a4578063e985e9c5146107c4578063ea236e1e1461080d578063f2fde38b1461082d57600080fd5b8063b88d4fde146106c9578063c5d3a107146106e9578063c668286214610709578063c87b56dd1461071e578063d55002211461073e57600080fd5b80639e281a98116100fd5780639e281a9814610601578063a22cb46514610621578063add5a4fa14610641578063b57a38d914610661578063b8189faf1461067457600080fd5b806370a0823114610584578063715018a6146105a4578063853828b6146105b95780638da5cb5b146105ce57806395d89b41146105ec57600080fd5b80632bf04304116101d25780634f6ccce7116101965780634f6ccce7146104d557806355f804b3146104f55780635c975abb146105155780635ffe43711461052f5780636352211e1461054f5780636c0360eb1461056f57600080fd5b80632bf043041461040f5780632f745c591461042f5780633af32abf1461044f57806342842e0e14610488578063438b6300146104a857600080fd5b806318160ddd1161021957806318160ddd146103325780631f69565f14610351578063239c70ae146103ba57806323b872dd146103cf57806324953eaa146103ef57600080fd5b806301ffc9a71461026157806302329a291461029657806306fdde03146102b8578063081812fc146102da578063095ea7b31461031257600080fd5b3661025c57005b600080fd5b34801561026d57600080fd5b5061028161027c366004612c9c565b61084d565b60405190151581526020015b60405180910390f35b3480156102a257600080fd5b506102b66102b1366004612cc7565b610878565b005b3480156102c457600080fd5b506102cd610893565b60405161028d9190612d34565b3480156102e657600080fd5b506102fa6102f5366004612d47565b610925565b6040516001600160a01b03909116815260200161028d565b34801561031e57600080fd5b506102b661032d366004612d75565b61094c565b34801561033e57600080fd5b506009545b60405190815260200161028d565b34801561035d57600080fd5b5061037161036c366004612da1565b610a66565b60405161028d919081516001600160a01b039081168252602080840151908301526040808401519083015260608084015190830152608092830151169181019190915260a00190565b3480156103c657600080fd5b50610343600a81565b3480156103db57600080fd5b506102b66103ea366004612dbe565b610b09565b3480156103fb57600080fd5b506102b661040a366004612e46565b610b3a565b34801561041b57600080fd5b506102b661042a366004612e46565b610be9565b34801561043b57600080fd5b5061034361044a366004612d75565b610c94565b34801561045b57600080fd5b5061028161046a366004612da1565b6001600160a01b03166000908152601c602052604090205460ff1690565b34801561049457600080fd5b506102b66104a3366004612dbe565b610d2a565b3480156104b457600080fd5b506104c86104c3366004612da1565b610d45565b60405161028d9190612ef8565b3480156104e157600080fd5b506103436104f0366004612d47565b610de7565b34801561050157600080fd5b506102b6610510366004612f94565b610e7a565b34801561052157600080fd5b50601b546102819060ff1681565b34801561053b57600080fd5b506102b661054a366004612fdd565b610e8e565b34801561055b57600080fd5b506102fa61056a366004612d47565b6111ed565b34801561057b57600080fd5b506102cd61124d565b34801561059057600080fd5b5061034361059f366004612da1565b6112db565b3480156105b057600080fd5b506102b6611361565b3480156105c557600080fd5b506102b6611375565b3480156105da57600080fd5b50600b546001600160a01b03166102fa565b3480156105f857600080fd5b506102cd6113ac565b34801561060d57600080fd5b506102b661061c366004612d75565b6113bb565b34801561062d57600080fd5b506102b661063c36600461300d565b61148b565b34801561064d57600080fd5b506102b661065c366004612d75565b611496565b6102b661066f366004612d47565b61153c565b34801561068057600080fd5b506015546016546017546018546106a0939291906001600160a01b031684565b604080519485526020850193909352918301526001600160a01b0316606082015260800161028d565b3480156106d557600080fd5b506102b66106e436600461303b565b61183b565b3480156106f557600080fd5b506102b6610704366004612da1565b61186d565b34801561071557600080fd5b506102cd6118d6565b34801561072a57600080fd5b506102cd610739366004612d47565b6118e3565b34801561074a57600080fd5b506102b66107593660046130bb565b6119c1565b34801561076a57600080fd5b5061034361138881565b34801561078057600080fd5b5061028161078f366004612da1565b601c6020526000908152604090205460ff1681565b3480156107b057600080fd5b506102b66107bf366004612f94565b611a1a565b3480156107d057600080fd5b506102816107df3660046130fc565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561081957600080fd5b506102b661082836600461312a565b611a2e565b34801561083957600080fd5b506102b6610848366004612da1565b611ad3565b60006001600160e01b0319821663780e9d6360e01b1480610872575061087282611b49565b92915050565b610880611b99565b601b805460ff1916911515919091179055565b6060600180546108a290613180565b80601f01602080910402602001604051908101604052809291908181526020018280546108ce90613180565b801561091b5780601f106108f05761010080835404028352916020019161091b565b820191906000526020600020905b8154815290600101906020018083116108fe57829003601f168201915b5050505050905090565b600061093082611bf3565b506000908152600560205260409020546001600160a01b031690565b6000610957826111ed565b9050806001600160a01b0316836001600160a01b0316036109c95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806109e557506109e581336107df565b610a575760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016109c0565b610a618383611c52565b505050565b610aaa6040518060a0016040528060006001600160a01b0316815260200160008152602001600081526020016000815260200160006001600160a01b031681525090565b506001600160a01b039081166000908152600e6020908152604091829020825160a08101845281548516815260018201549281019290925260028101549282019290925260038201546060820152600490910154909116608082015290565b610b133382611cc0565b610b2f5760405162461bcd60e51b81526004016109c0906131ba565b610a61838383611d3f565b610b42611b99565b60005b8151811015610be5576000601c6000848481518110610b6657610b66613207565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550610bd2828281518110610bba57610bba613207565b6020026020010151600c611eb090919063ffffffff16565b5080610bdd81613233565b915050610b45565b5050565b610bf1611b99565b60005b8151811015610be5576001601c6000848481518110610c1557610c15613207565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550610c81828281518110610c6957610c69613207565b6020026020010151600c611ec590919063ffffffff16565b5080610c8c81613233565b915050610bf4565b6000610c9f836112db565b8210610d015760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016109c0565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b610a618383836040518060200160405280600081525061183b565b60606000610d52836112db565b905060008167ffffffffffffffff811115610d6f57610d6f612dff565b604051908082528060200260200182016040528015610d98578160200160208202803683370190505b50905060005b82811015610ddf57610db08582610c94565b828281518110610dc257610dc2613207565b602090810291909101015280610dd781613233565b915050610d9e565b509392505050565b6000610df260095490565b8210610e555760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016109c0565b60098281548110610e6857610e68613207565b90600052602060002001549050919050565b610e82611b99565b6019610be5828261329a565b610e96611eda565b601b5460ff1615610ede5760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b60448201526064016109c0565b600082118015610eef5750600a8211155b610f3b5760405162461bcd60e51b815260206004820152601f60248201527f45786365656473206d6178696d756d20707572636861736520616d6f756e740060448201526064016109c0565b61138882610f4860095490565b610f52919061335a565b1115610f995760405162461bcd60e51b815260206004820152601660248201527545786365656473206d6178696d756d20737570706c7960501b60448201526064016109c0565b336000908152601c602052604081205460ff1615610fde576001600160a01b0382166000908152600e6020526040902060020154610fd79084611f33565b90506110fc565b6001600160a01b0382166000908152600e60205260409020600101546110049084611f33565b6001600160a01b038381166000908152600e602052604090819020549051636eb1769f60e11b815233600482015230602482015291169063dd62ed3e90604401602060405180830381865afa158015611061573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611085919061336d565b10156110d35760405162461bcd60e51b815260206004820152601860248201527f416c6c6f77616e6365206e6f742073756666696369656e74000000000000000060448201526064016109c0565b6001600160a01b0382166000908152600e60205260409020600101546110f99084611f33565b90505b6001600160a01b0382166000908152600e60205260408120600301546111309060649061112a908590611f33565b90611f3f565b9050600061113e8383611f4b565b6001600160a01b038086166000908152600e60205260409020600481015490549293506111719282169133911685611f57565b6001600160a01b038085166000908152600e60205260409020546111989116333084611f57565b60005b858110156111df5760006111ae60095490565b90506113886111bc60095490565b10156111cc576111cc3382611fc2565b50806111d781613233565b91505061119b565b50505050610be56001600055565b6000818152600360205260408120546001600160a01b0316806108725760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016109c0565b6019805461125a90613180565b80601f016020809104026020016040519081016040528092919081815260200182805461128690613180565b80156112d35780601f106112a8576101008083540402835291602001916112d3565b820191906000526020600020905b8154815290600101906020018083116112b657829003601f168201915b505050505081565b60006001600160a01b0382166113455760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016109c0565b506001600160a01b031660009081526004602052604090205490565b611369611b99565b6113736000611fdc565b565b61137d611b99565b6040514790339082156108fc029083906000818181858888f19350505050158015610be5573d6000803e3d6000fd5b6060600280546108a290613180565b6113c3611b99565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa15801561140a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142e919061336d565b9050808211156114805760405162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e7420746f6b656e2062616c616e636500000000000060448201526064016109c0565b610a6183338461202e565b610be533838361205e565b61149e611b99565b60006114a960095490565b601b5490915060ff16156114bc57600080fd5b600082116114c957600080fd5b600a8211156114d757600080fd5b6113886114e4838361335a565b11156114ef57600080fd5b60005b8281101561153657600061150560095490565b905061138861151360095490565b1015611523576115238582611fc2565b508061152e81613233565b9150506114f2565b50505050565b611544611eda565b601b5460ff161561158c5760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b60448201526064016109c0565b60008111801561159d5750600a8111155b6115e95760405162461bcd60e51b815260206004820152601f60248201527f45786365656473206d6178696d756d20707572636861736520616d6f756e740060448201526064016109c0565b611388816115f660095490565b611600919061335a565b11156116475760405162461bcd60e51b815260206004820152601660248201527545786365656473206d6178696d756d20737570706c7960501b60448201526064016109c0565b336000908152601c602052604081205460ff16156116735760165461166c9083611f33565b9050611683565b6015546116809083611f33565b90505b60006116a2606461112a60156002015485611f3390919063ffffffff16565b905060006116b08383611f4b565b90506116c4600b546001600160a01b031690565b6001600160a01b0316336001600160a01b0316146117e3578234101561172c5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f72726563740060448201526064016109c0565b8234111561176c57336108fc6117423486611f4b565b6040518115909202916000818181858888f1935050505015801561176a573d6000803e3d6000fd5b505b6018546040516001600160a01b039091169083156108fc029084906000818181858888f193505050501580156117a6573d6000803e3d6000fd5b50600b546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156117e1573d6000803e3d6000fd5b505b60005b8481101561182a5760006117f960095490565b905061138861180760095490565b1015611817576118173382611fc2565b508061182281613233565b9150506117e6565b505050506118386001600055565b50565b6118453383611cc0565b6118615760405162461bcd60e51b81526004016109c0906131ba565b6115368484848461212c565b611875611b99565b611880600f8261215f565b5061188c60128261215f565b506001600160a01b03166000908152600e6020526040812080546001600160a01b031990811682556001820183905560028201839055600382019290925560040180549091169055565b601a805461125a90613180565b6000818152600360205260409020546060906001600160a01b03166119625760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016109c0565b600061196c612174565b9050600081511161198c57604051806020016040528060008152506119ba565b8061199684612183565b601a6040516020016119aa93929190613386565b6040516020818303038152906040525b9392505050565b6119c9611b99565b60408051608081018252858152602081018590529081018390526001600160a01b039091166060909101819052601593909355601691909155601755601880546001600160a01b0319169091179055565b611a22611b99565b601a610be5828261329a565b611a36611b99565b611a42600f8686612216565b50611a4f60128685612216565b506040805160a0810182526001600160a01b03968716808252602080830197885282840196875260608301958652938816608083019081526000918252600e90945291909120905181549087166001600160a01b03199182161782559451600182015592516002840155905160038301555160049091018054919093169116179055565b611adb611b99565b6001600160a01b038116611b405760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109c0565b61183881611fdc565b60006001600160e01b031982166380ac58cd60e01b1480611b7a57506001600160e01b03198216635b5e139f60e01b145b8061087257506301ffc9a760e01b6001600160e01b0319831614610872565b600b546001600160a01b031633146113735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109c0565b6000818152600360205260409020546001600160a01b03166118385760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016109c0565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c87826111ed565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611ccc836111ed565b9050806001600160a01b0316846001600160a01b03161480611d1357506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b80611d375750836001600160a01b0316611d2c84610925565b6001600160a01b0316145b949350505050565b826001600160a01b0316611d52826111ed565b6001600160a01b031614611d785760405162461bcd60e51b81526004016109c090613426565b6001600160a01b038216611dda5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109c0565b611de7838383600161222c565b826001600160a01b0316611dfa826111ed565b6001600160a01b031614611e205760405162461bcd60e51b81526004016109c090613426565b600081815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260048552838620805460001901905590871680865283862080546001019055868652600390945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006119ba836001600160a01b038416612360565b60006119ba836001600160a01b038416612453565b600260005403611f2c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109c0565b6002600055565b60006119ba828461346b565b60006119ba8284613482565b60006119ba82846134a4565b6040516001600160a01b03808516602483015283166044820152606481018290526115369085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526124a2565b610be5828260405180602001604052806000815250612577565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040516001600160a01b038316602482015260448101829052610a6190849063a9059cbb60e01b90606401611f8b565b816001600160a01b0316836001600160a01b0316036120bf5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109c0565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612137848484611d3f565b612143848484846125aa565b6115365760405162461bcd60e51b81526004016109c0906134b7565b60006119ba836001600160a01b0384166126ab565b6060601980546108a290613180565b60606000612190836126c8565b600101905060008167ffffffffffffffff8111156121b0576121b0612dff565b6040519080825280601f01601f1916602001820160405280156121da576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846121e457509392505050565b6000611d37846001600160a01b038516846127a0565b600181111561229b5760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b60648201526084016109c0565b816001600160a01b0385166122f7576122f281600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b61231a565b836001600160a01b0316856001600160a01b03161461231a5761231a85826127bd565b6001600160a01b038416612336576123318161285a565b612359565b846001600160a01b0316846001600160a01b031614612359576123598482612909565b5050505050565b600081815260018301602052604081205480156124495760006123846001836134a4565b8554909150600090612398906001906134a4565b90508181146123fd5760008660000182815481106123b8576123b8613207565b90600052602060002001549050808760000184815481106123db576123db613207565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061240e5761240e613509565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610872565b6000915050610872565b600081815260018301602052604081205461249a57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610872565b506000610872565b60006124f7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661294d9092919063ffffffff16565b9050805160001480612518575080806020019051810190612518919061351f565b610a615760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016109c0565b612581838361295c565b61258e60008484846125aa565b610a615760405162461bcd60e51b81526004016109c0906134b7565b60006001600160a01b0384163b156126a057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906125ee90339089908890889060040161353c565b6020604051808303816000875af1925050508015612629575060408051601f3d908101601f1916820190925261262691810190613579565b60015b612686573d808015612657576040519150601f19603f3d011682016040523d82523d6000602084013e61265c565b606091505b50805160000361267e5760405162461bcd60e51b81526004016109c0906134b7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611d37565b506001949350505050565b600081815260028301602052604081208190556119ba8383612af5565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106127075772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612733576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061275157662386f26fc10000830492506010015b6305f5e1008310612769576305f5e100830492506008015b612710831061277d57612710830492506004015b6064831061278f576064830492506002015b600a83106108725760010192915050565b60008281526002840160205260408120829055611d378484612b01565b600060016127ca846112db565b6127d491906134a4565b600083815260086020526040902054909150808214612827576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061286c906001906134a4565b6000838152600a60205260408120546009805493945090928490811061289457612894613207565b9060005260206000200154905080600983815481106128b5576128b5613207565b6000918252602080832090910192909255828152600a909152604080822084905585825281205560098054806128ed576128ed613509565b6001900381819060005260206000200160009055905550505050565b6000612914836112db565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6060611d378484600085612b0d565b6001600160a01b0382166129b25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109c0565b6000818152600360205260409020546001600160a01b031615612a175760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109c0565b612a2560008383600161222c565b6000818152600360205260409020546001600160a01b031615612a8a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109c0565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006119ba8383612360565b60006119ba8383612453565b606082471015612b6e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016109c0565b600080866001600160a01b03168587604051612b8a9190613596565b60006040518083038185875af1925050503d8060008114612bc7576040519150601f19603f3d011682016040523d82523d6000602084013e612bcc565b606091505b5091509150612bdd87838387612be8565b979650505050505050565b60608315612c57578251600003612c50576001600160a01b0385163b612c505760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016109c0565b5081611d37565b611d378383815115612c6c5781518083602001fd5b8060405162461bcd60e51b81526004016109c09190612d34565b6001600160e01b03198116811461183857600080fd5b600060208284031215612cae57600080fd5b81356119ba81612c86565b801515811461183857600080fd5b600060208284031215612cd957600080fd5b81356119ba81612cb9565b60005b83811015612cff578181015183820152602001612ce7565b50506000910152565b60008151808452612d20816020860160208601612ce4565b601f01601f19169290920160200192915050565b6020815260006119ba6020830184612d08565b600060208284031215612d5957600080fd5b5035919050565b6001600160a01b038116811461183857600080fd5b60008060408385031215612d8857600080fd5b8235612d9381612d60565b946020939093013593505050565b600060208284031215612db357600080fd5b81356119ba81612d60565b600080600060608486031215612dd357600080fd5b8335612dde81612d60565b92506020840135612dee81612d60565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612e3e57612e3e612dff565b604052919050565b60006020808385031215612e5957600080fd5b823567ffffffffffffffff80821115612e7157600080fd5b818501915085601f830112612e8557600080fd5b813581811115612e9757612e97612dff565b8060051b9150612ea8848301612e15565b8181529183018401918481019088841115612ec257600080fd5b938501935b83851015612eec5784359250612edc83612d60565b8282529385019390850190612ec7565b98975050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612f3057835183529284019291840191600101612f14565b50909695505050505050565b600067ffffffffffffffff831115612f5657612f56612dff565b612f69601f8401601f1916602001612e15565b9050828152838383011115612f7d57600080fd5b828260208301376000602084830101529392505050565b600060208284031215612fa657600080fd5b813567ffffffffffffffff811115612fbd57600080fd5b8201601f81018413612fce57600080fd5b611d3784823560208401612f3c565b60008060408385031215612ff057600080fd5b82359150602083013561300281612d60565b809150509250929050565b6000806040838503121561302057600080fd5b823561302b81612d60565b9150602083013561300281612cb9565b6000806000806080858703121561305157600080fd5b843561305c81612d60565b9350602085013561306c81612d60565b925060408501359150606085013567ffffffffffffffff81111561308f57600080fd5b8501601f810187136130a057600080fd5b6130af87823560208401612f3c565b91505092959194509250565b600080600080608085870312156130d157600080fd5b84359350602085013592506040850135915060608501356130f181612d60565b939692955090935050565b6000806040838503121561310f57600080fd5b823561311a81612d60565b9150602083013561300281612d60565b600080600080600060a0868803121561314257600080fd5b853561314d81612d60565b9450602086013593506040860135925060608601359150608086013561317281612d60565b809150509295509295909350565b600181811c9082168061319457607f821691505b6020821081036131b457634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016132455761324561321d565b5060010190565b601f821115610a6157600081815260208120601f850160051c810160208610156132735750805b601f850160051c820191505b818110156132925782815560010161327f565b505050505050565b815167ffffffffffffffff8111156132b4576132b4612dff565b6132c8816132c28454613180565b8461324c565b602080601f8311600181146132fd57600084156132e55750858301515b600019600386901b1c1916600185901b178555613292565b600085815260208120601f198616915b8281101561332c5788860151825594840194600190910190840161330d565b508582101561334a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156108725761087261321d565b60006020828403121561337f57600080fd5b5051919050565b6000845160206133998285838a01612ce4565b8551918401916133ac8184848a01612ce4565b85549201916000906133bd81613180565b600182811680156133d557600181146133ea57613416565b60ff1984168752821515830287019450613416565b896000528560002060005b8481101561340e578154898201529083019087016133f5565b505082870194505b50929a9950505050505050505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b80820281158282048414176108725761087261321d565b60008261349f57634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156108725761087261321d565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052603160045260246000fd5b60006020828403121561353157600080fd5b81516119ba81612cb9565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061356f90830184612d08565b9695505050505050565b60006020828403121561358b57600080fd5b81516119ba81612c86565b600082516135a8818460208701612ce4565b919091019291505056fea26469706673582212203b3f8efd0895eee043858315bbbc99ceda7be105d16377f052385e32395411c664736f6c63430008120033
Deployed Bytecode Sourcemap
130095:8306:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;117463:224;;;;;;;;;;-1:-1:-1;117463:224:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;117463:224:0;;;;;;;;134038:75;;;;;;;;;;-1:-1:-1;134038:75:0;;;;;:::i;:::-;;:::i;:::-;;101512:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;103024:171::-;;;;;;;;;;-1:-1:-1;103024:171:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2066:32:1;;;2048:51;;2036:2;2021:18;103024:171:0;1902:203:1;102542:416:0;;;;;;;;;;-1:-1:-1;102542:416:0;;;;;:::i;:::-;;:::i;118103:113::-;;;;;;;;;;-1:-1:-1;118191:10:0;:17;118103:113;;;2712:25:1;;;2700:2;2685:18;118103:113:0;2566:177:1;133229:134:0;;;;;;;;;;-1:-1:-1;133229:134:0;;;;;:::i;:::-;;:::i;:::-;;;;;;3261:13:1;;-1:-1:-1;;;;;3257:22:1;;;3239:41;;3336:4;3324:17;;;3318:24;3296:20;;;3289:54;3399:4;3387:17;;;3381:24;3359:20;;;3352:54;3462:4;3450:17;;;3444:24;3422:20;;;3415:54;3529:4;3517:17;;;3511:24;3507:33;3485:20;;;3478:63;;;;3188:3;3173:19;;3000:547;131208:42:0;;;;;;;;;;;;131248:2;131208:42;;103724:301;;;;;;;;;;-1:-1:-1;103724:301:0;;;;;:::i;:::-;;:::i;134374:259::-;;;;;;;;;;-1:-1:-1;134374:259:0;;;;;:::i;:::-;;:::i;134121:245::-;;;;;;;;;;-1:-1:-1;134121:245:0;;;;;:::i;:::-;;:::i;117771:256::-;;;;;;;;;;-1:-1:-1;117771:256:0;;;;;:::i;:::-;;:::i;134641:115::-;;;;;;;;;;-1:-1:-1;134641:115:0;;;;;:::i;:::-;-1:-1:-1;;;;;134727:21:0;134703:4;134727:21;;;:11;:21;;;;;;;;;134641:115;104096:151;;;;;;;;;;-1:-1:-1;104096:151:0;;;;;:::i;:::-;;:::i;131522:390::-;;;;;;;;;;-1:-1:-1;131522:390:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;118293:233::-;;;;;;;;;;-1:-1:-1;118293:233:0;;;;;:::i;:::-;;:::i;133786:106::-;;;;;;;;;;-1:-1:-1;133786:106:0;;;;;:::i;:::-;;:::i;131257:26::-;;;;;;;;;;-1:-1:-1;131257:26:0;;;;;;;;134764:1377;;;;;;;;;;-1:-1:-1;134764:1377:0;;;;;:::i;:::-;;:::i;101222:223::-;;;;;;;;;;-1:-1:-1;101222:223:0;;;;;:::i;:::-;;:::i;131089:21::-;;;;;;;;;;;;;:::i;100953:207::-;;;;;;;;;;-1:-1:-1;100953:207:0;;;;;:::i;:::-;;:::i;125274:103::-;;;;;;;;;;;;;:::i;137958:148::-;;;;;;;;;;;;;:::i;124633:87::-;;;;;;;;;;-1:-1:-1;124706:6:0;;-1:-1:-1;;;;;124706:6:0;124633:87;;101681:104;;;;;;;;;;;;;:::i;138114:282::-;;;;;;;;;;-1:-1:-1;138114:282:0;;;;;:::i;:::-;;:::i;103267:155::-;;;;;;;;;;-1:-1:-1;103267:155:0;;;;;:::i;:::-;;:::i;137452:498::-;;;;;;;;;;-1:-1:-1;137452:498:0;;;;;:::i;:::-;;:::i;136149:1295::-;;;;;;:::i;:::-;;:::i;131026:22::-;;;;;;;;;;-1:-1:-1;131026:22:0;;;;;;;;;;;;;-1:-1:-1;;;;;131026:22:0;;;;;;;8245:25:1;;;8301:2;8286:18;;8279:34;;;;8329:18;;;8322:34;-1:-1:-1;;;;;8392:32:1;8387:2;8372:18;;8365:60;8232:3;8217:19;131026:22:0;7998:433:1;104318:279:0;;;;;;;;;;-1:-1:-1;104318:279:0;;;;;:::i;:::-;;:::i;133004:217::-;;;;;;;;;;-1:-1:-1;133004:217:0;;;;;:::i;:::-;;:::i;131117:37::-;;;;;;;;;;;;;:::i;131920:418::-;;;;;;;;;;-1:-1:-1;131920:418:0;;;;;:::i;:::-;;:::i;133371:407::-;;;;;;;;;;-1:-1:-1;133371:407:0;;;;;:::i;:::-;;:::i;131161:40::-;;;;;;;;;;;;131197:4;131161:40;;131290:43;;;;;;;;;;-1:-1:-1;131290:43:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;133900:130;;;;;;;;;;-1:-1:-1;133900:130:0;;;;;:::i;:::-;;:::i;103493:164::-;;;;;;;;;;-1:-1:-1;103493:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;103614:25:0;;;103590:4;103614:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;103493:164;132353:639;;;;;;;;;;-1:-1:-1;132353:639:0;;;;;:::i;:::-;;:::i;125532:201::-;;;;;;;;;;-1:-1:-1;125532:201:0;;;;;:::i;:::-;;:::i;117463:224::-;117565:4;-1:-1:-1;;;;;;117589:50:0;;-1:-1:-1;;;117589:50:0;;:90;;;117643:36;117667:11;117643:23;:36::i;:::-;117582:97;117463:224;-1:-1:-1;;117463:224:0:o;134038:75::-;124519:13;:11;:13::i;:::-;134093:6:::1;:12:::0;;-1:-1:-1;;134093:12:0::1;::::0;::::1;;::::0;;;::::1;::::0;;134038:75::o;101512:100::-;101566:13;101599:5;101592:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;101512:100;:::o;103024:171::-;103100:7;103120:23;103135:7;103120:14;:23::i;:::-;-1:-1:-1;103163:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;103163:24:0;;103024:171::o;102542:416::-;102623:13;102639:23;102654:7;102639:14;:23::i;:::-;102623:39;;102687:5;-1:-1:-1;;;;;102681:11:0;:2;-1:-1:-1;;;;;102681:11:0;;102673:57;;;;-1:-1:-1;;;102673:57:0;;11562:2:1;102673:57:0;;;11544:21:1;11601:2;11581:18;;;11574:30;11640:34;11620:18;;;11613:62;-1:-1:-1;;;11691:18:1;;;11684:31;11732:19;;102673:57:0;;;;;;;;;99043:10;-1:-1:-1;;;;;102765:21:0;;;;:62;;-1:-1:-1;102790:37:0;102807:5;99043:10;103493:164;:::i;102790:37::-;102743:173;;;;-1:-1:-1;;;102743:173:0;;11964:2:1;102743:173:0;;;11946:21:1;12003:2;11983:18;;;11976:30;12042:34;12022:18;;;12015:62;12113:31;12093:18;;;12086:59;12162:19;;102743:173:0;11762:425:1;102743:173:0;102929:21;102938:2;102942:7;102929:8;:21::i;:::-;102612:346;102542:416;;:::o;133229:134::-;133295:16;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;133295:16:0;-1:-1:-1;;;;;;133331:24:0;;;;;;;:9;:24;;;;;;;;;133324:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;133229:134::o;103724:301::-;103885:41;99043:10;103918:7;103885:18;:41::i;:::-;103877:99;;;;-1:-1:-1;;;103877:99:0;;;;;;;:::i;:::-;103989:28;103999:4;104005:2;104009:7;103989:9;:28::i;134374:259::-;124519:13;:11;:13::i;:::-;134476:9:::1;134471:155;134495:10;:17;134491:1;:21;134471:155;;;134563:5;134534:11;:26;134546:10;134557:1;134546:13;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;134534:26:0::1;-1:-1:-1::0;;;;;134534:26:0::1;;;;;;;;;;;;;:34;;;;;;;;;;;;;;;;;;134583:31;134600:10;134611:1;134600:13;;;;;;;;:::i;:::-;;;;;;;134583:9;:16;;:31;;;;:::i;:::-;-1:-1:-1::0;134514:3:0;::::1;::::0;::::1;:::i;:::-;;;;134471:155;;;;134374:259:::0;:::o;134121:245::-;124519:13;:11;:13::i;:::-;134213:9:::1;134208:151;134232:10;:17;134228:1;:21;134208:151;;;134300:4;134271:11;:26;134283:10;134294:1;134283:13;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;134271:26:0::1;-1:-1:-1::0;;;;;134271:26:0::1;;;;;;;;;;;;;:33;;;;;;;;;;;;;;;;;;134319:28;134333:10;134344:1;134333:13;;;;;;;;:::i;:::-;;;;;;;134319:9;:13;;:28;;;;:::i;:::-;-1:-1:-1::0;134251:3:0;::::1;::::0;::::1;:::i;:::-;;;;134208:151;;117771:256:::0;117868:7;117904:23;117921:5;117904:16;:23::i;:::-;117896:5;:31;117888:87;;;;-1:-1:-1;;;117888:87:0;;13212:2:1;117888:87:0;;;13194:21:1;13251:2;13231:18;;;13224:30;13290:34;13270:18;;;13263:62;-1:-1:-1;;;13341:18:1;;;13334:41;13392:19;;117888:87:0;13010:407:1;117888:87:0;-1:-1:-1;;;;;;117993:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;117771:256::o;104096:151::-;104200:39;104217:4;104223:2;104227:7;104200:39;;;;;;;;;;;;:16;:39::i;131522:390::-;131609:16;131643:23;131669:17;131679:6;131669:9;:17::i;:::-;131643:43;;131697:25;131739:15;131725:30;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;131725:30:0;;131697:58;;131771:9;131766:113;131786:15;131782:1;:19;131766:113;;;131837:30;131857:6;131865:1;131837:19;:30::i;:::-;131823:8;131832:1;131823:11;;;;;;;;:::i;:::-;;;;;;;;;;:44;131803:3;;;;:::i;:::-;;;;131766:113;;;-1:-1:-1;131896:8:0;131522:390;-1:-1:-1;;;131522:390:0:o;118293:233::-;118368:7;118404:30;118191:10;:17;;118103:113;118404:30;118396:5;:38;118388:95;;;;-1:-1:-1;;;118388:95:0;;13624:2:1;118388:95:0;;;13606:21:1;13663:2;13643:18;;;13636:30;13702:34;13682:18;;;13675:62;-1:-1:-1;;;13753:18:1;;;13746:42;13805:19;;118388:95:0;13422:408:1;118388:95:0;118501:10;118512:5;118501:17;;;;;;;;:::i;:::-;;;;;;;;;118494:24;;118293:233;;;:::o;133786:106::-;124519:13;:11;:13::i;:::-;133863:7:::1;:21;133873:11:::0;133863:7;:21:::1;:::i;134764:1377::-:0;48342:21;:19;:21::i;:::-;134872:6:::1;::::0;::::1;;134871:7;134863:38;;;::::0;-1:-1:-1;;;134863:38:0;;16241:2:1;134863:38:0::1;::::0;::::1;16223:21:1::0;16280:2;16260:18;;;16253:30;-1:-1:-1;;;16299:18:1;;;16292:48;16357:18;;134863:38:0::1;16039:342:1::0;134863:38:0::1;134938:1;134920:15;:19;:55;;;;;131248:2;134943:15;:32;;134920:55;134912:99;;;::::0;-1:-1:-1;;;134912:99:0;;16588:2:1;134912:99:0::1;::::0;::::1;16570:21:1::0;16627:2;16607:18;;;16600:30;16666:33;16646:18;;;16639:61;16717:18;;134912:99:0::1;16386:355:1::0;134912:99:0::1;131197:4;135046:15;135030:13;118191:10:::0;:17;;118103:113;135030:13:::1;:31;;;;:::i;:::-;:44;;135022:79;;;::::0;-1:-1:-1;;;135022:79:0;;17078:2:1;135022:79:0::1;::::0;::::1;17060:21:1::0;17117:2;17097:18;;;17090:30;-1:-1:-1;;;17136:18:1;;;17129:52;17198:18;;135022:79:0::1;16876:346:1::0;135022:79:0::1;135155:10;135114:12;134727:21:::0;;;:11;:21;;;;;;;;135137:394:::1;;;-1:-1:-1::0;;;;;135190:17:0;::::1;;::::0;;;:9:::1;:17;::::0;;;;:36:::1;;::::0;:57:::1;::::0;135231:15;135190:40:::1;:57::i;:::-;135183:64;;135137:394;;;-1:-1:-1::0;;;;;135360:17:0;::::1;;::::0;;;:9:::1;:17;::::0;;;;:33:::1;;::::0;:54:::1;::::0;135398:15;135360:37:::1;:54::i;:::-;-1:-1:-1::0;;;;;135288:17:0;;::::1;;::::0;;;:9:::1;:17;::::0;;;;;;:31;:68;;-1:-1:-1;;;135288:68:0;;135330:10:::1;135288:68;::::0;::::1;17439:34:1::0;135350:4:0::1;17489:18:1::0;;;17482:43;135288:31:0;::::1;::::0;:41:::1;::::0;17374:18:1;;135288:68:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:126;;135280:163;;;::::0;-1:-1:-1;;;135280:163:0;;17927:2:1;135280:163:0::1;::::0;::::1;17909:21:1::0;17966:2;17946:18;;;17939:30;18005:26;17985:18;;;17978:54;18049:18;;135280:163:0::1;17725:348:1::0;135280:163:0::1;-1:-1:-1::0;;;;;135465:17:0;::::1;;::::0;;;:9:::1;:17;::::0;;;;:33:::1;;::::0;:54:::1;::::0;135503:15;135465:37:::1;:54::i;:::-;135458:61;;135137:394;-1:-1:-1::0;;;;;135576:17:0;::::1;135543:21;135576:17:::0;;;:9:::1;:17;::::0;;;;:40:::1;;::::0;135567:59:::1;::::0;135622:3:::1;::::0;135567:50:::1;::::0;:4;;:8:::1;:50::i;:::-;:54:::0;::::1;:59::i;:::-;135543:83:::0;-1:-1:-1;135637:19:0::1;135659:23;:4:::0;135543:83;135659:8:::1;:23::i;:::-;-1:-1:-1::0;;;;;135756:17:0;;::::1;;::::0;;;:9:::1;:17;::::0;;;;:36:::1;::::0;::::1;::::0;135695:31;;135637:45;;-1:-1:-1;135695:113:0::1;::::0;:31;::::1;::::0;135744:10:::1;::::0;135756:36:::1;135794:13:::0;135695:48:::1;:113::i;:::-;-1:-1:-1::0;;;;;135819:17:0;;::::1;;::::0;;;:9:::1;:17;::::0;;;;:31;:88:::1;::::0;:31:::1;135868:10;135888:4;135895:11:::0;135819:48:::1;:88::i;:::-;135925:9;135920:214;135944:15;135940:1;:19;135920:214;;;135981:15;135999:13;118191:10:::0;:17;;118103:113;135999:13:::1;135981:31;;131197:4;136031:13;118191:10:::0;:17;;118103:113;136031:13:::1;:25;136027:96;;;136077:30;136087:10;136099:7;136077:9;:30::i;:::-;-1:-1:-1::0;135961:3:0;::::1;::::0;::::1;:::i;:::-;;;;135920:214;;;;134852:1289;;;48386:20:::0;47780:1;48906:7;:22;48723:213;101222:223;101294:7;105955:16;;;:7;:16;;;;;;-1:-1:-1;;;;;105955:16:0;;101358:56;;;;-1:-1:-1;;;101358:56:0;;18280:2:1;101358:56:0;;;18262:21:1;18319:2;18299:18;;;18292:30;-1:-1:-1;;;18338:18:1;;;18331:54;18402:18;;101358:56:0;18078:348:1;131089:21:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;100953:207::-;101025:7;-1:-1:-1;;;;;101053:19:0;;101045:73;;;;-1:-1:-1;;;101045:73:0;;18633:2:1;101045:73:0;;;18615:21:1;18672:2;18652:18;;;18645:30;18711:34;18691:18;;;18684:62;-1:-1:-1;;;18762:18:1;;;18755:39;18811:19;;101045:73:0;18431:405:1;101045:73:0;-1:-1:-1;;;;;;101136:16:0;;;;;:9;:16;;;;;;;100953:207::o;125274:103::-;124519:13;:11;:13::i;:::-;125339:30:::1;125366:1;125339:18;:30::i;:::-;125274:103::o:0;137958:148::-;124519:13;:11;:13::i;:::-;138061:37:::1;::::0;138029:21:::1;::::0;138069:10:::1;::::0;138061:37;::::1;;;::::0;138029:21;;138011:15:::1;138061:37:::0;138011:15;138061:37;138029:21;138069:10;138061:37;::::1;;;;;;;;;;;;;::::0;::::1;;;;101681:104:::0;101737:13;101770:7;101763:14;;;;;:::i;138114:282::-;124519:13;:11;:13::i;:::-;138222:31:::1;::::0;-1:-1:-1;;;138222:31:0;;138247:4:::1;138222:31;::::0;::::1;2048:51:1::0;138199:20:0::1;::::0;-1:-1:-1;;;;;138222:16:0;::::1;::::0;::::1;::::0;2021:18:1;;138222:31:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;138199:54;;138283:12;138272:7;:23;;138264:62;;;::::0;-1:-1:-1;;;138264:62:0;;19043:2:1;138264:62:0::1;::::0;::::1;19025:21:1::0;19082:2;19062:18;;;19055:30;19121:28;19101:18;;;19094:56;19167:18;;138264:62:0::1;18841:350:1::0;138264:62:0::1;138337:51;138360:6;138368:10;138380:7;138337:22;:51::i;103267:155::-:0;103362:52;99043:10;103395:8;103405;103362:18;:52::i;137452:498::-;124519:13;:11;:13::i;:::-;137534:14:::1;137551:13;118191:10:::0;:17;;118103:113;137551:13:::1;137584:6;::::0;137534:30;;-1:-1:-1;137584:6:0::1;;137583:7;137575:16;;;::::0;::::1;;137624:1;137610:11;:15;137602:24;;;::::0;::::1;;131248:2;137645:11;:28;;137637:37;;;::::0;::::1;;131197:4;137693:20;137702:11:::0;137693:6;:20:::1;:::i;:::-;:33;;137685:42;;;::::0;::::1;;137745:9;137740:203;137764:11;137760:1;:15;137740:203;;;137797:15;137815:13;118191:10:::0;:17;;118103:113;137815:13:::1;137797:31;;131197:4;137847:13;118191:10:::0;:17;;118103:113;137847:13:::1;:25;137843:89;;;137893:23;137903:3;137908:7;137893:9;:23::i;:::-;-1:-1:-1::0;137777:3:0;::::1;::::0;::::1;:::i;:::-;;;;137740:203;;;;137523:427;137452:498:::0;;:::o;136149:1295::-;48342:21;:19;:21::i;:::-;136247:6:::1;::::0;::::1;;136246:7;136238:38;;;::::0;-1:-1:-1;;;136238:38:0;;16241:2:1;136238:38:0::1;::::0;::::1;16223:21:1::0;16280:2;16260:18;;;16253:30;-1:-1:-1;;;16299:18:1;;;16292:48;16357:18;;136238:38:0::1;16039:342:1::0;136238:38:0::1;136313:1;136295:15;:19;:55;;;;;131248:2;136318:15;:32;;136295:55;136287:99;;;::::0;-1:-1:-1;;;136287:99:0;;16588:2:1;136287:99:0::1;::::0;::::1;16570:21:1::0;16627:2;16607:18;;;16600:30;16666:33;16646:18;;;16639:61;16717:18;;136287:99:0::1;16386:355:1::0;136287:99:0::1;131197:4;136421:15;136405:13;118191:10:::0;:17;;118103:113;136405:13:::1;:31;;;;:::i;:::-;:44;;136397:79;;;::::0;-1:-1:-1;;;136397:79:0;;17078:2:1;136397:79:0::1;::::0;::::1;17060:21:1::0;17117:2;17097:18;;;17090:30;-1:-1:-1;;;17136:18:1;;;17129:52;17198:18;;136397:79:0::1;16876:346:1::0;136397:79:0::1;136530:10;136489:12;134727:21:::0;;;:11;:21;;;;;;;;136512:192:::1;;;136565:24:::0;;:45:::1;::::0;136594:15;136565:28:::1;:45::i;:::-;136558:52;;136512:192;;;136650:7;:21:::0;:42:::1;::::0;136676:15;136650:25:::1;:42::i;:::-;136643:49;;136512:192;136716:21;136740:47;136783:3;136740:38;136749:7;:28;;;136740:4;:8;;:38;;;;:::i;:47::-;136716:71:::0;-1:-1:-1;136798:19:0::1;136820:23;:4:::0;136716:71;136820:8:::1;:23::i;:::-;136798:45;;136874:7;124706:6:::0;;-1:-1:-1;;;;;124706:6:0;;124633:87;136874:7:::1;-1:-1:-1::0;;;;;136860:21:0::1;:10;-1:-1:-1::0;;;;;136860:21:0::1;;136856:355;;136919:4;136906:9;:17;;136898:61;;;::::0;-1:-1:-1;;;136898:61:0;;19398:2:1;136898:61:0::1;::::0;::::1;19380:21:1::0;19437:2;19417:18;;;19410:30;19476:33;19456:18;;;19449:61;19527:18;;136898:61:0::1;19196:355:1::0;136898:61:0::1;136992:4;136980:9;:16;136976:106;;;137025:10;137017:49;137046:19;:9;137060:4:::0;137046:13:::1;:19::i;:::-;137017:49;::::0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;136976:106;137098:24:::0;;:48:::1;::::0;-1:-1:-1;;;;;137098:24:0;;::::1;::::0;:48;::::1;;;::::0;137132:13;;137098:24:::1;:48:::0;:24;:48;137132:13;137098:24;:48;::::1;;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;124706:6:0;;137161:38:::1;::::0;-1:-1:-1;;;;;124706:6:0;;;;137161:38;::::1;;;::::0;137187:11;;137161:38:::1;::::0;;;137187:11;124706:6;137161:38;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;136856:355;137228:9;137223:214;137247:15;137243:1;:19;137223:214;;;137284:15;137302:13;118191:10:::0;:17;;118103:113;137302:13:::1;137284:31;;131197:4;137334:13;118191:10:::0;:17;;118103:113;137334:13:::1;:25;137330:96;;;137380:30;137390:10;137402:7;137380:9;:30::i;:::-;-1:-1:-1::0;137264:3:0;::::1;::::0;::::1;:::i;:::-;;;;137223:214;;;;136227:1217;;;48386:20:::0;47780:1;48906:7;:22;48723:213;48386:20;136149:1295;:::o;104318:279::-;104449:41;99043:10;104482:7;104449:18;:41::i;:::-;104441:99;;;;-1:-1:-1;;;104441:99:0;;;;;;;:::i;:::-;104551:38;104565:4;104571:2;104575:7;104584:4;104551:13;:38::i;133004:217::-;124519:13;:11;:13::i;:::-;133076:38:::1;:11;133103:9:::0;133076:18:::1;:38::i;:::-;-1:-1:-1::0;133125:41:0::1;:14;133155:9:::0;133125:21:::1;:41::i;:::-;-1:-1:-1::0;;;;;;133184:29:0::1;;::::0;;;:9:::1;:29;::::0;;;;133177:36;;-1:-1:-1;;;;;;133177:36:0;;::::1;::::0;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;;::::1;;::::0;;;;::::1;::::0;;133004:217::o;131117:37::-;;;;;;;:::i;131920:418::-;106357:4;105955:16;;;:7;:16;;;;;;132038:13;;-1:-1:-1;;;;;105955:16:0;132069:76;;;;-1:-1:-1;;;132069:76:0;;19758:2:1;132069:76:0;;;19740:21:1;19797:2;19777:18;;;19770:30;19836:34;19816:18;;;19809:62;-1:-1:-1;;;19887:18:1;;;19880:45;19942:19;;132069:76:0;19556:411:1;132069:76:0;132156:28;132187:10;:8;:10::i;:::-;132156:41;;132246:1;132221:14;132215:28;:32;:115;;;;;;;;;;;;;;;;;132274:14;132290:18;:7;:16;:18::i;:::-;132310:13;132257:67;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;132215:115;132208:122;131920:418;-1:-1:-1;;;131920:418:0:o;133371:407::-;124519:13;:11;:13::i;:::-;133548:222:::1;::::0;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;;;;;133548:222:0;;::::1;::::0;;;;;;;133538:7:::1;:232:::0;;;;;;;;;;;;;;-1:-1:-1;;;;;;133538:232:0::1;::::0;;::::1;::::0;;133371:407::o;133900:130::-;124519:13;:11;:13::i;:::-;133989::::1;:33;134005:17:::0;133989:13;:33:::1;:::i;132353:639::-:0;124519:13;:11;:13::i;:::-;132539:53:::1;:11;132563:9:::0;132575:16;132539:15:::1;:53::i;:::-;-1:-1:-1::0;132603:59:0::1;:14;132630:9:::0;132642:19;132603:18:::1;:59::i;:::-;-1:-1:-1::0;132705:279:0::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;132705:279:0;;::::1;::::0;;;::::1;::::0;;::::1;::::0;;;;;;;;;;;;;;;;;::::1;::::0;;;;;;-1:-1:-1;132673:29:0;;;:9:::1;:29:::0;;;;;;;:311;;;;;;::::1;-1:-1:-1::0;;;;;;132673:311:0;;::::1;;::::0;;;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;::::1;::::0;;::::1;::::0;;;;;::::1;::::0;::::1;;::::0;;132353:639::o;125532:201::-;124519:13;:11;:13::i;:::-;-1:-1:-1;;;;;125621:22:0;::::1;125613:73;;;::::0;-1:-1:-1;;;125613:73:0;;21435:2:1;125613:73:0::1;::::0;::::1;21417:21:1::0;21474:2;21454:18;;;21447:30;21513:34;21493:18;;;21486:62;-1:-1:-1;;;21564:18:1;;;21557:36;21610:19;;125613:73:0::1;21233:402:1::0;125613:73:0::1;125697:28;125716:8;125697:18;:28::i;100584:305::-:0;100686:4;-1:-1:-1;;;;;;100723:40:0;;-1:-1:-1;;;100723:40:0;;:105;;-1:-1:-1;;;;;;;100780:48:0;;-1:-1:-1;;;100780:48:0;100723:105;:158;;;-1:-1:-1;;;;;;;;;;69504:40:0;;;100845:36;69395:157;124798:132;124706:6;;-1:-1:-1;;;;;124706:6:0;99043:10;124862:23;124854:68;;;;-1:-1:-1;;;124854:68:0;;21842:2:1;124854:68:0;;;21824:21:1;;;21861:18;;;21854:30;21920:34;21900:18;;;21893:62;21972:18;;124854:68:0;21640:356:1;112587:135:0;106357:4;105955:16;;;:7;:16;;;;;;-1:-1:-1;;;;;105955:16:0;112661:53;;;;-1:-1:-1;;;112661:53:0;;18280:2:1;112661:53:0;;;18262:21:1;18319:2;18299:18;;;18292:30;-1:-1:-1;;;18338:18:1;;;18331:54;18402:18;;112661:53:0;18078:348:1;111900:174:0;111975:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;111975:29:0;-1:-1:-1;;;;;111975:29:0;;;;;;;;:24;;112029:23;111975:24;112029:14;:23::i;:::-;-1:-1:-1;;;;;112020:46:0;;;;;;;;;;;111900:174;;:::o;106587:264::-;106680:4;106697:13;106713:23;106728:7;106713:14;:23::i;:::-;106697:39;;106766:5;-1:-1:-1;;;;;106755:16:0;:7;-1:-1:-1;;;;;106755:16:0;;:52;;;-1:-1:-1;;;;;;103614:25:0;;;103590:4;103614:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;106775:32;106755:87;;;;106835:7;-1:-1:-1;;;;;106811:31:0;:20;106823:7;106811:11;:20::i;:::-;-1:-1:-1;;;;;106811:31:0;;106755:87;106747:96;106587:264;-1:-1:-1;;;;106587:264:0:o;110552:1229::-;110677:4;-1:-1:-1;;;;;110650:31:0;:23;110665:7;110650:14;:23::i;:::-;-1:-1:-1;;;;;110650:31:0;;110642:81;;;;-1:-1:-1;;;110642:81:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;110742:16:0;;110734:65;;;;-1:-1:-1;;;110734:65:0;;22609:2:1;110734:65:0;;;22591:21:1;22648:2;22628:18;;;22621:30;22687:34;22667:18;;;22660:62;-1:-1:-1;;;22738:18:1;;;22731:34;22782:19;;110734:65:0;22407:400:1;110734:65:0;110812:42;110833:4;110839:2;110843:7;110852:1;110812:20;:42::i;:::-;110984:4;-1:-1:-1;;;;;110957:31:0;:23;110972:7;110957:14;:23::i;:::-;-1:-1:-1;;;;;110957:31:0;;110949:81;;;;-1:-1:-1;;;110949:81:0;;;;;;;:::i;:::-;111102:24;;;;:15;:24;;;;;;;;111095:31;;-1:-1:-1;;;;;;111095:31:0;;;;;;-1:-1:-1;;;;;111578:15:0;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;111578:20:0;;;111613:13;;;;;;;;;:18;;111095:31;111613:18;;;111653:16;;;:7;:16;;;;;;:21;;;;;;;;;;111692:27;;111118:7;;111692:27;;;102612:346;102542:416;;:::o;12655:158::-;12728:4;12752:53;12760:3;-1:-1:-1;;;;;12780:23:0;;12752:7;:53::i;12327:152::-;12397:4;12421:50;12426:3;-1:-1:-1;;;;;12446:23:0;;12421:4;:50::i;48422:293::-;47824:1;48556:7;;:19;48548:63;;;;-1:-1:-1;;;48548:63:0;;23014:2:1;48548:63:0;;;22996:21:1;23053:2;23033:18;;;23026:30;23092:33;23072:18;;;23065:61;23143:18;;48548:63:0;22812:355:1;48548:63:0;47824:1;48689:7;:18;48422:293::o;42672:98::-;42730:7;42757:5;42761:1;42757;:5;:::i;43071:98::-;43129:7;43156:5;43160:1;43156;:5;:::i;42315:98::-;42373:7;42400:5;42404:1;42400;:5;:::i;92614:205::-;92742:68;;-1:-1:-1;;;;;24090:15:1;;;92742:68:0;;;24072:34:1;24142:15;;24122:18;;;24115:43;24174:18;;;24167:34;;;92715:96:0;;92735:5;;-1:-1:-1;;;92765:27:0;24007:18:1;;92742:68:0;;;;-1:-1:-1;;92742:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;92742:68:0;-1:-1:-1;;;;;;92742:68:0;;;;;;;;;;92715:19;:96::i;107193:110::-;107269:26;107279:2;107283:7;107269:26;;;;;;;;;;;;:9;:26::i;125893:191::-;125986:6;;;-1:-1:-1;;;;;126003:17:0;;;-1:-1:-1;;;;;;126003:17:0;;;;;;;126036:40;;125986:6;;;126003:17;125986:6;;126036:40;;125967:16;;126036:40;125956:128;125893:191;:::o;92192:177::-;92302:58;;-1:-1:-1;;;;;24404:32:1;;92302:58:0;;;24386:51:1;24453:18;;;24446:34;;;92275:86:0;;92295:5;;-1:-1:-1;;;92325:23:0;24359:18:1;;92302:58:0;24212:274:1;112217:281:0;112338:8;-1:-1:-1;;;;;112329:17:0;:5;-1:-1:-1;;;;;112329:17:0;;112321:55;;;;-1:-1:-1;;;112321:55:0;;24693:2:1;112321:55:0;;;24675:21:1;24732:2;24712:18;;;24705:30;24771:27;24751:18;;;24744:55;24816:18;;112321:55:0;24491:349:1;112321:55:0;-1:-1:-1;;;;;112387:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;112387:46:0;;;;;;;;;;112449:41;;540::1;;;112449::0;;513:18:1;112449:41:0;;;;;;;112217:281;;;:::o;105478:270::-;105591:28;105601:4;105607:2;105611:7;105591:9;:28::i;:::-;105638:47;105661:4;105667:2;105671:7;105680:4;105638:22;:47::i;:::-;105630:110;;;;-1:-1:-1;;;105630:110:0;;;;;;;:::i;31896:159::-;31973:4;31997:50;32004:3;-1:-1:-1;;;;;32024:21:0;;31997:6;:50::i;131406:108::-;131466:13;131499:7;131492:14;;;;;:::i;64157:716::-;64213:13;64264:14;64281:17;64292:5;64281:10;:17::i;:::-;64301:1;64281:21;64264:38;;64317:20;64351:6;64340:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;64340:18:0;-1:-1:-1;64317:41:0;-1:-1:-1;64482:28:0;;;64498:2;64482:28;64539:288;-1:-1:-1;;64571:5:0;-1:-1:-1;;;64708:2:0;64697:14;;64692:30;64571:5;64679:44;64769:2;64760:11;;;-1:-1:-1;64790:21:0;64539:288;64790:21;-1:-1:-1;64848:6:0;64157:716;-1:-1:-1;;;64157:716:0:o;31546:184::-;31635:4;31659:63;31663:3;-1:-1:-1;;;;;31683:21:0;;31715:5;31659:3;:63::i;118600:915::-;118867:1;118855:9;:13;118851:222;;;118998:63;;-1:-1:-1;;;118998:63:0;;25466:2:1;118998:63:0;;;25448:21:1;25505:2;25485:18;;;25478:30;25544:34;25524:18;;;25517:62;-1:-1:-1;;;25595:18:1;;;25588:51;25656:19;;118998:63:0;25264:417:1;118851:222:0;119103:12;-1:-1:-1;;;;;119132:18:0;;119128:187;;119167:40;119199:7;120342:10;:17;;120315:24;;;;:15;:24;;;;;:44;;;120370:24;;;;;;;;;;;;120238:164;119167:40;119128:187;;;119237:2;-1:-1:-1;;;;;119229:10:0;:4;-1:-1:-1;;;;;119229:10:0;;119225:90;;119256:47;119289:4;119295:7;119256:32;:47::i;:::-;-1:-1:-1;;;;;119329:16:0;;119325:183;;119362:45;119399:7;119362:36;:45::i;:::-;119325:183;;;119435:4;-1:-1:-1;;;;;119429:10:0;:2;-1:-1:-1;;;;;119429:10:0;;119425:83;;119456:40;119484:2;119488:7;119456:27;:40::i;:::-;118766:749;118600:915;;;;:::o;6648:1420::-;6714:4;6853:19;;;:12;;;:19;;;;;;6889:15;;6885:1176;;7264:21;7288:14;7301:1;7288:10;:14;:::i;:::-;7337:18;;7264:38;;-1:-1:-1;7317:17:0;;7337:22;;7358:1;;7337:22;:::i;:::-;7317:42;;7393:13;7380:9;:26;7376:405;;7427:17;7447:3;:11;;7459:9;7447:22;;;;;;;;:::i;:::-;;;;;;;;;7427:42;;7601:9;7572:3;:11;;7584:13;7572:26;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;7686:23;;;:12;;;:23;;;;;:36;;;7376:405;7862:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;7957:3;:12;;:19;7970:5;7957:19;;;;;;;;;;;7950:26;;;8000:4;7993:11;;;;;;;6885:1176;8044:5;8037:12;;;;;6058:414;6121:4;8251:19;;;:12;;;:19;;;;;;6138:327;;-1:-1:-1;6181:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;6364:18;;6342:19;;;:12;;;:19;;;;;;:40;;;;6397:11;;6138:327;-1:-1:-1;6448:5:0;6441:12;;96515:649;96939:23;96965:69;96993:4;96965:69;;;;;;;;;;;;;;;;;96973:5;-1:-1:-1;;;;;96965:27:0;;;:69;;;;;:::i;:::-;96939:95;;97053:10;:17;97074:1;97053:22;:56;;;;97090:10;97079:30;;;;;;;;;;;;:::i;:::-;97045:111;;;;-1:-1:-1;;;97045:111:0;;26270:2:1;97045:111:0;;;26252:21:1;26309:2;26289:18;;;26282:30;26348:34;26328:18;;;26321:62;-1:-1:-1;;;26399:18:1;;;26392:40;26449:19;;97045:111:0;26068:406:1;107530:285:0;107625:18;107631:2;107635:7;107625:5;:18::i;:::-;107676:53;107707:1;107711:2;107715:7;107724:4;107676:22;:53::i;:::-;107654:153;;;;-1:-1:-1;;;107654:153:0;;;;;;;:::i;113286:853::-;113440:4;-1:-1:-1;;;;;113461:13:0;;78213:19;:23;113457:675;;113497:71;;-1:-1:-1;;;113497:71:0;;-1:-1:-1;;;;;113497:36:0;;;;;:71;;99043:10;;113548:4;;113554:7;;113563:4;;113497:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;113497:71:0;;;;;;;;-1:-1:-1;;113497:71:0;;;;;;;;;;;;:::i;:::-;;;113493:584;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;113738:6;:13;113755:1;113738:18;113734:328;;113781:60;;-1:-1:-1;;;113781:60:0;;;;;;;:::i;113734:328::-;114012:6;114006:13;113997:6;113993:2;113989:15;113982:38;113493:584;-1:-1:-1;;;;;;113619:51:0;-1:-1:-1;;;113619:51:0;;-1:-1:-1;113612:58:0;;113457:675;-1:-1:-1;114116:4:0;113286:853;;;;;;:::o;20093:167::-;20173:4;20197:16;;;:11;;;:16;;;;;20190:23;;;20231:21;20197:3;20209;20231:16;:21::i;60991:948::-;61044:7;;-1:-1:-1;;;61122:17:0;;61118:106;;-1:-1:-1;;;61160:17:0;;;-1:-1:-1;61206:2:0;61196:12;61118:106;61251:8;61242:5;:17;61238:106;;61289:8;61280:17;;;-1:-1:-1;61326:2:0;61316:12;61238:106;61371:8;61362:5;:17;61358:106;;61409:8;61400:17;;;-1:-1:-1;61446:2:0;61436:12;61358:106;61491:7;61482:5;:16;61478:103;;61528:7;61519:16;;;-1:-1:-1;61564:1:0;61554:11;61478:103;61608:7;61599:5;:16;61595:103;;61645:7;61636:16;;;-1:-1:-1;61681:1:0;61671:11;61595:103;61725:7;61716:5;:16;61712:103;;61762:7;61753:16;;;-1:-1:-1;61798:1:0;61788:11;61712:103;61842:7;61833:5;:16;61829:68;;61880:1;61870:11;61925:6;60991:948;-1:-1:-1;;60991:948:0:o;19741:177::-;19833:4;19850:16;;;:11;;;:16;;;;;:24;;;19892:18;19850:3;19862;19892:13;:18::i;121029:988::-;121295:22;121345:1;121320:22;121337:4;121320:16;:22::i;:::-;:26;;;;:::i;:::-;121357:18;121378:26;;;:17;:26;;;;;;121295:51;;-1:-1:-1;121511:28:0;;;121507:328;;-1:-1:-1;;;;;121578:18:0;;121556:19;121578:18;;;:12;:18;;;;;;;;:34;;;;;;;;;121629:30;;;;;;:44;;;121746:30;;:17;:30;;;;;:43;;;121507:328;-1:-1:-1;121931:26:0;;;;:17;:26;;;;;;;;121924:33;;;-1:-1:-1;;;;;121975:18:0;;;;;:12;:18;;;;;:34;;;;;;;121968:41;121029:988::o;122312:1079::-;122590:10;:17;122565:22;;122590:21;;122610:1;;122590:21;:::i;:::-;122622:18;122643:24;;;:15;:24;;;;;;123016:10;:26;;122565:46;;-1:-1:-1;122643:24:0;;122565:46;;123016:26;;;;;;:::i;:::-;;;;;;;;;122994:48;;123080:11;123055:10;123066;123055:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;123160:28;;;:15;:28;;;;;;;:41;;;123332:24;;;;;123325:31;123367:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;122383:1008;;;122312:1079;:::o;119816:221::-;119901:14;119918:20;119935:2;119918:16;:20::i;:::-;-1:-1:-1;;;;;119949:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;119994:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;119816:221:0:o;80673:229::-;80810:12;80842:52;80864:6;80872:4;80878:1;80881:12;80842:21;:52::i;108151:942::-;-1:-1:-1;;;;;108231:16:0;;108223:61;;;;-1:-1:-1;;;108223:61:0;;27429:2:1;108223:61:0;;;27411:21:1;;;27448:18;;;27441:30;27507:34;27487:18;;;27480:62;27559:18;;108223:61:0;27227:356:1;108223:61:0;106357:4;105955:16;;;:7;:16;;;;;;-1:-1:-1;;;;;105955:16:0;106381:31;108295:58;;;;-1:-1:-1;;;108295:58:0;;27790:2:1;108295:58:0;;;27772:21:1;27829:2;27809:18;;;27802:30;27868;27848:18;;;27841:58;27916:18;;108295:58:0;27588:352:1;108295:58:0;108366:48;108395:1;108399:2;108403:7;108412:1;108366:20;:48::i;:::-;106357:4;105955:16;;;:7;:16;;;;;;-1:-1:-1;;;;;105955:16:0;106381:31;108504:58;;;;-1:-1:-1;;;108504:58:0;;27790:2:1;108504:58:0;;;27772:21:1;27829:2;27809:18;;;27802:30;27868;27848:18;;;27841:58;27916:18;;108504:58:0;27588:352:1;108504:58:0;-1:-1:-1;;;;;108911:13:0;;;;;;:9;:13;;;;;;;;:18;;108928:1;108911:18;;;108953:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;108953:21:0;;;;;108992:33;108961:7;;108911:13;;108992:33;;108911:13;;108992:33;134471:155:::1;134374:259:::0;:::o;10168:131::-;10241:4;10265:26;10273:3;10285:5;10265:7;:26::i;9867:125::-;9937:4;9961:23;9966:3;9978:5;9961:4;:23::i;81759:455::-;81929:12;81987:5;81962:21;:30;;81954:81;;;;-1:-1:-1;;;81954:81:0;;28147:2:1;81954:81:0;;;28129:21:1;28186:2;28166:18;;;28159:30;28225:34;28205:18;;;28198:62;-1:-1:-1;;;28276:18:1;;;28269:36;28322:19;;81954:81:0;27945:402:1;81954:81:0;82047:12;82061:23;82088:6;-1:-1:-1;;;;;82088:11:0;82107:5;82114:4;82088:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82046:73;;;;82137:69;82164:6;82172:7;82181:10;82193:12;82137:26;:69::i;:::-;82130:76;81759:455;-1:-1:-1;;;;;;;81759:455:0:o;84332:644::-;84517:12;84546:7;84542:427;;;84574:10;:17;84595:1;84574:22;84570:290;;-1:-1:-1;;;;;78213:19:0;;;84784:60;;;;-1:-1:-1;;;84784:60:0;;28846:2:1;84784:60:0;;;28828:21:1;28885:2;28865:18;;;28858:30;28924:31;28904:18;;;28897:59;28973:18;;84784:60:0;28644:353:1;84784:60:0;-1:-1:-1;84881:10:0;84874:17;;84542:427;84924:33;84932:10;84944:12;85679:17;;:21;85675:388;;85911:10;85905:17;85968:15;85955:10;85951:2;85947:19;85940:44;85675:388;86038:12;86031:20;;-1:-1:-1;;;86031:20:0;;;;;;;;:::i;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:118::-;678:5;671:13;664:21;657:5;654:32;644:60;;700:1;697;690:12;715:241;771:6;824:2;812:9;803:7;799:23;795:32;792:52;;;840:1;837;830:12;792:52;879:9;866:23;898:28;920:5;898:28;:::i;961:250::-;1046:1;1056:113;1070:6;1067:1;1064:13;1056:113;;;1146:11;;;1140:18;1127:11;;;1120:39;1092:2;1085:10;1056:113;;;-1:-1:-1;;1203:1:1;1185:16;;1178:27;961:250::o;1216:271::-;1258:3;1296:5;1290:12;1323:6;1318:3;1311:19;1339:76;1408:6;1401:4;1396:3;1392:14;1385:4;1378:5;1374:16;1339:76;:::i;:::-;1469:2;1448:15;-1:-1:-1;;1444:29:1;1435:39;;;;1476:4;1431:50;;1216:271;-1:-1:-1;;1216:271:1:o;1492:220::-;1641:2;1630:9;1623:21;1604:4;1661:45;1702:2;1691:9;1687:18;1679:6;1661:45;:::i;1717:180::-;1776:6;1829:2;1817:9;1808:7;1804:23;1800:32;1797:52;;;1845:1;1842;1835:12;1797:52;-1:-1:-1;1868:23:1;;1717:180;-1:-1:-1;1717:180:1:o;2110:131::-;-1:-1:-1;;;;;2185:31:1;;2175:42;;2165:70;;2231:1;2228;2221:12;2246:315;2314:6;2322;2375:2;2363:9;2354:7;2350:23;2346:32;2343:52;;;2391:1;2388;2381:12;2343:52;2430:9;2417:23;2449:31;2474:5;2449:31;:::i;:::-;2499:5;2551:2;2536:18;;;;2523:32;;-1:-1:-1;;;2246:315:1:o;2748:247::-;2807:6;2860:2;2848:9;2839:7;2835:23;2831:32;2828:52;;;2876:1;2873;2866:12;2828:52;2915:9;2902:23;2934:31;2959:5;2934:31;:::i;3552:456::-;3629:6;3637;3645;3698:2;3686:9;3677:7;3673:23;3669:32;3666:52;;;3714:1;3711;3704:12;3666:52;3753:9;3740:23;3772:31;3797:5;3772:31;:::i;:::-;3822:5;-1:-1:-1;3879:2:1;3864:18;;3851:32;3892:33;3851:32;3892:33;:::i;:::-;3552:456;;3944:7;;-1:-1:-1;;;3998:2:1;3983:18;;;;3970:32;;3552:456::o;4013:127::-;4074:10;4069:3;4065:20;4062:1;4055:31;4105:4;4102:1;4095:15;4129:4;4126:1;4119:15;4145:275;4216:2;4210:9;4281:2;4262:13;;-1:-1:-1;;4258:27:1;4246:40;;4316:18;4301:34;;4337:22;;;4298:62;4295:88;;;4363:18;;:::i;:::-;4399:2;4392:22;4145:275;;-1:-1:-1;4145:275:1:o;4425:1021::-;4509:6;4540:2;4583;4571:9;4562:7;4558:23;4554:32;4551:52;;;4599:1;4596;4589:12;4551:52;4639:9;4626:23;4668:18;4709:2;4701:6;4698:14;4695:34;;;4725:1;4722;4715:12;4695:34;4763:6;4752:9;4748:22;4738:32;;4808:7;4801:4;4797:2;4793:13;4789:27;4779:55;;4830:1;4827;4820:12;4779:55;4866:2;4853:16;4888:2;4884;4881:10;4878:36;;;4894:18;;:::i;:::-;4940:2;4937:1;4933:10;4923:20;;4963:28;4987:2;4983;4979:11;4963:28;:::i;:::-;5025:15;;;5095:11;;;5091:20;;;5056:12;;;;5123:19;;;5120:39;;;5155:1;5152;5145:12;5120:39;5179:11;;;;5199:217;5215:6;5210:3;5207:15;5199:217;;;5295:3;5282:17;5269:30;;5312:31;5337:5;5312:31;:::i;:::-;5356:18;;;5232:12;;;;5394;;;;5199:217;;;5435:5;4425:1021;-1:-1:-1;;;;;;;;4425:1021:1:o;5451:632::-;5622:2;5674:21;;;5744:13;;5647:18;;;5766:22;;;5593:4;;5622:2;5845:15;;;;5819:2;5804:18;;;5593:4;5888:169;5902:6;5899:1;5896:13;5888:169;;;5963:13;;5951:26;;6032:15;;;;5997:12;;;;5924:1;5917:9;5888:169;;;-1:-1:-1;6074:3:1;;5451:632;-1:-1:-1;;;;;;5451:632:1:o;6088:407::-;6153:5;6187:18;6179:6;6176:30;6173:56;;;6209:18;;:::i;:::-;6247:57;6292:2;6271:15;;-1:-1:-1;;6267:29:1;6298:4;6263:40;6247:57;:::i;:::-;6238:66;;6327:6;6320:5;6313:21;6367:3;6358:6;6353:3;6349:16;6346:25;6343:45;;;6384:1;6381;6374:12;6343:45;6433:6;6428:3;6421:4;6414:5;6410:16;6397:43;6487:1;6480:4;6471:6;6464:5;6460:18;6456:29;6449:40;6088:407;;;;;:::o;6500:451::-;6569:6;6622:2;6610:9;6601:7;6597:23;6593:32;6590:52;;;6638:1;6635;6628:12;6590:52;6678:9;6665:23;6711:18;6703:6;6700:30;6697:50;;;6743:1;6740;6733:12;6697:50;6766:22;;6819:4;6811:13;;6807:27;-1:-1:-1;6797:55:1;;6848:1;6845;6838:12;6797:55;6871:74;6937:7;6932:2;6919:16;6914:2;6910;6906:11;6871:74;:::i;6956:315::-;7024:6;7032;7085:2;7073:9;7064:7;7060:23;7056:32;7053:52;;;7101:1;7098;7091:12;7053:52;7137:9;7124:23;7114:33;;7197:2;7186:9;7182:18;7169:32;7210:31;7235:5;7210:31;:::i;:::-;7260:5;7250:15;;;6956:315;;;;;:::o;7611:382::-;7676:6;7684;7737:2;7725:9;7716:7;7712:23;7708:32;7705:52;;;7753:1;7750;7743:12;7705:52;7792:9;7779:23;7811:31;7836:5;7811:31;:::i;:::-;7861:5;-1:-1:-1;7918:2:1;7903:18;;7890:32;7931:30;7890:32;7931:30;:::i;8436:795::-;8531:6;8539;8547;8555;8608:3;8596:9;8587:7;8583:23;8579:33;8576:53;;;8625:1;8622;8615:12;8576:53;8664:9;8651:23;8683:31;8708:5;8683:31;:::i;:::-;8733:5;-1:-1:-1;8790:2:1;8775:18;;8762:32;8803:33;8762:32;8803:33;:::i;:::-;8855:7;-1:-1:-1;8909:2:1;8894:18;;8881:32;;-1:-1:-1;8964:2:1;8949:18;;8936:32;8991:18;8980:30;;8977:50;;;9023:1;9020;9013:12;8977:50;9046:22;;9099:4;9091:13;;9087:27;-1:-1:-1;9077:55:1;;9128:1;9125;9118:12;9077:55;9151:74;9217:7;9212:2;9199:16;9194:2;9190;9186:11;9151:74;:::i;:::-;9141:84;;;8436:795;;;;;;;:::o;9503:460::-;9597:6;9605;9613;9621;9674:3;9662:9;9653:7;9649:23;9645:33;9642:53;;;9691:1;9688;9681:12;9642:53;9727:9;9714:23;9704:33;;9784:2;9773:9;9769:18;9756:32;9746:42;;9835:2;9824:9;9820:18;9807:32;9797:42;;9889:2;9878:9;9874:18;9861:32;9902:31;9927:5;9902:31;:::i;:::-;9503:460;;;;-1:-1:-1;9503:460:1;;-1:-1:-1;;9503:460:1:o;9968:388::-;10036:6;10044;10097:2;10085:9;10076:7;10072:23;10068:32;10065:52;;;10113:1;10110;10103:12;10065:52;10152:9;10139:23;10171:31;10196:5;10171:31;:::i;:::-;10221:5;-1:-1:-1;10278:2:1;10263:18;;10250:32;10291:33;10250:32;10291:33;:::i;10361:609::-;10471:6;10479;10487;10495;10503;10556:3;10544:9;10535:7;10531:23;10527:33;10524:53;;;10573:1;10570;10563:12;10524:53;10612:9;10599:23;10631:31;10656:5;10631:31;:::i;:::-;10681:5;-1:-1:-1;10733:2:1;10718:18;;10705:32;;-1:-1:-1;10784:2:1;10769:18;;10756:32;;-1:-1:-1;10835:2:1;10820:18;;10807:32;;-1:-1:-1;10891:3:1;10876:19;;10863:33;10905;10863;10905;:::i;:::-;10957:7;10947:17;;;10361:609;;;;;;;;:::o;10975:380::-;11054:1;11050:12;;;;11097;;;11118:61;;11172:4;11164:6;11160:17;11150:27;;11118:61;11225:2;11217:6;11214:14;11194:18;11191:38;11188:161;;11271:10;11266:3;11262:20;11259:1;11252:31;11306:4;11303:1;11296:15;11334:4;11331:1;11324:15;11188:161;;10975:380;;;:::o;12192:409::-;12394:2;12376:21;;;12433:2;12413:18;;;12406:30;12472:34;12467:2;12452:18;;12445:62;-1:-1:-1;;;12538:2:1;12523:18;;12516:43;12591:3;12576:19;;12192:409::o;12606:127::-;12667:10;12662:3;12658:20;12655:1;12648:31;12698:4;12695:1;12688:15;12722:4;12719:1;12712:15;12738:127;12799:10;12794:3;12790:20;12787:1;12780:31;12830:4;12827:1;12820:15;12854:4;12851:1;12844:15;12870:135;12909:3;12930:17;;;12927:43;;12950:18;;:::i;:::-;-1:-1:-1;12997:1:1;12986:13;;12870:135::o;13961:545::-;14063:2;14058:3;14055:11;14052:448;;;14099:1;14124:5;14120:2;14113:17;14169:4;14165:2;14155:19;14239:2;14227:10;14223:19;14220:1;14216:27;14210:4;14206:38;14275:4;14263:10;14260:20;14257:47;;;-1:-1:-1;14298:4:1;14257:47;14353:2;14348:3;14344:12;14341:1;14337:20;14331:4;14327:31;14317:41;;14408:82;14426:2;14419:5;14416:13;14408:82;;;14471:17;;;14452:1;14441:13;14408:82;;;14412:3;;;13961:545;;;:::o;14682:1352::-;14808:3;14802:10;14835:18;14827:6;14824:30;14821:56;;;14857:18;;:::i;:::-;14886:97;14976:6;14936:38;14968:4;14962:11;14936:38;:::i;:::-;14930:4;14886:97;:::i;:::-;15038:4;;15102:2;15091:14;;15119:1;15114:663;;;;15821:1;15838:6;15835:89;;;-1:-1:-1;15890:19:1;;;15884:26;15835:89;-1:-1:-1;;14639:1:1;14635:11;;;14631:24;14627:29;14617:40;14663:1;14659:11;;;14614:57;15937:81;;15084:944;;15114:663;13908:1;13901:14;;;13945:4;13932:18;;-1:-1:-1;;15150:20:1;;;15268:236;15282:7;15279:1;15276:14;15268:236;;;15371:19;;;15365:26;15350:42;;15463:27;;;;15431:1;15419:14;;;;15298:19;;15268:236;;;15272:3;15532:6;15523:7;15520:19;15517:201;;;15593:19;;;15587:26;-1:-1:-1;;15676:1:1;15672:14;;;15688:3;15668:24;15664:37;15660:42;15645:58;15630:74;;15517:201;-1:-1:-1;;;;;15764:1:1;15748:14;;;15744:22;15731:36;;-1:-1:-1;14682:1352:1:o;16746:125::-;16811:9;;;16832:10;;;16829:36;;;16845:18;;:::i;17536:184::-;17606:6;17659:2;17647:9;17638:7;17634:23;17630:32;17627:52;;;17675:1;17672;17665:12;17627:52;-1:-1:-1;17698:16:1;;17536:184;-1:-1:-1;17536:184:1:o;19972:1256::-;20196:3;20234:6;20228:13;20260:4;20273:64;20330:6;20325:3;20320:2;20312:6;20308:15;20273:64;:::i;:::-;20400:13;;20359:16;;;;20422:68;20400:13;20359:16;20457:15;;;20422:68;:::i;:::-;20579:13;;20512:20;;;20552:1;;20617:36;20579:13;20617:36;:::i;:::-;20672:1;20689:18;;;20716:141;;;;20871:1;20866:337;;;;20682:521;;20716:141;-1:-1:-1;;20751:24:1;;20737:39;;20828:16;;20821:24;20807:39;;20796:51;;;-1:-1:-1;20716:141:1;;20866:337;20897:6;20894:1;20887:17;20945:2;20942:1;20932:16;20970:1;20984:169;20998:8;20995:1;20992:15;20984:169;;;21080:14;;21065:13;;;21058:37;21123:16;;;;21015:10;;20984:169;;;20988:3;;21184:8;21177:5;21173:20;21166:27;;20682:521;-1:-1:-1;21219:3:1;;19972:1256;-1:-1:-1;;;;;;;;;;19972:1256:1:o;22001:401::-;22203:2;22185:21;;;22242:2;22222:18;;;22215:30;22281:34;22276:2;22261:18;;22254:62;-1:-1:-1;;;22347:2:1;22332:18;;22325:35;22392:3;22377:19;;22001:401::o;23172:168::-;23245:9;;;23276;;23293:15;;;23287:22;;23273:37;23263:71;;23314:18;;:::i;23477:217::-;23517:1;23543;23533:132;;23587:10;23582:3;23578:20;23575:1;23568:31;23622:4;23619:1;23612:15;23650:4;23647:1;23640:15;23533:132;-1:-1:-1;23679:9:1;;23477:217::o;23699:128::-;23766:9;;;23787:11;;;23784:37;;;23801:18;;:::i;24845:414::-;25047:2;25029:21;;;25086:2;25066:18;;;25059:30;25125:34;25120:2;25105:18;;25098:62;-1:-1:-1;;;25191:2:1;25176:18;;25169:48;25249:3;25234:19;;24845:414::o;25686:127::-;25747:10;25742:3;25738:20;25735:1;25728:31;25778:4;25775:1;25768:15;25802:4;25799:1;25792:15;25818:245;25885:6;25938:2;25926:9;25917:7;25913:23;25909:32;25906:52;;;25954:1;25951;25944:12;25906:52;25986:9;25980:16;26005:28;26027:5;26005:28;:::i;26479:489::-;-1:-1:-1;;;;;26748:15:1;;;26730:34;;26800:15;;26795:2;26780:18;;26773:43;26847:2;26832:18;;26825:34;;;26895:3;26890:2;26875:18;;26868:31;;;26673:4;;26916:46;;26942:19;;26934:6;26916:46;:::i;:::-;26908:54;26479:489;-1:-1:-1;;;;;;26479:489:1:o;26973:249::-;27042:6;27095:2;27083:9;27074:7;27070:23;27066:32;27063:52;;;27111:1;27108;27101:12;27063:52;27143:9;27137:16;27162:30;27186:5;27162:30;:::i;28352:287::-;28481:3;28519:6;28513:13;28535:66;28594:6;28589:3;28582:4;28574:6;28570:17;28535:66;:::i;:::-;28617:16;;;;;28352:287;-1:-1:-1;;28352:287:1:o
Swarm Source
ipfs://3b3f8efd0895eee043858315bbbc99ceda7be105d16377f052385e32395411c6
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.