Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 16984014 | 597 days ago | IN | 0 ETH | 0.10325244 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x45E5bDec...aa7aBB0b9 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
RenovaAvatar
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-04-02 */ interface IStakingVault { /// @notice Represents the stake a user has in the vault. struct Stake { uint128 amount; uint64 lockExpiry; } // Events. /// @notice Emitted every time a user's stake changes. event StakeChanged( address indexed account, uint128 amount, uint64 lockExpiry ); /// @notice Emitted when a user boosts either the value or the lock of their stake. event BoostHFTStake( address indexed account, uint128 amount, uint64 daysStaked ); /// @notice Emitted when HFT is withdrawn. event WithdrawHFT( address indexed account, uint128 amountWithdrawn, uint128 amountRestaked ); /// @notice Emitted when a stake is transferred to a different vault. event TransferHFTStake( address indexed account, address targetVault, uint128 amount ); /// @notice Emitted when the max number of staking days is updated. event UpdateMaxDaysToStake(uint16 maxDaysToStake); /// @notice Emitted when a source vault authorization status changes. event UpdateSourceVaultAuthorization(address vault, bool isAuthorized); /// @notice Emitted when a target vault authorization status changes. event UpdateTargetVaultAuthorization(address vault, bool isAuthorized); // Auto-generated functions. /// @notice Returns the stake that a user has. function stakes(address user) external returns (uint128, uint64); /// @notice Returns the authorization status of a vault to receive HFT from. /// @param vault The source vault. /// @return The authorization status. function sourceVaultAuthorization(address vault) external returns (bool); /// @notice Returns the authorization status of a vault to send HFT to. /// @param vault The source vault. /// @return The authorization status. function targetVaultAuthorization(address vault) external returns (bool); // Functions. /// @notice The total (voting) power of a user's stake. /// @param user The user to compute the power for. /// @return Total stake power. function getStakePower(address user) external view returns (uint256); /// @notice Increases the amount or the lock of a stake, or both. /// @param amount Amount to increase the stake by. /// @param daysToStake Days to increase the stake lock by. function boostHFTStake(uint128 amount, uint16 daysToStake) external; /** * @notice Increases the amount or the lock of a stake, or both. * * Uses an ERC-721 permit for HFT allowance. */ /// @param amount Amount to increase the stake by. /// @param daysToStake Days to increase the stake lock by. /// @param deadline Deadline of permit. /// @param v v-part of the permit signature. /// @param r r-part of the permit signature. /// @param s s-part of the permit signature. /// @param approvalAmount Amount of HFT to spend that the permit approves. function boostHFTStakeWithPermit( uint128 amount, uint16 daysToStake, uint256 deadline, uint8 v, bytes32 r, bytes32 s, uint256 approvalAmount ) external; /// @notice Increases the HFT amount of a user's stake. /// @param user The user to increase the stake for. /// @param amount Amount by which the stake needs to be increased. /// @dev Can only be called by a contract. function increaseHFTStakeAmountFor(address user, uint128 amount) external; /// @notice Withdraws HFT to the user. /// @param amountToRestake Amount of HFT to re-stake instead of withdrawing. /// @param daysToRestake Number of days to lock the re-staked portion. function withdrawHFT( uint128 amountToRestake, uint16 daysToRestake ) external; /// @notice Transfers a user's stake to another vault. /// @param targetVault The address of the target vault. function transferHFTStake(address targetVault) external; /// @notice Receives a stake transfer that is issued via transferHFTStake. /// @param user The user to receive the transfer for. /// @param amount Amount of stake to receive. /// @param lockExpiry Lock expiry in the source vault. function receiveHFTStakeTransfer( address user, uint128 amount, uint64 lockExpiry ) external; // Admin. /// @notice Updates the max staking period, in days. /// @param maxDaysToStake The new max number of days a user is allowed to stake. function updateMaxDaysToStake(uint16 maxDaysToStake) external; /// @notice Updates the authorization status of a source vault, for stake transfer. /// @param vault The vault to update the authorization for. /// @param isAuthorized The new authorization status. function updateSourceVaultAuthorization( address vault, bool isAuthorized ) external; /// @notice Updates the authorization status of a target vault, for stake transfer. /// @param vault The vault to update the authorization for. /// @param isAuthorized The new authorization status. function updateTargetVaultAuthorization( address vault, bool isAuthorized ) external; } interface IWormholeStructs { struct Provider { uint16 chainId; uint16 governanceChainId; bytes32 governanceContract; } struct GuardianSet { address[] keys; uint32 expirationTime; } struct Signature { bytes32 r; bytes32 s; uint8 v; uint8 guardianIndex; } struct VM { uint8 version; uint32 timestamp; uint32 nonce; uint16 emitterChainId; bytes32 emitterAddress; uint64 sequence; uint8 consistencyLevel; bytes payload; uint32 guardianSetIndex; Signature[] signatures; bytes32 hash; } } interface IWormhole is IWormholeStructs { event LogMessagePublished( address indexed sender, uint64 sequence, uint32 nonce, bytes payload, uint8 consistencyLevel ); function publishMessage( uint32 nonce, bytes memory payload, uint8 consistencyLevel ) external payable returns (uint64 sequence); function parseAndVerifyVM( bytes calldata encodedVM ) external view returns ( IWormholeStructs.VM memory vm, bool valid, string memory reason ); function verifyVM( IWormholeStructs.VM memory vm ) external view returns (bool valid, string memory reason); function verifySignatures( bytes32 hash, IWormholeStructs.Signature[] memory signatures, IWormholeStructs.GuardianSet memory guardianSet ) external pure returns (bool valid, string memory reason); function parseVM( bytes memory encodedVM ) external pure returns (IWormholeStructs.VM memory vm); function getGuardianSet( uint32 index ) external view returns (IWormholeStructs.GuardianSet memory); function getCurrentGuardianSetIndex() external view returns (uint32); function getGuardianSetExpiry() external view returns (uint32); function governanceActionIsConsumed( bytes32 hash ) external view returns (bool); function isInitialized(address impl) external view returns (bool); function chainId() external view returns (uint16); function governanceChainId() external view returns (uint16); function governanceContract() external view returns (bytes32); function messageFee() external view returns (uint256); } interface IWormholeBaseUpgradeable { /// @notice Emitted when the Wormhole Endpoin is updated. /// @param newWormhole The new Wormhole Endpoin address. /// @param oldWormhole The previous Wormhole Endpoin address. event UpdateWormhole(address newWormhole, address oldWormhole); /// @notice Emitted when the Wormhole Chain ID is updated. /// @param newWormholeChainId The new Wormhole Chain ID. /// @param oldWormholeChainId The previous Wormhole Chain ID. event UpdateWormholeChainId( uint16 newWormholeChainId, uint16 oldWormholeChainId ); /// @notice Emitted when the Wormhle Consistency Level is updated. /// @param newConsistencyLevel The new Consistency Level. /// @param oldConsistencyLevel The previous consistency Level. event UpdateWormholeConsistencyLevel( uint8 newConsistencyLevel, uint8 oldConsistencyLevel ); /// @notice Emitted when a trusted Wormhole x-chain remote is updated. /// @param wormholeChainId The Wormhole Chain ID for which the remote is updated. /// @param remote The remote address, 0-padded to 32 bytes. event UpdateWormholeRemote(uint16 wormholeChainId, bytes32 remote); /// @notice Emitted when a Wormhole message has been sent (published). /// @param sequence The Sequence Number of the message. event WormholeSend(uint64 sequence); /// @notice Emitted when a Wormhole message has been received (relayed). /// @param emitterChainId The source Wormhole Chain ID. /// @param emitterAddress The address of the emitting contract, 0-padded to 32 bytes. /// @param sequence The Sequence Number of the message. event WormholeReceive( uint16 emitterChainId, bytes32 emitterAddress, uint64 sequence ); /// @notice Updates the Wormhole Endpoint address. /// @param wormhole The address of the new Wormhole endpoint. /// @dev This also sets a new Wormhole Chain ID. function updateWormhole(address wormhole) external; /// @notice Updates the Wormhole Consistency Level. /// @param wormholeConsistencyLevel The new Wormhole Consistency Level. function updateWormholeConsistencyLevel( uint8 wormholeConsistencyLevel ) external; /// @notice Updates the trusted Wormhole x-chain remote for a particular Wormhole Chain ID. /// @param wormholeChainId The Wormhole Chain ID to update the trusted remote for. /// @param authorizedRemote The trusted remote address, 0-padded to 32 bytes. function updateWormholeRemote( uint16 wormholeChainId, bytes32 authorizedRemote ) external; /// @notice Allows the owner to withdraw fees collected for the Relayer. function withdrawRelayerFees() external; } interface IHashflowRouter { struct RFQTQuote { address pool; address externalAccount; address trader; address effectiveTrader; address baseToken; address quoteToken; uint256 effectiveBaseTokenAmount; uint256 maxBaseTokenAmount; uint256 maxQuoteTokenAmount; uint256 quoteExpiry; uint256 nonce; bytes32 txid; bytes signature; } function tradeSingleHop(RFQTQuote memory quote) external payable; } library MathUpgradeable { 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); } } } abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: setting the version to 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _initializing; } } abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _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); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; } library AddressUpgradeable { /** * @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 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); } } } interface IERC165Upgradeable { /** * @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); } interface IERC721ReceiverUpgradeable { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } interface IERC721Upgradeable is IERC165Upgradeable { /** * @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); } interface IERC721MetadataUpgradeable is IERC721Upgradeable { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } library StringsUpgradeable { 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 = MathUpgradeable.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, MathUpgradeable.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); } } abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal onlyInitializing { } function __ERC165_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } contract ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable { using AddressUpgradeable for address; using StringsUpgradeable for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ function __ERC721_init(string memory name_, string memory symbol_) internal onlyInitializing { __ERC721_init_unchained(name_, symbol_); } function __ERC721_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC721Upgradeable).interfaceId || interfaceId == type(IERC721MetadataUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721Upgradeable.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _ownerOf(tokenId) != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721Upgradeable.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721Upgradeable.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721Upgradeable.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721Upgradeable.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721Upgradeable.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721Upgradeable.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721ReceiverUpgradeable.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256, /* firstTokenId */ uint256 batchSize ) internal virtual { if (batchSize > 1) { if (from != address(0)) { _balances[from] -= batchSize; } if (to != address(0)) { _balances[to] += batchSize; } } } /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[44] private __gap; } interface IERC4906Upgradeable is IERC165Upgradeable, IERC721Upgradeable { /// @dev This event emits when the metadata of a token is changed. /// So that the third-party platforms such as NFT market could /// timely update the images and related attributes of the NFT. event MetadataUpdate(uint256 _tokenId); /// @dev This event emits when the metadata of a range of tokens is changed. /// So that the third-party platforms such as NFT market could /// timely update the images and related attributes of the NFTs. event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId); } interface IRenovaAvatarBase is IERC4906Upgradeable { enum RenovaFaction { RESISTANCE, SOLUS } /// @notice Emitted when an Avatar is minted. /// @param player The owner of the Avatar. /// @param tokenId The Token ID minted. /// @param faction The faction of the Avatar. /// @param characterId The character ID minted. event Mint( address indexed player, uint256 tokenId, RenovaFaction faction, uint256 characterId ); /// @notice Emitted when the Custom Metadata URI is updated. /// @param uri The new URI. event UpdateCustomURI(string uri); /// @notice Returns the faction of a player. /// @param player The player. /// @return The faction. function factions(address player) external returns (RenovaFaction); /// @notice Returns the character ID of a player. /// @param player The player. /// @return The character ID. function characterIds(address player) external returns (uint256); /// @notice Returns the token ID of a player. /// @param player The player. /// @return The token ID. function tokenIds(address player) external returns (uint256); /// @notice Sets a custom base URI for the token metadata. /// @param customBaseURI The new Custom URI. function setCustomBaseURI(string memory customBaseURI) external; /// @notice Emits a refresh metadata event for a token. /// @param tokenId The ID of the token. function refreshMetadata(uint256 tokenId) external; /// @notice Emits a refresh metadata event for all tokens. function refreshAllMetadata() external; } interface IRenovaAvatar is IRenovaAvatarBase { /// @notice Emitted when the Avatar is minted to another chain. /// @param player The owner of the Avatar. /// @param faction The faction of the Avatar. /// @param characterId The character ID of the Avatar. /// @param dstWormholeChainId The Wormhole Chain ID of the destination chain. /// @param sequence The Sequence number of the Wormhole message. event XChainMintOut( address indexed player, RenovaFaction faction, uint256 characterId, uint16 dstWormholeChainId, uint256 sequence, uint256 relayerFee ); /// @notice Emitted when the StakingVault contract that tracks veHFT is updated. /// @param stakingVault The address of the new StakingVault contract. /// @param prevStakingVault The address of the previous StakingVault contract. event UpdateStakingVault(address stakingVault, address prevStakingVault); /// @notice Emitted when the minimum stake power required to mint changes. /// @param minStakePower The new required minimum stake power. event UpdateMinStakePower(uint256 minStakePower); /// @notice Emitted when the max Character ID for a faction is updated. /// @param faction The Renova Faction. /// @param maxCharacterId The max Character ID for that faction. event UpdateMaxCharacterId(RenovaFaction faction, uint256 maxCharacterId); /// @notice Initializer function. /// @param renovaCommandDeck The Renova Command Deck. /// @param stakingVault The address of the StakingVault contract. /// @param minStakePower The minimum amount of stake power required to mint an Avatar. /// @param wormhole The Wormhole Endpoint. See {IWormholeBaseUpgradeable}. /// @param wormholeConsistencyLevel The Wormhole Consistency Level. See {IWormholeBaseUpgradeable}. function initialize( address renovaCommandDeck, address stakingVault, uint256 minStakePower, address wormhole, uint8 wormholeConsistencyLevel ) external; /// @notice Updates the StakingVault contract used to track veHFT. /// @param stakingVault The address of the new StakingVault contract. function updateStakingVault(address stakingVault) external; /// @notice Updates the minimum stake power required to mint an Avatar. /// @param minStakePower The new minimum stake power required. function updateMinStakePower(uint256 minStakePower) external; /// @notice Updates the max Character ID for a given faction. /// @param faction The faction to update the max Character ID for. /// @param maxCharacterId The new max Character ID. function updateMaxCharacterId( RenovaFaction faction, uint256 maxCharacterId ) external; /// @notice Mints an Avatar. Requires a minimum amount of stake power. /// @param faction The faction of the Avatar. /// @param characterId The Character ID of the Avatar. function mint(RenovaFaction faction, uint256 characterId) external; /// @notice Mints the Avatar cross-chain, via Wormhole. /// @param dstWormholeChainId The Wormhole Chain ID of the chain to mint on. See {IWormholeBaseUpgradeable}. function wormholeMintSend( uint16 dstWormholeChainId, uint256 wormholeMessageFee ) external payable; } interface IRenovaQuest { enum QuestMode { SOLO, TEAM } struct TokenDeposit { address token; uint256 amount; } /// @notice Emitted when a token authorization status changes. /// @param token The address of the token. /// @param status Whether the token is allowed for trading. event UpdateTokenAuthorizationStatus(address token, bool status); /// @notice Emitted when a player registers for a quest. /// @param player The player registering for the quest. event RegisterPlayer(address indexed player); /// @notice Emitted when a player loads an item. /// @param player The player who loads the item. /// @param tokenId The Token ID of the loaded item. event LoadItem(address indexed player, uint256 tokenId); /// @notice Emitted when a player unloads an item. /// @param player The player who unloads the item. /// @param tokenId The Token ID of the unloaded item. event UnloadItem(address indexed player, uint256 tokenId); /// @notice Emitted when a player deposits a token for a Quest. /// @param player The player who deposits the token. /// @param token The address of the token (0x0 for native token). /// @param amount The amount of token being deposited. event DepositToken(address indexed player, address token, uint256 amount); /// @notice Emitted when a player withdraws a token from a Quest. /// @param player The player who withdraws the token. /// @param token The address of the token (0x0 for native token). /// @param amount The amount of token being withdrawn. event WithdrawToken(address indexed player, address token, uint256 amount); /// @notice Emitted when a player trades as part of the Quest. /// @param player The player who traded. /// @param baseToken The address of the token the player sold. /// @param quoteToken The address of the token the player bought. /// @param baseTokenAmount The amount sold. /// @param quoteTokenAmount The amount bought. event Trade( address indexed player, address baseToken, address quoteToken, uint256 baseTokenAmount, uint256 quoteTokenAmount ); /// @notice Returns the Quest start time. /// @return The Quest start time. function startTime() external returns (uint256); /// @notice Returns the Quest end time. /// @return The Quest end time. function endTime() external returns (uint256); /// @notice Returns the address that has authority over the quest. /// @return The address that has authority over the quest. function questOwner() external returns (address); /// @notice Returns whether a player has registered for the Quest. /// @param player The address of the player. /// @return Whether the player has registered. function registered(address player) external returns (bool); /// @notice Used by the owner to allow / disallow a token for trading. /// @param token The address of the token. /// @param status The authorization status. function updateTokenAuthorization(address token, bool status) external; /// @notice Returns whether a token is allowed for deposits / trading. /// @param token The address of the token. /// @return Whether the token is allowed for trading. function allowedTokens(address token) external returns (bool); /// @notice Returns the number of registered players. /// @return The number of registered players. function numRegisteredPlayers() external returns (uint256); /// @notice Returns the number of registered players by faction. /// @param faction The faction. /// @return The number of registered players in the faction. function numRegisteredPlayersPerFaction( IRenovaAvatar.RenovaFaction faction ) external returns (uint256); /// @notice Returns the number of loaded items for a player. /// @param player The address of the player. /// @return The number of currently loaded items. function numLoadedItems(address player) external returns (uint256); /// @notice Returns the Token IDs for the loaded items for a player. /// @param player The address of the player. /// @param idx The index of the item in the array of loaded items. /// @return The Token ID of the item. function loadedItems( address player, uint256 idx ) external returns (uint256); /// @notice Returns the token balance for each token the player has in the Quest. /// @param player The address of the player. /// @param token The address of the token. /// @return The player's token balance for this Quest. function portfolioTokenBalances( address player, address token ) external returns (uint256); /// @notice Registers a player for the quests, loads items, and deposits tokens. /// @param tokenIds The token IDs for the items to load. /// @param tokenDeposits The tokens and amounts to deposit. function enterLoadDeposit( uint256[] memory tokenIds, TokenDeposit[] memory tokenDeposits ) external payable; /// @notice Registers a player for the quest. function enter() external; /// @notice Loads items into the Quest. /// @param tokenIds The Token IDs of the loaded items. function loadItems(uint256[] memory tokenIds) external; /// @notice Unloads an item. /// @param tokenId the Token ID of the item to unload. function unloadItem(uint256 tokenId) external; /// @notice Unloads all loaded items for the player. function unloadAllItems() external; /// @notice Deposits tokens prior to the beginning of the Quest. /// @param tokenDeposits The addresses and amounts of tokens to deposit. function depositTokens( TokenDeposit[] memory tokenDeposits ) external payable; /// @notice Withdraws the full balance of the selected tokens from the Quest. /// @param tokens The addresses of the tokens to withdraw. function withdrawTokens(address[] memory tokens) external; /// @notice Trades within the Quest. /// @param quote The Hashflow Quote. function trade(IHashflowRouter.RFQTQuote memory quote) external payable; } abstract contract WormholeBaseUpgradeable is IWormholeBaseUpgradeable, OwnableUpgradeable { using AddressUpgradeable for address payable; address private _wormhole; uint8 private _wormholeConsistencyLevel; mapping(bytes32 => bool) private _processedMessageHashes; mapping(uint16 => bytes32) internal _wormholeRemotes; uint16 internal _wormholeChainId; /// @dev Reserved for future upgrades. uint256[16] private __gap; /// @notice Base initializer. /// @param wormhole The address of the Wormhole endpoint. /// @param wormholeConsistencyLevel The Wormhole consistency level. function __WormholeBaseUpgradeable_init( address wormhole, uint8 wormholeConsistencyLevel ) internal { __Ownable_init(); _updateWormhole(wormhole); _updateWormholeConsistencyLevel(wormholeConsistencyLevel); } /// @inheritdoc IWormholeBaseUpgradeable function updateWormhole(address wormhole) external override onlyOwner { _updateWormhole(wormhole); } /// @inheritdoc IWormholeBaseUpgradeable function updateWormholeConsistencyLevel( uint8 wormholeConsistencyLevel ) external override onlyOwner { _updateWormholeConsistencyLevel(wormholeConsistencyLevel); } /// @inheritdoc IWormholeBaseUpgradeable function updateWormholeRemote( uint16 wormholeChainId, bytes32 authorizedRemote ) external override onlyOwner { require( wormholeChainId != 0, 'WormholeBaseUpgradeable::updateWormholeRemote wormholeChainId cannot be 0.' ); require( authorizedRemote != bytes32(0), 'WormholeBaseUpgradeable::updateWormholeRemote Remote cannot be 0.' ); _wormholeRemotes[wormholeChainId] = authorizedRemote; emit UpdateWormholeRemote(wormholeChainId, authorizedRemote); } /// @inheritdoc IWormholeBaseUpgradeable function withdrawRelayerFees() external override onlyOwner { require( address(this).balance > 0, 'WormholeBaseUpgradeable::withdrawRelayerFees No fees collected.' ); payable(msg.sender).sendValue(address(this).balance); } /// @notice Sends a Wormhole message. /// @param nonce The nonce of the message. /// @param payload The payload to send. function _wormholeSend( uint32 nonce, bytes memory payload, uint256 wormholeMessageFee ) internal virtual returns (uint64 sequence) { require( _wormhole != address(0), 'WormholeBaseUpgradeable::_wormholeSend Wormhole is not defined.' ); require( _wormholeConsistencyLevel > 0, 'WormholeBaseUpgradeable:: _wormholeSend Wormhole consistency level is not defined.' ); sequence = IWormhole(_wormhole).publishMessage{ value: wormholeMessageFee }(nonce, payload, _wormholeConsistencyLevel); emit WormholeSend(sequence); } /// @notice Called when a Wormhole message is received. /// @param encodedVM The Wormhole VAA. function _wormholeReceive( bytes memory encodedVM ) internal virtual returns (uint16 emitterChainId, bytes memory payload) { require( _wormhole != address(0), 'WormholeBaseUpgradeable::_wormholeReceive Wormhole is not defined.' ); require( _wormholeChainId > 0, 'WormholeBaseUpgradeable::_wormholeReceive Wormhole Chain ID is not defined.' ); ( IWormholeStructs.VM memory vm, bool valid, string memory reason ) = IWormhole(_wormhole).parseAndVerifyVM(encodedVM); require(valid, reason); require( !_processedMessageHashes[vm.hash], 'WormholeBaseUpgradeable::_wormholeReceive Message already processed.' ); _processedMessageHashes[vm.hash] = true; emitterChainId = vm.emitterChainId; require( _wormholeRemotes[emitterChainId] != bytes32(0), 'WormholeBaseUpgradeable::_wormholeReceive Wormhole remote not defined on emitted chain.' ); require( _wormholeRemotes[emitterChainId] == vm.emitterAddress, 'WormholeBaseUpgradeable::_wormholeReceive Emitter not authorized.' ); emit WormholeReceive(vm.emitterChainId, vm.emitterAddress, vm.sequence); payload = vm.payload; } /// @notice Updates The wormhole endpoint. /// @param wormhole The new Wormhole endpoint. function _updateWormhole(address wormhole) internal { require( wormhole != address(0), 'WormholeBaseUpgradeable::_updateWormhole Address cannot be 0.' ); emit UpdateWormhole(wormhole, _wormhole); _wormhole = wormhole; uint16 wormholeChainId = IWormhole(_wormhole).chainId(); emit UpdateWormholeChainId(wormholeChainId, _wormholeChainId); _wormholeChainId = wormholeChainId; } /// @notice Updates the Wormhole consistency level. /// @param wormholeConsistencyLevel The new consistency level. function _updateWormholeConsistencyLevel( uint8 wormholeConsistencyLevel ) internal { require( wormholeConsistencyLevel > 0, 'WormholeBaseUpgradeable::updateWormholeConsistencyLevel Consistency level cannot be set to 0.' ); emit UpdateWormholeConsistencyLevel( wormholeConsistencyLevel, _wormholeConsistencyLevel ); _wormholeConsistencyLevel = wormholeConsistencyLevel; } } abstract contract RenovaAvatarBase is IRenovaAvatarBase, WormholeBaseUpgradeable, ERC721Upgradeable { using AddressUpgradeable for address; string private _customBaseURI; address private _renovaCommandDeck; /// @inheritdoc IRenovaAvatarBase mapping(address => RenovaFaction) public factions; /// @inheritdoc IRenovaAvatarBase mapping(address => uint256) public characterIds; /// @inheritdoc IRenovaAvatarBase mapping(address => uint256) public tokenIds; /// @dev Reserved for future upgrades. uint256[16] private __gap; /// @custom:oz-upgrades-unsafe-allow constructor constructor() { _disableInitializers(); } /// @notice Base initializer function. /// @param renovaCommandDeck The Renova Command Deck. /// @param wormhole The Wormhole endpoint address. /// @param wormholeConsistencyLevel The Wormhole consistency level. function __RenovaAvatarBase_init( address renovaCommandDeck, address wormhole, uint8 wormholeConsistencyLevel ) internal onlyInitializing { __WormholeBaseUpgradeable_init(wormhole, wormholeConsistencyLevel); __ERC721_init('Renova Avatar', 'RNVA'); require( renovaCommandDeck != address(0), 'RenovaAvatarBase::initalize renovaCommandDeck cannot be 0 address.' ); _renovaCommandDeck = renovaCommandDeck; } /// @inheritdoc IERC165Upgradeable function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC721Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == bytes4(0x49064906) || super.supportsInterface(interfaceId); } /// @inheritdoc IERC721Upgradeable function transferFrom( address, address, uint256 ) public pure override(ERC721Upgradeable, IERC721Upgradeable) { revert('RenovaAvatarBase::transferFrom Avatars are non-transferrable.'); } /// @inheritdoc IERC721Upgradeable function safeTransferFrom( address, address, uint256, bytes memory ) public pure override(ERC721Upgradeable, IERC721Upgradeable) { revert( 'RenovaAvatarBase::safeTransferFrom Avatars are non-transferrable.' ); } function approve( address, uint256 ) public pure override(ERC721Upgradeable, IERC721Upgradeable) { revert('RenovaAvatarBase::approve Avatars are non-transferrable.'); } function setApprovalForAll( address, bool ) public pure override(ERC721Upgradeable, IERC721Upgradeable) { revert( 'RenovaAvatarBase::setApprovalForAll Avatars are non-transferrable.' ); } /// @inheritdoc IERC721MetadataUpgradeable function tokenURI( uint256 tokenId ) public view override returns (string memory) { string memory tokenURIPrefix = ERC721Upgradeable.tokenURI(tokenId); return bytes(tokenURIPrefix).length > 0 ? string(abi.encodePacked(tokenURIPrefix, '.json')) : ''; } /// @inheritdoc IRenovaAvatarBase function setCustomBaseURI( string memory customBaseURI ) external override onlyOwner { _customBaseURI = customBaseURI; emit UpdateCustomURI(_customBaseURI); emit BatchMetadataUpdate(1, type(uint256).max); } /// @inheritdoc IRenovaAvatarBase function refreshMetadata(uint256 tokenId) external override onlyOwner { emit MetadataUpdate(tokenId); } /// @inheritdoc IRenovaAvatarBase function refreshAllMetadata() external override onlyOwner { emit BatchMetadataUpdate(1, type(uint256).max); } /// @inheritdoc OwnableUpgradeable function renounceOwnership() public view override onlyOwner { revert( 'RenovaAvatarBase::renounceOwnership Cannot renounce ownership.' ); } /// @notice Mints an avatar. /// @param tokenId The Token ID. /// @param tokenOwner The owner of the Avatar. /// @param faction The faction of the Avatar. /// @param characterId The Character ID of the Avatar. function _mintAvatar( uint256 tokenId, address tokenOwner, RenovaFaction faction, uint256 characterId ) internal { require( balanceOf(tokenOwner) == 0, 'RenovaAvatarBase::_mintAvatar Cannot mint more than one Avatar.' ); require( !_msgSender().isContract(), 'RenovaAvatarBase::_mintAvatar Contracts cannot mint.' ); factions[tokenOwner] = faction; characterIds[tokenOwner] = characterId; tokenIds[tokenOwner] = tokenId; _safeMint(tokenOwner, tokenId); emit Mint(tokenOwner, tokenId, faction, characterId); } /// @notice Returns the custom base URI. /// @return The base URI. function _baseURI() internal view override returns (string memory) { return _customBaseURI; } } contract RenovaAvatar is IRenovaAvatar, RenovaAvatarBase { address private _stakingVault; uint256 private _minStakePower; uint256 private _numMintedAvatars; mapping(RenovaFaction => uint256) private _maxCharacterId; /// @dev Reserved for future upgrades. uint256[16] private __gap; /// @inheritdoc IRenovaAvatar function initialize( address renovaCommandDeck, address stakingVault, uint256 minStakePower, address wormhole, uint8 wormholeConsistencyLevel ) external override initializer { __RenovaAvatarBase_init( renovaCommandDeck, wormhole, wormholeConsistencyLevel ); require( stakingVault != address(0), 'RenovaAvatar::initalize stakingVault cannot be 0 address.' ); _stakingVault = stakingVault; _minStakePower = minStakePower; _numMintedAvatars = 0; } /// @inheritdoc IRenovaAvatar function updateStakingVault( address stakingVault ) external override onlyOwner { require( stakingVault != address(0), 'RenovaAvatar::updateStakingVault StakingVault cannot be 0 address.' ); emit UpdateStakingVault(stakingVault, _stakingVault); _stakingVault = stakingVault; } /// @inheritdoc IRenovaAvatar function updateMinStakePower( uint256 minStakePower ) external override onlyOwner { _minStakePower = minStakePower; emit UpdateMinStakePower(_minStakePower); } function updateMaxCharacterId( RenovaFaction faction, uint256 maxCharacterId ) external override onlyOwner { require( _maxCharacterId[faction] < maxCharacterId, 'RenovaAvatar::updateMaxCharacterId Max Character ID should be increasing.' ); _maxCharacterId[faction] = maxCharacterId; emit UpdateMaxCharacterId(faction, maxCharacterId); } /// @inheritdoc IRenovaAvatar function mint( RenovaFaction faction, uint256 characterId ) external override { uint256 currentStakePower = IStakingVault(_stakingVault).getStakePower( _msgSender() ); require( currentStakePower >= _minStakePower, 'RenovaAvatar::mint Insufficient stake.' ); require( characterId < _maxCharacterId[faction], 'RenovaAvatar::mint Character ID not available.' ); _numMintedAvatars++; _mintAvatar(_numMintedAvatars, _msgSender(), faction, characterId); } /// @inheritdoc IRenovaAvatar function wormholeMintSend( uint16 dstWormholeChainId, uint256 wormholeMessageFee ) external payable override { require( balanceOf(_msgSender()) == 1, 'RenovaAvatar::wormholeMintSend Avatar not minted.' ); require( dstWormholeChainId != _wormholeChainId, 'RenovaAvatar::wormholeMintSend Dst chain should be different than Src chain.' ); require( msg.value >= wormholeMessageFee, 'RenovaAvatar::wormholeMintSend msg.value does not cover fees.' ); bytes memory payload = abi.encode( tokenIds[_msgSender()], _msgSender(), factions[_msgSender()], characterIds[_msgSender()], dstWormholeChainId ); uint64 sequence = _wormholeSend(0, payload, wormholeMessageFee); emit XChainMintOut( _msgSender(), factions[_msgSender()], characterIds[_msgSender()], dstWormholeChainId, sequence, msg.value - wormholeMessageFee ); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"BatchMetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"player","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"enum IRenovaAvatarBase.RenovaFaction","name":"faction","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"characterId","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"uri","type":"string"}],"name":"UpdateCustomURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum IRenovaAvatarBase.RenovaFaction","name":"faction","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"maxCharacterId","type":"uint256"}],"name":"UpdateMaxCharacterId","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"minStakePower","type":"uint256"}],"name":"UpdateMinStakePower","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"stakingVault","type":"address"},{"indexed":false,"internalType":"address","name":"prevStakingVault","type":"address"}],"name":"UpdateStakingVault","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newWormhole","type":"address"},{"indexed":false,"internalType":"address","name":"oldWormhole","type":"address"}],"name":"UpdateWormhole","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"newWormholeChainId","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"oldWormholeChainId","type":"uint16"}],"name":"UpdateWormholeChainId","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"newConsistencyLevel","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"oldConsistencyLevel","type":"uint8"}],"name":"UpdateWormholeConsistencyLevel","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"wormholeChainId","type":"uint16"},{"indexed":false,"internalType":"bytes32","name":"remote","type":"bytes32"}],"name":"UpdateWormholeRemote","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"emitterChainId","type":"uint16"},{"indexed":false,"internalType":"bytes32","name":"emitterAddress","type":"bytes32"},{"indexed":false,"internalType":"uint64","name":"sequence","type":"uint64"}],"name":"WormholeReceive","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"sequence","type":"uint64"}],"name":"WormholeSend","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"player","type":"address"},{"indexed":false,"internalType":"enum IRenovaAvatarBase.RenovaFaction","name":"faction","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"characterId","type":"uint256"},{"indexed":false,"internalType":"uint16","name":"dstWormholeChainId","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"sequence","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"relayerFee","type":"uint256"}],"name":"XChainMintOut","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"characterIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"factions","outputs":[{"internalType":"enum IRenovaAvatarBase.RenovaFaction","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"renovaCommandDeck","type":"address"},{"internalType":"address","name":"stakingVault","type":"address"},{"internalType":"uint256","name":"minStakePower","type":"uint256"},{"internalType":"address","name":"wormhole","type":"address"},{"internalType":"uint8","name":"wormholeConsistencyLevel","type":"uint8"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum IRenovaAvatarBase.RenovaFaction","name":"faction","type":"uint8"},{"internalType":"uint256","name":"characterId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refreshAllMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"refreshMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"customBaseURI","type":"string"}],"name":"setCustomBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum IRenovaAvatarBase.RenovaFaction","name":"faction","type":"uint8"},{"internalType":"uint256","name":"maxCharacterId","type":"uint256"}],"name":"updateMaxCharacterId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"minStakePower","type":"uint256"}],"name":"updateMinStakePower","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"stakingVault","type":"address"}],"name":"updateStakingVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wormhole","type":"address"}],"name":"updateWormhole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"wormholeConsistencyLevel","type":"uint8"}],"name":"updateWormholeConsistencyLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"wormholeChainId","type":"uint16"},{"internalType":"bytes32","name":"authorizedRemote","type":"bytes32"}],"name":"updateWormholeRemote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawRelayerFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"dstWormholeChainId","type":"uint16"},{"internalType":"uint256","name":"wormholeMessageFee","type":"uint256"}],"name":"wormholeMintSend","outputs":[],"stateMutability":"payable","type":"function"}]
Deployed Bytecode
0x6080604052600436106101e35760003560e01c806395d89b4111610102578063cdf0ae7611610095578063f26748e211610064578063f26748e2146105bf578063f2fde38b146105df578063fc7f82b7146105ff578063fc97a3031461061f57600080fd5b8063cdf0ae7614610516578063d3c840d314610536578063d95ba42f14610556578063e985e9c51461057657600080fd5b8063aebb4ce9116100d1578063aebb4ce9146104a1578063b88d4fde146104c1578063bed20a87146104e1578063c87b56dd146104f657600080fd5b806395d89b411461042c578063a22cb46514610441578063a333d1a414610461578063ad47f57d1461048157600080fd5b806342842e0e1161017a5780636cc247e0116101495780636cc247e0146103b957806370a08231146103d9578063715018a6146103f95780638da5cb5b1461040e57600080fd5b806342842e0e1461030157806347c138101461032157806361c8893c1461035c5780636352211e1461039957600080fd5b806323b872dd116101b657806323b872dd146102995780632b0e2974146102b95780632d1c7555146102ce5780633bb03890146102e157600080fd5b806301ffc9a7146101e857806306fdde031461021d578063081812fc1461023f578063095ea7b314610277575b600080fd5b3480156101f457600080fd5b50610208610203366004612b52565b61064c565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b50610232610690565b6040516102149190612bbf565b34801561024b57600080fd5b5061025f61025a366004612bd2565b610722565b6040516001600160a01b039091168152602001610214565b34801561028357600080fd5b50610297610292366004612c07565b610749565b005b3480156102a557600080fd5b506102976102b4366004612c31565b6107bc565b3480156102c557600080fd5b5061029761082a565b6102976102dc366004612c7d565b6108b4565b3480156102ed57600080fd5b506102976102fc366004612cac565b610b1b565b34801561030d57600080fd5b5061029761031c366004612c31565b610cf1565b34801561032d57600080fd5b5061034e61033c366004612d0a565b60e06020526000908152604090205481565b604051908152602001610214565b34801561036857600080fd5b5061038c610377366004612d0a565b60df6020526000908152604090205460ff1681565b6040516102149190612d5d565b3480156103a557600080fd5b5061025f6103b4366004612bd2565b610d11565b3480156103c557600080fd5b506102976103d4366004612df7565b610d76565b3480156103e557600080fd5b5061034e6103f4366004612d0a565b610e02565b34801561040557600080fd5b50610297610e9c565b34801561041a57600080fd5b506065546001600160a01b031661025f565b34801561043857600080fd5b50610232610f12565b34801561044d57600080fd5b5061029761045c366004612e40565b610f21565b34801561046d57600080fd5b5061029761047c366004612d0a565b610fb5565b34801561048d57600080fd5b5061029761049c366004612e7c565b6110d5565b3480156104ad57600080fd5b506102976104bc366004612c7d565b6110e9565b3480156104cd57600080fd5b506102976104dc366004612e97565b61127e565b3480156104ed57600080fd5b50610297611312565b34801561050257600080fd5b50610232610511366004612bd2565b611357565b34801561052257600080fd5b50610297610531366004612d0a565b6113ac565b34801561054257600080fd5b50610297610551366004612f13565b6113bd565b34801561056257600080fd5b50610297610571366004612bd2565b611500565b34801561058257600080fd5b50610208610591366004612f35565b6001600160a01b03918216600090815260b06020908152604080832093909416825291909152205460ff1690565b3480156105cb57600080fd5b506102976105da366004612f13565b611538565b3480156105eb57600080fd5b506102976105fa366004612d0a565b611702565b34801561060b57600080fd5b5061029761061a366004612bd2565b61178f565b34801561062b57600080fd5b5061034e61063a366004612d0a565b60e16020526000908152604090205481565b60006001600160e01b031982167f4906490600000000000000000000000000000000000000000000000000000000148061068a575061068a826117cc565b92915050565b606060ab805461069f90612f68565b80601f01602080910402602001604051908101604052809291908181526020018280546106cb90612f68565b80156107185780601f106106ed57610100808354040283529160200191610718565b820191906000526020600020905b8154815290600101906020018083116106fb57829003601f168201915b5050505050905090565b600061072d82611867565b50600090815260af60205260409020546001600160a01b031690565b60405162461bcd60e51b815260206004820152603860248201527f52656e6f7661417661746172426173653a3a617070726f76652041766174617260448201527f7320617265206e6f6e2d7472616e736665727261626c652e000000000000000060648201526084015b60405180910390fd5b60405162461bcd60e51b815260206004820152603d60248201527f52656e6f7661417661746172426173653a3a7472616e7366657246726f6d204160448201527f76617461727320617265206e6f6e2d7472616e736665727261626c652e00000060648201526084016107b3565b6108326118cb565b600047116108a85760405162461bcd60e51b815260206004820152603f60248201527f576f726d686f6c65426173655570677261646561626c653a3a7769746864726160448201527f7752656c6179657246656573204e6f206665657320636f6c6c65637465642e0060648201526084016107b3565b6108b23347611925565b565b6108bd33610e02565b6001146109325760405162461bcd60e51b815260206004820152603160248201527f52656e6f76614176617461723a3a776f726d686f6c654d696e7453656e64204160448201527f7661746172206e6f74206d696e7465642e00000000000000000000000000000060648201526084016107b3565b609a5461ffff908116908316036109d75760405162461bcd60e51b815260206004820152604c60248201527f52656e6f76614176617461723a3a776f726d686f6c654d696e7453656e64204460448201527f737420636861696e2073686f756c6420626520646966666572656e742074686160648201527f6e2053726320636861696e2e0000000000000000000000000000000000000000608482015260a4016107b3565b80341015610a4d5760405162461bcd60e51b815260206004820152603d60248201527f52656e6f76614176617461723a3a776f726d686f6c654d696e7453656e64206d60448201527f73672e76616c756520646f6573206e6f7420636f76657220666565732e00000060648201526084016107b3565b33600081815260e1602090815260408083205460df83528184205460e084528285205492519495610a8a959294909360ff90921692899101612fa2565b60405160208183030381529060405290506000610aa960008385611a3e565b33600081815260df602090815260408083205460e09092529091205492935090917ff4b3508d5f90f4de5c9ac78e5368fcda8d0545fdb9ea079f4aa0ab08274a17a29160ff16908785610afc8934612ff5565b604051610b0d959493929190613008565b60405180910390a250505050565b600054610100900460ff1615808015610b3b5750600054600160ff909116105b80610b555750303b158015610b55575060005460ff166001145b610bc75760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084016107b3565b6000805460ff191660011790558015610bea576000805461ff0019166101001790555b610bf5868484611c46565b6001600160a01b038516610c715760405162461bcd60e51b815260206004820152603960248201527f52656e6f76614176617461723a3a696e6974616c697a65207374616b696e675660448201527f61756c742063616e6e6f74206265203020616464726573732e0000000000000060648201526084016107b3565b60f2805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03871617905560f3849055600060f4558015610ce9576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050565b610d0c8383836040518060200160405280600081525061127e565b505050565b600081815260ad60205260408120546001600160a01b03168061068a5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016107b3565b610d7e6118cb565b60dd610d8a828261308c565b507fa6079050ba457cec0a5a38490491927a6c30ecc1c27e7a9b060080b5278e3f3a60dd604051610dbb919061314c565b60405180910390a1604080516001815260001960208201527f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c91015b60405180910390a150565b60006001600160a01b038216610e805760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e6572000000000000000000000000000000000000000000000060648201526084016107b3565b506001600160a01b0316600090815260ae602052604090205490565b610ea46118cb565b60405162461bcd60e51b815260206004820152603e60248201527f52656e6f7661417661746172426173653a3a72656e6f756e63654f776e65727360448201527f6869702043616e6e6f742072656e6f756e6365206f776e6572736869702e000060648201526084016107b3565b606060ac805461069f90612f68565b60405162461bcd60e51b815260206004820152604260248201527f52656e6f7661417661746172426173653a3a736574417070726f76616c466f7260448201527f416c6c204176617461727320617265206e6f6e2d7472616e736665727261626c60648201527f652e000000000000000000000000000000000000000000000000000000000000608482015260a4016107b3565b610fbd6118cb565b6001600160a01b03811661105f5760405162461bcd60e51b815260206004820152604260248201527f52656e6f76614176617461723a3a7570646174655374616b696e675661756c7460448201527f205374616b696e675661756c742063616e6e6f7420626520302061646472657360648201527f732e000000000000000000000000000000000000000000000000000000000000608482015260a4016107b3565b60f254604080516001600160a01b03808516825290921660208301527f9858082ae6e14e3e1d6b0fe4e1ca3972646a9e61963e63a40bdfe30510d0404e910160405180910390a160f2805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6110dd6118cb565b6110e681611e02565b50565b6110f16118cb565b8161ffff166000036111915760405162461bcd60e51b815260206004820152604a60248201527f576f726d686f6c65426173655570677261646561626c653a3a7570646174655760448201527f6f726d686f6c6552656d6f746520776f726d686f6c65436861696e496420636160648201527f6e6e6f7420626520302e00000000000000000000000000000000000000000000608482015260a4016107b3565b8061122a5760405162461bcd60e51b815260206004820152604160248201527f576f726d686f6c65426173655570677261646561626c653a3a7570646174655760448201527f6f726d686f6c6552656d6f74652052656d6f74652063616e6e6f74206265203060648201527f2e00000000000000000000000000000000000000000000000000000000000000608482015260a4016107b3565b61ffff8216600081815260996020908152604091829020849055815192835282018390527f35e23d9dc327a48e399315447f33b792cbdbee431b0f83f5c78ed734eb709fac91015b60405180910390a15050565b60405162461bcd60e51b815260206004820152604160248201527f52656e6f7661417661746172426173653a3a736166655472616e73666572467260448201527f6f6d204176617461727320617265206e6f6e2d7472616e736665727261626c6560648201527f2e00000000000000000000000000000000000000000000000000000000000000608482015260a4016107b3565b61131a6118cb565b604080516001815260001960208201527f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c910160405180910390a1565b6060600061136483611f25565b9050600081511161138457604051806020016040528060008152506113a5565b8060405160200161139591906131d7565b6040516020818303038152906040525b9392505050565b6113b46118cb565b6110e681611f75565b6113c56118cb565b8060f560008460018111156113dc576113dc612d25565b60018111156113ed576113ed612d25565b815260200190815260200160002054106114955760405162461bcd60e51b815260206004820152604960248201527f52656e6f76614176617461723a3a7570646174654d617843686172616374657260448201527f4964204d6178204368617261637465722049442073686f756c6420626520696e60648201527f6372656173696e672e0000000000000000000000000000000000000000000000608482015260a4016107b3565b8060f560008460018111156114ac576114ac612d25565b60018111156114bd576114bd612d25565b8152602001908152602001600020819055507f9ce53af8de9508636ddade7891543626fef259673b3c4e58f1bb4682512e87188282604051611272929190613218565b6115086118cb565b6040518181527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce790602001610df7565b60f2546000906001600160a01b03166309d2a776336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611591573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b59190613233565b905060f35481101561162f5760405162461bcd60e51b815260206004820152602660248201527f52656e6f76614176617461723a3a6d696e7420496e73756666696369656e742060448201527f7374616b652e000000000000000000000000000000000000000000000000000060648201526084016107b3565b60f5600084600181111561164557611645612d25565b600181111561165657611656612d25565b81526020019081526020016000205482106116d95760405162461bcd60e51b815260206004820152602e60248201527f52656e6f76614176617461723a3a6d696e74204368617261637465722049442060448201527f6e6f7420617661696c61626c652e00000000000000000000000000000000000060648201526084016107b3565b60f480549060006116e98361324c565b9190505550610d0c60f4546116fb3390565b8585612159565b61170a6118cb565b6001600160a01b0381166117865760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107b3565b6110e6816122f2565b6117976118cb565b60f38190556040518181527fa1ee656dddf6ba70c27fccb09a7a2d53f532d97881bc5340acc72738a779e82390602001610df7565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061182f57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061068a57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161461068a565b600081815260ad60205260409020546001600160a01b03166110e65760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016107b3565b6065546001600160a01b031633146108b25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107b3565b804710156119755760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016107b3565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146119c2576040519150601f19603f3d011682016040523d82523d6000602084013e6119c7565b606091505b5050905080610d0c5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016107b3565b6097546000906001600160a01b0316611abf5760405162461bcd60e51b815260206004820152603f60248201527f576f726d686f6c65426173655570677261646561626c653a3a5f776f726d686f60448201527f6c6553656e6420576f726d686f6c65206973206e6f7420646566696e65642e0060648201526084016107b3565b609754600160a01b900460ff16611b645760405162461bcd60e51b815260206004820152605260248201527f576f726d686f6c65426173655570677261646561626c653a3a205f776f726d6860448201527f6f6c6553656e6420576f726d686f6c6520636f6e73697374656e6379206c657660648201527f656c206973206e6f7420646566696e65642e0000000000000000000000000000608482015260a4016107b3565b6097546040517fb19a437e0000000000000000000000000000000000000000000000000000000081526001600160a01b0382169163b19a437e918591611bbc9189918991600160a01b90910460ff1690600401613266565b60206040518083038185885af1158015611bda573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611bff9190613298565b60405167ffffffffffffffff821681529091507f2c0ada6fb76253b7077fa555f15478fe8f40ec488c2c43daae2481a1b5dc40099060200160405180910390a19392505050565b600054610100900460ff16611cb15760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016107b3565b611cbb8282612351565b611d2f6040518060400160405280600d81526020017f52656e6f766120417661746172000000000000000000000000000000000000008152506040518060400160405280600481526020017f524e56410000000000000000000000000000000000000000000000000000000081525061236f565b6001600160a01b038316611dd15760405162461bcd60e51b815260206004820152604260248201527f52656e6f7661417661746172426173653a3a696e6974616c697a652072656e6f60448201527f7661436f6d6d616e644465636b2063616e6e6f7420626520302061646472657360648201527f732e000000000000000000000000000000000000000000000000000000000000608482015260a4016107b3565b505060de805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60008160ff1611611ea15760405162461bcd60e51b815260206004820152605d60248201527f576f726d686f6c65426173655570677261646561626c653a3a7570646174655760448201527f6f726d686f6c65436f6e73697374656e63794c6576656c20436f6e736973746560648201527f6e6379206c6576656c2063616e6e6f742062652073657420746f20302e000000608482015260a4016107b3565b6097546040805160ff8085168252600160a01b90930490921660208301527f4776078413e31938cb5212df6c9a4ceb607c6f05445e7384623373bc2ac632c4910160405180910390a16097805460ff909216600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6060611f3082611867565b6000611f3a6123e4565b90506000815111611f5a57604051806020016040528060008152506113a5565b80611f64846123f3565b6040516020016113959291906132c2565b6001600160a01b038116611ff15760405162461bcd60e51b815260206004820152603d60248201527f576f726d686f6c65426173655570677261646561626c653a3a5f75706461746560448201527f576f726d686f6c6520416464726573732063616e6e6f7420626520302e00000060648201526084016107b3565b609754604080516001600160a01b03808516825290921660208301527f24341e031c7687e9eeb2b18d176371aaf18c9cb7cc6574be31aa512b84a17ebc910160405180910390a16097805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038316908117909155604080517f9a8a0592000000000000000000000000000000000000000000000000000000008152905160009291639a8a05929160048083019260209291908290030181865afa1580156120ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120de91906132f1565b609a546040805161ffff808516825290921660208301529192507ff08a2a85a4e60e268b72b8ae59558a699797e81a58fa0767f74579aa0415d9a5910160405180910390a1609a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff9290921691909117905550565b61216283610e02565b156121d55760405162461bcd60e51b815260206004820152603f60248201527f52656e6f7661417661746172426173653a3a5f6d696e7441766174617220436160448201527f6e6e6f74206d696e74206d6f7265207468616e206f6e65204176617461722e0060648201526084016107b3565b333b1561224a5760405162461bcd60e51b815260206004820152603460248201527f52656e6f7661417661746172426173653a3a5f6d696e7441766174617220436f60448201527f6e7472616374732063616e6e6f74206d696e742e00000000000000000000000060648201526084016107b3565b6001600160a01b038316600090815260df60205260409020805483919060ff19166001838181111561227e5761227e612d25565b02179055506001600160a01b038316600090815260e06020908152604080832084905560e190915290208490556122b58385612493565b826001600160a01b03167f5d77c9a8f889ac7333a5d3327f7858f4ca3a073565dd6e6b2053bbe124253870858484604051610b0d9392919061330e565b606580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6123596124ad565b61236282611f75565b61236b81611e02565b5050565b600054610100900460ff166123da5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016107b3565b61236b8282612520565b606060dd805461069f90612f68565b60606000612400836125a4565b600101905060008167ffffffffffffffff81111561242057612420612d6b565b6040519080825280601f01601f19166020018201604052801561244a576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461245457509392505050565b61236b828260405180602001604052806000815250612686565b600054610100900460ff166125185760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016107b3565b6108b261270f565b600054610100900460ff1661258b5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016107b3565b60ab612597838261308c565b5060ac610d0c828261308c565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106125ed577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310612619576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061263757662386f26fc10000830492506010015b6305f5e100831061264f576305f5e100830492506008015b612710831061266357612710830492506004015b60648310612675576064830492506002015b600a831061068a5760010192915050565b6126908383612783565b61269d6000848484612929565b610d0c5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016107b3565b600054610100900460ff1661277a5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016107b3565b6108b2336122f2565b6001600160a01b0382166127d95760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107b3565b600081815260ad60205260409020546001600160a01b03161561283e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107b3565b61284c600083836001612ab3565b600081815260ad60205260409020546001600160a01b0316156128b15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107b3565b6001600160a01b038216600081815260ae602090815260408083208054600101905584835260ad909152808220805473ffffffffffffffffffffffffffffffffffffffff19168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15612aa7576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612986903390899088908890600401613330565b6020604051808303816000875af19250505080156129c1575060408051601f3d908101601f191682019092526129be9181019061336c565b60015b612a74573d8080156129ef576040519150601f19603f3d011682016040523d82523d6000602084013e6129f4565b606091505b508051600003612a6c5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016107b3565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050612aab565b5060015b949350505050565b6001811115612b36576001600160a01b03841615612af9576001600160a01b038416600090815260ae602052604081208054839290612af3908490612ff5565b90915550505b6001600160a01b03831615612b36576001600160a01b038316600090815260ae602052604081208054839290612b30908490613389565b90915550505b50505050565b6001600160e01b0319811681146110e657600080fd5b600060208284031215612b6457600080fd5b81356113a581612b3c565b60005b83811015612b8a578181015183820152602001612b72565b50506000910152565b60008151808452612bab816020860160208601612b6f565b601f01601f19169290920160200192915050565b6020815260006113a56020830184612b93565b600060208284031215612be457600080fd5b5035919050565b80356001600160a01b0381168114612c0257600080fd5b919050565b60008060408385031215612c1a57600080fd5b612c2383612beb565b946020939093013593505050565b600080600060608486031215612c4657600080fd5b612c4f84612beb565b9250612c5d60208501612beb565b9150604084013590509250925092565b61ffff811681146110e657600080fd5b60008060408385031215612c9057600080fd5b8235612c2381612c6d565b803560ff81168114612c0257600080fd5b600080600080600060a08688031215612cc457600080fd5b612ccd86612beb565b9450612cdb60208701612beb565b935060408601359250612cf060608701612beb565b9150612cfe60808701612c9b565b90509295509295909350565b600060208284031215612d1c57600080fd5b6113a582612beb565b634e487b7160e01b600052602160045260246000fd5b60028110612d5957634e487b7160e01b600052602160045260246000fd5b9052565b6020810161068a8284612d3b565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612d9c57612d9c612d6b565b604051601f8501601f19908116603f01168101908282118183101715612dc457612dc4612d6b565b81604052809350858152868686011115612ddd57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612e0957600080fd5b813567ffffffffffffffff811115612e2057600080fd5b8201601f81018413612e3157600080fd5b612aab84823560208401612d81565b60008060408385031215612e5357600080fd5b612e5c83612beb565b915060208301358015158114612e7157600080fd5b809150509250929050565b600060208284031215612e8e57600080fd5b6113a582612c9b565b60008060008060808587031215612ead57600080fd5b612eb685612beb565b9350612ec460208601612beb565b925060408501359150606085013567ffffffffffffffff811115612ee757600080fd5b8501601f81018713612ef857600080fd5b612f0787823560208401612d81565b91505092959194509250565b60008060408385031215612f2657600080fd5b823560028110612c2357600080fd5b60008060408385031215612f4857600080fd5b612f5183612beb565b9150612f5f60208401612beb565b90509250929050565b600181811c90821680612f7c57607f821691505b602082108103612f9c57634e487b7160e01b600052602260045260246000fd5b50919050565b8581526001600160a01b038516602082015260a08101612fc56040830186612d3b565b83606083015261ffff831660808301529695505050505050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561068a5761068a612fdf565b60a081016130168288612d3b565b85602083015261ffff8516604083015267ffffffffffffffff841660608301528260808301529695505050505050565b601f821115610d0c57600081815260208120601f850160051c8101602086101561306d5750805b601f850160051c820191505b81811015610ce957828155600101613079565b815167ffffffffffffffff8111156130a6576130a6612d6b565b6130ba816130b48454612f68565b84613046565b602080601f8311600181146130ef57600084156130d75750858301515b600019600386901b1c1916600185901b178555610ce9565b600085815260208120601f198616915b8281101561311e578886015182559484019460019091019084016130ff565b508582101561313c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208083526000845461316081612f68565b80848701526040600180841660008114613181576001811461319b576131c9565b60ff198516838a01528284151560051b8a010195506131c9565b896000528660002060005b858110156131c15781548b82018601529083019088016131a6565b8a0184019650505b509398975050505050505050565b600082516131e9818460208701612b6f565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000920191825250600501919050565b604081016132268285612d3b565b8260208301529392505050565b60006020828403121561324557600080fd5b5051919050565b6000600019820361325f5761325f612fdf565b5060010190565b63ffffffff841681526060602082015260006132856060830185612b93565b905060ff83166040830152949350505050565b6000602082840312156132aa57600080fd5b815167ffffffffffffffff811681146113a557600080fd5b600083516132d4818460208801612b6f565b8351908301906132e8818360208801612b6f565b01949350505050565b60006020828403121561330357600080fd5b81516113a581612c6d565b838152606081016133226020830185612d3b565b826040830152949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526133626080830184612b93565b9695505050505050565b60006020828403121561337e57600080fd5b81516113a581612b3c565b8082018082111561068a5761068a612fdf56fea264697066735822122079d7c9af180a1152f14dc280c3e301dc9aaffd61f281d4bdecb9d98d0df9561364736f6c63430008130033
Deployed Bytecode Sourcemap
90382:3943:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;86592:321;;;;;;;;;;-1:-1:-1;86592:321:0;;;;;:::i;:::-;;:::i;:::-;;;611:14:1;;604:22;586:41;;574:2;559:18;86592:321:0;;;;;;;;51675:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;53198:171::-;;;;;;;;;;-1:-1:-1;53198:171:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1802:55:1;;;1784:74;;1772:2;1757:18;53198:171:0;1638:226:1;87538:205:0;;;;;;;;;;-1:-1:-1;87538:205:0;;;;;:::i;:::-;;:::i;:::-;;86961:233;;;;;;;;;;-1:-1:-1;86961:233:0;;;;;:::i;:::-;;:::i;81212:281::-;;;;;;;;;;;;;:::i;93156:1166::-;;;;;;:::i;:::-;;:::i;90738:631::-;;;;;;;;;;-1:-1:-1;90738:631:0;;;;;:::i;:::-;;:::i;54304:185::-;;;;;;;;;;-1:-1:-1;54304:185:0;;;;;:::i;:::-;;:::i;85453:47::-;;;;;;;;;;-1:-1:-1;85453:47:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;4079:25:1;;;4067:2;4052:18;85453:47:0;3933:177:1;85356:49:0;;;;;;;;;;-1:-1:-1;85356:49:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;:::i;51385:223::-;;;;;;;;;;-1:-1:-1;51385:223:0;;;;;:::i;:::-;;:::i;88437:256::-;;;;;;;;;;-1:-1:-1;88437:256:0;;;;;:::i;:::-;;:::i;51116:207::-;;;;;;;;;;-1:-1:-1;51116:207:0;;;;;:::i;:::-;;:::i;89075:175::-;;;;;;;;;;;;;:::i;29842:87::-;;;;;;;;;;-1:-1:-1;29915:6:0;;-1:-1:-1;;;;;29915:6:0;29842:87;;51844:104;;;;;;;;;;;;;:::i;87751:246::-;;;;;;;;;;-1:-1:-1;87751:246:0;;;;;:::i;:::-;;:::i;91412:361::-;;;;;;;;;;-1:-1:-1;91412:361:0;;;;;:::i;:::-;;:::i;80324:192::-;;;;;;;;;;-1:-1:-1;80324:192:0;;;;;:::i;:::-;;:::i;80570:588::-;;;;;;;;;;-1:-1:-1;80570:588:0;;;;;:::i;:::-;;:::i;87242:288::-;;;;;;;;;;-1:-1:-1;87242:288:0;;;;;:::i;:::-;;:::i;88904:123::-;;;;;;;;;;;;;:::i;88053:337::-;;;;;;;;;;-1:-1:-1;88053:337:0;;;;;:::i;:::-;;:::i;80156:114::-;;;;;;;;;;-1:-1:-1;80156:114:0;;;;;:::i;:::-;;:::i;92022:430::-;;;;;;;;;;-1:-1:-1;92022:430:0;;;;;:::i;:::-;;:::i;88740:117::-;;;;;;;;;;-1:-1:-1;88740:117:0;;;;;:::i;:::-;;:::i;53667:164::-;;;;;;;;;;-1:-1:-1;53667:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;53788:25:0;;;53764:4;53788:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;53667:164;92495:618;;;;;;;;;;-1:-1:-1;92495:618:0;;;;;:::i;:::-;;:::i;30748:201::-;;;;;;;;;;-1:-1:-1;30748:201:0;;;;;:::i;:::-;;:::i;91816:198::-;;;;;;;;;;-1:-1:-1;91816:198:0;;;;;:::i;:::-;;:::i;85548:43::-;;;;;;;;;;-1:-1:-1;85548:43:0;;;;;:::i;:::-;;;;;;;;;;;;;;86592:321;86777:4;-1:-1:-1;;;;;;86819:33:0;;86834:18;86819:33;;:86;;;86869:36;86893:11;86869:23;:36::i;:::-;86799:106;86592:321;-1:-1:-1;;86592:321:0:o;51675:100::-;51729:13;51762:5;51755:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51675:100;:::o;53198:171::-;53274:7;53294:23;53309:7;53294:14;:23::i;:::-;-1:-1:-1;53337:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;53337:24:0;;53198:171::o;87538:205::-;87669:66;;-1:-1:-1;;;87669:66:0;;8954:2:1;87669:66:0;;;8936:21:1;8993:2;8973:18;;;8966:30;9032:34;9012:18;;;9005:62;9103:26;9083:18;;;9076:54;9147:19;;87669:66:0;;;;;;;;86961:233;87115:71;;-1:-1:-1;;;87115:71:0;;9379:2:1;87115:71:0;;;9361:21:1;9418:2;9398:18;;;9391:30;9457:34;9437:18;;;9430:62;9528:31;9508:18;;;9501:59;9577:19;;87115:71:0;9177:425:1;81212:281:0;29728:13;:11;:13::i;:::-;81328:1:::1;81304:21;:25;81282:138;;;::::0;-1:-1:-1;;;81282:138:0;;9809:2:1;81282:138:0::1;::::0;::::1;9791:21:1::0;9848:2;9828:18;;;9821:30;9887:34;9867:18;;;9860:62;9958:33;9938:18;;;9931:61;10009:19;;81282:138:0::1;9607:427:1::0;81282:138:0::1;81433:52;81441:10;81463:21;81433:29;:52::i;:::-;81212:281::o:0;93156:1166::-;93321:23;28650:10;51116:207;:::i;93321:23::-;93348:1;93321:28;93299:127;;;;-1:-1:-1;;;93299:127:0;;10241:2:1;93299:127:0;;;10223:21:1;10280:2;10260:18;;;10253:30;10319:34;10299:18;;;10292:62;10390:19;10370:18;;;10363:47;10427:19;;93299:127:0;10039:413:1;93299:127:0;93483:16;;;;;;93461:38;;;;93439:164;;;;-1:-1:-1;;;93439:164:0;;10659:2:1;93439:164:0;;;10641:21:1;10698:2;10678:18;;;10671:30;10737:34;10717:18;;;10710:62;10808:34;10788:18;;;10781:62;10880:14;10859:19;;;10852:43;10912:19;;93439:164:0;10457:480:1;93439:164:0;93651:18;93638:9;:31;;93616:142;;;;-1:-1:-1;;;93616:142:0;;11144:2:1;93616:142:0;;;11126:21:1;11183:2;11163:18;;;11156:30;11222:34;11202:18;;;11195:62;11293:31;11273:18;;;11266:59;11342:19;;93616:142:0;10942:425:1;93616:142:0;28650:10;93771:20;93819:22;;;:8;:22;;;;;;;;;93883:8;:22;;;;;;93920:12;:26;;;;;;93794:196;;93771:20;;93794:196;;93819:22;;28650:10;;93883:22;;;;;93961:18;;93794:196;;:::i;:::-;;;;;;;;;;;;;93771:219;;94003:15;94021:45;94035:1;94038:7;94047:18;94021:13;:45::i;:::-;28650:10;94139:22;;;;:8;:22;;;;;;;;;94176:12;:26;;;;;;;94003:63;;-1:-1:-1;28650:10:0;;94084:230;;94139:22;;;94217:18;94003:63;94273:30;94285:18;94273:9;:30;:::i;:::-;94084:230;;;;;;;;;;:::i;:::-;;;;;;;;93288:1034;;93156:1166;;:::o;90738:631::-;24914:19;24937:13;;;;;;24936:14;;24984:34;;;;-1:-1:-1;25002:12:0;;25017:1;25002:12;;;;:16;24984:34;24983:108;;;-1:-1:-1;25063:4:0;32923:19;:23;;;25024:66;;-1:-1:-1;25073:12:0;;;;;:17;25024:66;24961:204;;;;-1:-1:-1;;;24961:204:0;;13005:2:1;24961:204:0;;;12987:21:1;13044:2;13024:18;;;13017:30;13083:34;13063:18;;;13056:62;13154:16;13134:18;;;13127:44;13188:19;;24961:204:0;12803:410:1;24961:204:0;25176:12;:16;;-1:-1:-1;;25176:16:0;25191:1;25176:16;;;25203:67;;;;25238:13;:20;;-1:-1:-1;;25238:20:0;;;;;25203:67;90973:128:::1;91011:17;91043:8;91066:24;90973:23;:128::i;:::-;-1:-1:-1::0;;;;;91136:26:0;::::1;91114:133;;;::::0;-1:-1:-1;;;91114:133:0;;13420:2:1;91114:133:0::1;::::0;::::1;13402:21:1::0;13459:2;13439:18;;;13432:30;13498:34;13478:18;;;13471:62;13569:27;13549:18;;;13542:55;13614:19;;91114:133:0::1;13218:421:1::0;91114:133:0::1;91260:13;:28:::0;;-1:-1:-1;;91260:28:0::1;-1:-1:-1::0;;;;;91260:28:0;::::1;;::::0;;91299:14:::1;:30:::0;;;-1:-1:-1;91340:17:0::1;:21:::0;25292:102;;;;25343:5;25327:21;;-1:-1:-1;;25327:21:0;;;25368:14;;-1:-1:-1;13796:36:1;;25368:14:0;;13784:2:1;13769:18;25368:14:0;;;;;;;25292:102;24903:498;90738:631;;;;;:::o;54304:185::-;54442:39;54459:4;54465:2;54469:7;54442:39;;;;;;;;;;;;:16;:39::i;:::-;54304:185;;;:::o;51385:223::-;51457:7;56283:16;;;:7;:16;;;;;;-1:-1:-1;;;;;56283:16:0;;51521:56;;;;-1:-1:-1;;;51521:56:0;;14045:2:1;51521:56:0;;;14027:21:1;14084:2;14064:18;;;14057:30;14123:26;14103:18;;;14096:54;14167:18;;51521:56:0;13843:348:1;88437:256:0;29728:13;:11;:13::i;:::-;88547:14:::1;:30;88564:13:::0;88547:14;:30:::1;:::i;:::-;;88595:31;88611:14;88595:31;;;;;;:::i;:::-;;;;;;;;88644:41;::::0;;88664:1:::1;17787:25:1::0;;-1:-1:-1;;17843:2:1;17828:18;;17821:34;88644:41:0::1;::::0;17760:18:1;88644:41:0::1;;;;;;;;88437:256:::0;:::o;51116:207::-;51188:7;-1:-1:-1;;;;;51216:19:0;;51208:73;;;;-1:-1:-1;;;51208:73:0;;18068:2:1;51208:73:0;;;18050:21:1;18107:2;18087:18;;;18080:30;18146:34;18126:18;;;18119:62;18217:11;18197:18;;;18190:39;18246:19;;51208:73:0;17866:405:1;51208:73:0;-1:-1:-1;;;;;;51299:16:0;;;;;:9;:16;;;;;;;51116:207::o;89075:175::-;29728:13;:11;:13::i;:::-;89146:96:::1;::::0;-1:-1:-1;;;89146:96:0;;18478:2:1;89146:96:0::1;::::0;::::1;18460:21:1::0;18517:2;18497:18;;;18490:30;18556:34;18536:18;;;18529:62;18627:32;18607:18;;;18600:60;18677:19;;89146:96:0::1;18276:426:1::0;51844:104:0;51900:13;51933:7;51926:14;;;;;:::i;87751:246::-;87889:100;;-1:-1:-1;;;87889:100:0;;18909:2:1;87889:100:0;;;18891:21:1;18948:2;18928:18;;;18921:30;18987:34;18967:18;;;18960:62;19058:34;19038:18;;;19031:62;19130:4;19109:19;;;19102:33;19152:19;;87889:100:0;18707:470:1;91412:361:0;29728:13;:11;:13::i;:::-;-1:-1:-1;;;;;91539:26:0;::::1;91517:142;;;::::0;-1:-1:-1;;;91517:142:0;;19384:2:1;91517:142:0::1;::::0;::::1;19366:21:1::0;19423:2;19403:18;;;19396:30;19462:34;19442:18;;;19435:62;19533:34;19513:18;;;19506:62;19605:4;19584:19;;;19577:33;19627:19;;91517:142:0::1;19182:470:1::0;91517:142:0::1;91710:13;::::0;91677:47:::1;::::0;;-1:-1:-1;;;;;19910:15:1;;;19892:34;;91710:13:0;;::::1;19957:2:1::0;19942:18;;19935:43;91677:47:0::1;::::0;19804:18:1;91677:47:0::1;;;;;;;91737:13;:28:::0;;-1:-1:-1;;91737:28:0::1;-1:-1:-1::0;;;;;91737:28:0;;;::::1;::::0;;;::::1;::::0;;91412:361::o;80324:192::-;29728:13;:11;:13::i;:::-;80451:57:::1;80483:24;80451:31;:57::i;:::-;80324:192:::0;:::o;80570:588::-;29728:13;:11;:13::i;:::-;80736:15:::1;:20;;80755:1;80736:20:::0;80714:144:::1;;;::::0;-1:-1:-1;;;80714:144:0;;20191:2:1;80714:144:0::1;::::0;::::1;20173:21:1::0;20230:2;20210:18;;;20203:30;20269:34;20249:18;;;20242:62;20340:34;20320:18;;;20313:62;20412:12;20391:19;;;20384:41;20442:19;;80714:144:0::1;19989:478:1::0;80714:144:0::1;80891:16:::0;80869:145:::1;;;::::0;-1:-1:-1;;;80869:145:0;;20674:2:1;80869:145:0::1;::::0;::::1;20656:21:1::0;20713:2;20693:18;;;20686:30;20752:34;20732:18;;;20725:62;20823:34;20803:18;;;20796:62;20895:3;20874:19;;;20867:32;20916:19;;80869:145:0::1;20472:469:1::0;80869:145:0::1;81025:33;::::0;::::1;;::::0;;;:16:::1;:33;::::0;;;;;;;;:52;;;81095:55;;21118:38:1;;;21172:18;;21165:34;;;81095:55:0::1;::::0;21091:18:1;81095:55:0::1;;;;;;;;80570:588:::0;;:::o;87242:288::-;87423:99;;-1:-1:-1;;;87423:99:0;;21412:2:1;87423:99:0;;;21394:21:1;21451:2;21431:18;;;21424:30;21490:34;21470:18;;;21463:62;21561:34;21541:18;;;21534:62;21633:3;21612:19;;;21605:32;21654:19;;87423:99:0;21210:469:1;88904:123:0;29728:13;:11;:13::i;:::-;88978:41:::1;::::0;;88998:1:::1;17787:25:1::0;;-1:-1:-1;;17843:2:1;17828:18;;17821:34;88978:41:0::1;::::0;17760:18:1;88978:41:0::1;;;;;;;88904:123::o:0;88053:337::-;88134:13;88160:28;88191:35;88218:7;88191:26;:35::i;:::-;88160:66;;88290:1;88265:14;88259:28;:32;:123;;;;;;;;;;;;;;;;;88335:14;88318:41;;;;;;;;:::i;:::-;;;;;;;;;;;;;88259:123;88239:143;88053:337;-1:-1:-1;;;88053:337:0:o;80156:114::-;29728:13;:11;:13::i;:::-;80237:25:::1;80253:8;80237:15;:25::i;92022:430::-:0;29728:13;:11;:13::i;:::-;92212:14:::1;92185:15;:24;92201:7;92185:24;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;:41;92163:164;;;::::0;-1:-1:-1;;;92163:164:0;;22347:2:1;92163:164:0::1;::::0;::::1;22329:21:1::0;22386:2;22366:18;;;22359:30;22425:34;22405:18;;;22398:62;22496:34;22476:18;;;22469:62;22568:11;22547:19;;;22540:40;22597:19;;92163:164:0::1;22145:477:1::0;92163:164:0::1;92367:14;92340:15;:24;92356:7;92340:24;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;:41;;;;92399:45;92420:7;92429:14;92399:45;;;;;;;:::i;88740:117::-:0;29728:13;:11;:13::i;:::-;88826:23:::1;::::0;4079:25:1;;;88826:23:0::1;::::0;4067:2:1;4052:18;88826:23:0::1;3933:177:1::0;92495:618:0;92649:13;;92607:25;;-1:-1:-1;;;;;92649:13:0;92635:42;28650:10;92635:80;;-1:-1:-1;;;;;;92635:80:0;;;;;;;-1:-1:-1;;;;;1802:55:1;;;92635:80:0;;;1784:74:1;1757:18;;92635:80:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;92607:108;;92769:14;;92748:17;:35;;92726:123;;;;-1:-1:-1;;;92726:123:0;;23310:2:1;92726:123:0;;;23292:21:1;23349:2;23329:18;;;23322:30;23388:34;23368:18;;;23361:62;23459:8;23439:18;;;23432:36;23485:19;;92726:123:0;23108:402:1;92726:123:0;92896:15;:24;92912:7;92896:24;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;92882:11;:38;92860:134;;;;-1:-1:-1;;;92860:134:0;;23717:2:1;92860:134:0;;;23699:21:1;23756:2;23736:18;;;23729:30;23795:34;23775:18;;;23768:62;23866:16;23846:18;;;23839:44;23900:19;;92860:134:0;23515:410:1;92860:134:0;93007:17;:19;;;:17;:19;;;:::i;:::-;;;;;;93039:66;93051:17;;93070:12;28650:10;;28570:98;93070:12;93084:7;93093:11;93039;:66::i;30748:201::-;29728:13;:11;:13::i;:::-;-1:-1:-1;;;;;30837:22:0;::::1;30829:73;;;::::0;-1:-1:-1;;;30829:73:0;;24332:2:1;30829:73:0::1;::::0;::::1;24314:21:1::0;24371:2;24351:18;;;24344:30;24410:34;24390:18;;;24383:62;24481:8;24461:18;;;24454:36;24507:19;;30829:73:0::1;24130:402:1::0;30829:73:0::1;30913:28;30932:8;30913:18;:28::i;91816:198::-:0;29728:13;:11;:13::i;:::-;91923:14:::1;:30:::0;;;91971:35:::1;::::0;4079:25:1;;;91971:35:0::1;::::0;4067:2:1;4052:18;91971:35:0::1;3933:177:1::0;50703:349:0;50827:4;-1:-1:-1;;;;;;50864:51:0;;50879:36;50864:51;;:127;;-1:-1:-1;;;;;;;50932:59:0;;50947:44;50932:59;50864:127;:180;;;-1:-1:-1;49077:36:0;-1:-1:-1;;;;;;49062:51:0;;;51008:36;48953:168;63083:135;56685:4;56283:16;;;:7;:16;;;;;;-1:-1:-1;;;;;56283:16:0;63157:53;;;;-1:-1:-1;;;63157:53:0;;14045:2:1;63157:53:0;;;14027:21:1;14084:2;14064:18;;;14057:30;14123:26;14103:18;;;14096:54;14167:18;;63157:53:0;13843:348:1;30007:132:0;29915:6;;-1:-1:-1;;;;;29915:6:0;28650:10;30071:23;30063:68;;;;-1:-1:-1;;;30063:68:0;;24739:2:1;30063:68:0;;;24721:21:1;;;24758:18;;;24751:30;24817:34;24797:18;;;24790:62;24869:18;;30063:68:0;24537:356:1;33889:317:0;34004:6;33979:21;:31;;33971:73;;;;-1:-1:-1;;;33971:73:0;;25100:2:1;33971:73:0;;;25082:21:1;25139:2;25119:18;;;25112:30;25178:31;25158:18;;;25151:59;25227:18;;33971:73:0;24898:353:1;33971:73:0;34058:12;34076:9;-1:-1:-1;;;;;34076:14:0;34098:6;34076:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34057:52;;;34128:7;34120:78;;;;-1:-1:-1;;;34120:78:0;;25668:2:1;34120:78:0;;;25650:21:1;25707:2;25687:18;;;25680:30;25746:34;25726:18;;;25719:62;25817:28;25797:18;;;25790:56;25863:19;;34120:78:0;25466:422:1;81637:684:0;81834:9;;81784:15;;-1:-1:-1;;;;;81834:9:0;81812:136;;;;-1:-1:-1;;;81812:136:0;;26095:2:1;81812:136:0;;;26077:21:1;26134:2;26114:18;;;26107:30;26173:34;26153:18;;;26146:62;26244:33;26224:18;;;26217:61;26295:19;;81812:136:0;25893:427:1;81812:136:0;81981:25;;-1:-1:-1;;;81981:25:0;;;;81959:161;;;;-1:-1:-1;;;81959:161:0;;26527:2:1;81959:161:0;;;26509:21:1;26566:2;26546:18;;;26539:30;26605:34;26585:18;;;26578:62;26676:34;26656:18;;;26649:62;26748:20;26727:19;;;26720:49;26786:19;;81959:161:0;26325:486:1;81959:161:0;82154:9;;82144:129;;;;;-1:-1:-1;;;;;82154:9:0;;;82144:35;;82201:18;;82144:129;;82231:5;;82238:7;;-1:-1:-1;;;82247:25:0;;;;;;82144:129;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;82291:22;;27670:18:1;27658:31;;27640:50;;82133:140:0;;-1:-1:-1;82291:22:0;;27628:2:1;27613:18;82291:22:0;;;;;;;81637:684;;;;;:::o;86027:517::-;27057:13;;;;;;;27049:69;;;;-1:-1:-1;;;27049:69:0;;27903:2:1;27049:69:0;;;27885:21:1;27942:2;27922:18;;;27915:30;27981:34;27961:18;;;27954:62;-1:-1:-1;;;28032:18:1;;;28025:41;28083:19;;27049:69:0;27701:407:1;27049:69:0;86208:66:::1;86239:8;86249:24;86208:30;:66::i;:::-;86287:38;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;::::0;:13:::1;:38::i;:::-;-1:-1:-1::0;;;;;86360:31:0;::::1;86338:147;;;::::0;-1:-1:-1;;;86338:147:0;;28315:2:1;86338:147:0::1;::::0;::::1;28297:21:1::0;28354:2;28334:18;;;28327:30;28393:34;28373:18;;;28366:62;28464:34;28444:18;;;28437:62;28536:4;28515:19;;;28508:33;28558:19;;86338:147:0::1;28113:470:1::0;86338:147:0::1;-1:-1:-1::0;;86498:18:0::1;:38:::0;;-1:-1:-1;;86498:38:0::1;-1:-1:-1::0;;;;;86498:38:0;;;::::1;::::0;;;::::1;::::0;;86027:517::o;84572:491::-;84730:1;84703:24;:28;;;84681:171;;;;-1:-1:-1;;;84681:171:0;;28790:2:1;84681:171:0;;;28772:21:1;28829:2;28809:18;;;28802:30;28868:34;28848:18;;;28841:62;28939:34;28919:18;;;28912:62;29011:31;28990:19;;;28983:60;29060:19;;84681:171:0;28588:497:1;84681:171:0;84954:25;;84870:120;;;84954:25;29274:17:1;;;29256:36;;-1:-1:-1;;;84954:25:0;;;;;;29323:2:1;29308:18;;29301:45;84870:120:0;;29229:18:1;84870:120:0;;;;;;;85003:25;:52;;;;;;-1:-1:-1;;;85003:52:0;;;;;;;;;;;84572:491::o;52019:281::-;52092:13;52118:23;52133:7;52118:14;:23::i;:::-;52154:21;52178:10;:8;:10::i;:::-;52154:34;;52230:1;52212:7;52206:21;:25;:86;;;;;;;;;;;;;;;;;52258:7;52267:18;:7;:16;:18::i;:::-;52241:45;;;;;;;;;:::i;83960:479::-;-1:-1:-1;;;;;84045:22:0;;84023:133;;;;-1:-1:-1;;;84023:133:0;;30060:2:1;84023:133:0;;;30042:21:1;30099:2;30079:18;;;30072:30;30138:34;30118:18;;;30111:62;30209:31;30189:18;;;30182:59;30258:19;;84023:133:0;29858:425:1;84023:133:0;84199:9;;84174:35;;;-1:-1:-1;;;;;19910:15:1;;;19892:34;;84199:9:0;;;19957:2:1;19942:18;;19935:43;84174:35:0;;19804:18:1;84174:35:0;;;;;;;84222:9;:20;;-1:-1:-1;;84222:20:0;-1:-1:-1;;;;;84222:20:0;;;;;;;;84280:30;;;;;;;;-1:-1:-1;;84222:20:0;84280:28;;:30;;;;;;;;;;;;;;84222:20;84280:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;84367:16;;84328:56;;;84367:16;30755:15:1;;;30737:34;;84367:16:0;;;30802:2:1;30787:18;;30780:43;84255:55:0;;-1:-1:-1;84328:56:0;;30685:18:1;84328:56:0;;;;;;;84397:16;:34;;;;;;;;;;;;;;;-1:-1:-1;83960:479:0:o;89493:692::-;89680:21;89690:10;89680:9;:21::i;:::-;:26;89658:139;;;;-1:-1:-1;;;89658:139:0;;31036:2:1;89658:139:0;;;31018:21:1;31075:2;31055:18;;;31048:30;31114:34;31094:18;;;31087:62;31185:33;31165:18;;;31158:61;31236:19;;89658:139:0;30834:427:1;89658:139:0;28650:10;32923:19;:23;89808:128;;;;-1:-1:-1;;;89808:128:0;;31468:2:1;89808:128:0;;;31450:21:1;31507:2;31487:18;;;31480:30;31546:34;31526:18;;;31519:62;31617:22;31597:18;;;31590:50;31657:19;;89808:128:0;31266:416:1;89808:128:0;-1:-1:-1;;;;;89949:20:0;;;;;;:8;:20;;;;;:30;;89972:7;;89949:20;-1:-1:-1;;89949:30:0;;89972:7;89949:30;;;;;;;;:::i;:::-;;;;;-1:-1:-1;;;;;;89990:24:0;;;;;;:12;:24;;;;;;;;:38;;;90039:8;:20;;;;;:30;;;90082;90003:10;90062:7;90082:9;:30::i;:::-;90135:10;-1:-1:-1;;;;;90130:47:0;;90147:7;90156;90165:11;90130:47;;;;;;;;:::i;31109:191::-;31202:6;;;-1:-1:-1;;;;;31219:17:0;;;-1:-1:-1;;31219:17:0;;;;;;;31252:40;;31202:6;;;31219:17;31202:6;;31252:40;;31183:16;;31252:40;31172:128;31109:191;:::o;79837:265::-;79972:16;:14;:16::i;:::-;80001:25;80017:8;80001:15;:25::i;:::-;80037:57;80069:24;80037:31;:57::i;:::-;79837:265;;:::o;50309:151::-;27057:13;;;;;;;27049:69;;;;-1:-1:-1;;;27049:69:0;;27903:2:1;27049:69:0;;;27885:21:1;27942:2;27922:18;;;27915:30;27981:34;27961:18;;;27954:62;-1:-1:-1;;;28032:18:1;;;28025:41;28083:19;;27049:69:0;27701:407:1;27049:69:0;50413:39:::1;50437:5;50444:7;50413:23;:39::i;90270:107::-:0;90322:13;90355:14;90348:21;;;;;:::i;46751:727::-;46807:13;46858:14;46875:28;46897:5;46875:21;:28::i;:::-;46906:1;46875:32;46858:49;;46922:20;46956:6;46945:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46945:18:0;-1:-1:-1;46922:41:0;-1:-1:-1;47087:28:0;;;47103:2;47087:28;47144:288;-1:-1:-1;;47176:5:0;47318:8;47313:2;47302:14;;47297:30;47176:5;47284:44;47374:2;47365:11;;;-1:-1:-1;47395:21:0;47144:288;47395:21;-1:-1:-1;47453:6:0;46751:727;-1:-1:-1;;;46751:727:0:o;57532:110::-;57608:26;57618:2;57622:7;57608:26;;;;;;;;;;;;:9;:26::i;29385:97::-;27057:13;;;;;;;27049:69;;;;-1:-1:-1;;;27049:69:0;;27903:2:1;27049:69:0;;;27885:21:1;27942:2;27922:18;;;27915:30;27981:34;27961:18;;;27954:62;-1:-1:-1;;;28032:18:1;;;28025:41;28083:19;;27049:69:0;27701:407:1;27049:69:0;29448:26:::1;:24;:26::i;50468:163::-:0;27057:13;;;;;;;27049:69;;;;-1:-1:-1;;;27049:69:0;;27903:2:1;27049:69:0;;;27885:21:1;27942:2;27922:18;;;27915:30;27981:34;27961:18;;;27954:62;-1:-1:-1;;;28032:18:1;;;28025:41;28083:19;;27049:69:0;27701:407:1;27049:69:0;50582:5:::1;:13;50590:5:::0;50582;:13:::1;:::i;:::-;-1:-1:-1::0;50606:7:0::1;:17;50616:7:::0;50606;:17:::1;:::i;21296:922::-:0;21349:7;;21436:6;21427:15;;21423:102;;21472:6;21463:15;;;-1:-1:-1;21507:2:0;21497:12;21423:102;21552:6;21543:5;:15;21539:102;;21588:6;21579:15;;;-1:-1:-1;21623:2:0;21613:12;21539:102;21668:6;21659:5;:15;21655:102;;21704:6;21695:15;;;-1:-1:-1;21739:2:0;21729:12;21655:102;21784:5;21775;:14;21771:99;;21819:5;21810:14;;;-1:-1:-1;21853:1:0;21843:11;21771:99;21897:5;21888;:14;21884:99;;21932:5;21923:14;;;-1:-1:-1;21966:1:0;21956:11;21884:99;22010:5;22001;:14;21997:99;;22045:5;22036:14;;;-1:-1:-1;22079:1:0;22069:11;21997:99;22123:5;22114;:14;22110:66;;22159:1;22149:11;22204:6;21296:922;-1:-1:-1;;21296:922:0:o;57869:319::-;57998:18;58004:2;58008:7;57998:5;:18::i;:::-;58049:53;58080:1;58084:2;58088:7;58097:4;58049:22;:53::i;:::-;58027:153;;;;-1:-1:-1;;;58027:153:0;;32441:2:1;58027:153:0;;;32423:21:1;32480:2;32460:18;;;32453:30;32519:34;32499:18;;;32492:62;32590:20;32570:18;;;32563:48;32628:19;;58027:153:0;32239:414:1;29490:113:0;27057:13;;;;;;;27049:69;;;;-1:-1:-1;;;27049:69:0;;27903:2:1;27049:69:0;;;27885:21:1;27942:2;27922:18;;;27915:30;27981:34;27961:18;;;27954:62;-1:-1:-1;;;28032:18:1;;;28025:41;28083:19;;27049:69:0;27701:407:1;27049:69:0;29563:32:::1;28650:10:::0;29563:18:::1;:32::i;58524:942::-:0;-1:-1:-1;;;;;58604:16:0;;58596:61;;;;-1:-1:-1;;;58596:61:0;;32860:2:1;58596:61:0;;;32842:21:1;;;32879:18;;;32872:30;32938:34;32918:18;;;32911:62;32990:18;;58596:61:0;32658:356:1;58596:61:0;56685:4;56283:16;;;:7;:16;;;;;;-1:-1:-1;;;;;56283:16:0;56709:31;58668:58;;;;-1:-1:-1;;;58668:58:0;;33221:2:1;58668:58:0;;;33203:21:1;33260:2;33240:18;;;33233:30;33299;33279:18;;;33272:58;33347:18;;58668:58:0;33019:352:1;58668:58:0;58739:48;58768:1;58772:2;58776:7;58785:1;58739:20;:48::i;:::-;56685:4;56283:16;;;:7;:16;;;;;;-1:-1:-1;;;;;56283:16:0;56709:31;58877:58;;;;-1:-1:-1;;;58877:58:0;;33221:2:1;58877:58:0;;;33203:21:1;33260:2;33240:18;;;33233:30;33299;33279:18;;;33272:58;33347:18;;58877:58:0;33019:352:1;58877:58:0;-1:-1:-1;;;;;59284:13:0;;;;;;:9;:13;;;;;;;;:18;;59301:1;59284:18;;;59326:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;59326:21:0;;;;;59365:33;59334:7;;59284:13;;59365:33;;59284:13;;59365:33;79837:265;;:::o;63782:875::-;63936:4;-1:-1:-1;;;;;63957:13:0;;32923:19;:23;63953:697;;63993:82;;;;;-1:-1:-1;;;;;63993:47:0;;;;;:82;;28650:10;;64055:4;;64061:7;;64070:4;;63993:82;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;63993:82:0;;;;;;;;-1:-1:-1;;63993:82:0;;;;;;;;;;;;:::i;:::-;;;63989:606;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64256:6;:13;64273:1;64256:18;64252:328;;64299:60;;-1:-1:-1;;;64299:60:0;;32441:2:1;64299:60:0;;;32423:21:1;32480:2;32460:18;;;32453:30;32519:34;32499:18;;;32492:62;32590:20;32570:18;;;32563:48;32628:19;;64299:60:0;32239:414:1;64252:328:0;64530:6;64524:13;64515:6;64511:2;64507:15;64500:38;63989:606;-1:-1:-1;;;;;;64126:62:0;64136:52;64126:62;;-1:-1:-1;64119:69:0;;63953:697;-1:-1:-1;64634:4:0;63953:697;63782:875;;;;;;:::o;65389:410::-;65579:1;65567:9;:13;65563:229;;;-1:-1:-1;;;;;65601:18:0;;;65597:87;;-1:-1:-1;;;;;65640:15:0;;;;;;:9;:15;;;;;:28;;65659:9;;65640:15;:28;;65659:9;;65640:28;:::i;:::-;;;;-1:-1:-1;;65597:87:0;-1:-1:-1;;;;;65702:16:0;;;65698:83;;-1:-1:-1;;;;;65739:13:0;;;;;;:9;:13;;;;;:26;;65756:9;;65739:13;:26;;65756:9;;65739:26;:::i;:::-;;;;-1:-1:-1;;65698:83:0;65389:410;;;;:::o;14:177:1:-;-1:-1:-1;;;;;;92:5:1;88:78;81:5;78:89;68:117;;181:1;178;171:12;196:245;254:6;307:2;295:9;286:7;282:23;278:32;275:52;;;323:1;320;313:12;275:52;362:9;349:23;381:30;405:5;381:30;:::i;638:250::-;723:1;733:113;747:6;744:1;741:13;733:113;;;823:11;;;817:18;804:11;;;797:39;769:2;762:10;733:113;;;-1:-1:-1;;880:1:1;862:16;;855:27;638:250::o;893:330::-;935:3;973:5;967:12;1000:6;995:3;988:19;1016:76;1085:6;1078:4;1073:3;1069:14;1062:4;1055:5;1051:16;1016:76;:::i;:::-;1137:2;1125:15;-1:-1:-1;;1121:88:1;1112:98;;;;1212:4;1108:109;;893:330;-1:-1:-1;;893:330:1:o;1228:220::-;1377:2;1366:9;1359:21;1340:4;1397:45;1438:2;1427:9;1423:18;1415:6;1397:45;:::i;1453:180::-;1512:6;1565:2;1553:9;1544:7;1540:23;1536:32;1533:52;;;1581:1;1578;1571:12;1533:52;-1:-1:-1;1604:23:1;;1453:180;-1:-1:-1;1453:180:1:o;1869:196::-;1937:20;;-1:-1:-1;;;;;1986:54:1;;1976:65;;1966:93;;2055:1;2052;2045:12;1966:93;1869:196;;;:::o;2070:254::-;2138:6;2146;2199:2;2187:9;2178:7;2174:23;2170:32;2167:52;;;2215:1;2212;2205:12;2167:52;2238:29;2257:9;2238:29;:::i;:::-;2228:39;2314:2;2299:18;;;;2286:32;;-1:-1:-1;;;2070:254:1:o;2329:328::-;2406:6;2414;2422;2475:2;2463:9;2454:7;2450:23;2446:32;2443:52;;;2491:1;2488;2481:12;2443:52;2514:29;2533:9;2514:29;:::i;:::-;2504:39;;2562:38;2596:2;2585:9;2581:18;2562:38;:::i;:::-;2552:48;;2647:2;2636:9;2632:18;2619:32;2609:42;;2329:328;;;;;:::o;2662:117::-;2747:6;2740:5;2736:18;2729:5;2726:29;2716:57;;2769:1;2766;2759:12;2784:313;2851:6;2859;2912:2;2900:9;2891:7;2887:23;2883:32;2880:52;;;2928:1;2925;2918:12;2880:52;2967:9;2954:23;2986:30;3010:5;2986:30;:::i;3102:156::-;3168:20;;3228:4;3217:16;;3207:27;;3197:55;;3248:1;3245;3238:12;3263:474;3356:6;3364;3372;3380;3388;3441:3;3429:9;3420:7;3416:23;3412:33;3409:53;;;3458:1;3455;3448:12;3409:53;3481:29;3500:9;3481:29;:::i;:::-;3471:39;;3529:38;3563:2;3552:9;3548:18;3529:38;:::i;:::-;3519:48;;3614:2;3603:9;3599:18;3586:32;3576:42;;3637:38;3671:2;3660:9;3656:18;3637:38;:::i;:::-;3627:48;;3694:37;3726:3;3715:9;3711:19;3694:37;:::i;:::-;3684:47;;3263:474;;;;;;;;:::o;3742:186::-;3801:6;3854:2;3842:9;3833:7;3829:23;3825:32;3822:52;;;3870:1;3867;3860:12;3822:52;3893:29;3912:9;3893:29;:::i;4115:184::-;-1:-1:-1;;;4164:1:1;4157:88;4264:4;4261:1;4254:15;4288:4;4285:1;4278:15;4304:298;4389:1;4382:5;4379:12;4369:200;;-1:-1:-1;;;4422:1:1;4415:88;4526:4;4523:1;4516:15;4554:4;4551:1;4544:15;4369:200;4578:18;;4304:298::o;4607:216::-;4757:2;4742:18;;4769:48;4746:9;4799:6;4769:48;:::i;4828:184::-;-1:-1:-1;;;4877:1:1;4870:88;4977:4;4974:1;4967:15;5001:4;4998:1;4991:15;5017:691;5082:5;5112:18;5153:2;5145:6;5142:14;5139:40;;;5159:18;;:::i;:::-;5293:2;5287:9;5359:2;5347:15;;-1:-1:-1;;5343:24:1;;;5369:2;5339:33;5335:42;5323:55;;;5393:18;;;5413:22;;;5390:46;5387:72;;;5439:18;;:::i;:::-;5479:10;5475:2;5468:22;5508:6;5499:15;;5538:6;5530;5523:22;5578:3;5569:6;5564:3;5560:16;5557:25;5554:45;;;5595:1;5592;5585:12;5554:45;5645:6;5640:3;5633:4;5625:6;5621:17;5608:44;5700:1;5693:4;5684:6;5676;5672:19;5668:30;5661:41;;;;5017:691;;;;;:::o;5713:451::-;5782:6;5835:2;5823:9;5814:7;5810:23;5806:32;5803:52;;;5851:1;5848;5841:12;5803:52;5891:9;5878:23;5924:18;5916:6;5913:30;5910:50;;;5956:1;5953;5946:12;5910:50;5979:22;;6032:4;6024:13;;6020:27;-1:-1:-1;6010:55:1;;6061:1;6058;6051:12;6010:55;6084:74;6150:7;6145:2;6132:16;6127:2;6123;6119:11;6084:74;:::i;6169:347::-;6234:6;6242;6295:2;6283:9;6274:7;6270:23;6266:32;6263:52;;;6311:1;6308;6301:12;6263:52;6334:29;6353:9;6334:29;:::i;:::-;6324:39;;6413:2;6402:9;6398:18;6385:32;6460:5;6453:13;6446:21;6439:5;6436:32;6426:60;;6482:1;6479;6472:12;6426:60;6505:5;6495:15;;;6169:347;;;;;:::o;6521:182::-;6578:6;6631:2;6619:9;6610:7;6606:23;6602:32;6599:52;;;6647:1;6644;6637:12;6599:52;6670:27;6687:9;6670:27;:::i;7026:667::-;7121:6;7129;7137;7145;7198:3;7186:9;7177:7;7173:23;7169:33;7166:53;;;7215:1;7212;7205:12;7166:53;7238:29;7257:9;7238:29;:::i;:::-;7228:39;;7286:38;7320:2;7309:9;7305:18;7286:38;:::i;:::-;7276:48;;7371:2;7360:9;7356:18;7343:32;7333:42;;7426:2;7415:9;7411:18;7398:32;7453:18;7445:6;7442:30;7439:50;;;7485:1;7482;7475:12;7439:50;7508:22;;7561:4;7553:13;;7549:27;-1:-1:-1;7539:55:1;;7590:1;7587;7580:12;7539:55;7613:74;7679:7;7674:2;7661:16;7656:2;7652;7648:11;7613:74;:::i;:::-;7603:84;;;7026:667;;;;;;;:::o;7698:342::-;7784:6;7792;7845:2;7833:9;7824:7;7820:23;7816:32;7813:52;;;7861:1;7858;7851:12;7813:52;7900:9;7887:23;7939:1;7932:5;7929:12;7919:40;;7955:1;7952;7945:12;8045:260;8113:6;8121;8174:2;8162:9;8153:7;8149:23;8145:32;8142:52;;;8190:1;8187;8180:12;8142:52;8213:29;8232:9;8213:29;:::i;:::-;8203:39;;8261:38;8295:2;8284:9;8280:18;8261:38;:::i;:::-;8251:48;;8045:260;;;;;:::o;8310:437::-;8389:1;8385:12;;;;8432;;;8453:61;;8507:4;8499:6;8495:17;8485:27;;8453:61;8560:2;8552:6;8549:14;8529:18;8526:38;8523:218;;-1:-1:-1;;;8594:1:1;8587:88;8698:4;8695:1;8688:15;8726:4;8723:1;8716:15;8523:218;;8310:437;;;:::o;11372:562::-;11645:25;;;-1:-1:-1;;;;;11706:55:1;;11701:2;11686:18;;11679:83;11632:3;11617:19;;11771:57;11824:2;11809:18;;11801:6;11771:57;:::i;:::-;11864:6;11859:2;11848:9;11844:18;11837:34;11920:6;11912;11908:19;11902:3;11891:9;11887:19;11880:48;11372:562;;;;;;;;:::o;11939:184::-;-1:-1:-1;;;11988:1:1;11981:88;12088:4;12085:1;12078:15;12112:4;12109:1;12102:15;12128:128;12195:9;;;12216:11;;;12213:37;;;12230:18;;:::i;12261:537::-;12520:3;12505:19;;12533:48;12509:9;12563:6;12533:48;:::i;:::-;12617:6;12612:2;12601:9;12597:18;12590:34;12672:6;12664;12660:19;12655:2;12644:9;12640:18;12633:47;12728:18;12720:6;12716:31;12711:2;12700:9;12696:18;12689:59;12785:6;12779:3;12768:9;12764:19;12757:35;12261:537;;;;;;;;:::o;14322:545::-;14424:2;14419:3;14416:11;14413:448;;;14460:1;14485:5;14481:2;14474:17;14530:4;14526:2;14516:19;14600:2;14588:10;14584:19;14581:1;14577:27;14571:4;14567:38;14636:4;14624:10;14621:20;14618:47;;;-1:-1:-1;14659:4:1;14618:47;14714:2;14709:3;14705:12;14702:1;14698:20;14692:4;14688:31;14678:41;;14769:82;14787:2;14780:5;14777:13;14769:82;;;14832:17;;;14813:1;14802:13;14769:82;;15103:1471;15229:3;15223:10;15256:18;15248:6;15245:30;15242:56;;;15278:18;;:::i;:::-;15307:97;15397:6;15357:38;15389:4;15383:11;15357:38;:::i;:::-;15351:4;15307:97;:::i;:::-;15459:4;;15523:2;15512:14;;15540:1;15535:782;;;;16361:1;16378:6;16375:89;;;-1:-1:-1;16430:19:1;;;16424:26;16375:89;-1:-1:-1;;15000:1:1;14996:11;;;14992:84;14988:89;14978:100;15084:1;15080:11;;;14975:117;16477:81;;15505:1063;;15535:782;14269:1;14262:14;;;14306:4;14293:18;;-1:-1:-1;;15571:79:1;;;15748:236;15762:7;15759:1;15756:14;15748:236;;;15851:19;;;15845:26;15830:42;;15943:27;;;;15911:1;15899:14;;;;15778:19;;15748:236;;;15752:3;16012:6;16003:7;16000:19;15997:261;;;16073:19;;;16067:26;-1:-1:-1;;16156:1:1;16152:14;;;16168:3;16148:24;16144:97;16140:102;16125:118;16110:134;;15997:261;-1:-1:-1;;;;;16304:1:1;16288:14;;;16284:22;16271:36;;-1:-1:-1;15103:1471:1:o;16579:1021::-;16688:4;16717:2;16746;16735:9;16728:21;16769:1;16802:6;16796:13;16832:36;16858:9;16832:36;:::i;:::-;16904:6;16899:2;16888:9;16884:18;16877:34;16930:2;16951:1;16983:2;16972:9;16968:18;17000:1;16995:216;;;;17225:1;17220:354;;;;16961:613;;16995:216;-1:-1:-1;;17047:9:1;17043:82;17038:2;17027:9;17023:18;17016:110;17198:2;17186:6;17179:14;17172:22;17169:1;17165:30;17154:9;17150:46;17146:55;17139:62;;16995:216;;17220:354;17251:6;17248:1;17241:17;17299:2;17296:1;17286:16;17324:1;17338:180;17352:6;17349:1;17346:13;17338:180;;;17445:14;;17421:17;;;17417:26;;17410:50;17488:16;;;;17367:10;;17338:180;;;17542:17;;17538:26;;;-1:-1:-1;;16961:613:1;-1:-1:-1;17591:3:1;;16579:1021;-1:-1:-1;;;;;;;;16579:1021:1:o;21684:456::-;21916:3;21954:6;21948:13;21970:66;22029:6;22024:3;22017:4;22009:6;22005:17;21970:66;:::i;:::-;22097:7;22058:16;;22083:22;;;-1:-1:-1;22132:1:1;22121:13;;21684:456;-1:-1:-1;21684:456:1:o;22627:287::-;22805:2;22790:18;;22817:48;22794:9;22847:6;22817:48;:::i;:::-;22901:6;22896:2;22885:9;22881:18;22874:34;22627:287;;;;;:::o;22919:184::-;22989:6;23042:2;23030:9;23021:7;23017:23;23013:32;23010:52;;;23058:1;23055;23048:12;23010:52;-1:-1:-1;23081:16:1;;22919:184;-1:-1:-1;22919:184:1:o;23930:195::-;23969:3;-1:-1:-1;;23993:5:1;23990:77;23987:103;;24070:18;;:::i;:::-;-1:-1:-1;24117:1:1;24106:13;;23930:195::o;26816:382::-;27025:10;27017:6;27013:23;27002:9;26995:42;27073:2;27068;27057:9;27053:18;27046:30;26976:4;27093:45;27134:2;27123:9;27119:18;27111:6;27093:45;:::i;:::-;27085:53;;27186:4;27178:6;27174:17;27169:2;27158:9;27154:18;27147:45;26816:382;;;;;;:::o;27203:288::-;27272:6;27325:2;27313:9;27304:7;27300:23;27296:32;27293:52;;;27341:1;27338;27331:12;27293:52;27373:9;27367:16;27423:18;27416:5;27412:30;27405:5;27402:41;27392:69;;27457:1;27454;27447:12;29357:496;29536:3;29574:6;29568:13;29590:66;29649:6;29644:3;29637:4;29629:6;29625:17;29590:66;:::i;:::-;29719:13;;29678:16;;;;29741:70;29719:13;29678:16;29788:4;29776:17;;29741:70;:::i;:::-;29827:20;;29357:496;-1:-1:-1;;;;29357:496:1:o;30288:249::-;30357:6;30410:2;30398:9;30389:7;30385:23;30381:32;30378:52;;;30426:1;30423;30416:12;30378:52;30458:9;30452:16;30477:30;30501:5;30477:30;:::i;31687:358::-;31905:25;;;31893:2;31878:18;;31939:57;31992:2;31977:18;;31969:6;31939:57;:::i;:::-;32032:6;32027:2;32016:9;32012:18;32005:34;31687:358;;;;;;:::o;33376:512::-;33570:4;-1:-1:-1;;;;;33680:2:1;33672:6;33668:15;33657:9;33650:34;33732:2;33724:6;33720:15;33715:2;33704:9;33700:18;33693:43;;33772:6;33767:2;33756:9;33752:18;33745:34;33815:3;33810:2;33799:9;33795:18;33788:31;33836:46;33877:3;33866:9;33862:19;33854:6;33836:46;:::i;:::-;33828:54;33376:512;-1:-1:-1;;;;;;33376:512:1:o;33893:249::-;33962:6;34015:2;34003:9;33994:7;33990:23;33986:32;33983:52;;;34031:1;34028;34021:12;33983:52;34063:9;34057:16;34082:30;34106:5;34082:30;:::i;34147:125::-;34212:9;;;34233:10;;;34230:36;;;34246:18;;:::i
Swarm Source
ipfs://79d7c9af180a1152f14dc280c3e301dc9aaffd61f281d4bdecb9d98d0df95613
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.