Polygon Sponsored slots available. Book your slot here!
Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 4,842 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Set Approval For... | 80307065 | 41 days ago | IN | 0 POL | 0.00084878 | ||||
| Set Approval For... | 80307059 | 41 days ago | IN | 0 POL | 0.00085172 | ||||
| Set Approval For... | 77405459 | 108 days ago | IN | 0 POL | 0.00203579 | ||||
| Transfer From | 76927023 | 120 days ago | IN | 0 POL | 0.00384214 | ||||
| Transfer From | 76546513 | 129 days ago | IN | 0 POL | 0.00616324 | ||||
| Transfer From | 76546505 | 129 days ago | IN | 0 POL | 0.00691455 | ||||
| Transfer From | 76546497 | 129 days ago | IN | 0 POL | 0.0071119 | ||||
| Transfer From | 76546490 | 129 days ago | IN | 0 POL | 0.00705348 | ||||
| Transfer From | 76546480 | 129 days ago | IN | 0 POL | 0.00766451 | ||||
| Transfer From | 76546470 | 129 days ago | IN | 0 POL | 0.0091813 | ||||
| Transfer From | 76491194 | 131 days ago | IN | 0 POL | 0.00751851 | ||||
| Transfer From | 76484811 | 131 days ago | IN | 0 POL | 0.03232149 | ||||
| Transfer From | 76472436 | 131 days ago | IN | 0 POL | 0.00427149 | ||||
| Transfer From | 76472421 | 131 days ago | IN | 0 POL | 0.00464202 | ||||
| Transfer From | 76472407 | 131 days ago | IN | 0 POL | 0.00503469 | ||||
| Transfer From | 76472392 | 131 days ago | IN | 0 POL | 0.00484965 | ||||
| Transfer From | 76472378 | 131 days ago | IN | 0 POL | 0.00540261 | ||||
| Transfer From | 76472366 | 131 days ago | IN | 0 POL | 0.00521757 | ||||
| Transfer From | 76471942 | 131 days ago | IN | 0 POL | 0.00599949 | ||||
| Transfer From | 76471942 | 131 days ago | IN | 0 POL | 0.00549549 | ||||
| Transfer From | 76471863 | 131 days ago | IN | 0 POL | 0.00579969 | ||||
| Transfer From | 76471813 | 131 days ago | IN | 0 POL | 0.00574703 | ||||
| Transfer From | 76471812 | 131 days ago | IN | 0 POL | 0.00575146 | ||||
| Transfer From | 76471810 | 131 days ago | IN | 0 POL | 0.00541172 | ||||
| Transfer From | 76471806 | 131 days ago | IN | 0 POL | 0.00557716 |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Item
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity)
/**
*Submitted for verification at polygonscan.com on 2022-11-23
*/
// File: @openzeppelin/contracts/utils/structs/EnumerableSet.sol
// OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol)
pragma solidity ^0.8.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*
* [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) {
return _values(set._inner);
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(AddressSet storage set) internal view returns (address[] memory) {
bytes32[] memory store = _values(set._inner);
address[] memory result;
/// @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 on the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(UintSet storage set) internal view returns (uint256[] memory) {
bytes32[] memory store = _values(set._inner);
uint256[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
}
// File: @openzeppelin/contracts/access/IAccessControl.sol
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)
pragma solidity ^0.8.0;
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControl {
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted signaling this.
*
* _Available since v3.1._
*/
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
/**
* @dev Emitted when `account` is granted `role`.
*
* `sender` is the account that originated the contract call, an admin role
* bearer except when using {AccessControl-_setupRole}.
*/
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Emitted when `account` is revoked `role`.
*
* `sender` is the account that originated the contract call:
* - if using `revokeRole`, it is the admin role bearer
* - if using `renounceRole`, it is the role bearer (i.e. `account`)
*/
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) external view returns (bool);
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {AccessControl-_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) external view returns (bytes32);
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been granted `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `account`.
*/
function renounceRole(bytes32 role, address account) external;
}
// File: @openzeppelin/contracts/access/IAccessControlEnumerable.sol
// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)
pragma solidity ^0.8.0;
/**
* @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
*/
interface IAccessControlEnumerable is IAccessControl {
/**
* @dev Returns one of the accounts that have `role`. `index` must be a
* value between 0 and {getRoleMemberCount}, non-inclusive.
*
* Role bearers are not sorted in any particular way, and their ordering may
* change at any point.
*
* WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
* you perform all queries on the same block. See the following
* https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
* for more information.
*/
function getRoleMember(bytes32 role, uint256 index) external view returns (address);
/**
* @dev Returns the number of accounts that have `role`. Can be used
* together with {getRoleMember} to enumerate all bearers of a role.
*/
function getRoleMemberCount(bytes32 role) external view returns (uint256);
}
// File: @openzeppelin/contracts/security/ReentrancyGuard.sol
// OpenZeppelin Contracts v4.4.1 (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() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}
// File: @openzeppelin/contracts/utils/Counters.sol
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.
*
* Include with `using Counters for Counters.Counter;`
*/
library Counters {
struct Counter {
// This variable should never be directly accessed by users of the library: interactions must be restricted to
// the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
// this feature: see https://github.com/ethereum/solidity/issues/4637
uint256 _value; // default: 0
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
unchecked {
counter._value += 1;
}
}
function decrement(Counter storage counter) internal {
uint256 value = counter._value;
require(value > 0, "Counter: decrement overflow");
unchecked {
counter._value = value - 1;
}
}
function reset(Counter storage counter) internal {
counter._value = 0;
}
}
// File: @openzeppelin/contracts/utils/Strings.sol
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_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) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
/**
* @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);
}
}
// File: @openzeppelin/contracts/utils/Context.sol
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
// File: @openzeppelin/contracts/access/Ownable.sol
// OpenZeppelin Contracts (last updated v4.7.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 anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
// File: @openzeppelin/contracts/security/Pausable.sol
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract Pausable is Context {
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
bool private _paused;
/**
* @dev Initializes the contract in unpaused state.
*/
constructor() {
_paused = false;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
_requireNotPaused();
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
_requirePaused();
_;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Throws if the contract is paused.
*/
function _requireNotPaused() internal view virtual {
require(!paused(), "Pausable: paused");
}
/**
* @dev Throws if the contract is not paused.
*/
function _requirePaused() internal view virtual {
require(paused(), "Pausable: not paused");
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
}
// File: @openzeppelin/contracts/utils/Address.sol
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol
// OpenZeppelin Contracts (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/access/AccessControl.sol
// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms. This is a lightweight version that doesn't allow enumerating role
* members except through off-chain means by accessing the contract event logs. Some
* applications may benefit from on-chain enumerability, for those cases see
* {AccessControlEnumerable}.
*
* Roles are referred to by their `bytes32` identifier. These should be exposed
* in the external API and be unique. The best way to achieve this is by
* using `public constant` hash digests:
*
* ```
* bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
* ```
*
* Roles can be used to represent a set of permissions. To restrict access to a
* function call, use {hasRole}:
*
* ```
* function foo() public {
* require(hasRole(MY_ROLE, msg.sender));
* ...
* }
* ```
*
* Roles can be granted and revoked dynamically via the {grantRole} and
* {revokeRole} functions. Each role has an associated admin role, and only
* accounts that have a role's admin role can call {grantRole} and {revokeRole}.
*
* By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
* that only accounts with this role will be able to grant or revoke other
* roles. More complex role relationships can be created by using
* {_setRoleAdmin}.
*
* WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
* grant and revoke this role. Extra precautions should be taken to secure
* accounts that have been granted it.
*/
abstract contract AccessControl is Context, IAccessControl, ERC165 {
struct RoleData {
mapping(address => bool) members;
bytes32 adminRole;
}
mapping(bytes32 => RoleData) private _roles;
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/**
* @dev Modifier that checks that an account has a specific role. Reverts
* with a standardized message including the required role.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
*
* _Available since v4.1._
*/
modifier onlyRole(bytes32 role) {
_checkRole(role);
_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
return _roles[role].members[account];
}
/**
* @dev Revert with a standard message if `_msgSender()` is missing `role`.
* Overriding this function changes the behavior of the {onlyRole} modifier.
*
* Format of the revert message is described in {_checkRole}.
*
* _Available since v4.6._
*/
function _checkRole(bytes32 role) internal view virtual {
_checkRole(role, _msgSender());
}
/**
* @dev Revert with a standard message if `account` is missing `role`.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
*/
function _checkRole(bytes32 role, address account) internal view virtual {
if (!hasRole(role, account)) {
revert(
string(
abi.encodePacked(
"AccessControl: account ",
Strings.toHexString(uint160(account), 20),
" is missing role ",
Strings.toHexString(uint256(role), 32)
)
)
);
}
}
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
return _roles[role].adminRole;
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*
* May emit a {RoleGranted} event.
*/
function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
_grantRole(role, account);
}
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*
* May emit a {RoleRevoked} event.
*/
function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
_revokeRole(role, account);
}
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been revoked `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `account`.
*
* May emit a {RoleRevoked} event.
*/
function renounceRole(bytes32 role, address account) public virtual override {
require(account == _msgSender(), "AccessControl: can only renounce roles for self");
_revokeRole(role, account);
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event. Note that unlike {grantRole}, this function doesn't perform any
* checks on the calling account.
*
* May emit a {RoleGranted} event.
*
* [WARNING]
* ====
* This function should only be called from the constructor when setting
* up the initial roles for the system.
*
* Using this function in any other way is effectively circumventing the admin
* system imposed by {AccessControl}.
* ====
*
* NOTE: This function is deprecated in favor of {_grantRole}.
*/
function _setupRole(bytes32 role, address account) internal virtual {
_grantRole(role, account);
}
/**
* @dev Sets `adminRole` as ``role``'s admin role.
*
* Emits a {RoleAdminChanged} event.
*/
function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
bytes32 previousAdminRole = getRoleAdmin(role);
_roles[role].adminRole = adminRole;
emit RoleAdminChanged(role, previousAdminRole, adminRole);
}
/**
* @dev Grants `role` to `account`.
*
* Internal function without access restriction.
*
* May emit a {RoleGranted} event.
*/
function _grantRole(bytes32 role, address account) internal virtual {
if (!hasRole(role, account)) {
_roles[role].members[account] = true;
emit RoleGranted(role, account, _msgSender());
}
}
/**
* @dev Revokes `role` from `account`.
*
* Internal function without access restriction.
*
* May emit a {RoleRevoked} event.
*/
function _revokeRole(bytes32 role, address account) internal virtual {
if (hasRole(role, account)) {
_roles[role].members[account] = false;
emit RoleRevoked(role, account, _msgSender());
}
}
}
// File: @openzeppelin/contracts/access/AccessControlEnumerable.sol
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)
pragma solidity ^0.8.0;
/**
* @dev Extension of {AccessControl} that allows enumerating the members of each role.
*/
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
using EnumerableSet for EnumerableSet.AddressSet;
mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev Returns one of the accounts that have `role`. `index` must be a
* value between 0 and {getRoleMemberCount}, non-inclusive.
*
* Role bearers are not sorted in any particular way, and their ordering may
* change at any point.
*
* WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
* you perform all queries on the same block. See the following
* https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
* for more information.
*/
function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {
return _roleMembers[role].at(index);
}
/**
* @dev Returns the number of accounts that have `role`. Can be used
* together with {getRoleMember} to enumerate all bearers of a role.
*/
function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {
return _roleMembers[role].length();
}
/**
* @dev Overload {_grantRole} to track enumerable memberships
*/
function _grantRole(bytes32 role, address account) internal virtual override {
super._grantRole(role, account);
_roleMembers[role].add(account);
}
/**
* @dev Overload {_revokeRole} to track enumerable memberships
*/
function _revokeRole(bytes32 role, address account) internal virtual override {
super._revokeRole(role, account);
_roleMembers[role].remove(account);
}
}
// File: @openzeppelin/contracts/token/ERC721/IERC721.sol
// OpenZeppelin Contracts (last updated v4.7.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: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev 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/token/ERC721/ERC721.sol
// OpenZeppelin Contracts (last updated v4.7.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 = _owners[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 nor 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 nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
_safeTransfer(from, to, tokenId, data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
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);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
_afterTokenTransfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
_afterTokenTransfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
_afterTokenTransfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits 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.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}
// File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Pausable.sol)
pragma solidity ^0.8.0;
/**
* @dev ERC721 token with pausable token transfers, minting and burning.
*
* Useful for scenarios such as preventing trades until the end of an evaluation
* period, or having an emergency switch for freezing all token transfers in the
* event of a large bug.
*/
abstract contract ERC721Pausable is ERC721, Pausable {
/**
* @dev See {ERC721-_beforeTokenTransfer}.
*
* Requirements:
*
* - the contract must not be paused.
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual override {
super._beforeTokenTransfer(from, to, tokenId);
require(!paused(), "ERC721Pausable: token transfer while paused");
}
}
// File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721Burnable.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 Burnable Token
* @dev ERC721 Token that can be burned (destroyed).
*/
abstract contract ERC721Burnable is Context, ERC721 {
/**
* @dev Burns `tokenId`. See {ERC721-_burn}.
*
* Requirements:
*
* - The caller must own `tokenId` or be an approved operator.
*/
function burn(uint256 tokenId) public virtual {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
_burn(tokenId);
}
}
// File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)
pragma solidity ^0.8.0;
/**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Array with all token ids, used for enumeration
uint256[] private _allTokens;
// Mapping from token id to position in the allTokens array
mapping(uint256 => uint256) private _allTokensIndex;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
return _ownedTokens[owner][index];
}
/**
* @dev See {IERC721Enumerable-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _allTokens.length;
}
/**
* @dev See {IERC721Enumerable-tokenByIndex}.
*/
function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
return _allTokens[index];
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual override {
super._beforeTokenTransfer(from, to, tokenId);
if (from == address(0)) {
_addTokenToAllTokensEnumeration(tokenId);
} else if (from != to) {
_removeTokenFromOwnerEnumeration(from, tokenId);
}
if (to == address(0)) {
_removeTokenFromAllTokensEnumeration(tokenId);
} else if (to != from) {
_addTokenToOwnerEnumeration(to, tokenId);
}
}
/**
* @dev Private function to add a token to this extension's ownership-tracking data structures.
* @param to address representing the new owner of the given token ID
* @param tokenId uint256 ID of the token to be added to the tokens list of the given address
*/
function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
uint256 length = ERC721.balanceOf(to);
_ownedTokens[to][length] = tokenId;
_ownedTokensIndex[tokenId] = length;
}
/**
* @dev Private function to add a token to this extension's token tracking data structures.
* @param tokenId uint256 ID of the token to be added to the tokens list
*/
function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
/**
* @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
* while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
* gas optimizations e.g. when performing a transfer operation (avoiding double writes).
* This has O(1) time complexity, but alters the order of the _ownedTokens array.
* @param from address representing the previous owner of the given token ID
* @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
*/
function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
// To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
uint256 tokenIndex = _ownedTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary
if (tokenIndex != lastTokenIndex) {
uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];
_ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
}
// This also deletes the contents at the last position of the array
delete _ownedTokensIndex[tokenId];
delete _ownedTokens[from][lastTokenIndex];
}
/**
* @dev Private function to remove a token from this extension's token tracking data structures.
* This has O(1) time complexity, but alters the order of the _allTokens array.
* @param tokenId uint256 ID of the token to be removed from the tokens list
*/
function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
// To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = _allTokens.length - 1;
uint256 tokenIndex = _allTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
// rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
// an 'if' statement (like in _removeTokenFromOwnerEnumeration)
uint256 lastTokenId = _allTokens[lastTokenIndex];
_allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
// This also deletes the contents at the last position of the array
delete _allTokensIndex[tokenId];
_allTokens.pop();
}
}
// File: contracts/NFT/Item.sol
pragma solidity ^0.8.9;
contract Item is Context,
Ownable,
AccessControlEnumerable,
ERC721Enumerable,
ERC721Burnable,
ERC721Pausable {
using Counters for Counters.Counter;
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;
Counters.Counter private _tokenIdTracker;
string private _baseTokenURI;
address private royaltyReceipient;
uint256 private royaltyPercent;
uint256 constant private maxPercent = 10000;
mapping(address => uint256[]) ownedTokens;
mapping(address => mapping(uint256 => uint256)) indexes;
constructor(
string memory baseTokenURI,
address _royaltyReceipient,
uint256 _royaltyPercent
) ERC721("OYABUN Item", "OYABUN_ITEM") {
require(_royaltyPercent <= maxPercent, "Item: royaltyPercent must be less than max percent");
_baseTokenURI = baseTokenURI;
royaltyPercent = _royaltyPercent;
royaltyReceipient = _royaltyReceipient;
_setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
_setupRole(MINTER_ROLE, _msgSender());
_setupRole(PAUSER_ROLE, _msgSender());
_transferOwnership(_msgSender());
}
function setRoyaltyPercent(uint256 newPercent) public onlyOwner {
require(newPercent < maxPercent, "Item: percent must be less than max");
royaltyPercent = newPercent;
}
function _baseURI() internal view override returns (string memory) {
return _baseTokenURI;
}
function setBaseURI(string calldata _newBaseURI) public onlyOwner {
_baseTokenURI = _newBaseURI;
}
function getOwnedTokens(address user, uint256 offset, uint256 count) public view returns(uint256[] memory result) {
require(offset + count <= ownedTokens[user].length, "Tattoo: user haven't enough tokens");
result = new uint256[](count);
for(uint256 i = 0; i < count; i += 1) {
result[i] = ownedTokens[user][offset + i];
}
}
function getOwnedTokensCount(address user) public view returns(uint256 result) {
result = ownedTokens[user].length;
}
function mint(address to) public {
require(hasRole(MINTER_ROLE, _msgSender()), "Item: must have minter role to mint");
_mint(to, _tokenIdTracker.current());
_tokenIdTracker.increment();
}
function mintBatch(address to, uint256 quantity) public {
require(hasRole(MINTER_ROLE, _msgSender()), "Item: must have minter role to mint");
for(uint i = 0; i < quantity; i += 1) {
_mint(to, _tokenIdTracker.current());
_tokenIdTracker.increment();
}
}
function pause() public {
require(hasRole(PAUSER_ROLE, _msgSender()), "Item: must have pauser role to pause");
_pause();
}
function unpause() public {
require(hasRole(PAUSER_ROLE, _msgSender()), "Item: must have pauser role to unpause");
_unpause();
}
function grantMinterRole(address minter) public onlyOwner {
_grantRole(MINTER_ROLE, minter);
}
function revokeMinterRole(address minter) public onlyOwner {
_revokeRole(MINTER_ROLE, minter);
}
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal override(ERC721, ERC721Enumerable, ERC721Pausable) {
super._beforeTokenTransfer(from, to, tokenId);
if (from != address(0)) {
delete indexes[from][tokenId];
uint256[] memory temp_owned_tokens = new uint256[](ownedTokens[from].length - 1);
uint256 j = 0;
for (uint256 i = 0; i < ownedTokens[from].length; i += 1) {
if (ownedTokens[from][i] != tokenId) {
temp_owned_tokens[j] = ownedTokens[from][i];
indexes[from][ownedTokens[from][i]] = j;
j += 1;
}
}
ownedTokens[from] = temp_owned_tokens;
}
if (to != address(0)) {
uint256 index = ownedTokens[to].length;
ownedTokens[to].push(tokenId);
indexes[to][tokenId] = index;
}
}
function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount) {
return (royaltyReceipient, _salePrice * royaltyPercent / maxPercent);
}
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(AccessControlEnumerable, ERC721, ERC721Enumerable)
returns (bool)
{
return interfaceId == _INTERFACE_ID_ERC2981 || super.supportsInterface(interfaceId);
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"address","name":"_royaltyReceipient","type":"address"},{"internalType":"uint256","name":"_royaltyPercent","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"offset","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"getOwnedTokens","outputs":[{"internalType":"uint256[]","name":"result","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getOwnedTokensCount","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"grantMinterRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"revokeMinterRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"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":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPercent","type":"uint256"}],"name":"setRoyaltyPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b506040516200334838038062003348833981016040819052620000349162000470565b6040518060400160405280600b81526020016a4f594142554e204974656d60a81b8152506040518060400160405280600b81526020016a4f594142554e5f4954454d60a81b8152506200009662000090620001f660201b60201c565b620001fa565b8151620000ab90600390602085019062000397565b508051620000c190600490602084019062000397565b5050600d805460ff1916905550612710811115620001405760405162461bcd60e51b815260206004820152603260248201527f4974656d3a20726f79616c747950657263656e74206d757374206265206c65736044820152711cc81d1a185b881b585e081c195c98d95b9d60721b606482015260840160405180910390fd5b82516200015590600f90602086019062000397565b506011819055601080546001600160a01b0319166001600160a01b0384161790556200018a6000620001843390565b6200024a565b620001b67f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336200024a565b620001e27f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336200024a565b620001ed33620001fa565b505050620005a7565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6200025682826200025a565b5050565b6200027182826200029d60201b6200110d1760201c565b6000828152600260209081526040909120620002989183906200117862000325821b17901c565b505050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16620002565760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b60006200033c836001600160a01b03841662000345565b90505b92915050565b60008181526001830160205260408120546200038e575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556200033f565b5060006200033f565b828054620003a5906200056a565b90600052602060002090601f016020900481019282620003c9576000855562000414565b82601f10620003e457805160ff191683800117855562000414565b8280016001018555821562000414579182015b8281111562000414578251825591602001919060010190620003f7565b506200042292915062000426565b5090565b5b8082111562000422576000815560010162000427565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200046b57600080fd5b919050565b6000806000606084860312156200048657600080fd5b83516001600160401b03808211156200049e57600080fd5b818601915086601f830112620004b357600080fd5b815181811115620004c857620004c86200043d565b604051601f8201601f19908116603f01168101908382118183101715620004f357620004f36200043d565b816040528281526020935089848487010111156200051057600080fd5b600091505b8282101562000534578482018401518183018501529083019062000515565b82821115620005465760008484830101525b96506200055891505086820162000453565b93505050604084015190509250925092565b600181811c908216806200057f57607f821691505b60208210811415620005a157634e487b7160e01b600052602260045260246000fd5b50919050565b612d9180620005b76000396000f3fe608060405234801561001057600080fd5b506004361061025e5760003560e01c806369e2f0fb116101465780639a4fc640116100c3578063ca15c87311610087578063ca15c87314610551578063d539139314610564578063d547741f14610579578063e63ab1e91461058c578063e985e9c5146105b3578063f2fde38b146105ef57600080fd5b80639a4fc640146104fd578063a217fddf14610510578063a22cb46514610518578063b88d4fde1461052b578063c87b56dd1461053e57600080fd5b80638456cb591161010a5780638456cb59146104b65780638da5cb5b146104be5780639010d07c146104cf57806391d14854146104e257806395d89b41146104f557600080fd5b806369e2f0fb1461044c5780636a6278421461045f5780636ab299751461047257806370a082311461049b578063715018a6146104ae57600080fd5b80632f2ff15d116101df57806342842e0e116101a357806342842e0e146103e257806342966c68146103f55780634f6ccce71461040857806355f804b31461041b5780635c975abb1461042e5780636352211e1461043957600080fd5b80632f2ff15d1461038e5780632f745c59146103a157806336568abe146103b45780633dd1eb61146103c75780633f4ba83a146103da57600080fd5b806318160ddd1161022657806318160ddd1461030057806323b872dd14610312578063248a9ca314610325578063248b71fc146103495780632a55205a1461035c57600080fd5b806301ffc9a71461026357806306fdde031461028b578063081812fc146102a0578063082a6569146102cb578063095ea7b3146102eb575b600080fd5b610276610271366004612652565b610602565b60405190151581526020015b60405180910390f35b61029361062d565b60405161028291906126c7565b6102b36102ae3660046126da565b6106bf565b6040516001600160a01b039091168152602001610282565b6102de6102d936600461270f565b6106e6565b6040516102829190612742565b6102fe6102f9366004612786565b61082e565b005b600b545b604051908152602001610282565b6102fe6103203660046127b0565b610944565b6103046103333660046126da565b6000908152600160208190526040909120015490565b6102fe610357366004612786565b610976565b61036f61036a3660046127ec565b6109e7565b604080516001600160a01b039093168352602083019190915201610282565b6102fe61039c36600461280e565b610a21565b6103046103af366004612786565b610a47565b6102fe6103c236600461280e565b610add565b6102fe6103d536600461283a565b610b5b565b6102fe610b7e565b6102fe6103f03660046127b0565b610c0d565b6102fe6104033660046126da565b610c28565b6103046104163660046126da565b610c56565b6102fe610429366004612855565b610ce9565b600d5460ff16610276565b6102b36104473660046126da565b610cfd565b6102fe61045a36600461283a565b610d5d565b6102fe61046d36600461283a565b610d7d565b61030461048036600461283a565b6001600160a01b031660009081526012602052604090205490565b6103046104a936600461283a565b610dcc565b6102fe610e52565b6102fe610e64565b6000546001600160a01b03166102b3565b6102b36104dd3660046127ec565b610eee565b6102766104f036600461280e565b610f0d565b610293610f38565b6102fe61050b3660046126da565b610f47565b610304600081565b6102fe6105263660046128c7565b610fb1565b6102fe610539366004612919565b610fbc565b61029361054c3660046126da565b610ff4565b61030461055f3660046126da565b61105a565b610304600080516020612d3c83398151915281565b6102fe61058736600461280e565b611071565b6103047f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6102766105c13660046129f5565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b6102fe6105fd36600461283a565b611097565b60006001600160e01b0319821663152a902d60e11b148061062757506106278261118d565b92915050565b60606003805461063c90612a1f565b80601f016020809104026020016040519081016040528092919081815260200182805461066890612a1f565b80156106b55780601f1061068a576101008083540402835291602001916106b5565b820191906000526020600020905b81548152906001019060200180831161069857829003601f168201915b5050505050905090565b60006106ca826111b2565b506000908152600760205260409020546001600160a01b031690565b6001600160a01b03831660009081526012602052604090205460609061070c8385612a70565b111561076a5760405162461bcd60e51b815260206004820152602260248201527f546174746f6f3a207573657220686176656e277420656e6f75676820746f6b656044820152616e7360f01b60648201526084015b60405180910390fd5b8167ffffffffffffffff81111561078357610783612903565b6040519080825280602002602001820160405280156107ac578160200160208202803683370190505b50905060005b82811015610826576001600160a01b03851660009081526012602052604090206107dc8286612a70565b815481106107ec576107ec612a88565b906000526020600020015482828151811061080957610809612a88565b602090810291909101015261081f600182612a70565b90506107b2565b509392505050565b600061083982610cfd565b9050806001600160a01b0316836001600160a01b031614156108a75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610761565b336001600160a01b03821614806108c357506108c381336105c1565b6109355760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610761565b61093f8383611211565b505050565b61094f335b8261127f565b61096b5760405162461bcd60e51b815260040161076190612a9e565b61093f8383836112fe565b61098e600080516020612d3c83398151915233610f0d565b6109aa5760405162461bcd60e51b815260040161076190612aec565b60005b8181101561093f576109c7836109c2600e5490565b6114a5565b6109d5600e80546001019055565b6109e0600182612a70565b90506109ad565b60105460115460009182916001600160a01b039091169061271090610a0c9086612b2f565b610a169190612b64565b915091509250929050565b60008281526001602081905260409091200154610a3d816115f3565b61093f83836115fd565b6000610a5283610dcc565b8210610ab45760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610761565b506001600160a01b03919091166000908152600960209081526040808320938352929052205490565b6001600160a01b0381163314610b4d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610761565b610b57828261161f565b5050565b610b63611641565b610b7b600080516020612d3c833981519152826115fd565b50565b610ba87f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610f0d565b610c035760405162461bcd60e51b815260206004820152602660248201527f4974656d3a206d75737420686176652070617573657220726f6c6520746f20756044820152656e706175736560d01b6064820152608401610761565b610c0b61169b565b565b61093f83838360405180602001604052806000815250610fbc565b610c3133610949565b610c4d5760405162461bcd60e51b815260040161076190612a9e565b610b7b816116ed565b6000610c61600b5490565b8210610cc45760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610761565b600b8281548110610cd757610cd7612a88565b90600052602060002001549050919050565b610cf1611641565b61093f600f8383612568565b6000818152600560205260408120546001600160a01b0316806106275760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610761565b610d65611641565b610b7b600080516020612d3c8339815191528261161f565b610d95600080516020612d3c83398151915233610f0d565b610db15760405162461bcd60e51b815260040161076190612aec565b610dbe816109c2600e5490565b610b7b600e80546001019055565b60006001600160a01b038216610e365760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610761565b506001600160a01b031660009081526006602052604090205490565b610e5a611641565b610c0b6000611794565b610e8e7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610f0d565b610ee65760405162461bcd60e51b8152602060048201526024808201527f4974656d3a206d75737420686176652070617573657220726f6c6520746f20706044820152636175736560e01b6064820152608401610761565b610c0b6117e4565b6000828152600260205260408120610f069083611821565b9392505050565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606004805461063c90612a1f565b610f4f611641565b6127108110610fac5760405162461bcd60e51b815260206004820152602360248201527f4974656d3a2070657263656e74206d757374206265206c657373207468616e206044820152620dac2f60eb1b6064820152608401610761565b601155565b610b5733838361182d565b610fc6338361127f565b610fe25760405162461bcd60e51b815260040161076190612a9e565b610fee848484846118fc565b50505050565b6060610fff826111b2565b600061100961192f565b905060008151116110295760405180602001604052806000815250610f06565b806110338461193e565b604051602001611044929190612b78565b6040516020818303038152906040529392505050565b600081815260026020526040812061062790611a3c565b6000828152600160208190526040909120015461108d816115f3565b61093f838361161f565b61109f611641565b6001600160a01b0381166111045760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610761565b610b7b81611794565b6111178282610f0d565b610b575760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b6000610f06836001600160a01b038416611a46565b60006001600160e01b0319821663780e9d6360e01b1480610627575061062782611a95565b6000818152600560205260409020546001600160a01b0316610b7b5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610761565b600081815260076020526040902080546001600160a01b0319166001600160a01b038416908117909155819061124682610cfd565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061128b83610cfd565b9050806001600160a01b0316846001600160a01b031614806112d257506001600160a01b0380821660009081526008602090815260408083209388168352929052205460ff165b806112f65750836001600160a01b03166112eb846106bf565b6001600160a01b0316145b949350505050565b826001600160a01b031661131182610cfd565b6001600160a01b0316146113755760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610761565b6001600160a01b0382166113d75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610761565b6113e2838383611ad5565b6113ed600082611211565b6001600160a01b0383166000908152600660205260408120805460019290611416908490612ba7565b90915550506001600160a01b0382166000908152600660205260408120805460019290611444908490612a70565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0382166114fb5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610761565b6000818152600560205260409020546001600160a01b0316156115605760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610761565b61156c60008383611ad5565b6001600160a01b0382166000908152600660205260408120805460019290611595908490612a70565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b610b7b8133611d1f565b611607828261110d565b600082815260026020526040902061093f9082611178565b6116298282611d83565b600082815260026020526040902061093f9082611dea565b6000546001600160a01b03163314610c0b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610761565b6116a3611dff565b600d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60006116f882610cfd565b905061170681600084611ad5565b611711600083611211565b6001600160a01b038116600090815260066020526040812080546001929061173a908490612ba7565b909155505060008281526005602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6117ec611e48565b600d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586116d03390565b6000610f068383611e8e565b816001600160a01b0316836001600160a01b0316141561188f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610761565b6001600160a01b03838116600081815260086020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6119078484846112fe565b61191384848484611eb8565b610fee5760405162461bcd60e51b815260040161076190612bbe565b6060600f805461063c90612a1f565b6060816119625750506040805180820190915260018152600360fc1b602082015290565b8160005b811561198c578061197681612c10565b91506119859050600a83612b64565b9150611966565b60008167ffffffffffffffff8111156119a7576119a7612903565b6040519080825280601f01601f1916602001820160405280156119d1576020820181803683370190505b5090505b84156112f6576119e6600183612ba7565b91506119f3600a86612c2b565b6119fe906030612a70565b60f81b818381518110611a1357611a13612a88565b60200101906001600160f81b031916908160001a905350611a35600a86612b64565b94506119d5565b6000610627825490565b6000818152600183016020526040812054611a8d57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610627565b506000610627565b60006001600160e01b031982166380ac58cd60e01b1480611ac657506001600160e01b03198216635b5e139f60e01b145b80610627575061062782611fc5565b611ae0838383611fea565b6001600160a01b03831615611cca576001600160a01b038316600081815260136020908152604080832085845282528083208390559282526012905290812054611b2c90600190612ba7565b67ffffffffffffffff811115611b4457611b44612903565b604051908082528060200260200182016040528015611b6d578160200160208202803683370190505b5090506000805b6001600160a01b038616600090815260126020526040902054811015611c9c576001600160a01b0386166000908152601260205260409020805485919083908110611bc157611bc1612a88565b906000526020600020015414611c8a576001600160a01b0386166000908152601260205260409020805482908110611bfb57611bfb612a88565b9060005260206000200154838381518110611c1857611c18612a88565b6020908102919091018101919091526001600160a01b0387166000908152601382526040808220601290935281208054859392919085908110611c5d57611c5d612a88565b9060005260206000200154815260200190815260200160002081905550600182611c879190612a70565b91505b611c95600182612a70565b9050611b74565b506001600160a01b03851660009081526012602090815260409091208351611cc6928501906125ec565b5050505b6001600160a01b0382161561093f576001600160a01b03821660008181526012602090815260408083208054600181018255908452828420810186905593835260138252808320858452909152902055505050565b611d298282610f0d565b610b5757611d41816001600160a01b0316601461205c565b611d4c83602061205c565b604051602001611d5d929190612c3f565b60408051601f198184030181529082905262461bcd60e51b8252610761916004016126c7565b611d8d8282610f0d565b15610b575760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610f06836001600160a01b0384166121f8565b600d5460ff16610c0b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610761565b600d5460ff1615610c0b5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610761565b6000826000018281548110611ea557611ea5612a88565b9060005260206000200154905092915050565b60006001600160a01b0384163b15611fba57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611efc903390899088908890600401612cb4565b602060405180830381600087803b158015611f1657600080fd5b505af1925050508015611f46575060408051601f3d908101601f19168201909252611f4391810190612cf1565b60015b611fa0573d808015611f74576040519150601f19603f3d011682016040523d82523d6000602084013e611f79565b606091505b508051611f985760405162461bcd60e51b815260040161076190612bbe565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506112f6565b506001949350505050565b60006001600160e01b03198216635a05180f60e01b14806106275750610627826122eb565b611ff5838383612320565b600d5460ff161561093f5760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b6064820152608401610761565b6060600061206b836002612b2f565b612076906002612a70565b67ffffffffffffffff81111561208e5761208e612903565b6040519080825280601f01601f1916602001820160405280156120b8576020820181803683370190505b509050600360fc1b816000815181106120d3576120d3612a88565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061210257612102612a88565b60200101906001600160f81b031916908160001a9053506000612126846002612b2f565b612131906001612a70565b90505b60018111156121a9576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061216557612165612a88565b1a60f81b82828151811061217b5761217b612a88565b60200101906001600160f81b031916908160001a90535060049490941c936121a281612d0e565b9050612134565b508315610f065760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610761565b600081815260018301602052604081205480156122e157600061221c600183612ba7565b855490915060009061223090600190612ba7565b905081811461229557600086600001828154811061225057612250612a88565b906000526020600020015490508087600001848154811061227357612273612a88565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806122a6576122a6612d25565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610627565b6000915050610627565b60006001600160e01b03198216637965db0b60e01b148061062757506301ffc9a760e01b6001600160e01b0319831614610627565b6001600160a01b03831661237b5761237681600b80546000838152600c60205260408120829055600182018355919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90155565b61239e565b816001600160a01b0316836001600160a01b03161461239e5761239e83826123d8565b6001600160a01b0382166123b55761093f81612475565b826001600160a01b0316826001600160a01b03161461093f5761093f8282612524565b600060016123e584610dcc565b6123ef9190612ba7565b6000838152600a6020526040902054909150808214612442576001600160a01b03841660009081526009602090815260408083208584528252808320548484528184208190558352600a90915290208190555b506000918252600a602090815260408084208490556001600160a01b039094168352600981528383209183525290812055565b600b5460009061248790600190612ba7565b6000838152600c6020526040812054600b80549394509092849081106124af576124af612a88565b9060005260206000200154905080600b83815481106124d0576124d0612a88565b6000918252602080832090910192909255828152600c9091526040808220849055858252812055600b80548061250857612508612d25565b6001900381819060005260206000200160009055905550505050565b600061252f83610dcc565b6001600160a01b0390931660009081526009602090815260408083208684528252808320859055938252600a9052919091209190915550565b82805461257490612a1f565b90600052602060002090601f01602090048101928261259657600085556125dc565b82601f106125af5782800160ff198235161785556125dc565b828001600101855582156125dc579182015b828111156125dc5782358255916020019190600101906125c1565b506125e8929150612627565b5090565b8280548282559060005260206000209081019282156125dc579160200282015b828111156125dc57825182559160200191906001019061260c565b5b808211156125e85760008155600101612628565b6001600160e01b031981168114610b7b57600080fd5b60006020828403121561266457600080fd5b8135610f068161263c565b60005b8381101561268a578181015183820152602001612672565b83811115610fee5750506000910152565b600081518084526126b381602086016020860161266f565b601f01601f19169290920160200192915050565b602081526000610f06602083018461269b565b6000602082840312156126ec57600080fd5b5035919050565b80356001600160a01b038116811461270a57600080fd5b919050565b60008060006060848603121561272457600080fd5b61272d846126f3565b95602085013595506040909401359392505050565b6020808252825182820181905260009190848201906040850190845b8181101561277a5783518352928401929184019160010161275e565b50909695505050505050565b6000806040838503121561279957600080fd5b6127a2836126f3565b946020939093013593505050565b6000806000606084860312156127c557600080fd5b6127ce846126f3565b92506127dc602085016126f3565b9150604084013590509250925092565b600080604083850312156127ff57600080fd5b50508035926020909101359150565b6000806040838503121561282157600080fd5b82359150612831602084016126f3565b90509250929050565b60006020828403121561284c57600080fd5b610f06826126f3565b6000806020838503121561286857600080fd5b823567ffffffffffffffff8082111561288057600080fd5b818501915085601f83011261289457600080fd5b8135818111156128a357600080fd5b8660208285010111156128b557600080fd5b60209290920196919550909350505050565b600080604083850312156128da57600080fd5b6128e3836126f3565b9150602083013580151581146128f857600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561292f57600080fd5b612938856126f3565b9350612946602086016126f3565b925060408501359150606085013567ffffffffffffffff8082111561296a57600080fd5b818701915087601f83011261297e57600080fd5b81358181111561299057612990612903565b604051601f8201601f19908116603f011681019083821181831017156129b8576129b8612903565b816040528281528a60208487010111156129d157600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612a0857600080fd5b612a11836126f3565b9150612831602084016126f3565b600181811c90821680612a3357607f821691505b60208210811415612a5457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115612a8357612a83612a5a565b500190565b634e487b7160e01b600052603260045260246000fd5b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b60208082526023908201527f4974656d3a206d7573742068617665206d696e74657220726f6c6520746f206d6040820152621a5b9d60ea1b606082015260800190565b6000816000190483118215151615612b4957612b49612a5a565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612b7357612b73612b4e565b500490565b60008351612b8a81846020880161266f565b835190830190612b9e81836020880161266f565b01949350505050565b600082821015612bb957612bb9612a5a565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600019821415612c2457612c24612a5a565b5060010190565b600082612c3a57612c3a612b4e565b500690565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612c7781601785016020880161266f565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612ca881602884016020880161266f565b01602801949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612ce79083018461269b565b9695505050505050565b600060208284031215612d0357600080fd5b8151610f068161263c565b600081612d1d57612d1d612a5a565b506000190190565b634e487b7160e01b600052603160045260246000fdfe9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a2646970667358221220cac037a24357050b16c776b66177757daad81a2da51e0638706d4589aa6bcb5464736f6c634300080900330000000000000000000000000000000000000000000000000000000000000060000000000000000000000000d8e44325494cfda61b3dc08b080e1776970862bb00000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000003068747470733a2f2f6f796162756e2d67616d652d6170692e6865726f6b756170702e636f6d2f6974656d2f6d6574612f00000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061025e5760003560e01c806369e2f0fb116101465780639a4fc640116100c3578063ca15c87311610087578063ca15c87314610551578063d539139314610564578063d547741f14610579578063e63ab1e91461058c578063e985e9c5146105b3578063f2fde38b146105ef57600080fd5b80639a4fc640146104fd578063a217fddf14610510578063a22cb46514610518578063b88d4fde1461052b578063c87b56dd1461053e57600080fd5b80638456cb591161010a5780638456cb59146104b65780638da5cb5b146104be5780639010d07c146104cf57806391d14854146104e257806395d89b41146104f557600080fd5b806369e2f0fb1461044c5780636a6278421461045f5780636ab299751461047257806370a082311461049b578063715018a6146104ae57600080fd5b80632f2ff15d116101df57806342842e0e116101a357806342842e0e146103e257806342966c68146103f55780634f6ccce71461040857806355f804b31461041b5780635c975abb1461042e5780636352211e1461043957600080fd5b80632f2ff15d1461038e5780632f745c59146103a157806336568abe146103b45780633dd1eb61146103c75780633f4ba83a146103da57600080fd5b806318160ddd1161022657806318160ddd1461030057806323b872dd14610312578063248a9ca314610325578063248b71fc146103495780632a55205a1461035c57600080fd5b806301ffc9a71461026357806306fdde031461028b578063081812fc146102a0578063082a6569146102cb578063095ea7b3146102eb575b600080fd5b610276610271366004612652565b610602565b60405190151581526020015b60405180910390f35b61029361062d565b60405161028291906126c7565b6102b36102ae3660046126da565b6106bf565b6040516001600160a01b039091168152602001610282565b6102de6102d936600461270f565b6106e6565b6040516102829190612742565b6102fe6102f9366004612786565b61082e565b005b600b545b604051908152602001610282565b6102fe6103203660046127b0565b610944565b6103046103333660046126da565b6000908152600160208190526040909120015490565b6102fe610357366004612786565b610976565b61036f61036a3660046127ec565b6109e7565b604080516001600160a01b039093168352602083019190915201610282565b6102fe61039c36600461280e565b610a21565b6103046103af366004612786565b610a47565b6102fe6103c236600461280e565b610add565b6102fe6103d536600461283a565b610b5b565b6102fe610b7e565b6102fe6103f03660046127b0565b610c0d565b6102fe6104033660046126da565b610c28565b6103046104163660046126da565b610c56565b6102fe610429366004612855565b610ce9565b600d5460ff16610276565b6102b36104473660046126da565b610cfd565b6102fe61045a36600461283a565b610d5d565b6102fe61046d36600461283a565b610d7d565b61030461048036600461283a565b6001600160a01b031660009081526012602052604090205490565b6103046104a936600461283a565b610dcc565b6102fe610e52565b6102fe610e64565b6000546001600160a01b03166102b3565b6102b36104dd3660046127ec565b610eee565b6102766104f036600461280e565b610f0d565b610293610f38565b6102fe61050b3660046126da565b610f47565b610304600081565b6102fe6105263660046128c7565b610fb1565b6102fe610539366004612919565b610fbc565b61029361054c3660046126da565b610ff4565b61030461055f3660046126da565b61105a565b610304600080516020612d3c83398151915281565b6102fe61058736600461280e565b611071565b6103047f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6102766105c13660046129f5565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b6102fe6105fd36600461283a565b611097565b60006001600160e01b0319821663152a902d60e11b148061062757506106278261118d565b92915050565b60606003805461063c90612a1f565b80601f016020809104026020016040519081016040528092919081815260200182805461066890612a1f565b80156106b55780601f1061068a576101008083540402835291602001916106b5565b820191906000526020600020905b81548152906001019060200180831161069857829003601f168201915b5050505050905090565b60006106ca826111b2565b506000908152600760205260409020546001600160a01b031690565b6001600160a01b03831660009081526012602052604090205460609061070c8385612a70565b111561076a5760405162461bcd60e51b815260206004820152602260248201527f546174746f6f3a207573657220686176656e277420656e6f75676820746f6b656044820152616e7360f01b60648201526084015b60405180910390fd5b8167ffffffffffffffff81111561078357610783612903565b6040519080825280602002602001820160405280156107ac578160200160208202803683370190505b50905060005b82811015610826576001600160a01b03851660009081526012602052604090206107dc8286612a70565b815481106107ec576107ec612a88565b906000526020600020015482828151811061080957610809612a88565b602090810291909101015261081f600182612a70565b90506107b2565b509392505050565b600061083982610cfd565b9050806001600160a01b0316836001600160a01b031614156108a75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610761565b336001600160a01b03821614806108c357506108c381336105c1565b6109355760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610761565b61093f8383611211565b505050565b61094f335b8261127f565b61096b5760405162461bcd60e51b815260040161076190612a9e565b61093f8383836112fe565b61098e600080516020612d3c83398151915233610f0d565b6109aa5760405162461bcd60e51b815260040161076190612aec565b60005b8181101561093f576109c7836109c2600e5490565b6114a5565b6109d5600e80546001019055565b6109e0600182612a70565b90506109ad565b60105460115460009182916001600160a01b039091169061271090610a0c9086612b2f565b610a169190612b64565b915091509250929050565b60008281526001602081905260409091200154610a3d816115f3565b61093f83836115fd565b6000610a5283610dcc565b8210610ab45760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610761565b506001600160a01b03919091166000908152600960209081526040808320938352929052205490565b6001600160a01b0381163314610b4d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610761565b610b57828261161f565b5050565b610b63611641565b610b7b600080516020612d3c833981519152826115fd565b50565b610ba87f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610f0d565b610c035760405162461bcd60e51b815260206004820152602660248201527f4974656d3a206d75737420686176652070617573657220726f6c6520746f20756044820152656e706175736560d01b6064820152608401610761565b610c0b61169b565b565b61093f83838360405180602001604052806000815250610fbc565b610c3133610949565b610c4d5760405162461bcd60e51b815260040161076190612a9e565b610b7b816116ed565b6000610c61600b5490565b8210610cc45760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610761565b600b8281548110610cd757610cd7612a88565b90600052602060002001549050919050565b610cf1611641565b61093f600f8383612568565b6000818152600560205260408120546001600160a01b0316806106275760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610761565b610d65611641565b610b7b600080516020612d3c8339815191528261161f565b610d95600080516020612d3c83398151915233610f0d565b610db15760405162461bcd60e51b815260040161076190612aec565b610dbe816109c2600e5490565b610b7b600e80546001019055565b60006001600160a01b038216610e365760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610761565b506001600160a01b031660009081526006602052604090205490565b610e5a611641565b610c0b6000611794565b610e8e7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610f0d565b610ee65760405162461bcd60e51b8152602060048201526024808201527f4974656d3a206d75737420686176652070617573657220726f6c6520746f20706044820152636175736560e01b6064820152608401610761565b610c0b6117e4565b6000828152600260205260408120610f069083611821565b9392505050565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606004805461063c90612a1f565b610f4f611641565b6127108110610fac5760405162461bcd60e51b815260206004820152602360248201527f4974656d3a2070657263656e74206d757374206265206c657373207468616e206044820152620dac2f60eb1b6064820152608401610761565b601155565b610b5733838361182d565b610fc6338361127f565b610fe25760405162461bcd60e51b815260040161076190612a9e565b610fee848484846118fc565b50505050565b6060610fff826111b2565b600061100961192f565b905060008151116110295760405180602001604052806000815250610f06565b806110338461193e565b604051602001611044929190612b78565b6040516020818303038152906040529392505050565b600081815260026020526040812061062790611a3c565b6000828152600160208190526040909120015461108d816115f3565b61093f838361161f565b61109f611641565b6001600160a01b0381166111045760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610761565b610b7b81611794565b6111178282610f0d565b610b575760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b6000610f06836001600160a01b038416611a46565b60006001600160e01b0319821663780e9d6360e01b1480610627575061062782611a95565b6000818152600560205260409020546001600160a01b0316610b7b5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610761565b600081815260076020526040902080546001600160a01b0319166001600160a01b038416908117909155819061124682610cfd565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061128b83610cfd565b9050806001600160a01b0316846001600160a01b031614806112d257506001600160a01b0380821660009081526008602090815260408083209388168352929052205460ff165b806112f65750836001600160a01b03166112eb846106bf565b6001600160a01b0316145b949350505050565b826001600160a01b031661131182610cfd565b6001600160a01b0316146113755760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610761565b6001600160a01b0382166113d75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610761565b6113e2838383611ad5565b6113ed600082611211565b6001600160a01b0383166000908152600660205260408120805460019290611416908490612ba7565b90915550506001600160a01b0382166000908152600660205260408120805460019290611444908490612a70565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0382166114fb5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610761565b6000818152600560205260409020546001600160a01b0316156115605760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610761565b61156c60008383611ad5565b6001600160a01b0382166000908152600660205260408120805460019290611595908490612a70565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b610b7b8133611d1f565b611607828261110d565b600082815260026020526040902061093f9082611178565b6116298282611d83565b600082815260026020526040902061093f9082611dea565b6000546001600160a01b03163314610c0b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610761565b6116a3611dff565b600d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60006116f882610cfd565b905061170681600084611ad5565b611711600083611211565b6001600160a01b038116600090815260066020526040812080546001929061173a908490612ba7565b909155505060008281526005602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6117ec611e48565b600d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586116d03390565b6000610f068383611e8e565b816001600160a01b0316836001600160a01b0316141561188f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610761565b6001600160a01b03838116600081815260086020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6119078484846112fe565b61191384848484611eb8565b610fee5760405162461bcd60e51b815260040161076190612bbe565b6060600f805461063c90612a1f565b6060816119625750506040805180820190915260018152600360fc1b602082015290565b8160005b811561198c578061197681612c10565b91506119859050600a83612b64565b9150611966565b60008167ffffffffffffffff8111156119a7576119a7612903565b6040519080825280601f01601f1916602001820160405280156119d1576020820181803683370190505b5090505b84156112f6576119e6600183612ba7565b91506119f3600a86612c2b565b6119fe906030612a70565b60f81b818381518110611a1357611a13612a88565b60200101906001600160f81b031916908160001a905350611a35600a86612b64565b94506119d5565b6000610627825490565b6000818152600183016020526040812054611a8d57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610627565b506000610627565b60006001600160e01b031982166380ac58cd60e01b1480611ac657506001600160e01b03198216635b5e139f60e01b145b80610627575061062782611fc5565b611ae0838383611fea565b6001600160a01b03831615611cca576001600160a01b038316600081815260136020908152604080832085845282528083208390559282526012905290812054611b2c90600190612ba7565b67ffffffffffffffff811115611b4457611b44612903565b604051908082528060200260200182016040528015611b6d578160200160208202803683370190505b5090506000805b6001600160a01b038616600090815260126020526040902054811015611c9c576001600160a01b0386166000908152601260205260409020805485919083908110611bc157611bc1612a88565b906000526020600020015414611c8a576001600160a01b0386166000908152601260205260409020805482908110611bfb57611bfb612a88565b9060005260206000200154838381518110611c1857611c18612a88565b6020908102919091018101919091526001600160a01b0387166000908152601382526040808220601290935281208054859392919085908110611c5d57611c5d612a88565b9060005260206000200154815260200190815260200160002081905550600182611c879190612a70565b91505b611c95600182612a70565b9050611b74565b506001600160a01b03851660009081526012602090815260409091208351611cc6928501906125ec565b5050505b6001600160a01b0382161561093f576001600160a01b03821660008181526012602090815260408083208054600181018255908452828420810186905593835260138252808320858452909152902055505050565b611d298282610f0d565b610b5757611d41816001600160a01b0316601461205c565b611d4c83602061205c565b604051602001611d5d929190612c3f565b60408051601f198184030181529082905262461bcd60e51b8252610761916004016126c7565b611d8d8282610f0d565b15610b575760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610f06836001600160a01b0384166121f8565b600d5460ff16610c0b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610761565b600d5460ff1615610c0b5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610761565b6000826000018281548110611ea557611ea5612a88565b9060005260206000200154905092915050565b60006001600160a01b0384163b15611fba57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611efc903390899088908890600401612cb4565b602060405180830381600087803b158015611f1657600080fd5b505af1925050508015611f46575060408051601f3d908101601f19168201909252611f4391810190612cf1565b60015b611fa0573d808015611f74576040519150601f19603f3d011682016040523d82523d6000602084013e611f79565b606091505b508051611f985760405162461bcd60e51b815260040161076190612bbe565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506112f6565b506001949350505050565b60006001600160e01b03198216635a05180f60e01b14806106275750610627826122eb565b611ff5838383612320565b600d5460ff161561093f5760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b6064820152608401610761565b6060600061206b836002612b2f565b612076906002612a70565b67ffffffffffffffff81111561208e5761208e612903565b6040519080825280601f01601f1916602001820160405280156120b8576020820181803683370190505b509050600360fc1b816000815181106120d3576120d3612a88565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061210257612102612a88565b60200101906001600160f81b031916908160001a9053506000612126846002612b2f565b612131906001612a70565b90505b60018111156121a9576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061216557612165612a88565b1a60f81b82828151811061217b5761217b612a88565b60200101906001600160f81b031916908160001a90535060049490941c936121a281612d0e565b9050612134565b508315610f065760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610761565b600081815260018301602052604081205480156122e157600061221c600183612ba7565b855490915060009061223090600190612ba7565b905081811461229557600086600001828154811061225057612250612a88565b906000526020600020015490508087600001848154811061227357612273612a88565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806122a6576122a6612d25565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610627565b6000915050610627565b60006001600160e01b03198216637965db0b60e01b148061062757506301ffc9a760e01b6001600160e01b0319831614610627565b6001600160a01b03831661237b5761237681600b80546000838152600c60205260408120829055600182018355919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90155565b61239e565b816001600160a01b0316836001600160a01b03161461239e5761239e83826123d8565b6001600160a01b0382166123b55761093f81612475565b826001600160a01b0316826001600160a01b03161461093f5761093f8282612524565b600060016123e584610dcc565b6123ef9190612ba7565b6000838152600a6020526040902054909150808214612442576001600160a01b03841660009081526009602090815260408083208584528252808320548484528184208190558352600a90915290208190555b506000918252600a602090815260408084208490556001600160a01b039094168352600981528383209183525290812055565b600b5460009061248790600190612ba7565b6000838152600c6020526040812054600b80549394509092849081106124af576124af612a88565b9060005260206000200154905080600b83815481106124d0576124d0612a88565b6000918252602080832090910192909255828152600c9091526040808220849055858252812055600b80548061250857612508612d25565b6001900381819060005260206000200160009055905550505050565b600061252f83610dcc565b6001600160a01b0390931660009081526009602090815260408083208684528252808320859055938252600a9052919091209190915550565b82805461257490612a1f565b90600052602060002090601f01602090048101928261259657600085556125dc565b82601f106125af5782800160ff198235161785556125dc565b828001600101855582156125dc579182015b828111156125dc5782358255916020019190600101906125c1565b506125e8929150612627565b5090565b8280548282559060005260206000209081019282156125dc579160200282015b828111156125dc57825182559160200191906001019061260c565b5b808211156125e85760008155600101612628565b6001600160e01b031981168114610b7b57600080fd5b60006020828403121561266457600080fd5b8135610f068161263c565b60005b8381101561268a578181015183820152602001612672565b83811115610fee5750506000910152565b600081518084526126b381602086016020860161266f565b601f01601f19169290920160200192915050565b602081526000610f06602083018461269b565b6000602082840312156126ec57600080fd5b5035919050565b80356001600160a01b038116811461270a57600080fd5b919050565b60008060006060848603121561272457600080fd5b61272d846126f3565b95602085013595506040909401359392505050565b6020808252825182820181905260009190848201906040850190845b8181101561277a5783518352928401929184019160010161275e565b50909695505050505050565b6000806040838503121561279957600080fd5b6127a2836126f3565b946020939093013593505050565b6000806000606084860312156127c557600080fd5b6127ce846126f3565b92506127dc602085016126f3565b9150604084013590509250925092565b600080604083850312156127ff57600080fd5b50508035926020909101359150565b6000806040838503121561282157600080fd5b82359150612831602084016126f3565b90509250929050565b60006020828403121561284c57600080fd5b610f06826126f3565b6000806020838503121561286857600080fd5b823567ffffffffffffffff8082111561288057600080fd5b818501915085601f83011261289457600080fd5b8135818111156128a357600080fd5b8660208285010111156128b557600080fd5b60209290920196919550909350505050565b600080604083850312156128da57600080fd5b6128e3836126f3565b9150602083013580151581146128f857600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561292f57600080fd5b612938856126f3565b9350612946602086016126f3565b925060408501359150606085013567ffffffffffffffff8082111561296a57600080fd5b818701915087601f83011261297e57600080fd5b81358181111561299057612990612903565b604051601f8201601f19908116603f011681019083821181831017156129b8576129b8612903565b816040528281528a60208487010111156129d157600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612a0857600080fd5b612a11836126f3565b9150612831602084016126f3565b600181811c90821680612a3357607f821691505b60208210811415612a5457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115612a8357612a83612a5a565b500190565b634e487b7160e01b600052603260045260246000fd5b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b60208082526023908201527f4974656d3a206d7573742068617665206d696e74657220726f6c6520746f206d6040820152621a5b9d60ea1b606082015260800190565b6000816000190483118215151615612b4957612b49612a5a565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612b7357612b73612b4e565b500490565b60008351612b8a81846020880161266f565b835190830190612b9e81836020880161266f565b01949350505050565b600082821015612bb957612bb9612a5a565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600019821415612c2457612c24612a5a565b5060010190565b600082612c3a57612c3a612b4e565b500690565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612c7781601785016020880161266f565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612ca881602884016020880161266f565b01602801949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612ce79083018461269b565b9695505050505050565b600060208284031215612d0357600080fd5b8151610f068161263c565b600081612d1d57612d1d612a5a565b506000190190565b634e487b7160e01b600052603160045260246000fdfe9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a2646970667358221220cac037a24357050b16c776b66177757daad81a2da51e0638706d4589aa6bcb5464736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000d8e44325494cfda61b3dc08b080e1776970862bb00000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000003068747470733a2f2f6f796162756e2d67616d652d6170692e6865726f6b756170702e636f6d2f6974656d2f6d6574612f00000000000000000000000000000000
-----Decoded View---------------
Arg [0] : baseTokenURI (string): https://oyabun-game-api.herokuapp.com/item/meta/
Arg [1] : _royaltyReceipient (address): 0xd8e44325494CfDa61b3DC08B080e1776970862Bb
Arg [2] : _royaltyPercent (uint256): 500
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 000000000000000000000000d8e44325494cfda61b3dc08b080e1776970862bb
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000030
Arg [4] : 68747470733a2f2f6f796162756e2d67616d652d6170692e6865726f6b756170
Arg [5] : 702e636f6d2f6974656d2f6d6574612f00000000000000000000000000000000
Deployed Bytecode Sourcemap
82924:4924:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87549:296;;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;87549:296:0;;;;;;;;61680:100;;;:::i;:::-;;;;;;;:::i;63193:171::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1692:32:1;;;1674:51;;1662:2;1647:18;63193:171:0;1528:203:1;84691:380:0;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;62710:417::-;;;;;;:::i;:::-;;:::i;:::-;;77334:113;77422:10;:17;77334:113;;;3283:25:1;;;3271:2;3256:18;77334:113:0;3137:177:1;63893:336:0;;;;;;:::i;:::-;;:::i;46335:131::-;;;;;;:::i;:::-;46409:7;46436:12;;;:6;:12;;;;;;;;:22;;;46335:131;85447:312;;;;;;:::i;:::-;;:::i;87329:210::-;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;4464:32:1;;;4446:51;;4528:2;4513:18;;4506:34;;;;4419:18;87329:210:0;4272:274:1;46776:147:0;;;;;;:::i;:::-;;:::i;77002:256::-;;;;;;:::i;:::-;;:::i;47920:218::-;;;;;;:::i;:::-;;:::i;86083:108::-;;;;;;:::i;:::-;;:::i;85924:151::-;;;:::i;64300:185::-;;;;;;:::i;:::-;;:::i;75433:243::-;;;;;;:::i;:::-;;:::i;77524:233::-;;;;;;:::i;:::-;;:::i;84571:112::-;;;;;;:::i;:::-;;:::i;29387:86::-;29458:7;;;;29387:86;;61391:222;;;;;;:::i;:::-;;:::i;86199:110::-;;;;;;:::i;:::-;;:::i;85218:221::-;;;;;;:::i;:::-;;:::i;85079:131::-;;;;;;:::i;:::-;-1:-1:-1;;;;;85178:17:0;85142:14;85178:17;;;:11;:17;;;;;:24;;85079:131;61122:207;;;;;;:::i;:::-;;:::i;26897:103::-;;;:::i;85771:145::-;;;:::i;26249:87::-;26295:7;26322:6;-1:-1:-1;;;;;26322:6:0;26249:87;;51573:153;;;;;;:::i;:::-;;:::i;44795:147::-;;;;;;:::i;:::-;;:::i;61849:104::-;;;:::i;84253:192::-;;;;;;:::i;:::-;;:::i;43900:49::-;;43945:4;43900:49;;63436:155;;;;;;:::i;:::-;;:::i;64556:323::-;;;;;;:::i;:::-;;:::i;62024:281::-;;;;;;:::i;:::-;;:::i;51900:142::-;;;;;;:::i;:::-;;:::i;83109:62::-;;-1:-1:-1;;;;;;;;;;;83109:62:0;;47216:149;;;;;;:::i;:::-;;:::i;83178:62::-;;83216:24;83178:62;;63662:164;;;;;;:::i;:::-;-1:-1:-1;;;;;63783:25:0;;;63759:4;63783:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;63662:164;27155:201;;;;;;:::i;:::-;;:::i;87549:296::-;87730:4;-1:-1:-1;;;;;;87761:36:0;;-1:-1:-1;;;87761:36:0;;:76;;;87801:36;87825:11;87801:23;:36::i;:::-;87754:83;87549:296;-1:-1:-1;;87549:296:0:o;61680:100::-;61734:13;61767:5;61760:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61680:100;:::o;63193:171::-;63269:7;63289:23;63304:7;63289:14;:23::i;:::-;-1:-1:-1;63332:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;63332:24:0;;63193:171::o;84691:380::-;-1:-1:-1;;;;;84842:17:0;;;;;;:11;:17;;;;;:24;84780:23;;84824:14;84833:5;84824:6;:14;:::i;:::-;:42;;84816:89;;;;-1:-1:-1;;;84816:89:0;;8595:2:1;84816:89:0;;;8577:21:1;8634:2;8614:18;;;8607:30;8673:34;8653:18;;;8646:62;-1:-1:-1;;;8724:18:1;;;8717:32;8766:19;;84816:89:0;;;;;;;;;84941:5;84927:20;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;84927:20:0;;84918:29;;84962:9;84958:106;84981:5;84977:1;:9;84958:106;;;-1:-1:-1;;;;;85023:17:0;;;;;;:11;:17;;;;;85041:10;85050:1;85041:6;:10;:::i;:::-;85023:29;;;;;;;;:::i;:::-;;;;;;;;;85011:6;85018:1;85011:9;;;;;;;;:::i;:::-;;;;;;;;;;:41;84988:6;84993:1;84988:6;;:::i;:::-;;;84958:106;;;;84691:380;;;;;:::o;62710:417::-;62791:13;62807:23;62822:7;62807:14;:23::i;:::-;62791:39;;62855:5;-1:-1:-1;;;;;62849:11:0;:2;-1:-1:-1;;;;;62849:11:0;;;62841:57;;;;-1:-1:-1;;;62841:57:0;;9130:2:1;62841:57:0;;;9112:21:1;9169:2;9149:18;;;9142:30;9208:34;9188:18;;;9181:62;-1:-1:-1;;;9259:18:1;;;9252:31;9300:19;;62841:57:0;8928:397:1;62841:57:0;24880:10;-1:-1:-1;;;;;62933:21:0;;;;:62;;-1:-1:-1;62958:37:0;62975:5;24880:10;63662:164;:::i;62958:37::-;62911:174;;;;-1:-1:-1;;;62911:174:0;;9532:2:1;62911:174:0;;;9514:21:1;9571:2;9551:18;;;9544:30;9610:34;9590:18;;;9583:62;9681:32;9661:18;;;9654:60;9731:19;;62911:174:0;9330:426:1;62911:174:0;63098:21;63107:2;63111:7;63098:8;:21::i;:::-;62780:347;62710:417;;:::o;63893:336::-;64088:41;24880:10;64107:12;64121:7;64088:18;:41::i;:::-;64080:100;;;;-1:-1:-1;;;64080:100:0;;;;;;;:::i;:::-;64193:28;64203:4;64209:2;64213:7;64193:9;:28::i;85447:312::-;85522:34;-1:-1:-1;;;;;;;;;;;24880:10:0;44795:147;:::i;85522:34::-;85514:82;;;;-1:-1:-1;;;85514:82:0;;;;;;;:::i;:::-;85613:6;85609:143;85629:8;85625:1;:12;85609:143;;;85662:36;85668:2;85672:25;:15;21123:14;;21031:114;85672:25;85662:5;:36::i;:::-;85713:27;:15;21242:19;;21260:1;21242:19;;;21153:127;85713:27;85639:6;85644:1;85639:6;;:::i;:::-;;;85609:143;;87329:210;87471:17;;87503:14;;87411:16;;;;-1:-1:-1;;;;;87471:17:0;;;;83513:5;;87490:27;;:10;:27;:::i;:::-;:40;;;;:::i;:::-;87463:68;;;;87329:210;;;;;:::o;46776:147::-;46409:7;46436:12;;;:6;:12;;;;;;;;:22;;44391:16;44402:4;44391:10;:16::i;:::-;46890:25:::1;46901:4;46907:7;46890:10;:25::i;77002:256::-:0;77099:7;77135:23;77152:5;77135:16;:23::i;:::-;77127:5;:31;77119:87;;;;-1:-1:-1;;;77119:87:0;;11212:2:1;77119:87:0;;;11194:21:1;11251:2;11231:18;;;11224:30;11290:34;11270:18;;;11263:62;-1:-1:-1;;;11341:18:1;;;11334:41;11392:19;;77119:87:0;11010:407:1;77119:87:0;-1:-1:-1;;;;;;77224:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;77002:256::o;47920:218::-;-1:-1:-1;;;;;48016:23:0;;24880:10;48016:23;48008:83;;;;-1:-1:-1;;;48008:83:0;;11624:2:1;48008:83:0;;;11606:21:1;11663:2;11643:18;;;11636:30;11702:34;11682:18;;;11675:62;-1:-1:-1;;;11753:18:1;;;11746:45;11808:19;;48008:83:0;11422:411:1;48008:83:0;48104:26;48116:4;48122:7;48104:11;:26::i;:::-;47920:218;;:::o;86083:108::-;26135:13;:11;:13::i;:::-;86152:31:::1;-1:-1:-1::0;;;;;;;;;;;86176:6:0::1;86152:10;:31::i;:::-;86083:108:::0;:::o;85924:151::-;85969:34;83216:24;24880:10;44795:147;:::i;85969:34::-;85961:85;;;;-1:-1:-1;;;85961:85:0;;12040:2:1;85961:85:0;;;12022:21:1;12079:2;12059:18;;;12052:30;12118:34;12098:18;;;12091:62;-1:-1:-1;;;12169:18:1;;;12162:36;12215:19;;85961:85:0;11838:402:1;85961:85:0;86057:10;:8;:10::i;:::-;85924:151::o;64300:185::-;64438:39;64455:4;64461:2;64465:7;64438:39;;;;;;;;;;;;:16;:39::i;75433:243::-;75551:41;24880:10;75570:12;24800:98;75551:41;75543:100;;;;-1:-1:-1;;;75543:100:0;;;;;;;:::i;:::-;75654:14;75660:7;75654:5;:14::i;77524:233::-;77599:7;77635:30;77422:10;:17;;77334:113;77635:30;77627:5;:38;77619:95;;;;-1:-1:-1;;;77619:95:0;;12447:2:1;77619:95:0;;;12429:21:1;12486:2;12466:18;;;12459:30;12525:34;12505:18;;;12498:62;-1:-1:-1;;;12576:18:1;;;12569:42;12628:19;;77619:95:0;12245:408:1;77619:95:0;77732:10;77743:5;77732:17;;;;;;;;:::i;:::-;;;;;;;;;77725:24;;77524:233;;;:::o;84571:112::-;26135:13;:11;:13::i;:::-;84648:27:::1;:13;84664:11:::0;;84648:27:::1;:::i;61391:222::-:0;61463:7;61499:16;;;:7;:16;;;;;;-1:-1:-1;;;;;61499:16:0;61534:19;61526:56;;;;-1:-1:-1;;;61526:56:0;;12860:2:1;61526:56:0;;;12842:21:1;12899:2;12879:18;;;12872:30;-1:-1:-1;;;12918:18:1;;;12911:54;12982:18;;61526:56:0;12658:348:1;86199:110:0;26135:13;:11;:13::i;:::-;86269:32:::1;-1:-1:-1::0;;;;;;;;;;;86294:6:0::1;86269:11;:32::i;85218:221::-:0;85270:34;-1:-1:-1;;;;;;;;;;;24880:10:0;44795:147;:::i;85270:34::-;85262:82;;;;-1:-1:-1;;;85262:82:0;;;;;;;:::i;:::-;85357:36;85363:2;85367:25;:15;21123:14;;21031:114;85357:36;85404:27;:15;21242:19;;21260:1;21242:19;;;21153:127;61122:207;61194:7;-1:-1:-1;;;;;61222:19:0;;61214:73;;;;-1:-1:-1;;;61214:73:0;;13213:2:1;61214:73:0;;;13195:21:1;13252:2;13232:18;;;13225:30;13291:34;13271:18;;;13264:62;-1:-1:-1;;;13342:18:1;;;13335:39;13391:19;;61214:73:0;13011:405:1;61214:73:0;-1:-1:-1;;;;;;61305:16:0;;;;;:9;:16;;;;;;;61122:207::o;26897:103::-;26135:13;:11;:13::i;:::-;26962:30:::1;26989:1;26962:18;:30::i;85771:145::-:0;85814:34;83216:24;24880:10;44795:147;:::i;85814:34::-;85806:83;;;;-1:-1:-1;;;85806:83:0;;13623:2:1;85806:83:0;;;13605:21:1;13662:2;13642:18;;;13635:30;13701:34;13681:18;;;13674:62;-1:-1:-1;;;13752:18:1;;;13745:34;13796:19;;85806:83:0;13421:400:1;85806:83:0;85900:8;:6;:8::i;51573:153::-;51663:7;51690:18;;;:12;:18;;;;;:28;;51712:5;51690:21;:28::i;:::-;51683:35;51573:153;-1:-1:-1;;;51573:153:0:o;44795:147::-;44881:4;44905:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;44905:29:0;;;;;;;;;;;;;;;44795:147::o;61849:104::-;61905:13;61938:7;61931:14;;;;;:::i;84253:192::-;26135:13;:11;:13::i;:::-;83513:5:::1;84336:10;:23;84328:71;;;::::0;-1:-1:-1;;;84328:71:0;;14028:2:1;84328:71:0::1;::::0;::::1;14010:21:1::0;14067:2;14047:18;;;14040:30;14106:34;14086:18;;;14079:62;-1:-1:-1;;;14157:18:1;;;14150:33;14200:19;;84328:71:0::1;13826:399:1::0;84328:71:0::1;84410:14;:27:::0;84253:192::o;63436:155::-;63531:52;24880:10;63564:8;63574;63531:18;:52::i;64556:323::-;64730:41;24880:10;64763:7;64730:18;:41::i;:::-;64722:100;;;;-1:-1:-1;;;64722:100:0;;;;;;;:::i;:::-;64833:38;64847:4;64853:2;64857:7;64866:4;64833:13;:38::i;:::-;64556:323;;;;:::o;62024:281::-;62097:13;62123:23;62138:7;62123:14;:23::i;:::-;62159:21;62183:10;:8;:10::i;:::-;62159:34;;62235:1;62217:7;62211:21;:25;:86;;;;;;;;;;;;;;;;;62263:7;62272:18;:7;:16;:18::i;:::-;62246:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;62204:93;62024:281;-1:-1:-1;;;62024:281:0:o;51900:142::-;51980:7;52007:18;;;:12;:18;;;;;:27;;:25;:27::i;47216:149::-;46409:7;46436:12;;;:6;:12;;;;;;;;:22;;44391:16;44402:4;44391:10;:16::i;:::-;47331:26:::1;47343:4;47349:7;47331:11;:26::i;27155:201::-:0;26135:13;:11;:13::i;:::-;-1:-1:-1;;;;;27244:22:0;::::1;27236:73;;;::::0;-1:-1:-1;;;27236:73:0;;14907:2:1;27236:73:0::1;::::0;::::1;14889:21:1::0;14946:2;14926:18;;;14919:30;14985:34;14965:18;;;14958:62;-1:-1:-1;;;15036:18:1;;;15029:36;15082:19;;27236:73:0::1;14705:402:1::0;27236:73:0::1;27320:28;27339:8;27320:18;:28::i;49517:238::-:0;49601:22;49609:4;49615:7;49601;:22::i;:::-;49596:152;;49640:12;;;;49672:4;49640:12;;;;;;;;-1:-1:-1;;;;;49640:29:0;;;;;;;;;;:36;;-1:-1:-1;;49640:36:0;;;;;;;49696:40;;24880:10;;49640:12;;49696:40;;49640:12;49696:40;49517:238;;:::o;8296:152::-;8366:4;8390:50;8395:3;-1:-1:-1;;;;;8415:23:0;;8390:4;:50::i;76694:224::-;76796:4;-1:-1:-1;;;;;;76820:50:0;;-1:-1:-1;;;76820:50:0;;:90;;;76874:36;76898:11;76874:23;:36::i;71168:135::-;66451:4;66475:16;;;:7;:16;;;;;;-1:-1:-1;;;;;66475:16:0;71242:53;;;;-1:-1:-1;;;71242:53:0;;12860:2:1;71242:53:0;;;12842:21:1;12899:2;12879:18;;;12872:30;-1:-1:-1;;;12918:18:1;;;12911:54;12982:18;;71242:53:0;12658:348:1;70447:174:0;70522:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;70522:29:0;-1:-1:-1;;;;;70522:29:0;;;;;;;;:24;;70576:23;70522:24;70576:14;:23::i;:::-;-1:-1:-1;;;;;70567:46:0;;;;;;;;;;;70447:174;;:::o;66680:264::-;66773:4;66790:13;66806:23;66821:7;66806:14;:23::i;:::-;66790:39;;66859:5;-1:-1:-1;;;;;66848:16:0;:7;-1:-1:-1;;;;;66848:16:0;;:52;;;-1:-1:-1;;;;;;63783:25:0;;;63759:4;63783:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;66868:32;66848:87;;;;66928:7;-1:-1:-1;;;;;66904:31:0;:20;66916:7;66904:11;:20::i;:::-;-1:-1:-1;;;;;66904:31:0;;66848:87;66840:96;66680:264;-1:-1:-1;;;;66680:264:0:o;69703:625::-;69862:4;-1:-1:-1;;;;;69835:31:0;:23;69850:7;69835:14;:23::i;:::-;-1:-1:-1;;;;;69835:31:0;;69827:81;;;;-1:-1:-1;;;69827:81:0;;15314:2:1;69827:81:0;;;15296:21:1;15353:2;15333:18;;;15326:30;15392:34;15372:18;;;15365:62;-1:-1:-1;;;15443:18:1;;;15436:35;15488:19;;69827:81:0;15112:401:1;69827:81:0;-1:-1:-1;;;;;69927:16:0;;69919:65;;;;-1:-1:-1;;;69919:65:0;;15720:2:1;69919:65:0;;;15702:21:1;15759:2;15739:18;;;15732:30;15798:34;15778:18;;;15771:62;-1:-1:-1;;;15849:18:1;;;15842:34;15893:19;;69919:65:0;15518:400:1;69919:65:0;69997:39;70018:4;70024:2;70028:7;69997:20;:39::i;:::-;70101:29;70118:1;70122:7;70101:8;:29::i;:::-;-1:-1:-1;;;;;70143:15:0;;;;;;:9;:15;;;;;:20;;70162:1;;70143:15;:20;;70162:1;;70143:20;:::i;:::-;;;;-1:-1:-1;;;;;;;70174:13:0;;;;;;:9;:13;;;;;:18;;70191:1;;70174:13;:18;;70191:1;;70174:18;:::i;:::-;;;;-1:-1:-1;;70203:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;70203:21:0;-1:-1:-1;;;;;70203:21:0;;;;;;;;;70242:27;;70203:16;;70242:27;;;;;;;62780:347;62710:417;;:::o;68278:439::-;-1:-1:-1;;;;;68358:16:0;;68350:61;;;;-1:-1:-1;;;68350:61:0;;16255:2:1;68350:61:0;;;16237:21:1;;;16274:18;;;16267:30;16333:34;16313:18;;;16306:62;16385:18;;68350:61:0;16053:356:1;68350:61:0;66451:4;66475:16;;;:7;:16;;;;;;-1:-1:-1;;;;;66475:16:0;:30;68422:58;;;;-1:-1:-1;;;68422:58:0;;16616:2:1;68422:58:0;;;16598:21:1;16655:2;16635:18;;;16628:30;16694;16674:18;;;16667:58;16742:18;;68422:58:0;16414:352:1;68422:58:0;68493:45;68522:1;68526:2;68530:7;68493:20;:45::i;:::-;-1:-1:-1;;;;;68551:13:0;;;;;;:9;:13;;;;;:18;;68568:1;;68551:13;:18;;68568:1;;68551:18;:::i;:::-;;;;-1:-1:-1;;68580:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;68580:21:0;-1:-1:-1;;;;;68580:21:0;;;;;;;;68619:33;;68580:16;;;68619:33;;68580:16;;68619:33;47920:218;;:::o;45246:105::-;45313:30;45324:4;24880:10;45313;:30::i;52135:169::-;52223:31;52240:4;52246:7;52223:16;:31::i;:::-;52265:18;;;;:12;:18;;;;;:31;;52288:7;52265:22;:31::i;52398:174::-;52487:32;52505:4;52511:7;52487:17;:32::i;:::-;52530:18;;;;:12;:18;;;;;:34;;52556:7;52530:25;:34::i;26414:132::-;26295:7;26322:6;-1:-1:-1;;;;;26322:6:0;24880:10;26478:23;26470:68;;;;-1:-1:-1;;;26470:68:0;;16973:2:1;26470:68:0;;;16955:21:1;;;16992:18;;;16985:30;17051:34;17031:18;;;17024:62;17103:18;;26470:68:0;16771:356:1;30242:120:0;29251:16;:14;:16::i;:::-;30301:7:::1;:15:::0;;-1:-1:-1;;30301:15:0::1;::::0;;30332:22:::1;24880:10:::0;30341:12:::1;30332:22;::::0;-1:-1:-1;;;;;1692:32:1;;;1674:51;;1662:2;1647:18;30332:22:0::1;;;;;;;30242:120::o:0;68946:420::-;69006:13;69022:23;69037:7;69022:14;:23::i;:::-;69006:39;;69058:48;69079:5;69094:1;69098:7;69058:20;:48::i;:::-;69147:29;69164:1;69168:7;69147:8;:29::i;:::-;-1:-1:-1;;;;;69189:16:0;;;;;;:9;:16;;;;;:21;;69209:1;;69189:16;:21;;69209:1;;69189:21;:::i;:::-;;;;-1:-1:-1;;69228:16:0;;;;:7;:16;;;;;;69221:23;;-1:-1:-1;;;;;;69221:23:0;;;69262:36;69236:7;;69228:16;-1:-1:-1;;;;;69262:36:0;;;;;69228:16;;69262:36;47920:218;;:::o;27516:191::-;27590:16;27609:6;;-1:-1:-1;;;;;27626:17:0;;;-1:-1:-1;;;;;;27626:17:0;;;;;;27659:40;;27609:6;;;;;;;27659:40;;27590:16;27659:40;27579:128;27516:191;:::o;29983:118::-;28992:19;:17;:19::i;:::-;30043:7:::1;:14:::0;;-1:-1:-1;;30043:14:0::1;30053:4;30043:14;::::0;;30073:20:::1;30080:12;24880:10:::0;;24800:98;9592:158;9666:7;9717:22;9721:3;9733:5;9717:3;:22::i;70764:315::-;70919:8;-1:-1:-1;;;;;70910:17:0;:5;-1:-1:-1;;;;;70910:17:0;;;70902:55;;;;-1:-1:-1;;;70902:55:0;;17334:2:1;70902:55:0;;;17316:21:1;17373:2;17353:18;;;17346:30;17412:27;17392:18;;;17385:55;17457:18;;70902:55:0;17132:349:1;70902:55:0;-1:-1:-1;;;;;70968:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;70968:46:0;;;;;;;;;;71030:41;;540::1;;;71030::0;;513:18:1;71030:41:0;;;;;;;70764:315;;;:::o;65760:313::-;65916:28;65926:4;65932:2;65936:7;65916:9;:28::i;:::-;65963:47;65986:4;65992:2;65996:7;66005:4;65963:22;:47::i;:::-;65955:110;;;;-1:-1:-1;;;65955:110:0;;;;;;;:::i;84453:106::-;84505:13;84538;84531:20;;;;;:::i;22054:723::-;22110:13;22331:10;22327:53;;-1:-1:-1;;22358:10:0;;;;;;;;;;;;-1:-1:-1;;;22358:10:0;;;;;22054:723::o;22327:53::-;22405:5;22390:12;22446:78;22453:9;;22446:78;;22479:8;;;;:::i;:::-;;-1:-1:-1;22502:10:0;;-1:-1:-1;22510:2:0;22502:10;;:::i;:::-;;;22446:78;;;22534:19;22566:6;22556:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22556:17:0;;22534:39;;22584:154;22591:10;;22584:154;;22618:11;22628:1;22618:11;;:::i;:::-;;-1:-1:-1;22687:10:0;22695:2;22687:5;:10;:::i;:::-;22674:24;;:2;:24;:::i;:::-;22661:39;;22644:6;22651;22644:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;22644:56:0;;;;;;;;-1:-1:-1;22715:11:0;22724:2;22715:11;;:::i;:::-;;;22584:154;;9121:117;9184:7;9211:19;9219:3;4605:18;;4522:109;2211:414;2274:4;4404:19;;;:12;;;:19;;;;;;2291:327;;-1:-1:-1;2334:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;2517:18;;2495:19;;;:12;;;:19;;;;;;:40;;;;2550:11;;2291:327;-1:-1:-1;2601:5:0;2594:12;;60753:305;60855:4;-1:-1:-1;;;;;;60892:40:0;;-1:-1:-1;;;60892:40:0;;:105;;-1:-1:-1;;;;;;;60949:48:0;;-1:-1:-1;;;60949:48:0;60892:105;:158;;;;61014:36;61038:11;61014:23;:36::i;86317:1004::-;86495:45;86522:4;86528:2;86532:7;86495:26;:45::i;:::-;-1:-1:-1;;;;;86555:18:0;;;86551:579;;-1:-1:-1;;;;;86597:13:0;;;;;;:7;:13;;;;;;;;:22;;;;;;;;86590:29;;;86687:17;;;:11;:17;;;;;:24;:28;;86714:1;;86687:28;:::i;:::-;86673:43;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;86673:43:0;;86636:80;;86731:9;86764;86759:306;-1:-1:-1;;;;;86783:17:0;;;;;;:11;:17;;;;;:24;86779:28;;86759:306;;;-1:-1:-1;;;;;86840:17:0;;;;;;:11;:17;;;;;:20;;86864:7;;86840:17;86858:1;;86840:20;;;;;;:::i;:::-;;;;;;;;;:31;86836:214;;-1:-1:-1;;;;;86919:17:0;;;;;;:11;:17;;;;;:20;;86937:1;;86919:20;;;;;;:::i;:::-;;;;;;;;;86896:17;86914:1;86896:20;;;;;;;;:::i;:::-;;;;;;;;;;;:43;;;;-1:-1:-1;;;;;86962:13:0;;;;;;:7;:13;;;;;;86976:11;:17;;;;;:20;;87000:1;;86962:13;;86976:17;86994:1;;86976:20;;;;;;:::i;:::-;;;;;;;;;86962:35;;;;;;;;;;;:39;;;;87029:1;87024:6;;;;;:::i;:::-;;;86836:214;86809:6;86814:1;86809:6;;:::i;:::-;;;86759:306;;;-1:-1:-1;;;;;;87081:17:0;;;;;;:11;:17;;;;;;;;:37;;;;;;;;:::i;:::-;;86575:555;;86551:579;-1:-1:-1;;;;;87144:16:0;;;87140:174;;-1:-1:-1;;;;;87193:15:0;;87177:13;87193:15;;;:11;:15;;;;;;;;:22;;87230:29;;;;;;;;;;;;;;;;87274:11;;;:7;:11;;;;;:20;;;;;;;;:28;86317:1004;;;:::o;45641:505::-;45730:22;45738:4;45744:7;45730;:22::i;:::-;45725:414;;45918:41;45946:7;-1:-1:-1;;;;;45918:41:0;45956:2;45918:19;:41::i;:::-;46032:38;46060:4;46067:2;46032:19;:38::i;:::-;45823:270;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;45823:270:0;;;;;;;;;;-1:-1:-1;;;45769:358:0;;;;;;;:::i;49935:239::-;50019:22;50027:4;50033:7;50019;:22::i;:::-;50015:152;;;50090:5;50058:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;50058:29:0;;;;;;;;;;:37;;-1:-1:-1;;50058:37:0;;;50115:40;24880:10;;50058:12;;50115:40;;50090:5;50115:40;49935:239;;:::o;8624:158::-;8697:4;8721:53;8729:3;-1:-1:-1;;;;;8749:23:0;;8721:7;:53::i;29731:108::-;29458:7;;;;29790:41;;;;-1:-1:-1;;;29790:41:0;;19155:2:1;29790:41:0;;;19137:21:1;19194:2;19174:18;;;19167:30;-1:-1:-1;;;19213:18:1;;;19206:50;19273:18;;29790:41:0;18953:344:1;29546:108:0;29458:7;;;;29616:9;29608:38;;;;-1:-1:-1;;;29608:38:0;;19504:2:1;29608:38:0;;;19486:21:1;19543:2;19523:18;;;19516:30;-1:-1:-1;;;19562:18:1;;;19555:46;19618:18;;29608:38:0;19302:340:1;4985:120:0;5052:7;5079:3;:11;;5091:5;5079:18;;;;;;;;:::i;:::-;;;;;;;;;5072:25;;4985:120;;;;:::o;71867:853::-;72021:4;-1:-1:-1;;;;;72042:13:0;;31897:19;:23;72038:675;;72078:71;;-1:-1:-1;;;72078:71:0;;-1:-1:-1;;;;;72078:36:0;;;;;:71;;24880:10;;72129:4;;72135:7;;72144:4;;72078:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;72078:71:0;;;;;;;;-1:-1:-1;;72078:71:0;;;;;;;;;;;;:::i;:::-;;;72074:584;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;72319:13:0;;72315:328;;72362:60;;-1:-1:-1;;;72362:60:0;;;;;;;:::i;72315:328::-;72593:6;72587:13;72578:6;72574:2;72570:15;72563:38;72074:584;-1:-1:-1;;;;;;72200:51:0;-1:-1:-1;;;72200:51:0;;-1:-1:-1;72193:58:0;;72038:675;-1:-1:-1;72697:4:0;71867:853;;;;;;:::o;50760:214::-;50845:4;-1:-1:-1;;;;;;50869:57:0;;-1:-1:-1;;;50869:57:0;;:97;;;50930:36;50954:11;50930:23;:36::i;74613:275::-;74757:45;74784:4;74790:2;74794:7;74757:26;:45::i;:::-;29458:7;;;;74823:9;74815:65;;;;-1:-1:-1;;;74815:65:0;;20597:2:1;74815:65:0;;;20579:21:1;20636:2;20616:18;;;20609:30;20675:34;20655:18;;;20648:62;-1:-1:-1;;;20726:18:1;;;20719:41;20777:19;;74815:65:0;20395:407:1;23355:451:0;23430:13;23456:19;23488:10;23492:6;23488:1;:10;:::i;:::-;:14;;23501:1;23488:14;:::i;:::-;23478:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23478:25:0;;23456:47;;-1:-1:-1;;;23514:6:0;23521:1;23514:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;23514:15:0;;;;;;;;;-1:-1:-1;;;23540:6:0;23547:1;23540:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;23540:15:0;;;;;;;;-1:-1:-1;23571:9:0;23583:10;23587:6;23583:1;:10;:::i;:::-;:14;;23596:1;23583:14;:::i;:::-;23571:26;;23566:135;23603:1;23599;:5;23566:135;;;-1:-1:-1;;;23651:5:0;23659:3;23651:11;23638:25;;;;;;;:::i;:::-;;;;23626:6;23633:1;23626:9;;;;;;;;:::i;:::-;;;;:37;-1:-1:-1;;;;;23626:37:0;;;;;;;;-1:-1:-1;23688:1:0;23678:11;;;;;23606:3;;;:::i;:::-;;;23566:135;;;-1:-1:-1;23719:10:0;;23711:55;;;;-1:-1:-1;;;23711:55:0;;21150:2:1;23711:55:0;;;21132:21:1;;;21169:18;;;21162:30;21228:34;21208:18;;;21201:62;21280:18;;23711:55:0;20948:356:1;2801:1420:0;2867:4;3006:19;;;:12;;;:19;;;;;;3042:15;;3038:1176;;3417:21;3441:14;3454:1;3441:10;:14;:::i;:::-;3490:18;;3417:38;;-1:-1:-1;3470:17:0;;3490:22;;3511:1;;3490:22;:::i;:::-;3470:42;;3546:13;3533:9;:26;3529:405;;3580:17;3600:3;:11;;3612:9;3600:22;;;;;;;;:::i;:::-;;;;;;;;;3580:42;;3754:9;3725:3;:11;;3737:13;3725:26;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;3839:23;;;:12;;;:23;;;;;:36;;;3529:405;4015:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;4110:3;:12;;:19;4123:5;4110:19;;;;;;;;;;;4103:26;;;4153:4;4146:11;;;;;;;3038:1176;4197:5;4190:12;;;;;44499:204;44584:4;-1:-1:-1;;;;;;44608:47:0;;-1:-1:-1;;;44608:47:0;;:87;;-1:-1:-1;;;;;;;;;;41867:40:0;;;44659:36;41758:157;78370:589;-1:-1:-1;;;;;78576:18:0;;78572:187;;78611:40;78643:7;79786:10;:17;;79759:24;;;;:15;:24;;;;;:44;;;79814:24;;;;;;;;;;;;79682:164;78611:40;78572:187;;;78681:2;-1:-1:-1;;;;;78673:10:0;:4;-1:-1:-1;;;;;78673:10:0;;78669:90;;78700:47;78733:4;78739:7;78700:32;:47::i;:::-;-1:-1:-1;;;;;78773:16:0;;78769:183;;78806:45;78843:7;78806:36;:45::i;78769:183::-;78879:4;-1:-1:-1;;;;;78873:10:0;:2;-1:-1:-1;;;;;78873:10:0;;78869:83;;78900:40;78928:2;78932:7;78900:27;:40::i;80473:988::-;80739:22;80789:1;80764:22;80781:4;80764:16;:22::i;:::-;:26;;;;:::i;:::-;80801:18;80822:26;;;:17;:26;;;;;;80739:51;;-1:-1:-1;80955:28:0;;;80951:328;;-1:-1:-1;;;;;81022:18:0;;81000:19;81022:18;;;:12;:18;;;;;;;;:34;;;;;;;;;81073:30;;;;;;:44;;;81190:30;;:17;:30;;;;;:43;;;80951:328;-1:-1:-1;81375:26:0;;;;:17;:26;;;;;;;;81368:33;;;-1:-1:-1;;;;;81419:18:0;;;;;:12;:18;;;;;:34;;;;;;;81412:41;80473:988::o;81756:1079::-;82034:10;:17;82009:22;;82034:21;;82054:1;;82034:21;:::i;:::-;82066:18;82087:24;;;:15;:24;;;;;;82460:10;:26;;82009:46;;-1:-1:-1;82087:24:0;;82009:46;;82460:26;;;;;;:::i;:::-;;;;;;;;;82438:48;;82524:11;82499:10;82510;82499:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;82604:28;;;:15;:28;;;;;;;:41;;;82776:24;;;;;82769:31;82811:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;81827:1008;;;81756:1079;:::o;79260:221::-;79345:14;79362:20;79379:2;79362:16;:20::i;:::-;-1:-1:-1;;;;;79393:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;79438:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;79260:221:0:o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:131:1;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:258::-;664:1;674:113;688:6;685:1;682:13;674:113;;;764:11;;;758:18;745:11;;;738:39;710:2;703:10;674:113;;;805:6;802:1;799:13;796:48;;;-1:-1:-1;;840:1:1;822:16;;815:27;592:258::o;855:::-;897:3;935:5;929:12;962:6;957:3;950:19;978:63;1034:6;1027:4;1022:3;1018:14;1011:4;1004:5;1000:16;978:63;:::i;:::-;1095:2;1074:15;-1:-1:-1;;1070:29:1;1061:39;;;;1102:4;1057:50;;855:258;-1:-1:-1;;855:258:1:o;1118:220::-;1267:2;1256:9;1249:21;1230:4;1287:45;1328:2;1317:9;1313:18;1305:6;1287:45;:::i;1343:180::-;1402:6;1455:2;1443:9;1434:7;1430:23;1426:32;1423:52;;;1471:1;1468;1461:12;1423:52;-1:-1:-1;1494:23:1;;1343:180;-1:-1:-1;1343:180:1:o;1736:173::-;1804:20;;-1:-1:-1;;;;;1853:31:1;;1843:42;;1833:70;;1899:1;1896;1889:12;1833:70;1736:173;;;:::o;1914:322::-;1991:6;1999;2007;2060:2;2048:9;2039:7;2035:23;2031:32;2028:52;;;2076:1;2073;2066:12;2028:52;2099:29;2118:9;2099:29;:::i;:::-;2089:39;2175:2;2160:18;;2147:32;;-1:-1:-1;2226:2:1;2211:18;;;2198:32;;1914:322;-1:-1:-1;;;1914:322:1:o;2241:632::-;2412:2;2464:21;;;2534:13;;2437:18;;;2556:22;;;2383:4;;2412:2;2635:15;;;;2609:2;2594:18;;;2383:4;2678:169;2692:6;2689:1;2686:13;2678:169;;;2753:13;;2741:26;;2822:15;;;;2787:12;;;;2714:1;2707:9;2678:169;;;-1:-1:-1;2864:3:1;;2241:632;-1:-1:-1;;;;;;2241:632:1:o;2878:254::-;2946:6;2954;3007:2;2995:9;2986:7;2982:23;2978:32;2975:52;;;3023:1;3020;3013:12;2975:52;3046:29;3065:9;3046:29;:::i;:::-;3036:39;3122:2;3107:18;;;;3094:32;;-1:-1:-1;;;2878:254:1:o;3319:328::-;3396:6;3404;3412;3465:2;3453:9;3444:7;3440:23;3436:32;3433:52;;;3481:1;3478;3471:12;3433:52;3504:29;3523:9;3504:29;:::i;:::-;3494:39;;3552:38;3586:2;3575:9;3571:18;3552:38;:::i;:::-;3542:48;;3637:2;3626:9;3622:18;3609:32;3599:42;;3319:328;;;;;:::o;4019:248::-;4087:6;4095;4148:2;4136:9;4127:7;4123:23;4119:32;4116:52;;;4164:1;4161;4154:12;4116:52;-1:-1:-1;;4187:23:1;;;4257:2;4242:18;;;4229:32;;-1:-1:-1;4019:248:1:o;4551:254::-;4619:6;4627;4680:2;4668:9;4659:7;4655:23;4651:32;4648:52;;;4696:1;4693;4686:12;4648:52;4732:9;4719:23;4709:33;;4761:38;4795:2;4784:9;4780:18;4761:38;:::i;:::-;4751:48;;4551:254;;;;;:::o;4810:186::-;4869:6;4922:2;4910:9;4901:7;4897:23;4893:32;4890:52;;;4938:1;4935;4928:12;4890:52;4961:29;4980:9;4961:29;:::i;5001:592::-;5072:6;5080;5133:2;5121:9;5112:7;5108:23;5104:32;5101:52;;;5149:1;5146;5139:12;5101:52;5189:9;5176:23;5218:18;5259:2;5251:6;5248:14;5245:34;;;5275:1;5272;5265:12;5245:34;5313:6;5302:9;5298:22;5288:32;;5358:7;5351:4;5347:2;5343:13;5339:27;5329:55;;5380:1;5377;5370:12;5329:55;5420:2;5407:16;5446:2;5438:6;5435:14;5432:34;;;5462:1;5459;5452:12;5432:34;5507:7;5502:2;5493:6;5489:2;5485:15;5481:24;5478:37;5475:57;;;5528:1;5525;5518:12;5475:57;5559:2;5551:11;;;;;5581:6;;-1:-1:-1;5001:592:1;;-1:-1:-1;;;;5001:592:1:o;5851:347::-;5916:6;5924;5977:2;5965:9;5956:7;5952:23;5948:32;5945:52;;;5993:1;5990;5983:12;5945:52;6016:29;6035:9;6016:29;:::i;:::-;6006:39;;6095:2;6084:9;6080:18;6067:32;6142:5;6135:13;6128:21;6121:5;6118:32;6108:60;;6164:1;6161;6154:12;6108:60;6187:5;6177:15;;;5851:347;;;;;:::o;6203:127::-;6264:10;6259:3;6255:20;6252:1;6245:31;6295:4;6292:1;6285:15;6319:4;6316:1;6309:15;6335:1138;6430:6;6438;6446;6454;6507:3;6495:9;6486:7;6482:23;6478:33;6475:53;;;6524:1;6521;6514:12;6475:53;6547:29;6566:9;6547:29;:::i;:::-;6537:39;;6595:38;6629:2;6618:9;6614:18;6595:38;:::i;:::-;6585:48;;6680:2;6669:9;6665:18;6652:32;6642:42;;6735:2;6724:9;6720:18;6707:32;6758:18;6799:2;6791:6;6788:14;6785:34;;;6815:1;6812;6805:12;6785:34;6853:6;6842:9;6838:22;6828:32;;6898:7;6891:4;6887:2;6883:13;6879:27;6869:55;;6920:1;6917;6910:12;6869:55;6956:2;6943:16;6978:2;6974;6971:10;6968:36;;;6984:18;;:::i;:::-;7059:2;7053:9;7027:2;7113:13;;-1:-1:-1;;7109:22:1;;;7133:2;7105:31;7101:40;7089:53;;;7157:18;;;7177:22;;;7154:46;7151:72;;;7203:18;;:::i;:::-;7243:10;7239:2;7232:22;7278:2;7270:6;7263:18;7318:7;7313:2;7308;7304;7300:11;7296:20;7293:33;7290:53;;;7339:1;7336;7329:12;7290:53;7395:2;7390;7386;7382:11;7377:2;7369:6;7365:15;7352:46;7440:1;7435:2;7430;7422:6;7418:15;7414:24;7407:35;7461:6;7451:16;;;;;;;6335:1138;;;;;;;:::o;7478:260::-;7546:6;7554;7607:2;7595:9;7586:7;7582:23;7578:32;7575:52;;;7623:1;7620;7613:12;7575:52;7646:29;7665:9;7646:29;:::i;:::-;7636:39;;7694:38;7728:2;7717:9;7713:18;7694:38;:::i;7743:380::-;7822:1;7818:12;;;;7865;;;7886:61;;7940:4;7932:6;7928:17;7918:27;;7886:61;7993:2;7985:6;7982:14;7962:18;7959:38;7956:161;;;8039:10;8034:3;8030:20;8027:1;8020:31;8074:4;8071:1;8064:15;8102:4;8099:1;8092:15;7956:161;;7743:380;;;:::o;8128:127::-;8189:10;8184:3;8180:20;8177:1;8170:31;8220:4;8217:1;8210:15;8244:4;8241:1;8234:15;8260:128;8300:3;8331:1;8327:6;8324:1;8321:13;8318:39;;;8337:18;;:::i;:::-;-1:-1:-1;8373:9:1;;8260:128::o;8796:127::-;8857:10;8852:3;8848:20;8845:1;8838:31;8888:4;8885:1;8878:15;8912:4;8909:1;8902:15;9761:410;9963:2;9945:21;;;10002:2;9982:18;;;9975:30;10041:34;10036:2;10021:18;;10014:62;-1:-1:-1;;;10107:2:1;10092:18;;10085:44;10161:3;10146:19;;9761:410::o;10176:399::-;10378:2;10360:21;;;10417:2;10397:18;;;10390:30;10456:34;10451:2;10436:18;;10429:62;-1:-1:-1;;;10522:2:1;10507:18;;10500:33;10565:3;10550:19;;10176:399::o;10580:168::-;10620:7;10686:1;10682;10678:6;10674:14;10671:1;10668:21;10663:1;10656:9;10649:17;10645:45;10642:71;;;10693:18;;:::i;:::-;-1:-1:-1;10733:9:1;;10580:168::o;10753:127::-;10814:10;10809:3;10805:20;10802:1;10795:31;10845:4;10842:1;10835:15;10869:4;10866:1;10859:15;10885:120;10925:1;10951;10941:35;;10956:18;;:::i;:::-;-1:-1:-1;10990:9:1;;10885:120::o;14230:470::-;14409:3;14447:6;14441:13;14463:53;14509:6;14504:3;14497:4;14489:6;14485:17;14463:53;:::i;:::-;14579:13;;14538:16;;;;14601:57;14579:13;14538:16;14635:4;14623:17;;14601:57;:::i;:::-;14674:20;;14230:470;-1:-1:-1;;;;14230:470:1:o;15923:125::-;15963:4;15991:1;15988;15985:8;15982:34;;;15996:18;;:::i;:::-;-1:-1:-1;16033:9:1;;15923:125::o;17486:414::-;17688:2;17670:21;;;17727:2;17707:18;;;17700:30;17766:34;17761:2;17746:18;;17739:62;-1:-1:-1;;;17832:2:1;17817:18;;17810:48;17890:3;17875:19;;17486:414::o;17905:135::-;17944:3;-1:-1:-1;;17965:17:1;;17962:43;;;17985:18;;:::i;:::-;-1:-1:-1;18032:1:1;18021:13;;17905:135::o;18045:112::-;18077:1;18103;18093:35;;18108:18;;:::i;:::-;-1:-1:-1;18142:9:1;;18045:112::o;18162:786::-;18573:25;18568:3;18561:38;18543:3;18628:6;18622:13;18644:62;18699:6;18694:2;18689:3;18685:12;18678:4;18670:6;18666:17;18644:62;:::i;:::-;-1:-1:-1;;;18765:2:1;18725:16;;;18757:11;;;18750:40;18815:13;;18837:63;18815:13;18886:2;18878:11;;18871:4;18859:17;;18837:63;:::i;:::-;18920:17;18939:2;18916:26;;18162:786;-1:-1:-1;;;;18162:786:1:o;19647:489::-;-1:-1:-1;;;;;19916:15:1;;;19898:34;;19968:15;;19963:2;19948:18;;19941:43;20015:2;20000:18;;19993:34;;;20063:3;20058:2;20043:18;;20036:31;;;19841:4;;20084:46;;20110:19;;20102:6;20084:46;:::i;:::-;20076:54;19647:489;-1:-1:-1;;;;;;19647:489:1:o;20141:249::-;20210:6;20263:2;20251:9;20242:7;20238:23;20234:32;20231:52;;;20279:1;20276;20269:12;20231:52;20311:9;20305:16;20330:30;20354:5;20330:30;:::i;20807:136::-;20846:3;20874:5;20864:39;;20883:18;;:::i;:::-;-1:-1:-1;;;20919:18:1;;20807:136::o;21309:127::-;21370:10;21365:3;21361:20;21358:1;21351:31;21401:4;21398:1;21391:15;21425:4;21422:1;21415:15
Swarm Source
ipfs://cac037a24357050b16c776b66177757daad81a2da51e0638706d4589aa6bcb54
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in POL
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.