Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
MushroomNFT
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-11-07 */ // Dependency file: @openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol // pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // Dependency file: @openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol // pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * // importANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // Dependency file: @openzeppelin/contracts-ethereum-package/contracts/utils/Address.sol // pragma solidity ^0.6.2; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [// importANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * // importANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } } // Dependency file: @openzeppelin/contracts-ethereum-package/contracts/token/ERC20/SafeERC20.sol // pragma solidity ^0.6.0; // import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol"; // import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol"; // import "@openzeppelin/contracts-ethereum-package/contracts/utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. // A Solidity high level call has three parts: // 1. The target address is checked to verify it contains contract code // 2. The call itself is made, and success asserted // 3. The return value is decoded, which in turn checks the size of the returned data. // solhint-disable-next-line max-line-length require(address(token).isContract(), "SafeERC20: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(token).call(data); require(success, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // Dependency file: @openzeppelin/contracts-ethereum-package/contracts/Initializable.sol // pragma solidity >=0.4.24 <0.7.0; /** * @title Initializable * * @dev Helper contract to support initializer functions. To use it, replace * the constructor with a function that has the `initializer` modifier. * WARNING: Unlike constructors, initializer functions must be manually * invoked. This applies both to deploying an Initializable contract, as well * as extending an Initializable contract via inheritance. * WARNING: When used with inheritance, manual care must be taken to not invoke * a parent initializer twice, or ensure that all initializers are idempotent, * because this is not dealt with automatically as with constructors. */ contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private initializing; /** * @dev Modifier to use in the initializer function of a contract. */ modifier initializer() { require(initializing || isConstructor() || !initialized, "Contract instance has already been initialized"); bool isTopLevelCall = !initializing; if (isTopLevelCall) { initializing = true; initialized = true; } _; if (isTopLevelCall) { initializing = false; } } /// @dev Returns true if and only if the function is running in the constructor function isConstructor() private view returns (bool) { // extcodesize checks the size of the code stored in an address, and // address returns the current address. Since the code is still not // deployed when running a constructor, any checks on its code size will // yield zero, making it an effective way to detect if a contract is // under construction or not. address self = address(this); uint256 cs; assembly { cs := extcodesize(self) } return cs == 0; } // Reserved storage space to allow for layout changes in the future. uint256[50] private ______gap; } // Dependency file: @openzeppelin/contracts-ethereum-package/contracts/GSN/Context.sol // pragma solidity ^0.6.0; // import "@openzeppelin/contracts-ethereum-package/contracts/Initializable.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 GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ contract ContextUpgradeSafe is Initializable { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer { } function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } uint256[50] private __gap; } // Dependency file: @openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol // pragma solidity ^0.6.0; // import "@openzeppelin/contracts-ethereum-package/contracts/GSN/Context.sol"; // import "@openzeppelin/contracts-ethereum-package/contracts/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ contract OwnableUpgradeSafe is Initializable, ContextUpgradeSafe { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal initializer { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal initializer { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } uint256[49] private __gap; } // Dependency file: @openzeppelin/contracts-ethereum-package/contracts/utils/EnumerableSet.sol // pragma solidity ^0.6.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256` * (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(value))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(value))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(value))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint256(_at(set._inner, index))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } } // Dependency file: @openzeppelin/contracts-ethereum-package/contracts/access/AccessControl.sol // pragma solidity ^0.6.0; // import "@openzeppelin/contracts-ethereum-package/contracts/utils/EnumerableSet.sol"; // import "@openzeppelin/contracts-ethereum-package/contracts/utils/Address.sol"; // import "@openzeppelin/contracts-ethereum-package/contracts/GSN/Context.sol"; // import "@openzeppelin/contracts-ethereum-package/contracts/Initializable.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, _msgSender())); * ... * } * ``` * * 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}. */ abstract contract AccessControlUpgradeSafe is Initializable, ContextUpgradeSafe { function __AccessControl_init() internal initializer { __Context_init_unchained(); __AccessControl_init_unchained(); } function __AccessControl_init_unchained() internal initializer { } using EnumerableSet for EnumerableSet.AddressSet; using Address for address; struct RoleData { EnumerableSet.AddressSet members; bytes32 adminRole; } mapping (bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {_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) public view returns (bool) { return _roles[role].members.contains(account); } /** * @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 returns (uint256) { return _roles[role].members.length(); } /** * @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 returns (address) { return _roles[role].members.at(index); } /** * @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 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. */ function grantRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant"); _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. */ function revokeRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke"); _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 granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (_roles[role].members.add(account)) { emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (_roles[role].members.remove(account)) { emit RoleRevoked(role, account, _msgSender()); } } uint256[49] private __gap; } // Dependency file: @openzeppelin/contracts-ethereum-package/contracts/introspection/IERC165.sol // pragma solidity ^0.6.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // Dependency file: @openzeppelin/contracts-ethereum-package/contracts/token/ERC721/IERC721.sol // pragma solidity ^0.6.2; // import "@openzeppelin/contracts-ethereum-package/contracts/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of NFTs in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the NFT specified by `tokenId`. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to * another (`to`). * * * * Requirements: * - `from`, `to` cannot be zero. * - `tokenId` must be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this * NFT by either {approve} or {setApprovalForAll}. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to * another (`to`). * * Requirements: * - If the caller is not `from`, it must be approved to move this NFT by * either {approve} or {setApprovalForAll}. */ function transferFrom(address from, address to, uint256 tokenId) external; function approve(address to, uint256 tokenId) external; function getApproved(uint256 tokenId) external view returns (address operator); function setApprovalForAll(address operator, bool _approved) external; function isApprovedForAll(address owner, address operator) external view returns (bool); function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; } // Dependency file: @openzeppelin/contracts-ethereum-package/contracts/token/ERC721/IERC721Metadata.sol // pragma solidity ^0.6.2; // import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC721/IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { function name() external view returns (string memory); function symbol() external view returns (string memory); function tokenURI(uint256 tokenId) external view returns (string memory); } // Dependency file: @openzeppelin/contracts-ethereum-package/contracts/token/ERC721/IERC721Enumerable.sol // pragma solidity ^0.6.2; // import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC721/IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { function totalSupply() external view returns (uint256); function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); function tokenByIndex(uint256 index) external view returns (uint256); } // Dependency file: @openzeppelin/contracts-ethereum-package/contracts/token/ERC721/IERC721Receiver.sol // pragma solidity ^0.6.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @notice Handle the receipt of an NFT * @dev The ERC721 smart contract calls this function on the recipient * after a {IERC721-safeTransferFrom}. This function MUST return the function selector, * otherwise the caller will revert the transaction. The selector to be * returned can be obtained as `this.onERC721Received.selector`. This * function MAY throw to revert and reject the transfer. * Note: the ERC721 contract address is always the message sender. * @param operator The address which called `safeTransferFrom` function * @param from The address which previously owned the token * @param tokenId The NFT identifier which is being transferred * @param data Additional data with no specified format * @return bytes4 `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` */ function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4); } // Dependency file: @openzeppelin/contracts-ethereum-package/contracts/introspection/ERC165.sol // pragma solidity ^0.6.0; // import "@openzeppelin/contracts-ethereum-package/contracts/introspection/IERC165.sol"; // import "@openzeppelin/contracts-ethereum-package/contracts/Initializable.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ contract ERC165UpgradeSafe is Initializable, IERC165 { /* * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7 */ bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; function __ERC165_init() internal initializer { __ERC165_init_unchained(); } function __ERC165_init_unchained() internal initializer { // Derived contracts need only register support for their own interfaces, // we register support for ERC165 itself here _registerInterface(_INTERFACE_ID_ERC165); } /** * @dev See {IERC165-supportsInterface}. * * Time complexity O(1), guaranteed to always use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) public view override returns (bool) { return _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal virtual { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } uint256[49] private __gap; } // Dependency file: @openzeppelin/contracts-ethereum-package/contracts/utils/EnumerableMap.sol // pragma solidity ^0.6.0; /** * @dev Library for managing an enumerable variant of Solidity's * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`] * type. * * Maps have the following properties: * * - Entries are added, removed, and checked for existence in constant time * (O(1)). * - Entries are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableMap for EnumerableMap.UintToAddressMap; * * // Declare a set state variable * EnumerableMap.UintToAddressMap private myMap; * } * ``` * * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are * supported. */ library EnumerableMap { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Map type with // bytes32 keys and values. // The Map implementation uses private functions, and user-facing // implementations (such as Uint256ToAddressMap) are just wrappers around // the underlying Map. // This means that we can only create new EnumerableMaps for types that fit // in bytes32. struct MapEntry { bytes32 _key; bytes32 _value; } struct Map { // Storage of map keys and values MapEntry[] _entries; // Position of the entry defined by a key in the `entries` array, plus 1 // because index 0 means a key is not in the map. mapping (bytes32 => uint256) _indexes; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) { // We read and store the key's index to prevent multiple reads from the same storage slot uint256 keyIndex = map._indexes[key]; if (keyIndex == 0) { // Equivalent to !contains(map, key) map._entries.push(MapEntry({ _key: key, _value: value })); // The entry is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value map._indexes[key] = map._entries.length; return true; } else { map._entries[keyIndex - 1]._value = value; return false; } } /** * @dev Removes a key-value pair from a map. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function _remove(Map storage map, bytes32 key) private returns (bool) { // We read and store the key's index to prevent multiple reads from the same storage slot uint256 keyIndex = map._indexes[key]; if (keyIndex != 0) { // Equivalent to contains(map, key) // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one // in the array, and then remove the last entry (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = keyIndex - 1; uint256 lastIndex = map._entries.length - 1; // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. MapEntry storage lastEntry = map._entries[lastIndex]; // Move the last entry to the index where the entry to delete is map._entries[toDeleteIndex] = lastEntry; // Update the index for the moved entry map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved entry was stored map._entries.pop(); // Delete the index for the deleted slot delete map._indexes[key]; return true; } else { return false; } } /** * @dev Returns true if the key is in the map. O(1). */ function _contains(Map storage map, bytes32 key) private view returns (bool) { return map._indexes[key] != 0; } /** * @dev Returns the number of key-value pairs in the map. O(1). */ function _length(Map storage map) private view returns (uint256) { return map._entries.length; } /** * @dev Returns the key-value pair stored at position `index` in the map. O(1). * * Note that there are no guarantees on the ordering of entries inside the * array, and it may change when more entries are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) { require(map._entries.length > index, "EnumerableMap: index out of bounds"); MapEntry storage entry = map._entries[index]; return (entry._key, entry._value); } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function _get(Map storage map, bytes32 key) private view returns (bytes32) { return _get(map, key, "EnumerableMap: nonexistent key"); } /** * @dev Same as {_get}, with a custom error message when `key` is not in the map. */ function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) { uint256 keyIndex = map._indexes[key]; require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key) return map._entries[keyIndex - 1]._value; // All indexes are 1-based } // UintToAddressMap struct UintToAddressMap { Map _inner; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) { return _set(map._inner, bytes32(key), bytes32(uint256(value))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) { return _remove(map._inner, bytes32(key)); } /** * @dev Returns true if the key is in the map. O(1). */ function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) { return _contains(map._inner, bytes32(key)); } /** * @dev Returns the number of elements in the map. O(1). */ function length(UintToAddressMap storage map) internal view returns (uint256) { return _length(map._inner); } /** * @dev Returns the element stored at position `index` in the set. O(1). * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) { (bytes32 key, bytes32 value) = _at(map._inner, index); return (uint256(key), address(uint256(value))); } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function get(UintToAddressMap storage map, uint256 key) internal view returns (address) { return address(uint256(_get(map._inner, bytes32(key)))); } /** * @dev Same as {get}, with a custom error message when `key` is not in the map. */ function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) { return address(uint256(_get(map._inner, bytes32(key), errorMessage))); } } // Dependency file: @openzeppelin/contracts-ethereum-package/contracts/utils/Strings.sol // pragma solidity ^0.6.0; /** * @dev String operations. */ library Strings { /** * @dev Converts a `uint256` to its ASCII `string` representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); uint256 index = digits - 1; temp = value; while (temp != 0) { buffer[index--] = byte(uint8(48 + temp % 10)); temp /= 10; } return string(buffer); } } // Dependency file: contracts/ERC721.sol // SPDX-License-Identifier: MIT // pragma solidity ^0.6.0; // import "@openzeppelin/contracts-ethereum-package/contracts/GSN/Context.sol"; // import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC721/IERC721.sol"; // import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC721/IERC721Metadata.sol"; // import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC721/IERC721Enumerable.sol"; // import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC721/IERC721Receiver.sol"; // import "@openzeppelin/contracts-ethereum-package/contracts/introspection/ERC165.sol"; // import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol"; // import "@openzeppelin/contracts-ethereum-package/contracts/utils/Address.sol"; // import "@openzeppelin/contracts-ethereum-package/contracts/utils/EnumerableSet.sol"; // import "@openzeppelin/contracts-ethereum-package/contracts/utils/EnumerableMap.sol"; // import "@openzeppelin/contracts-ethereum-package/contracts/utils/Strings.sol"; // import "@openzeppelin/contracts-ethereum-package/contracts/Initializable.sol"; /** * @title ERC721 Non-Fungible Token Standard basic implementation * @dev see https://eips.ethereum.org/EIPS/eip-721 */ contract ERC721UpgradeSafe is Initializable, ContextUpgradeSafe, ERC165UpgradeSafe, IERC721, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector` bytes4 private constant _ERC721_RECEIVED = 0x150b7a02; // Mapping from holder address to their (enumerable) set of owned tokens mapping (address => EnumerableSet.UintSet) private _holderTokens; // Enumerable mapping from token ids to their owners EnumerableMap.UintToAddressMap private _tokenOwners; // Mapping from token ID to approved address mapping (uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) private _operatorApprovals; // Token name string private _name; // Token symbol string private _symbol; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; // Base URI string private _baseURI; /* * bytes4(keccak256('balanceOf(address)')) == 0x70a08231 * bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e * bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3 * bytes4(keccak256('getApproved(uint256)')) == 0x081812fc * bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465 * bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5 * bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd * bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e * bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde * * => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^ * 0xa22cb465 ^ 0xe985e9c ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd */ bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd; /* * bytes4(keccak256('name()')) == 0x06fdde03 * bytes4(keccak256('symbol()')) == 0x95d89b41 * bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd * * => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f */ bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f; /* * bytes4(keccak256('totalSupply()')) == 0x18160ddd * bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59 * bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7 * * => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63 */ bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63; function __ERC721_init(string memory name, string memory symbol) internal initializer { __Context_init_unchained(); __ERC165_init_unchained(); __ERC721_init_unchained(name, symbol); } function __ERC721_init_unchained(string memory name, string memory symbol) internal initializer { _name = name; _symbol = symbol; // register the supported interfaces to conform to ERC721 via ERC165 _registerInterface(_INTERFACE_ID_ERC721); _registerInterface(_INTERFACE_ID_ERC721_METADATA); _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE); } /** * @dev Gets the balance of the specified address. * @param owner address to query the balance of * @return uint256 representing the amount owned by the passed address */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _holderTokens[owner].length(); } /** * @dev Gets the owner of the specified token ID. * @param tokenId uint256 ID of the token to query the owner of * @return address currently marked as the owner of the given token ID */ function ownerOf(uint256 tokenId) public view override returns (address) { return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token"); } /** * @dev Gets the token name. * @return string representing the token name */ function name() public view override returns (string memory) { return _name; } /** * @dev Gets the token symbol. * @return string representing the token symbol */ function symbol() public view override returns (string memory) { return _symbol; } /** * @dev Returns the URI for a given token ID. May return an empty string. * * If a base URI is set (via {_setBaseURI}), it is added as a prefix to the * token's own URI (via {_setTokenURI}). * * If there is a base URI but no token URI, the token's ID will be used as * its URI when appending it to the base URI. This pattern for autogenerated * token URIs can lead to large gas savings. * * .Examples * |=== * |`_setBaseURI()` |`_setTokenURI()` |`tokenURI()` * | "" * | "" * | "" * | "" * | "token.uri/123" * | "token.uri/123" * | "token.uri/" * | "123" * | "token.uri/123" * | "token.uri/" * | "" * | "token.uri/<tokenId>" * |=== * * Requirements: * * - `tokenId` must exist. */ function tokenURI(uint256 tokenId) public view override virtual returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; // If there is no base URI, return the token URI. if (bytes(_baseURI).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(_baseURI, _tokenURI)); } // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI. return string(abi.encodePacked(_baseURI, tokenId.toString())); } /** * @dev Returns the base URI set via {_setBaseURI}. This will be * automatically added as a prefix in {tokenURI} to each token's URI, or * to the token ID if no specific URI is set for that token ID. */ function baseURI() public view returns (string memory) { return _baseURI; } /** * @dev Gets the token ID at a given index of the tokens list of the requested owner. * @param owner address owning the tokens list to be accessed * @param index uint256 representing the index to be accessed of the requested tokens list * @return uint256 token ID at the given index of the tokens list owned by the requested address */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { return _holderTokens[owner].at(index); } /** * @dev Gets the total amount of tokens stored by the contract. * @return uint256 representing the total amount of tokens */ function totalSupply() public view override returns (uint256) { // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds return _tokenOwners.length(); } /** * @dev Gets the token ID at a given index of all the tokens in this contract * Reverts if the index is greater or equal to the total number of tokens. * @param index uint256 representing the index to be accessed of the tokens list * @return uint256 token ID at the given index of the tokens list */ function tokenByIndex(uint256 index) public view override returns (uint256) { (uint256 tokenId, ) = _tokenOwners.at(index); return tokenId; } /** * @dev Approves another address to transfer the given token ID * The zero address indicates there is no approved address. * There can only be one approved address per token at a given time. * Can only be called by the token owner or an approved operator. * @param to address to be approved for the given token ID * @param tokenId uint256 ID of the token to be approved */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev Gets the approved address for a token ID, or zero if no address set * Reverts if the token ID does not exist. * @param tokenId uint256 ID of the token to query the approval of * @return address currently approved for the given token ID */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev Sets or unsets the approval of a given operator * An operator is allowed to transfer all tokens of the sender on their behalf. * @param operator operator address to set the approval * @param approved representing the status of the approval to be set */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev Tells whether an operator is approved by a given owner. * @param owner owner address which you want to query the approval of * @param operator operator address which you want to query the approval of * @return bool whether the given operator is approved by the given owner */ function isApprovedForAll(address owner, address operator) public view override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Transfers the ownership of a given token ID to another address. * Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * Requires the msg.sender to be the owner, approved, or operator. * @param from current owner of the token * @param to address to receive the ownership of the given token ID * @param tokenId uint256 ID of the token to be transferred */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev Safely transfers the ownership of a given token ID to another address * If the target address is a contract, it must implement {IERC721Receiver-onERC721Received}, * which is called upon a safe transfer, and return the magic value * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise, * the transfer is reverted. * Requires the msg.sender to be the owner, approved, or operator * @param from current owner of the token * @param to address to receive the ownership of the given token ID * @param tokenId uint256 ID of the token to be transferred */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev Safely transfers the ownership of a given token ID to another address * If the target address is a contract, it must implement {IERC721Receiver-onERC721Received}, * which is called upon a safe transfer, and return the magic value * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise, * the transfer is reverted. * Requires the _msgSender() to be the owner, approved, or operator * @param from current owner of the token * @param to address to receive the ownership of the given token ID * @param tokenId uint256 ID of the token to be transferred * @param _data bytes data to send along with a safe transfer check */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers the ownership of a given token ID to another address * If the target address is a contract, it must implement `onERC721Received`, * which is called upon a safe transfer, and return the magic value * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise, * the transfer is reverted. * Requires the msg.sender to be the owner, approved, or operator * @param from current owner of the token * @param to address to receive the ownership of the given token ID * @param tokenId uint256 ID of the token to be transferred * @param _data bytes data to send along with a safe transfer check */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether the specified token exists. * @param tokenId uint256 ID of the token to query the existence of * @return bool whether the token exists */ function _exists(uint256 tokenId) internal view returns (bool) { return _tokenOwners.contains(tokenId); } /** * @dev Returns whether the given spender can transfer a given token ID. * @param spender address of the spender to query * @param tokenId uint256 ID of the token to be transferred * @return bool whether the msg.sender is approved for the given token ID, * is an operator of the owner, or is the owner of the token */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Internal function to safely mint a new token. * Reverts if the given token ID already exists. * If the target address is a contract, it must implement `onERC721Received`, * which is called upon a safe transfer, and return the magic value * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise, * the transfer is reverted. * @param to The address that will own the minted token * @param tokenId uint256 ID of the token to be minted */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Internal function to safely mint a new token. * Reverts if the given token ID already exists. * If the target address is a contract, it must implement `onERC721Received`, * which is called upon a safe transfer, and return the magic value * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise, * the transfer is reverted. * @param to The address that will own the minted token * @param tokenId uint256 ID of the token to be minted * @param _data bytes data to send along with a safe transfer check */ function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual { _mint(to, tokenId); require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Internal function to mint a new token. * Reverts if the given token ID already exists. * @param to The address that will own the minted token * @param tokenId uint256 ID of the token to be minted */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _holderTokens[to].add(tokenId); _tokenOwners.set(tokenId, to); emit Transfer(address(0), to, tokenId); } /** * @dev Internal function to burn a specific token. * Reverts if the token does not exist. * @param tokenId uint256 ID of the token being burned */ function _burn(uint256 tokenId) internal virtual { address owner = ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); // Clear metadata (if any) if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } _holderTokens[owner].remove(tokenId); _tokenOwners.remove(tokenId); emit Transfer(owner, address(0), tokenId); } /** * @dev Internal function to transfer ownership of a given token ID to another address. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * @param from current owner of the token * @param to address to receive the ownership of the given token ID * @param tokenId uint256 ID of the token to be transferred */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _holderTokens[from].remove(tokenId); _holderTokens[to].add(tokenId); _tokenOwners.set(tokenId, to); emit Transfer(from, to, tokenId); } /** * @dev Internal function to set the token URI for a given token. * * Reverts if the token ID does not exist. * * TIP: If all token IDs share a prefix (for example, if your URIs look like * `https://api.myproject.com/token/<id>`), use {_setBaseURI} to store * it and save gas. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev Internal function to set the base URI for all token IDs. It is * automatically added as a prefix to the value returned in {tokenURI}, * or to the token ID if {tokenURI} is empty. */ function _setBaseURI(string memory baseURI_) internal virtual { _baseURI = baseURI_; } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data) private returns (bool) { if (!to.isContract()) { return true; } // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = to.call(abi.encodeWithSelector( IERC721Receiver(to).onERC721Received.selector, _msgSender(), from, tokenId, _data )); if (!success) { if (returndata.length > 0) { // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert("ERC721: transfer to non ERC721Receiver implementer"); } } else { bytes4 retval = abi.decode(returndata, (bytes4)); return (retval == _ERC721_RECEIVED); } } function _approve(address to, uint256 tokenId) private { _tokenApprovals[tokenId] = to; emit Approval(ownerOf(tokenId), to, tokenId); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - when `from` is zero, `tokenId` will be minted for `to`. * - when `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { } uint256[41] private __gap; } // Dependency file: contracts/MushroomLib.sol // pragma solidity ^0.6.0; library MushroomLib { struct MushroomData { uint256 species; uint256 strength; uint256 lifespan; } struct MushroomType { uint256 id; uint256 strength; uint256 minLifespan; uint256 maxLifespan; uint256 minted; uint256 cap; } } // Dependency file: contracts/MushroomNFT.sol // pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; // import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol"; // import "@openzeppelin/contracts-ethereum-package/contracts/access/AccessControl.sol"; // import "contracts/ERC721.sol"; // import "contracts/MushroomLib.sol"; /* Minting and burning permissions are managed by the Owner */ contract MushroomNFT is ERC721UpgradeSafe, OwnableUpgradeSafe, AccessControlUpgradeSafe { using MushroomLib for MushroomLib.MushroomData; using MushroomLib for MushroomLib.MushroomType; mapping (uint256 => MushroomLib.MushroomData) public mushroomData; // NFT Id -> Metadata mapping (uint256 => MushroomLib.MushroomType) public mushroomTypes; // Species Id -> Metadata mapping (uint256 => bool) public mushroomTypeExists; // Species Id -> Exists mapping (uint256 => string) public mushroomMetadataUri; // Species Id -> URI bytes32 public constant LIFESPAN_MODIFIER_ROLE = keccak256("LIFESPAN_MODIFIER_ROLE"); bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); uint256 public burnedCount; function initialize() public initializer { __Ownable_init_unchained(); __AccessControl_init_unchained(); __ERC721_init("Enoki Mushrooms", "Enoki Mushrooms"); _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); } /* ========== VIEWS ========== */ // Mushrooms inherit their strength from their species function getMushroomData(uint256 tokenId) public view returns (MushroomLib.MushroomData memory) { MushroomLib.MushroomData memory data = mushroomData[tokenId]; return data; } function getSpecies(uint256 speciesId) public view returns (MushroomLib.MushroomType memory) { return mushroomTypes[speciesId]; } function getRemainingMintableForSpecies(uint256 speciesId) public view returns (uint256) { MushroomLib.MushroomType storage species = mushroomTypes[speciesId]; return species.cap.sub(species.minted); } /// @notice Return token URI for mushroom /// @notice URI is determined by species and can be modifed by the owner function tokenURI(uint256 tokenId) public view override returns (string memory) { MushroomLib.MushroomData storage data = mushroomData[tokenId]; return mushroomMetadataUri[data.species]; } /* ========== ROLE MANAGEMENT ========== */ // TODO: Ensure we can transfer admin role privledges modifier onlyLifespanModifier() { require(hasRole(LIFESPAN_MODIFIER_ROLE, msg.sender), "MushroomNFT: Only approved lifespan modifier"); _; } modifier onlyMinter() { require(hasRole(MINTER_ROLE, msg.sender), "MushroomNFT: Only approved mushroom minter"); _; } modifier onlyAdmin() { require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "MushroomNFT: Only approved admin"); _; } /* ========== RESTRICTED FUNCTIONS ========== */ /** * @dev The burner must be the owner of the token, or approved. The EnokiGeyser owns tokens when it burns them. */ function burn(uint256 tokenId) public { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); burnedCount = burnedCount.add(1); _clearMushroomData(tokenId); } function initializeBurnCount(uint256 count) public onlyAdmin { burnedCount = count; } function mint(address recipient, uint256 tokenId, uint256 speciesId, uint256 lifespan) public onlyMinter { _mintWithMetadata(recipient, tokenId, speciesId, lifespan); } /// @notice return next available index Id function nextIndex() external view returns (uint256) { return totalSupply().add(burnedCount).add(1); } function setMushroomLifespan(uint256 index, uint256 lifespan) public onlyLifespanModifier { mushroomData[index].lifespan = lifespan; } function setSpeciesUri(uint256 speciesId, string memory URI) public onlyOwner { mushroomMetadataUri[speciesId] = URI; } function _mintWithMetadata(address recipient, uint256 tokenId, uint256 speciesId, uint256 lifespan) internal { require(mushroomTypeExists[speciesId], "MushroomNFT: mushroom species specified does not exist"); MushroomLib.MushroomType storage species = mushroomTypes[speciesId]; require(species.minted < species.cap, "MushroomNFT: minting cap reached for species"); species.minted = species.minted.add(1); mushroomData[tokenId] = MushroomLib.MushroomData(speciesId, species.strength, lifespan); _safeMint(recipient, tokenId); } // TODO: We don't really have to do this as a newly minted mushroom will set the data function _clearMushroomData(uint256 tokenId) internal { MushroomLib.MushroomData storage data = mushroomData[tokenId]; MushroomLib.MushroomType storage species = mushroomTypes[data.species]; mushroomData[tokenId].species = 0; mushroomData[tokenId].strength = 0; mushroomData[tokenId].lifespan = 0; species.minted = species.minted.sub(1); } function setMushroomType(uint256 speciesId, MushroomLib.MushroomType memory mType) public onlyOwner { if (!mushroomTypeExists[speciesId]) { mushroomTypeExists[speciesId] = true; } mushroomTypes[speciesId] = mType; } } // Root file: contracts/MushroomFactory.sol pragma solidity ^0.6.0; // pragma experimental ABIEncoderV2; // import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol"; // import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol"; // import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/SafeERC20.sol"; // import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol"; // import "contracts/MushroomNFT.sol"; // import "contracts/MushroomLib.sol"; /* MushroomFactories manage the mushroom generation logic for pools Each pool will have it's own factory to generate mushrooms according to its' powers. The mushroomFactory should be administered by the pool, which grants the ability to grow mushrooms */ contract MushroomFactory is Initializable, OwnableUpgradeSafe { using MushroomLib for MushroomLib.MushroomData; using MushroomLib for MushroomLib.MushroomType; using SafeMath for uint256; event MushroomGrown(address recipient, uint256 id, uint256 species, uint256 lifespan); IERC20 public sporeToken; MushroomNFT public mushroomNft; uint256 public costPerMushroom; uint256 public mySpecies; uint256 public spawnCount; function initialize( IERC20 sporeToken_, MushroomNFT mushroomNft_, address sporePool_, uint256 costPerMushroom_, uint256 mySpecies_ ) public initializer { __Ownable_init(); sporeToken = sporeToken_; mushroomNft = mushroomNft_; costPerMushroom = costPerMushroom_; mySpecies = mySpecies_; transferOwnership(sporePool_); } /* Each mushroom will have a randomly generated lifespan within it's range. To prevent mushrooms harvested at the same block from having the same properties, a spawnCount seed is added to the block timestamp before hashing the timestamp to generate the lifespan for each individual mushroom. Note that block.timestamp is somewhat manipulatable by Miners. If a Miner was a massive ENOKI fan and only harvested when the mined a block they could give themselves mushrooms with longer lifespan than the average. However, the lifespan is still constained by the max lifespan. */ function _generateMushroomLifespan(uint256 minLifespan, uint256 maxLifespan) internal returns (uint256) { uint256 range = maxLifespan.sub(minLifespan); uint256 fromMin = uint256(keccak256(abi.encodePacked(block.timestamp.add(spawnCount)))) % range; spawnCount = spawnCount.add(1); return minLifespan.add(fromMin); } function getRemainingMintableForMySpecies() public view returns (uint256) { return mushroomNft.getRemainingMintableForSpecies(mySpecies); } // Each mushroom costs 1/10th of the spore rate in spores. function growMushrooms(address recipient, uint256 numMushrooms) public onlyOwner { MushroomLib.MushroomType memory species = mushroomNft.getSpecies(mySpecies); require(getRemainingMintableForMySpecies() >= numMushrooms, "MushroomFactory: Mushrooms to grow exceeds species cap"); for (uint256 i = 0; i < numMushrooms; i++) { uint256 nextId = mushroomNft.nextIndex(); uint256 lifespan = _generateMushroomLifespan(species.minLifespan, species.maxLifespan); mushroomNft.mint(recipient, nextId, mySpecies, lifespan); emit MushroomGrown(recipient, nextId, mySpecies, lifespan); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LIFESPAN_MODIFIER_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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getMushroomData","outputs":[{"components":[{"internalType":"uint256","name":"species","type":"uint256"},{"internalType":"uint256","name":"strength","type":"uint256"},{"internalType":"uint256","name":"lifespan","type":"uint256"}],"internalType":"struct MushroomLib.MushroomData","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"speciesId","type":"uint256"}],"name":"getRemainingMintableForSpecies","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"speciesId","type":"uint256"}],"name":"getSpecies","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"strength","type":"uint256"},{"internalType":"uint256","name":"minLifespan","type":"uint256"},{"internalType":"uint256","name":"maxLifespan","type":"uint256"},{"internalType":"uint256","name":"minted","type":"uint256"},{"internalType":"uint256","name":"cap","type":"uint256"}],"internalType":"struct MushroomLib.MushroomType","name":"","type":"tuple"}],"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":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"initializeBurnCount","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"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"speciesId","type":"uint256"},{"internalType":"uint256","name":"lifespan","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mushroomData","outputs":[{"internalType":"uint256","name":"species","type":"uint256"},{"internalType":"uint256","name":"strength","type":"uint256"},{"internalType":"uint256","name":"lifespan","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mushroomMetadataUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mushroomTypeExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mushroomTypes","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"strength","type":"uint256"},{"internalType":"uint256","name":"minLifespan","type":"uint256"},{"internalType":"uint256","name":"maxLifespan","type":"uint256"},{"internalType":"uint256","name":"minted","type":"uint256"},{"internalType":"uint256","name":"cap","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextIndex","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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"lifespan","type":"uint256"}],"name":"setMushroomLifespan","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"speciesId","type":"uint256"},{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"strength","type":"uint256"},{"internalType":"uint256","name":"minLifespan","type":"uint256"},{"internalType":"uint256","name":"maxLifespan","type":"uint256"},{"internalType":"uint256","name":"minted","type":"uint256"},{"internalType":"uint256","name":"cap","type":"uint256"}],"internalType":"struct MushroomLib.MushroomType","name":"mType","type":"tuple"}],"name":"setMushroomType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"speciesId","type":"uint256"},{"internalType":"string","name":"URI","type":"string"}],"name":"setSpeciesUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506156c680620000216000396000f3fe608060405234801561001057600080fd5b506004361061028a5760003560e01c80637cefcc521161015c578063ac04efc9116100ce578063ca15c87311610087578063ca15c87314610836578063d539139314610866578063d547741f14610884578063e985e9c5146108a0578063f2fde38b146108d0578063fc7e9c6f146108ec5761028a565b8063ac04efc914610764578063b37fce1b14610780578063b88d4fde1461079c578063b9131155146107b8578063bc136a17146107d6578063c87b56dd146108065761028a565b8063946753b111610120578063946753b11461068957806395d89b41146106bb578063a217fddf146106d9578063a22cb465146106f7578063a59a03cb14610713578063a647e8ec146107485761028a565b80637cefcc52146105e35780638129fc1c146106015780638da5cb5b1461060b5780639010d07c1461062957806391d14854146106595761028a565b80632f2ff15d1161020057806360e9ffe9116101b957806360e9ffe9146104fb5780636352211e1461052b57806365e4b3b81461055b5780636c0360eb1461058b57806370a08231146105a9578063715018a6146105d95761028a565b80632f2ff15d1461042b5780632f745c591461044757806336568abe1461047757806342842e0e1461049357806342966c68146104af5780634f6ccce7146104cb5761028a565b806318160ddd1161025257806318160ddd14610359578063183869461461037757806323b872dd14610393578063248a9ca3146103af5780632be6a2a9146103df5780632cd58ea11461040f5761028a565b806301ffc9a71461028f57806306fdde03146102bf578063081812fc146102dd578063095ea7b31461030d5780630d644a7c14610329575b600080fd5b6102a960048036038101906102a491906141eb565b61090a565b6040516102b69190614f88565b60405180910390f35b6102c7610972565b6040516102d49190614fbe565b60405180910390f35b6102f760048036038101906102f2919061423d565b610a14565b6040516103049190614f21565b60405180910390f35b610327600480360381019061032291906140ab565b610a99565b005b610343600480360381019061033e919061423d565b610bb1565b6040516103509190614f88565b60405180910390f35b610361610bd2565b60405161036e9190615396565b60405180910390f35b610391600480360381019061038c919061423d565b610be3565b005b6103ad60048036038101906103a89190613fa5565b610c3a565b005b6103c960048036038101906103c4919061414a565b610c9a565b6040516103d69190614fa3565b60405180910390f35b6103f960048036038101906103f4919061423d565b610cba565b604051610406919061537b565b60405180910390f35b610429600480360381019061042491906142ba565b610d24565b005b61044560048036038101906104409190614173565b610e67565b005b610461600480360381019061045c91906140ab565b610edb565b60405161046e9190615396565b60405180910390f35b610491600480360381019061048c9190614173565b610f36565b005b6104ad60048036038101906104a89190613fa5565b610fb9565b005b6104c960048036038101906104c4919061423d565b610fd9565b005b6104e560048036038101906104e0919061423d565b61105c565b6040516104f29190615396565b60405180910390f35b6105156004803603810190610510919061423d565b61107f565b6040516105229190615360565b60405180910390f35b6105456004803603810190610540919061423d565b6110d7565b6040516105529190614f21565b60405180910390f35b6105756004803603810190610570919061423d565b61110e565b6040516105829190614fbe565b60405180910390f35b6105936111bf565b6040516105a09190614fbe565b60405180910390f35b6105c360048036038101906105be9190613f40565b611261565b6040516105d09190615396565b60405180910390f35b6105e1611320565b005b6105eb611478565b6040516105f89190615396565b60405180910390f35b61060961147f565b005b6106136115f8565b6040516106209190614f21565b60405180910390f35b610643600480360381019061063e91906141af565b611622565b6040516106509190614f21565b60405180910390f35b610673600480360381019061066e9190614173565b611654565b6040516106809190614f88565b60405180910390f35b6106a3600480360381019061069e919061423d565b611686565b6040516106b2939291906153b1565b60405180910390f35b6106c36116b1565b6040516106d09190614fbe565b60405180910390f35b6106e1611753565b6040516106ee9190614fa3565b60405180910390f35b610711600480360381019061070c919061406f565b61175a565b005b61072d6004803603810190610728919061423d565b6118db565b60405161073f969594939291906153e8565b60405180910390f35b610762600480360381019061075d91906140e7565b611918565b005b61077e60048036038101906107799190614266565b611993565b005b61079a600480360381019061079591906142f6565b611a57565b005b6107b660048036038101906107b19190613ff4565b611ae0565b005b6107c0611b42565b6040516107cd9190614fa3565b60405180910390f35b6107f060048036038101906107eb919061423d565b611b66565b6040516107fd9190615396565b60405180910390f35b610820600480360381019061081b919061423d565b611ba2565b60405161082d9190614fbe565b60405180910390f35b610850600480360381019061084b919061414a565b611c75565b60405161085d9190615396565b60405180910390f35b61086e611c9c565b60405161087b9190614fa3565b60405180910390f35b61089e60048036038101906108999190614173565b611cc0565b005b6108ba60048036038101906108b59190613f69565b611d34565b6040516108c79190614f88565b60405180910390f35b6108ea60048036038101906108e59190613f40565b611dc8565b005b6108f4611f8f565b6040516109019190615396565b60405180910390f35b600060656000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b6060609c8054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610a0a5780601f106109df57610100808354040283529160200191610a0a565b820191906000526020600020905b8154815290600101906020018083116109ed57829003601f168201915b5050505050905090565b6000610a1f82611fc6565b610a5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5590615220565b60405180910390fd5b609a600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610aa4826110d7565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0c906152e0565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b34611fe3565b73ffffffffffffffffffffffffffffffffffffffff161480610b635750610b6281610b5d611fe3565b611d34565b5b610ba2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b99906151a0565b60405180910390fd5b610bac8383611feb565b505050565b61012f6020528060005260406000206000915054906101000a900460ff1681565b6000610bde60986120a4565b905090565b610bf06000801b33611654565b610c2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2690615260565b60405180910390fd5b806101318190555050565b610c4b610c45611fe3565b826120b9565b610c8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8190615300565b60405180910390fd5b610c95838383612197565b505050565b600060fb6000838152602001908152602001600020600201549050919050565b610cc2613c42565b61012e60008381526020019081526020016000206040518060c001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815250509050919050565b610d2c611fe3565b73ffffffffffffffffffffffffffffffffffffffff1660c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610dbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db290615240565b60405180910390fd5b61012f600083815260200190815260200160002060009054906101000a900460ff16610e0f57600161012f600084815260200190815260200160002060006101000a81548160ff0219169083151502179055505b8061012e6000848152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a082015181600501559050505050565b610e8e60fb600084815260200190815260200160002060020154610e89611fe3565b611654565b610ecd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec490615000565b60405180910390fd5b610ed782826123ae565b5050565b6000610f2e82609760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061244290919063ffffffff16565b905092915050565b610f3e611fe3565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610fab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa290615340565b60405180910390fd5b610fb5828261245c565b5050565b610fd483838360405180602001604052806000815250611ae0565b505050565b610fea610fe4611fe3565b826120b9565b611029576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102090615320565b60405180910390fd5b611032816124f0565b61104960016101315461262a90919063ffffffff16565b610131819055506110598161267f565b50565b60008061107383609861272f90919063ffffffff16565b50905080915050919050565b611087613c78565b61108f613c78565b61012d60008481526020019081526020016000206040518060600160405290816000820154815260200160018201548152602001600282015481525050905080915050919050565b60006111078260405180606001604052806029815260200161566860299139609861275b9092919063ffffffff16565b9050919050565b6101306020528060005260406000206000915090508054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156111b75780601f1061118c576101008083540402835291602001916111b7565b820191906000526020600020905b81548152906001019060200180831161119a57829003601f168201915b505050505081565b6060609f8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156112575780601f1061122c57610100808354040283529160200191611257565b820191906000526020600020905b81548152906001019060200180831161123a57829003601f168201915b5050505050905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156112d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c9906151c0565b60405180910390fd5b611319609760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061277a565b9050919050565b611328611fe3565b73ffffffffffffffffffffffffffffffffffffffff1660c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146113b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ae90615240565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3600060c960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6101315481565b600060019054906101000a900460ff168061149e575061149d61278f565b5b806114b4575060008054906101000a900460ff16155b6114f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ea90615280565b60405180910390fd5b60008060019054906101000a900460ff161590508015611543576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b61154b6127a6565b611553612937565b6115c76040518060400160405280600f81526020017f456e6f6b69204d757368726f6f6d7300000000000000000000000000000000008152506040518060400160405280600f81526020017f456e6f6b69204d757368726f6f6d730000000000000000000000000000000000815250612a1f565b6115d46000801b33612b23565b80156115f55760008060016101000a81548160ff0219169083151502179055505b50565b600060c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600061164c8260fb6000868152602001908152602001600020600001612b3190919063ffffffff16565b905092915050565b600061167e8260fb6000868152602001908152602001600020600001612b4b90919063ffffffff16565b905092915050565b61012d6020528060005260406000206000915090508060000154908060010154908060020154905083565b6060609d8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156117495780601f1061171e57610100808354040283529160200191611749565b820191906000526020600020905b81548152906001019060200180831161172c57829003601f168201915b5050505050905090565b6000801b81565b611762611fe3565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156117d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c790615100565b60405180910390fd5b80609b60006117dd611fe3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661188a611fe3565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118cf9190614f88565b60405180910390a35050565b61012e6020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040154908060050154905086565b6119427f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633611654565b611981576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611978906152c0565b60405180910390fd5b61198d84848484612b7b565b50505050565b61199b611fe3565b73ffffffffffffffffffffffffffffffffffffffff1660c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611a2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2190615240565b60405180910390fd5b8061013060008481526020019081526020016000209080519060200190611a52929190613c99565b505050565b611a817f633a5d9797475d59f7069d35ff23ade48bb0f1ef7aa1649e9cd6ef591e049be133611654565b611ac0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab790615180565b60405180910390fd5b8061012d6000848152602001908152602001600020600201819055505050565b611af1611aeb611fe3565b836120b9565b611b30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2790615300565b60405180910390fd5b611b3c84848484612cc3565b50505050565b7f633a5d9797475d59f7069d35ff23ade48bb0f1ef7aa1649e9cd6ef591e049be181565b60008061012e60008481526020019081526020016000209050611b9a81600401548260050154612d1f90919063ffffffff16565b915050919050565b6060600061012d600084815260200190815260200160002090506101306000826000015481526020019081526020016000208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611c685780601f10611c3d57610100808354040283529160200191611c68565b820191906000526020600020905b815481529060010190602001808311611c4b57829003601f168201915b5050505050915050919050565b6000611c9560fb6000848152602001908152602001600020600001612d69565b9050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b611ce760fb600084815260200190815260200160002060020154611ce2611fe3565b611654565b611d26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1d90615160565b60405180910390fd5b611d30828261245c565b5050565b6000609b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611dd0611fe3565b73ffffffffffffffffffffffffffffffffffffffff1660c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611e5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5690615240565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ecf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec690615040565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a38060c960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000611fc16001611fb361013154611fa5610bd2565b61262a90919063ffffffff16565b61262a90919063ffffffff16565b905090565b6000611fdc826098612d7e90919063ffffffff16565b9050919050565b600033905090565b81609a600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661205e836110d7565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006120b282600001612d98565b9050919050565b60006120c482611fc6565b612103576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120fa90615140565b60405180910390fd5b600061210e836110d7565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061217d57508373ffffffffffffffffffffffffffffffffffffffff1661216584610a14565b73ffffffffffffffffffffffffffffffffffffffff16145b8061218e575061218d8185611d34565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166121b7826110d7565b73ffffffffffffffffffffffffffffffffffffffff161461220d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612204906152a0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561227d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612274906150e0565b60405180910390fd5b612288838383612da9565b612293600082611feb565b6122e481609760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612dae90919063ffffffff16565b5061233681609760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612dc890919063ffffffff16565b5061234d81836098612de29092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6123d68160fb6000858152602001908152602001600020600001612e1790919063ffffffff16565b1561243e576123e3611fe3565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006124518360000183612e47565b60001c905092915050565b6124848160fb6000858152602001908152602001600020600001612eb490919063ffffffff16565b156124ec57612491611fe3565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b60006124fb826110d7565b905061250981600084612da9565b612514600083611feb565b6000609e60008481526020019081526020016000208054600181600116156101000203166002900490501461256357609e600083815260200190815260200160002060006125629190613d19565b5b6125b482609760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612dae90919063ffffffff16565b506125c9826098612ee490919063ffffffff16565b5081600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080828401905083811015612675576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266c906150c0565b60405180910390fd5b8091505092915050565b600061012d60008381526020019081526020016000209050600061012e6000836000015481526020019081526020016000209050600061012d600085815260200190815260200160002060000181905550600061012d600085815260200190815260200160002060010181905550600061012d60008581526020019081526020016000206002018190555061272260018260040154612d1f90919063ffffffff16565b8160040181905550505050565b6000806000806127428660000186612efe565b915091508160001c8160001c9350935050509250929050565b600061276e846000018460001b84612f81565b60001c90509392505050565b600061278882600001613012565b9050919050565b6000803090506000813b9050600081149250505090565b600060019054906101000a900460ff16806127c557506127c461278f565b5b806127db575060008054906101000a900460ff16155b61281a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161281190615280565b60405180910390fd5b60008060019054906101000a900460ff16159050801561286a576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6000612874611fe3565b90508060c960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35080156129345760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680612956575061295561278f565b5b8061296c575060008054906101000a900460ff16155b6129ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a290615280565b60405180910390fd5b60008060019054906101000a900460ff1615905080156129fb576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b8015612a1c5760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680612a3e5750612a3d61278f565b5b80612a54575060008054906101000a900460ff16155b612a93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a8a90615280565b60405180910390fd5b60008060019054906101000a900460ff161590508015612ae3576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b612aeb613023565b612af361310b565b612afd8383613203565b8015612b1e5760008060016101000a81548160ff0219169083151502179055505b505050565b612b2d82826123ae565b5050565b6000612b408360000183612e47565b60001c905092915050565b6000612b73836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61334b565b905092915050565b61012f600083815260200190815260200160002060009054906101000a900460ff16612bdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bd390615120565b60405180910390fd5b600061012e600084815260200190815260200160002090508060050154816004015410612c3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c35906150a0565b60405180910390fd5b612c566001826004015461262a90919063ffffffff16565b81600401819055506040518060600160405280848152602001826001015481526020018381525061012d6000868152602001908152602001600020600082015181600001556020820151816001015560408201518160020155905050612cbc858561336e565b5050505050565b612cce848484612197565b612cda8484848461338c565b612d19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1090615020565b60405180910390fd5b50505050565b6000612d6183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061356d565b905092915050565b6000612d7782600001613012565b9050919050565b6000612d90836000018360001b6135c8565b905092915050565b600081600001805490509050919050565b505050565b6000612dc0836000018360001b6135eb565b905092915050565b6000612dda836000018360001b6136d3565b905092915050565b6000612e0e846000018460001b8473ffffffffffffffffffffffffffffffffffffffff1660001b613743565b90509392505050565b6000612e3f836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6136d3565b905092915050565b600081836000018054905011612e92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e8990614fe0565b60405180910390fd5b826000018281548110612ea157fe5b9060005260206000200154905092915050565b6000612edc836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6135eb565b905092915050565b6000612ef6836000018360001b61381f565b905092915050565b60008082846000018054905011612f4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f41906151e0565b60405180910390fd5b6000846000018481548110612f5b57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008084600101600085815260200190815260200160002054905060008114158390612fe3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fda9190614fbe565b60405180910390fd5b50846000016001820381548110612ff657fe5b9060005260206000209060020201600101549150509392505050565b600081600001805490509050919050565b600060019054906101000a900460ff1680613042575061304161278f565b5b80613058575060008054906101000a900460ff16155b613097576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161308e90615280565b60405180910390fd5b60008060019054906101000a900460ff1615905080156130e7576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b80156131085760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff168061312a575061312961278f565b5b80613140575060008054906101000a900460ff16155b61317f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161317690615280565b60405180910390fd5b60008060019054906101000a900460ff1615905080156131cf576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6131df6301ffc9a760e01b613938565b80156132005760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680613222575061322161278f565b5b80613238575060008054906101000a900460ff16155b613277576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161326e90615280565b60405180910390fd5b60008060019054906101000a900460ff1615905080156132c7576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b82609c90805190602001906132dd929190613c99565b5081609d90805190602001906132f4929190613c99565b506133056380ac58cd60e01b613938565b613315635b5e139f60e01b613938565b61332563780e9d6360e01b613938565b80156133465760008060016101000a81548160ff0219169083151502179055505b505050565b600080836001016000848152602001908152602001600020541415905092915050565b613388828260405180602001604052806000815250613a0e565b5050565b60006133ad8473ffffffffffffffffffffffffffffffffffffffff16613a69565b6133ba5760019050613565565b600060608573ffffffffffffffffffffffffffffffffffffffff1663150b7a0260e01b6133e5611fe3565b8988886040516024016133fb9493929190614f3c565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040516134659190614f0a565b6000604051808303816000865af19150503d80600081146134a2576040519150601f19603f3d011682016040523d82523d6000602084013e6134a7565b606091505b5091509150816134ff576000815111156134c45780518082602001fd5b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134f690615020565b60405180910390fd5b6000818060200190518101906135159190614214565b905063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161493505050505b949350505050565b60008383111582906135b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135ac9190614fbe565b60405180910390fd5b5060008385039050809150509392505050565b600080836001016000848152602001908152602001600020541415905092915050565b600080836001016000848152602001908152602001600020549050600081146136c7576000600182039050600060018660000180549050039050600086600001828154811061363657fe5b906000526020600020015490508087600001848154811061365357fe5b906000526020600020018190555060018301876001016000838152602001908152602001600020819055508660000180548061368b57fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506136cd565b60009150505b92915050565b60006136df838361334b565b61373857826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905061373d565b600090505b92915050565b60008084600101600085815260200190815260200160002054905060008114156137ea57846000016040518060400160405280868152602001858152509080600181540180825580915050600190039060005260206000209060020201600090919091909150600082015181600001556020820151816001015550508460000180549050856001016000868152602001908152602001600020819055506001915050613818565b828560000160018303815481106137fd57fe5b90600052602060002090600202016001018190555060009150505b9392505050565b6000808360010160008481526020019081526020016000205490506000811461392c576000600182039050600060018660000180549050039050600086600001828154811061386a57fe5b906000526020600020906002020190508087600001848154811061388a57fe5b90600052602060002090600202016000820154816000015560018201548160010155905050600183018760010160008360000154815260200190815260200160002081905550866000018054806138dd57fe5b6001900381819060005260206000209060020201600080820160009055600182016000905550509055866001016000878152602001908152602001600020600090556001945050505050613932565b60009150505b92915050565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614156139a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161399890615060565b60405180910390fd5b600160656000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b613a188383613ab4565b613a25600084848461338c565b613a64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a5b90615020565b60405180910390fd5b505050565b60008060007fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47060001b9050833f9150808214158015613aab57506000801b8214155b92505050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613b24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b1b90615200565b60405180910390fd5b613b2d81611fc6565b15613b6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b6490615080565b60405180910390fd5b613b7960008383612da9565b613bca81609760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612dc890919063ffffffff16565b50613be181836098612de29092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b60405180606001604052806000815260200160008152602001600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10613cda57805160ff1916838001178555613d08565b82800160010185558215613d08579182015b82811115613d07578251825591602001919060010190613cec565b5b509050613d159190613d61565b5090565b50805460018160011615610100020316600290046000825580601f10613d3f5750613d5e565b601f016020900490600052602060002090810190613d5d9190613d61565b5b50565b5b80821115613d7a576000816000905550600101613d62565b5090565b600081359050613d8d816155f4565b92915050565b600081359050613da28161560b565b92915050565b600081359050613db781615622565b92915050565b600081359050613dcc81615639565b92915050565b600081519050613de181615639565b92915050565b600082601f830112613df857600080fd5b8135613e0b613e0682615476565b615449565b91508082526020830160208301858383011115613e2757600080fd5b613e328382846155a1565b50505092915050565b600082601f830112613e4c57600080fd5b8135613e5f613e5a826154a2565b615449565b91508082526020830160208301858383011115613e7b57600080fd5b613e868382846155a1565b50505092915050565b600060c08284031215613ea157600080fd5b613eab60c0615449565b90506000613ebb84828501613f2b565b6000830152506020613ecf84828501613f2b565b6020830152506040613ee384828501613f2b565b6040830152506060613ef784828501613f2b565b6060830152506080613f0b84828501613f2b565b60808301525060a0613f1f84828501613f2b565b60a08301525092915050565b600081359050613f3a81615650565b92915050565b600060208284031215613f5257600080fd5b6000613f6084828501613d7e565b91505092915050565b60008060408385031215613f7c57600080fd5b6000613f8a85828601613d7e565b9250506020613f9b85828601613d7e565b9150509250929050565b600080600060608486031215613fba57600080fd5b6000613fc886828701613d7e565b9350506020613fd986828701613d7e565b9250506040613fea86828701613f2b565b9150509250925092565b6000806000806080858703121561400a57600080fd5b600061401887828801613d7e565b945050602061402987828801613d7e565b935050604061403a87828801613f2b565b925050606085013567ffffffffffffffff81111561405757600080fd5b61406387828801613de7565b91505092959194509250565b6000806040838503121561408257600080fd5b600061409085828601613d7e565b92505060206140a185828601613d93565b9150509250929050565b600080604083850312156140be57600080fd5b60006140cc85828601613d7e565b92505060206140dd85828601613f2b565b9150509250929050565b600080600080608085870312156140fd57600080fd5b600061410b87828801613d7e565b945050602061411c87828801613f2b565b935050604061412d87828801613f2b565b925050606061413e87828801613f2b565b91505092959194509250565b60006020828403121561415c57600080fd5b600061416a84828501613da8565b91505092915050565b6000806040838503121561418657600080fd5b600061419485828601613da8565b92505060206141a585828601613d7e565b9150509250929050565b600080604083850312156141c257600080fd5b60006141d085828601613da8565b92505060206141e185828601613f2b565b9150509250929050565b6000602082840312156141fd57600080fd5b600061420b84828501613dbd565b91505092915050565b60006020828403121561422657600080fd5b600061423484828501613dd2565b91505092915050565b60006020828403121561424f57600080fd5b600061425d84828501613f2b565b91505092915050565b6000806040838503121561427957600080fd5b600061428785828601613f2b565b925050602083013567ffffffffffffffff8111156142a457600080fd5b6142b085828601613e3b565b9150509250929050565b60008060e083850312156142cd57600080fd5b60006142db85828601613f2b565b92505060206142ec85828601613e8f565b9150509250929050565b6000806040838503121561430957600080fd5b600061431785828601613f2b565b925050602061432885828601613f2b565b9150509250929050565b61433b81615523565b82525050565b61434a81615511565b82525050565b61435981615535565b82525050565b61436881615541565b82525050565b6000614379826154ce565b61438381856154e4565b93506143938185602086016155b0565b61439c816155e3565b840191505092915050565b60006143b2826154ce565b6143bc81856154f5565b93506143cc8185602086016155b0565b80840191505092915050565b60006143e3826154d9565b6143ed8185615500565b93506143fd8185602086016155b0565b614406816155e3565b840191505092915050565b600061441e602283615500565b91507f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60008301527f64730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614484602f83615500565b91507f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60008301527f2061646d696e20746f206772616e7400000000000000000000000000000000006020830152604082019050919050565b60006144ea603283615500565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b6000614550602683615500565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006145b6601c83615500565b91507f4552433136353a20696e76616c696420696e74657266616365206964000000006000830152602082019050919050565b60006145f6601c83615500565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000614636602c83615500565b91507f4d757368726f6f6d4e46543a206d696e74696e6720636170207265616368656460008301527f20666f72207370656369657300000000000000000000000000000000000000006020830152604082019050919050565b600061469c601b83615500565b91507f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006000830152602082019050919050565b60006146dc602483615500565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614742601983615500565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b6000614782603683615500565b91507f4d757368726f6f6d4e46543a206d757368726f6f6d207370656369657320737060008301527f6563696669656420646f6573206e6f74206578697374000000000000000000006020830152604082019050919050565b60006147e8602c83615500565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b600061484e603083615500565b91507f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60008301527f2061646d696e20746f207265766f6b65000000000000000000000000000000006020830152604082019050919050565b60006148b4602c83615500565b91507f4d757368726f6f6d4e46543a204f6e6c7920617070726f766564206c6966657360008301527f70616e206d6f64696669657200000000000000000000000000000000000000006020830152604082019050919050565b600061491a603883615500565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000614980602a83615500565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b60006149e6602283615500565b91507f456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e60008301527f64730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614a4c602083615500565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000614a8c602c83615500565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614af2602083615500565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614b32602083615500565b91507f4d757368726f6f6d4e46543a204f6e6c7920617070726f7665642061646d696e6000830152602082019050919050565b6000614b72602e83615500565b91507f436f6e747261637420696e7374616e63652068617320616c726561647920626560008301527f656e20696e697469616c697a65640000000000000000000000000000000000006020830152604082019050919050565b6000614bd8602983615500565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614c3e602a83615500565b91507f4d757368726f6f6d4e46543a204f6e6c7920617070726f766564206d7573687260008301527f6f6f6d206d696e746572000000000000000000000000000000000000000000006020830152604082019050919050565b6000614ca4602183615500565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614d0a603183615500565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000614d70603083615500565b91507f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f766564000000000000000000000000000000006020830152604082019050919050565b6000614dd6602f83615500565b91507f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008301527f20726f6c657320666f722073656c6600000000000000000000000000000000006020830152604082019050919050565b606082016000820151614e456000850182614eec565b506020820151614e586020850182614eec565b506040820151614e6b6040850182614eec565b50505050565b60c082016000820151614e876000850182614eec565b506020820151614e9a6020850182614eec565b506040820151614ead6040850182614eec565b506060820151614ec06060850182614eec565b506080820151614ed36080850182614eec565b5060a0820151614ee660a0850182614eec565b50505050565b614ef581615597565b82525050565b614f0481615597565b82525050565b6000614f1682846143a7565b915081905092915050565b6000602082019050614f366000830184614341565b92915050565b6000608082019050614f516000830187614332565b614f5e6020830186614341565b614f6b6040830185614efb565b8181036060830152614f7d818461436e565b905095945050505050565b6000602082019050614f9d6000830184614350565b92915050565b6000602082019050614fb8600083018461435f565b92915050565b60006020820190508181036000830152614fd881846143d8565b905092915050565b60006020820190508181036000830152614ff981614411565b9050919050565b6000602082019050818103600083015261501981614477565b9050919050565b60006020820190508181036000830152615039816144dd565b9050919050565b6000602082019050818103600083015261505981614543565b9050919050565b60006020820190508181036000830152615079816145a9565b9050919050565b60006020820190508181036000830152615099816145e9565b9050919050565b600060208201905081810360008301526150b981614629565b9050919050565b600060208201905081810360008301526150d98161468f565b9050919050565b600060208201905081810360008301526150f9816146cf565b9050919050565b6000602082019050818103600083015261511981614735565b9050919050565b6000602082019050818103600083015261513981614775565b9050919050565b60006020820190508181036000830152615159816147db565b9050919050565b6000602082019050818103600083015261517981614841565b9050919050565b60006020820190508181036000830152615199816148a7565b9050919050565b600060208201905081810360008301526151b98161490d565b9050919050565b600060208201905081810360008301526151d981614973565b9050919050565b600060208201905081810360008301526151f9816149d9565b9050919050565b6000602082019050818103600083015261521981614a3f565b9050919050565b6000602082019050818103600083015261523981614a7f565b9050919050565b6000602082019050818103600083015261525981614ae5565b9050919050565b6000602082019050818103600083015261527981614b25565b9050919050565b6000602082019050818103600083015261529981614b65565b9050919050565b600060208201905081810360008301526152b981614bcb565b9050919050565b600060208201905081810360008301526152d981614c31565b9050919050565b600060208201905081810360008301526152f981614c97565b9050919050565b6000602082019050818103600083015261531981614cfd565b9050919050565b6000602082019050818103600083015261533981614d63565b9050919050565b6000602082019050818103600083015261535981614dc9565b9050919050565b60006060820190506153756000830184614e2f565b92915050565b600060c0820190506153906000830184614e71565b92915050565b60006020820190506153ab6000830184614efb565b92915050565b60006060820190506153c66000830186614efb565b6153d36020830185614efb565b6153e06040830184614efb565b949350505050565b600060c0820190506153fd6000830189614efb565b61540a6020830188614efb565b6154176040830187614efb565b6154246060830186614efb565b6154316080830185614efb565b61543e60a0830184614efb565b979650505050505050565b6000604051905081810181811067ffffffffffffffff8211171561546c57600080fd5b8060405250919050565b600067ffffffffffffffff82111561548d57600080fd5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff8211156154b957600080fd5b601f19601f8301169050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600061551c82615577565b9050919050565b600061552e82615577565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156155ce5780820151818401526020810190506155b3565b838111156155dd576000848401525b50505050565b6000601f19601f8301169050919050565b6155fd81615511565b811461560857600080fd5b50565b61561481615535565b811461561f57600080fd5b50565b61562b81615541565b811461563657600080fd5b50565b6156428161554b565b811461564d57600080fd5b50565b61565981615597565b811461566457600080fd5b5056fe4552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656ea26469706673582212207d96829e7adaa7f89d3d6d38321c0a27e0b2881beb1e4fbf716f4dc623da712a64736f6c634300060c0033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061028a5760003560e01c80637cefcc521161015c578063ac04efc9116100ce578063ca15c87311610087578063ca15c87314610836578063d539139314610866578063d547741f14610884578063e985e9c5146108a0578063f2fde38b146108d0578063fc7e9c6f146108ec5761028a565b8063ac04efc914610764578063b37fce1b14610780578063b88d4fde1461079c578063b9131155146107b8578063bc136a17146107d6578063c87b56dd146108065761028a565b8063946753b111610120578063946753b11461068957806395d89b41146106bb578063a217fddf146106d9578063a22cb465146106f7578063a59a03cb14610713578063a647e8ec146107485761028a565b80637cefcc52146105e35780638129fc1c146106015780638da5cb5b1461060b5780639010d07c1461062957806391d14854146106595761028a565b80632f2ff15d1161020057806360e9ffe9116101b957806360e9ffe9146104fb5780636352211e1461052b57806365e4b3b81461055b5780636c0360eb1461058b57806370a08231146105a9578063715018a6146105d95761028a565b80632f2ff15d1461042b5780632f745c591461044757806336568abe1461047757806342842e0e1461049357806342966c68146104af5780634f6ccce7146104cb5761028a565b806318160ddd1161025257806318160ddd14610359578063183869461461037757806323b872dd14610393578063248a9ca3146103af5780632be6a2a9146103df5780632cd58ea11461040f5761028a565b806301ffc9a71461028f57806306fdde03146102bf578063081812fc146102dd578063095ea7b31461030d5780630d644a7c14610329575b600080fd5b6102a960048036038101906102a491906141eb565b61090a565b6040516102b69190614f88565b60405180910390f35b6102c7610972565b6040516102d49190614fbe565b60405180910390f35b6102f760048036038101906102f2919061423d565b610a14565b6040516103049190614f21565b60405180910390f35b610327600480360381019061032291906140ab565b610a99565b005b610343600480360381019061033e919061423d565b610bb1565b6040516103509190614f88565b60405180910390f35b610361610bd2565b60405161036e9190615396565b60405180910390f35b610391600480360381019061038c919061423d565b610be3565b005b6103ad60048036038101906103a89190613fa5565b610c3a565b005b6103c960048036038101906103c4919061414a565b610c9a565b6040516103d69190614fa3565b60405180910390f35b6103f960048036038101906103f4919061423d565b610cba565b604051610406919061537b565b60405180910390f35b610429600480360381019061042491906142ba565b610d24565b005b61044560048036038101906104409190614173565b610e67565b005b610461600480360381019061045c91906140ab565b610edb565b60405161046e9190615396565b60405180910390f35b610491600480360381019061048c9190614173565b610f36565b005b6104ad60048036038101906104a89190613fa5565b610fb9565b005b6104c960048036038101906104c4919061423d565b610fd9565b005b6104e560048036038101906104e0919061423d565b61105c565b6040516104f29190615396565b60405180910390f35b6105156004803603810190610510919061423d565b61107f565b6040516105229190615360565b60405180910390f35b6105456004803603810190610540919061423d565b6110d7565b6040516105529190614f21565b60405180910390f35b6105756004803603810190610570919061423d565b61110e565b6040516105829190614fbe565b60405180910390f35b6105936111bf565b6040516105a09190614fbe565b60405180910390f35b6105c360048036038101906105be9190613f40565b611261565b6040516105d09190615396565b60405180910390f35b6105e1611320565b005b6105eb611478565b6040516105f89190615396565b60405180910390f35b61060961147f565b005b6106136115f8565b6040516106209190614f21565b60405180910390f35b610643600480360381019061063e91906141af565b611622565b6040516106509190614f21565b60405180910390f35b610673600480360381019061066e9190614173565b611654565b6040516106809190614f88565b60405180910390f35b6106a3600480360381019061069e919061423d565b611686565b6040516106b2939291906153b1565b60405180910390f35b6106c36116b1565b6040516106d09190614fbe565b60405180910390f35b6106e1611753565b6040516106ee9190614fa3565b60405180910390f35b610711600480360381019061070c919061406f565b61175a565b005b61072d6004803603810190610728919061423d565b6118db565b60405161073f969594939291906153e8565b60405180910390f35b610762600480360381019061075d91906140e7565b611918565b005b61077e60048036038101906107799190614266565b611993565b005b61079a600480360381019061079591906142f6565b611a57565b005b6107b660048036038101906107b19190613ff4565b611ae0565b005b6107c0611b42565b6040516107cd9190614fa3565b60405180910390f35b6107f060048036038101906107eb919061423d565b611b66565b6040516107fd9190615396565b60405180910390f35b610820600480360381019061081b919061423d565b611ba2565b60405161082d9190614fbe565b60405180910390f35b610850600480360381019061084b919061414a565b611c75565b60405161085d9190615396565b60405180910390f35b61086e611c9c565b60405161087b9190614fa3565b60405180910390f35b61089e60048036038101906108999190614173565b611cc0565b005b6108ba60048036038101906108b59190613f69565b611d34565b6040516108c79190614f88565b60405180910390f35b6108ea60048036038101906108e59190613f40565b611dc8565b005b6108f4611f8f565b6040516109019190615396565b60405180910390f35b600060656000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b6060609c8054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610a0a5780601f106109df57610100808354040283529160200191610a0a565b820191906000526020600020905b8154815290600101906020018083116109ed57829003601f168201915b5050505050905090565b6000610a1f82611fc6565b610a5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5590615220565b60405180910390fd5b609a600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610aa4826110d7565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0c906152e0565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b34611fe3565b73ffffffffffffffffffffffffffffffffffffffff161480610b635750610b6281610b5d611fe3565b611d34565b5b610ba2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b99906151a0565b60405180910390fd5b610bac8383611feb565b505050565b61012f6020528060005260406000206000915054906101000a900460ff1681565b6000610bde60986120a4565b905090565b610bf06000801b33611654565b610c2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2690615260565b60405180910390fd5b806101318190555050565b610c4b610c45611fe3565b826120b9565b610c8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8190615300565b60405180910390fd5b610c95838383612197565b505050565b600060fb6000838152602001908152602001600020600201549050919050565b610cc2613c42565b61012e60008381526020019081526020016000206040518060c001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815250509050919050565b610d2c611fe3565b73ffffffffffffffffffffffffffffffffffffffff1660c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610dbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db290615240565b60405180910390fd5b61012f600083815260200190815260200160002060009054906101000a900460ff16610e0f57600161012f600084815260200190815260200160002060006101000a81548160ff0219169083151502179055505b8061012e6000848152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a082015181600501559050505050565b610e8e60fb600084815260200190815260200160002060020154610e89611fe3565b611654565b610ecd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec490615000565b60405180910390fd5b610ed782826123ae565b5050565b6000610f2e82609760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061244290919063ffffffff16565b905092915050565b610f3e611fe3565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610fab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa290615340565b60405180910390fd5b610fb5828261245c565b5050565b610fd483838360405180602001604052806000815250611ae0565b505050565b610fea610fe4611fe3565b826120b9565b611029576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102090615320565b60405180910390fd5b611032816124f0565b61104960016101315461262a90919063ffffffff16565b610131819055506110598161267f565b50565b60008061107383609861272f90919063ffffffff16565b50905080915050919050565b611087613c78565b61108f613c78565b61012d60008481526020019081526020016000206040518060600160405290816000820154815260200160018201548152602001600282015481525050905080915050919050565b60006111078260405180606001604052806029815260200161566860299139609861275b9092919063ffffffff16565b9050919050565b6101306020528060005260406000206000915090508054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156111b75780601f1061118c576101008083540402835291602001916111b7565b820191906000526020600020905b81548152906001019060200180831161119a57829003601f168201915b505050505081565b6060609f8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156112575780601f1061122c57610100808354040283529160200191611257565b820191906000526020600020905b81548152906001019060200180831161123a57829003601f168201915b5050505050905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156112d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c9906151c0565b60405180910390fd5b611319609760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061277a565b9050919050565b611328611fe3565b73ffffffffffffffffffffffffffffffffffffffff1660c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146113b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ae90615240565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3600060c960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6101315481565b600060019054906101000a900460ff168061149e575061149d61278f565b5b806114b4575060008054906101000a900460ff16155b6114f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ea90615280565b60405180910390fd5b60008060019054906101000a900460ff161590508015611543576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b61154b6127a6565b611553612937565b6115c76040518060400160405280600f81526020017f456e6f6b69204d757368726f6f6d7300000000000000000000000000000000008152506040518060400160405280600f81526020017f456e6f6b69204d757368726f6f6d730000000000000000000000000000000000815250612a1f565b6115d46000801b33612b23565b80156115f55760008060016101000a81548160ff0219169083151502179055505b50565b600060c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600061164c8260fb6000868152602001908152602001600020600001612b3190919063ffffffff16565b905092915050565b600061167e8260fb6000868152602001908152602001600020600001612b4b90919063ffffffff16565b905092915050565b61012d6020528060005260406000206000915090508060000154908060010154908060020154905083565b6060609d8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156117495780601f1061171e57610100808354040283529160200191611749565b820191906000526020600020905b81548152906001019060200180831161172c57829003601f168201915b5050505050905090565b6000801b81565b611762611fe3565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156117d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c790615100565b60405180910390fd5b80609b60006117dd611fe3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661188a611fe3565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118cf9190614f88565b60405180910390a35050565b61012e6020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040154908060050154905086565b6119427f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633611654565b611981576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611978906152c0565b60405180910390fd5b61198d84848484612b7b565b50505050565b61199b611fe3565b73ffffffffffffffffffffffffffffffffffffffff1660c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611a2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2190615240565b60405180910390fd5b8061013060008481526020019081526020016000209080519060200190611a52929190613c99565b505050565b611a817f633a5d9797475d59f7069d35ff23ade48bb0f1ef7aa1649e9cd6ef591e049be133611654565b611ac0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab790615180565b60405180910390fd5b8061012d6000848152602001908152602001600020600201819055505050565b611af1611aeb611fe3565b836120b9565b611b30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2790615300565b60405180910390fd5b611b3c84848484612cc3565b50505050565b7f633a5d9797475d59f7069d35ff23ade48bb0f1ef7aa1649e9cd6ef591e049be181565b60008061012e60008481526020019081526020016000209050611b9a81600401548260050154612d1f90919063ffffffff16565b915050919050565b6060600061012d600084815260200190815260200160002090506101306000826000015481526020019081526020016000208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611c685780601f10611c3d57610100808354040283529160200191611c68565b820191906000526020600020905b815481529060010190602001808311611c4b57829003601f168201915b5050505050915050919050565b6000611c9560fb6000848152602001908152602001600020600001612d69565b9050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b611ce760fb600084815260200190815260200160002060020154611ce2611fe3565b611654565b611d26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1d90615160565b60405180910390fd5b611d30828261245c565b5050565b6000609b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611dd0611fe3565b73ffffffffffffffffffffffffffffffffffffffff1660c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611e5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5690615240565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ecf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec690615040565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a38060c960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000611fc16001611fb361013154611fa5610bd2565b61262a90919063ffffffff16565b61262a90919063ffffffff16565b905090565b6000611fdc826098612d7e90919063ffffffff16565b9050919050565b600033905090565b81609a600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661205e836110d7565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006120b282600001612d98565b9050919050565b60006120c482611fc6565b612103576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120fa90615140565b60405180910390fd5b600061210e836110d7565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061217d57508373ffffffffffffffffffffffffffffffffffffffff1661216584610a14565b73ffffffffffffffffffffffffffffffffffffffff16145b8061218e575061218d8185611d34565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166121b7826110d7565b73ffffffffffffffffffffffffffffffffffffffff161461220d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612204906152a0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561227d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612274906150e0565b60405180910390fd5b612288838383612da9565b612293600082611feb565b6122e481609760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612dae90919063ffffffff16565b5061233681609760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612dc890919063ffffffff16565b5061234d81836098612de29092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6123d68160fb6000858152602001908152602001600020600001612e1790919063ffffffff16565b1561243e576123e3611fe3565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006124518360000183612e47565b60001c905092915050565b6124848160fb6000858152602001908152602001600020600001612eb490919063ffffffff16565b156124ec57612491611fe3565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b60006124fb826110d7565b905061250981600084612da9565b612514600083611feb565b6000609e60008481526020019081526020016000208054600181600116156101000203166002900490501461256357609e600083815260200190815260200160002060006125629190613d19565b5b6125b482609760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612dae90919063ffffffff16565b506125c9826098612ee490919063ffffffff16565b5081600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080828401905083811015612675576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266c906150c0565b60405180910390fd5b8091505092915050565b600061012d60008381526020019081526020016000209050600061012e6000836000015481526020019081526020016000209050600061012d600085815260200190815260200160002060000181905550600061012d600085815260200190815260200160002060010181905550600061012d60008581526020019081526020016000206002018190555061272260018260040154612d1f90919063ffffffff16565b8160040181905550505050565b6000806000806127428660000186612efe565b915091508160001c8160001c9350935050509250929050565b600061276e846000018460001b84612f81565b60001c90509392505050565b600061278882600001613012565b9050919050565b6000803090506000813b9050600081149250505090565b600060019054906101000a900460ff16806127c557506127c461278f565b5b806127db575060008054906101000a900460ff16155b61281a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161281190615280565b60405180910390fd5b60008060019054906101000a900460ff16159050801561286a576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6000612874611fe3565b90508060c960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35080156129345760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680612956575061295561278f565b5b8061296c575060008054906101000a900460ff16155b6129ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a290615280565b60405180910390fd5b60008060019054906101000a900460ff1615905080156129fb576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b8015612a1c5760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680612a3e5750612a3d61278f565b5b80612a54575060008054906101000a900460ff16155b612a93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a8a90615280565b60405180910390fd5b60008060019054906101000a900460ff161590508015612ae3576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b612aeb613023565b612af361310b565b612afd8383613203565b8015612b1e5760008060016101000a81548160ff0219169083151502179055505b505050565b612b2d82826123ae565b5050565b6000612b408360000183612e47565b60001c905092915050565b6000612b73836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61334b565b905092915050565b61012f600083815260200190815260200160002060009054906101000a900460ff16612bdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bd390615120565b60405180910390fd5b600061012e600084815260200190815260200160002090508060050154816004015410612c3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c35906150a0565b60405180910390fd5b612c566001826004015461262a90919063ffffffff16565b81600401819055506040518060600160405280848152602001826001015481526020018381525061012d6000868152602001908152602001600020600082015181600001556020820151816001015560408201518160020155905050612cbc858561336e565b5050505050565b612cce848484612197565b612cda8484848461338c565b612d19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1090615020565b60405180910390fd5b50505050565b6000612d6183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061356d565b905092915050565b6000612d7782600001613012565b9050919050565b6000612d90836000018360001b6135c8565b905092915050565b600081600001805490509050919050565b505050565b6000612dc0836000018360001b6135eb565b905092915050565b6000612dda836000018360001b6136d3565b905092915050565b6000612e0e846000018460001b8473ffffffffffffffffffffffffffffffffffffffff1660001b613743565b90509392505050565b6000612e3f836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6136d3565b905092915050565b600081836000018054905011612e92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e8990614fe0565b60405180910390fd5b826000018281548110612ea157fe5b9060005260206000200154905092915050565b6000612edc836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6135eb565b905092915050565b6000612ef6836000018360001b61381f565b905092915050565b60008082846000018054905011612f4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f41906151e0565b60405180910390fd5b6000846000018481548110612f5b57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008084600101600085815260200190815260200160002054905060008114158390612fe3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fda9190614fbe565b60405180910390fd5b50846000016001820381548110612ff657fe5b9060005260206000209060020201600101549150509392505050565b600081600001805490509050919050565b600060019054906101000a900460ff1680613042575061304161278f565b5b80613058575060008054906101000a900460ff16155b613097576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161308e90615280565b60405180910390fd5b60008060019054906101000a900460ff1615905080156130e7576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b80156131085760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff168061312a575061312961278f565b5b80613140575060008054906101000a900460ff16155b61317f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161317690615280565b60405180910390fd5b60008060019054906101000a900460ff1615905080156131cf576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6131df6301ffc9a760e01b613938565b80156132005760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680613222575061322161278f565b5b80613238575060008054906101000a900460ff16155b613277576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161326e90615280565b60405180910390fd5b60008060019054906101000a900460ff1615905080156132c7576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b82609c90805190602001906132dd929190613c99565b5081609d90805190602001906132f4929190613c99565b506133056380ac58cd60e01b613938565b613315635b5e139f60e01b613938565b61332563780e9d6360e01b613938565b80156133465760008060016101000a81548160ff0219169083151502179055505b505050565b600080836001016000848152602001908152602001600020541415905092915050565b613388828260405180602001604052806000815250613a0e565b5050565b60006133ad8473ffffffffffffffffffffffffffffffffffffffff16613a69565b6133ba5760019050613565565b600060608573ffffffffffffffffffffffffffffffffffffffff1663150b7a0260e01b6133e5611fe3565b8988886040516024016133fb9493929190614f3c565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040516134659190614f0a565b6000604051808303816000865af19150503d80600081146134a2576040519150601f19603f3d011682016040523d82523d6000602084013e6134a7565b606091505b5091509150816134ff576000815111156134c45780518082602001fd5b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134f690615020565b60405180910390fd5b6000818060200190518101906135159190614214565b905063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161493505050505b949350505050565b60008383111582906135b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135ac9190614fbe565b60405180910390fd5b5060008385039050809150509392505050565b600080836001016000848152602001908152602001600020541415905092915050565b600080836001016000848152602001908152602001600020549050600081146136c7576000600182039050600060018660000180549050039050600086600001828154811061363657fe5b906000526020600020015490508087600001848154811061365357fe5b906000526020600020018190555060018301876001016000838152602001908152602001600020819055508660000180548061368b57fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506136cd565b60009150505b92915050565b60006136df838361334b565b61373857826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905061373d565b600090505b92915050565b60008084600101600085815260200190815260200160002054905060008114156137ea57846000016040518060400160405280868152602001858152509080600181540180825580915050600190039060005260206000209060020201600090919091909150600082015181600001556020820151816001015550508460000180549050856001016000868152602001908152602001600020819055506001915050613818565b828560000160018303815481106137fd57fe5b90600052602060002090600202016001018190555060009150505b9392505050565b6000808360010160008481526020019081526020016000205490506000811461392c576000600182039050600060018660000180549050039050600086600001828154811061386a57fe5b906000526020600020906002020190508087600001848154811061388a57fe5b90600052602060002090600202016000820154816000015560018201548160010155905050600183018760010160008360000154815260200190815260200160002081905550866000018054806138dd57fe5b6001900381819060005260206000209060020201600080820160009055600182016000905550509055866001016000878152602001908152602001600020600090556001945050505050613932565b60009150505b92915050565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614156139a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161399890615060565b60405180910390fd5b600160656000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b613a188383613ab4565b613a25600084848461338c565b613a64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a5b90615020565b60405180910390fd5b505050565b60008060007fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47060001b9050833f9150808214158015613aab57506000801b8214155b92505050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613b24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b1b90615200565b60405180910390fd5b613b2d81611fc6565b15613b6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b6490615080565b60405180910390fd5b613b7960008383612da9565b613bca81609760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612dc890919063ffffffff16565b50613be181836098612de29092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b60405180606001604052806000815260200160008152602001600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10613cda57805160ff1916838001178555613d08565b82800160010185558215613d08579182015b82811115613d07578251825591602001919060010190613cec565b5b509050613d159190613d61565b5090565b50805460018160011615610100020316600290046000825580601f10613d3f5750613d5e565b601f016020900490600052602060002090810190613d5d9190613d61565b5b50565b5b80821115613d7a576000816000905550600101613d62565b5090565b600081359050613d8d816155f4565b92915050565b600081359050613da28161560b565b92915050565b600081359050613db781615622565b92915050565b600081359050613dcc81615639565b92915050565b600081519050613de181615639565b92915050565b600082601f830112613df857600080fd5b8135613e0b613e0682615476565b615449565b91508082526020830160208301858383011115613e2757600080fd5b613e328382846155a1565b50505092915050565b600082601f830112613e4c57600080fd5b8135613e5f613e5a826154a2565b615449565b91508082526020830160208301858383011115613e7b57600080fd5b613e868382846155a1565b50505092915050565b600060c08284031215613ea157600080fd5b613eab60c0615449565b90506000613ebb84828501613f2b565b6000830152506020613ecf84828501613f2b565b6020830152506040613ee384828501613f2b565b6040830152506060613ef784828501613f2b565b6060830152506080613f0b84828501613f2b565b60808301525060a0613f1f84828501613f2b565b60a08301525092915050565b600081359050613f3a81615650565b92915050565b600060208284031215613f5257600080fd5b6000613f6084828501613d7e565b91505092915050565b60008060408385031215613f7c57600080fd5b6000613f8a85828601613d7e565b9250506020613f9b85828601613d7e565b9150509250929050565b600080600060608486031215613fba57600080fd5b6000613fc886828701613d7e565b9350506020613fd986828701613d7e565b9250506040613fea86828701613f2b565b9150509250925092565b6000806000806080858703121561400a57600080fd5b600061401887828801613d7e565b945050602061402987828801613d7e565b935050604061403a87828801613f2b565b925050606085013567ffffffffffffffff81111561405757600080fd5b61406387828801613de7565b91505092959194509250565b6000806040838503121561408257600080fd5b600061409085828601613d7e565b92505060206140a185828601613d93565b9150509250929050565b600080604083850312156140be57600080fd5b60006140cc85828601613d7e565b92505060206140dd85828601613f2b565b9150509250929050565b600080600080608085870312156140fd57600080fd5b600061410b87828801613d7e565b945050602061411c87828801613f2b565b935050604061412d87828801613f2b565b925050606061413e87828801613f2b565b91505092959194509250565b60006020828403121561415c57600080fd5b600061416a84828501613da8565b91505092915050565b6000806040838503121561418657600080fd5b600061419485828601613da8565b92505060206141a585828601613d7e565b9150509250929050565b600080604083850312156141c257600080fd5b60006141d085828601613da8565b92505060206141e185828601613f2b565b9150509250929050565b6000602082840312156141fd57600080fd5b600061420b84828501613dbd565b91505092915050565b60006020828403121561422657600080fd5b600061423484828501613dd2565b91505092915050565b60006020828403121561424f57600080fd5b600061425d84828501613f2b565b91505092915050565b6000806040838503121561427957600080fd5b600061428785828601613f2b565b925050602083013567ffffffffffffffff8111156142a457600080fd5b6142b085828601613e3b565b9150509250929050565b60008060e083850312156142cd57600080fd5b60006142db85828601613f2b565b92505060206142ec85828601613e8f565b9150509250929050565b6000806040838503121561430957600080fd5b600061431785828601613f2b565b925050602061432885828601613f2b565b9150509250929050565b61433b81615523565b82525050565b61434a81615511565b82525050565b61435981615535565b82525050565b61436881615541565b82525050565b6000614379826154ce565b61438381856154e4565b93506143938185602086016155b0565b61439c816155e3565b840191505092915050565b60006143b2826154ce565b6143bc81856154f5565b93506143cc8185602086016155b0565b80840191505092915050565b60006143e3826154d9565b6143ed8185615500565b93506143fd8185602086016155b0565b614406816155e3565b840191505092915050565b600061441e602283615500565b91507f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60008301527f64730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614484602f83615500565b91507f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60008301527f2061646d696e20746f206772616e7400000000000000000000000000000000006020830152604082019050919050565b60006144ea603283615500565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b6000614550602683615500565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006145b6601c83615500565b91507f4552433136353a20696e76616c696420696e74657266616365206964000000006000830152602082019050919050565b60006145f6601c83615500565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000614636602c83615500565b91507f4d757368726f6f6d4e46543a206d696e74696e6720636170207265616368656460008301527f20666f72207370656369657300000000000000000000000000000000000000006020830152604082019050919050565b600061469c601b83615500565b91507f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006000830152602082019050919050565b60006146dc602483615500565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614742601983615500565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b6000614782603683615500565b91507f4d757368726f6f6d4e46543a206d757368726f6f6d207370656369657320737060008301527f6563696669656420646f6573206e6f74206578697374000000000000000000006020830152604082019050919050565b60006147e8602c83615500565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b600061484e603083615500565b91507f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60008301527f2061646d696e20746f207265766f6b65000000000000000000000000000000006020830152604082019050919050565b60006148b4602c83615500565b91507f4d757368726f6f6d4e46543a204f6e6c7920617070726f766564206c6966657360008301527f70616e206d6f64696669657200000000000000000000000000000000000000006020830152604082019050919050565b600061491a603883615500565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000614980602a83615500565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b60006149e6602283615500565b91507f456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e60008301527f64730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614a4c602083615500565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000614a8c602c83615500565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614af2602083615500565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614b32602083615500565b91507f4d757368726f6f6d4e46543a204f6e6c7920617070726f7665642061646d696e6000830152602082019050919050565b6000614b72602e83615500565b91507f436f6e747261637420696e7374616e63652068617320616c726561647920626560008301527f656e20696e697469616c697a65640000000000000000000000000000000000006020830152604082019050919050565b6000614bd8602983615500565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614c3e602a83615500565b91507f4d757368726f6f6d4e46543a204f6e6c7920617070726f766564206d7573687260008301527f6f6f6d206d696e746572000000000000000000000000000000000000000000006020830152604082019050919050565b6000614ca4602183615500565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614d0a603183615500565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000614d70603083615500565b91507f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f766564000000000000000000000000000000006020830152604082019050919050565b6000614dd6602f83615500565b91507f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008301527f20726f6c657320666f722073656c6600000000000000000000000000000000006020830152604082019050919050565b606082016000820151614e456000850182614eec565b506020820151614e586020850182614eec565b506040820151614e6b6040850182614eec565b50505050565b60c082016000820151614e876000850182614eec565b506020820151614e9a6020850182614eec565b506040820151614ead6040850182614eec565b506060820151614ec06060850182614eec565b506080820151614ed36080850182614eec565b5060a0820151614ee660a0850182614eec565b50505050565b614ef581615597565b82525050565b614f0481615597565b82525050565b6000614f1682846143a7565b915081905092915050565b6000602082019050614f366000830184614341565b92915050565b6000608082019050614f516000830187614332565b614f5e6020830186614341565b614f6b6040830185614efb565b8181036060830152614f7d818461436e565b905095945050505050565b6000602082019050614f9d6000830184614350565b92915050565b6000602082019050614fb8600083018461435f565b92915050565b60006020820190508181036000830152614fd881846143d8565b905092915050565b60006020820190508181036000830152614ff981614411565b9050919050565b6000602082019050818103600083015261501981614477565b9050919050565b60006020820190508181036000830152615039816144dd565b9050919050565b6000602082019050818103600083015261505981614543565b9050919050565b60006020820190508181036000830152615079816145a9565b9050919050565b60006020820190508181036000830152615099816145e9565b9050919050565b600060208201905081810360008301526150b981614629565b9050919050565b600060208201905081810360008301526150d98161468f565b9050919050565b600060208201905081810360008301526150f9816146cf565b9050919050565b6000602082019050818103600083015261511981614735565b9050919050565b6000602082019050818103600083015261513981614775565b9050919050565b60006020820190508181036000830152615159816147db565b9050919050565b6000602082019050818103600083015261517981614841565b9050919050565b60006020820190508181036000830152615199816148a7565b9050919050565b600060208201905081810360008301526151b98161490d565b9050919050565b600060208201905081810360008301526151d981614973565b9050919050565b600060208201905081810360008301526151f9816149d9565b9050919050565b6000602082019050818103600083015261521981614a3f565b9050919050565b6000602082019050818103600083015261523981614a7f565b9050919050565b6000602082019050818103600083015261525981614ae5565b9050919050565b6000602082019050818103600083015261527981614b25565b9050919050565b6000602082019050818103600083015261529981614b65565b9050919050565b600060208201905081810360008301526152b981614bcb565b9050919050565b600060208201905081810360008301526152d981614c31565b9050919050565b600060208201905081810360008301526152f981614c97565b9050919050565b6000602082019050818103600083015261531981614cfd565b9050919050565b6000602082019050818103600083015261533981614d63565b9050919050565b6000602082019050818103600083015261535981614dc9565b9050919050565b60006060820190506153756000830184614e2f565b92915050565b600060c0820190506153906000830184614e71565b92915050565b60006020820190506153ab6000830184614efb565b92915050565b60006060820190506153c66000830186614efb565b6153d36020830185614efb565b6153e06040830184614efb565b949350505050565b600060c0820190506153fd6000830189614efb565b61540a6020830188614efb565b6154176040830187614efb565b6154246060830186614efb565b6154316080830185614efb565b61543e60a0830184614efb565b979650505050505050565b6000604051905081810181811067ffffffffffffffff8211171561546c57600080fd5b8060405250919050565b600067ffffffffffffffff82111561548d57600080fd5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff8211156154b957600080fd5b601f19601f8301169050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600061551c82615577565b9050919050565b600061552e82615577565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156155ce5780820151818401526020810190506155b3565b838111156155dd576000848401525b50505050565b6000601f19601f8301169050919050565b6155fd81615511565b811461560857600080fd5b50565b61561481615535565b811461561f57600080fd5b50565b61562b81615541565b811461563657600080fd5b50565b6156428161554b565b811461564d57600080fd5b50565b61565981615597565b811461566457600080fd5b5056fe4552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656ea26469706673582212207d96829e7adaa7f89d3d6d38321c0a27e0b2881beb1e4fbf716f4dc623da712a64736f6c634300060c0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.