More Info
Private Name Tags
ContractCreator
TokenTracker
Multichain Info
No addresses found
Latest 25 from a total of 6,045 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 5288555 | 301 days ago | IN | 0 ETH | 0.00000046 | ||||
Set Approval For... | 5286634 | 301 days ago | IN | 0 ETH | 0.00000032 | ||||
Set Approval For... | 5286621 | 301 days ago | IN | 0 ETH | 0.00000025 | ||||
Set Approval For... | 5286612 | 301 days ago | IN | 0 ETH | 0.00000025 | ||||
Set Approval For... | 5285810 | 301 days ago | IN | 0 ETH | 0.00000022 | ||||
Set Approval For... | 5273465 | 301 days ago | IN | 0 ETH | 0.00000091 | ||||
Set Approval For... | 5259457 | 301 days ago | IN | 0 ETH | 0.00000111 | ||||
Set Approval For... | 5258149 | 301 days ago | IN | 0 ETH | 0.00000118 | ||||
Set Approval For... | 5257703 | 301 days ago | IN | 0 ETH | 0.00000064 | ||||
Set Approval For... | 5255199 | 301 days ago | IN | 0 ETH | 0.00000115 | ||||
Set Approval For... | 5255154 | 301 days ago | IN | 0 ETH | 0.00000118 | ||||
Set Approval For... | 5252762 | 301 days ago | IN | 0 ETH | 0.00000161 | ||||
Set Approval For... | 5251364 | 301 days ago | IN | 0 ETH | 0.00000049 | ||||
Set Approval For... | 5249838 | 301 days ago | IN | 0 ETH | 0.00000058 | ||||
Set Approval For... | 5249835 | 301 days ago | IN | 0 ETH | 0.00000057 | ||||
Set Approval For... | 5249815 | 301 days ago | IN | 0 ETH | 0.00000055 | ||||
Set Approval For... | 5248315 | 301 days ago | IN | 0 ETH | 0.00000091 | ||||
Set Approval For... | 5247448 | 302 days ago | IN | 0 ETH | 0.00000043 | ||||
Set Approval For... | 5247447 | 302 days ago | IN | 0 ETH | 0.00000043 | ||||
Set Approval For... | 5245972 | 302 days ago | IN | 0 ETH | 0.00000046 | ||||
Set Approval For... | 5242862 | 302 days ago | IN | 0 ETH | 0.00000046 | ||||
Set Approval For... | 5242334 | 302 days ago | IN | 0 ETH | 0.0000005 | ||||
Set Approval For... | 5241259 | 302 days ago | IN | 0 ETH | 0.00000047 | ||||
Set Approval For... | 5239907 | 302 days ago | IN | 0 ETH | 0.00000051 | ||||
Set Approval For... | 5239357 | 302 days ago | IN | 0 ETH | 0.0000005 |
Loading...
Loading
Contract Name:
GenesisCharacter
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity)
/** *Submitted for verification at blastscan.io on 2024-03-05 */ // SPDX-License-Identifier: MIT pragma solidity 0.8.20; // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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 { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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); } } // OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol) /** * @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; /** * @dev Unauthorized reentrant call. */ error ReentrancyGuardReentrantCall(); constructor() { _status = NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be NOT_ENTERED if (_status == ENTERED) { revert ReentrancyGuardReentrantCall(); } // Any calls to nonReentrant after this point will fail _status = ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == ENTERED; } } // OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol) // OpenZeppelin Contracts (last updated v5.0.0) (access/IAccessControl.sol) /** * @dev External interface of AccessControl declared to support ERC-165 detection. */ interface IAccessControl { /** * @dev The `account` is missing a role. */ error AccessControlUnauthorizedAccount(address account, bytes32 neededRole); /** * @dev The caller of a function is not the expected one. * * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}. */ error AccessControlBadConfirmation(); /** * @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. */ 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 `callerConfirmation`. */ function renounceRole(bytes32 role, address callerConfirmation) external; } // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol) // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) /** * @dev Interface of the ERC-165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[ERC]. * * 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[ERC 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); } /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC-165 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); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } } /** * @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: * * ```solidity * 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}: * * ```solidity * 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. We recommend using {AccessControlDefaultAdminRules} * to enforce additional security measures for this role. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address account => bool) hasRole; bytes32 adminRole; } mapping(bytes32 role => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with an {AccessControlUnauthorizedAccount} error including the required role. */ 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 returns (bool) { return _roles[role].hasRole[account]; } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()` * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier. */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account` * is missing `role`. */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert AccessControlUnauthorizedAccount(account, role); } } /** * @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 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 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 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 `callerConfirmation`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address callerConfirmation) public virtual { if (callerConfirmation != _msgSender()) { revert AccessControlBadConfirmation(); } _revokeRole(role, callerConfirmation); } /** * @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 Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual returns (bool) { if (!hasRole(role, account)) { _roles[role].hasRole[account] = true; emit RoleGranted(role, account, _msgSender()); return true; } else { return false; } } /** * @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual returns (bool) { if (hasRole(role, account)) { _roles[role].hasRole[account] = false; emit RoleRevoked(role, account, _msgSender()); return true; } else { return false; } } } // OpenZeppelin Contracts (last updated v5.0.0) (access/extensions/AccessControlEnumerable.sol) // OpenZeppelin Contracts (last updated v5.0.0) (access/extensions/IAccessControlEnumerable.sol) /** * @dev External interface of AccessControlEnumerable declared to support ERC-165 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); } // OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol) // This file was procedurally generated from scripts/generate/templates/EnumerableSet.js. /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ```solidity * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure * unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an * array of EnumerableSet. * ==== */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position is the index of the value in the `values` array plus 1. // Position 0 is used to mean a value is not in the set. mapping(bytes32 value => uint256) _positions; } /** * @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._positions[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 cache the value's position to prevent multiple reads from the same storage slot uint256 position = set._positions[value]; if (position != 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 valueIndex = position - 1; uint256 lastIndex = set._values.length - 1; if (valueIndex != lastIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the lastValue to the index where the value to delete is set._values[valueIndex] = lastValue; // Update the tracked position of the lastValue (that was just moved) set._positions[lastValue] = position; } // Delete the slot where the moved value was stored set._values.pop(); // Delete the tracked position for the deleted slot delete set._positions[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._positions[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { bytes32[] memory store = _values(set._inner); bytes32[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values in the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } } /** * @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 role => 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 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 returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {AccessControl-_grantRole} to track enumerable memberships */ function _grantRole(bytes32 role, address account) internal virtual override returns (bool) { bool granted = super._grantRole(role, account); if (granted) { _roleMembers[role].add(account); } return granted; } /** * @dev Overload {AccessControl-_revokeRole} to track enumerable memberships */ function _revokeRole(bytes32 role, address account) internal virtual override returns (bool) { bool revoked = super._revokeRole(role, account); if (revoked) { _roleMembers[role].remove(account); } return revoked; } } // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/ERC721.sol) // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol) /** * @dev Required interface of an ERC-721 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 ERC-721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or * {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the address zero. * * 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); } // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol) /** * @title ERC-721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC-721 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); } // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol) /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol) // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an success flag (no overflow). */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an success flag (no overflow). */ function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an success flag (no overflow). */ function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a success flag (no division by zero). */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero). */ function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // The following calculation ensures accurate ceiling division without overflow. // Since a is non-zero, (a - 1) / b will not overflow. // The largest possible result occurs when (a - 1) / b is type(uint256).max, // but the largest value we can obtain is type(uint256).max - 1, which happens // when a = type(uint256).max and b = 1. unchecked { return a == 0 ? 0 : (a - 1) / b + 1; } } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or * denominator == 0. * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by * Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. // Always >= 1. See https://cs.stackexchange.com/q/138556/92363. uint256 twos = denominator & (0 - denominator); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also // works in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded * towards zero. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } } // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol) /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } } /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { uint256 localValue = value; 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_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal * representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } } // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) /** * @dev Standard ERC-20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC-721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC-1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC-721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors { using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; mapping(uint256 tokenId => address) private _owners; mapping(address owner => uint256) private _balances; mapping(uint256 tokenId => address) private _tokenApprovals; mapping(address owner => mapping(address operator => 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 returns (uint256) { if (owner == address(0)) { revert ERC721InvalidOwner(address(0)); } return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual returns (address) { return _requireOwned(tokenId); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual returns (string memory) { _requireOwned(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string.concat(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 { _approve(to, tokenId, _msgSender()); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual returns (address) { _requireOwned(tokenId); return _getApproved(tokenId); } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } // Setting an "auth" arguments enables the `_isAuthorized` check which verifies that the token exists // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here. address previousOwner = _update(to, tokenId, _msgSender()); if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual { transferFrom(from, to, tokenId); _checkOnERC721Received(from, to, tokenId, data); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist * * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the * core ERC-721 logic MUST be matched with the use of {_increaseBalance} to keep balances * consistent with ownership. The invariant to preserve is that for any address `a` the value returned by * `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`. */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted. */ function _getApproved(uint256 tokenId) internal view virtual returns (address) { return _tokenApprovals[tokenId]; } /** * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in * particular (ignoring whether it is owned by `owner`). * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) { return spender != address(0) && (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender); } /** * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner. * Reverts if `spender` does not have approval from the provided `owner` for the given token or for all its assets * the `spender` for the specific `tokenId`. * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual { if (!_isAuthorized(owner, spender, tokenId)) { if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } else { revert ERC721InsufficientApproval(spender, tokenId); } } } /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that * a uint256 would ever overflow from increments when these increments are bounded to uint128 values. * * WARNING: Increasing an account's balance using this function tends to be paired with an override of the * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership * remain consistent with one another. */ function _increaseBalance(address account, uint128 value) internal virtual { unchecked { _balances[account] += value; } } /** * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update. * * The `auth` argument is optional. If the value passed is non 0, then this function will check that * `auth` is either the owner of the token, or approved to operate on the token (by the owner). * * Emits a {Transfer} event. * * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}. */ function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) { address from = _ownerOf(tokenId); // Perform (optional) operator check if (auth != address(0)) { _checkAuthorized(from, auth, tokenId); } // Execute the update if (from != address(0)) { // Clear approval. No need to re-authorize or emit the Approval event _approve(address(0), tokenId, address(0), false); unchecked { _balances[from] -= 1; } } if (to != address(0)) { unchecked { _balances[to] += 1; } } _owners[tokenId] = to; emit Transfer(from, to, tokenId); return from; } /** * @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 { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner != address(0)) { revert ERC721InvalidSender(address(0)); } } /** * @dev Mints `tokenId`, transfers it to `to` and checks for `to` acceptance. * * 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 { _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); _checkOnERC721Received(address(0), to, tokenId, data); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal { address previousOwner = _update(address(0), tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(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 { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(tokenId); } else if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking that contract recipients * are aware of the ERC-721 standard 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 like {safeTransferFrom} in the sense that it invokes * {IERC721Receiver-onERC721Received} on the receiver, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `tokenId` token must exist and be owned by `from`. * - `to` cannot be the zero address. * - `from` cannot be the zero address. * - 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) internal { _safeTransfer(from, to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual { _transfer(from, to, tokenId); _checkOnERC721Received(from, to, tokenId, data); } /** * @dev Approve `to` to operate on `tokenId` * * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is * either the owner of the token, or approved to operate on all tokens held by this owner. * * Emits an {Approval} event. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address to, uint256 tokenId, address auth) internal { _approve(to, tokenId, auth, true); } /** * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not * emitted in the context of transfers. */ function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual { // Avoid reading the owner unless necessary if (emitEvent || auth != address(0)) { address owner = _requireOwned(tokenId); // We do not use _isAuthorized because single-token approvals should not be able to call approve if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) { revert ERC721InvalidApprover(auth); } if (emitEvent) { emit Approval(owner, to, tokenId); } } _tokenApprovals[tokenId] = to; } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Requirements: * - operator can't be the address zero. * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { if (operator == address(0)) { revert ERC721InvalidOperator(operator); } _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned). * Returns the owner. * * Overrides to ownership logic should be done to {_ownerOf}. */ function _requireOwned(uint256 tokenId) internal view returns (address) { address owner = _ownerOf(tokenId); if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } return owner; } /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target address. This will revert if the * recipient doesn't accept the token transfer. 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 */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory data) private { if (to.code.length > 0) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { if (retval != IERC721Receiver.onERC721Received.selector) { revert ERC721InvalidReceiver(to); } } catch (bytes memory reason) { if (reason.length == 0) { revert ERC721InvalidReceiver(to); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } } } // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/ERC721Burnable.sol) /** * @title ERC-721 Burnable Token * @dev ERC-721 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 { // Setting an "auth" arguments enables the `_isAuthorized` check which verifies that the token exists // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here. _update(address(0), tokenId, _msgSender()); } } interface IBACCharacter is IERC721 { error CharacterAlreadyInitialized(); error StakingTokenCannotBeTransferred(); error OccupationNotExist(); event AllowedOccupationsAdded(uint256[] occupationIds); event AllowedOccupationRemoved(uint256 occupationId); event CharacterInitialized(uint256 tokenId, uint256 occupation, bool xAttribute); event StakingStatusUpdated(uint256 tokenId, bool status); event TokenBaseURIUpdated(string uri); function characterOccupations(uint256 tokenId) external view returns (uint256); function stakingStatus(uint256 tokenId) external view returns (bool); function setStakingStatus(uint256 tokenId, bool status) external; function mint(address recipient) external; } contract GenesisCharacter is Ownable, ReentrancyGuard, ERC721, ERC721Burnable, AccessControlEnumerable, IBACCharacter { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant STAKER_ROLE = keccak256("STAKER_ROLE"); bytes32 public constant INITIALIZER_ROLE = keccak256("INITIALIZER_ROLE"); uint256 public nextTokenId; /** * @dev Zero means no occupation assigned */ uint256[] public allowedOccupations = [0]; uint256 public totalSupply; string private _baseTokenURI; /** * @notice Mapping from token ID to occupation ID */ mapping(uint256 => uint256) public characterOccupations; /* * @notice Mapping from token ID to X attribute */ mapping(uint256 => bool) public xAttributes; /** * @notice Mapping from token ID to whether token is staking */ mapping(uint256 => bool) public stakingStatus; constructor() Ownable(_msgSender()) ERC721("BACGenesis", "BACG") {} function grantRole( bytes32 role, address account ) public override(AccessControl, IAccessControl) onlyOwner { _grantRole(role, account); } function revokeRole( bytes32 role, address account ) public override(AccessControl, IAccessControl) onlyOwner { _revokeRole(role, account); } function setBaseTokenURI(string calldata uri) external onlyOwner { _baseTokenURI = uri; emit TokenBaseURIUpdated(uri); } function addAllowedOccupations(uint256[] calldata occupationIds) external onlyOwner { for (uint256 i = 0; i < occupationIds.length; i++) { allowedOccupations.push(occupationIds[i]); } emit AllowedOccupationsAdded(occupationIds); } function removeAllowedOccupation(uint256 occupationId) external onlyOwner { uint256 length = allowedOccupations.length; for (uint256 i = 0; i < length; i++) { if (allowedOccupations[i] == occupationId) { allowedOccupations[i] = allowedOccupations[length - 1]; allowedOccupations.pop(); emit AllowedOccupationRemoved(occupationId); return; } } revert OccupationNotExist(); } function mint(address recipient) external nonReentrant onlyRole(MINTER_ROLE) { uint256 tokenId = nextTokenId; unchecked { nextTokenId++; } _safeMint(recipient, tokenId); } function initializeCharacter( uint256 tokenId, uint256 occupation, bool xAttribute ) external onlyRole(INITIALIZER_ROLE) { if (!_isAllowedOccupation(occupation) || occupation == 0) { revert OccupationNotExist(); } if (characterOccupations[tokenId] != 0) { revert CharacterAlreadyInitialized(); } characterOccupations[tokenId] = occupation; xAttributes[tokenId] = xAttribute; emit CharacterInitialized(tokenId, occupation, xAttribute); } function setStakingStatus(uint256 tokenId, bool status) external onlyRole(STAKER_ROLE) { stakingStatus[tokenId] = status; emit StakingStatusUpdated(tokenId, status); } function supportsInterface( bytes4 interfaceId ) public view virtual override(IERC165, ERC721, AccessControlEnumerable) returns (bool) { return super.supportsInterface(interfaceId); } function _update( address to, uint256 tokenId, address auth ) internal override returns (address) { address from = super._update(to, tokenId, auth); if (stakingStatus[tokenId]) { revert StakingTokenCannotBeTransferred(); } if (from == address(0)) { totalSupply += 1; } else if (to == address(0)) { totalSupply -= 1; } return from; } function _baseURI() internal view override returns (string memory) { return _baseTokenURI; } function _isAllowedOccupation(uint256 occupationId) internal view returns (bool) { uint256 length = allowedOccupations.length; for (uint256 i = 0; i < length; i++) { if (allowedOccupations[i] == occupationId) { return true; } } return false; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[],"name":"CharacterAlreadyInitialized","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"inputs":[],"name":"OccupationNotExist","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[],"name":"StakingTokenCannotBeTransferred","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"occupationId","type":"uint256"}],"name":"AllowedOccupationRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"occupationIds","type":"uint256[]"}],"name":"AllowedOccupationsAdded","type":"event"},{"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":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"occupation","type":"uint256"},{"indexed":false,"internalType":"bool","name":"xAttribute","type":"bool"}],"name":"CharacterInitialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"StakingStatusUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"uri","type":"string"}],"name":"TokenBaseURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INITIALIZER_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":"STAKER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"occupationIds","type":"uint256[]"}],"name":"addAllowedOccupations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allowedOccupations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"","type":"uint256"}],"name":"characterOccupations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"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":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"occupation","type":"uint256"},{"internalType":"bool","name":"xAttribute","type":"bool"}],"name":"initializeCharacter","outputs":[],"stateMutability":"nonpayable","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":"recipient","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"occupationId","type":"uint256"}],"name":"removeAllowedOccupation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","type":"address"}],"name":"renounceRole","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":"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":"uri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setStakingStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakingStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"xAttributes","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a0604052600060809081526200001b90600b90600162000133565b503480156200002957600080fd5b506040518060400160405280600a81526020016942414347656e6573697360b01b815250604051806040016040528060048152602001634241434760e01b8152506200007a620000df60201b60201c565b6001600160a01b038116620000a957604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b620000b481620000e3565b50600180556002620000c7838262000244565b506003620000d6828262000244565b50505062000310565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805482825590600052602060002090810192821562000176579160200282015b8281111562000176578251829060ff1690559160200191906001019062000154565b506200018492915062000188565b5090565b5b8082111562000184576000815560010162000189565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001ca57607f821691505b602082108103620001eb57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200023f57600081815260208120601f850160051c810160208610156200021a5750805b601f850160051c820191505b818110156200023b5782815560010162000226565b5050505b505050565b81516001600160401b038111156200026057620002606200019f565b6200027881620002718454620001b5565b84620001f1565b602080601f831160018114620002b05760008415620002975750858301515b600019600386901b1c1916600185901b1785556200023b565b600085815260208120601f198616915b82811015620002e157888601518255948401946001909101908401620002c0565b5085821015620003005787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6120b980620003206000396000f3fe608060405234801561001057600080fd5b50600436106102485760003560e01c80636352211e1161013b578063a22cb465116100b8578063d53913931161007c578063d539139314610543578063d547741f1461056a578063e985e9c51461057d578063f185976d14610590578063f2fde38b146105b357600080fd5b8063a22cb465146104e4578063a7ba50d2146104f7578063b88d4fde1461050a578063c87b56dd1461051d578063ca15c8731461053057600080fd5b80638da5cb5b116100ff5780638da5cb5b1461049d5780639010d07c146104ae57806391d14854146104c157806395d89b41146104d4578063a217fddf146104dc57600080fd5b80636352211e146104535780636a6278421461046657806370a0823114610479578063715018a61461048c57806375794a3c1461049457600080fd5b806323b872dd116101c957806336568abe1161018d57806336568abe146103e05780633780b3ed146103f357806342842e0e1461041a57806342966c681461042d57806361a9143b1461044057600080fd5b806323b872dd1461035d578063248a9ca31461037057806327df3d3e146103935780632f2ff15d146103ba57806330176e13146103cd57600080fd5b80630f893da9116102105780630f893da9146102f857806315f537ff1461030b57806318160ddd1461031e5780631d17ca9f146103275780631dd399301461033a57600080fd5b806301ffc9a71461024d57806305b1d2281461027557806306fdde03146102a3578063081812fc146102b8578063095ea7b3146102e3575b600080fd5b61026061025b3660046119c2565b6105c6565b60405190151581526020015b60405180910390f35b6102956102833660046119df565b600e6020526000908152604090205481565b60405190815260200161026c565b6102ab6105d7565b60405161026c9190611a48565b6102cb6102c63660046119df565b610669565b6040516001600160a01b03909116815260200161026c565b6102f66102f1366004611a77565b610692565b005b6102f6610306366004611ab1565b6106a1565b6102f6610319366004611add565b610726565b610295600c5481565b6102f66103353660046119df565b61081a565b6102606103483660046119df565b600f6020526000908152604090205460ff1681565b6102f661036b366004611b12565b610922565b61029561037e3660046119df565b60009081526008602052604090206001015490565b6102957f30d41a597cac127d8249d31298b50e481ee82c3f4a49ff93c76a22735aa9f3ad81565b6102f66103c8366004611b4e565b6109b2565b6102f66103db366004611b71565b6109c9565b6102f66103ee366004611b4e565b610a1c565b6102957fb9e206fa2af7ee1331b72ce58b6d938ac810ce9b5cdb65d35ab723fd67badf9e81565b6102f6610428366004611b12565b610a4f565b6102f661043b3660046119df565b610a6a565b6102f661044e366004611be3565b610a76565b6102cb6104613660046119df565b610b03565b6102f6610474366004611c46565b610b0e565b610295610487366004611c46565b610b60565b6102f6610ba8565b610295600a5481565b6000546001600160a01b03166102cb565b6102cb6104bc366004611c61565b610bbc565b6102606104cf366004611b4e565b610bdb565b6102ab610c06565b610295600081565b6102f66104f2366004611c83565b610c15565b6102956105053660046119df565b610c20565b6102f6610518366004611cc3565b610c41565b6102ab61052b3660046119df565b610c58565b61029561053e3660046119df565b610cbf565b6102957f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6102f6610578366004611b4e565b610cd6565b61026061058b366004611d9f565b610cde565b61026061059e3660046119df565b60106020526000908152604090205460ff1681565b6102f66105c1366004611c46565b610d0c565b60006105d182610d47565b92915050565b6060600280546105e690611dc9565b80601f016020809104026020016040519081016040528092919081815260200182805461061290611dc9565b801561065f5780601f106106345761010080835404028352916020019161065f565b820191906000526020600020905b81548152906001019060200180831161064257829003601f168201915b5050505050905090565b600061067482610d6c565b506000828152600660205260409020546001600160a01b03166105d1565b61069d828233610da5565b5050565b7fb9e206fa2af7ee1331b72ce58b6d938ac810ce9b5cdb65d35ab723fd67badf9e6106cb81610db2565b600083815260106020908152604091829020805460ff19168515159081179091558251868152918201527f1be3ebf69a690f159adc0263948ed7d6f8e5cda88760b29ebc1d4eedd1d4fd7491015b60405180910390a1505050565b7f30d41a597cac127d8249d31298b50e481ee82c3f4a49ff93c76a22735aa9f3ad61075081610db2565b61075983610dbc565b1580610763575082155b1561078157604051631ab23ed560e21b815260040160405180910390fd5b6000848152600e6020526040902054156107ad5760405162bdc57560e51b815260040160405180910390fd5b6000848152600e60209081526040808320869055600f825291829020805485151560ff19909116811790915582518781529182018690528183015290517fcb2d353c7ca93c3eaf4bc36c8df34b5d96f72d3ec8bc682a9bef7ebdc00657d29181900360600190a150505050565b610822610e16565b600b5460005b818110156109055782600b828154811061084457610844611e03565b9060005260206000200154036108f357600b610861600184611e2f565b8154811061087157610871611e03565b9060005260206000200154600b828154811061088f5761088f611e03565b600091825260209091200155600b8054806108ac576108ac611e42565b600190038181906000526020600020016000905590557faacdc733582c8dcaac450586b0e1741ee58a3758b35e0849c53754f30a0a0a3e8360405161071991815260200190565b806108fd81611e58565b915050610828565b50604051631ab23ed560e21b815260040160405180910390fd5b50565b6001600160a01b03821661095157604051633250574960e11b8152600060048201526024015b60405180910390fd5b600061095e838333610e43565b9050836001600160a01b0316816001600160a01b0316146109ac576040516364283d7b60e01b81526001600160a01b0380861660048301526024820184905282166044820152606401610948565b50505050565b6109ba610e16565b6109c48282610edf565b505050565b6109d1610e16565b600d6109de828483611ebf565b507f71b6d434aa2b38b7cc5e238537ecdeca836d64d830f885db24bf04c9754a4ac38282604051610a10929190611f7f565b60405180910390a15050565b6001600160a01b0381163314610a455760405163334bd91960e11b815260040160405180910390fd5b6109c48282610f14565b6109c483838360405180602001604052806000815250610c41565b61069d60008233610e43565b610a7e610e16565b60005b81811015610ad157600b838383818110610a9d57610a9d611e03565b8354600181018555600094855260209485902091909402929092013591909201555080610ac981611e58565b915050610a81565b507fca0fd117df553750cf4ff491c89aa860f2ea753867aabb710c967c5d2173511c8282604051610a10929190611fae565b60006105d182610d6c565b610b16610f41565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610b4081610db2565b600a805460018101909155610b558382610f6b565b505061091f60018055565b60006001600160a01b038216610b8c576040516322718ad960e21b815260006004820152602401610948565b506001600160a01b031660009081526005602052604090205490565b610bb0610e16565b610bba6000610f85565b565b6000828152600960205260408120610bd49083610fd5565b9392505050565b60009182526008602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600380546105e690611dc9565b61069d338383610fe1565b600b8181548110610c3057600080fd5b600091825260209091200154905081565b610c4c848484610922565b6109ac84848484611080565b6060610c6382610d6c565b506000610c6e6111a9565b90506000815111610c8e5760405180602001604052806000815250610bd4565b80610c98846111b8565b604051602001610ca9929190611fe7565b6040516020818303038152906040529392505050565b60008181526009602052604081206105d19061124b565b610a45610e16565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610d14610e16565b6001600160a01b038116610d3e57604051631e4fbdf760e01b815260006004820152602401610948565b61091f81610f85565b60006001600160e01b03198216635a05180f60e01b14806105d157506105d182611255565b6000818152600460205260408120546001600160a01b0316806105d157604051637e27328960e01b815260048101849052602401610948565b6109c4838383600161127a565b61091f8133611380565b600b54600090815b81811015610e0c5783600b8281548110610de057610de0611e03565b906000526020600020015403610dfa575060019392505050565b80610e0481611e58565b915050610dc4565b5060009392505050565b6000546001600160a01b03163314610bba5760405163118cdaa760e01b8152336004820152602401610948565b600080610e518585856113b9565b60008581526010602052604090205490915060ff1615610e84576040516311fd012f60e01b815260040160405180910390fd5b6001600160a01b038116610eb0576001600c6000828254610ea59190612016565b90915550610ed79050565b6001600160a01b038516610ed7576001600c6000828254610ed19190611e2f565b90915550505b949350505050565b600080610eec84846114b2565b90508015610bd4576000848152600960205260409020610f0c9084611546565b509392505050565b600080610f21848461155b565b90508015610bd4576000848152600960205260409020610f0c90846115c8565b600260015403610f6457604051633ee5aeb560e01b815260040160405180910390fd5b6002600155565b61069d8282604051806020016040528060008152506115dd565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610bd483836115f4565b6001600160a01b03821661101357604051630b61174360e31b81526001600160a01b0383166004820152602401610948565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383163b156109ac57604051630a85bd0160e11b81526001600160a01b0384169063150b7a02906110c2903390889087908790600401612029565b6020604051808303816000875af19250505080156110fd575060408051601f3d908101601f191682019092526110fa91810190612066565b60015b611166573d80801561112b576040519150601f19603f3d011682016040523d82523d6000602084013e611130565b606091505b50805160000361115e57604051633250574960e11b81526001600160a01b0385166004820152602401610948565b805181602001fd5b6001600160e01b03198116630a85bd0160e11b146111a257604051633250574960e11b81526001600160a01b0385166004820152602401610948565b5050505050565b6060600d80546105e690611dc9565b606060006111c58361161e565b600101905060008167ffffffffffffffff8111156111e5576111e5611cad565b6040519080825280601f01601f19166020018201604052801561120f576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461121957509392505050565b60006105d1825490565b60006001600160e01b03198216637965db0b60e01b14806105d157506105d1826116f6565b808061128e57506001600160a01b03821615155b1561135057600061129e84610d6c565b90506001600160a01b038316158015906112ca5750826001600160a01b0316816001600160a01b031614155b80156112dd57506112db8184610cde565b155b156113065760405163a9fbf51f60e01b81526001600160a01b0384166004820152602401610948565b811561134e5783856001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b5050600090815260066020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b61138a8282610bdb565b61069d5760405163e2517d3f60e01b81526001600160a01b038216600482015260248101839052604401610948565b6000828152600460205260408120546001600160a01b03908116908316156113e6576113e6818486611746565b6001600160a01b038116156114245761140360008560008061127a565b6001600160a01b038116600090815260056020526040902080546000190190555b6001600160a01b03851615611453576001600160a01b0385166000908152600560205260409020805460010190555b60008481526004602052604080822080546001600160a01b0319166001600160a01b0389811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b60006114be8383610bdb565b61153e5760008381526008602090815260408083206001600160a01b03861684529091529020805460ff191660011790556114f63390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45060016105d1565b5060006105d1565b6000610bd4836001600160a01b0384166117aa565b60006115678383610bdb565b1561153e5760008381526008602090815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45060016105d1565b6000610bd4836001600160a01b0384166117f1565b6115e783836118e4565b6109c46000848484611080565b600082600001828154811061160b5761160b611e03565b9060005260206000200154905092915050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061165d5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611689576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106116a757662386f26fc10000830492506010015b6305f5e10083106116bf576305f5e100830492506008015b61271083106116d357612710830492506004015b606483106116e5576064830492506002015b600a83106105d15760010192915050565b60006001600160e01b031982166380ac58cd60e01b148061172757506001600160e01b03198216635b5e139f60e01b145b806105d157506301ffc9a760e01b6001600160e01b03198316146105d1565b611751838383611949565b6109c4576001600160a01b03831661177f57604051637e27328960e01b815260048101829052602401610948565b60405163177e802f60e01b81526001600160a01b038316600482015260248101829052604401610948565b600081815260018301602052604081205461153e575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556105d1565b600081815260018301602052604081205480156118da576000611815600183611e2f565b855490915060009061182990600190611e2f565b905080821461188e57600086600001828154811061184957611849611e03565b906000526020600020015490508087600001848154811061186c5761186c611e03565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061189f5761189f611e42565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506105d1565b60009150506105d1565b6001600160a01b03821661190e57604051633250574960e11b815260006004820152602401610948565b600061191c83836000610e43565b90506001600160a01b038116156109c4576040516339e3563760e11b815260006004820152602401610948565b60006001600160a01b03831615801590610ed75750826001600160a01b0316846001600160a01b0316148061198357506119838484610cde565b80610ed75750506000908152600660205260409020546001600160a01b03908116911614919050565b6001600160e01b03198116811461091f57600080fd5b6000602082840312156119d457600080fd5b8135610bd4816119ac565b6000602082840312156119f157600080fd5b5035919050565b60005b83811015611a135781810151838201526020016119fb565b50506000910152565b60008151808452611a348160208601602086016119f8565b601f01601f19169290920160200192915050565b602081526000610bd46020830184611a1c565b80356001600160a01b0381168114611a7257600080fd5b919050565b60008060408385031215611a8a57600080fd5b611a9383611a5b565b946020939093013593505050565b80358015158114611a7257600080fd5b60008060408385031215611ac457600080fd5b82359150611ad460208401611aa1565b90509250929050565b600080600060608486031215611af257600080fd5b8335925060208401359150611b0960408501611aa1565b90509250925092565b600080600060608486031215611b2757600080fd5b611b3084611a5b565b9250611b3e60208501611a5b565b9150604084013590509250925092565b60008060408385031215611b6157600080fd5b82359150611ad460208401611a5b565b60008060208385031215611b8457600080fd5b823567ffffffffffffffff80821115611b9c57600080fd5b818501915085601f830112611bb057600080fd5b813581811115611bbf57600080fd5b866020828501011115611bd157600080fd5b60209290920196919550909350505050565b60008060208385031215611bf657600080fd5b823567ffffffffffffffff80821115611c0e57600080fd5b818501915085601f830112611c2257600080fd5b813581811115611c3157600080fd5b8660208260051b8501011115611bd157600080fd5b600060208284031215611c5857600080fd5b610bd482611a5b565b60008060408385031215611c7457600080fd5b50508035926020909101359150565b60008060408385031215611c9657600080fd5b611c9f83611a5b565b9150611ad460208401611aa1565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611cd957600080fd5b611ce285611a5b565b9350611cf060208601611a5b565b925060408501359150606085013567ffffffffffffffff80821115611d1457600080fd5b818701915087601f830112611d2857600080fd5b813581811115611d3a57611d3a611cad565b604051601f8201601f19908116603f01168101908382118183101715611d6257611d62611cad565b816040528281528a6020848701011115611d7b57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611db257600080fd5b611dbb83611a5b565b9150611ad460208401611a5b565b600181811c90821680611ddd57607f821691505b602082108103611dfd57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b818103818111156105d1576105d1611e19565b634e487b7160e01b600052603160045260246000fd5b600060018201611e6a57611e6a611e19565b5060010190565b601f8211156109c457600081815260208120601f850160051c81016020861015611e985750805b601f850160051c820191505b81811015611eb757828155600101611ea4565b505050505050565b67ffffffffffffffff831115611ed757611ed7611cad565b611eeb83611ee58354611dc9565b83611e71565b6000601f841160018114611f1f5760008515611f075750838201355b600019600387901b1c1916600186901b1783556111a2565b600083815260209020601f19861690835b82811015611f505786850135825560209485019460019092019101611f30565b5086821015611f6d5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b6020808252810182905260006001600160fb1b03831115611fce57600080fd5b8260051b80856040850137919091016040019392505050565b60008351611ff98184602088016119f8565b83519083019061200d8183602088016119f8565b01949350505050565b808201808211156105d1576105d1611e19565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061205c90830184611a1c565b9695505050505050565b60006020828403121561207857600080fd5b8151610bd4816119ac56fea264697066735822122098ef81951d5d9fbc02f802cf18c2bb869a14bf69cc177d49a942947709494a9964736f6c63430008140033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102485760003560e01c80636352211e1161013b578063a22cb465116100b8578063d53913931161007c578063d539139314610543578063d547741f1461056a578063e985e9c51461057d578063f185976d14610590578063f2fde38b146105b357600080fd5b8063a22cb465146104e4578063a7ba50d2146104f7578063b88d4fde1461050a578063c87b56dd1461051d578063ca15c8731461053057600080fd5b80638da5cb5b116100ff5780638da5cb5b1461049d5780639010d07c146104ae57806391d14854146104c157806395d89b41146104d4578063a217fddf146104dc57600080fd5b80636352211e146104535780636a6278421461046657806370a0823114610479578063715018a61461048c57806375794a3c1461049457600080fd5b806323b872dd116101c957806336568abe1161018d57806336568abe146103e05780633780b3ed146103f357806342842e0e1461041a57806342966c681461042d57806361a9143b1461044057600080fd5b806323b872dd1461035d578063248a9ca31461037057806327df3d3e146103935780632f2ff15d146103ba57806330176e13146103cd57600080fd5b80630f893da9116102105780630f893da9146102f857806315f537ff1461030b57806318160ddd1461031e5780631d17ca9f146103275780631dd399301461033a57600080fd5b806301ffc9a71461024d57806305b1d2281461027557806306fdde03146102a3578063081812fc146102b8578063095ea7b3146102e3575b600080fd5b61026061025b3660046119c2565b6105c6565b60405190151581526020015b60405180910390f35b6102956102833660046119df565b600e6020526000908152604090205481565b60405190815260200161026c565b6102ab6105d7565b60405161026c9190611a48565b6102cb6102c63660046119df565b610669565b6040516001600160a01b03909116815260200161026c565b6102f66102f1366004611a77565b610692565b005b6102f6610306366004611ab1565b6106a1565b6102f6610319366004611add565b610726565b610295600c5481565b6102f66103353660046119df565b61081a565b6102606103483660046119df565b600f6020526000908152604090205460ff1681565b6102f661036b366004611b12565b610922565b61029561037e3660046119df565b60009081526008602052604090206001015490565b6102957f30d41a597cac127d8249d31298b50e481ee82c3f4a49ff93c76a22735aa9f3ad81565b6102f66103c8366004611b4e565b6109b2565b6102f66103db366004611b71565b6109c9565b6102f66103ee366004611b4e565b610a1c565b6102957fb9e206fa2af7ee1331b72ce58b6d938ac810ce9b5cdb65d35ab723fd67badf9e81565b6102f6610428366004611b12565b610a4f565b6102f661043b3660046119df565b610a6a565b6102f661044e366004611be3565b610a76565b6102cb6104613660046119df565b610b03565b6102f6610474366004611c46565b610b0e565b610295610487366004611c46565b610b60565b6102f6610ba8565b610295600a5481565b6000546001600160a01b03166102cb565b6102cb6104bc366004611c61565b610bbc565b6102606104cf366004611b4e565b610bdb565b6102ab610c06565b610295600081565b6102f66104f2366004611c83565b610c15565b6102956105053660046119df565b610c20565b6102f6610518366004611cc3565b610c41565b6102ab61052b3660046119df565b610c58565b61029561053e3660046119df565b610cbf565b6102957f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6102f6610578366004611b4e565b610cd6565b61026061058b366004611d9f565b610cde565b61026061059e3660046119df565b60106020526000908152604090205460ff1681565b6102f66105c1366004611c46565b610d0c565b60006105d182610d47565b92915050565b6060600280546105e690611dc9565b80601f016020809104026020016040519081016040528092919081815260200182805461061290611dc9565b801561065f5780601f106106345761010080835404028352916020019161065f565b820191906000526020600020905b81548152906001019060200180831161064257829003601f168201915b5050505050905090565b600061067482610d6c565b506000828152600660205260409020546001600160a01b03166105d1565b61069d828233610da5565b5050565b7fb9e206fa2af7ee1331b72ce58b6d938ac810ce9b5cdb65d35ab723fd67badf9e6106cb81610db2565b600083815260106020908152604091829020805460ff19168515159081179091558251868152918201527f1be3ebf69a690f159adc0263948ed7d6f8e5cda88760b29ebc1d4eedd1d4fd7491015b60405180910390a1505050565b7f30d41a597cac127d8249d31298b50e481ee82c3f4a49ff93c76a22735aa9f3ad61075081610db2565b61075983610dbc565b1580610763575082155b1561078157604051631ab23ed560e21b815260040160405180910390fd5b6000848152600e6020526040902054156107ad5760405162bdc57560e51b815260040160405180910390fd5b6000848152600e60209081526040808320869055600f825291829020805485151560ff19909116811790915582518781529182018690528183015290517fcb2d353c7ca93c3eaf4bc36c8df34b5d96f72d3ec8bc682a9bef7ebdc00657d29181900360600190a150505050565b610822610e16565b600b5460005b818110156109055782600b828154811061084457610844611e03565b9060005260206000200154036108f357600b610861600184611e2f565b8154811061087157610871611e03565b9060005260206000200154600b828154811061088f5761088f611e03565b600091825260209091200155600b8054806108ac576108ac611e42565b600190038181906000526020600020016000905590557faacdc733582c8dcaac450586b0e1741ee58a3758b35e0849c53754f30a0a0a3e8360405161071991815260200190565b806108fd81611e58565b915050610828565b50604051631ab23ed560e21b815260040160405180910390fd5b50565b6001600160a01b03821661095157604051633250574960e11b8152600060048201526024015b60405180910390fd5b600061095e838333610e43565b9050836001600160a01b0316816001600160a01b0316146109ac576040516364283d7b60e01b81526001600160a01b0380861660048301526024820184905282166044820152606401610948565b50505050565b6109ba610e16565b6109c48282610edf565b505050565b6109d1610e16565b600d6109de828483611ebf565b507f71b6d434aa2b38b7cc5e238537ecdeca836d64d830f885db24bf04c9754a4ac38282604051610a10929190611f7f565b60405180910390a15050565b6001600160a01b0381163314610a455760405163334bd91960e11b815260040160405180910390fd5b6109c48282610f14565b6109c483838360405180602001604052806000815250610c41565b61069d60008233610e43565b610a7e610e16565b60005b81811015610ad157600b838383818110610a9d57610a9d611e03565b8354600181018555600094855260209485902091909402929092013591909201555080610ac981611e58565b915050610a81565b507fca0fd117df553750cf4ff491c89aa860f2ea753867aabb710c967c5d2173511c8282604051610a10929190611fae565b60006105d182610d6c565b610b16610f41565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610b4081610db2565b600a805460018101909155610b558382610f6b565b505061091f60018055565b60006001600160a01b038216610b8c576040516322718ad960e21b815260006004820152602401610948565b506001600160a01b031660009081526005602052604090205490565b610bb0610e16565b610bba6000610f85565b565b6000828152600960205260408120610bd49083610fd5565b9392505050565b60009182526008602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600380546105e690611dc9565b61069d338383610fe1565b600b8181548110610c3057600080fd5b600091825260209091200154905081565b610c4c848484610922565b6109ac84848484611080565b6060610c6382610d6c565b506000610c6e6111a9565b90506000815111610c8e5760405180602001604052806000815250610bd4565b80610c98846111b8565b604051602001610ca9929190611fe7565b6040516020818303038152906040529392505050565b60008181526009602052604081206105d19061124b565b610a45610e16565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610d14610e16565b6001600160a01b038116610d3e57604051631e4fbdf760e01b815260006004820152602401610948565b61091f81610f85565b60006001600160e01b03198216635a05180f60e01b14806105d157506105d182611255565b6000818152600460205260408120546001600160a01b0316806105d157604051637e27328960e01b815260048101849052602401610948565b6109c4838383600161127a565b61091f8133611380565b600b54600090815b81811015610e0c5783600b8281548110610de057610de0611e03565b906000526020600020015403610dfa575060019392505050565b80610e0481611e58565b915050610dc4565b5060009392505050565b6000546001600160a01b03163314610bba5760405163118cdaa760e01b8152336004820152602401610948565b600080610e518585856113b9565b60008581526010602052604090205490915060ff1615610e84576040516311fd012f60e01b815260040160405180910390fd5b6001600160a01b038116610eb0576001600c6000828254610ea59190612016565b90915550610ed79050565b6001600160a01b038516610ed7576001600c6000828254610ed19190611e2f565b90915550505b949350505050565b600080610eec84846114b2565b90508015610bd4576000848152600960205260409020610f0c9084611546565b509392505050565b600080610f21848461155b565b90508015610bd4576000848152600960205260409020610f0c90846115c8565b600260015403610f6457604051633ee5aeb560e01b815260040160405180910390fd5b6002600155565b61069d8282604051806020016040528060008152506115dd565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610bd483836115f4565b6001600160a01b03821661101357604051630b61174360e31b81526001600160a01b0383166004820152602401610948565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383163b156109ac57604051630a85bd0160e11b81526001600160a01b0384169063150b7a02906110c2903390889087908790600401612029565b6020604051808303816000875af19250505080156110fd575060408051601f3d908101601f191682019092526110fa91810190612066565b60015b611166573d80801561112b576040519150601f19603f3d011682016040523d82523d6000602084013e611130565b606091505b50805160000361115e57604051633250574960e11b81526001600160a01b0385166004820152602401610948565b805181602001fd5b6001600160e01b03198116630a85bd0160e11b146111a257604051633250574960e11b81526001600160a01b0385166004820152602401610948565b5050505050565b6060600d80546105e690611dc9565b606060006111c58361161e565b600101905060008167ffffffffffffffff8111156111e5576111e5611cad565b6040519080825280601f01601f19166020018201604052801561120f576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461121957509392505050565b60006105d1825490565b60006001600160e01b03198216637965db0b60e01b14806105d157506105d1826116f6565b808061128e57506001600160a01b03821615155b1561135057600061129e84610d6c565b90506001600160a01b038316158015906112ca5750826001600160a01b0316816001600160a01b031614155b80156112dd57506112db8184610cde565b155b156113065760405163a9fbf51f60e01b81526001600160a01b0384166004820152602401610948565b811561134e5783856001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b5050600090815260066020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b61138a8282610bdb565b61069d5760405163e2517d3f60e01b81526001600160a01b038216600482015260248101839052604401610948565b6000828152600460205260408120546001600160a01b03908116908316156113e6576113e6818486611746565b6001600160a01b038116156114245761140360008560008061127a565b6001600160a01b038116600090815260056020526040902080546000190190555b6001600160a01b03851615611453576001600160a01b0385166000908152600560205260409020805460010190555b60008481526004602052604080822080546001600160a01b0319166001600160a01b0389811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b60006114be8383610bdb565b61153e5760008381526008602090815260408083206001600160a01b03861684529091529020805460ff191660011790556114f63390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45060016105d1565b5060006105d1565b6000610bd4836001600160a01b0384166117aa565b60006115678383610bdb565b1561153e5760008381526008602090815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45060016105d1565b6000610bd4836001600160a01b0384166117f1565b6115e783836118e4565b6109c46000848484611080565b600082600001828154811061160b5761160b611e03565b9060005260206000200154905092915050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061165d5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611689576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106116a757662386f26fc10000830492506010015b6305f5e10083106116bf576305f5e100830492506008015b61271083106116d357612710830492506004015b606483106116e5576064830492506002015b600a83106105d15760010192915050565b60006001600160e01b031982166380ac58cd60e01b148061172757506001600160e01b03198216635b5e139f60e01b145b806105d157506301ffc9a760e01b6001600160e01b03198316146105d1565b611751838383611949565b6109c4576001600160a01b03831661177f57604051637e27328960e01b815260048101829052602401610948565b60405163177e802f60e01b81526001600160a01b038316600482015260248101829052604401610948565b600081815260018301602052604081205461153e575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556105d1565b600081815260018301602052604081205480156118da576000611815600183611e2f565b855490915060009061182990600190611e2f565b905080821461188e57600086600001828154811061184957611849611e03565b906000526020600020015490508087600001848154811061186c5761186c611e03565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061189f5761189f611e42565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506105d1565b60009150506105d1565b6001600160a01b03821661190e57604051633250574960e11b815260006004820152602401610948565b600061191c83836000610e43565b90506001600160a01b038116156109c4576040516339e3563760e11b815260006004820152602401610948565b60006001600160a01b03831615801590610ed75750826001600160a01b0316846001600160a01b0316148061198357506119838484610cde565b80610ed75750506000908152600660205260409020546001600160a01b03908116911614919050565b6001600160e01b03198116811461091f57600080fd5b6000602082840312156119d457600080fd5b8135610bd4816119ac565b6000602082840312156119f157600080fd5b5035919050565b60005b83811015611a135781810151838201526020016119fb565b50506000910152565b60008151808452611a348160208601602086016119f8565b601f01601f19169290920160200192915050565b602081526000610bd46020830184611a1c565b80356001600160a01b0381168114611a7257600080fd5b919050565b60008060408385031215611a8a57600080fd5b611a9383611a5b565b946020939093013593505050565b80358015158114611a7257600080fd5b60008060408385031215611ac457600080fd5b82359150611ad460208401611aa1565b90509250929050565b600080600060608486031215611af257600080fd5b8335925060208401359150611b0960408501611aa1565b90509250925092565b600080600060608486031215611b2757600080fd5b611b3084611a5b565b9250611b3e60208501611a5b565b9150604084013590509250925092565b60008060408385031215611b6157600080fd5b82359150611ad460208401611a5b565b60008060208385031215611b8457600080fd5b823567ffffffffffffffff80821115611b9c57600080fd5b818501915085601f830112611bb057600080fd5b813581811115611bbf57600080fd5b866020828501011115611bd157600080fd5b60209290920196919550909350505050565b60008060208385031215611bf657600080fd5b823567ffffffffffffffff80821115611c0e57600080fd5b818501915085601f830112611c2257600080fd5b813581811115611c3157600080fd5b8660208260051b8501011115611bd157600080fd5b600060208284031215611c5857600080fd5b610bd482611a5b565b60008060408385031215611c7457600080fd5b50508035926020909101359150565b60008060408385031215611c9657600080fd5b611c9f83611a5b565b9150611ad460208401611aa1565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611cd957600080fd5b611ce285611a5b565b9350611cf060208601611a5b565b925060408501359150606085013567ffffffffffffffff80821115611d1457600080fd5b818701915087601f830112611d2857600080fd5b813581811115611d3a57611d3a611cad565b604051601f8201601f19908116603f01168101908382118183101715611d6257611d62611cad565b816040528281528a6020848701011115611d7b57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611db257600080fd5b611dbb83611a5b565b9150611ad460208401611a5b565b600181811c90821680611ddd57607f821691505b602082108103611dfd57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b818103818111156105d1576105d1611e19565b634e487b7160e01b600052603160045260246000fd5b600060018201611e6a57611e6a611e19565b5060010190565b601f8211156109c457600081815260208120601f850160051c81016020861015611e985750805b601f850160051c820191505b81811015611eb757828155600101611ea4565b505050505050565b67ffffffffffffffff831115611ed757611ed7611cad565b611eeb83611ee58354611dc9565b83611e71565b6000601f841160018114611f1f5760008515611f075750838201355b600019600387901b1c1916600186901b1783556111a2565b600083815260209020601f19861690835b82811015611f505786850135825560209485019460019092019101611f30565b5086821015611f6d5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b6020808252810182905260006001600160fb1b03831115611fce57600080fd5b8260051b80856040850137919091016040019392505050565b60008351611ff98184602088016119f8565b83519083019061200d8183602088016119f8565b01949350505050565b808201808211156105d1576105d1611e19565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061205c90830184611a1c565b9695505050505050565b60006020828403121561207857600080fd5b8151610bd4816119ac56fea264697066735822122098ef81951d5d9fbc02f802cf18c2bb869a14bf69cc177d49a942947709494a9964736f6c63430008140033
Deployed Bytecode Sourcemap
89108:4550:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92510:211;;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;92510:211:0;;;;;;;;89782:55;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;923:25:1;;;911:2;896:18;89782:55:0;777:177:1;71836:91:0;;;:::i;:::-;;;;;;;:::i;73008:158::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1879:32:1;;;1861:51;;1849:2;1834:18;73008:158:0;1715:203:1;72827:115:0;;;;;;:::i;:::-;;:::i;:::-;;92312:190;;;;;;:::i;:::-;;:::i;91736:568::-;;;;;;:::i;:::-;;:::i;89637:26::-;;;;;;90985:508;;;;;;:::i;:::-;;:::i;89916:43::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;73677:588;;;;;;:::i;:::-;;:::i;16016:122::-;;;;;;:::i;:::-;16081:7;16108:12;;;:6;:12;;;;;:22;;;;16016:122;89406:72;;89449:29;89406:72;;90181:176;;;;;;:::i;:::-;;:::i;90551:143::-;;;;;;:::i;:::-;;:::i;17585:251::-;;;;;;:::i;:::-;;:::i;89335:62::-;;89373:24;89335:62;;74336:134;;;;;;:::i;:::-;;:::i;88016:318::-;;;;;;:::i;:::-;;:::i;90702:275::-;;;;;;:::i;:::-;;:::i;71649:120::-;;;;;;:::i;:::-;;:::i;91501:227::-;;;;;;:::i;:::-;;:::i;71374:213::-;;;;;;:::i;:::-;;:::i;3250:103::-;;;:::i;89487:26::-;;;;;;2575:87;2621:7;2648:6;-1:-1:-1;;;;;2648:6:0;2575:87;;35148:144;;;;;;:::i;:::-;;:::i;15032:138::-;;;;;;:::i;:::-;;:::i;71996:95::-;;;:::i;14344:49::-;;14389:4;14344:49;;73238:146;;;;;;:::i;:::-;;:::i;89587:41::-;;;;;;:::i;:::-;;:::i;74541:211::-;;;;;;:::i;:::-;;:::i;72162:260::-;;;;;;:::i;:::-;;:::i;35466:133::-;;;;;;:::i;:::-;;:::i;89264:62::-;;89302:24;89264:62;;90365:178;;;;;;:::i;:::-;;:::i;73455:155::-;;;;;;:::i;:::-;;:::i;90052:45::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;3508:220;;;;;;:::i;:::-;;:::i;92510:211::-;92653:4;92677:36;92701:11;92677:23;:36::i;:::-;92670:43;92510:211;-1:-1:-1;;92510:211:0:o;71836:91::-;71881:13;71914:5;71907:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71836:91;:::o;73008:158::-;73075:7;73095:22;73109:7;73095:13;:22::i;:::-;-1:-1:-1;75585:7:0;75612:24;;;:15;:24;;;;;;-1:-1:-1;;;;;75612:24:0;73137:21;75515:129;72827:115;72899:35;72908:2;72912:7;823:10;72899:8;:35::i;:::-;72827:115;;:::o;92312:190::-;89373:24;14628:16;14639:4;14628:10;:16::i;:::-;92410:22:::1;::::0;;;:13:::1;:22;::::0;;;;;;;;:31;;-1:-1:-1;;92410:31:0::1;::::0;::::1;;::::0;;::::1;::::0;;;92457:37;;8071:25:1;;;8112:18;;;8105:50;92457:37:0::1;::::0;8044:18:1;92457:37:0::1;;;;;;;;92312:190:::0;;;:::o;91736:568::-;89449:29;14628:16;14639:4;14628:10;:16::i;:::-;91905:32:::1;91926:10;91905:20;:32::i;:::-;91904:33;:52;;;-1:-1:-1::0;91941:15:0;;91904:52:::1;91900:112;;;91980:20;;-1:-1:-1::0;;;91980:20:0::1;;;;;;;;;;;91900:112;92028:29;::::0;;;:20:::1;:29;::::0;;;;;:34;92024:103:::1;;92086:29;;-1:-1:-1::0;;;92086:29:0::1;;;;;;;;;;;92024:103;92139:29;::::0;;;:20:::1;:29;::::0;;;;;;;:42;;;92192:11:::1;:20:::0;;;;;;:33;;;::::1;;-1:-1:-1::0;;92192:33:0;;::::1;::::0;::::1;::::0;;;92243:53;;8362:25:1;;;8403:18;;;8396:34;;;8446:18;;;8439:50;92243:53:0;;::::1;::::0;;;;8350:2:1;92243:53:0;;::::1;91736:568:::0;;;;:::o;90985:508::-;2461:13;:11;:13::i;:::-;91087:18:::1;:25:::0;91070:14:::1;91123:325;91147:6;91143:1;:10;91123:325;;;91204:12;91179:18;91198:1;91179:21;;;;;;;;:::i;:::-;;;;;;;;;:37:::0;91175:262:::1;;91261:18;91280:10;91289:1;91280:6:::0;:10:::1;:::i;:::-;91261:30;;;;;;;;:::i;:::-;;;;;;;;;91237:18;91256:1;91237:21;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;:54:::0;91310:18:::1;:24:::0;;;::::1;;;;:::i;:::-;;;;;;;;;;;;;;;;;;91358:38;91383:12;91358:38;;;;923:25:1::0;;911:2;896:18;;777:177;91175:262:0::1;91155:3:::0;::::1;::::0;::::1;:::i;:::-;;;;91123:325;;;;91465:20;;-1:-1:-1::0;;;91465:20:0::1;;;;;;;;;;;2485:1;90985:508:::0;:::o;73677:588::-;-1:-1:-1;;;;;73772:16:0;;73768:89;;73812:33;;-1:-1:-1;;;73812:33:0;;73842:1;73812:33;;;1861:51:1;1834:18;;73812:33:0;;;;;;;;73768:89;74078:21;74102:34;74110:2;74114:7;823:10;74102:7;:34::i;:::-;74078:58;;74168:4;-1:-1:-1;;;;;74151:21:0;:13;-1:-1:-1;;;;;74151:21:0;;74147:111;;74196:50;;-1:-1:-1;;;74196:50:0;;-1:-1:-1;;;;;9427:15:1;;;74196:50:0;;;9409:34:1;9459:18;;;9452:34;;;9522:15;;9502:18;;;9495:43;9344:18;;74196:50:0;9169:375:1;74147:111:0;73757:508;73677:588;;;:::o;90181:176::-;2461:13;:11;:13::i;:::-;90324:25:::1;90335:4;90341:7;90324:10;:25::i;:::-;;90181:176:::0;;:::o;90551:143::-;2461:13;:11;:13::i;:::-;90627::::1;:19;90643:3:::0;;90627:13;:19:::1;:::i;:::-;;90662:24;90682:3;;90662:24;;;;;;;:::i;:::-;;;;;;;;90551:143:::0;;:::o;17585:251::-;-1:-1:-1;;;;;17679:34:0;;823:10;17679:34;17675:104;;17737:30;;-1:-1:-1;;;17737:30:0;;;;;;;;;;;17675:104;17791:37;17803:4;17809:18;17791:11;:37::i;74336:134::-;74423:39;74440:4;74446:2;74450:7;74423:39;;;;;;;;;;;;:16;:39::i;88016:318::-;88284:42;88300:1;88304:7;823:10;74102:7;:34::i;90702:275::-;2461:13;:11;:13::i;:::-;90802:9:::1;90797:119;90817:24:::0;;::::1;90797:119;;;90863:18;90887:13;;90901:1;90887:16;;;;;;;:::i;:::-;90863:41:::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;90863:41:0;;;90887:16:::1;90863:41:::0;;;;90887:16;;;::::1;::::0;;;::::1;;90863:41:::0;;;::::1;::::0;-1:-1:-1;90843:3:0;::::1;::::0;::::1;:::i;:::-;;;;90797:119;;;;90931:38;90955:13;;90931:38;;;;;;;:::i;71649:120::-:0;71712:7;71739:22;71753:7;71739:13;:22::i;91501:227::-;6436:21;:19;:21::i;:::-;89302:24:::1;14628:16;14639:4;14628:10;:16::i;:::-;91607:11:::2;::::0;;91654:13:::2;::::0;::::2;::::0;;;91691:29:::2;91701:9:::0;91607:11;91691:9:::2;:29::i;:::-;91578:150;6468:1:::1;6480:20:::0;5771:1;7022:21;;6839:212;71374:213;71437:7;-1:-1:-1;;;;;71461:19:0;;71457:89;;71504:30;;-1:-1:-1;;;71504:30:0;;71531:1;71504:30;;;1861:51:1;1834:18;;71504:30:0;1715:203:1;71457:89:0;-1:-1:-1;;;;;;71563:16:0;;;;;:9;:16;;;;;;;71374:213::o;3250:103::-;2461:13;:11;:13::i;:::-;3315:30:::1;3342:1;3315:18;:30::i;:::-;3250:103::o:0;35148:144::-;35229:7;35256:18;;;:12;:18;;;;;:28;;35278:5;35256:21;:28::i;:::-;35249:35;35148:144;-1:-1:-1;;;35148:144:0:o;15032:138::-;15109:4;15133:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;15133:29:0;;;;;;;;;;;;;;;15032:138::o;71996:95::-;72043:13;72076:7;72069:14;;;;;:::i;73238:146::-;73324:52;823:10;73357:8;73367;73324:18;:52::i;89587:41::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;89587:41:0;:::o;74541:211::-;74655:31;74668:4;74674:2;74678:7;74655:12;:31::i;:::-;74697:47;74720:4;74726:2;74730:7;74739:4;74697:22;:47::i;72162:260::-;72226:13;72252:22;72266:7;72252:13;:22::i;:::-;;72287:21;72311:10;:8;:10::i;:::-;72287:34;;72363:1;72345:7;72339:21;:25;:75;;;;;;;;;;;;;;;;;72381:7;72390:18;:7;:16;:18::i;:::-;72367:42;;;;;;;;;:::i;:::-;;;;;;;;;;;;;72332:82;72162:260;-1:-1:-1;;;72162:260:0:o;35466:133::-;35537:7;35564:18;;;:12;:18;;;;;:27;;:25;:27::i;90365:178::-;2461:13;:11;:13::i;73455:155::-;-1:-1:-1;;;;;73567:25:0;;;73543:4;73567:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;73455:155::o;3508:220::-;2461:13;:11;:13::i;:::-;-1:-1:-1;;;;;3593:22:0;::::1;3589:93;;3639:31;::::0;-1:-1:-1;;;3639:31:0;;3667:1:::1;3639:31;::::0;::::1;1861:51:1::0;1834:18;;3639:31:0::1;1715:203:1::0;3589:93:0::1;3692:28;3711:8;3692:18;:28::i;34335:214::-:0;34420:4;-1:-1:-1;;;;;;34444:57:0;;-1:-1:-1;;;34444:57:0;;:97;;;34505:36;34529:11;34505:23;:36::i;85985:247::-;86048:7;75370:16;;;:7;:16;;;;;;-1:-1:-1;;;;;75370:16:0;;86112:90;;86159:31;;-1:-1:-1;;;86159:31:0;;;;;923:25:1;;;896:18;;86159:31:0;777:177:1;84217:122:0;84298:33;84307:2;84311:7;84320:4;84326;84298:8;:33::i;15385:105::-;15452:30;15463:4;823:10;15452;:30::i;93328:327::-;93437:18;:25;93403:4;;;93473:152;93497:6;93493:1;:10;93473:152;;;93554:12;93529:18;93548:1;93529:21;;;;;;;;:::i;:::-;;;;;;;;;:37;93525:89;;-1:-1:-1;93594:4:0;;93328:327;-1:-1:-1;;;93328:327:0:o;93525:89::-;93505:3;;;;:::i;:::-;;;;93473:152;;;-1:-1:-1;93642:5:0;;93328:327;-1:-1:-1;;;93328:327:0:o;2740:166::-;2621:7;2648:6;-1:-1:-1;;;;;2648:6:0;823:10;2800:23;2796:103;;2847:40;;-1:-1:-1;;;2847:40:0;;823:10;2847:40;;;1861:51:1;1834:18;;2847:40:0;1715:203:1;92729:477:0;92850:7;92870:12;92885:32;92899:2;92903:7;92912:4;92885:13;:32::i;:::-;92934:22;;;;:13;:22;;;;;;92870:47;;-1:-1:-1;92934:22:0;;92930:95;;;92980:33;;-1:-1:-1;;;92980:33:0;;;;;;;;;;;92930:95;-1:-1:-1;;;;;93041:18:0;;93037:138;;93091:1;93076:11;;:16;;;;;;;:::i;:::-;;;;-1:-1:-1;93037:138:0;;-1:-1:-1;93037:138:0;;-1:-1:-1;;;;;93114:16:0;;93110:65;;93162:1;93147:11;;:16;;;;;;;:::i;:::-;;;;-1:-1:-1;;93110:65:0;93194:4;92729:477;-1:-1:-1;;;;92729:477:0:o;35706:263::-;35792:4;35809:12;35824:31;35841:4;35847:7;35824:16;:31::i;:::-;35809:46;;35870:7;35866:71;;;35894:18;;;;:12;:18;;;;;:31;;35917:7;35894:22;:31::i;:::-;;35954:7;35706:263;-1:-1:-1;;;35706:263:0:o;36077:268::-;36164:4;36181:12;36196:32;36214:4;36220:7;36196:17;:32::i;:::-;36181:47;;36243:7;36239:74;;;36267:18;;;;:12;:18;;;;;:34;;36293:7;36267:25;:34::i;6516:315::-;5814:1;6645:7;;:18;6641:88;;6687:30;;-1:-1:-1;;;6687:30:0;;;;;;;;;;;6641:88;5814:1;6806:7;:17;6516:315::o;80335:102::-;80403:26;80413:2;80417:7;80403:26;;;;;;;;;;;;:9;:26::i;3888:191::-;3962:16;3981:6;;-1:-1:-1;;;;;3998:17:0;;;-1:-1:-1;;;;;;3998:17:0;;;;;;4031:40;;3981:6;;;;;;;4031:40;;3962:16;4031:40;3951:128;3888:191;:::o;30448:158::-;30522:7;30573:22;30577:3;30589:5;30573:3;:22::i;85424:318::-;-1:-1:-1;;;;;85532:22:0;;85528:93;;85578:31;;-1:-1:-1;;;85578:31:0;;-1:-1:-1;;;;;1879:32:1;;85578:31:0;;;1861:51:1;1834:18;;85578:31:0;1715:203:1;85528:93:0;-1:-1:-1;;;;;85631:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;85631:46:0;;;;;;;;;;85693:41;;540::1;;;85693::0;;513:18:1;85693:41:0;;;;;;;85424:318;;;:::o;86782:799::-;-1:-1:-1;;;;;86899:14:0;;;:18;86895:679;;86938:71;;-1:-1:-1;;;86938:71:0;;-1:-1:-1;;;;;86938:36:0;;;;;:71;;823:10;;86989:4;;86995:7;;87004:4;;86938:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;86938:71:0;;;;;;;;-1:-1:-1;;86938:71:0;;;;;;;;;;;;:::i;:::-;;;86934:629;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87252:6;:13;87269:1;87252:18;87248:300;;87302:25;;-1:-1:-1;;;87302:25:0;;-1:-1:-1;;;;;1879:32:1;;87302:25:0;;;1861:51:1;1834:18;;87302:25:0;1715:203:1;87248:300:0;87498:6;87492:13;87483:6;87479:2;87475:15;87468:38;86934:629;-1:-1:-1;;;;;;87057:51:0;;-1:-1:-1;;;87057:51:0;87053:132;;87140:25;;-1:-1:-1;;;87140:25:0;;-1:-1:-1;;;;;1879:32:1;;87140:25:0;;;1861:51:1;1834:18;;87140:25:0;1715:203:1;87053:132:0;87010:190;86782:799;;;;:::o;93214:106::-;93266:13;93299;93292:20;;;;;:::i;60762:718::-;60818:13;60869:14;60886:17;60897:5;60886:10;:17::i;:::-;60906:1;60886:21;60869:38;;60922:20;60956:6;60945:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;60945:18:0;-1:-1:-1;60922:41:0;-1:-1:-1;61087:28:0;;;61103:2;61087:28;61144:290;-1:-1:-1;;61176:5:0;-1:-1:-1;;;61313:2:0;61302:14;;61297:32;61176:5;61284:46;61376:2;61367:11;;;-1:-1:-1;61397:21:0;61144:290;61397:21;-1:-1:-1;61455:6:0;60762:718;-1:-1:-1;;;60762:718:0:o;29977:117::-;30040:7;30067:19;30075:3;25277:18;;25194:109;14736:204;14821:4;-1:-1:-1;;;;;;14845:47:0;;-1:-1:-1;;;14845:47:0;;:87;;;14896:36;14920:11;14896:23;:36::i;84527:678::-;84689:9;:31;;;-1:-1:-1;;;;;;84702:18:0;;;;84689:31;84685:471;;;84737:13;84753:22;84767:7;84753:13;:22::i;:::-;84737:38;-1:-1:-1;;;;;;84906:18:0;;;;;;:35;;;84937:4;-1:-1:-1;;;;;84928:13:0;:5;-1:-1:-1;;;;;84928:13:0;;;84906:35;:69;;;;;84946:29;84963:5;84970:4;84946:16;:29::i;:::-;84945:30;84906:69;84902:144;;;85003:27;;-1:-1:-1;;;85003:27:0;;-1:-1:-1;;;;;1879:32:1;;85003:27:0;;;1861:51:1;1834:18;;85003:27:0;1715:203:1;84902:144:0;85066:9;85062:83;;;85121:7;85117:2;-1:-1:-1;;;;;85101:28:0;85110:5;-1:-1:-1;;;;;85101:28:0;;;;;;;;;;;85062:83;84722:434;84685:471;-1:-1:-1;;85168:24:0;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;85168:29:0;-1:-1:-1;;;;;85168:29:0;;;;;;;;;;84527:678::o;15626:201::-;15715:22;15723:4;15729:7;15715;:22::i;:::-;15710:110;;15761:47;;-1:-1:-1;;;15761:47:0;;-1:-1:-1;;;;;14153:32:1;;15761:47:0;;;14135:51:1;14202:18;;;14195:34;;;14108:18;;15761:47:0;13961:274:1;78477:824:0;78563:7;75370:16;;;:7;:16;;;;;;-1:-1:-1;;;;;75370:16:0;;;;78678:18;;;78674:88;;78713:37;78730:4;78736;78742:7;78713:16;:37::i;:::-;-1:-1:-1;;;;;78809:18:0;;;78805:263;;78927:48;78944:1;78948:7;78965:1;78969:5;78927:8;:48::i;:::-;-1:-1:-1;;;;;79021:15:0;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;79021:20:0;;;78805:263;-1:-1:-1;;;;;79084:16:0;;;79080:111;;-1:-1:-1;;;;;79146:13:0;;;;;;:9;:13;;;;;:18;;79163:1;79146:18;;;79080:111;79203:16;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;79203:21:0;-1:-1:-1;;;;;79203:21:0;;;;;;;;;79242:27;;79203:16;;79242:27;;;;;;;79289:4;78477:824;-1:-1:-1;;;;78477:824:0:o;18462:324::-;18539:4;18561:22;18569:4;18575:7;18561;:22::i;:::-;18556:223;;18600:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;18600:29:0;;;;;;;;;:36;;-1:-1:-1;;18600:36:0;18632:4;18600:36;;;18683:12;823:10;;743:98;18683:12;-1:-1:-1;;;;;18656:40:0;18674:7;-1:-1:-1;;;;;18656:40:0;18668:4;18656:40;;;;;;;;;;-1:-1:-1;18718:4:0;18711:11;;18556:223;-1:-1:-1;18762:5:0;18755:12;;29152:152;29222:4;29246:50;29251:3;-1:-1:-1;;;;;29271:23:0;;29246:4;:50::i;19030:325::-;19108:4;19129:22;19137:4;19143:7;19129;:22::i;:::-;19125:223;;;19200:5;19168:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;19168:29:0;;;;;;;;;;:37;;-1:-1:-1;;19168:37:0;;;19225:40;823:10;;19168:12;;19225:40;;19200:5;19225:40;-1:-1:-1;19287:4:0;19280:11;;29480:158;29553:4;29577:53;29585:3;-1:-1:-1;;;;;29605:23:0;;29577:7;:53::i;80664:185::-;80759:18;80765:2;80769:7;80759:5;:18::i;:::-;80788:53;80819:1;80823:2;80827:7;80836:4;80788:22;:53::i;25657:120::-;25724:7;25751:3;:11;;25763:5;25751:18;;;;;;;;:::i;:::-;;;;;;;;;25744:25;;25657:120;;;;:::o;56077:948::-;56130:7;;-1:-1:-1;;;56208:17:0;;56204:106;;-1:-1:-1;;;56246:17:0;;;-1:-1:-1;56292:2:0;56282:12;56204:106;56337:8;56328:5;:17;56324:106;;56375:8;56366:17;;;-1:-1:-1;56412:2:0;56402:12;56324:106;56457:8;56448:5;:17;56444:106;;56495:8;56486:17;;;-1:-1:-1;56532:2:0;56522:12;56444:106;56577:7;56568:5;:16;56564:103;;56614:7;56605:16;;;-1:-1:-1;56650:1:0;56640:11;56564:103;56694:7;56685:5;:16;56681:103;;56731:7;56722:16;;;-1:-1:-1;56767:1:0;56757:11;56681:103;56811:7;56802:5;:16;56798:103;;56848:7;56839:16;;;-1:-1:-1;56884:1:0;56874:11;56798:103;56928:7;56919:5;:16;56915:68;;56966:1;56956:11;57011:6;56077:948;-1:-1:-1;;56077:948:0:o;71005:305::-;71107:4;-1:-1:-1;;;;;;71144:40:0;;-1:-1:-1;;;71144:40:0;;:105;;-1:-1:-1;;;;;;;71201:48:0;;-1:-1:-1;;;71201:48:0;71144:105;:158;;;-1:-1:-1;;;;;;;;;;12347:40:0;;;71266:36;12247:148;76684:376;76797:38;76811:5;76818:7;76827;76797:13;:38::i;:::-;76792:261;;-1:-1:-1;;;;;76856:19:0;;76852:190;;76903:31;;-1:-1:-1;;;76903:31:0;;;;;923:25:1;;;896:18;;76903:31:0;777:177:1;76852:190:0;76982:44;;-1:-1:-1;;;76982:44:0;;-1:-1:-1;;;;;14153:32:1;;76982:44:0;;;14135:51:1;14202:18;;;14195:34;;;14108:18;;76982:44:0;13961:274:1;22899:416:0;22962:4;25074:21;;;:14;;;:21;;;;;;22979:329;;-1:-1:-1;23022:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;23207:18;;23183:21;;;:14;;;:21;;;;;;:42;;;;23240:11;;23491:1400;23557:4;23688:21;;;:14;;;:21;;;;;;23726:13;;23722:1162;;24099:18;24120:12;24131:1;24120:8;:12;:::i;:::-;24167:18;;24099:33;;-1:-1:-1;24147:17:0;;24167:22;;24188:1;;24167:22;:::i;:::-;24147:42;;24224:9;24210:10;:23;24206:385;;24254:17;24274:3;:11;;24286:9;24274:22;;;;;;;;:::i;:::-;;;;;;;;;24254:42;;24424:9;24398:3;:11;;24410:10;24398:23;;;;;;;;:::i;:::-;;;;;;;;;;;;:35;;;;24539:25;;;:14;;;:25;;;;;:36;;;24206:385;24672:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;24778:3;:14;;:21;24793:5;24778:21;;;;;;;;;;;24771:28;;;24823:4;24816:11;;;;;;;23722:1162;24867:5;24860:12;;;;;79637:335;-1:-1:-1;;;;;79705:16:0;;79701:89;;79745:33;;-1:-1:-1;;;79745:33:0;;79775:1;79745:33;;;1861:51:1;1834:18;;79745:33:0;1715:203:1;79701:89:0;79800:21;79824:32;79832:2;79836:7;79853:1;79824:7;:32::i;:::-;79800:56;-1:-1:-1;;;;;;79871:27:0;;;79867:98;;79922:31;;-1:-1:-1;;;79922:31:0;;79950:1;79922:31;;;1861:51:1;1834:18;;79922:31:0;1715:203:1;75964:276:0;76067:4;-1:-1:-1;;;;;76104:21:0;;;;;;:128;;;76152:7;-1:-1:-1;;;;;76143:16:0;:5;-1:-1:-1;;;;;76143:16:0;;:52;;;;76163:32;76180:5;76187:7;76163:16;:32::i;:::-;76143:88;;;-1:-1:-1;;75585:7:0;75612:24;;;:15;:24;;;;;;-1:-1:-1;;;;;75612:24:0;;;76199:32;;;;76084:148;-1:-1:-1;75964:276:0: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:180::-;651:6;704:2;692:9;683:7;679:23;675:32;672:52;;;720:1;717;710:12;672:52;-1:-1:-1;743:23:1;;592:180;-1:-1:-1;592:180:1:o;959:250::-;1044:1;1054:113;1068:6;1065:1;1062:13;1054:113;;;1144:11;;;1138:18;1125:11;;;1118:39;1090:2;1083:10;1054:113;;;-1:-1:-1;;1201:1:1;1183:16;;1176:27;959:250::o;1214:271::-;1256:3;1294:5;1288:12;1321:6;1316:3;1309:19;1337:76;1406:6;1399:4;1394:3;1390:14;1383:4;1376:5;1372:16;1337:76;:::i;:::-;1467:2;1446:15;-1:-1:-1;;1442:29:1;1433:39;;;;1474:4;1429:50;;1214:271;-1:-1:-1;;1214:271:1:o;1490:220::-;1639:2;1628:9;1621:21;1602:4;1659:45;1700:2;1689:9;1685:18;1677:6;1659:45;:::i;1923:173::-;1991:20;;-1:-1:-1;;;;;2040:31:1;;2030:42;;2020:70;;2086:1;2083;2076:12;2020:70;1923:173;;;:::o;2101:254::-;2169:6;2177;2230:2;2218:9;2209:7;2205:23;2201:32;2198:52;;;2246:1;2243;2236:12;2198:52;2269:29;2288:9;2269:29;:::i;:::-;2259:39;2345:2;2330:18;;;;2317:32;;-1:-1:-1;;;2101:254:1:o;2360:160::-;2425:20;;2481:13;;2474:21;2464:32;;2454:60;;2510:1;2507;2500:12;2525:248;2590:6;2598;2651:2;2639:9;2630:7;2626:23;2622:32;2619:52;;;2667:1;2664;2657:12;2619:52;2703:9;2690:23;2680:33;;2732:35;2763:2;2752:9;2748:18;2732:35;:::i;:::-;2722:45;;2525:248;;;;;:::o;2778:316::-;2852:6;2860;2868;2921:2;2909:9;2900:7;2896:23;2892:32;2889:52;;;2937:1;2934;2927:12;2889:52;2973:9;2960:23;2950:33;;3030:2;3019:9;3015:18;3002:32;2992:42;;3053:35;3084:2;3073:9;3069:18;3053:35;:::i;:::-;3043:45;;2778:316;;;;;:::o;3099:328::-;3176:6;3184;3192;3245:2;3233:9;3224:7;3220:23;3216:32;3213:52;;;3261:1;3258;3251:12;3213:52;3284:29;3303:9;3284:29;:::i;:::-;3274:39;;3332:38;3366:2;3355:9;3351:18;3332:38;:::i;:::-;3322:48;;3417:2;3406:9;3402:18;3389:32;3379:42;;3099:328;;;;;:::o;3799:254::-;3867:6;3875;3928:2;3916:9;3907:7;3903:23;3899:32;3896:52;;;3944:1;3941;3934:12;3896:52;3980:9;3967:23;3957:33;;4009:38;4043:2;4032:9;4028:18;4009:38;:::i;4058:592::-;4129:6;4137;4190:2;4178:9;4169:7;4165:23;4161:32;4158:52;;;4206:1;4203;4196:12;4158:52;4246:9;4233:23;4275:18;4316:2;4308:6;4305:14;4302:34;;;4332:1;4329;4322:12;4302:34;4370:6;4359:9;4355:22;4345:32;;4415:7;4408:4;4404:2;4400:13;4396:27;4386:55;;4437:1;4434;4427:12;4386:55;4477:2;4464:16;4503:2;4495:6;4492:14;4489:34;;;4519:1;4516;4509:12;4489:34;4564:7;4559:2;4550:6;4546:2;4542:15;4538:24;4535:37;4532:57;;;4585:1;4582;4575:12;4532:57;4616:2;4608:11;;;;;4638:6;;-1:-1:-1;4058:592:1;;-1:-1:-1;;;;4058:592:1:o;4655:615::-;4741:6;4749;4802:2;4790:9;4781:7;4777:23;4773:32;4770:52;;;4818:1;4815;4808:12;4770:52;4858:9;4845:23;4887:18;4928:2;4920:6;4917:14;4914:34;;;4944:1;4941;4934:12;4914:34;4982:6;4971:9;4967:22;4957:32;;5027:7;5020:4;5016:2;5012:13;5008:27;4998:55;;5049:1;5046;5039:12;4998:55;5089:2;5076:16;5115:2;5107:6;5104:14;5101:34;;;5131:1;5128;5121:12;5101:34;5184:7;5179:2;5169:6;5166:1;5162:14;5158:2;5154:23;5150:32;5147:45;5144:65;;;5205:1;5202;5195:12;5275:186;5334:6;5387:2;5375:9;5366:7;5362:23;5358:32;5355:52;;;5403:1;5400;5393:12;5355:52;5426:29;5445:9;5426:29;:::i;5466:248::-;5534:6;5542;5595:2;5583:9;5574:7;5570:23;5566:32;5563:52;;;5611:1;5608;5601:12;5563:52;-1:-1:-1;;5634:23:1;;;5704:2;5689:18;;;5676:32;;-1:-1:-1;5466:248:1:o;5719:254::-;5784:6;5792;5845:2;5833:9;5824:7;5820:23;5816:32;5813:52;;;5861:1;5858;5851:12;5813:52;5884:29;5903:9;5884:29;:::i;:::-;5874:39;;5932:35;5963:2;5952:9;5948:18;5932:35;:::i;5978:127::-;6039:10;6034:3;6030:20;6027:1;6020:31;6070:4;6067:1;6060:15;6094:4;6091:1;6084:15;6110:1138;6205:6;6213;6221;6229;6282:3;6270:9;6261:7;6257:23;6253:33;6250:53;;;6299:1;6296;6289:12;6250:53;6322:29;6341:9;6322:29;:::i;:::-;6312:39;;6370:38;6404:2;6393:9;6389:18;6370:38;:::i;:::-;6360:48;;6455:2;6444:9;6440:18;6427:32;6417:42;;6510:2;6499:9;6495:18;6482:32;6533:18;6574:2;6566:6;6563:14;6560:34;;;6590:1;6587;6580:12;6560:34;6628:6;6617:9;6613:22;6603:32;;6673:7;6666:4;6662:2;6658:13;6654:27;6644:55;;6695:1;6692;6685:12;6644:55;6731:2;6718:16;6753:2;6749;6746:10;6743:36;;;6759:18;;:::i;:::-;6834:2;6828:9;6802:2;6888:13;;-1:-1:-1;;6884:22:1;;;6908:2;6880:31;6876:40;6864:53;;;6932:18;;;6952:22;;;6929:46;6926:72;;;6978:18;;:::i;:::-;7018:10;7014:2;7007:22;7053:2;7045:6;7038:18;7093:7;7088:2;7083;7079;7075:11;7071:20;7068:33;7065:53;;;7114:1;7111;7104:12;7065:53;7170:2;7165;7161;7157:11;7152:2;7144:6;7140:15;7127:46;7215:1;7210:2;7205;7197:6;7193:15;7189:24;7182:35;7236:6;7226:16;;;;;;;6110:1138;;;;;;;:::o;7253:260::-;7321:6;7329;7382:2;7370:9;7361:7;7357:23;7353:32;7350:52;;;7398:1;7395;7388:12;7350:52;7421:29;7440:9;7421:29;:::i;:::-;7411:39;;7469:38;7503:2;7492:9;7488:18;7469:38;:::i;7518:380::-;7597:1;7593:12;;;;7640;;;7661:61;;7715:4;7707:6;7703:17;7693:27;;7661:61;7768:2;7760:6;7757:14;7737:18;7734:38;7731:161;;7814:10;7809:3;7805:20;7802:1;7795:31;7849:4;7846:1;7839:15;7877:4;7874:1;7867:15;7731:161;;7518:380;;;:::o;8500:127::-;8561:10;8556:3;8552:20;8549:1;8542:31;8592:4;8589:1;8582:15;8616:4;8613:1;8606:15;8632:127;8693:10;8688:3;8684:20;8681:1;8674:31;8724:4;8721:1;8714:15;8748:4;8745:1;8738:15;8764:128;8831:9;;;8852:11;;;8849:37;;;8866:18;;:::i;8897:127::-;8958:10;8953:3;8949:20;8946:1;8939:31;8989:4;8986:1;8979:15;9013:4;9010:1;9003:15;9029:135;9068:3;9089:17;;;9086:43;;9109:18;;:::i;:::-;-1:-1:-1;9156:1:1;9145:13;;9029:135::o;9675:545::-;9777:2;9772:3;9769:11;9766:448;;;9813:1;9838:5;9834:2;9827:17;9883:4;9879:2;9869:19;9953:2;9941:10;9937:19;9934:1;9930:27;9924:4;9920:38;9989:4;9977:10;9974:20;9971:47;;;-1:-1:-1;10012:4:1;9971:47;10067:2;10062:3;10058:12;10055:1;10051:20;10045:4;10041:31;10031:41;;10122:82;10140:2;10133:5;10130:13;10122:82;;;10185:17;;;10166:1;10155:13;10122:82;;;10126:3;;;9675:545;;;:::o;10396:1206::-;10520:18;10515:3;10512:27;10509:53;;;10542:18;;:::i;:::-;10571:94;10661:3;10621:38;10653:4;10647:11;10621:38;:::i;:::-;10615:4;10571:94;:::i;:::-;10691:1;10716:2;10711:3;10708:11;10733:1;10728:616;;;;11388:1;11405:3;11402:93;;;-1:-1:-1;11461:19:1;;;11448:33;11402:93;-1:-1:-1;;10353:1:1;10349:11;;;10345:24;10341:29;10331:40;10377:1;10373:11;;;10328:57;11508:78;;10701:895;;10728:616;9622:1;9615:14;;;9659:4;9646:18;;-1:-1:-1;;10764:17:1;;;10865:9;10887:229;10901:7;10898:1;10895:14;10887:229;;;10990:19;;;10977:33;10962:49;;11097:4;11082:20;;;;11050:1;11038:14;;;;10917:12;10887:229;;;10891:3;11144;11135:7;11132:16;11129:159;;;11268:1;11264:6;11258:3;11252;11249:1;11245:11;11241:21;11237:34;11233:39;11220:9;11215:3;11211:19;11198:33;11194:79;11186:6;11179:95;11129:159;;;11331:1;11325:3;11322:1;11318:11;11314:19;11308:4;11301:33;10701:895;;10396:1206;;;:::o;11607:390::-;11766:2;11755:9;11748:21;11805:6;11800:2;11789:9;11785:18;11778:34;11862:6;11854;11849:2;11838:9;11834:18;11821:48;11918:1;11889:22;;;11913:2;11885:31;;;11878:42;;;;11981:2;11960:15;;;-1:-1:-1;;11956:29:1;11941:45;11937:54;;11607:390;-1:-1:-1;11607:390:1:o;12002:443::-;12191:2;12173:21;;;12210:18;;12203:34;;;-1:-1:-1;;;;;;12249:31:1;;12246:51;;;12293:1;12290;12283:12;12246:51;12327:6;12324:1;12320:14;12384:6;12376;12371:2;12360:9;12356:18;12343:48;12412:22;;;;12436:2;12408:31;;12002:443;-1:-1:-1;;;12002:443:1:o;12450:496::-;12629:3;12667:6;12661:13;12683:66;12742:6;12737:3;12730:4;12722:6;12718:17;12683:66;:::i;:::-;12812:13;;12771:16;;;;12834:70;12812:13;12771:16;12881:4;12869:17;;12834:70;:::i;:::-;12920:20;;12450:496;-1:-1:-1;;;;12450:496:1:o;12951:125::-;13016:9;;;13037:10;;;13034:36;;;13050:18;;:::i;13081:489::-;-1:-1:-1;;;;;13350:15:1;;;13332:34;;13402:15;;13397:2;13382:18;;13375:43;13449:2;13434:18;;13427:34;;;13497:3;13492:2;13477:18;;13470:31;;;13275:4;;13518:46;;13544:19;;13536:6;13518:46;:::i;:::-;13510:54;13081:489;-1:-1:-1;;;;;;13081:489:1:o;13575:249::-;13644:6;13697:2;13685:9;13676:7;13672:23;13668:32;13665:52;;;13713:1;13710;13703:12;13665:52;13745:9;13739:16;13764:30;13788:5;13764:30;:::i
Swarm Source
ipfs://98ef81951d5d9fbc02f802cf18c2bb869a14bf69cc177d49a942947709494a99
Loading...
Loading
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.