Overview
ETH Balance
1.875 ETH
Eth Value
$4,730.63 (@ $2,523.00/ETH)More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 179 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Mint Chronic | 17781764 | 401 days ago | IN | 0.03 ETH | 0.00692571 | ||||
Mint Whitelisted... | 17770859 | 402 days ago | IN | 0 ETH | 0.00176527 | ||||
Mint Whitelisted... | 17770857 | 402 days ago | IN | 0 ETH | 0.00181855 | ||||
Mint Whitelisted... | 17770853 | 402 days ago | IN | 0 ETH | 0.0019755 | ||||
Mint Whitelisted... | 17770844 | 402 days ago | IN | 0 ETH | 0.00166342 | ||||
Mint Whitelisted... | 17770829 | 402 days ago | IN | 0 ETH | 0.00156897 | ||||
Mint Whitelisted... | 17769990 | 402 days ago | IN | 0 ETH | 0.01251025 | ||||
Mint Whitelisted... | 17766643 | 403 days ago | IN | 0 ETH | 0.00813527 | ||||
Mint Whitelisted... | 17766643 | 403 days ago | IN | 0 ETH | 0.00673064 | ||||
Mint Whitelisted... | 17763594 | 403 days ago | IN | 0 ETH | 0.01655817 | ||||
Mint Whitelisted... | 17763221 | 403 days ago | IN | 0 ETH | 0.01238941 | ||||
Mint Whitelisted... | 17762463 | 403 days ago | IN | 0 ETH | 0.00814608 | ||||
Mint Whitelisted... | 17761730 | 403 days ago | IN | 0 ETH | 0.0067057 | ||||
Mint Whitelisted... | 17761710 | 403 days ago | IN | 0 ETH | 0.00741588 | ||||
Set Whitelist | 17761543 | 404 days ago | IN | 0 ETH | 0.00067743 | ||||
Mint Chronic | 17752496 | 405 days ago | IN | 0.03 ETH | 0.00466884 | ||||
Mint Chronic | 17752428 | 405 days ago | IN | 0.03 ETH | 0.00481186 | ||||
Mint Chronic | 17739007 | 407 days ago | IN | 0.03 ETH | 0.00645476 | ||||
Set Whitelist | 17728233 | 408 days ago | IN | 0 ETH | 0.00172334 | ||||
Mint Whitelisted... | 17726570 | 408 days ago | IN | 0.015 ETH | 0.00568614 | ||||
Mint Chronic | 17725417 | 409 days ago | IN | 0.03 ETH | 0.00627493 | ||||
Mint Whitelisted... | 17723503 | 409 days ago | IN | 0.015 ETH | 0.01547285 | ||||
Mint Whitelisted... | 17723503 | 409 days ago | IN | 0.015 ETH | 0.0083199 | ||||
Mint Whitelisted... | 17723503 | 409 days ago | IN | 0.015 ETH | 0.00828369 | ||||
Mint Whitelisted... | 17723503 | 409 days ago | IN | 0.015 ETH | 0.00661119 |
Latest 2 internal transactions
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
17522309 | 437 days ago | 0.24 ETH | ||||
17372180 | 458 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
Breeder
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 100 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // Sources flattened with hardhat v2.14.0 https://hardhat.org // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File @openzeppelin/contracts/utils/math/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol) pragma solidity ^0.8.0; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(account), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File @openzeppelin/contracts/security/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // File @openzeppelin/contracts/utils/escrow/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (utils/escrow/Escrow.sol) pragma solidity ^0.8.0; /** * @title Escrow * @dev Base escrow contract, holds funds designated for a payee until they * withdraw them. * * Intended usage: This contract (and derived escrow contracts) should be a * standalone contract, that only interacts with the contract that instantiated * it. That way, it is guaranteed that all Ether will be handled according to * the `Escrow` rules, and there is no need to check for payable functions or * transfers in the inheritance tree. The contract that uses the escrow as its * payment method should be its owner, and provide public methods redirecting * to the escrow's deposit and withdraw. */ contract Escrow is Ownable { using Address for address payable; event Deposited(address indexed payee, uint256 weiAmount); event Withdrawn(address indexed payee, uint256 weiAmount); mapping(address => uint256) private _deposits; function depositsOf(address payee) public view returns (uint256) { return _deposits[payee]; } /** * @dev Stores the sent amount as credit to be withdrawn. * @param payee The destination address of the funds. * * Emits a {Deposited} event. */ function deposit(address payee) public payable virtual onlyOwner { uint256 amount = msg.value; _deposits[payee] += amount; emit Deposited(payee, amount); } /** * @dev Withdraw accumulated balance for a payee, forwarding all gas to the * recipient. * * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. * Make sure you trust the recipient, or are either following the * checks-effects-interactions pattern or using {ReentrancyGuard}. * * @param payee The address whose funds will be withdrawn and transferred to. * * Emits a {Withdrawn} event. */ function withdraw(address payable payee) public virtual onlyOwner { uint256 payment = _deposits[payee]; _deposits[payee] = 0; payee.sendValue(payment); emit Withdrawn(payee, payment); } } // File @openzeppelin/contracts/security/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (security/PullPayment.sol) pragma solidity ^0.8.0; /** * @dev Simple implementation of a * https://consensys.github.io/smart-contract-best-practices/development-recommendations/general/external-calls/#favor-pull-over-push-for-external-calls[pull-payment] * strategy, where the paying contract doesn't interact directly with the * receiver account, which must withdraw its payments itself. * * Pull-payments are often considered the best practice when it comes to sending * Ether, security-wise. It prevents recipients from blocking execution, and * eliminates reentrancy concerns. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. * * To use, derive from the `PullPayment` contract, and use {_asyncTransfer} * instead of Solidity's `transfer` function. Payees can query their due * payments with {payments}, and retrieve them with {withdrawPayments}. */ abstract contract PullPayment { Escrow private immutable _escrow; constructor() { _escrow = new Escrow(); } /** * @dev Withdraw accumulated payments, forwarding all gas to the recipient. * * Note that _any_ account can call this function, not just the `payee`. * This means that contracts unaware of the `PullPayment` protocol can still * receive funds this way, by having a separate account call * {withdrawPayments}. * * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. * Make sure you trust the recipient, or are either following the * checks-effects-interactions pattern or using {ReentrancyGuard}. * * @param payee Whose payments will be withdrawn. * * Causes the `escrow` to emit a {Withdrawn} event. */ function withdrawPayments(address payable payee) public virtual { _escrow.withdraw(payee); } /** * @dev Returns the payments owed to an address. * @param dest The creditor's address. */ function payments(address dest) public view returns (uint256) { return _escrow.depositsOf(dest); } /** * @dev Called by the payer to store the sent amount as credit to be pulled. * Funds sent in this way are stored in an intermediate {Escrow} contract, so * there is no danger of them being spent before withdrawal. * * @param dest The destination address of the funds. * @param amount The amount to transfer. * * Causes the `escrow` to emit a {Deposited} event. */ function _asyncTransfer(address dest, uint256 amount) internal virtual { _escrow.deposit{value: amount}(dest); } } // File @openzeppelin/contracts/token/ERC721/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // File @openzeppelin/contracts/utils/cryptography/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV // Deprecated in v4.8 } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } } // File src/EIP712Whitelisting.sol pragma solidity ^0.8.0; contract EIP712Whitelisting is Ownable { using ECDSA for bytes32; // The key used to sign whitelist signatures. // We will check to ensure that the key that signed the signature // is this one that we expect. address whitelistSigningKey = address(0); // Domain Separator is the EIP-712 defined structure that defines what contract // and chain these signatures can be used for. This ensures people can't take // a signature used to mint on one contract and use it for another, or a signature // from testnet to replay on mainnet. // It has to be created in the constructor so we can dynamically grab the chainId. // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md#definition-of-domainseparator bytes32 public DOMAIN_SEPARATOR; // The typehash for the data type specified in the structured data // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md#rationale-for-typehash // This should match whats in the client side whitelist signing code // https://github.com/msfeldstein/EIP712-whitelisting/blob/main/test/signWhitelist.ts#L22 bytes32 public constant MINTER_TYPEHASH = keccak256("Minter(address wallet)"); constructor() { // This should match whats in the client side whitelist signing code // https://github.com/msfeldstein/EIP712-whitelisting/blob/main/test/signWhitelist.ts#L12 DOMAIN_SEPARATOR = keccak256( abi.encode( keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ), // This should match the domain you set in your client side signing. keccak256(bytes("CryptoChronicWhitelist")), keccak256(bytes("1")), block.chainid, address(this) ) ); } function setWhitelistSigningAddress(address newSigningKey) public onlyOwner { whitelistSigningKey = newSigningKey; } modifier requiresWhitelist(bytes calldata signature) { require(whitelistSigningKey != address(0), "whitelist not enabled"); // Verify EIP-712 signature by recreating the data structure // that we signed on the client side, and then using that to recover // the address that signed the signature for this data. bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR, keccak256(abi.encode(MINTER_TYPEHASH, msg.sender)) ) ); // Use the recover method to see what address was used to create // the signature on this data. // Note that if the digest doesn't exactly match what was signed we'll // get a random recovered address. address recoveredAddress = digest.recover(signature); require(recoveredAddress == whitelistSigningKey, "Invalid Signature"); _; } } // File src/IBreeder.sol pragma solidity ^0.8.17; interface IBreeder { function mintChronic() external payable; function breed(uint256 parent1, uint256 parent2) external payable; } // File src/IChronic.sol pragma solidity ^0.8.17; interface IChronic is IERC721Enumerable { function getInitialTokens() external view returns (uint8); function fertility(uint256 tokenId) external view returns (uint8); function getGene(uint256 tokenId) external view returns (uint256); function mint(address to, uint256 gene, uint256 parent1, uint256 parent2, uint8 initialFertility) external returns (uint256); function increaseFertility(uint256 tokenId, uint8 amount) external; function decreaseFertility(uint256 tokenId, uint8 amount) external; function craft(address to, uint256 gene, uint8 initialFertility, uint256 otherBCtokenId) external returns (uint256); function freezeToken(uint256 tokenId) external; function unfreezeToken(address to, uint256 tokenId, uint8 initialFertility) external; } // File src/Breeder.sol //Contract based on [https://docs.openzeppelin.com/contracts/3.x/erc721](https://docs.openzeppelin.com/contracts/3.x/erc721) pragma solidity ^0.8.17; /// @title CryptoChronic Breeder contract Breeder is IBreeder, Ownable, Pausable, EIP712Whitelisting, AccessControl, PullPayment { bytes32 public constant FINANCE_ROLE = keccak256("FINANCE_ROLE"); bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE"); bytes32 public constant WHITELISTER_ROLE = keccak256("WHITELISTER_ROLE"); // constants uint256 internal constant MAX_INT_TYPE = type(uint256).max; uint8 internal constant LAYERS = 7; uint8 internal constant RARITY = 4; uint16 internal constant RANDOM_SLICE = type(uint16).max; // external contracts IChronic cc; // state variables uint8 public series = 0; uint8 public fertility = 15; uint256 public breedPrice = 0.03 ether; uint256 public mintPrice = 0.06 ether; // 0.06 in ether uint256 internal _initialNumber = 1; // whitelist values uint40 public wlBlock = 0; uint16 public wlCounter = 0; uint16 public wlCounted = 0; uint256 public wlPrice = 0.03 ether; bool public canMintChronic = true; modifier canMint() { require(canMintChronic, "Minting is not allowed"); _; } /* Layers: 0 body => [0, ID->battleStats...] 1 eyes => [0, ID->battleStats...] 2 mouth => [0, ID->battleStats...] 3 headgear => [0, ID->battleStats...] 4 arms => [0, ID->battleStats...] 5 leaves => [0, ID->battleStats...] 6 vase => [0, ID->battleStats...] */ int128[][7] internal _layers; /* Weights 0 body 0 total rarity => [ 0 subtotal 1 number of parts ID... ] 1 eyes 2 mouth 3 headgear 4 arms 5 leaves 6 vase */ uint16[][5][7] internal _weights; // events event BredChronic( address indexed sender, address to, uint256 parent1, uint256 parent2, uint256 tokenId ); event ChangedBreedPrice(uint256 oldValue, uint256 newValue); event ChangedMintPrice(uint256 oldValue, uint256 newValue); event ChangedFertility(uint8 oldValue, uint8 newValue); event ChangedLayerPart( uint8 layerIndex, uint8 partIndex, int128 oldValue, int128 newValue ); event ChangedSeries(uint8 oldValue, uint8 newValue); event WhitelistSet(uint40 blockNumber, uint16 counter, uint256 price); event CanMint(bool value); event ChronciContractChanged(address ChronicAddress); event LayersChanged(); event WeightsChanged(); // struct, arrays or enums struct ChronicBody { uint8 series; uint8 bodyID; uint8 eyesID; uint8 mouthID; uint8 headgearID; uint8 armsID; uint8 leavesID; uint8 vaseID; //uint8 TBD; uint8 generation; uint16 varTHC; uint16 actualTHC; uint16 varCBD; uint16 actualCBD; uint16 varAroma; uint16 actualAroma; } // constructor constructor(address[] memory finance, address[] memory whitelister, address[] memory admin) { _pause(); _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); for (uint256 i = 0; i < finance.length; ++i) { _grantRole(FINANCE_ROLE, finance[i]); } for (uint256 i = 0; i < whitelister.length; ++i) { _grantRole(WHITELISTER_ROLE, whitelister[i]); } for (uint256 i = 0; i < admin.length; ++i) { _grantRole(ADMIN_ROLE, admin[i]); } } // receive - fallback receive() external payable { revert("This contract cannot accept token"); } fallback() external payable { require(msg.data.length == 0); } // external functions // > pause methods function pause() external { require(hasRole(ADMIN_ROLE, msg.sender), "Caller is not an admin"); _pause(); } function unpause() external { require(hasRole(ADMIN_ROLE, msg.sender), "Caller is not an admin"); _unpause(); } function setCanMint(bool val) external { require(hasRole(ADMIN_ROLE, msg.sender), "Caller is not an admin"); canMintChronic=val; emit CanMint(val); } function setWhitelist(uint40 blockNumber, uint16 counter, uint256 price) external { require(hasRole(WHITELISTER_ROLE, msg.sender), "Caller is not a whitelister"); wlBlock = blockNumber; wlPrice = price; wlCounter = counter; wlCounted = 0; emit WhitelistSet(blockNumber, counter, price); } // > getter function getChronicBody(uint256 tokenId) external view returns (ChronicBody memory) { uint256 gene = cc.getGene(tokenId); ChronicBody memory chronicBody; chronicBody.series = uint8(gene); chronicBody.bodyID = uint8(gene >> 8); chronicBody.eyesID = uint8(gene >> 16); chronicBody.mouthID = uint8(gene >> 24); chronicBody.headgearID = uint8(gene >> 32); chronicBody.armsID = uint8(gene >> 40); chronicBody.leavesID = uint8(gene >> 48); chronicBody.vaseID = uint8(gene >> 56); //chronicBody.TBD = uint8(gene >> 64); chronicBody.generation = uint8(gene >> 72); chronicBody.varTHC = uint16(gene >> 88); chronicBody.actualTHC = uint16(gene >> 104); chronicBody.varCBD = uint16(gene >> 120); chronicBody.actualCBD = uint16(gene >> 136); chronicBody.varAroma = uint16(gene >> 152); chronicBody.actualAroma = uint16(gene >> 168); return chronicBody; } // > setters function setChronicContract(address addr) external whenPaused { require(hasRole(ADMIN_ROLE, msg.sender), "Caller is not an admin"); cc = IChronic(addr); emit ChronciContractChanged( addr); } function setBreedPrice(uint256 value) external whenPaused { require(hasRole(FINANCE_ROLE, msg.sender), "Caller is not a finance"); uint256 oldValue = breedPrice; breedPrice = value; emit ChangedBreedPrice(oldValue, value); } function setMintPrice(uint256 value) external whenPaused { require(hasRole(FINANCE_ROLE, msg.sender), "Caller is not a finance"); uint256 oldValue = mintPrice; mintPrice = value; emit ChangedMintPrice(oldValue, value); } function setFertility(uint8 value) external whenPaused { require(hasRole(ADMIN_ROLE, msg.sender), "Caller is not an admin"); uint8 oldValue = fertility; fertility = value; emit ChangedFertility(oldValue, value); } function setSeries(uint8 value) external whenPaused { require(hasRole(ADMIN_ROLE, msg.sender), "Caller is not an admin"); uint8 oldValue = series; series = value; emit ChangedSeries(oldValue, value); } function setLayers(int128[][7] memory value) external whenPaused { require(hasRole(ADMIN_ROLE, msg.sender), "Caller is not an admin"); _layers = value; emit LayersChanged(); } function setLayer(uint8 layerIndex, int128[] memory value) external whenPaused { require(hasRole(ADMIN_ROLE, msg.sender), "Caller is not an admin"); _layers[layerIndex] = value; emit LayersChanged(); } function setLayerPart( uint8 layerIndex, uint8 partIndex, int128 value ) external whenPaused { require(hasRole(ADMIN_ROLE, msg.sender), "Caller is not an admin"); int128 oldValue = _layers[layerIndex][partIndex]; _layers[layerIndex][partIndex] = value; emit ChangedLayerPart(layerIndex, partIndex, oldValue, value); } function setWeights(uint16[][5][7] memory value) external whenPaused { require(hasRole(ADMIN_ROLE, msg.sender), "Caller is not an admin"); _weights = value; emit WeightsChanged(); } // > token methods function createChronics(address to) external whenNotPaused { require(hasRole(ADMIN_ROLE, msg.sender), "Caller is not an admin"); uint8 initialChronics = cc.getInitialTokens(); uint256 balance = cc.balanceOf(to); require(balance < initialChronics, "address has more than initial Chronics"); for (uint8 i = 0; i < initialChronics - balance; ) { uint256 gene = _generate(); cc.mint(to, gene, 0, 0, fertility); unchecked { i++; } } } function mintChronic() external payable whenNotPaused canMint { require((msg.value >= mintPrice), "Amount is less than mintPrice"); uint256 gene = _generate(); cc.mint(_msgSender(), gene, 0, 0, fertility); } function mintWhitelistedChronic(bytes calldata signature) external payable whenNotPaused requiresWhitelist(signature) { require((msg.value >= wlPrice), "Amount is less than wlPrice"); require(block.number <= wlBlock, "whitelist timeline is finished"); require(wlCounted < wlCounter, "reached whitelist limit"); uint256 gene = _generate(); wlCounted++; cc.mint(_msgSender(), gene, 0, 0, fertility); } function breed(uint256 parent1, uint256 parent2) external payable whenNotPaused { require(msg.value >= breedPrice, "Amount is less than breedPrice"); require((parent1 != parent2), "Parent1 and 2 must be different"); require( _msgSender() == cc.ownerOf(parent1), "Sender is not the owner of parent1" ); require( _msgSender() == cc.ownerOf(parent2), "Sender is not the owner of parent2" ); uint8 parent1Fertility = cc.fertility(parent1); require((parent1Fertility > 0), "Parent1 has no fertility"); uint8 parent2Fertility = cc.fertility(parent2); require((parent2Fertility > 0), "Parent2 has no fertility"); _breed(_msgSender(), parent1, parent2); } function breed( address to, uint256 parent1, uint256 parent2 ) external whenNotPaused { require(hasRole(ADMIN_ROLE, msg.sender), "Caller is not an admin"); require((parent1 != parent2), "Parent1 and 2 must be different"); require( to == cc.ownerOf(parent1), "Sender is not the owner of parent1" ); require( to == cc.ownerOf(parent2), "Sender is not the owner of parent2" ); uint8 parent1Fertility = cc.fertility(parent1); require((parent1Fertility > 0), "Parent1 has no fertility"); uint8 parent2Fertility = cc.fertility(parent2); require((parent2Fertility > 0), "Parent2 has no fertility"); _breed(to, parent1, parent2); } function withdraw(uint256 amount) external whenNotPaused { require(hasRole(FINANCE_ROLE, msg.sender), "Caller is not a finance"); address payable to = payable(msg.sender); //uint256 balance = address(this).balance; _asyncTransfer(to, amount); //to.transfer(balance); } // internal functions // > helpers function _createRandom(uint256 number) internal returns (uint256) { return uint256(keccak256(abi.encodePacked(block.difficulty, block.timestamp, (_initialNumber++)))) % number; } // > generation methods // >> create function _generate() internal returns (uint256) { // Generate a 256 bit random uint256 random = _createRandom(MAX_INT_TYPE); // Set the 256 bit gene number, the first 8 bits keep record of the current series uint256 gene = series; // Init battleStats int256 battleStats; // Loop on each Chronic layers as defined in _layers unchecked { for (uint8 layerIndex = 0; layerIndex < LAYERS; layerIndex++) { // Get the total of weighs of the current layer uint16 total = _weights[layerIndex][0][0]; // Set the bitshift used to manipulate gene information according of the position of the index, we skip the first 8 bits because they're occupied by the series uint8 lsh = ((layerIndex + 1) * 8); // Set the bitshift used to use the uint256 random number in order to split in several parts, 1 for each layer uint8 rsh = (layerIndex * 32); // Chop a 16 bits random number from the 256 bits random in order to pick the rarity uint256 rnd = uint16((random >> rsh) & RANDOM_SLICE); // Recalculate the random to proportionate accordint to the total weight and to 16 bit maximum rnd = uint256(uint256(rnd) * uint256(total)) / uint256(RANDOM_SLICE); // Lower the recalculated random if > 0 because since we're going to floor its division to pick a rarity index we've to avoid that the random is equal to 0xFFFF if (rnd > 0) { rnd -= 1; } // We need a second random so we shift of another 16 bits in order to pick the part of the given rarity rsh += 16; uint16 rnd2 = uint16((random >> rsh) & RANDOM_SLICE); // We lower also the second number if (rnd2 > 0) { rnd2 -= 1; } // We pick a random rarity index uint8 rarityPick = 1; for ( uint8 rarityIndex = 1; rarityIndex <= RARITY; rarityIndex++ ) { uint16 subtotal = _weights[layerIndex][rarityIndex][0]; if (rnd < subtotal) { rarityPick = rarityIndex; break; } rnd -= subtotal; } // We pick a part ID of the given rarity uint256 partPick = uint256( uint256(rnd2) * uint256(_weights[layerIndex][rarityPick][1]) ) / uint256(RANDOM_SLICE); // Since we're in unchecked if ever the division is flow we're going to choose the last part if (partPick > _weights[layerIndex][rarityPick][1]) { partPick = _weights[layerIndex][rarityPick][1] - 1; } // The first 2 indexes are the subtotal and the count parts, so the pick must start from index 2 partPick += 2; uint16 partID = _weights[layerIndex][rarityPick][partPick]; int128 part = _layers[layerIndex][partID]; // Add the ID to the gene in the corresponding position int256 id = int256(part & 0xFF); gene |= uint256(id << lsh); // Add the battle stats of the picked part, we shift the first 8 bits that hold the ID if (layerIndex == 0) { // body has positive values battleStats = part >> 8; } else { // other layers have negative values battleStats += part >> 8; } } // add generation 1 to the gene gene |= uint256(1 << 72); // add battle stats to the gene gene |= uint256(battleStats << 80); return gene; } } // >> breed function _generate( uint256 parent1Gene, uint256 parent2Gene, uint256 generation ) internal returns (uint256) { // Generate a 256 bit random uint256 random = _createRandom(MAX_INT_TYPE); // Set the 256 bit gene number, the first 8 bits keep record of the current series uint256 gene = series; // Init battleStats int256 battleStats; // Loop on each Chronic layers as defined in _layers unchecked { for (uint8 layerIndex = 0; layerIndex < LAYERS; layerIndex++) { // Get the total of weighs of the current layer uint16 total = _weights[layerIndex][0][0] + (_weights[layerIndex][0][0] / 2); // Set the bitshift used to manipulate gene information according of the position of the index, we skip the first 8 bits because they're occupied by the series uint8 lsh = ((layerIndex + 1) * 8); // Set the bitshift used to use the uint256 random number in order to split in several parts, 1 for each layer uint8 rsh = (layerIndex * 32); // Chop a 16 bits random number from the 256 bits random in order to pick the rarity uint256 rnd = uint16((random >> rsh) & RANDOM_SLICE); // Recalculate the random to proportionate accordint to the total weight and to 16 bit maximum rnd = uint256(uint256(rnd) * uint256(total)) / uint256(RANDOM_SLICE); // Lower the recalculated random if > 0 because since we're going to floor its division to pick a rarity index we've to avoid that the random is equal to 0xFFFF if (rnd > 0) { rnd -= 1; } // We pick a random rarity index uint8 rarityPick = RARITY + 1; for ( uint8 rarityIndex = 1; rarityIndex <= RARITY; rarityIndex++ ) { uint16 subtotal = _weights[layerIndex][rarityIndex][0]; if (rnd < subtotal) { rarityPick = rarityIndex; break; } rnd -= subtotal; } // Part ID uint16 partID; // If we didn't pick a rarity it means the rnd is greater and we have to pick one of the parent parts, which one depends if the remaing rnd is greater than the parentWeigt if (rarityPick > RARITY) { if (rnd < (total / 4)) { // Fetch the parent 1 Chronic part partID = uint16(uint8((parent1Gene >> lsh) & 0xFF)); } else { // Fetch the parent 2 Chronic part partID = uint16(uint8((parent2Gene >> lsh) & 0xFF)); } } else { // We've picked a real rarity // We need a second random so we shift of another 16 bits in order to pick the part of the given rarity rsh += 16; uint16 rnd2 = uint16((random >> rsh) & RANDOM_SLICE); // We lower also the second number if (rnd2 > 0) { rnd2 -= 1; } // We pick a part ID of the given rarity uint256 partPick = uint256( uint256(rnd2) * uint256(_weights[layerIndex][rarityPick][1]) ) / uint256(RANDOM_SLICE); // Since we're in unchecked if ever the division is flow we're going to choose the last part if (partPick > _weights[layerIndex][rarityPick][1]) { partPick = _weights[layerIndex][rarityPick][1] - 1; } // The first 2 indexes are the subtotal and the count parts, so the pick must start from index 2 partPick += 2; partID = _weights[layerIndex][rarityPick][partPick]; } // Get the data of the picked part int256 part = _layers[layerIndex][partID]; // Add the ID to the gene in the corresponding position gene |= uint256((part & 0xFF) << lsh); // Add the battle stats of the picked part, we shift the first 8 bits that hold the ID if (layerIndex == 0) { // body has positive values battleStats = part >> 8; } else { // other layers have negative values battleStats += part >> 8; } } // add generation to the gene gene |= uint256(generation << 72); // add battle stats to the gene gene |= uint256(battleStats << 80); return gene; } } function _breed( address to, uint256 parent1, uint256 parent2 ) internal { uint256 parent1Gene = cc.getGene(parent1); require((parent1Gene > 0), "Parent1 gene not found"); uint256 parent2Gene = cc.getGene(parent2); require((parent2Gene > 0), "Parent2 gene not found"); uint256 parent1Generation = uint8((parent1Gene >> 72) & 0xFF); uint256 parent2Generation = uint8((parent2Gene >> 72) & 0xFF); uint256 generation = parent1Generation > parent2Generation ? parent1Generation : parent2Generation; uint256 gene = _generate(parent1Gene, parent2Gene, ++generation); uint8 _fertility = generation > fertility ? 1 : uint8(fertility / generation); if (_fertility == 0) { _fertility = 1; } cc.decreaseFertility(parent1, 1); cc.decreaseFertility(parent2, 1); uint256 tokenId = cc.mint(to, gene, parent1, parent2, _fertility); emit BredChronic(_msgSender(), to, parent1, parent2, tokenId); } }
{ "optimizer": { "enabled": true, "runs": 100 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address[]","name":"finance","type":"address[]"},{"internalType":"address[]","name":"whitelister","type":"address[]"},{"internalType":"address[]","name":"admin","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"parent1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"parent2","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"BredChronic","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"value","type":"bool"}],"name":"CanMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"ChangedBreedPrice","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"oldValue","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"newValue","type":"uint8"}],"name":"ChangedFertility","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"layerIndex","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"partIndex","type":"uint8"},{"indexed":false,"internalType":"int128","name":"oldValue","type":"int128"},{"indexed":false,"internalType":"int128","name":"newValue","type":"int128"}],"name":"ChangedLayerPart","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"ChangedMintPrice","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"oldValue","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"newValue","type":"uint8"}],"name":"ChangedSeries","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"ChronicAddress","type":"address"}],"name":"ChronciContractChanged","type":"event"},{"anonymous":false,"inputs":[],"name":"LayersChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[],"name":"WeightsChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint40","name":"blockNumber","type":"uint40"},{"indexed":false,"internalType":"uint16","name":"counter","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"WhitelistSet","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FINANCE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELISTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"parent1","type":"uint256"},{"internalType":"uint256","name":"parent2","type":"uint256"}],"name":"breed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"parent1","type":"uint256"},{"internalType":"uint256","name":"parent2","type":"uint256"}],"name":"breed","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"breedPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canMintChronic","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"createChronics","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fertility","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getChronicBody","outputs":[{"components":[{"internalType":"uint8","name":"series","type":"uint8"},{"internalType":"uint8","name":"bodyID","type":"uint8"},{"internalType":"uint8","name":"eyesID","type":"uint8"},{"internalType":"uint8","name":"mouthID","type":"uint8"},{"internalType":"uint8","name":"headgearID","type":"uint8"},{"internalType":"uint8","name":"armsID","type":"uint8"},{"internalType":"uint8","name":"leavesID","type":"uint8"},{"internalType":"uint8","name":"vaseID","type":"uint8"},{"internalType":"uint8","name":"generation","type":"uint8"},{"internalType":"uint16","name":"varTHC","type":"uint16"},{"internalType":"uint16","name":"actualTHC","type":"uint16"},{"internalType":"uint16","name":"varCBD","type":"uint16"},{"internalType":"uint16","name":"actualCBD","type":"uint16"},{"internalType":"uint16","name":"varAroma","type":"uint16"},{"internalType":"uint16","name":"actualAroma","type":"uint16"}],"internalType":"struct Breeder.ChronicBody","name":"","type":"tuple"}],"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":"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":"mintChronic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintWhitelistedChronic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dest","type":"address"}],"name":"payments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"series","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setBreedPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"setCanMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setChronicContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"value","type":"uint8"}],"name":"setFertility","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"layerIndex","type":"uint8"},{"internalType":"int128[]","name":"value","type":"int128[]"}],"name":"setLayer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"layerIndex","type":"uint8"},{"internalType":"uint8","name":"partIndex","type":"uint8"},{"internalType":"int128","name":"value","type":"int128"}],"name":"setLayerPart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int128[][7]","name":"value","type":"int128[][7]"}],"name":"setLayers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"value","type":"uint8"}],"name":"setSeries","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[][5][7]","name":"value","type":"uint16[][5][7]"}],"name":"setWeights","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint40","name":"blockNumber","type":"uint40"},{"internalType":"uint16","name":"counter","type":"uint16"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSigningKey","type":"address"}],"name":"setWhitelistSigningAddress","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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdrawPayments","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wlBlock","outputs":[{"internalType":"uint40","name":"","type":"uint40"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wlCounted","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wlCounter","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wlPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a0604052600180546001600160a01b03191681556004805461ffff60a01b1916600f60a81b179055666a94d74f430000600581905566d529ae9e8600006006556007829055600880546001600160481b0319169055600955600a805460ff191690911790553480156200007257600080fd5b50604051620050b4380380620050b48339810160408190526200009591620005bc565b620000a0336200030c565b6000805460ff60a01b19169055604080518082018252601681527f43727970746f4368726f6e696357686974656c697374000000000000000000006020918201528151808301835260018152603160f81b9082015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818301527f946dc192824ca040eb210640999380a7620bedf411f5448c3e6d0e142c080ef5818401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a0808301919091528351808303909101815260c09091019283905280519101206002556200019d90620004ce565b604051809103906000f080158015620001ba573d6000803e3d6000fd5b506001600160a01b0316608052620001d16200035c565b620001de600033620003bf565b60005b83518110156200024c57620002397f940d6b1946ff1d2b5a9f1909219c3c81a370804b5ba0f91ec0828c99a2e6a6818583815181106200022557620002256200064d565b6020026020010151620003cf60201b60201c565b620002448162000663565b9050620001e1565b5060005b8251811015620002a757620002947f8619cecd8b9e095ab43867f5b69d492180450fe862e6b50bfbfb24b75dd84c8a8483815181106200022557620002256200064d565b6200029f8162000663565b905062000250565b5060005b81518110156200030257620002ef7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217758383815181106200022557620002256200064d565b620002fa8162000663565b9050620002ab565b505050506200068b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6200036662000473565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620003a23390565b6040516001600160a01b03909116815260200160405180910390a1565b620003cb8282620003cf565b5050565b60008281526003602090815260408083206001600160a01b038516845290915290205460ff16620003cb5760008281526003602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200042f3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b62000487600054600160a01b900460ff1690565b15620004cc5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640160405180910390fd5b565b61058c8062004b2883390190565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200050a57600080fd5b919050565b600082601f8301126200052157600080fd5b815160206001600160401b0380831115620005405762000540620004dc565b8260051b604051601f19603f83011681018181108482111715620005685762000568620004dc565b6040529384528581018301938381019250878511156200058757600080fd5b83870191505b84821015620005b157620005a182620004f2565b835291830191908301906200058d565b979650505050505050565b600080600060608486031215620005d257600080fd5b83516001600160401b0380821115620005ea57600080fd5b620005f8878388016200050f565b945060208601519150808211156200060f57600080fd5b6200061d878388016200050f565b935060408601519150808211156200063457600080fd5b5062000643868287016200050f565b9150509250925092565b634e487b7160e01b600052603260045260246000fd5b6000600182016200068457634e487b7160e01b600052601160045260246000fd5b5060010190565b608051614473620006b560003960008181610f0f01528181611c8c015261261f01526144736000f3fe6080604052600436106102975760003560e01c8063767574901161015a578063c7f8d01a116100c1578063f034c2b61161007a578063f034c2b614610845578063f12d870f14610865578063f2fde38b14610886578063f4a0a528146108a6578063fa4d280c146108c6578063fc8c0114146108fa576102f3565b8063c7f8d01a1461079c578063cd770833146107b2578063d547741f146107d2578063d9ecad7b146107f2578063e2982c2114610805578063f02b02d514610825576102f3565b806398659b021161011357806398659b02146106ec5780639a57829a1461070c5780639f203f2f1461072c578063a1d689b01461074c578063a217fddf1461077f578063b8a2d0e014610794576102f3565b8063767574901461063c5780638456cb591461065e57806386aa55ad146106735780638da5cb5b1461069357806391d14854146106b957806395234c53146106d9576102f3565b80633644e515116101fe5780635b040fc4116101b75780635b040fc41461058d5780635c975abb146105ba5780636817c76c146105cf578063715018a6146105e557806371beeba1146105fa57806375b238fc1461061a576102f3565b80633644e515146104c057806336568abe146104d657806337442d73146104f65780633f4ba83a1461052a5780634b7a67de1461053f578063570618e114610559576102f3565b80632a16d791116102505780632a16d791146104085780632a5f510e146104285780632e1a7d4d1461043e5780632f2ff15d1461045e57806331b3eb941461047e578063349b59541461049e576102f3565b806301ffc9a714610300578063020d8b7e14610335578063085be66a1461035557806312e3fe1014610375578063215bf46114610395578063248a9ca3146103ca576102f3565b366102f35760405162461bcd60e51b815260206004820152602160248201527f5468697320636f6e74726163742063616e6e6f742061636365707420746f6b656044820152603760f91b60648201526084015b60405180910390fd5b36156102fe57600080fd5b005b34801561030c57600080fd5b5061032061031b366004613948565b61091a565b60405190151581526020015b60405180910390f35b34801561034157600080fd5b506102fe610350366004613a3c565b610951565b34801561036157600080fd5b506102fe610370366004613bad565b6109c7565b34801561038157600080fd5b506102fe610390366004613c09565b610b24565b3480156103a157600080fd5b506008546103b790600160281b900461ffff1681565b60405161ffff909116815260200161032c565b3480156103d657600080fd5b506103fa6103e5366004613c3e565b60009081526003602052604090206001015490565b60405190815260200161032c565b34801561041457600080fd5b506102fe610423366004613c57565b610df1565b34801561043457600080fd5b506103fa60055481565b34801561044a57600080fd5b506102fe610459366004613c3e565b610e83565b34801561046a57600080fd5b506102fe610479366004613c74565b610ece565b34801561048a57600080fd5b506102fe610499366004613c57565b610ef8565b3480156104aa57600080fd5b506103fa6000805160206143fe83398151915281565b3480156104cc57600080fd5b506103fa60025481565b3480156104e257600080fd5b506102fe6104f1366004613c74565b610f72565b34801561050257600080fd5b506008546105149064ffffffffff1681565b60405164ffffffffff909116815260200161032c565b34801561053657600080fd5b506102fe610fec565b34801561054b57600080fd5b50600a546103209060ff1681565b34801561056557600080fd5b506103fa7f8619cecd8b9e095ab43867f5b69d492180450fe862e6b50bfbfb24b75dd84c8a81565b34801561059957600080fd5b506105ad6105a8366004613c3e565b61102a565b60405161032c9190613ca4565b3480156105c657600080fd5b5061032061116e565b3480156105db57600080fd5b506103fa60065481565b3480156105f157600080fd5b506102fe61117e565b34801561060657600080fd5b506102fe610615366004613c3e565b611190565b34801561062657600080fd5b506103fa60008051602061441e83398151915281565b34801561064857600080fd5b506008546103b790600160381b900461ffff1681565b34801561066a57600080fd5b506102fe611212565b34801561067f57600080fd5b506102fe61068e366004613dac565b61124e565b34801561069f57600080fd5b506000546001600160a01b031660405161032c9190613dc9565b3480156106c557600080fd5b506103206106d4366004613c74565b6112e6565b6102fe6106e7366004613ddd565b611311565b3480156106f857600080fd5b506102fe610707366004613dac565b611680565b34801561071857600080fd5b506102fe610727366004613e4e565b611718565b34801561073857600080fd5b506102fe610747366004613ed2565b61178d565b34801561075857600080fd5b5060045461076d90600160a81b900460ff1681565b60405160ff909116815260200161032c565b34801561078b57600080fd5b506103fa600081565b6102fe611803565b3480156107a857600080fd5b506103fa60095481565b3480156107be57600080fd5b506102fe6107cd366004613c57565b611939565b3480156107de57600080fd5b506102fe6107ed366004613c74565b611963565b6102fe610800366004613f6c565b611988565b34801561081157600080fd5b506103fa610820366004613c57565b611c72565b34801561083157600080fd5b506102fe610840366004613c57565b611d02565b34801561085157600080fd5b506102fe610860366004613f8e565b611f45565b34801561087157600080fd5b5060045461076d90600160a01b900460ff1681565b34801561089257600080fd5b506102fe6108a1366004613c57565b611fda565b3480156108b257600080fd5b506102fe6108c1366004613c3e565b612053565b3480156108d257600080fd5b506103fa7f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c981565b34801561090657600080fd5b506102fe610915366004613fdd565b6120cd565b60006001600160e01b03198216637965db0b60e01b148061094b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6109596121c5565b61097160008051602061441e833981519152336112e6565b61098d5760405162461bcd60e51b81526004016102ea90614025565b61099a60128260076135d6565b506040517f18423b7b8c424fb771c089c35e29e438b1c887d942c482b09457815bfa35c08d90600090a150565b6109cf6121c5565b6109e760008051602061441e833981519152336112e6565b610a035760405162461bcd60e51b81526004016102ea90614025565b6000600b8460ff1660078110610a1b57610a1b614055565b018360ff1681548110610a3057610a30614055565b90600052602060002090600291828204019190066010029054906101000a9004600f0b905081600b8560ff1660078110610a6c57610a6c614055565b018460ff1681548110610a8157610a81614055565b90600052602060002090600291828204019190066010026101000a8154816001600160801b030219169083600f0b6001600160801b031602179055507f1d0ae94d6991f828df4bb538d44c544f6e827131f9ffc67799ef331fb9393ca584848385604051610b16949392919060ff9485168152929093166020830152600f90810b60408301529190910b606082015260800190565b60405180910390a150505050565b610b2c612210565b610b4460008051602061441e833981519152336112e6565b610b605760405162461bcd60e51b81526004016102ea90614025565b808203610b7f5760405162461bcd60e51b81526004016102ea9061406b565b600480546040516331a9108f60e11b81529182018490526001600160a01b031690636352211e90602401602060405180830381865afa158015610bc6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bea91906140a2565b6001600160a01b0316836001600160a01b031614610c1a5760405162461bcd60e51b81526004016102ea906140bf565b600480546040516331a9108f60e11b81529182018390526001600160a01b031690636352211e90602401602060405180830381865afa158015610c61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8591906140a2565b6001600160a01b0316836001600160a01b031614610cb55760405162461bcd60e51b81526004016102ea90614101565b60048054604051630388c2b160e11b81529182018490526000916001600160a01b0390911690630711856290602401602060405180830381865afa158015610d01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d259190614143565b905060008160ff1611610d4a5760405162461bcd60e51b81526004016102ea90614160565b60048054604051630388c2b160e11b81529182018490526000916001600160a01b0390911690630711856290602401602060405180830381865afa158015610d96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dba9190614143565b905060008160ff1611610ddf5760405162461bcd60e51b81526004016102ea90614192565b610dea858585612258565b5050505050565b610df96121c5565b610e1160008051602061441e833981519152336112e6565b610e2d5760405162461bcd60e51b81526004016102ea90614025565b600480546001600160a01b0319166001600160a01b0383161790556040517fd9aa9c03fe1aac9d4edb4ddc7e8b0d9484ce4d2261214678e7509c323296eca790610e78908390613dc9565b60405180910390a150565b610e8b612210565b610ea36000805160206143fe833981519152336112e6565b610ebf5760405162461bcd60e51b81526004016102ea906141c4565b33610eca8183612608565b5050565b600082815260036020526040902060010154610ee98161268c565b610ef38383612696565b505050565b6040516351cff8d960e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906351cff8d990610f44908490600401613dc9565b600060405180830381600087803b158015610f5e57600080fd5b505af1158015610dea573d6000803e3d6000fd5b6001600160a01b0381163314610fe25760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016102ea565b610eca828261271c565b61100460008051602061441e833981519152336112e6565b6110205760405162461bcd60e51b81526004016102ea90614025565b611028612783565b565b611032613621565b60048054604051630c55793760e01b81529182018490526000916001600160a01b0390911690630c55793790602401602060405180830381865afa15801561107e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a291906141f5565b90506110ac613621565b60ff8083168252600883901c8116602080840191909152601084901c82166040840152601884901c8216606084015283901c81166080830152602883901c811660a0830152603083901c811660c0830152603883901c811660e0830152604883901c1661010082015261ffff605883901c8116610120830152606883901c8116610140830152607883901c8116610160830152608883901c8116610180830152609883901c81166101a083015260a89290921c9091166101c082015292915050565b600054600160a01b900460ff1690565b6111866127d2565b611028600061282c565b6111986121c5565b6111b06000805160206143fe833981519152336112e6565b6111cc5760405162461bcd60e51b81526004016102ea906141c4565b600580549082905560408051828152602081018490527f42e20e744004d797c58737eb82d74288f8e73d53f0c5a6e5f27639025463ce3591015b60405180910390a15050565b61122a60008051602061441e833981519152336112e6565b6112465760405162461bcd60e51b81526004016102ea90614025565b61102861287c565b6112566121c5565b61126e60008051602061441e833981519152336112e6565b61128a5760405162461bcd60e51b81526004016102ea90614025565b6004805460ff838116600160a01b81810260ff60a01b1985161790945560408051949093049091168084526020840191909152917f2f814fea234a73fa3101a4c2fe3ca179701b31edd19678afbf0e1325abfe41639101611206565b60009182526003602090815260408084206001600160a01b0393909316845291905290205460ff1690565b611319612210565b600154829082906001600160a01b031661136d5760405162461bcd60e51b81526020600482015260156024820152741dda1a5d195b1a5cdd081b9bdd08195b98589b1959605a1b60448201526064016102ea565b600254604080517f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c96020820152339181019190915260009190606001604051602081830303815290604052805190602001206040516020016113e692919061190160f01b81526002810192909252602282015260420190565b604051602081830303815290604052805190602001209050600061144284848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525086939250506128bf9050565b6001549091506001600160a01b038083169116146114965760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964205369676e617475726560781b60448201526064016102ea565b6009543410156114e85760405162461bcd60e51b815260206004820152601b60248201527f416d6f756e74206973206c657373207468616e20776c5072696365000000000060448201526064016102ea565b60085464ffffffffff164311156115415760405162461bcd60e51b815260206004820152601e60248201527f77686974656c6973742074696d656c696e652069732066696e6973686564000060448201526064016102ea565b60085461ffff600160281b82048116600160381b90920416106115a05760405162461bcd60e51b81526020600482015260176024820152761c995858da1959081dda1a5d195b1a5cdd081b1a5b5a5d604a1b60448201526064016102ea565b60006115aa6128e3565b60088054919250600160381b90910461ffff169060076115c983614224565b825461ffff9182166101009390930a9283029190920219909116179055506004546001600160a01b03166354ec5c726115ff3390565b83600080600460159054906101000a900460ff166040518663ffffffff1660e01b8152600401611633959493929190614245565b6020604051808303816000875af1158015611652573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061167691906141f5565b5050505050505050565b6116886121c5565b6116a060008051602061441e833981519152336112e6565b6116bc5760405162461bcd60e51b81526004016102ea90614025565b6004805460ff838116600160a81b81810260ff60a81b1985161790945560408051949093049091168084526020840191909152917fe9628a8d5f30a017805caa40897da8eb39aafae58e892d11cc6d62a8f42a24c59101611206565b61173060008051602061441e833981519152336112e6565b61174c5760405162461bcd60e51b81526004016102ea90614025565b600a805460ff19168215159081179091556040519081527ffb007107829da86bc377940749f10443b355060649bc59fbd5ce0847952c793e90602001610e78565b6117956121c5565b6117ad60008051602061441e833981519152336112e6565b6117c95760405162461bcd60e51b81526004016102ea90614025565b6117d6600b82600761369d565b506040517fc9057cd92e8c99acce3475936528906c485d3f312e586eba81d740dbe02627ef90600090a150565b61180b612210565b600a5460ff166118565760405162461bcd60e51b8152602060048201526016602482015275135a5b9d1a5b99c81a5cc81b9bdd08185b1b1bddd95960521b60448201526064016102ea565b6006543410156118a85760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206973206c657373207468616e206d696e74507269636500000060448201526064016102ea565b60006118b26128e3565b60048054604051632a762e3960e11b81529293506001600160a01b038116926354ec5c72926118f692339287926000928392600160a81b90910460ff169101614245565b6020604051808303816000875af1158015611915573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eca91906141f5565b6119416127d2565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b60008281526003602052604090206001015461197e8161268c565b610ef3838361271c565b611990612210565b6005543410156119e25760405162461bcd60e51b815260206004820152601e60248201527f416d6f756e74206973206c657373207468616e2062726565645072696365000060448201526064016102ea565b808203611a015760405162461bcd60e51b81526004016102ea9061406b565b600480546040516331a9108f60e11b81529182018490526001600160a01b031690636352211e90602401602060405180830381865afa158015611a48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a6c91906140a2565b6001600160a01b0316336001600160a01b031614611a9c5760405162461bcd60e51b81526004016102ea906140bf565b600480546040516331a9108f60e11b81529182018390526001600160a01b031690636352211e90602401602060405180830381865afa158015611ae3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b0791906140a2565b6001600160a01b0316336001600160a01b031614611b375760405162461bcd60e51b81526004016102ea90614101565b60048054604051630388c2b160e11b81529182018490526000916001600160a01b0390911690630711856290602401602060405180830381865afa158015611b83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ba79190614143565b905060008160ff1611611bcc5760405162461bcd60e51b81526004016102ea90614160565b60048054604051630388c2b160e11b81529182018490526000916001600160a01b0390911690630711856290602401602060405180830381865afa158015611c18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c3c9190614143565b905060008160ff1611611c615760405162461bcd60e51b81526004016102ea90614192565b611c6c338585612258565b50505050565b6040516371d4ed8d60e11b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063e3a9db1a90611cc1908590600401613dc9565b602060405180830381865afa158015611cde573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094b91906141f5565b611d0a612210565b611d2260008051602061441e833981519152336112e6565b611d3e5760405162461bcd60e51b81526004016102ea90614025565b6000600460009054906101000a90046001600160a01b03166001600160a01b0316639cdb37fc6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611db79190614143565b600480546040516370a0823160e01b81529293506000926001600160a01b03909116916370a0823191611dec91879101613dc9565b602060405180830381865afa158015611e09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e2d91906141f5565b90508160ff168110611e905760405162461bcd60e51b815260206004820152602660248201527f6164647265737320686173206d6f7265207468616e20696e697469616c204368604482015265726f6e69637360d01b60648201526084016102ea565b60005b611ea08260ff8516614276565b8160ff161015611c6c576000611eb46128e3565b60048054604051632a762e3960e11b81529293506001600160a01b038116926354ec5c7292611ef8928a9287926000928392600160a81b90910460ff169101614245565b6020604051808303816000875af1158015611f17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f3b91906141f5565b5050600101611e93565b611f4d6121c5565b611f6560008051602061441e833981519152336112e6565b611f815760405162461bcd60e51b81526004016102ea90614025565b80600b8360ff1660078110611f9857611f98614055565b019080519060200190611fac9291906136e9565b506040517fc9057cd92e8c99acce3475936528906c485d3f312e586eba81d740dbe02627ef90600090a15050565b611fe26127d2565b6001600160a01b0381166120475760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102ea565b6120508161282c565b50565b61205b6121c5565b6120736000805160206143fe833981519152336112e6565b61208f5760405162461bcd60e51b81526004016102ea906141c4565b600680549082905560408051828152602081018490527f27fad96f5f13f4275f5c31fbf9166471ae50dd52c8e234df11a79e810c5f58b19101611206565b6120f77f8619cecd8b9e095ab43867f5b69d492180450fe862e6b50bfbfb24b75dd84c8a336112e6565b6121435760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206973206e6f7420612077686974656c6973746572000000000060448201526064016102ea565b60088054600983905564ffffffffff851666ffffffffffffff199091168117600160281b61ffff86169081029190911761ffff60381b19169092556040805191825260208201929092529081018290527fbc9eed512baaaad0c87466e7616f8ad92474f7dbb3b799fa65256748609523999060600160405180910390a1505050565b6121cd61116e565b6110285760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016102ea565b61221861116e565b156110285760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016102ea565b60048054604051630c55793760e01b81529182018490526000916001600160a01b0390911690630c55793790602401602060405180830381865afa1580156122a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122c891906141f5565b9050600081116123135760405162461bcd60e51b815260206004820152601660248201527514185c995b9d0c4819d95b99481b9bdd08199bdd5b9960521b60448201526064016102ea565b60048054604051630c55793760e01b81529182018490526000916001600160a01b0390911690630c55793790602401602060405180830381865afa15801561235f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061238391906141f5565b9050600081116123ce5760405162461bcd60e51b815260206004820152601660248201527514185c995b9d0c8819d95b99481b9bdd08199bdd5b9960521b60448201526064016102ea565b60ff604883811c8216919083901c1660008183116123ec57816123ee565b825b90506000612408868661240085614289565b945084612cbc565b600454909150600090600160a81b900460ff16831161243e57600454612439908490600160a81b900460ff166142b8565b612441565b60015b90508060ff16600003612452575060015b6004805460405163ba11e69160e01b81529182018b9052600160248301526001600160a01b03169063ba11e69190604401600060405180830381600087803b15801561249d57600080fd5b505af11580156124b1573d6000803e3d6000fd5b50506004805460405163ba11e69160e01b81529182018c9052600160248301526001600160a01b0316925063ba11e6919150604401600060405180830381600087803b15801561250057600080fd5b505af1158015612514573d6000803e3d6000fd5b505050506000600460009054906101000a90046001600160a01b03166001600160a01b03166354ec5c728c858d8d876040518663ffffffff1660e01b8152600401612563959493929190614245565b6020604051808303816000875af1158015612582573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125a691906141f5565b604080516001600160a01b038e168152602081018d90528082018c905260608101839052905191925033917f78ba9f3430ab5940a7ee9997e33232adaf1e1ae07067e253fc0763b4ad2f396b9181900360800190a25050505050505050505050565b60405163f340fa0160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063f340fa01908390612656908690600401613dc9565b6000604051808303818588803b15801561266f57600080fd5b505af1158015612683573d6000803e3d6000fd5b50505050505050565b612050813361312c565b6126a082826112e6565b610eca5760008281526003602090815260408083206001600160a01b03851684529091529020805460ff191660011790556126d83390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61272682826112e6565b15610eca5760008281526003602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b61278b6121c5565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516127c89190613dc9565b60405180910390a1565b6000546001600160a01b031633146110285760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102ea565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612884612210565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586127bb3390565b60008060006128ce8585613185565b915091506128db816131ca565b509392505050565b6000806128f160001961330f565b600454909150600160a01b900460ff166000805b600760ff82161015612cab57600060128260ff166007811061292957612929614055565b60050201805460009061293e5761293e614055565b6000918252602091829020601082040154600f9091166002026101000a900461ffff9081169250600184016008029184029060ff821688901c8116840204801561298757600019015b6010919091019060ff821688901c61ffff1680156129a457600019015b6001805b600460ff821611612a3b57600060128960ff16600781106129cb576129cb614055565b600502018260ff16600581106129e3576129e3614055565b016000815481106129f6576129f6614055565b60009182526020909120601082040154600f9091166002026101000a900461ffff16905080851015612a2b5781925050612a3b565b61ffff16909303926001016129a8565b50600061ffff601260ff8a1660078110612a5757612a57614055565b600502018360ff1660058110612a6f57612a6f614055565b01600181548110612a8257612a82614055565b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff168461ffff160281612abd57612abd6142a2565b04905060128860ff1660078110612ad657612ad6614055565b600502018260ff1660058110612aee57612aee614055565b01600181548110612b0157612b01614055565b60009182526020909120601082040154600f9091166002026101000a900461ffff16811115612b9957600160128960ff1660078110612b4257612b42614055565b600502018360ff1660058110612b5a57612b5a614055565b01600181548110612b6d57612b6d614055565b90600052602060002090601091828204019190066002029054906101000a900461ffff160361ffff1690505b6002016000601260ff8a1660078110612bb457612bb4614055565b600502018360ff1660058110612bcc57612bcc614055565b018281548110612bde57612bde614055565b600091825260208220601082040154600f9091166002026101000a900461ffff169150600b60ff8b1660078110612c1757612c17614055565b018261ffff1681548110612c2d57612c2d614055565b90600052602060002090600291828204019190066010029054906101000a9004600f0b905060008160ff16600f0b90508860ff1681901b8d179c508a60ff16600003612c8557600882600f0b901d600f0b9b50612c95565b600882600f0b901d600f0b8c019b505b5050600190980197506129059650505050505050565b5060501b17600160481b1792915050565b600080612cca60001961330f565b600454909150600160a01b900460ff166000805b600760ff82161015613114576000600260128360ff1660078110612d0457612d04614055565b600502018054600090612d1957612d19614055565b60009182526020909120601082040154600f9091166002026101000a900461ffff1681612d4857612d486142a2565b0460128360ff1660078110612d5f57612d5f614055565b600502018054600090612d7457612d74614055565b6000918252602091829020601082040154600f9091166002026101000a900461ffff90811692909201925060018401600802919084029060ff821688901c811684821602048015612dc457600019015b600560015b600460ff821611612e5c57600060128860ff1660078110612dec57612dec614055565b600502018260ff1660058110612e0457612e04614055565b01600081548110612e1757612e17614055565b60009182526020909120601082040154600f9091166002026101000a900461ffff16905080841015612e4c5781925050612e5c565b61ffff1690920391600101612dc9565b506000600460ff83161115612e9c57600461ffff87160461ffff16831015612e8d575060ff8085168e901c16613082565b5060ff8085168d901c16613082565b6010939093019260ff84168a901c61ffff168015612eb957600019015b600061ffff601260ff8b1660078110612ed457612ed4614055565b600502018560ff1660058110612eec57612eec614055565b01600181548110612eff57612eff614055565b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff168361ffff160281612f3a57612f3a6142a2565b04905060128960ff1660078110612f5357612f53614055565b600502018460ff1660058110612f6b57612f6b614055565b01600181548110612f7e57612f7e614055565b60009182526020909120601082040154600f9091166002026101000a900461ffff1681111561301657600160128a60ff1660078110612fbf57612fbf614055565b600502018560ff1660058110612fd757612fd7614055565b01600181548110612fea57612fea614055565b90600052602060002090601091828204019190066002029054906101000a900461ffff160361ffff1690505b600201601260ff8a166007811061302f5761302f614055565b600502018460ff166005811061304757613047614055565b01818154811061305957613059614055565b90600052602060002090601091828204019190066002029054906101000a900461ffff16925050505b6000600b8860ff166007811061309a5761309a614055565b018261ffff16815481106130b0576130b0614055565b60009182526020822060028204015460ff60106001909316929092026101000a9004818116828a161b9c909c179b600f0b9250891690036130f757600881901d9850613101565b600881901d890198505b505060019095019450612cde9350505050565b5060501b604885901b91909117179150509392505050565b61313682826112e6565b610eca5761314381613368565b61314e83602061337a565b60405160200161315f9291906142f0565b60408051601f198184030181529082905262461bcd60e51b82526102ea9160040161435f565b60008082516041036131bb5760208301516040840151606085015160001a6131af8782858561351c565b945094505050506131c3565b506000905060025b9250929050565b60008160048111156131de576131de614392565b036131e65750565b60018160048111156131fa576131fa614392565b036132425760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b60448201526064016102ea565b600281600481111561325657613256614392565b036132a35760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016102ea565b60038160048111156132b7576132b7614392565b036120505760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016102ea565b60008144426007600081548092919061332790614289565b9091555060408051602081019490945283019190915260608201526080016040516020818303038152906040528051906020012060001c61094b91906143a8565b606061094b6001600160a01b03831660145b606060006133898360026143bc565b6133949060026143d3565b6001600160401b038111156133ab576133ab613972565b6040519080825280601f01601f1916602001820160405280156133d5576020820181803683370190505b509050600360fc1b816000815181106133f0576133f0614055565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061341f5761341f614055565b60200101906001600160f81b031916908160001a90535060006134438460026143bc565b61344e9060016143d3565b90505b60018111156134c6576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061348257613482614055565b1a60f81b82828151811061349857613498614055565b60200101906001600160f81b031916908160001a90535060049490941c936134bf816143e6565b9050613451565b5083156135155760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016102ea565b9392505050565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b0383111561354957506000905060036135cd565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561359d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166135c6576000600192509250506135cd565b9150600090505b94509492505050565b602383019183908215613611579160200282015b8281111561361157825161360190839060056137a0565b50916020019190600501906135ea565b5061361d9291506137ec565b5090565b604080516101e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101829052610160810182905261018081018290526101a081018290526101c081019190915290565b82600781019282156136dd579160200282015b828111156136dd57825180516136cd9184916020909101906136e9565b50916020019190600101906136b0565b5061361d929150613809565b828054828255906000526020600020906001016002900481019282156137945791602002820160005b8382111561375f57835183826101000a8154816001600160801b030219169083600f0b6001600160801b031602179055509260200192601001602081600f01049283019260010302613712565b80156137925782816101000a8154906001600160801b030219169055601001602081600f0104928301926001030261375f565b505b5061361d929150613826565b82600581019282156137e0579160200282015b828111156137e057825180516137d091849160209091019061383b565b50916020019190600101906137b3565b5061361d9291506138d2565b8082111561361d57600061380082826138ef565b506005016137ec565b8082111561361d57600061381d82826138fe565b50600101613809565b5b8082111561361d5760008155600101613827565b82805482825590600052602060002090600f016010900481019282156137945791602002820160005b838211156138a457835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302613864565b80156137925782816101000a81549061ffff02191690556002016020816001010492830192600103026138a4565b8082111561361d5760006138e68282613923565b506001016138d2565b506120509060058101906138d2565b5080546000825560010160029004906000526020600020908101906120509190613826565b50805460008255600f0160109004906000526020600020908101906120509190613826565b60006020828403121561395a57600080fd5b81356001600160e01b03198116811461351557600080fd5b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b03811182821017156139aa576139aa613972565b60405290565b60405160a081016001600160401b03811182821017156139aa576139aa613972565b604051601f8201601f191681016001600160401b03811182821017156139fa576139fa613972565b604052919050565b60006001600160401b03821115613a1b57613a1b613972565b5060051b60200190565b803561ffff81168114613a3757600080fd5b919050565b600060208284031215613a4e57600080fd5b6001600160401b038083351115613a6457600080fd5b8235830184601f820112613a7757600080fd5b613a7f613988565b808660e084011115613a9057600080fd5b825b60e08401811015613b81578481351115613aab57600080fd5b8035840188601f820112613abe57600080fd5b613ac66139b0565b808a60a084011115613ad757600080fd5b825b60a08401811015613b70578881351115613af257600080fd5b803584018c601f820112613b0557600080fd5b613b17613b128235613a02565b6139d2565b81358082526020808301929160051b8401018f811115613b3657600080fd5b6020840193505b80841015613b5f57613b4e84613a25565b835260209384019390920191613b3d565b508552505060209283019201613ad9565b508552505060209283019201613a92565b509695505050505050565b60ff8116811461205057600080fd5b8035600f81900b8114613a3757600080fd5b600080600060608486031215613bc257600080fd5b8335613bcd81613b8c565b92506020840135613bdd81613b8c565b9150613beb60408501613b9b565b90509250925092565b6001600160a01b038116811461205057600080fd5b600080600060608486031215613c1e57600080fd5b8335613c2981613bf4565b95602085013595506040909401359392505050565b600060208284031215613c5057600080fd5b5035919050565b600060208284031215613c6957600080fd5b813561351581613bf4565b60008060408385031215613c8757600080fd5b823591506020830135613c9981613bf4565b809150509250929050565b815160ff1681526101e081016020830151613cc4602084018260ff169052565b506040830151613cd9604084018260ff169052565b506060830151613cee606084018260ff169052565b506080830151613d03608084018260ff169052565b5060a0830151613d1860a084018260ff169052565b5060c0830151613d2d60c084018260ff169052565b5060e0830151613d4260e084018260ff169052565b506101008381015160ff16908301526101208084015161ffff908116918401919091526101408085015182169084015261016080850151821690840152610180808501518216908401526101a0808501518216908401526101c09384015116929091019190915290565b600060208284031215613dbe57600080fd5b813561351581613b8c565b6001600160a01b0391909116815260200190565b60008060208385031215613df057600080fd5b82356001600160401b0380821115613e0757600080fd5b818501915085601f830112613e1b57600080fd5b813581811115613e2a57600080fd5b866020828501011115613e3c57600080fd5b60209290920196919550909350505050565b600060208284031215613e6057600080fd5b8135801515811461351557600080fd5b600082601f830112613e8157600080fd5b81356020613e91613b1283613a02565b82815260059290921b84018101918181019086841115613eb057600080fd5b8286015b84811015613b8157613ec581613b9b565b8352918301918301613eb4565b60006020808385031215613ee557600080fd5b82356001600160401b0380821115613efc57600080fd5b818501915085601f830112613f1057600080fd5b613f18613988565b8060e0840188811115613f2a57600080fd5b845b81811015613f5e57803585811115613f445760008081fd5b613f508b828901613e70565b855250928601928601613f2c565b509098975050505050505050565b60008060408385031215613f7f57600080fd5b50508035926020909101359150565b60008060408385031215613fa157600080fd5b8235613fac81613b8c565b915060208301356001600160401b03811115613fc757600080fd5b613fd385828601613e70565b9150509250929050565b600080600060608486031215613ff257600080fd5b833564ffffffffff8116811461400757600080fd5b925061401560208501613a25565b9150604084013590509250925092565b60208082526016908201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6020808252601f908201527f506172656e743120616e642032206d75737420626520646966666572656e7400604082015260600190565b6000602082840312156140b457600080fd5b815161351581613bf4565b60208082526022908201527f53656e646572206973206e6f7420746865206f776e6572206f6620706172656e604082015261743160f01b606082015260800190565b60208082526022908201527f53656e646572206973206e6f7420746865206f776e6572206f6620706172656e6040820152613a1960f11b606082015260800190565b60006020828403121561415557600080fd5b815161351581613b8c565b602080825260189082015277506172656e743120686173206e6f2066657274696c69747960401b604082015260600190565b602080825260189082015277506172656e743220686173206e6f2066657274696c69747960401b604082015260600190565b60208082526017908201527643616c6c6572206973206e6f7420612066696e616e636560481b604082015260600190565b60006020828403121561420757600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600061ffff80831681810361423b5761423b61420e565b6001019392505050565b6001600160a01b0395909516855260208501939093526040840191909152606083015260ff16608082015260a00190565b8181038181111561094b5761094b61420e565b60006001820161429b5761429b61420e565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826142c7576142c76142a2565b500490565b60005b838110156142e75781810151838201526020016142cf565b50506000910152565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8152600083516143228160178501602088016142cc565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516143538160288401602088016142cc565b01602801949350505050565b602081526000825180602084015261437e8160408501602087016142cc565b601f01601f19169190910160400192915050565b634e487b7160e01b600052602160045260246000fd5b6000826143b7576143b76142a2565b500690565b808202811582820484141761094b5761094b61420e565b8082018082111561094b5761094b61420e565b6000816143f5576143f561420e565b50600019019056fe940d6b1946ff1d2b5a9f1909219c3c81a370804b5ba0f91ec0828c99a2e6a681a49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a264697066735822122028e2584826f0f0c5bf023d490c91c93159daac1bb1ccdff10ec7608f99973a3264736f6c63430008110033608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61050e8061007e6000396000f3fe6080604052600436106100555760003560e01c806351cff8d91461005a578063715018a61461007c5780638da5cb5b14610091578063e3a9db1a146100be578063f2fde38b14610102578063f340fa0114610122575b600080fd5b34801561006657600080fd5b5061007a61007536600461048d565b610135565b005b34801561008857600080fd5b5061007a6101ac565b34801561009d57600080fd5b506000546040516001600160a01b0390911681526020015b60405180910390f35b3480156100ca57600080fd5b506100f46100d936600461048d565b6001600160a01b031660009081526001602052604090205490565b6040519081526020016100b5565b34801561010e57600080fd5b5061007a61011d36600461048d565b6101c0565b61007a61013036600461048d565b61023e565b61013d6102b0565b6001600160a01b0381166000818152600160205260408120805491905590610165908261030a565b816001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5826040516101a091815260200190565b60405180910390a25050565b6101b46102b0565b6101be6000610428565b565b6101c86102b0565b6001600160a01b0381166102325760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61023b81610428565b50565b6102466102b0565b6001600160a01b0381166000908152600160205260408120805434928392916102709084906104b1565b90915550506040518181526001600160a01b038316907f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4906020016101a0565b6000546001600160a01b031633146101be5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610229565b8047101561035a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610229565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146103a7576040519150601f19603f3d011682016040523d82523d6000602084013e6103ac565b606091505b50509050806104235760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610229565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038116811461023b57600080fd5b60006020828403121561049f57600080fd5b81356104aa81610478565b9392505050565b808201808211156104d257634e487b7160e01b600052601160045260246000fd5b9291505056fea264697066735822122016f048720ffeb831f1d76cec1f8b4628ffb18e3752a30d5fcd4227b613ead09d64736f6c63430008110033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000a530ca14ad0c9d6cc14961aab900f633c2c3e4fa0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000a86afa6b2f2583b0e4f32837a2cb1d84451be17d0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000a86afa6b2f2583b0e4f32837a2cb1d84451be17d
Deployed Bytecode
0x6080604052600436106102975760003560e01c8063767574901161015a578063c7f8d01a116100c1578063f034c2b61161007a578063f034c2b614610845578063f12d870f14610865578063f2fde38b14610886578063f4a0a528146108a6578063fa4d280c146108c6578063fc8c0114146108fa576102f3565b8063c7f8d01a1461079c578063cd770833146107b2578063d547741f146107d2578063d9ecad7b146107f2578063e2982c2114610805578063f02b02d514610825576102f3565b806398659b021161011357806398659b02146106ec5780639a57829a1461070c5780639f203f2f1461072c578063a1d689b01461074c578063a217fddf1461077f578063b8a2d0e014610794576102f3565b8063767574901461063c5780638456cb591461065e57806386aa55ad146106735780638da5cb5b1461069357806391d14854146106b957806395234c53146106d9576102f3565b80633644e515116101fe5780635b040fc4116101b75780635b040fc41461058d5780635c975abb146105ba5780636817c76c146105cf578063715018a6146105e557806371beeba1146105fa57806375b238fc1461061a576102f3565b80633644e515146104c057806336568abe146104d657806337442d73146104f65780633f4ba83a1461052a5780634b7a67de1461053f578063570618e114610559576102f3565b80632a16d791116102505780632a16d791146104085780632a5f510e146104285780632e1a7d4d1461043e5780632f2ff15d1461045e57806331b3eb941461047e578063349b59541461049e576102f3565b806301ffc9a714610300578063020d8b7e14610335578063085be66a1461035557806312e3fe1014610375578063215bf46114610395578063248a9ca3146103ca576102f3565b366102f35760405162461bcd60e51b815260206004820152602160248201527f5468697320636f6e74726163742063616e6e6f742061636365707420746f6b656044820152603760f91b60648201526084015b60405180910390fd5b36156102fe57600080fd5b005b34801561030c57600080fd5b5061032061031b366004613948565b61091a565b60405190151581526020015b60405180910390f35b34801561034157600080fd5b506102fe610350366004613a3c565b610951565b34801561036157600080fd5b506102fe610370366004613bad565b6109c7565b34801561038157600080fd5b506102fe610390366004613c09565b610b24565b3480156103a157600080fd5b506008546103b790600160281b900461ffff1681565b60405161ffff909116815260200161032c565b3480156103d657600080fd5b506103fa6103e5366004613c3e565b60009081526003602052604090206001015490565b60405190815260200161032c565b34801561041457600080fd5b506102fe610423366004613c57565b610df1565b34801561043457600080fd5b506103fa60055481565b34801561044a57600080fd5b506102fe610459366004613c3e565b610e83565b34801561046a57600080fd5b506102fe610479366004613c74565b610ece565b34801561048a57600080fd5b506102fe610499366004613c57565b610ef8565b3480156104aa57600080fd5b506103fa6000805160206143fe83398151915281565b3480156104cc57600080fd5b506103fa60025481565b3480156104e257600080fd5b506102fe6104f1366004613c74565b610f72565b34801561050257600080fd5b506008546105149064ffffffffff1681565b60405164ffffffffff909116815260200161032c565b34801561053657600080fd5b506102fe610fec565b34801561054b57600080fd5b50600a546103209060ff1681565b34801561056557600080fd5b506103fa7f8619cecd8b9e095ab43867f5b69d492180450fe862e6b50bfbfb24b75dd84c8a81565b34801561059957600080fd5b506105ad6105a8366004613c3e565b61102a565b60405161032c9190613ca4565b3480156105c657600080fd5b5061032061116e565b3480156105db57600080fd5b506103fa60065481565b3480156105f157600080fd5b506102fe61117e565b34801561060657600080fd5b506102fe610615366004613c3e565b611190565b34801561062657600080fd5b506103fa60008051602061441e83398151915281565b34801561064857600080fd5b506008546103b790600160381b900461ffff1681565b34801561066a57600080fd5b506102fe611212565b34801561067f57600080fd5b506102fe61068e366004613dac565b61124e565b34801561069f57600080fd5b506000546001600160a01b031660405161032c9190613dc9565b3480156106c557600080fd5b506103206106d4366004613c74565b6112e6565b6102fe6106e7366004613ddd565b611311565b3480156106f857600080fd5b506102fe610707366004613dac565b611680565b34801561071857600080fd5b506102fe610727366004613e4e565b611718565b34801561073857600080fd5b506102fe610747366004613ed2565b61178d565b34801561075857600080fd5b5060045461076d90600160a81b900460ff1681565b60405160ff909116815260200161032c565b34801561078b57600080fd5b506103fa600081565b6102fe611803565b3480156107a857600080fd5b506103fa60095481565b3480156107be57600080fd5b506102fe6107cd366004613c57565b611939565b3480156107de57600080fd5b506102fe6107ed366004613c74565b611963565b6102fe610800366004613f6c565b611988565b34801561081157600080fd5b506103fa610820366004613c57565b611c72565b34801561083157600080fd5b506102fe610840366004613c57565b611d02565b34801561085157600080fd5b506102fe610860366004613f8e565b611f45565b34801561087157600080fd5b5060045461076d90600160a01b900460ff1681565b34801561089257600080fd5b506102fe6108a1366004613c57565b611fda565b3480156108b257600080fd5b506102fe6108c1366004613c3e565b612053565b3480156108d257600080fd5b506103fa7f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c981565b34801561090657600080fd5b506102fe610915366004613fdd565b6120cd565b60006001600160e01b03198216637965db0b60e01b148061094b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6109596121c5565b61097160008051602061441e833981519152336112e6565b61098d5760405162461bcd60e51b81526004016102ea90614025565b61099a60128260076135d6565b506040517f18423b7b8c424fb771c089c35e29e438b1c887d942c482b09457815bfa35c08d90600090a150565b6109cf6121c5565b6109e760008051602061441e833981519152336112e6565b610a035760405162461bcd60e51b81526004016102ea90614025565b6000600b8460ff1660078110610a1b57610a1b614055565b018360ff1681548110610a3057610a30614055565b90600052602060002090600291828204019190066010029054906101000a9004600f0b905081600b8560ff1660078110610a6c57610a6c614055565b018460ff1681548110610a8157610a81614055565b90600052602060002090600291828204019190066010026101000a8154816001600160801b030219169083600f0b6001600160801b031602179055507f1d0ae94d6991f828df4bb538d44c544f6e827131f9ffc67799ef331fb9393ca584848385604051610b16949392919060ff9485168152929093166020830152600f90810b60408301529190910b606082015260800190565b60405180910390a150505050565b610b2c612210565b610b4460008051602061441e833981519152336112e6565b610b605760405162461bcd60e51b81526004016102ea90614025565b808203610b7f5760405162461bcd60e51b81526004016102ea9061406b565b600480546040516331a9108f60e11b81529182018490526001600160a01b031690636352211e90602401602060405180830381865afa158015610bc6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bea91906140a2565b6001600160a01b0316836001600160a01b031614610c1a5760405162461bcd60e51b81526004016102ea906140bf565b600480546040516331a9108f60e11b81529182018390526001600160a01b031690636352211e90602401602060405180830381865afa158015610c61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8591906140a2565b6001600160a01b0316836001600160a01b031614610cb55760405162461bcd60e51b81526004016102ea90614101565b60048054604051630388c2b160e11b81529182018490526000916001600160a01b0390911690630711856290602401602060405180830381865afa158015610d01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d259190614143565b905060008160ff1611610d4a5760405162461bcd60e51b81526004016102ea90614160565b60048054604051630388c2b160e11b81529182018490526000916001600160a01b0390911690630711856290602401602060405180830381865afa158015610d96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dba9190614143565b905060008160ff1611610ddf5760405162461bcd60e51b81526004016102ea90614192565b610dea858585612258565b5050505050565b610df96121c5565b610e1160008051602061441e833981519152336112e6565b610e2d5760405162461bcd60e51b81526004016102ea90614025565b600480546001600160a01b0319166001600160a01b0383161790556040517fd9aa9c03fe1aac9d4edb4ddc7e8b0d9484ce4d2261214678e7509c323296eca790610e78908390613dc9565b60405180910390a150565b610e8b612210565b610ea36000805160206143fe833981519152336112e6565b610ebf5760405162461bcd60e51b81526004016102ea906141c4565b33610eca8183612608565b5050565b600082815260036020526040902060010154610ee98161268c565b610ef38383612696565b505050565b6040516351cff8d960e01b81526001600160a01b037f000000000000000000000000e2fcb02d986fadd022c97e171c31d4bd92eedd1316906351cff8d990610f44908490600401613dc9565b600060405180830381600087803b158015610f5e57600080fd5b505af1158015610dea573d6000803e3d6000fd5b6001600160a01b0381163314610fe25760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016102ea565b610eca828261271c565b61100460008051602061441e833981519152336112e6565b6110205760405162461bcd60e51b81526004016102ea90614025565b611028612783565b565b611032613621565b60048054604051630c55793760e01b81529182018490526000916001600160a01b0390911690630c55793790602401602060405180830381865afa15801561107e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a291906141f5565b90506110ac613621565b60ff8083168252600883901c8116602080840191909152601084901c82166040840152601884901c8216606084015283901c81166080830152602883901c811660a0830152603083901c811660c0830152603883901c811660e0830152604883901c1661010082015261ffff605883901c8116610120830152606883901c8116610140830152607883901c8116610160830152608883901c8116610180830152609883901c81166101a083015260a89290921c9091166101c082015292915050565b600054600160a01b900460ff1690565b6111866127d2565b611028600061282c565b6111986121c5565b6111b06000805160206143fe833981519152336112e6565b6111cc5760405162461bcd60e51b81526004016102ea906141c4565b600580549082905560408051828152602081018490527f42e20e744004d797c58737eb82d74288f8e73d53f0c5a6e5f27639025463ce3591015b60405180910390a15050565b61122a60008051602061441e833981519152336112e6565b6112465760405162461bcd60e51b81526004016102ea90614025565b61102861287c565b6112566121c5565b61126e60008051602061441e833981519152336112e6565b61128a5760405162461bcd60e51b81526004016102ea90614025565b6004805460ff838116600160a01b81810260ff60a01b1985161790945560408051949093049091168084526020840191909152917f2f814fea234a73fa3101a4c2fe3ca179701b31edd19678afbf0e1325abfe41639101611206565b60009182526003602090815260408084206001600160a01b0393909316845291905290205460ff1690565b611319612210565b600154829082906001600160a01b031661136d5760405162461bcd60e51b81526020600482015260156024820152741dda1a5d195b1a5cdd081b9bdd08195b98589b1959605a1b60448201526064016102ea565b600254604080517f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c96020820152339181019190915260009190606001604051602081830303815290604052805190602001206040516020016113e692919061190160f01b81526002810192909252602282015260420190565b604051602081830303815290604052805190602001209050600061144284848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525086939250506128bf9050565b6001549091506001600160a01b038083169116146114965760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964205369676e617475726560781b60448201526064016102ea565b6009543410156114e85760405162461bcd60e51b815260206004820152601b60248201527f416d6f756e74206973206c657373207468616e20776c5072696365000000000060448201526064016102ea565b60085464ffffffffff164311156115415760405162461bcd60e51b815260206004820152601e60248201527f77686974656c6973742074696d656c696e652069732066696e6973686564000060448201526064016102ea565b60085461ffff600160281b82048116600160381b90920416106115a05760405162461bcd60e51b81526020600482015260176024820152761c995858da1959081dda1a5d195b1a5cdd081b1a5b5a5d604a1b60448201526064016102ea565b60006115aa6128e3565b60088054919250600160381b90910461ffff169060076115c983614224565b825461ffff9182166101009390930a9283029190920219909116179055506004546001600160a01b03166354ec5c726115ff3390565b83600080600460159054906101000a900460ff166040518663ffffffff1660e01b8152600401611633959493929190614245565b6020604051808303816000875af1158015611652573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061167691906141f5565b5050505050505050565b6116886121c5565b6116a060008051602061441e833981519152336112e6565b6116bc5760405162461bcd60e51b81526004016102ea90614025565b6004805460ff838116600160a81b81810260ff60a81b1985161790945560408051949093049091168084526020840191909152917fe9628a8d5f30a017805caa40897da8eb39aafae58e892d11cc6d62a8f42a24c59101611206565b61173060008051602061441e833981519152336112e6565b61174c5760405162461bcd60e51b81526004016102ea90614025565b600a805460ff19168215159081179091556040519081527ffb007107829da86bc377940749f10443b355060649bc59fbd5ce0847952c793e90602001610e78565b6117956121c5565b6117ad60008051602061441e833981519152336112e6565b6117c95760405162461bcd60e51b81526004016102ea90614025565b6117d6600b82600761369d565b506040517fc9057cd92e8c99acce3475936528906c485d3f312e586eba81d740dbe02627ef90600090a150565b61180b612210565b600a5460ff166118565760405162461bcd60e51b8152602060048201526016602482015275135a5b9d1a5b99c81a5cc81b9bdd08185b1b1bddd95960521b60448201526064016102ea565b6006543410156118a85760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206973206c657373207468616e206d696e74507269636500000060448201526064016102ea565b60006118b26128e3565b60048054604051632a762e3960e11b81529293506001600160a01b038116926354ec5c72926118f692339287926000928392600160a81b90910460ff169101614245565b6020604051808303816000875af1158015611915573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eca91906141f5565b6119416127d2565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b60008281526003602052604090206001015461197e8161268c565b610ef3838361271c565b611990612210565b6005543410156119e25760405162461bcd60e51b815260206004820152601e60248201527f416d6f756e74206973206c657373207468616e2062726565645072696365000060448201526064016102ea565b808203611a015760405162461bcd60e51b81526004016102ea9061406b565b600480546040516331a9108f60e11b81529182018490526001600160a01b031690636352211e90602401602060405180830381865afa158015611a48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a6c91906140a2565b6001600160a01b0316336001600160a01b031614611a9c5760405162461bcd60e51b81526004016102ea906140bf565b600480546040516331a9108f60e11b81529182018390526001600160a01b031690636352211e90602401602060405180830381865afa158015611ae3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b0791906140a2565b6001600160a01b0316336001600160a01b031614611b375760405162461bcd60e51b81526004016102ea90614101565b60048054604051630388c2b160e11b81529182018490526000916001600160a01b0390911690630711856290602401602060405180830381865afa158015611b83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ba79190614143565b905060008160ff1611611bcc5760405162461bcd60e51b81526004016102ea90614160565b60048054604051630388c2b160e11b81529182018490526000916001600160a01b0390911690630711856290602401602060405180830381865afa158015611c18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c3c9190614143565b905060008160ff1611611c615760405162461bcd60e51b81526004016102ea90614192565b611c6c338585612258565b50505050565b6040516371d4ed8d60e11b81526000906001600160a01b037f000000000000000000000000e2fcb02d986fadd022c97e171c31d4bd92eedd13169063e3a9db1a90611cc1908590600401613dc9565b602060405180830381865afa158015611cde573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094b91906141f5565b611d0a612210565b611d2260008051602061441e833981519152336112e6565b611d3e5760405162461bcd60e51b81526004016102ea90614025565b6000600460009054906101000a90046001600160a01b03166001600160a01b0316639cdb37fc6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611db79190614143565b600480546040516370a0823160e01b81529293506000926001600160a01b03909116916370a0823191611dec91879101613dc9565b602060405180830381865afa158015611e09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e2d91906141f5565b90508160ff168110611e905760405162461bcd60e51b815260206004820152602660248201527f6164647265737320686173206d6f7265207468616e20696e697469616c204368604482015265726f6e69637360d01b60648201526084016102ea565b60005b611ea08260ff8516614276565b8160ff161015611c6c576000611eb46128e3565b60048054604051632a762e3960e11b81529293506001600160a01b038116926354ec5c7292611ef8928a9287926000928392600160a81b90910460ff169101614245565b6020604051808303816000875af1158015611f17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f3b91906141f5565b5050600101611e93565b611f4d6121c5565b611f6560008051602061441e833981519152336112e6565b611f815760405162461bcd60e51b81526004016102ea90614025565b80600b8360ff1660078110611f9857611f98614055565b019080519060200190611fac9291906136e9565b506040517fc9057cd92e8c99acce3475936528906c485d3f312e586eba81d740dbe02627ef90600090a15050565b611fe26127d2565b6001600160a01b0381166120475760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102ea565b6120508161282c565b50565b61205b6121c5565b6120736000805160206143fe833981519152336112e6565b61208f5760405162461bcd60e51b81526004016102ea906141c4565b600680549082905560408051828152602081018490527f27fad96f5f13f4275f5c31fbf9166471ae50dd52c8e234df11a79e810c5f58b19101611206565b6120f77f8619cecd8b9e095ab43867f5b69d492180450fe862e6b50bfbfb24b75dd84c8a336112e6565b6121435760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206973206e6f7420612077686974656c6973746572000000000060448201526064016102ea565b60088054600983905564ffffffffff851666ffffffffffffff199091168117600160281b61ffff86169081029190911761ffff60381b19169092556040805191825260208201929092529081018290527fbc9eed512baaaad0c87466e7616f8ad92474f7dbb3b799fa65256748609523999060600160405180910390a1505050565b6121cd61116e565b6110285760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016102ea565b61221861116e565b156110285760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016102ea565b60048054604051630c55793760e01b81529182018490526000916001600160a01b0390911690630c55793790602401602060405180830381865afa1580156122a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122c891906141f5565b9050600081116123135760405162461bcd60e51b815260206004820152601660248201527514185c995b9d0c4819d95b99481b9bdd08199bdd5b9960521b60448201526064016102ea565b60048054604051630c55793760e01b81529182018490526000916001600160a01b0390911690630c55793790602401602060405180830381865afa15801561235f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061238391906141f5565b9050600081116123ce5760405162461bcd60e51b815260206004820152601660248201527514185c995b9d0c8819d95b99481b9bdd08199bdd5b9960521b60448201526064016102ea565b60ff604883811c8216919083901c1660008183116123ec57816123ee565b825b90506000612408868661240085614289565b945084612cbc565b600454909150600090600160a81b900460ff16831161243e57600454612439908490600160a81b900460ff166142b8565b612441565b60015b90508060ff16600003612452575060015b6004805460405163ba11e69160e01b81529182018b9052600160248301526001600160a01b03169063ba11e69190604401600060405180830381600087803b15801561249d57600080fd5b505af11580156124b1573d6000803e3d6000fd5b50506004805460405163ba11e69160e01b81529182018c9052600160248301526001600160a01b0316925063ba11e6919150604401600060405180830381600087803b15801561250057600080fd5b505af1158015612514573d6000803e3d6000fd5b505050506000600460009054906101000a90046001600160a01b03166001600160a01b03166354ec5c728c858d8d876040518663ffffffff1660e01b8152600401612563959493929190614245565b6020604051808303816000875af1158015612582573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125a691906141f5565b604080516001600160a01b038e168152602081018d90528082018c905260608101839052905191925033917f78ba9f3430ab5940a7ee9997e33232adaf1e1ae07067e253fc0763b4ad2f396b9181900360800190a25050505050505050505050565b60405163f340fa0160e01b81526001600160a01b037f000000000000000000000000e2fcb02d986fadd022c97e171c31d4bd92eedd13169063f340fa01908390612656908690600401613dc9565b6000604051808303818588803b15801561266f57600080fd5b505af1158015612683573d6000803e3d6000fd5b50505050505050565b612050813361312c565b6126a082826112e6565b610eca5760008281526003602090815260408083206001600160a01b03851684529091529020805460ff191660011790556126d83390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61272682826112e6565b15610eca5760008281526003602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b61278b6121c5565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516127c89190613dc9565b60405180910390a1565b6000546001600160a01b031633146110285760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102ea565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612884612210565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586127bb3390565b60008060006128ce8585613185565b915091506128db816131ca565b509392505050565b6000806128f160001961330f565b600454909150600160a01b900460ff166000805b600760ff82161015612cab57600060128260ff166007811061292957612929614055565b60050201805460009061293e5761293e614055565b6000918252602091829020601082040154600f9091166002026101000a900461ffff9081169250600184016008029184029060ff821688901c8116840204801561298757600019015b6010919091019060ff821688901c61ffff1680156129a457600019015b6001805b600460ff821611612a3b57600060128960ff16600781106129cb576129cb614055565b600502018260ff16600581106129e3576129e3614055565b016000815481106129f6576129f6614055565b60009182526020909120601082040154600f9091166002026101000a900461ffff16905080851015612a2b5781925050612a3b565b61ffff16909303926001016129a8565b50600061ffff601260ff8a1660078110612a5757612a57614055565b600502018360ff1660058110612a6f57612a6f614055565b01600181548110612a8257612a82614055565b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff168461ffff160281612abd57612abd6142a2565b04905060128860ff1660078110612ad657612ad6614055565b600502018260ff1660058110612aee57612aee614055565b01600181548110612b0157612b01614055565b60009182526020909120601082040154600f9091166002026101000a900461ffff16811115612b9957600160128960ff1660078110612b4257612b42614055565b600502018360ff1660058110612b5a57612b5a614055565b01600181548110612b6d57612b6d614055565b90600052602060002090601091828204019190066002029054906101000a900461ffff160361ffff1690505b6002016000601260ff8a1660078110612bb457612bb4614055565b600502018360ff1660058110612bcc57612bcc614055565b018281548110612bde57612bde614055565b600091825260208220601082040154600f9091166002026101000a900461ffff169150600b60ff8b1660078110612c1757612c17614055565b018261ffff1681548110612c2d57612c2d614055565b90600052602060002090600291828204019190066010029054906101000a9004600f0b905060008160ff16600f0b90508860ff1681901b8d179c508a60ff16600003612c8557600882600f0b901d600f0b9b50612c95565b600882600f0b901d600f0b8c019b505b5050600190980197506129059650505050505050565b5060501b17600160481b1792915050565b600080612cca60001961330f565b600454909150600160a01b900460ff166000805b600760ff82161015613114576000600260128360ff1660078110612d0457612d04614055565b600502018054600090612d1957612d19614055565b60009182526020909120601082040154600f9091166002026101000a900461ffff1681612d4857612d486142a2565b0460128360ff1660078110612d5f57612d5f614055565b600502018054600090612d7457612d74614055565b6000918252602091829020601082040154600f9091166002026101000a900461ffff90811692909201925060018401600802919084029060ff821688901c811684821602048015612dc457600019015b600560015b600460ff821611612e5c57600060128860ff1660078110612dec57612dec614055565b600502018260ff1660058110612e0457612e04614055565b01600081548110612e1757612e17614055565b60009182526020909120601082040154600f9091166002026101000a900461ffff16905080841015612e4c5781925050612e5c565b61ffff1690920391600101612dc9565b506000600460ff83161115612e9c57600461ffff87160461ffff16831015612e8d575060ff8085168e901c16613082565b5060ff8085168d901c16613082565b6010939093019260ff84168a901c61ffff168015612eb957600019015b600061ffff601260ff8b1660078110612ed457612ed4614055565b600502018560ff1660058110612eec57612eec614055565b01600181548110612eff57612eff614055565b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff168361ffff160281612f3a57612f3a6142a2565b04905060128960ff1660078110612f5357612f53614055565b600502018460ff1660058110612f6b57612f6b614055565b01600181548110612f7e57612f7e614055565b60009182526020909120601082040154600f9091166002026101000a900461ffff1681111561301657600160128a60ff1660078110612fbf57612fbf614055565b600502018560ff1660058110612fd757612fd7614055565b01600181548110612fea57612fea614055565b90600052602060002090601091828204019190066002029054906101000a900461ffff160361ffff1690505b600201601260ff8a166007811061302f5761302f614055565b600502018460ff166005811061304757613047614055565b01818154811061305957613059614055565b90600052602060002090601091828204019190066002029054906101000a900461ffff16925050505b6000600b8860ff166007811061309a5761309a614055565b018261ffff16815481106130b0576130b0614055565b60009182526020822060028204015460ff60106001909316929092026101000a9004818116828a161b9c909c179b600f0b9250891690036130f757600881901d9850613101565b600881901d890198505b505060019095019450612cde9350505050565b5060501b604885901b91909117179150509392505050565b61313682826112e6565b610eca5761314381613368565b61314e83602061337a565b60405160200161315f9291906142f0565b60408051601f198184030181529082905262461bcd60e51b82526102ea9160040161435f565b60008082516041036131bb5760208301516040840151606085015160001a6131af8782858561351c565b945094505050506131c3565b506000905060025b9250929050565b60008160048111156131de576131de614392565b036131e65750565b60018160048111156131fa576131fa614392565b036132425760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b60448201526064016102ea565b600281600481111561325657613256614392565b036132a35760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016102ea565b60038160048111156132b7576132b7614392565b036120505760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016102ea565b60008144426007600081548092919061332790614289565b9091555060408051602081019490945283019190915260608201526080016040516020818303038152906040528051906020012060001c61094b91906143a8565b606061094b6001600160a01b03831660145b606060006133898360026143bc565b6133949060026143d3565b6001600160401b038111156133ab576133ab613972565b6040519080825280601f01601f1916602001820160405280156133d5576020820181803683370190505b509050600360fc1b816000815181106133f0576133f0614055565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061341f5761341f614055565b60200101906001600160f81b031916908160001a90535060006134438460026143bc565b61344e9060016143d3565b90505b60018111156134c6576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061348257613482614055565b1a60f81b82828151811061349857613498614055565b60200101906001600160f81b031916908160001a90535060049490941c936134bf816143e6565b9050613451565b5083156135155760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016102ea565b9392505050565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b0383111561354957506000905060036135cd565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561359d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166135c6576000600192509250506135cd565b9150600090505b94509492505050565b602383019183908215613611579160200282015b8281111561361157825161360190839060056137a0565b50916020019190600501906135ea565b5061361d9291506137ec565b5090565b604080516101e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101829052610160810182905261018081018290526101a081018290526101c081019190915290565b82600781019282156136dd579160200282015b828111156136dd57825180516136cd9184916020909101906136e9565b50916020019190600101906136b0565b5061361d929150613809565b828054828255906000526020600020906001016002900481019282156137945791602002820160005b8382111561375f57835183826101000a8154816001600160801b030219169083600f0b6001600160801b031602179055509260200192601001602081600f01049283019260010302613712565b80156137925782816101000a8154906001600160801b030219169055601001602081600f0104928301926001030261375f565b505b5061361d929150613826565b82600581019282156137e0579160200282015b828111156137e057825180516137d091849160209091019061383b565b50916020019190600101906137b3565b5061361d9291506138d2565b8082111561361d57600061380082826138ef565b506005016137ec565b8082111561361d57600061381d82826138fe565b50600101613809565b5b8082111561361d5760008155600101613827565b82805482825590600052602060002090600f016010900481019282156137945791602002820160005b838211156138a457835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302613864565b80156137925782816101000a81549061ffff02191690556002016020816001010492830192600103026138a4565b8082111561361d5760006138e68282613923565b506001016138d2565b506120509060058101906138d2565b5080546000825560010160029004906000526020600020908101906120509190613826565b50805460008255600f0160109004906000526020600020908101906120509190613826565b60006020828403121561395a57600080fd5b81356001600160e01b03198116811461351557600080fd5b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b03811182821017156139aa576139aa613972565b60405290565b60405160a081016001600160401b03811182821017156139aa576139aa613972565b604051601f8201601f191681016001600160401b03811182821017156139fa576139fa613972565b604052919050565b60006001600160401b03821115613a1b57613a1b613972565b5060051b60200190565b803561ffff81168114613a3757600080fd5b919050565b600060208284031215613a4e57600080fd5b6001600160401b038083351115613a6457600080fd5b8235830184601f820112613a7757600080fd5b613a7f613988565b808660e084011115613a9057600080fd5b825b60e08401811015613b81578481351115613aab57600080fd5b8035840188601f820112613abe57600080fd5b613ac66139b0565b808a60a084011115613ad757600080fd5b825b60a08401811015613b70578881351115613af257600080fd5b803584018c601f820112613b0557600080fd5b613b17613b128235613a02565b6139d2565b81358082526020808301929160051b8401018f811115613b3657600080fd5b6020840193505b80841015613b5f57613b4e84613a25565b835260209384019390920191613b3d565b508552505060209283019201613ad9565b508552505060209283019201613a92565b509695505050505050565b60ff8116811461205057600080fd5b8035600f81900b8114613a3757600080fd5b600080600060608486031215613bc257600080fd5b8335613bcd81613b8c565b92506020840135613bdd81613b8c565b9150613beb60408501613b9b565b90509250925092565b6001600160a01b038116811461205057600080fd5b600080600060608486031215613c1e57600080fd5b8335613c2981613bf4565b95602085013595506040909401359392505050565b600060208284031215613c5057600080fd5b5035919050565b600060208284031215613c6957600080fd5b813561351581613bf4565b60008060408385031215613c8757600080fd5b823591506020830135613c9981613bf4565b809150509250929050565b815160ff1681526101e081016020830151613cc4602084018260ff169052565b506040830151613cd9604084018260ff169052565b506060830151613cee606084018260ff169052565b506080830151613d03608084018260ff169052565b5060a0830151613d1860a084018260ff169052565b5060c0830151613d2d60c084018260ff169052565b5060e0830151613d4260e084018260ff169052565b506101008381015160ff16908301526101208084015161ffff908116918401919091526101408085015182169084015261016080850151821690840152610180808501518216908401526101a0808501518216908401526101c09384015116929091019190915290565b600060208284031215613dbe57600080fd5b813561351581613b8c565b6001600160a01b0391909116815260200190565b60008060208385031215613df057600080fd5b82356001600160401b0380821115613e0757600080fd5b818501915085601f830112613e1b57600080fd5b813581811115613e2a57600080fd5b866020828501011115613e3c57600080fd5b60209290920196919550909350505050565b600060208284031215613e6057600080fd5b8135801515811461351557600080fd5b600082601f830112613e8157600080fd5b81356020613e91613b1283613a02565b82815260059290921b84018101918181019086841115613eb057600080fd5b8286015b84811015613b8157613ec581613b9b565b8352918301918301613eb4565b60006020808385031215613ee557600080fd5b82356001600160401b0380821115613efc57600080fd5b818501915085601f830112613f1057600080fd5b613f18613988565b8060e0840188811115613f2a57600080fd5b845b81811015613f5e57803585811115613f445760008081fd5b613f508b828901613e70565b855250928601928601613f2c565b509098975050505050505050565b60008060408385031215613f7f57600080fd5b50508035926020909101359150565b60008060408385031215613fa157600080fd5b8235613fac81613b8c565b915060208301356001600160401b03811115613fc757600080fd5b613fd385828601613e70565b9150509250929050565b600080600060608486031215613ff257600080fd5b833564ffffffffff8116811461400757600080fd5b925061401560208501613a25565b9150604084013590509250925092565b60208082526016908201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6020808252601f908201527f506172656e743120616e642032206d75737420626520646966666572656e7400604082015260600190565b6000602082840312156140b457600080fd5b815161351581613bf4565b60208082526022908201527f53656e646572206973206e6f7420746865206f776e6572206f6620706172656e604082015261743160f01b606082015260800190565b60208082526022908201527f53656e646572206973206e6f7420746865206f776e6572206f6620706172656e6040820152613a1960f11b606082015260800190565b60006020828403121561415557600080fd5b815161351581613b8c565b602080825260189082015277506172656e743120686173206e6f2066657274696c69747960401b604082015260600190565b602080825260189082015277506172656e743220686173206e6f2066657274696c69747960401b604082015260600190565b60208082526017908201527643616c6c6572206973206e6f7420612066696e616e636560481b604082015260600190565b60006020828403121561420757600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600061ffff80831681810361423b5761423b61420e565b6001019392505050565b6001600160a01b0395909516855260208501939093526040840191909152606083015260ff16608082015260a00190565b8181038181111561094b5761094b61420e565b60006001820161429b5761429b61420e565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826142c7576142c76142a2565b500490565b60005b838110156142e75781810151838201526020016142cf565b50506000910152565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8152600083516143228160178501602088016142cc565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516143538160288401602088016142cc565b01602801949350505050565b602081526000825180602084015261437e8160408501602087016142cc565b601f01601f19169190910160400192915050565b634e487b7160e01b600052602160045260246000fd5b6000826143b7576143b76142a2565b500690565b808202811582820484141761094b5761094b61420e565b8082018082111561094b5761094b61420e565b6000816143f5576143f561420e565b50600019019056fe940d6b1946ff1d2b5a9f1909219c3c81a370804b5ba0f91ec0828c99a2e6a681a49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a264697066735822122028e2584826f0f0c5bf023d490c91c93159daac1bb1ccdff10ec7608f99973a3264736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000a530ca14ad0c9d6cc14961aab900f633c2c3e4fa0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000a86afa6b2f2583b0e4f32837a2cb1d84451be17d0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000a86afa6b2f2583b0e4f32837a2cb1d84451be17d
-----Decoded View---------------
Arg [0] : finance (address[]): 0xa530Ca14ad0C9D6cC14961Aab900F633c2c3E4FA
Arg [1] : whitelister (address[]): 0xa86afa6b2F2583b0e4f32837A2cb1D84451be17d
Arg [2] : admin (address[]): 0xa86afa6b2F2583b0e4f32837A2cb1D84451be17d
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [4] : 000000000000000000000000a530ca14ad0c9d6cc14961aab900f633c2c3e4fa
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [6] : 000000000000000000000000a86afa6b2f2583b0e4f32837a2cb1d84451be17d
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [8] : 000000000000000000000000a86afa6b2f2583b0e4f32837a2cb1d84451be17d
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $2,522.33 | 1.875 | $4,729.37 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.