Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 2,548 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Cast Vote | 18860655 | 373 days ago | IN | 0 ETH | 0.00107854 | ||||
Cast Vote | 18644239 | 403 days ago | IN | 0 ETH | 0.00118346 | ||||
Cast Vote | 18603561 | 409 days ago | IN | 0 ETH | 0.00121498 | ||||
Cast Vote | 18603561 | 409 days ago | IN | 0 ETH | 0.00121498 | ||||
Cast Vote | 18603238 | 409 days ago | IN | 0 ETH | 0.00166488 | ||||
Cast Vote | 18530294 | 419 days ago | IN | 0 ETH | 0.00265991 | ||||
Cast Vote | 18530280 | 419 days ago | IN | 0 ETH | 0.00111622 | ||||
Cast Vote | 18528290 | 419 days ago | IN | 0 ETH | 0.00434441 | ||||
Cast Vote | 18528271 | 419 days ago | IN | 0 ETH | 0.00954814 | ||||
Cast Vote | 18528247 | 419 days ago | IN | 0 ETH | 0.00996397 | ||||
Cast Vote | 18528244 | 419 days ago | IN | 0 ETH | 0.00874916 | ||||
Cast Vote | 18528228 | 419 days ago | IN | 0 ETH | 0.00957499 | ||||
Cast Vote | 18528224 | 419 days ago | IN | 0 ETH | 0.00903304 | ||||
Cast Vote | 18528216 | 419 days ago | IN | 0 ETH | 0.00837762 | ||||
Cast Vote | 18528180 | 419 days ago | IN | 0 ETH | 0.01066371 | ||||
Cast Vote | 18528177 | 419 days ago | IN | 0 ETH | 0.01098035 | ||||
Cast Vote | 18528175 | 419 days ago | IN | 0 ETH | 0.01072802 | ||||
Cast Vote | 18528164 | 419 days ago | IN | 0 ETH | 0.01079746 | ||||
Cast Vote | 18528139 | 419 days ago | IN | 0 ETH | 0.00862481 | ||||
Cast Vote | 18528139 | 419 days ago | IN | 0 ETH | 0.00862083 | ||||
Cast Vote | 18528115 | 419 days ago | IN | 0 ETH | 0.005643 | ||||
Cast Vote | 18528098 | 420 days ago | IN | 0 ETH | 0.00898242 | ||||
Cast Vote | 18528092 | 420 days ago | IN | 0 ETH | 0.01019886 | ||||
Cast Vote | 18528056 | 420 days ago | IN | 0 ETH | 0.00890366 | ||||
Cast Vote | 18528055 | 420 days ago | IN | 0 ETH | 0.01062064 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Contest
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-11-30 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.4; // OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol) // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol) /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 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 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } } // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } } /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { 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); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } } /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV // Deprecated in v4.8 } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) { // 32 is the length in bytes of hash, // enforced by the type signature above /// @solidity memory-safe-assembly assembly { mstore(0x00, "\x19Ethereum Signed Message:\n32") mstore(0x1c, hash) message := keccak256(0x00, 0x3c) } } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) { /// @solidity memory-safe-assembly assembly { let ptr := mload(0x40) mstore(ptr, "\x19\x01") mstore(add(ptr, 0x02), domainSeparator) mstore(add(ptr, 0x22), structHash) data := keccak256(ptr, 0x42) } } /** * @dev Returns an Ethereum Signed Data with intended validator, created from a * `validator` and `data` according to the version 0 of EIP-191. * * See {recover}. */ function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x00", validator, data)); } } // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/draft-EIP712.sol) // EIP-712 is Final as of 2022-08-11. This file is deprecated. // OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/EIP712.sol) // OpenZeppelin Contracts (last updated v4.9.0) (utils/ShortStrings.sol) // OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol) // This file was procedurally generated from scripts/generate/templates/StorageSlot.js. /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ```solidity * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._ * _Available since v4.9 for `string`, `bytes`._ */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } struct StringSlot { string value; } struct BytesSlot { bytes value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` with member `value` located at `slot`. */ function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` representation of the string storage pointer `store`. */ function getStringSlot(string storage store) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } /** * @dev Returns an `BytesSlot` with member `value` located at `slot`. */ function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`. */ function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } } // | string | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | // | length | 0x BB | type ShortString is bytes32; /** * @dev This library provides functions to convert short memory strings * into a `ShortString` type that can be used as an immutable variable. * * Strings of arbitrary length can be optimized using this library if * they are short enough (up to 31 bytes) by packing them with their * length (1 byte) in a single EVM word (32 bytes). Additionally, a * fallback mechanism can be used for every other case. * * Usage example: * * ```solidity * contract Named { * using ShortStrings for *; * * ShortString private immutable _name; * string private _nameFallback; * * constructor(string memory contractName) { * _name = contractName.toShortStringWithFallback(_nameFallback); * } * * function name() external view returns (string memory) { * return _name.toStringWithFallback(_nameFallback); * } * } * ``` */ library ShortStrings { // Used as an identifier for strings longer than 31 bytes. bytes32 private constant _FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF; error StringTooLong(string str); error InvalidShortString(); /** * @dev Encode a string of at most 31 chars into a `ShortString`. * * This will trigger a `StringTooLong` error is the input string is too long. */ function toShortString(string memory str) internal pure returns (ShortString) { bytes memory bstr = bytes(str); if (bstr.length > 31) { revert StringTooLong(str); } return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length)); } /** * @dev Decode a `ShortString` back to a "normal" string. */ function toString(ShortString sstr) internal pure returns (string memory) { uint256 len = byteLength(sstr); // using `new string(len)` would work locally but is not memory safe. string memory str = new string(32); /// @solidity memory-safe-assembly assembly { mstore(str, len) mstore(add(str, 0x20), sstr) } return str; } /** * @dev Return the length of a `ShortString`. */ function byteLength(ShortString sstr) internal pure returns (uint256) { uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF; if (result > 31) { revert InvalidShortString(); } return result; } /** * @dev Encode a string into a `ShortString`, or write it to storage if it is too long. */ function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) { if (bytes(value).length < 32) { return toShortString(value); } else { StorageSlot.getStringSlot(store).value = value; return ShortString.wrap(_FALLBACK_SENTINEL); } } /** * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}. */ function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) { if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) { return toString(value); } else { return store; } } /** * @dev Return the length of a string that was encoded to `ShortString` or written to storage using {setWithFallback}. * * WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of * actual characters as the UTF-8 encoding of a single character can span over multiple bytes. */ function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) { if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) { return byteLength(value); } else { return bytes(store).length; } } } // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC5267.sol) interface IERC5267 { /** * @dev MAY be emitted to signal that the domain could have changed. */ event EIP712DomainChanged(); /** * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712 * signature. */ function eip712Domain() external view returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ); } /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain * separator of the implementation contract. This will cause the `_domainSeparatorV4` function to always rebuild the * separator from the immutable values, which is cheaper than accessing a cached version in cold storage. * * _Available since v3.4._ * * @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment */ abstract contract EIP712 is IERC5267 { using ShortStrings for *; bytes32 private constant _TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _cachedDomainSeparator; uint256 private immutable _cachedChainId; address private immutable _cachedThis; bytes32 private immutable _hashedName; bytes32 private immutable _hashedVersion; ShortString private immutable _name; ShortString private immutable _version; string private _nameFallback; string private _versionFallback; /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { _name = name.toShortStringWithFallback(_nameFallback); _version = version.toShortStringWithFallback(_versionFallback); _hashedName = keccak256(bytes(name)); _hashedVersion = keccak256(bytes(version)); _cachedChainId = block.chainid; _cachedDomainSeparator = _buildDomainSeparator(); _cachedThis = address(this); } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _cachedThis && block.chainid == _cachedChainId) { return _cachedDomainSeparator; } else { return _buildDomainSeparator(); } } function _buildDomainSeparator() private view returns (bytes32) { return keccak256(abi.encode(_TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } /** * @dev See {EIP-5267}. * * _Available since v4.9._ */ function eip712Domain() public view virtual override returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ) { return ( hex"0f", // 01111 _name.toStringWithFallback(_nameFallback), _version.toStringWithFallback(_versionFallback), block.chainid, address(this), bytes32(0), new uint256[](0) ); } } // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SafeCast.sol) // This file was procedurally generated from scripts/generate/templates/SafeCast.js. /** * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow * checks. * * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can * easily result in undesired exploitation or bugs, since developers usually * assume that overflows raise errors. `SafeCast` restores this intuition by * reverting the transaction when such an operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. * * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing * all math on `uint256` and `int256` and then downcasting. */ library SafeCast { /** * @dev Returns the downcasted uint248 from uint256, reverting on * overflow (when the input is greater than largest uint248). * * Counterpart to Solidity's `uint248` operator. * * Requirements: * * - input must fit into 248 bits * * _Available since v4.7._ */ function toUint248(uint256 value) internal pure returns (uint248) { require(value <= type(uint248).max, "SafeCast: value doesn't fit in 248 bits"); return uint248(value); } /** * @dev Returns the downcasted uint240 from uint256, reverting on * overflow (when the input is greater than largest uint240). * * Counterpart to Solidity's `uint240` operator. * * Requirements: * * - input must fit into 240 bits * * _Available since v4.7._ */ function toUint240(uint256 value) internal pure returns (uint240) { require(value <= type(uint240).max, "SafeCast: value doesn't fit in 240 bits"); return uint240(value); } /** * @dev Returns the downcasted uint232 from uint256, reverting on * overflow (when the input is greater than largest uint232). * * Counterpart to Solidity's `uint232` operator. * * Requirements: * * - input must fit into 232 bits * * _Available since v4.7._ */ function toUint232(uint256 value) internal pure returns (uint232) { require(value <= type(uint232).max, "SafeCast: value doesn't fit in 232 bits"); return uint232(value); } /** * @dev Returns the downcasted uint224 from uint256, reverting on * overflow (when the input is greater than largest uint224). * * Counterpart to Solidity's `uint224` operator. * * Requirements: * * - input must fit into 224 bits * * _Available since v4.2._ */ function toUint224(uint256 value) internal pure returns (uint224) { require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits"); return uint224(value); } /** * @dev Returns the downcasted uint216 from uint256, reverting on * overflow (when the input is greater than largest uint216). * * Counterpart to Solidity's `uint216` operator. * * Requirements: * * - input must fit into 216 bits * * _Available since v4.7._ */ function toUint216(uint256 value) internal pure returns (uint216) { require(value <= type(uint216).max, "SafeCast: value doesn't fit in 216 bits"); return uint216(value); } /** * @dev Returns the downcasted uint208 from uint256, reverting on * overflow (when the input is greater than largest uint208). * * Counterpart to Solidity's `uint208` operator. * * Requirements: * * - input must fit into 208 bits * * _Available since v4.7._ */ function toUint208(uint256 value) internal pure returns (uint208) { require(value <= type(uint208).max, "SafeCast: value doesn't fit in 208 bits"); return uint208(value); } /** * @dev Returns the downcasted uint200 from uint256, reverting on * overflow (when the input is greater than largest uint200). * * Counterpart to Solidity's `uint200` operator. * * Requirements: * * - input must fit into 200 bits * * _Available since v4.7._ */ function toUint200(uint256 value) internal pure returns (uint200) { require(value <= type(uint200).max, "SafeCast: value doesn't fit in 200 bits"); return uint200(value); } /** * @dev Returns the downcasted uint192 from uint256, reverting on * overflow (when the input is greater than largest uint192). * * Counterpart to Solidity's `uint192` operator. * * Requirements: * * - input must fit into 192 bits * * _Available since v4.7._ */ function toUint192(uint256 value) internal pure returns (uint192) { require(value <= type(uint192).max, "SafeCast: value doesn't fit in 192 bits"); return uint192(value); } /** * @dev Returns the downcasted uint184 from uint256, reverting on * overflow (when the input is greater than largest uint184). * * Counterpart to Solidity's `uint184` operator. * * Requirements: * * - input must fit into 184 bits * * _Available since v4.7._ */ function toUint184(uint256 value) internal pure returns (uint184) { require(value <= type(uint184).max, "SafeCast: value doesn't fit in 184 bits"); return uint184(value); } /** * @dev Returns the downcasted uint176 from uint256, reverting on * overflow (when the input is greater than largest uint176). * * Counterpart to Solidity's `uint176` operator. * * Requirements: * * - input must fit into 176 bits * * _Available since v4.7._ */ function toUint176(uint256 value) internal pure returns (uint176) { require(value <= type(uint176).max, "SafeCast: value doesn't fit in 176 bits"); return uint176(value); } /** * @dev Returns the downcasted uint168 from uint256, reverting on * overflow (when the input is greater than largest uint168). * * Counterpart to Solidity's `uint168` operator. * * Requirements: * * - input must fit into 168 bits * * _Available since v4.7._ */ function toUint168(uint256 value) internal pure returns (uint168) { require(value <= type(uint168).max, "SafeCast: value doesn't fit in 168 bits"); return uint168(value); } /** * @dev Returns the downcasted uint160 from uint256, reverting on * overflow (when the input is greater than largest uint160). * * Counterpart to Solidity's `uint160` operator. * * Requirements: * * - input must fit into 160 bits * * _Available since v4.7._ */ function toUint160(uint256 value) internal pure returns (uint160) { require(value <= type(uint160).max, "SafeCast: value doesn't fit in 160 bits"); return uint160(value); } /** * @dev Returns the downcasted uint152 from uint256, reverting on * overflow (when the input is greater than largest uint152). * * Counterpart to Solidity's `uint152` operator. * * Requirements: * * - input must fit into 152 bits * * _Available since v4.7._ */ function toUint152(uint256 value) internal pure returns (uint152) { require(value <= type(uint152).max, "SafeCast: value doesn't fit in 152 bits"); return uint152(value); } /** * @dev Returns the downcasted uint144 from uint256, reverting on * overflow (when the input is greater than largest uint144). * * Counterpart to Solidity's `uint144` operator. * * Requirements: * * - input must fit into 144 bits * * _Available since v4.7._ */ function toUint144(uint256 value) internal pure returns (uint144) { require(value <= type(uint144).max, "SafeCast: value doesn't fit in 144 bits"); return uint144(value); } /** * @dev Returns the downcasted uint136 from uint256, reverting on * overflow (when the input is greater than largest uint136). * * Counterpart to Solidity's `uint136` operator. * * Requirements: * * - input must fit into 136 bits * * _Available since v4.7._ */ function toUint136(uint256 value) internal pure returns (uint136) { require(value <= type(uint136).max, "SafeCast: value doesn't fit in 136 bits"); return uint136(value); } /** * @dev Returns the downcasted uint128 from uint256, reverting on * overflow (when the input is greater than largest uint128). * * Counterpart to Solidity's `uint128` operator. * * Requirements: * * - input must fit into 128 bits * * _Available since v2.5._ */ function toUint128(uint256 value) internal pure returns (uint128) { require(value <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits"); return uint128(value); } /** * @dev Returns the downcasted uint120 from uint256, reverting on * overflow (when the input is greater than largest uint120). * * Counterpart to Solidity's `uint120` operator. * * Requirements: * * - input must fit into 120 bits * * _Available since v4.7._ */ function toUint120(uint256 value) internal pure returns (uint120) { require(value <= type(uint120).max, "SafeCast: value doesn't fit in 120 bits"); return uint120(value); } /** * @dev Returns the downcasted uint112 from uint256, reverting on * overflow (when the input is greater than largest uint112). * * Counterpart to Solidity's `uint112` operator. * * Requirements: * * - input must fit into 112 bits * * _Available since v4.7._ */ function toUint112(uint256 value) internal pure returns (uint112) { require(value <= type(uint112).max, "SafeCast: value doesn't fit in 112 bits"); return uint112(value); } /** * @dev Returns the downcasted uint104 from uint256, reverting on * overflow (when the input is greater than largest uint104). * * Counterpart to Solidity's `uint104` operator. * * Requirements: * * - input must fit into 104 bits * * _Available since v4.7._ */ function toUint104(uint256 value) internal pure returns (uint104) { require(value <= type(uint104).max, "SafeCast: value doesn't fit in 104 bits"); return uint104(value); } /** * @dev Returns the downcasted uint96 from uint256, reverting on * overflow (when the input is greater than largest uint96). * * Counterpart to Solidity's `uint96` operator. * * Requirements: * * - input must fit into 96 bits * * _Available since v4.2._ */ function toUint96(uint256 value) internal pure returns (uint96) { require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits"); return uint96(value); } /** * @dev Returns the downcasted uint88 from uint256, reverting on * overflow (when the input is greater than largest uint88). * * Counterpart to Solidity's `uint88` operator. * * Requirements: * * - input must fit into 88 bits * * _Available since v4.7._ */ function toUint88(uint256 value) internal pure returns (uint88) { require(value <= type(uint88).max, "SafeCast: value doesn't fit in 88 bits"); return uint88(value); } /** * @dev Returns the downcasted uint80 from uint256, reverting on * overflow (when the input is greater than largest uint80). * * Counterpart to Solidity's `uint80` operator. * * Requirements: * * - input must fit into 80 bits * * _Available since v4.7._ */ function toUint80(uint256 value) internal pure returns (uint80) { require(value <= type(uint80).max, "SafeCast: value doesn't fit in 80 bits"); return uint80(value); } /** * @dev Returns the downcasted uint72 from uint256, reverting on * overflow (when the input is greater than largest uint72). * * Counterpart to Solidity's `uint72` operator. * * Requirements: * * - input must fit into 72 bits * * _Available since v4.7._ */ function toUint72(uint256 value) internal pure returns (uint72) { require(value <= type(uint72).max, "SafeCast: value doesn't fit in 72 bits"); return uint72(value); } /** * @dev Returns the downcasted uint64 from uint256, reverting on * overflow (when the input is greater than largest uint64). * * Counterpart to Solidity's `uint64` operator. * * Requirements: * * - input must fit into 64 bits * * _Available since v2.5._ */ function toUint64(uint256 value) internal pure returns (uint64) { require(value <= type(uint64).max, "SafeCast: value doesn't fit in 64 bits"); return uint64(value); } /** * @dev Returns the downcasted uint56 from uint256, reverting on * overflow (when the input is greater than largest uint56). * * Counterpart to Solidity's `uint56` operator. * * Requirements: * * - input must fit into 56 bits * * _Available since v4.7._ */ function toUint56(uint256 value) internal pure returns (uint56) { require(value <= type(uint56).max, "SafeCast: value doesn't fit in 56 bits"); return uint56(value); } /** * @dev Returns the downcasted uint48 from uint256, reverting on * overflow (when the input is greater than largest uint48). * * Counterpart to Solidity's `uint48` operator. * * Requirements: * * - input must fit into 48 bits * * _Available since v4.7._ */ function toUint48(uint256 value) internal pure returns (uint48) { require(value <= type(uint48).max, "SafeCast: value doesn't fit in 48 bits"); return uint48(value); } /** * @dev Returns the downcasted uint40 from uint256, reverting on * overflow (when the input is greater than largest uint40). * * Counterpart to Solidity's `uint40` operator. * * Requirements: * * - input must fit into 40 bits * * _Available since v4.7._ */ function toUint40(uint256 value) internal pure returns (uint40) { require(value <= type(uint40).max, "SafeCast: value doesn't fit in 40 bits"); return uint40(value); } /** * @dev Returns the downcasted uint32 from uint256, reverting on * overflow (when the input is greater than largest uint32). * * Counterpart to Solidity's `uint32` operator. * * Requirements: * * - input must fit into 32 bits * * _Available since v2.5._ */ function toUint32(uint256 value) internal pure returns (uint32) { require(value <= type(uint32).max, "SafeCast: value doesn't fit in 32 bits"); return uint32(value); } /** * @dev Returns the downcasted uint24 from uint256, reverting on * overflow (when the input is greater than largest uint24). * * Counterpart to Solidity's `uint24` operator. * * Requirements: * * - input must fit into 24 bits * * _Available since v4.7._ */ function toUint24(uint256 value) internal pure returns (uint24) { require(value <= type(uint24).max, "SafeCast: value doesn't fit in 24 bits"); return uint24(value); } /** * @dev Returns the downcasted uint16 from uint256, reverting on * overflow (when the input is greater than largest uint16). * * Counterpart to Solidity's `uint16` operator. * * Requirements: * * - input must fit into 16 bits * * _Available since v2.5._ */ function toUint16(uint256 value) internal pure returns (uint16) { require(value <= type(uint16).max, "SafeCast: value doesn't fit in 16 bits"); return uint16(value); } /** * @dev Returns the downcasted uint8 from uint256, reverting on * overflow (when the input is greater than largest uint8). * * Counterpart to Solidity's `uint8` operator. * * Requirements: * * - input must fit into 8 bits * * _Available since v2.5._ */ function toUint8(uint256 value) internal pure returns (uint8) { require(value <= type(uint8).max, "SafeCast: value doesn't fit in 8 bits"); return uint8(value); } /** * @dev Converts a signed int256 into an unsigned uint256. * * Requirements: * * - input must be greater than or equal to 0. * * _Available since v3.0._ */ function toUint256(int256 value) internal pure returns (uint256) { require(value >= 0, "SafeCast: value must be positive"); return uint256(value); } /** * @dev Returns the downcasted int248 from int256, reverting on * overflow (when the input is less than smallest int248 or * greater than largest int248). * * Counterpart to Solidity's `int248` operator. * * Requirements: * * - input must fit into 248 bits * * _Available since v4.7._ */ function toInt248(int256 value) internal pure returns (int248 downcasted) { downcasted = int248(value); require(downcasted == value, "SafeCast: value doesn't fit in 248 bits"); } /** * @dev Returns the downcasted int240 from int256, reverting on * overflow (when the input is less than smallest int240 or * greater than largest int240). * * Counterpart to Solidity's `int240` operator. * * Requirements: * * - input must fit into 240 bits * * _Available since v4.7._ */ function toInt240(int256 value) internal pure returns (int240 downcasted) { downcasted = int240(value); require(downcasted == value, "SafeCast: value doesn't fit in 240 bits"); } /** * @dev Returns the downcasted int232 from int256, reverting on * overflow (when the input is less than smallest int232 or * greater than largest int232). * * Counterpart to Solidity's `int232` operator. * * Requirements: * * - input must fit into 232 bits * * _Available since v4.7._ */ function toInt232(int256 value) internal pure returns (int232 downcasted) { downcasted = int232(value); require(downcasted == value, "SafeCast: value doesn't fit in 232 bits"); } /** * @dev Returns the downcasted int224 from int256, reverting on * overflow (when the input is less than smallest int224 or * greater than largest int224). * * Counterpart to Solidity's `int224` operator. * * Requirements: * * - input must fit into 224 bits * * _Available since v4.7._ */ function toInt224(int256 value) internal pure returns (int224 downcasted) { downcasted = int224(value); require(downcasted == value, "SafeCast: value doesn't fit in 224 bits"); } /** * @dev Returns the downcasted int216 from int256, reverting on * overflow (when the input is less than smallest int216 or * greater than largest int216). * * Counterpart to Solidity's `int216` operator. * * Requirements: * * - input must fit into 216 bits * * _Available since v4.7._ */ function toInt216(int256 value) internal pure returns (int216 downcasted) { downcasted = int216(value); require(downcasted == value, "SafeCast: value doesn't fit in 216 bits"); } /** * @dev Returns the downcasted int208 from int256, reverting on * overflow (when the input is less than smallest int208 or * greater than largest int208). * * Counterpart to Solidity's `int208` operator. * * Requirements: * * - input must fit into 208 bits * * _Available since v4.7._ */ function toInt208(int256 value) internal pure returns (int208 downcasted) { downcasted = int208(value); require(downcasted == value, "SafeCast: value doesn't fit in 208 bits"); } /** * @dev Returns the downcasted int200 from int256, reverting on * overflow (when the input is less than smallest int200 or * greater than largest int200). * * Counterpart to Solidity's `int200` operator. * * Requirements: * * - input must fit into 200 bits * * _Available since v4.7._ */ function toInt200(int256 value) internal pure returns (int200 downcasted) { downcasted = int200(value); require(downcasted == value, "SafeCast: value doesn't fit in 200 bits"); } /** * @dev Returns the downcasted int192 from int256, reverting on * overflow (when the input is less than smallest int192 or * greater than largest int192). * * Counterpart to Solidity's `int192` operator. * * Requirements: * * - input must fit into 192 bits * * _Available since v4.7._ */ function toInt192(int256 value) internal pure returns (int192 downcasted) { downcasted = int192(value); require(downcasted == value, "SafeCast: value doesn't fit in 192 bits"); } /** * @dev Returns the downcasted int184 from int256, reverting on * overflow (when the input is less than smallest int184 or * greater than largest int184). * * Counterpart to Solidity's `int184` operator. * * Requirements: * * - input must fit into 184 bits * * _Available since v4.7._ */ function toInt184(int256 value) internal pure returns (int184 downcasted) { downcasted = int184(value); require(downcasted == value, "SafeCast: value doesn't fit in 184 bits"); } /** * @dev Returns the downcasted int176 from int256, reverting on * overflow (when the input is less than smallest int176 or * greater than largest int176). * * Counterpart to Solidity's `int176` operator. * * Requirements: * * - input must fit into 176 bits * * _Available since v4.7._ */ function toInt176(int256 value) internal pure returns (int176 downcasted) { downcasted = int176(value); require(downcasted == value, "SafeCast: value doesn't fit in 176 bits"); } /** * @dev Returns the downcasted int168 from int256, reverting on * overflow (when the input is less than smallest int168 or * greater than largest int168). * * Counterpart to Solidity's `int168` operator. * * Requirements: * * - input must fit into 168 bits * * _Available since v4.7._ */ function toInt168(int256 value) internal pure returns (int168 downcasted) { downcasted = int168(value); require(downcasted == value, "SafeCast: value doesn't fit in 168 bits"); } /** * @dev Returns the downcasted int160 from int256, reverting on * overflow (when the input is less than smallest int160 or * greater than largest int160). * * Counterpart to Solidity's `int160` operator. * * Requirements: * * - input must fit into 160 bits * * _Available since v4.7._ */ function toInt160(int256 value) internal pure returns (int160 downcasted) { downcasted = int160(value); require(downcasted == value, "SafeCast: value doesn't fit in 160 bits"); } /** * @dev Returns the downcasted int152 from int256, reverting on * overflow (when the input is less than smallest int152 or * greater than largest int152). * * Counterpart to Solidity's `int152` operator. * * Requirements: * * - input must fit into 152 bits * * _Available since v4.7._ */ function toInt152(int256 value) internal pure returns (int152 downcasted) { downcasted = int152(value); require(downcasted == value, "SafeCast: value doesn't fit in 152 bits"); } /** * @dev Returns the downcasted int144 from int256, reverting on * overflow (when the input is less than smallest int144 or * greater than largest int144). * * Counterpart to Solidity's `int144` operator. * * Requirements: * * - input must fit into 144 bits * * _Available since v4.7._ */ function toInt144(int256 value) internal pure returns (int144 downcasted) { downcasted = int144(value); require(downcasted == value, "SafeCast: value doesn't fit in 144 bits"); } /** * @dev Returns the downcasted int136 from int256, reverting on * overflow (when the input is less than smallest int136 or * greater than largest int136). * * Counterpart to Solidity's `int136` operator. * * Requirements: * * - input must fit into 136 bits * * _Available since v4.7._ */ function toInt136(int256 value) internal pure returns (int136 downcasted) { downcasted = int136(value); require(downcasted == value, "SafeCast: value doesn't fit in 136 bits"); } /** * @dev Returns the downcasted int128 from int256, reverting on * overflow (when the input is less than smallest int128 or * greater than largest int128). * * Counterpart to Solidity's `int128` operator. * * Requirements: * * - input must fit into 128 bits * * _Available since v3.1._ */ function toInt128(int256 value) internal pure returns (int128 downcasted) { downcasted = int128(value); require(downcasted == value, "SafeCast: value doesn't fit in 128 bits"); } /** * @dev Returns the downcasted int120 from int256, reverting on * overflow (when the input is less than smallest int120 or * greater than largest int120). * * Counterpart to Solidity's `int120` operator. * * Requirements: * * - input must fit into 120 bits * * _Available since v4.7._ */ function toInt120(int256 value) internal pure returns (int120 downcasted) { downcasted = int120(value); require(downcasted == value, "SafeCast: value doesn't fit in 120 bits"); } /** * @dev Returns the downcasted int112 from int256, reverting on * overflow (when the input is less than smallest int112 or * greater than largest int112). * * Counterpart to Solidity's `int112` operator. * * Requirements: * * - input must fit into 112 bits * * _Available since v4.7._ */ function toInt112(int256 value) internal pure returns (int112 downcasted) { downcasted = int112(value); require(downcasted == value, "SafeCast: value doesn't fit in 112 bits"); } /** * @dev Returns the downcasted int104 from int256, reverting on * overflow (when the input is less than smallest int104 or * greater than largest int104). * * Counterpart to Solidity's `int104` operator. * * Requirements: * * - input must fit into 104 bits * * _Available since v4.7._ */ function toInt104(int256 value) internal pure returns (int104 downcasted) { downcasted = int104(value); require(downcasted == value, "SafeCast: value doesn't fit in 104 bits"); } /** * @dev Returns the downcasted int96 from int256, reverting on * overflow (when the input is less than smallest int96 or * greater than largest int96). * * Counterpart to Solidity's `int96` operator. * * Requirements: * * - input must fit into 96 bits * * _Available since v4.7._ */ function toInt96(int256 value) internal pure returns (int96 downcasted) { downcasted = int96(value); require(downcasted == value, "SafeCast: value doesn't fit in 96 bits"); } /** * @dev Returns the downcasted int88 from int256, reverting on * overflow (when the input is less than smallest int88 or * greater than largest int88). * * Counterpart to Solidity's `int88` operator. * * Requirements: * * - input must fit into 88 bits * * _Available since v4.7._ */ function toInt88(int256 value) internal pure returns (int88 downcasted) { downcasted = int88(value); require(downcasted == value, "SafeCast: value doesn't fit in 88 bits"); } /** * @dev Returns the downcasted int80 from int256, reverting on * overflow (when the input is less than smallest int80 or * greater than largest int80). * * Counterpart to Solidity's `int80` operator. * * Requirements: * * - input must fit into 80 bits * * _Available since v4.7._ */ function toInt80(int256 value) internal pure returns (int80 downcasted) { downcasted = int80(value); require(downcasted == value, "SafeCast: value doesn't fit in 80 bits"); } /** * @dev Returns the downcasted int72 from int256, reverting on * overflow (when the input is less than smallest int72 or * greater than largest int72). * * Counterpart to Solidity's `int72` operator. * * Requirements: * * - input must fit into 72 bits * * _Available since v4.7._ */ function toInt72(int256 value) internal pure returns (int72 downcasted) { downcasted = int72(value); require(downcasted == value, "SafeCast: value doesn't fit in 72 bits"); } /** * @dev Returns the downcasted int64 from int256, reverting on * overflow (when the input is less than smallest int64 or * greater than largest int64). * * Counterpart to Solidity's `int64` operator. * * Requirements: * * - input must fit into 64 bits * * _Available since v3.1._ */ function toInt64(int256 value) internal pure returns (int64 downcasted) { downcasted = int64(value); require(downcasted == value, "SafeCast: value doesn't fit in 64 bits"); } /** * @dev Returns the downcasted int56 from int256, reverting on * overflow (when the input is less than smallest int56 or * greater than largest int56). * * Counterpart to Solidity's `int56` operator. * * Requirements: * * - input must fit into 56 bits * * _Available since v4.7._ */ function toInt56(int256 value) internal pure returns (int56 downcasted) { downcasted = int56(value); require(downcasted == value, "SafeCast: value doesn't fit in 56 bits"); } /** * @dev Returns the downcasted int48 from int256, reverting on * overflow (when the input is less than smallest int48 or * greater than largest int48). * * Counterpart to Solidity's `int48` operator. * * Requirements: * * - input must fit into 48 bits * * _Available since v4.7._ */ function toInt48(int256 value) internal pure returns (int48 downcasted) { downcasted = int48(value); require(downcasted == value, "SafeCast: value doesn't fit in 48 bits"); } /** * @dev Returns the downcasted int40 from int256, reverting on * overflow (when the input is less than smallest int40 or * greater than largest int40). * * Counterpart to Solidity's `int40` operator. * * Requirements: * * - input must fit into 40 bits * * _Available since v4.7._ */ function toInt40(int256 value) internal pure returns (int40 downcasted) { downcasted = int40(value); require(downcasted == value, "SafeCast: value doesn't fit in 40 bits"); } /** * @dev Returns the downcasted int32 from int256, reverting on * overflow (when the input is less than smallest int32 or * greater than largest int32). * * Counterpart to Solidity's `int32` operator. * * Requirements: * * - input must fit into 32 bits * * _Available since v3.1._ */ function toInt32(int256 value) internal pure returns (int32 downcasted) { downcasted = int32(value); require(downcasted == value, "SafeCast: value doesn't fit in 32 bits"); } /** * @dev Returns the downcasted int24 from int256, reverting on * overflow (when the input is less than smallest int24 or * greater than largest int24). * * Counterpart to Solidity's `int24` operator. * * Requirements: * * - input must fit into 24 bits * * _Available since v4.7._ */ function toInt24(int256 value) internal pure returns (int24 downcasted) { downcasted = int24(value); require(downcasted == value, "SafeCast: value doesn't fit in 24 bits"); } /** * @dev Returns the downcasted int16 from int256, reverting on * overflow (when the input is less than smallest int16 or * greater than largest int16). * * Counterpart to Solidity's `int16` operator. * * Requirements: * * - input must fit into 16 bits * * _Available since v3.1._ */ function toInt16(int256 value) internal pure returns (int16 downcasted) { downcasted = int16(value); require(downcasted == value, "SafeCast: value doesn't fit in 16 bits"); } /** * @dev Returns the downcasted int8 from int256, reverting on * overflow (when the input is less than smallest int8 or * greater than largest int8). * * Counterpart to Solidity's `int8` operator. * * Requirements: * * - input must fit into 8 bits * * _Available since v3.1._ */ function toInt8(int256 value) internal pure returns (int8 downcasted) { downcasted = int8(value); require(downcasted == value, "SafeCast: value doesn't fit in 8 bits"); } /** * @dev Converts an unsigned uint256 into a signed int256. * * Requirements: * * - input must be less than or equal to maxInt256. * * _Available since v3.0._ */ function toInt256(uint256 value) internal pure returns (int256) { // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256"); return int256(value); } } // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [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://consensys.net/diligence/blog/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.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } /** * @dev Interface of the {Governor} core. */ abstract contract IGovernor is IERC165 { enum ContestState { NotStarted, Active, Canceled, Queued, Completed } uint256 public constant METADATAS_COUNT = uint256(type(Metadatas).max) + 1; enum Metadatas { Target, Safe } struct TargetMetadata { address targetAddress; } struct SafeMetadata { address[] signers; uint256 threshold; } struct ProposalCore { address author; bool exists; string description; TargetMetadata targetMetadata; SafeMetadata safeMetadata; } /** * @dev Emitted when a jokerace is created. */ event JokeraceCreated(string name, address creator); /** * @dev Emitted when a proposal is created. */ event ProposalCreated(uint256 proposalId, address proposer); /** * @dev Emitted when proposals are deleted. */ event ProposalsDeleted(uint256[] proposalIds); /** * @dev Emitted when a contest is canceled. */ event ContestCanceled(); /** * @dev Emitted when a vote is cast. */ event VoteCast(address indexed voter, uint256 proposalId, uint8 support, uint256 numVotes); /** * @notice module:core * @dev Name of the contest. */ function name() public view virtual returns (string memory); /** * @notice module:core * @dev Prompt of the contest. */ function prompt() public view virtual returns (string memory); /** * @notice module:core * @dev Version of the contest contract. */ function version() public view virtual returns (string memory); /** * @notice module:core * @dev Hashing function used to build the proposal id from the proposal details. */ function hashProposal(ProposalCore memory proposal) public pure virtual returns (uint256); /** * @notice module:core * @dev Current state of a Contest, following Compound's convention */ function state() public view virtual returns (ContestState); /** * @notice module:core * @dev Timestamp the contest starts at. Submissions open at the end of this block, so it is not possible to propose * during this block. */ function contestStart() public view virtual returns (uint256); /** * @notice module:core * @dev Timestamp the contest vote begins. Votes open at the end of this block, so it is possible to propose * during this block. */ function voteStart() public view virtual returns (uint256); /** * @notice module:core * @dev Timestamp at which votes close. Votes close at the end of this block, so it is possible to cast a vote * during this block. */ function contestDeadline() public view virtual returns (uint256); /** * @notice module:user-config * @dev Delay, in seconds, between the proposal is created and the vote starts. This can be increassed to * leave time for users to buy voting power, of delegate it, before the voting of a proposal starts. */ function votingDelay() public view virtual returns (uint256); /** * @notice module:user-config * @dev Delay, in seconds, between the vote start and vote ends. * * NOTE: The {votingDelay} can delay the start of the vote. This must be considered when setting the voting * duration compared to the voting delay. */ function votingPeriod() public view virtual returns (uint256); /** * @notice module:core * @dev Creator of the contest, has the power to cancel the contest and delete proposals in it. */ function creator() public view virtual returns (address); /** * @dev Verifies that `account` is permissioned to propose via merkle proof. */ function verifyProposer(address account, bytes32[] calldata proof) public virtual returns (bool); /** * @dev Verifies that all of the metadata in the proposal is valid. */ function validateProposalData(ProposalCore memory proposal) public virtual returns (bool); /** * @dev Create a new proposal. Vote start {IGovernor-votingDelay} blocks after the proposal is created and ends * {IGovernor-votingPeriod} blocks after the voting starts. * * Emits a {ProposalCreated} event. */ function propose(ProposalCore calldata proposal, bytes32[] calldata proof) public virtual returns (uint256 proposalId); /** * @dev Create a new proposal. Vote start {IGovernor-votingDelay} blocks after the proposal is created and ends * {IGovernor-votingPeriod} blocks after the voting starts. * * Emits a {ProposalCreated} event. */ function proposeWithoutProof(ProposalCore calldata proposal) public virtual returns (uint256 proposalId); /** * @dev Verifies that `account` is permissioned to vote with `totalVotes` via merkle proof. */ function verifyVoter(address account, uint256 totalVotes, bytes32[] calldata proof) public virtual returns (bool); /** * @dev Cast a vote with a merkle proof. * * Emits a {VoteCast} event. */ function castVote(uint256 proposalId, uint8 support, uint256 totalVotes, uint256 numVotes, bytes32[] calldata proof) public virtual returns (uint256 balance); /** * @dev Cast a vote without including the merkle proof. * * Emits a {VoteCast} event. */ function castVoteWithoutProof(uint256 proposalId, uint8 support, uint256 numVotes) public virtual returns (uint256 balance); } /// ============ Imports ============ // OpenZeppelin Contracts (last updated v4.9.2) (utils/cryptography/MerkleProof.sol) /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proofLen - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { require(proofPos == proofLen, "MerkleProof: invalid multiproof"); unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proofLen - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { require(proofPos == proofLen, "MerkleProof: invalid multiproof"); unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } // OZ: MerkleProof /// @title GovernorMerkleVotes abstract contract GovernorMerkleVotes { /// ============ Immutable storage ============ /// @notice ERC20-claimee inclusion root bytes32 public immutable submissionMerkleRoot; bytes32 public immutable votingMerkleRoot; /// ============ Errors ============ /// @notice Thrown if address/amount are not part of Merkle tree error NotInMerkle(); /// ============ Constructor ============ /// @notice Creates a new GovernorMerkleVotes contract /// @param _submissionMerkleRoot of claimees /// @param _votingMerkleRoot of claimees constructor(bytes32 _submissionMerkleRoot, bytes32 _votingMerkleRoot) { submissionMerkleRoot = _submissionMerkleRoot; // Update root votingMerkleRoot = _votingMerkleRoot; // Update root } /// ============ Functions ============ /// @notice Allows checking of proofs for an address /// @param addressToCheck address of claimee /// @param amount to check that the claimee has /// @param proof merkle proof to prove address and amount are in tree /// @param voting true if this is for a voting proof, false if this is for a submission proof function checkProof(address addressToCheck, uint256 amount, bytes32[] calldata proof, bool voting) public view returns (bool verified) { // Verify merkle proof, or revert if not in tree bytes32 leaf = keccak256(abi.encodePacked(addressToCheck, amount)); bool isValidLeaf = voting ? MerkleProof.verify(proof, votingMerkleRoot, leaf) : MerkleProof.verify(proof, submissionMerkleRoot, leaf); if (!isValidLeaf) revert NotInMerkle(); return true; } } /** * @dev Core of the governance system, designed to be extended though various modules. */ abstract contract Governor is Context, ERC165, EIP712, GovernorMerkleVotes, IGovernor { using SafeCast for uint256; uint256 public constant AMOUNT_FOR_SUMBITTER_PROOF = 10000000000000000000; address public constant JK_LABS_ADDRESS = 0xDc652C746A8F85e18Ce632d97c6118e8a52fa738; string private _name; string private _prompt; uint256[] public proposalIds; uint256[] public deletedProposalIds; mapping(uint256 => bool) public proposalIsDeleted; bool public canceled; mapping(uint256 => ProposalCore) public proposals; mapping(address => uint256) public numSubmissions; address[] public proposalAuthors; address[] public addressesThatHaveVoted; mapping(address => uint256) public addressTotalVotes; mapping(address => bool) public addressTotalVotesVerified; mapping(address => bool) public addressSubmitterVerified; /// @notice Thrown if there is metadata included in a proposal that isn't covered in data validation error TooManyMetadatas(); /** * @dev Sets the value for {name} and {version} */ constructor(string memory name_, string memory prompt_, bytes32 submissionMerkleRoot_, bytes32 votingMerkleRoot_) GovernorMerkleVotes(submissionMerkleRoot_, votingMerkleRoot_) EIP712(name_, version()) { _name = name_; _prompt = prompt_; emit JokeraceCreated(name_, msg.sender); // emit upon creation to be able to easily find jokeraces on a chain } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IGovernor).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IGovernor-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IGovernor-prompt}. */ function prompt() public view virtual override returns (string memory) { return _prompt; } /** * @dev See {IGovernor-version}. */ function version() public view virtual override returns (string memory) { return "3.18"; } /** * @dev See {IGovernor-hashProposal}. */ function hashProposal(ProposalCore memory proposal) public pure virtual override returns (uint256) { return uint256(keccak256(abi.encode(proposal))); } /** * @dev See {IGovernor-state}. */ function state() public view virtual override returns (ContestState) { if (canceled) { return ContestState.Canceled; } uint256 contestStartTimestamp = contestStart(); if (contestStartTimestamp >= block.timestamp) { return ContestState.NotStarted; } uint256 voteStartTimestamp = voteStart(); if (voteStartTimestamp >= block.timestamp) { return ContestState.Queued; } uint256 deadlineTimestamp = contestDeadline(); if (deadlineTimestamp >= block.timestamp) { return ContestState.Active; } return ContestState.Completed; } /** * @dev Return all proposals. */ function getAllProposalIds() public view virtual returns (uint256[] memory) { return proposalIds; } /** * @dev Return all proposal authors. */ function getAllProposalAuthors() public view virtual returns (address[] memory) { return proposalAuthors; } /** * @dev Return all addresses that have voted. */ function getAllAddressesThatHaveVoted() public view virtual returns (address[] memory) { return addressesThatHaveVoted; } /** * @dev Return all deleted proposals. */ function getAllDeletedProposalIds() public view virtual returns (uint256[] memory) { return deletedProposalIds; } /** * @dev See {IGovernor-voteStart}. */ function voteStart() public view virtual override returns (uint256) { return contestStart() + votingDelay(); } /** * @dev See {IGovernor-contestDeadline}. */ function contestDeadline() public view virtual override returns (uint256) { return voteStart() + votingPeriod(); } /** * @dev The number of proposals that an address who is qualified to propose can submit for this contest. */ function numAllowedProposalSubmissions() public view virtual returns (uint256) { return 1; } /** * @dev Max number of proposals allowed in this contest */ function maxProposalCount() public view virtual returns (uint256) { return 100; } /** * @dev If downvoting is enabled in this contest. */ function downvotingAllowed() public view virtual returns (uint256) { return 0; // 0 == false, 1 == true } /** * @dev Retrieve proposal data. */ function getProposal(uint256 proposalId) public view virtual returns (ProposalCore memory) { return proposals[proposalId]; } /** * @dev Get the number of proposal submissions for a given address. */ function getNumSubmissions(address account) public view virtual returns (uint256) { return numSubmissions[account]; } /** * @dev Returns if a proposal has been deleted or not. */ function isProposalDeleted(uint256 proposalId) public view virtual returns (bool) { return proposalIsDeleted[proposalId]; } /** * @dev Register a vote with a given support and voting weight. * * Note: Support is generic and can represent various things depending on the voting system used. */ function _countVote(uint256 proposalId, address account, uint8 support, uint256 numVotes, uint256 totalVotes) internal virtual; /** * @dev See {IGovernor-verifyProposer}. */ function verifyProposer(address account, bytes32[] calldata proof) public override returns (bool verified) { if (!addressSubmitterVerified[account]) { if (submissionMerkleRoot == 0) { // if the submission root is 0, then anyone can submit return true; } checkProof(account, AMOUNT_FOR_SUMBITTER_PROOF, proof, false); // will revert with NotInMerkle if not valid addressSubmitterVerified[account] = true; } return true; } /** * @dev See {IGovernor-validateProposalData}. */ function validateProposalData(ProposalCore memory proposal) public virtual override returns (bool dataValidated) { require(proposal.author == msg.sender, "Governor: the proposal author must be msg.sender"); for (uint256 index = 0; index < METADATAS_COUNT; index++) { Metadatas currentMetadata = Metadatas(index); if (currentMetadata == Metadatas.Target) { continue; // Nothing to check here since strictly typed to address } else if (currentMetadata == Metadatas.Safe) { require( proposal.safeMetadata.signers.length != 0, "GovernorMetadataValidation: there cannot be zero signers in safeMetadata" ); require( proposal.safeMetadata.threshold != 0, "GovernorMetadataValidation: threshold cannot be zero in safeMetadata" ); } else { revert TooManyMetadatas(); } } require(bytes(proposal.description).length != 0, "Governor: empty proposal descriptions are not allowed"); return true; } /** * @dev See {IGovernor-propose}. */ function propose(ProposalCore calldata proposal, bytes32[] calldata proof) public virtual override returns (uint256) { require(verifyProposer(msg.sender, proof), "Governor: address is not permissioned to submit"); require(validateProposalData(proposal), "Governor: proposal content failed validation"); return _castProposal(proposal); } /** * @dev See {IGovernor-proposeWithoutProof}. */ function proposeWithoutProof(ProposalCore calldata proposal) public virtual override returns (uint256) { if (submissionMerkleRoot != 0) { // if the submission root is 0, then anyone can submit; otherwise, this address needs to have been verified require(addressSubmitterVerified[msg.sender], "Governor: address is not permissioned to submit"); } require(validateProposalData(proposal), "Governor: proposal content failed validation"); return _castProposal(proposal); } function _castProposal(ProposalCore memory proposal) internal virtual returns (uint256) { require(state() == ContestState.Queued, "Governor: contest must be queued for proposals to be submitted"); require( numSubmissions[msg.sender] < numAllowedProposalSubmissions(), "Governor: the same address cannot submit more than the numAllowedProposalSubmissions for this contest" ); require( (proposalIds.length - deletedProposalIds.length) < maxProposalCount(), "Governor: the max number of proposals have been submitted" ); uint256 proposalId = hashProposal(proposal); require(!proposals[proposalId].exists, "Governor: duplicate proposals not allowed"); proposalIds.push(proposalId); proposals[proposalId] = proposal; numSubmissions[msg.sender] += 1; proposalAuthors.push(msg.sender); emit ProposalCreated(proposalId, msg.sender); return proposalId; } /** * @dev Delete proposals. * * Emits a {IGovernor-ProposalsDeleted} event. */ function deleteProposals(uint256[] calldata proposalIdsToDelete) public virtual { require(msg.sender == creator(), "Governor: only the contest creator can delete proposals"); require( state() != ContestState.Completed, "Governor: deletion of proposals after the end of a contest is not allowed" ); for (uint256 index = 0; index < proposalIdsToDelete.length; index++) { uint256 currentProposalId = proposalIdsToDelete[index]; if (!proposalIsDeleted[currentProposalId]) { // if this proposal hasn't already been deleted proposalIsDeleted[currentProposalId] = true; // this proposal now won't count towards the total number allowed in the contest // it will still count towards the total number of proposals that the user is allowed to submit though deletedProposalIds.push(currentProposalId); } } emit ProposalsDeleted(proposalIds); } /** * @dev * * Emits a {IGovernor-ContestCanceled} event. */ function cancel() public virtual { require( ((msg.sender == creator()) || (msg.sender == JK_LABS_ADDRESS)), "Governor: only creator or jk labs can cancel a contest" ); ContestState status = state(); require(status != ContestState.Canceled && status != ContestState.Completed, "Governor: contest not active"); canceled = true; emit ContestCanceled(); } /** * @dev See {IGovernor-verifyVoter}. */ function verifyVoter(address account, uint256 totalVotes, bytes32[] calldata proof) public override returns (bool verified) { if (!addressTotalVotesVerified[account]) { checkProof(account, totalVotes, proof, true); // will revert with NotInMerkle if not valid addressTotalVotes[account] = totalVotes; addressTotalVotesVerified[account] = true; } return true; } /** * @dev See {IGovernor-castVote}. */ function castVote(uint256 proposalId, uint8 support, uint256 totalVotes, uint256 numVotes, bytes32[] calldata proof) public virtual override returns (uint256) { address voter = msg.sender; require(!isProposalDeleted(proposalId), "Governor: you cannot vote on a deleted proposal"); require(verifyVoter(voter, totalVotes, proof), "Governor: this address is not permissioned to vote"); return _castVote(proposalId, voter, support, numVotes); } /** * @dev See {IGovernor-castVoteWithoutProof}. */ function castVoteWithoutProof(uint256 proposalId, uint8 support, uint256 numVotes) public virtual override returns (uint256) { address voter = msg.sender; require(!isProposalDeleted(proposalId), "Governor: you cannot vote on a deleted proposal"); require( addressTotalVotesVerified[voter], "Governor: you need to cast a vote with the proof at least once and you haven't yet" ); return _castVote(proposalId, voter, support, numVotes); } /** * @dev Internal vote casting mechanism: Check that the vote is pending, that it has not been cast yet, retrieve * voting weight using addressTotalVotes() and call the {_countVote} internal function. * * Emits a {IGovernor-VoteCast} event. */ function _castVote(uint256 proposalId, address account, uint8 support, uint256 numVotes) internal virtual returns (uint256) { require(state() == ContestState.Active, "Governor: vote not currently active"); require(numVotes > 0, "Governor: cannot vote with 0 or fewer votes"); require( addressTotalVotesVerified[account], "Governor: you need to verify your number of votes against the merkle root first" ); _countVote(proposalId, account, support, numVotes, addressTotalVotes[account]); addressesThatHaveVoted.push(msg.sender); emit VoteCast(account, proposalId, support, numVotes); return addressTotalVotes[account]; } /** * @dev Address through which the governor executes action. Will be overloaded by module that execute actions * through another contract such as a timelock. */ function _executor() internal view virtual returns (address) { return address(this); } } // OpenZeppelin Contracts (last updated v4.9.0) (utils/Timers.sol) /** * @dev Tooling for timepoints, timers and delays * * CAUTION: This file is deprecated as of 4.9 and will be removed in the next major release. */ library Timers { struct Timestamp { uint64 _deadline; } function getDeadline(Timestamp memory timer) internal pure returns (uint64) { return timer._deadline; } function setDeadline(Timestamp storage timer, uint64 timestamp) internal { timer._deadline = timestamp; } function reset(Timestamp storage timer) internal { timer._deadline = 0; } function isUnset(Timestamp memory timer) internal pure returns (bool) { return timer._deadline == 0; } function isStarted(Timestamp memory timer) internal pure returns (bool) { return timer._deadline > 0; } function isPending(Timestamp memory timer) internal view returns (bool) { return timer._deadline > block.timestamp; } function isExpired(Timestamp memory timer) internal view returns (bool) { return isStarted(timer) && timer._deadline <= block.timestamp; } struct BlockNumber { uint64 _deadline; } function getDeadline(BlockNumber memory timer) internal pure returns (uint64) { return timer._deadline; } function setDeadline(BlockNumber storage timer, uint64 timestamp) internal { timer._deadline = timestamp; } function reset(BlockNumber storage timer) internal { timer._deadline = 0; } function isUnset(BlockNumber memory timer) internal pure returns (bool) { return timer._deadline == 0; } function isStarted(BlockNumber memory timer) internal pure returns (bool) { return timer._deadline > 0; } function isPending(BlockNumber memory timer) internal view returns (bool) { return timer._deadline > block.number; } function isExpired(BlockNumber memory timer) internal view returns (bool) { return isStarted(timer) && timer._deadline <= block.number; } } /** * @dev Extension of {Governor} for settings updatable through governance. */ abstract contract GovernorSettings is Governor { uint256 private _contestStart; uint256 private _votingDelay; uint256 private _votingPeriod; uint256 private _numAllowedProposalSubmissions; uint256 private _maxProposalCount; uint256 private _downvotingAllowed; address private _creator; event ContestStartSet(uint256 oldContestStart, uint256 newContestStart); event VotingDelaySet(uint256 oldVotingDelay, uint256 newVotingDelay); event VotingPeriodSet(uint256 oldVotingPeriod, uint256 newVotingPeriod); event NumAllowedProposalSubmissionsSet( uint256 oldNumAllowedProposalSubmissions, uint256 newNumAllowedProposalSubmissions ); event MaxProposalCountSet(uint256 oldMaxProposalCount, uint256 newMaxProposalCount); event DownvotingAllowedSet(uint256 oldDownvotingAllowed, uint256 newDownvotingAllowed); event CreatorSet(address oldCreator, address newCreator); /** * @dev Initialize the governance parameters. */ constructor( uint256 initialContestStart, uint256 initialVotingDelay, uint256 initialVotingPeriod, uint256 initialNumAllowedProposalSubmissions, uint256 initialMaxProposalCount, uint256 initialDownvotingAllowed ) { _setContestStart(initialContestStart); _setVotingDelay(initialVotingDelay); _setVotingPeriod(initialVotingPeriod); _setNumAllowedProposalSubmissions(initialNumAllowedProposalSubmissions); _setMaxProposalCount(initialMaxProposalCount); _setDownvotingAllowed(initialDownvotingAllowed); _setCreator(msg.sender); } /** * @dev See {IGovernor-contestStart}. */ function contestStart() public view virtual override returns (uint256) { return _contestStart; } /** * @dev See {IGovernor-votingDelay}. */ function votingDelay() public view virtual override returns (uint256) { return _votingDelay; } /** * @dev See {IGovernor-votingPeriod}. */ function votingPeriod() public view virtual override returns (uint256) { return _votingPeriod; } /** * @dev See {Governor-numAllowedProposalSubmissions}. */ function numAllowedProposalSubmissions() public view virtual override returns (uint256) { return _numAllowedProposalSubmissions; } /** * @dev Max number of proposals allowed in this contest */ function maxProposalCount() public view virtual override returns (uint256) { return _maxProposalCount; } /** * @dev If downvoting is enabled in this contest */ function downvotingAllowed() public view virtual override returns (uint256) { return _downvotingAllowed; } /** * @dev See {IGovernor-creator}. */ function creator() public view virtual override returns (address) { return _creator; } /** * @dev Internal setter for the contestStart. * * Emits a {ContestStartSet} event. */ function _setContestStart(uint256 newContestStart) internal virtual { emit ContestStartSet(_contestStart, newContestStart); _contestStart = newContestStart; } /** * @dev Internal setter for the voting delay. * * Emits a {VotingDelaySet} event. */ function _setVotingDelay(uint256 newVotingDelay) internal virtual { emit VotingDelaySet(_votingDelay, newVotingDelay); _votingDelay = newVotingDelay; } /** * @dev Internal setter for the voting period. * * Emits a {VotingPeriodSet} event. */ function _setVotingPeriod(uint256 newVotingPeriod) internal virtual { // voting period must be at least one block long require(newVotingPeriod > 0, "GovernorSettings: voting period too low"); emit VotingPeriodSet(_votingPeriod, newVotingPeriod); _votingPeriod = newVotingPeriod; } /** * @dev Internal setter for the number of allowed proposal submissions per permissioned address. * * Emits a {NumAllowedProposalSubmissionsSet} event. */ function _setNumAllowedProposalSubmissions(uint256 newNumAllowedProposalSubmissions) internal virtual { emit NumAllowedProposalSubmissionsSet(_numAllowedProposalSubmissions, newNumAllowedProposalSubmissions); _numAllowedProposalSubmissions = newNumAllowedProposalSubmissions; } /** * @dev Internal setter for the max proposal count. * * Emits a {MaxProposalCountSet} event. */ function _setMaxProposalCount(uint256 newMaxProposalCount) internal virtual { emit MaxProposalCountSet(_maxProposalCount, newMaxProposalCount); _maxProposalCount = newMaxProposalCount; } /** * @dev Internal setter for if downvoting is allowed. * * Emits a {DownvotingAllowedSet} event. */ function _setDownvotingAllowed(uint256 newDownvotingAllowed) internal virtual { emit DownvotingAllowedSet(_downvotingAllowed, newDownvotingAllowed); _downvotingAllowed = newDownvotingAllowed; } /** * @dev Internal setter for creator. * * Emits a {CreatorSet} event. */ function _setCreator(address newCreator) internal virtual { emit CreatorSet(_creator, newCreator); _creator = newCreator; } } /** * @dev Extension of {Governor} for simple, 3 options, vote counting. */ abstract contract GovernorCountingSimple is Governor { /** * @dev Supported vote types. Matches Governor Bravo ordering. */ enum VoteType { For, Against } struct VoteCounts { uint256 forVotes; uint256 againstVotes; } struct ProposalVote { VoteCounts proposalVoteCounts; address[] addressesVoted; mapping(address => VoteCounts) addressVoteCounts; } uint256 public totalVotesCast; // Total votes cast in contest so far mapping(address => uint256) public addressTotalCastVoteCounts; mapping(uint256 => ProposalVote) public proposalVotesStructs; /** * @dev Accessor to the internal vote counts for a given proposal. */ function proposalVotes(uint256 proposalId) public view virtual returns (uint256 forVotes, uint256 againstVotes) { ProposalVote storage proposalvote = proposalVotesStructs[proposalId]; return (proposalvote.proposalVoteCounts.forVotes, proposalvote.proposalVoteCounts.againstVotes); } /** * @dev Accessor to how many votes an address has cast for a given proposal. */ function proposalAddressVotes(uint256 proposalId, address userAddress) public view virtual returns (uint256 forVotes, uint256 againstVotes) { ProposalVote storage proposalvote = proposalVotesStructs[proposalId]; return ( proposalvote.addressVoteCounts[userAddress].forVotes, proposalvote.addressVoteCounts[userAddress].againstVotes ); } /** * @dev Accessor to which addresses have cast a vote for a given proposal. */ function proposalAddressesHaveVoted(uint256 proposalId) public view virtual returns (address[] memory) { ProposalVote storage proposalvote = proposalVotesStructs[proposalId]; return proposalvote.addressesVoted; } /** * @dev Accessor to how many votes an address has cast total for the contest so far. */ function contestAddressTotalVotesCast(address userAddress) public view virtual returns (uint256 userTotalVotesCast) { return addressTotalCastVoteCounts[userAddress]; } /** * @dev See {Governor-_countVote}. In this module, the support follows the `VoteType` enum (from Governor Bravo). */ function _countVote(uint256 proposalId, address account, uint8 support, uint256 numVotes, uint256 totalVotes) internal virtual override { ProposalVote storage proposalvote = proposalVotesStructs[proposalId]; require( numVotes <= (totalVotes - addressTotalCastVoteCounts[account]), "GovernorVotingSimple: not enough votes left to cast" ); bool firstTimeVoting = ( proposalvote.addressVoteCounts[account].forVotes == 0 && proposalvote.addressVoteCounts[account].againstVotes == 0 ); if (support == uint8(VoteType.For)) { proposalvote.proposalVoteCounts.forVotes += numVotes; proposalvote.addressVoteCounts[account].forVotes += numVotes; } else if (support == uint8(VoteType.Against)) { require(downvotingAllowed() == 1, "GovernorVotingSimple: downvoting is not enabled for this Contest"); proposalvote.proposalVoteCounts.againstVotes += numVotes; proposalvote.addressVoteCounts[account].againstVotes += numVotes; } else { revert("GovernorVotingSimple: invalid value for enum VoteType"); } if (firstTimeVoting) { proposalvote.addressesVoted.push(account); } addressTotalCastVoteCounts[account] += numVotes; totalVotesCast += numVotes; } } // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol) // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); } // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol) /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to * 0 before setting it to a non-zero value. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } } /** * @dev Extension of {GovernorCountingSimple} for sorting and ranking. * * _Available since v4.3._ */ abstract contract GovernorSorting is GovernorCountingSimple { bool public setSortedAndTiedProposalsHasBeenRun = false; mapping(uint256 => uint256) public tiedAdjustedRankingPosition; // key is ranking, value is index of the last iteration of that ranking's value in the _sortedProposalIds array taking ties into account mapping(uint256 => bool) private _isTied; // whether a ranking is tied. key is ranking. uint256[] private _sortedProposalIds; uint256 private _lowestRanking; // worst ranking (1 is the best possible ranking, 8 is a lower/worse ranking than 1) uint256 private _highestTiedRanking; // best (1 is better than 8) ranking that is tied /** * @dev Getter if a given ranking is tied. */ function isTied(uint256 ranking) public view returns (bool) { require( setSortedAndTiedProposalsHasBeenRun, "RewardsModule: run setSortedAndTiedProposals() to populate this value" ); return _isTied[ranking]; } /** * @dev Getter for tiedAdjustedRankingPosition of a ranking. */ function rankingPosition(uint256 ranking) public view returns (uint256) { require( setSortedAndTiedProposalsHasBeenRun, "RewardsModule: run setSortedAndTiedProposals() to populate this value" ); return tiedAdjustedRankingPosition[ranking]; } /** * @dev Getter for _sortedProposalIds. */ function sortedProposalIds() public view returns (uint256[] memory) { require( setSortedAndTiedProposalsHasBeenRun, "RewardsModule: run setSortedAndTiedProposals() to populate this value" ); return _sortedProposalIds; } /** * @dev Getter for the lowest ranking. */ function lowestRanking() public view returns (uint256) { require( setSortedAndTiedProposalsHasBeenRun, "RewardsModule: run setSortedAndTiedProposals() to populate this value" ); return _lowestRanking; } /** * @dev Getter for highest tied ranking. */ function highestTiedRanking() public view returns (uint256) { require( setSortedAndTiedProposalsHasBeenRun, "RewardsModule: run setSortedAndTiedProposals() to populate this value" ); return _highestTiedRanking; } /** * @dev Accessor to the internal vote counts for a given proposal. */ function allProposalTotalVotes() public view virtual returns (uint256[] memory proposalIdsReturn, VoteCounts[] memory proposalVoteCountsArrayReturn) { uint256[] memory proposalIdsMemVar = proposalIds; VoteCounts[] memory proposalVoteCountsArray = new VoteCounts[](proposalIdsMemVar.length); for (uint256 i = 0; i < proposalIdsMemVar.length; i++) { proposalVoteCountsArray[i] = proposalVotesStructs[proposalIdsMemVar[i]].proposalVoteCounts; } return (proposalIdsMemVar, proposalVoteCountsArray); } /** * @dev Accessor to the internal vote counts for a given proposal that excludes deleted proposals. */ function allProposalTotalVotesWithoutDeleted() public view virtual returns (uint256[] memory proposalIdsReturn, VoteCounts[] memory proposalVoteCountsArrayReturn) { uint256[] memory proposalIdsMemVar = proposalIds; uint256[] memory proposalIdsWithoutDeleted = new uint256[](proposalIdsMemVar.length); VoteCounts[] memory proposalVoteCountsArray = new VoteCounts[](proposalIdsMemVar.length); uint256 newArraysIndexCounter = 0; for (uint256 i = 0; i < proposalIdsMemVar.length; i++) { if (!isProposalDeleted(proposalIdsMemVar[i])) { proposalIdsWithoutDeleted[newArraysIndexCounter] = proposalIdsMemVar[i]; proposalVoteCountsArray[newArraysIndexCounter] = proposalVotesStructs[proposalIdsMemVar[i]].proposalVoteCounts; newArraysIndexCounter += 1; } } return (proposalIdsWithoutDeleted, proposalVoteCountsArray); } function _sortItem(uint256 pos, int256[] memory netProposalVotes, uint256[] memory proposalIds) internal pure returns (bool) { uint256 wMin = pos; for (uint256 i = pos; i < netProposalVotes.length; i++) { if (netProposalVotes[i] < netProposalVotes[wMin]) { wMin = i; } } if (wMin == pos) return false; int256 votesTmp = netProposalVotes[pos]; netProposalVotes[pos] = netProposalVotes[wMin]; netProposalVotes[wMin] = votesTmp; uint256 proposalIdsTmp = proposalIds[pos]; proposalIds[pos] = proposalIds[wMin]; proposalIds[wMin] = proposalIdsTmp; return true; } /** * @dev Accessor to sorted list of proposalIds in ascending order. */ function sortedProposals(bool excludeDeletedProposals) public view virtual returns (uint256[] memory sortedProposalIdsReturn) { (uint256[] memory proposalIdList, VoteCounts[] memory proposalVoteCountsArray) = excludeDeletedProposals ? allProposalTotalVotesWithoutDeleted() : allProposalTotalVotes(); require(proposalIdList.length > 0, "GovernorSorting: cannot sort a list of zero length"); int256[] memory netProposalVotes = new int256[](proposalIdList.length); for (uint256 i = 0; i < proposalVoteCountsArray.length; i++) { netProposalVotes[i] = SafeCast.toInt256(proposalVoteCountsArray[i].forVotes) - SafeCast.toInt256(proposalVoteCountsArray[i].againstVotes); } for (uint256 i = 0; i < proposalIdList.length - 1; i++) { // Only goes to length minus 1 because sorting the last item would be redundant _sortItem(i, netProposalVotes, proposalIdList); } return proposalIdList; } /** * @dev Setter for _sortedProposalIds, tiedAdjustedRankingPosition, _isTied, _lowestRanking, * and _highestTiedRanking. Will only be called once and only needs to be called once because once the contest * is complete these values don't change. Determines if a ranking is tied and also where the last * iteration of a ranking is in the _sortedProposalIds list taking ties into account. */ function setSortedAndTiedProposals() public virtual { require( state() == IGovernor.ContestState.Completed, "GovernorSorting: contest must be to calculate sorted and tied proposals" ); require( !setSortedAndTiedProposalsHasBeenRun, "GovernorSorting: setSortedAndTiedProposals() has already been run and its respective values set" ); _sortedProposalIds = sortedProposals(true); int256 lastTotalVotes; uint256 rankingBeingChecked = 1; _highestTiedRanking = _sortedProposalIds.length + 1; // set as default so that it isn't 0 if no ties are found uint256 sortedProposalIdsLength = _sortedProposalIds.length; for (uint256 i = 0; i < sortedProposalIdsLength; i++) { uint256 lastSortedItemIndex = _sortedProposalIds.length - 1; // decrement through the ascending sorted list (uint256 currentForVotes, uint256 currentAgainstVotes) = proposalVotes(_sortedProposalIds[lastSortedItemIndex - i]); int256 currentTotalVotes = SafeCast.toInt256(currentForVotes) - SafeCast.toInt256(currentAgainstVotes); // if on first item, set lastTotalVotes and continue if (i == 0) { lastTotalVotes = currentTotalVotes; // if on last item, then the value at the current index is // the last iteration of the last ranking's value if (_sortedProposalIds.length == 1) { tiedAdjustedRankingPosition[rankingBeingChecked] = lastSortedItemIndex; _lowestRanking = rankingBeingChecked; } continue; } // if there is a tie, mark that this ranking is tied if (currentTotalVotes == lastTotalVotes) { if (!_isTied[rankingBeingChecked]) { // if this is not already set _isTied[rankingBeingChecked] = true; } if (_highestTiedRanking == _sortedProposalIds.length + 1) { // if this is the first tie found, set it as the highest tied ranking _highestTiedRanking = rankingBeingChecked; } } else { // otherwise, mark that the last iteration of this ranking's value is at the index // above the current index in the sorted list, then increment the ranking being checked // index we last decremented from is the last iteration of the current rank's value tiedAdjustedRankingPosition[rankingBeingChecked] = lastSortedItemIndex - i + 1; rankingBeingChecked++; } // if on last item, then the value at the current index is the last iteration of the last ranking's value if (i + 1 == _sortedProposalIds.length) { tiedAdjustedRankingPosition[rankingBeingChecked] = lastSortedItemIndex - i; _lowestRanking = rankingBeingChecked; } lastTotalVotes = currentTotalVotes; } setSortedAndTiedProposalsHasBeenRun = true; } } /** * @title RewardsModule * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. The distribution of shares is set at the * time of contract deployment and can't be updated thereafter. * * `RewardsModule` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. * * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you * to run tests before sending real value to this contract. */ contract RewardsModule is Context { event PayeeAdded(uint256 ranking, uint256 shares); event PaymentReleased(address to, uint256 amount); event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount); event PaymentReceived(address from, uint256 amount); event RewardWithdrawn(address by, uint256 amount); event ERC20RewardWithdrawn(IERC20 indexed token, address by, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(uint256 => uint256) private _shares; mapping(uint256 => uint256) private _released; uint256[] private _payees; mapping(IERC20 => uint256) private _erc20TotalReleased; mapping(IERC20 => mapping(uint256 => uint256)) private _erc20Released; GovernorSorting private immutable _underlyingContest; address private immutable _creator; bool private immutable _paysOutTarget; // if true, pay out target address; if false, pay out proposal author /** * @dev Creates an instance of `RewardsModule` where each ranking in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All rankings in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor( uint256[] memory payees, uint256[] memory shares_, GovernorSorting underlyingContest_, bool paysOutTarget_ ) payable { require(payees.length == shares_.length, "RewardsModule: payees and shares length mismatch"); require(payees.length > 0, "RewardsModule: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } require(_totalShares != 0, "RewardsModule: the total number of shares cannot equal 0"); _paysOutTarget = paysOutTarget_; _underlyingContest = underlyingContest_; _creator = msg.sender; } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. */ receive() external payable virtual { emit PaymentReceived(msg.sender, msg.value); } /** * @dev Version of the rewards module. Default: "1" */ function version() public view virtual returns (string memory) { return "3.18"; } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the creator of this rewards contract. */ function creator() public view returns (address) { return _creator; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20 * contract. */ function totalReleased(IERC20 token) public view returns (uint256) { return _erc20TotalReleased[token]; } /** * @dev Getter for the amount of shares held by a ranking. */ function shares(uint256 ranking) public view returns (uint256) { return _shares[ranking]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(uint256 ranking) public view returns (uint256) { return _released[ranking]; } /** * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an * IERC20 contract. */ function released(IERC20 token, uint256 ranking) public view returns (uint256) { return _erc20Released[token][ranking]; } /** * @dev Getter for list of rankings that will be paid out. */ function getPayees() public view returns (uint256[] memory) { return _payees; } /** * @dev Getter for whether this pays out the target address or author of a proposal. */ function paysOutTarget() public view returns (bool) { return _paysOutTarget; } /** * @dev Getter for the underlying contest. */ function underlyingContest() public view returns (GovernorCountingSimple) { return _underlyingContest; } /** * @dev Getter for the amount of payee's releasable Ether. */ function releasable(uint256 ranking) public view returns (uint256) { uint256 totalReceived = address(this).balance + totalReleased(); return _pendingPayment(ranking, totalReceived, released(ranking)); } /** * @dev Getter for the amount of payee's releasable `token` tokens. `token` should be the address of an * IERC20 contract. */ function releasable(IERC20 token, uint256 ranking) public view returns (uint256) { uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token); return _pendingPayment(ranking, totalReceived, released(token, ranking)); } /** * @dev Triggers a transfer to `ranking` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(uint256 ranking) public virtual { require(ranking != 0, "RewardsModule: ranking must be 1 or greater"); require( _underlyingContest.state() == IGovernor.ContestState.Completed, "RewardsModule: contest must be completed for rewards to be paid out" ); require(_shares[ranking] > 0, "RewardsModule: ranking has no shares"); uint256 payment = releasable(ranking); require( payment != 0, "RewardsModule: account isn't due payment as there isn't any native currency in the module to pay out" ); // _totalReleased is the sum of all values in _released. // If "_totalReleased += payment" does not overflow, then "_released[account] += payment" cannot overflow. _totalReleased += payment; unchecked { _released[ranking] += payment; } // if not already set, set _sortedProposalIds, _tiedAdjustedRankingPosition, _isTied, // _lowestRanking, and _highestTiedRanking if (!_underlyingContest.setSortedAndTiedProposalsHasBeenRun()) { _underlyingContest.setSortedAndTiedProposals(); } require( ranking <= _underlyingContest.lowestRanking(), "RewardsModule: there are not enough proposals for that ranking to exist, taking ties into account" ); IGovernor.ProposalCore memory rankingProposal = _underlyingContest.getProposal( _underlyingContest.sortedProposalIds()[_underlyingContest.tiedAdjustedRankingPosition(ranking)] ); // send rewards to winner only if the ranking is higher than the highest tied ranking address payable addressToPayOut = ranking < _underlyingContest.highestTiedRanking() ? _paysOutTarget ? payable(rankingProposal.targetMetadata.targetAddress) : payable(rankingProposal.author) : payable(creator()); require(addressToPayOut != address(0), "RewardsModule: account is the zero address"); emit PaymentReleased(addressToPayOut, payment); Address.sendValue(addressToPayOut, payment); } /** * @dev Triggers a transfer to `ranking` of the amount of `token` tokens they are owed, according to their * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20 * contract. */ function release(IERC20 token, uint256 ranking) public virtual { require(ranking != 0, "RewardsModule: ranking must be 1 or greater"); require( _underlyingContest.state() == IGovernor.ContestState.Completed, "RewardsModule: contest must be completed for rewards to be paid out" ); require(_shares[ranking] > 0, "RewardsModule: ranking has no shares"); uint256 payment = releasable(token, ranking); require( payment != 0, "RewardsModule: account isn't due payment as there isn't any native currency in the module to pay out" ); // _erc20TotalReleased[token] is the sum of all values in _erc20Released[token]. // If "_erc20TotalReleased[token] += payment" does not overflow, then "_erc20Released[token][account] += payment" cannot overflow. _erc20TotalReleased[token] += payment; unchecked { _erc20Released[token][ranking] += payment; } // if not already set, set _sortedProposalIds, _tiedAdjustedRankingPosition, _isTied, // _lowestRanking, and _highestTiedRanking if (!_underlyingContest.setSortedAndTiedProposalsHasBeenRun()) { _underlyingContest.setSortedAndTiedProposals(); } require( ranking <= _underlyingContest.lowestRanking(), "RewardsModule: there are not enough proposals for that ranking to exist, taking ties into account" ); IGovernor.ProposalCore memory rankingProposal = _underlyingContest.getProposal( _underlyingContest.sortedProposalIds()[_underlyingContest.tiedAdjustedRankingPosition(ranking)] ); // send rewards to winner only if the ranking is higher than the highest tied ranking address payable addressToPayOut = ranking < _underlyingContest.highestTiedRanking() ? _paysOutTarget ? payable(rankingProposal.targetMetadata.targetAddress) : payable(rankingProposal.author) : payable(creator()); require(addressToPayOut != address(0), "RewardsModule: account is the zero address"); emit ERC20PaymentReleased(token, addressToPayOut, payment); SafeERC20.safeTransfer(token, addressToPayOut, payment); } function withdrawRewards() public virtual { require(msg.sender == creator(), "RewardsModule: only the creator can withdraw rewards"); emit RewardWithdrawn(creator(), address(this).balance); Address.sendValue(payable(creator()), address(this).balance); } function withdrawRewards(IERC20 token) public virtual { require(msg.sender == creator(), "RewardsModule: only the creator can withdraw rewards"); emit ERC20RewardWithdrawn(token, creator(), token.balanceOf(address(this))); SafeERC20.safeTransfer(token, payable(creator()), token.balanceOf(address(this))); } /** * @dev internal logic for computing the pending payment of a `ranking` given the token historical balances and * already released amounts. */ function _pendingPayment(uint256 ranking, uint256 totalReceived, uint256 alreadyReleased) private view returns (uint256) { return (totalReceived * _shares[ranking]) / _totalShares - alreadyReleased; } /** * @dev Add a new payee to the contract. * @param ranking The ranking of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(uint256 ranking, uint256 shares_) private { require(ranking > 0, "RewardsModule: ranking is 0, must be greater"); require(shares_ > 0, "RewardsModule: shares are 0"); require(_shares[ranking] == 0, "RewardsModule: account already has shares"); _payees.push(ranking); _shares[ranking] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(ranking, shares_); } } /** * @dev Extension of {Governor} for module management. * */ abstract contract GovernorModuleRegistry is Governor { event OfficialRewardsModuleSet(RewardsModule oldOfficialRewardsModule, RewardsModule newOfficialRewardsModule); RewardsModule public officialRewardsModule; /** * @dev Get the official rewards module contract for this contest (effectively reverse record). */ function setOfficialRewardsModule(RewardsModule officialRewardsModule_) public virtual { require(msg.sender == creator(), "GovernorModuleRegistry: only the creator can set the official rewards module"); RewardsModule oldOfficialRewardsModule = officialRewardsModule; officialRewardsModule = officialRewardsModule_; emit OfficialRewardsModuleSet(oldOfficialRewardsModule, officialRewardsModule_); } } contract Contest is Governor, GovernorSettings, GovernorSorting, GovernorModuleRegistry { constructor( string memory _name, string memory _prompt, bytes32 _submissionMerkleRoot, bytes32 _votingMerkleRoot, uint256[] memory _constructorIntParams ) Governor(_name, _prompt, _submissionMerkleRoot, _votingMerkleRoot) GovernorSettings( _constructorIntParams[0], // _initialContestStart _constructorIntParams[1], // _initialVotingDelay, _constructorIntParams[2], // _initialVotingPeriod, _constructorIntParams[3], // _initialNumAllowedProposalSubmissions, _constructorIntParams[4], // _initialMaxProposalCount _constructorIntParams[5] // _initialDownvotingAllowed ) {} // The following functions are overrides required by Solidity. function contestStart() public view override(IGovernor, GovernorSettings) returns (uint256) { return super.contestStart(); } function votingDelay() public view override(IGovernor, GovernorSettings) returns (uint256) { return super.votingDelay(); } function votingPeriod() public view override(IGovernor, GovernorSettings) returns (uint256) { return super.votingPeriod(); } function numAllowedProposalSubmissions() public view override(Governor, GovernorSettings) returns (uint256) { return super.numAllowedProposalSubmissions(); } function maxProposalCount() public view override(Governor, GovernorSettings) returns (uint256) { return super.maxProposalCount(); } function downvotingAllowed() public view override(Governor, GovernorSettings) returns (uint256) { return super.downvotingAllowed(); } function creator() public view override(IGovernor, GovernorSettings) returns (address) { return super.creator(); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_prompt","type":"string"},{"internalType":"bytes32","name":"_submissionMerkleRoot","type":"bytes32"},{"internalType":"bytes32","name":"_votingMerkleRoot","type":"bytes32"},{"internalType":"uint256[]","name":"_constructorIntParams","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[],"name":"NotInMerkle","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"inputs":[],"name":"TooManyMetadatas","type":"error"},{"anonymous":false,"inputs":[],"name":"ContestCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldContestStart","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newContestStart","type":"uint256"}],"name":"ContestStartSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldCreator","type":"address"},{"indexed":false,"internalType":"address","name":"newCreator","type":"address"}],"name":"CreatorSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldDownvotingAllowed","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newDownvotingAllowed","type":"uint256"}],"name":"DownvotingAllowedSet","type":"event"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"address","name":"creator","type":"address"}],"name":"JokeraceCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldMaxProposalCount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newMaxProposalCount","type":"uint256"}],"name":"MaxProposalCountSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldNumAllowedProposalSubmissions","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newNumAllowedProposalSubmissions","type":"uint256"}],"name":"NumAllowedProposalSubmissionsSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract RewardsModule","name":"oldOfficialRewardsModule","type":"address"},{"indexed":false,"internalType":"contract RewardsModule","name":"newOfficialRewardsModule","type":"address"}],"name":"OfficialRewardsModuleSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"proposalId","type":"uint256"},{"indexed":false,"internalType":"address","name":"proposer","type":"address"}],"name":"ProposalCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"proposalIds","type":"uint256[]"}],"name":"ProposalsDeleted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"voter","type":"address"},{"indexed":false,"internalType":"uint256","name":"proposalId","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"support","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"numVotes","type":"uint256"}],"name":"VoteCast","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldVotingDelay","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newVotingDelay","type":"uint256"}],"name":"VotingDelaySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldVotingPeriod","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newVotingPeriod","type":"uint256"}],"name":"VotingPeriodSet","type":"event"},{"inputs":[],"name":"AMOUNT_FOR_SUMBITTER_PROOF","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"JK_LABS_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"METADATAS_COUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressSubmitterVerified","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressTotalCastVoteCounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressTotalVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressTotalVotesVerified","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"addressesThatHaveVoted","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allProposalTotalVotes","outputs":[{"internalType":"uint256[]","name":"proposalIdsReturn","type":"uint256[]"},{"components":[{"internalType":"uint256","name":"forVotes","type":"uint256"},{"internalType":"uint256","name":"againstVotes","type":"uint256"}],"internalType":"struct GovernorCountingSimple.VoteCounts[]","name":"proposalVoteCountsArrayReturn","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allProposalTotalVotesWithoutDeleted","outputs":[{"internalType":"uint256[]","name":"proposalIdsReturn","type":"uint256[]"},{"components":[{"internalType":"uint256","name":"forVotes","type":"uint256"},{"internalType":"uint256","name":"againstVotes","type":"uint256"}],"internalType":"struct GovernorCountingSimple.VoteCounts[]","name":"proposalVoteCountsArrayReturn","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cancel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"canceled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"},{"internalType":"uint8","name":"support","type":"uint8"},{"internalType":"uint256","name":"totalVotes","type":"uint256"},{"internalType":"uint256","name":"numVotes","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"castVote","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"},{"internalType":"uint8","name":"support","type":"uint8"},{"internalType":"uint256","name":"numVotes","type":"uint256"}],"name":"castVoteWithoutProof","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addressToCheck","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"bool","name":"voting","type":"bool"}],"name":"checkProof","outputs":[{"internalType":"bool","name":"verified","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"}],"name":"contestAddressTotalVotesCast","outputs":[{"internalType":"uint256","name":"userTotalVotesCast","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contestDeadline","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contestStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"creator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"proposalIdsToDelete","type":"uint256[]"}],"name":"deleteProposals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"deletedProposalIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"downvotingAllowed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllAddressesThatHaveVoted","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllDeletedProposalIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllProposalAuthors","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllProposalIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getNumSubmissions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"getProposal","outputs":[{"components":[{"internalType":"address","name":"author","type":"address"},{"internalType":"bool","name":"exists","type":"bool"},{"internalType":"string","name":"description","type":"string"},{"components":[{"internalType":"address","name":"targetAddress","type":"address"}],"internalType":"struct IGovernor.TargetMetadata","name":"targetMetadata","type":"tuple"},{"components":[{"internalType":"address[]","name":"signers","type":"address[]"},{"internalType":"uint256","name":"threshold","type":"uint256"}],"internalType":"struct IGovernor.SafeMetadata","name":"safeMetadata","type":"tuple"}],"internalType":"struct IGovernor.ProposalCore","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"author","type":"address"},{"internalType":"bool","name":"exists","type":"bool"},{"internalType":"string","name":"description","type":"string"},{"components":[{"internalType":"address","name":"targetAddress","type":"address"}],"internalType":"struct IGovernor.TargetMetadata","name":"targetMetadata","type":"tuple"},{"components":[{"internalType":"address[]","name":"signers","type":"address[]"},{"internalType":"uint256","name":"threshold","type":"uint256"}],"internalType":"struct IGovernor.SafeMetadata","name":"safeMetadata","type":"tuple"}],"internalType":"struct IGovernor.ProposalCore","name":"proposal","type":"tuple"}],"name":"hashProposal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"highestTiedRanking","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"isProposalDeleted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"ranking","type":"uint256"}],"name":"isTied","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lowestRanking","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxProposalCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numAllowedProposalSubmissions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numSubmissions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"officialRewardsModule","outputs":[{"internalType":"contract RewardsModule","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prompt","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"},{"internalType":"address","name":"userAddress","type":"address"}],"name":"proposalAddressVotes","outputs":[{"internalType":"uint256","name":"forVotes","type":"uint256"},{"internalType":"uint256","name":"againstVotes","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"proposalAddressesHaveVoted","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"proposalAuthors","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"proposalIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"proposalIsDeleted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"proposalVotes","outputs":[{"internalType":"uint256","name":"forVotes","type":"uint256"},{"internalType":"uint256","name":"againstVotes","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"proposalVotesStructs","outputs":[{"components":[{"internalType":"uint256","name":"forVotes","type":"uint256"},{"internalType":"uint256","name":"againstVotes","type":"uint256"}],"internalType":"struct GovernorCountingSimple.VoteCounts","name":"proposalVoteCounts","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"proposals","outputs":[{"internalType":"address","name":"author","type":"address"},{"internalType":"bool","name":"exists","type":"bool"},{"internalType":"string","name":"description","type":"string"},{"components":[{"internalType":"address","name":"targetAddress","type":"address"}],"internalType":"struct IGovernor.TargetMetadata","name":"targetMetadata","type":"tuple"},{"components":[{"internalType":"address[]","name":"signers","type":"address[]"},{"internalType":"uint256","name":"threshold","type":"uint256"}],"internalType":"struct IGovernor.SafeMetadata","name":"safeMetadata","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"author","type":"address"},{"internalType":"bool","name":"exists","type":"bool"},{"internalType":"string","name":"description","type":"string"},{"components":[{"internalType":"address","name":"targetAddress","type":"address"}],"internalType":"struct IGovernor.TargetMetadata","name":"targetMetadata","type":"tuple"},{"components":[{"internalType":"address[]","name":"signers","type":"address[]"},{"internalType":"uint256","name":"threshold","type":"uint256"}],"internalType":"struct IGovernor.SafeMetadata","name":"safeMetadata","type":"tuple"}],"internalType":"struct IGovernor.ProposalCore","name":"proposal","type":"tuple"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"propose","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"author","type":"address"},{"internalType":"bool","name":"exists","type":"bool"},{"internalType":"string","name":"description","type":"string"},{"components":[{"internalType":"address","name":"targetAddress","type":"address"}],"internalType":"struct IGovernor.TargetMetadata","name":"targetMetadata","type":"tuple"},{"components":[{"internalType":"address[]","name":"signers","type":"address[]"},{"internalType":"uint256","name":"threshold","type":"uint256"}],"internalType":"struct IGovernor.SafeMetadata","name":"safeMetadata","type":"tuple"}],"internalType":"struct IGovernor.ProposalCore","name":"proposal","type":"tuple"}],"name":"proposeWithoutProof","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"ranking","type":"uint256"}],"name":"rankingPosition","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract RewardsModule","name":"officialRewardsModule_","type":"address"}],"name":"setOfficialRewardsModule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setSortedAndTiedProposals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setSortedAndTiedProposalsHasBeenRun","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sortedProposalIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"excludeDeletedProposals","type":"bool"}],"name":"sortedProposals","outputs":[{"internalType":"uint256[]","name":"sortedProposalIdsReturn","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"state","outputs":[{"internalType":"enum IGovernor.ContestState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"submissionMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tiedAdjustedRankingPosition","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalVotesCast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"author","type":"address"},{"internalType":"bool","name":"exists","type":"bool"},{"internalType":"string","name":"description","type":"string"},{"components":[{"internalType":"address","name":"targetAddress","type":"address"}],"internalType":"struct IGovernor.TargetMetadata","name":"targetMetadata","type":"tuple"},{"components":[{"internalType":"address[]","name":"signers","type":"address[]"},{"internalType":"uint256","name":"threshold","type":"uint256"}],"internalType":"struct IGovernor.SafeMetadata","name":"safeMetadata","type":"tuple"}],"internalType":"struct IGovernor.ProposalCore","name":"proposal","type":"tuple"}],"name":"validateProposalData","outputs":[{"internalType":"bool","name":"dataValidated","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"verifyProposer","outputs":[{"internalType":"bool","name":"verified","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"totalVotes","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"verifyVoter","outputs":[{"internalType":"bool","name":"verified","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"voteStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"votingDelay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"votingMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"votingPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6101a06040526019805460ff191690553480156200001c57600080fd5b5060405162004c7638038062004c768339810160408190526200003f916200065d565b806000815181106200005557620000556200076e565b6020026020010151816001815181106200007357620000736200076e565b6020026020010151826002815181106200009157620000916200076e565b602002602001015183600381518110620000af57620000af6200076e565b602002602001015184600481518110620000cd57620000cd6200076e565b602002602001015185600581518110620000eb57620000eb6200076e565b60200260200101518a8a8a8a8181856200010a6200028b60201b60201c565b62000117826000620002a9565b6101205262000128816001620002a9565b61014052815160208084019190912060e052815190820120610100524660a052620001b660e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b60805250503060c05261016091909152610180526002620001d8858262000813565b506003620001e7848262000813565b507f1eae03a78f765227bc1e8574db32390cefa5b3c0a954017973e497e40a12373484336040516200021b9291906200090d565b60405180910390a1505050506200023886620002e260201b60201c565b620002438562000323565b6200024e8462000364565b62000259836200040b565b62000264826200044c565b6200026f816200048d565b6200027a33620004ce565b50505050505050505050506200097a565b6040805180820190915260048152630665c62760e31b602082015290565b6000602083511015620002c957620002c18362000537565b9050620002dc565b81620002d6848262000813565b5060ff90505b92915050565b600f5460408051918252602082018390527fd299feb1d7d9345a48559601c471c3be7eea9a11f21d5e86809198f40a974db4910160405180910390a1600f55565b60105460408051918252602082018390527fc565b045403dc03c2eea82b81a0465edad9e2e7fc4d97e11421c209da93d7a93910160405180910390a1601055565b60008111620003ca5760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f7253657474696e67733a20766f74696e6720706572696f6420604482015266746f6f206c6f7760c81b60648201526084015b60405180910390fd5b60115460408051918252602082018390527f7e3f7f0708a84de9203036abaa450dccc85ad5ff52f78c170f3edb55cf5e8828910160405180910390a1601155565b60125460408051918252602082018390527fe971b819c7fb95c72451f557226aceb5baaf4994a9d39a79bbfa0040e87500b9910160405180910390a1601255565b60135460408051918252602082018390527f4984ec996723330ee95979ed65a2a4b41edd914e68a187efe92596474643bdff910160405180910390a1601355565b60145460408051918252602082018390527f9c7b27f091caef3a83be73d89320404fa0c4a52993685ff0651672e49e6e55ab910160405180910390a1601455565b601554604080516001600160a01b03928316815291831660208301527fc30034fc2e9697980e08935bbc287db3eaa44a4aa113ef4c108b356adbf911ce910160405180910390a1601580546001600160a01b0319166001600160a01b0392909216919091179055565b600080829050601f8151111562000565578260405163305a27a960e01b8152600401620003c1919062000939565b8051620005728262000955565b179392505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620005bb57620005bb6200057a565b604052919050565b60005b83811015620005e0578181015183820152602001620005c6565b50506000910152565b600082601f830112620005fb57600080fd5b81516001600160401b038111156200061757620006176200057a565b6200062c601f8201601f191660200162000590565b8181528460208386010111156200064257600080fd5b62000655826020830160208701620005c3565b949350505050565b600080600080600060a086880312156200067657600080fd5b85516001600160401b03808211156200068e57600080fd5b6200069c89838a01620005e9565b9650602091508188015181811115620006b457600080fd5b620006c28a828b01620005e9565b9650506040880151945060608801519350608088015181811115620006e657600080fd5b8801601f81018a13620006f857600080fd5b8051828111156200070d576200070d6200057a565b8060051b92506200072084840162000590565b818152928201840192848101908c8511156200073b57600080fd5b928501925b848410156200075b5783518252928501929085019062000740565b8096505050505050509295509295909350565b634e487b7160e01b600052603260045260246000fd5b600181811c908216806200079957607f821691505b602082108103620007ba57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200080e57600081815260208120601f850160051c81016020861015620007e95750805b601f850160051c820191505b818110156200080a57828155600101620007f5565b5050505b505050565b81516001600160401b038111156200082f576200082f6200057a565b620008478162000840845462000784565b84620007c0565b602080601f8311600181146200087f5760008415620008665750858301515b600019600386901b1c1916600185901b1785556200080a565b600085815260208120601f198616915b82811015620008b0578886015182559484019460019091019084016200088f565b5085821015620008cf5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008151808452620008f9816020860160208601620005c3565b601f01601f19169290920160200192915050565b604081526000620009226040830185620008df565b905060018060a01b03831660208301529392505050565b6020815260006200094e6020830184620008df565b9392505050565b80516020808301519190811015620007ba5760001960209190910360031b1b16919050565b60805160a05160c05160e051610100516101205161014051610160516101805161427e620009f8600039600081816108e40152610f0201526000818161083d01528181610ce901528181610e9d01526111ff01526000611610015260006115e60152600050506000505060005050600050506000505061427e6000f3fe608060405234801561001057600080fd5b50600436106104065760003560e01c806375e509c511610220578063c19d93fb11610130578063ea8a1af0116100b8578063f0a7db0a11610087578063f0a7db0a14610981578063f4f3d7ec14610994578063f79c0172146109a7578063fb8ddab4146109ca578063fb9bf8d4146109dd57600080fd5b8063ea8a1af01461094e578063ebc18b9b14610956578063eef18e171461095e578063efa90d361461097957600080fd5b8063d8891619116100ff578063d8891619146108d2578063dd96a19d146108df578063dea5f6a614610906578063e031535b14610926578063e5eb5a481461092e57600080fd5b8063c19d93fb14610872578063c7f758a814610887578063cb853950146108a7578063d45a010b146108ca57600080fd5b8063930de979116101b3578063a1ac6cb211610182578063a1ac6cb2146107dc578063aec116b6146107fc578063b323580d14610825578063bddc164114610838578063c0ffaa781461085f57600080fd5b8063930de97914610794578063946369b5146107b757806396f0e962146107bf5780639b644a23146107c957600080fd5b8063832009af116101ef578063832009af1461075657806384b0196e1461075e57806386187488146107795780638a9cd5501461078c57600080fd5b806375e509c514610712578063785ddfe5146107325780637c65d711146107455780637de418d51461074d57600080fd5b80633b6d199b1161031b57806350c4b616116102ae5780635f953a031161027d5780635f953a03146106b357806360506ff6146106dc57806365f16263146106e45780636ca1a2c7146106f75780636e4eb810146106ff57600080fd5b806350c4b61614610630578063531bd81214610643578063544ffc9c1461065657806354fd4d501461069357600080fd5b8063458da87d116102ea578063458da87d146105ec578063476f4d8a146105ff5780634d24a67f1461061257806350a5e5241461061a57600080fd5b80633b6d199b146105965780633f9942ff146105b9578063419c533c146105c6578063427d56c2146105d957600080fd5b80630aa25e441161039e578063262e59e91161036d578063262e59e91461054f5780632c39805f1461055757806332763c221461056c578063347cf6651461057f5780633932abb11461058e57600080fd5b80630aa25e44146105015780631242b7371461051457806320b3e845146105295780632399c6601461053c57600080fd5b806302d05d3f116103da57806302d05d3f1461047557806305846cae1461049557806306fdde03146104a8578063070dc5d9146104bd57600080fd5b80624114a81461040b578063013cf08b1461042657806301ffc9a71461044a57806302a251a31461046d575b600080fd5b6104136109e5565b6040519081526020015b60405180910390f35b6104396104343660046134fb565b6109f5565b60405161041d9594939291906135b3565b61045d610458366004613605565b610b3d565b604051901515815260200161041d565b610413610b74565b61047d610b7f565b6040516001600160a01b03909116815260200161041d565b6104136104a33660046134fb565b610b93565b6104b0610bb4565b60405161041d919061362f565b6104f46104cb3660046134fb565b601860209081526000918252604091829020825180840190935280548352600101549082015281565b60405161041d9190613642565b61047d61050f3660046134fb565b610c46565b61051c610c70565b60405161041d9190613694565b61045d610537366004613703565b610cc7565b61045d61054a3660046134fb565b610d5d565b610413610da1565b61055f610dbd565b60405161041d9190613757565b61045d61057a3660046137b9565b610e1e565b610413678ac7230489e8000081565b610413610f5b565b61045d6105a43660046134fb565b60009081526006602052604090205460ff1690565b60075461045d9060ff1681565b6104136105d436600461383a565b610f66565b61051c6105e73660046138aa565b611022565b6104136105fa366004613b61565b6111ca565b61041361060d366004613bad565b6111fb565b61041361128b565b610622611299565b60405161041d929190613be1565b61047d61063e3660046134fb565b6113e8565b61045d610651366004613c4a565b6113f8565b61067e6106643660046134fb565b600090815260186020526040902080546001909101549091565b6040805192835260208301919091520161041d565b6040805180820190915260048152630665c62760e31b60208201526104b0565b6104136106c1366004613ca5565b6001600160a01b031660009081526009602052604090205490565b610413611463565b6104136106f2366004613cc2565b61146e565b61041361155d565b61067e61070d366004613cf7565b611589565b610413610720366004613ca5565b60096020526000908152604090205481565b601f5461047d906001600160a01b031681565b6104b06115be565b61041360165481565b6104136115cd565b6107666115d8565b60405161041d9796959493929190613d27565b6104136107873660046134fb565b611660565b61051c611698565b61045d6107a2366004613ca5565b600d6020526000908152604090205460ff1681565b61055f611711565b6107c7611771565b005b6104136107d73660046134fb565b611a8e565b6104136107ea366004613ca5565b60176020526000908152604090205481565b61041361080a366004613ca5565b6001600160a01b031660009081526017602052604090205490565b61055f6108333660046134fb565b611a9e565b6104137f000000000000000000000000000000000000000000000000000000000000000081565b61041361086d366004613d97565b611b10565b61087a611b75565b60405161041d9190613e08565b61089a6108953660046134fb565b611be7565b60405161041d9190613e30565b61045d6108b5366004613ca5565b600e6020526000908152604090205460ff1681565b610622611d61565b60195461045d9060ff1681565b6104137f000000000000000000000000000000000000000000000000000000000000000081565b610413610914366004613ca5565b600c6020526000908152604090205481565b610413611f75565b61041361093c3660046134fb565b601a6020526000908152604090205481565b6107c7611f87565b6104136120f1565b61047d73dc652c746a8f85e18ce632d97c6118e8a52fa73881565b61051c61211d565b6107c761098f366004613e97565b612173565b6107c76109a2366004613ca5565b612383565b61045d6109b53660046134fb565b60066020526000908152604090205460ff1681565b61045d6109d8366004613b61565b612480565b61041361271f565b60006109f0600f5490565b905090565b600860205260009081526040902080546001820180546001600160a01b03831693600160a01b90930460ff16929190610a2d90613ed8565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5990613ed8565b8015610aa65780601f10610a7b57610100808354040283529160200191610aa6565b820191906000526020600020905b815481529060010190602001808311610a8957829003601f168201915b5050604080516020808201835260028801546001600160a01b031682528251600389018054606093810283018401865294820185815298999398939750909550935084928491840182828015610b2557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610b07575b50505050508152602001600182015481525050905085565b60006001600160e01b031982166319cbae6160e11b1480610b6e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60006109f060115490565b60006109f06015546001600160a01b031690565b60058181548110610ba357600080fd5b600091825260209091200154905081565b606060028054610bc390613ed8565b80601f0160208091040260200160405190810160405280929190818152602001828054610bef90613ed8565b8015610c3c5780601f10610c1157610100808354040283529160200191610c3c565b820191906000526020600020905b815481529060010190602001808311610c1f57829003601f168201915b5050505050905090565b600a8181548110610c5657600080fd5b6000918252602090912001546001600160a01b0316905081565b60606005805480602002602001604051908101604052809291908181526020018280548015610c3c57602002820191906000526020600020905b815481526020019060010190808311610caa575050505050905090565b6001600160a01b0383166000908152600e602052604081205460ff16610d52577f0000000000000000000000000000000000000000000000000000000000000000600003610d1757506001610d56565b610d2d84678ac7230489e8000085856000610e1e565b506001600160a01b0384166000908152600e60205260409020805460ff191660011790555b5060015b9392505050565b60195460009060ff16610d8b5760405162461bcd60e51b8152600401610d8290613f0c565b60405180910390fd5b506000908152601b602052604090205460ff1690565b6000610dab610b74565b610db3611f75565b6109f09190613f8d565b6060600b805480602002602001604051908101604052809291908181526020018280548015610c3c57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610df7575050505050905090565b6040516bffffffffffffffffffffffff19606087901b166020820152603481018590526000908190605401604051602081830303815290604052805190602001209050600083610ecd57610ec88686808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152507f0000000000000000000000000000000000000000000000000000000000000000925086915061272a9050565b610f2d565b610f2d8686808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152507f0000000000000000000000000000000000000000000000000000000000000000925086915061272a9050565b905080610f4d5760405163452c2df160e11b815260040160405180910390fd5b506001979650505050505050565b60006109f060105490565b600086815260066020526040812054339060ff1615610f975760405162461bcd60e51b8152600401610d8290613fa0565b610fa3818786866113f8565b61100a5760405162461bcd60e51b815260206004820152603260248201527f476f7665726e6f723a20746869732061646472657373206973206e6f74207065604482015271726d697373696f6e656420746f20766f746560701b6064820152608401610d82565b61101688828988612740565b98975050505050505050565b60606000808361103957611034611299565b611041565b611041611d61565b9150915060008251116110b15760405162461bcd60e51b815260206004820152603260248201527f476f7665726e6f72536f7274696e673a2063616e6e6f7420736f72742061206c6044820152710d2e6e840decc40f4cae4de40d8cadccee8d60731b6064820152608401610d82565b600082516001600160401b038111156110cc576110cc6138c5565b6040519080825280602002602001820160405280156110f5578160200160208202803683370190505b50905060005b82518110156111895761112a83828151811061111957611119613fef565b6020026020010151602001516129a2565b61115084838151811061113f5761113f613fef565b6020026020010151600001516129a2565b61115a9190614005565b82828151811061116c5761116c613fef565b6020908102919091010152806111818161402c565b9150506110fb565b5060005b6001845161119b9190614045565b8110156111c0576111ad818386612a10565b50806111b88161402c565b91505061118d565b5091949350505050565b6000816040516020016111dd9190613e30565b60408051601f19818403018152919052805160209091012092915050565b60007f00000000000000000000000000000000000000000000000000000000000000001561125257336000908152600e602052604090205460ff166112525760405162461bcd60e51b8152600401610d8290614058565b61125e6109d8836140a7565b61127a5760405162461bcd60e51b8152600401610d82906140b3565b610b6e611286836140a7565b612b76565b611296600180613f8d565b81565b606080600060048054806020026020016040519081016040528092919081815260200182805480156112ea57602002820191906000526020600020905b8154815260200190600101908083116112d6575b50505050509050600081516001600160401b0381111561130c5761130c6138c5565b60405190808252806020026020018201604052801561135157816020015b604080518082019091526000808252602082015281526020019060019003908161132a5790505b50905060005b82518110156113de576018600084838151811061137657611376613fef565b60200260200101518152602001908152602001600020600001604051806040016040529081600082015481526020016001820154815250508282815181106113c0576113c0613fef565b602002602001018190525080806113d69061402c565b915050611357565b5090939092509050565b600b8181548110610c5657600080fd5b6001600160a01b0384166000908152600d602052604081205460ff1661145857611426858585856001610e1e565b506001600160a01b0385166000908152600c60209081526040808320879055600d9091529020805460ff191660011790555b506001949350505050565b60006109f060145490565b600083815260066020526040812054339060ff161561149f5760405162461bcd60e51b8152600401610d8290613fa0565b6001600160a01b0381166000908152600d602052604090205460ff166115485760405162461bcd60e51b815260206004820152605260248201527f476f7665726e6f723a20796f75206e65656420746f2063617374206120766f7460448201527f652077697468207468652070726f6f66206174206c65617374206f6e636520616064820152711b99081e5bdd481a185d995b89dd081e595d60721b608482015260a401610d82565b61155485828686612740565b95945050505050565b60195460009060ff166115825760405162461bcd60e51b8152600401610d8290613f0c565b50601d5490565b60008281526018602090815260408083206001600160a01b0385168452600301909152902080546001909101545b9250929050565b606060038054610bc390613ed8565b60006109f060125490565b60006060808280808361160b7f000000000000000000000000000000000000000000000000000000000000000083612f57565b6116367f00000000000000000000000000000000000000000000000000000000000000006001612f57565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b60195460009060ff166116855760405162461bcd60e51b8152600401610d8290613f0c565b506000908152601a602052604090205490565b60195460609060ff166116bd5760405162461bcd60e51b8152600401610d8290613f0c565b601c805480602002602001604051908101604052809291908181526020018280548015610c3c5760200282019190600052602060002090815481526020019060010190808311610caa575050505050905090565b6060600a805480602002602001604051908101604052809291908181526020018280548015610c3c576020028201919060005260206000209081546001600160a01b03168152600190910190602001808311610df7575050505050905090565b600461177b611b75565b600481111561178c5761178c613df2565b1461180f5760405162461bcd60e51b815260206004820152604760248201527f476f7665726e6f72536f7274696e673a20636f6e74657374206d75737420626560448201527f20746f2063616c63756c61746520736f7274656420616e6420746965642070726064820152666f706f73616c7360c81b608482015260a401610d82565b60195460ff16156118ae5760405162461bcd60e51b815260206004820152605f60248201527f476f7665726e6f72536f7274696e673a20736574536f72746564416e6454696560448201527f6450726f706f73616c7328292068617320616c7265616479206265656e20727560648201527f6e20616e642069747320726573706563746976652076616c7565732073657400608482015260a401610d82565b6118b86001611022565b80516118cc91601c916020909101906133d9565b50601c546000906001906118e09082613f8d565b601e55601c5460005b81811015611a7b57601c5460009061190390600190614045565b905060008061194c601c6119178686614045565b8154811061192757611927613fef565b9060005260206000200154600090815260186020526040902080546001909101549091565b91509150600061195b826129a2565b611964846129a2565b61196e9190614005565b9050846000036119a757601c54909750879060010361199e576000878152601a60205260409020849055601d8790555b50505050611a69565b8781036119ff576000878152601b602052604090205460ff166119de576000878152601b60205260409020805460ff191660011790555b601c546119ec906001613f8d565b601e54036119fa57601e8790555b611a31565b611a098585614045565b611a14906001613f8d565b6000888152601a602052604090205586611a2d8161402c565b9750505b601c54611a3f866001613f8d565b03611a6357611a4e8585614045565b6000888152601a6020526040902055601d8790555b96505050505b80611a738161402c565b9150506118e9565b50506019805460ff191660011790555050565b60048181548110610ba357600080fd5b6000818152601860209081526040918290206002810180548451818502810185019095528085526060949293830182828015611b0357602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611ae5575b5050505050915050919050565b6000611b1d338484610cc7565b611b395760405162461bcd60e51b8152600401610d8290614058565b611b456109d8856140a7565b611b615760405162461bcd60e51b8152600401610d82906140b3565b611b6d611286856140a7565b949350505050565b60075460009060ff1615611b895750600290565b6000611b936109e5565b9050428110611ba457600091505090565b6000611bae611f75565b9050428110611bc05760039250505090565b6000611bca610da1565b9050428110611bdd576001935050505090565b6004935050505090565b611bef613420565b600082815260086020908152604091829020825160a08101845281546001600160a01b0381168252600160a01b900460ff161515928101929092526001810180549293919291840191611c4190613ed8565b80601f0160208091040260200160405190810160405280929190818152602001828054611c6d90613ed8565b8015611cba5780601f10611c8f57610100808354040283529160200191611cba565b820191906000526020600020905b815481529060010190602001808311611c9d57829003601f168201915b5050509183525050604080516020818101835260028501546001600160a01b03168252808401919091528151600385018054606093810283018401855282850181815294909501949193909284928491840182828015611d4357602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611d25575b50505050508152602001600182015481525050815250509050919050565b60608060006004805480602002602001604051908101604052809291908181526020018280548015611db257602002820191906000526020600020905b815481526020019060010190808311611d9e575b50505050509050600081516001600160401b03811115611dd457611dd46138c5565b604051908082528060200260200182016040528015611dfd578160200160208202803683370190505b509050600082516001600160401b03811115611e1b57611e1b6138c5565b604051908082528060200260200182016040528015611e6057816020015b6040805180820190915260008082526020820152815260200190600190039081611e395790505b5090506000805b8451811015611f6957611ea2858281518110611e8557611e85613fef565b602002602001015160009081526006602052604090205460ff1690565b611f5757848181518110611eb857611eb8613fef565b6020026020010151848381518110611ed257611ed2613fef565b60200260200101818152505060186000868381518110611ef457611ef4613fef565b6020026020010151815260200190815260200160002060000160405180604001604052908160008201548152602001600182015481525050838381518110611f3e57611f3e613fef565b6020908102919091010152611f54600183613f8d565b91505b80611f618161402c565b915050611e67565b50919590945092505050565b6000611f7f610f5b565b610db36109e5565b611f8f610b7f565b6001600160a01b0316336001600160a01b03161480611fc157503373dc652c746a8f85e18ce632d97c6118e8a52fa738145b61202c5760405162461bcd60e51b815260206004820152603660248201527f476f7665726e6f723a206f6e6c792063726561746f72206f72206a6b206c61626044820152751cc818d85b8818d85b98d95b08184818dbdb9d195cdd60521b6064820152608401610d82565b6000612036611b75565b9050600281600481111561204c5761204c613df2565b1415801561206c5750600481600481111561206957612069613df2565b14155b6120b85760405162461bcd60e51b815260206004820152601c60248201527f476f7665726e6f723a20636f6e74657374206e6f7420616374697665000000006044820152606401610d82565b6007805460ff191660011790556040517f4cd963a081760a54f571abc0f1db4dde31b4a07d8d6da3e844b8c6f47eeaaa4290600090a150565b60195460009060ff166121165760405162461bcd60e51b8152600401610d8290613f0c565b50601e5490565b60606004805480602002602001604051908101604052809291908181526020018280548015610c3c5760200282019190600052602060002090815481526020019060010190808311610caa575050505050905090565b61217b610b7f565b6001600160a01b0316336001600160a01b0316146122015760405162461bcd60e51b815260206004820152603760248201527f476f7665726e6f723a206f6e6c792074686520636f6e7465737420637265617460448201527f6f722063616e2064656c6574652070726f706f73616c730000000000000000006064820152608401610d82565b600461220b611b75565b600481111561221c5761221c613df2565b036122a15760405162461bcd60e51b815260206004820152604960248201527f476f7665726e6f723a2064656c6574696f6e206f662070726f706f73616c732060448201527f61667465722074686520656e64206f66206120636f6e74657374206973206e6f6064820152681d08185b1b1bddd95960ba1b608482015260a401610d82565b60005b818110156123465760008383838181106122c0576122c0613fef565b60209081029290920135600081815260069093526040909220549192505060ff16612333576000818152600660205260408120805460ff191660019081179091556005805491820181559091527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0018190555b508061233e8161402c565b9150506122a4565b507f75a75cf5c561892f4cc5b26c1b8e933849b42238c96dd073d080d1ae96c51416600460405161237791906140ff565b60405180910390a15050565b61238b610b7f565b6001600160a01b0316336001600160a01b0316146124265760405162461bcd60e51b815260206004820152604c60248201527f476f7665726e6f724d6f64756c6552656769737472793a206f6e6c792074686560448201527f2063726561746f722063616e2073657420746865206f6666696369616c20726560648201526b7761726473206d6f64756c6560a01b608482015260a401610d82565b601f80546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f753a2cf8d360cff631674504210913e48247f8e56b3e6d2006c2103d4095999f9101612377565b80516000906001600160a01b031633146124f55760405162461bcd60e51b815260206004820152603060248201527f476f7665726e6f723a207468652070726f706f73616c20617574686f72206d7560448201526f39ba1031329036b9b39739b2b73232b960811b6064820152608401610d82565b60005b612503600180613f8d565b8110156126a357600081600181111561251e5761251e613df2565b9050600081600181111561253457612534613df2565b0361253f5750612691565b600181600181111561255357612553613df2565b0361267657608084015151516000036125e55760405162461bcd60e51b815260206004820152604860248201527f476f7665726e6f724d6574616461746156616c69646174696f6e3a207468657260448201527f652063616e6e6f74206265207a65726f207369676e65727320696e20736166656064820152674d6574616461746160c01b608482015260a401610d82565b8360800151602001516000036126715760405162461bcd60e51b8152602060048201526044602482018190527f476f7665726e6f724d6574616461746156616c69646174696f6e3a2074687265908201527f73686f6c642063616e6e6f74206265207a65726f20696e20736166654d6574616064820152636461746160e01b608482015260a401610d82565b61268f565b6040516308b6566d60e11b815260040160405180910390fd5b505b8061269b8161402c565b9150506124f8565b508160400151516000036127175760405162461bcd60e51b815260206004820152603560248201527f476f7665726e6f723a20656d7074792070726f706f73616c20646573637269706044820152741d1a5bdb9cc8185c99481b9bdd08185b1b1bddd959605a1b6064820152608401610d82565b506001919050565b60006109f060135490565b6000826127378584613003565b14949350505050565b6000600161274c611b75565b600481111561275d5761275d613df2565b146127b65760405162461bcd60e51b815260206004820152602360248201527f476f7665726e6f723a20766f7465206e6f742063757272656e746c792061637460448201526269766560e81b6064820152608401610d82565b6000821161281a5760405162461bcd60e51b815260206004820152602b60248201527f476f7665726e6f723a2063616e6e6f7420766f746520776974682030206f722060448201526a666577657220766f74657360a81b6064820152608401610d82565b6001600160a01b0384166000908152600d602052604090205460ff166128c05760405162461bcd60e51b815260206004820152604f60248201527f476f7665726e6f723a20796f75206e65656420746f2076657269667920796f7560448201527f72206e756d626572206f6620766f74657320616761696e737420746865206d6560648201526e1c9adb19481c9bdbdd08199a5c9cdd608a1b608482015260a401610d82565b6128f285858585600c60008a6001600160a01b03166001600160a01b0316815260200190815260200160002054613050565b600b80546001810182556000919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90180546001600160a01b031916331790556040805186815260ff851660208201529081018390526001600160a01b038516907f2c9deb38f462962eadbd85a9d3a4120503ee091f1582eaaa10aa8c6797651d299060600160405180910390a25050506001600160a01b03166000908152600c6020526040902054919050565b60006001600160ff1b03821115612a0c5760405162461bcd60e51b815260206004820152602860248201527f53616665436173743a2076616c756520646f65736e27742066697420696e2061604482015267371034b73a191a9b60c11b6064820152608401610d82565b5090565b600083805b8451811015612a6e57848281518110612a3057612a30613fef565b6020026020010151858281518110612a4a57612a4a613fef565b60200260200101511215612a5c578091505b80612a668161402c565b915050612a15565b50848103612a80576000915050610d56565b6000848681518110612a9457612a94613fef565b60200260200101519050848281518110612ab057612ab0613fef565b6020026020010151858781518110612aca57612aca613fef565b60200260200101818152505080858381518110612ae957612ae9613fef565b6020026020010181815250506000848781518110612b0957612b09613fef565b60200260200101519050848381518110612b2557612b25613fef565b6020026020010151858881518110612b3f57612b3f613fef565b60200260200101818152505080858481518110612b5e57612b5e613fef565b60209081029190910101525060019695505050505050565b60006003612b82611b75565b6004811115612b9357612b93613df2565b14612c065760405162461bcd60e51b815260206004820152603e60248201527f476f7665726e6f723a20636f6e74657374206d7573742062652071756575656460448201527f20666f722070726f706f73616c7320746f206265207375626d697474656400006064820152608401610d82565b612c0e6115cd565b3360009081526009602052604090205410612cc55760405162461bcd60e51b815260206004820152606560248201527f476f7665726e6f723a207468652073616d6520616464726573732063616e6e6f60448201527f74207375626d6974206d6f7265207468616e20746865206e756d416c6c6f776560648201527f6450726f706f73616c5375626d697373696f6e7320666f72207468697320636f6084820152641b9d195cdd60da1b60a482015260c401610d82565b612ccd61271f565b600554600454612cdd9190614045565b10612d505760405162461bcd60e51b815260206004820152603960248201527f476f7665726e6f723a20746865206d6178206e756d626572206f662070726f7060448201527f6f73616c732068617665206265656e207375626d6974746564000000000000006064820152608401610d82565b6000612d5b836111ca565b600081815260086020526040902054909150600160a01b900460ff1615612dd65760405162461bcd60e51b815260206004820152602960248201527f476f7665726e6f723a206475706c69636174652070726f706f73616c73206e6f6044820152681d08185b1b1bddd95960ba1b6064820152608401610d82565b6004805460018181019092557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0182905560008281526008602090815260409182902086518154928801511515600160a01b026001600160a81b03199093166001600160a01b0390911617919091178155908501518592820190612e5a9082614189565b506060820151516002820180546001600160a01b0319166001600160a01b039092169190911790556080820151805180516003840191612e9f91839160200190613491565b5060209182015160019182015533600090815260099092526040822080549194509250612ecd908490613f8d565b9091555050600a80546001810182556000919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80180546001600160a01b031916339081179091556040805183815260208101929092527fcd423cc1203c0af96b9b3d68d73b3064a69de2d14450bb7181c5e5df2132b358910160405180910390a192915050565b606060ff8314612f7157612f6a83613346565b9050610b6e565b818054612f7d90613ed8565b80601f0160208091040260200160405190810160405280929190818152602001828054612fa990613ed8565b8015612ff65780601f10612fcb57610100808354040283529160200191612ff6565b820191906000526020600020905b815481529060010190602001808311612fd957829003601f168201915b5050505050905092915050565b600081815b8451811015613048576130348286838151811061302757613027613fef565b6020026020010151613385565b9150806130408161402c565b915050613008565b509392505050565b60008581526018602090815260408083206001600160a01b03881684526017909252909120546130809083614045565b8311156130eb5760405162461bcd60e51b815260206004820152603360248201527f476f7665726e6f72566f74696e6753696d706c653a206e6f7420656e6f756768604482015272081d9bdd195cc81b19599d081d1bc818d85cdd606a1b6064820152608401610d82565b6001600160a01b038516600090815260038201602052604081205415801561312e57506001600160a01b0386166000908152600383016020526040902060010154155b905060ff85166131865781548490839060009061314c908490613f8d565b90915550506001600160a01b03861660009081526003830160205260408120805486929061317b908490613f8d565b909155506132c09050565b60001960ff86160161325a5761319a611463565b600114613211576040805162461bcd60e51b81526020600482015260248101919091527f476f7665726e6f72566f74696e6753696d706c653a20646f776e766f74696e6760448201527f206973206e6f7420656e61626c656420666f72207468697320436f6e746573746064820152608401610d82565b838260000160010160008282546132289190613f8d565b90915550506001600160a01b03861660009081526003830160205260408120600101805486929061317b908490613f8d565b60405162461bcd60e51b815260206004820152603560248201527f476f7665726e6f72566f74696e6753696d706c653a20696e76616c69642076616044820152746c756520666f7220656e756d20566f74655479706560581b6064820152608401610d82565b80156132f757600282018054600181018255600091825260209091200180546001600160a01b0319166001600160a01b0388161790555b6001600160a01b0386166000908152601760205260408120805486929061331f908490613f8d565b9250508190555083601660008282546133389190613f8d565b909155505050505050505050565b60606000613353836133b1565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b60008183106133a1576000828152602084905260409020610d56565b5060009182526020526040902090565b600060ff8216601f811115610b6e57604051632cd44ac360e21b815260040160405180910390fd5b828054828255906000526020600020908101928215613414579160200282015b828111156134145782518255916020019190600101906133f9565b50612a0c9291506134e6565b6040518060a0016040528060006001600160a01b031681526020016000151581526020016060815260200161346a604051806020016040528060006001600160a01b031681525090565b815260200161348c604051806040016040528060608152602001600081525090565b905290565b828054828255906000526020600020908101928215613414579160200282015b8281111561341457825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906134b1565b5b80821115612a0c57600081556001016134e7565b60006020828403121561350d57600080fd5b5035919050565b6000815180845260005b8181101561353a5760208185018101518683018201520161351e565b506000602082860101526020601f19601f83011685010191505092915050565b805160408084528151908401819052600091602091908201906060860190845b8181101561359f5783516001600160a01b03168352928401929184019160010161357a565b505093820151949091019390935250919050565b600060018060a01b038088168352861515602084015260a060408401526135dd60a0840187613514565b81865116606085015283810360808501526135f8818661355a565b9998505050505050505050565b60006020828403121561361757600080fd5b81356001600160e01b031981168114610d5657600080fd5b602081526000610d566020830184613514565b815181526020808301519082015260408101610b6e565b600081518084526020808501945080840160005b838110156136895781518752958201959082019060010161366d565b509495945050505050565b602081526000610d566020830184613659565b6001600160a01b03811681146136bc57600080fd5b50565b60008083601f8401126136d157600080fd5b5081356001600160401b038111156136e857600080fd5b6020830191508360208260051b85010111156115b757600080fd5b60008060006040848603121561371857600080fd5b8335613723816136a7565b925060208401356001600160401b0381111561373e57600080fd5b61374a868287016136bf565b9497909650939450505050565b6020808252825182820181905260009190848201906040850190845b818110156137985783516001600160a01b031683529284019291840191600101613773565b50909695505050505050565b803580151581146137b457600080fd5b919050565b6000806000806000608086880312156137d157600080fd5b85356137dc816136a7565b94506020860135935060408601356001600160401b038111156137fe57600080fd5b61380a888289016136bf565b909450925061381d9050606087016137a4565b90509295509295909350565b803560ff811681146137b457600080fd5b60008060008060008060a0878903121561385357600080fd5b8635955061386360208801613829565b9450604087013593506060870135925060808701356001600160401b0381111561388c57600080fd5b61389889828a016136bf565b979a9699509497509295939492505050565b6000602082840312156138bc57600080fd5b610d56826137a4565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156138fd576138fd6138c5565b60405290565b60405160a081016001600160401b03811182821017156138fd576138fd6138c5565b604051601f8201601f191681016001600160401b038111828210171561394d5761394d6138c5565b604052919050565b60006020828403121561396757600080fd5b604051602081018181106001600160401b0382111715613989576139896138c5565b604052905080823561399a816136a7565b905292915050565b6000604082840312156139b457600080fd5b6139bc6138db565b905081356001600160401b03808211156139d557600080fd5b818401915084601f8301126139e957600080fd5b81356020828211156139fd576139fd6138c5565b8160051b9250613a0e818401613925565b8281529284018101928181019088851115613a2857600080fd5b948201945b84861015613a525785359350613a42846136a7565b8382529482019490820190613a2d565b808752505080860135818601525050505092915050565b600060a08284031215613a7b57600080fd5b613a83613903565b90508135613a90816136a7565b81526020613a9f8382016137a4565b8183015260408301356001600160401b0380821115613abd57600080fd5b818501915085601f830112613ad157600080fd5b813581811115613ae357613ae36138c5565b613af5601f8201601f19168501613925565b8181528785838601011115613b0957600080fd5b818585018683013760008583830101528060408701525050613b2e8660608701613955565b60608501526080850135925080831115613b4757600080fd5b5050613b55848285016139a2565b60808301525092915050565b600060208284031215613b7357600080fd5b81356001600160401b03811115613b8957600080fd5b611b6d84828501613a69565b600060a08284031215613ba757600080fd5b50919050565b600060208284031215613bbf57600080fd5b81356001600160401b03811115613bd557600080fd5b611b6d84828501613b95565b60006040808352613bf481840186613659565b83810360208581019190915285518083528682019282019060005b81811015613c3c57613c2c83865180518252602090810151910152565b9383019391850191600101613c0f565b509098975050505050505050565b60008060008060608587031215613c6057600080fd5b8435613c6b816136a7565b93506020850135925060408501356001600160401b03811115613c8d57600080fd5b613c99878288016136bf565b95989497509550505050565b600060208284031215613cb757600080fd5b8135610d56816136a7565b600080600060608486031215613cd757600080fd5b83359250613ce760208501613829565b9150604084013590509250925092565b60008060408385031215613d0a57600080fd5b823591506020830135613d1c816136a7565b809150509250929050565b60ff60f81b8816815260e060208201526000613d4660e0830189613514565b8281036040840152613d588189613514565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050613d898185613659565b9a9950505050505050505050565b600080600060408486031215613dac57600080fd5b83356001600160401b0380821115613dc357600080fd5b613dcf87838801613b95565b94506020860135915080821115613de557600080fd5b5061374a868287016136bf565b634e487b7160e01b600052602160045260246000fd5b6020810160058310613e2a57634e487b7160e01b600052602160045260246000fd5b91905290565b60208152600060018060a01b03808451166020840152602084015115156040840152604084015160a06060850152613e6b60c0850182613514565b90508160608601515116608085015260808501519150601f198482030160a0850152611554818361355a565b60008060208385031215613eaa57600080fd5b82356001600160401b03811115613ec057600080fd5b613ecc858286016136bf565b90969095509350505050565b600181811c90821680613eec57607f821691505b602082108103613ba757634e487b7160e01b600052602260045260246000fd5b60208082526045908201527f526577617264734d6f64756c653a2072756e20736574536f72746564416e645460408201527f69656450726f706f73616c73282920746f20706f70756c61746520746869732060608201526476616c756560d81b608082015260a00190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610b6e57610b6e613f77565b6020808252602f908201527f476f7665726e6f723a20796f752063616e6e6f7420766f7465206f6e2061206460408201526e195b195d1959081c1c9bdc1bdcd85b608a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b818103600083128015838313168383128216171561402557614025613f77565b5092915050565b60006001820161403e5761403e613f77565b5060010190565b81810381811115610b6e57610b6e613f77565b6020808252602f908201527f476f7665726e6f723a2061646472657373206973206e6f74207065726d69737360408201526e1a5bdb9959081d1bc81cdd589b5a5d608a1b606082015260800190565b6000610b6e3683613a69565b6020808252602c908201527f476f7665726e6f723a2070726f706f73616c20636f6e74656e74206661696c6560408201526b32103b30b634b230ba34b7b760a11b606082015260800190565b6020808252825482820181905260008481528281209092916040850190845b818110156137985783548352600193840193928501920161411e565b601f82111561418457600081815260208120601f850160051c810160208610156141615750805b601f850160051c820191505b818110156141805782815560010161416d565b5050505b505050565b81516001600160401b038111156141a2576141a26138c5565b6141b6816141b08454613ed8565b8461413a565b602080601f8311600181146141eb57600084156141d35750858301515b600019600386901b1c1916600185901b178555614180565b600085815260208120601f198616915b8281101561421a578886015182559484019460019091019084016141fb565b50858210156142385787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fea2646970667358221220fc91060814dbdaf1a29341323e99008a75154e369767bd36aa0417225c8f26c164736f6c6343000813003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e09cd1e4f593d70f62b8b6871524ca8aec7133d59699621d6343c0e83112e6ccf87343c392feb8481d15cdb0897787a645f9dc411e17f6822303d298f04cc21fcd0000000000000000000000000000000000000000000000000000000000001a60000000000000000000000000000000000000000000000000000000000000001e456967656e4c61796572204c535420436f6e74657374204d61696e6e657400000000000000000000000000000000000000000000000000000000000000001955636f6e7465737420636f6d7065746974696f6e7c456967656e4c61796572204c535420456c656374696f6e7c3c703e3c7374726f6e673e53756d6d6172793c2f7374726f6e673e3c2f703e3c703e5468697320636f6e746573742073657276657320617320612062696e64696e67206f6e636861696e20766f746520746f20656c65637420746865206e657874204c53547320746f20626520616464656420746f2074686520456967656e4c617965722072657374616b696e6720706f6f6c2e266e6273703b3c2f703e3c703e5468697320697320746865204d61696e6e65742076657273696f6e2c20796f752063616e20766f7465206f6e20656974686572204d616e746c65206f7220457468657265756d204d61696e6e65742e20416c6c6f776c697374656420766f746572732063616e20766f746520666f7220616e79206f6620746865207375626d697373696f6e7320284c535473292e3c2f703e3c703e3c2f703e3c703e3c7374726f6e673e4d6f7469766174696f6e3c2f7374726f6e673e3c2f703e3c703e4f757220766973696f6e20666f7220456967656e4c61796572206973206175646163696f7573202d20776520656e766973696f6e20612066757475726520776865726520456967656e4c61796572207468726976657320696e20616e20756e63617070656420616e64207065726d697373696f6e6c6573732073746174652e2042757420746f2072656163682074686973206675747572652c207765206e65656420636f6d6d756e6974792070617274696369706174696f6e20616e64207468652072696768742061737365747320746f206261636b206f757220676f616c2e3c62723e3c2f703e3c703e546f6b656e732061726520656e636f75726167656420746f207072652d636f6d6d69742072657374616b696e6720766f6c756d652069662074686579e280997265207679696e6720666f72206265696e672061646465642e2054686520746f6b656e732077696c6c2062652072616e6b6564206261736564206f6e207468652045544820766f6c756d6520746865697220636f6d6d756e697469657320636f6d6d697420746f2072657374616b65206f6e207468697320636f6e7465737420616e642074686520766f7465206f6620746865206578697374696e6720456967656e4c617965722072657374616b657220636f6d6d756e6974792e3c2f703e3c703e3c2f703e3c703e3c7374726f6e673e436f6e74657374616e74204c5354733c2f7374726f6e673e3c2f703e3c703e3c2f703e3c703e416c6c20457468657265756d204c535420746f6b656e732c206261636b6564206279206f7665722031352c303030204554482c2061726520696e766974656420746f207375626d69742e20546f6b656e20686f6c64657273206f6e2074686520457468657265756d206d61696e6e65742c20657370656369616c6c792066726f6d207468652070726576696f75736c7920646973637573736564204c5020706f6f6c7320616e642074686f73652073746f72656420696e2077616c6c6574732c20686176652074686520726967687420746f20766f74652e3c2f703e3c703e3c2f703e3c703e416e79204c5354207468617420726563656976657320766f74657320657863656564696e672031352c303030204554482077696c6c20626520696e746567726174656420696e746f20456967656e4c6179657220696e20746865207570636f6d696e67206d6f6e7468732e2054686520696e636f72706f726174696f6e2077696c6c207374617274207769746820746865204c5354207468617420617474726163747320746865206d6f737420766f7465732c20726570726573656e74696e6720746865204c535420636f6d6d756e697479277320636f6d6d69746d656e7420746f2072657374616b652c20616e642077696c6c20636f6e74696e756520696e206f72646572206261736564206f6e20746865206e756d626572206f6620766f7465732066726f6d206869676865737420746f206c6f776573742e204164646974696f6e616c20636f6e74657374732077696c6c2062652072756e20696e20746865206675747572652c20696e766974696e67206e6577204c53547320746f2070617274696369706174652e3c62723e3c2f703e3c703e4261736564206f6e20746865736520706172616d65746572732c2074686520666f6c6c6f77696e6720746f6b656e732068617665206265656e20696e766974656420746f207375626d69743a3c2f703e3c6f6c3e3c6c693e3c703e3c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f65746865727363616e2e696f2f746f6b656e2f307861326533333536363130383430373031626466353631316135333937343531306165323765326531223e77424554483c2f613e202842696e616e636529266e6273703b3c2f703e3c2f6c693e3c6c693e3c703e3c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f65746865727363616e2e696f2f746f6b656e2f307861633365303138343537623232326439333131343435383437366633653334313661626265333866223e736672784554483c2f613e20284672617829266e6273703b3c2f703e3c2f6c693e3c6c693e3c703e3c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f65746865727363616e2e696f2f746f6b656e2f307846653265363337323032303536643330303136373235343737633564613038394162304130343341223e53455448323c2f613e20285374616b65776973652920286966205374616b6577697365206765747320656e6f75676820766f7465732c207468656972206e6577204c5354206f734554482077696c6c206265206164646564207768656e206c697665293c2f703e3c2f6c693e3c6c693e3c703e3c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f65746865727363616e2e696f2f746f6b656e2f307866393531453333356166623238393335336463323439653832393236313738456143374445643738223e73774554483c2f613e20285377656c6c29266e6273703b3c2f703e3c2f6c693e3c6c693e3c703e3c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f65746865727363616e2e696f2f746f6b656e2f307845393541323033423161393161393038463942394345343634353964313031303738633263336362223e416e6b724554483c2f613e2028416e6b7229266e6273703b3c2f703e3c2f6c693e3c6c693e3c703e3c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f65746865727363616e2e696f2f746f6b656e2f307832344165326441306633363141413442453436623438454231394339316530326335653466323745223e6d65764554483c2f613e20283c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d22687474703a2f2f6d65762e696f223e6d65762e696f3c2f613e29266e6273703b3c2f703e3c2f6c693e3c6c693e3c703e3c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f65746865727363616e2e696f2f746f6b656e2f307841333562314233314365303032464246323035384432324633306639354434303532303041313562223e457468583c2f613e202853746164657229266e6273703b3c2f703e3c2f6c693e3c6c693e3c703e3c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f65746865727363616e2e696f2f746f6b656e2f307838353663344566623736433144314145303265323043454230334132413661303862306238644333223e6f4554483c2f613e20284f726967696e20455448293c2f703e3c703e3c2f703e3c2f6c693e3c2f6f6c3e3c703e54686579206861766520756e74696c204e6f76203173742061742031706d2045535420746f207375626d69742074686569722070726f706f73616c732e3c2f703e3c703e3c62723e3c2f703e3c703e546865207465616d73206172652072657175657374656420746f20696e636c7564652074686520666f6c6c6f77696e6720696e207468656972207375626d697373696f6e733a3c2f703e3c703e3c62723e3c2f703e3c703e312e205075626c6963205477697474657220706f7374206c696e6b7320746861742064656d6f6e737472617465207468652064656469636174696f6e206f6620626f74682074686520636f7265207465616d20616e642074686520776964657220636f6d6d756e69747920746f2072657374616b65206f6e20456967656e4c617965722e3c2f703e3c703e322e2044657461696c732061626f7574207468652070726f6a65637420616e64206974732073796e65726779207769746820456967656e4c617965722e3c2f703e3c703e332e204120636c65617220726f61646d617020616e6420616e79206f7468657220656c656d656e747320746861742077696c6c2064697374696e677569736820796f7572204c535420696e207468652065796573206f662074686520456967656e4c6179657220636f6d6d756e69747920616e6420766f746572732e3c2f703e3c703e342e204f746865722069646561732077656c636f6d65213c2f703e3c703e3c2f703e3c703e3c7374726f6e673e566f74696e6720706f6f6c3c2f7374726f6e673e3c2f703e3c703e3c2f703e3c703e54686520736e617073686f74206f6620766f74657273207761732074616b656e206f6e20467269646179204f63742032377468206174203132706d204553542e2054686520666f6c6c6f77696e672044756e652064617368626f6172642069732074686520736f75726365206f6620747275746820666f722074686520736e617073686f742c20776869636820696e636c756465733a3c2f703e3c703e3c2f703e3c703e3c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f64756e652e636f6d2f7369786465677265652f656967656e6c617965722d6c73742d6164646974696f6e2d636f6e74657374223e68747470733a2f2f64756e652e636f6d2f7369786465677265652f656967656e6c617965722d6c73742d6164646974696f6e2d636f6e746573743c2f613e3c2f703e3c703e3c2f703e3c703e312e20486f6c64657273206f662074686520746f6b656e73206c69737465642061626f7665202b203c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f65746865727363616e2e696f2f746f6b656e2f307832306263383332636130383162393134333366663663313766383537303162366539323438366335223e72455448323c2f613e2c20626f7468206f6e2074686569722077616c6c65747320616e6420746865206d6f73742072656c6576616e74206c697175696469747920706f6f6c7320696e2074686520666f6c6c6f77696e672070726f746f636f6c733c2f703e3c703e3c2f703e3c756c3e3c6c693e3c703e556e6973776170202856322b5633293c2f703e3c2f6c693e3c6c693e3c703e43757276653c2f703e3c2f6c693e3c6c693e3c703e50656e646c653c2f703e3c2f6c693e3c6c693e3c703e42616c616e6365723c2f703e3c2f6c693e3c6c693e3c703e436f6d706f756e643c2f703e3c2f6c693e3c6c693e3c703e416176653c2f703e3c2f6c693e3c6c693e3c703e4d6176657269636b3c2f703e3c2f6c693e3c6c693e3c703e467261786c656e643c2f703e3c2f6c693e3c6c693e3c703e457175696c69627269613c2f703e3c2f6c693e3c6c693e3c703e50656e7069653c2f703e3c703e3c62723e3c2f703e3c2f6c693e3c2f756c3e3c703e322e20456967656e4c61796572206c69717569642072657374616b65727320616e642074686569722072657374616b6564206361706974616c3c2f703e3c703e3c62723e3c2f703e3c703e456163682077616c6c65742067657473203120766f746520706572204554482076616c7565206f6620746865697220686f6c64696e67732f72657374616b6564206361706974616c2e205468657265e2809973206120746f74616c206f662034342c34303920766f74657273207769746820312c3831392c3737352e333120766f74657320766f74657320746f20626520676976656e2e3c2f703e3c703e3c62723e3c2f703e3c703e3c7374726f6e673e4e6578742073746570733c2f7374726f6e673e3c2f703e3c703e3c2f703e3c703e5765e280997265206f7074696d69737469632061626f757420746865204c5354206c616e64736361706527732065766f6c7574696f6e2c2061696d696e6720746f20666163696c69746174652072657374616b696e6720666f72206576657279204c535420696e20746865206c6f6e67206861756c2e20486f77657665722c20696e2074686520696d6d656469617465206675747572652c2074686520696e746567726174696f6e2077696c6c2062652073657175656e7469616c2e20506f737420636f6e746573742c204c53547320746861742072656365697665206f7665722031352c3030302045544820696e20766f74656420696e7465726573742077696c6c20626520616464656420746f20456967656e4c617965722e20546865206a6f75726e65792077696c6c20636f6d6d656e6365207769746820746865206c656164696e67204c535420616e642070726f67726573732073657175656e7469616c6c792e204d6f726520636f6e746573747320616e64206f70706f7274756e697469657320666f72206e6577204c53547320617265206168656164213c2f703e3c703e3c62723e3c2f703e3c703e3c7374726f6e673e41626f757420456967656e4c617965723c2f7374726f6e673e3c2f703e3c703e3c2f703e3c703e456967656e4c6179657220697320612070726f746f636f6c207468617420696e74726f64756365732072657374616b696e672c207265766f6c7574696f6e697a696e672074686520776179207374616b6572732063616e2073656375726520616e6420706172746963697061746520696e206d756c7469706c652070726f746f636f6c732077697468696e2074686520457468657265756d2065636f73797374656d20616e64206265796f6e642e20456967656e4c617965722069732061742074686520666f726566726f6e74206f66206c657665726167696e6720457468657265756de2809973207374616b6564206361706974616c206261736520746f20656d706f77657220646576656c6f706572732c2076616c696461746f72732c20616e64207374616b6572732c20736f207061727469636970616e74732063616e206f7074696d697a65206361706974616c20656666696369656e63792c20656e68616e6365206e6574776f726b2073656375726974792c20616e6420756e6c6f636b2067726f756e64627265616b696e6720706f73736962696c697469657320696e206469766572736520626c6f636b636861696e2065636f73797374656d732e3c2f703e3c703e3c62723e3c2f703e3c703e466f6c6c6f77207573206f6e3a3c2f703e3c703e3c2f703e3c703e57656273697465203c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f7777772e656967656e6c617965722e78797a2f223e68747470733a2f2f7777772e656967656e6c617965722e78797a2f3c2f613e3c2f703e3c703e54776974746572203c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f747769747465722e636f6d2f656967656e6c61796572223e68747470733a2f2f747769747465722e636f6d2f656967656e6c617965723c2f613e3c2f703e3c703e446973636f7264203c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f646973636f72642e67672f656967656e6c61796572223e68747470733a2f2f646973636f72642e67672f656967656e6c617965723c2f613e3c2f703e3c703e466f72756d203c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f666f72756d2e656967656e6c617965722e78797a2f223e68747470733a2f2f666f72756d2e656967656e6c617965722e78797a2f3c2f613e3c2f703e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000653bfaa00000000000000000000000000000000000000000000000000000000000067b5f0000000000000000000000000000000000000000000000000000000000093a80000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106104065760003560e01c806375e509c511610220578063c19d93fb11610130578063ea8a1af0116100b8578063f0a7db0a11610087578063f0a7db0a14610981578063f4f3d7ec14610994578063f79c0172146109a7578063fb8ddab4146109ca578063fb9bf8d4146109dd57600080fd5b8063ea8a1af01461094e578063ebc18b9b14610956578063eef18e171461095e578063efa90d361461097957600080fd5b8063d8891619116100ff578063d8891619146108d2578063dd96a19d146108df578063dea5f6a614610906578063e031535b14610926578063e5eb5a481461092e57600080fd5b8063c19d93fb14610872578063c7f758a814610887578063cb853950146108a7578063d45a010b146108ca57600080fd5b8063930de979116101b3578063a1ac6cb211610182578063a1ac6cb2146107dc578063aec116b6146107fc578063b323580d14610825578063bddc164114610838578063c0ffaa781461085f57600080fd5b8063930de97914610794578063946369b5146107b757806396f0e962146107bf5780639b644a23146107c957600080fd5b8063832009af116101ef578063832009af1461075657806384b0196e1461075e57806386187488146107795780638a9cd5501461078c57600080fd5b806375e509c514610712578063785ddfe5146107325780637c65d711146107455780637de418d51461074d57600080fd5b80633b6d199b1161031b57806350c4b616116102ae5780635f953a031161027d5780635f953a03146106b357806360506ff6146106dc57806365f16263146106e45780636ca1a2c7146106f75780636e4eb810146106ff57600080fd5b806350c4b61614610630578063531bd81214610643578063544ffc9c1461065657806354fd4d501461069357600080fd5b8063458da87d116102ea578063458da87d146105ec578063476f4d8a146105ff5780634d24a67f1461061257806350a5e5241461061a57600080fd5b80633b6d199b146105965780633f9942ff146105b9578063419c533c146105c6578063427d56c2146105d957600080fd5b80630aa25e441161039e578063262e59e91161036d578063262e59e91461054f5780632c39805f1461055757806332763c221461056c578063347cf6651461057f5780633932abb11461058e57600080fd5b80630aa25e44146105015780631242b7371461051457806320b3e845146105295780632399c6601461053c57600080fd5b806302d05d3f116103da57806302d05d3f1461047557806305846cae1461049557806306fdde03146104a8578063070dc5d9146104bd57600080fd5b80624114a81461040b578063013cf08b1461042657806301ffc9a71461044a57806302a251a31461046d575b600080fd5b6104136109e5565b6040519081526020015b60405180910390f35b6104396104343660046134fb565b6109f5565b60405161041d9594939291906135b3565b61045d610458366004613605565b610b3d565b604051901515815260200161041d565b610413610b74565b61047d610b7f565b6040516001600160a01b03909116815260200161041d565b6104136104a33660046134fb565b610b93565b6104b0610bb4565b60405161041d919061362f565b6104f46104cb3660046134fb565b601860209081526000918252604091829020825180840190935280548352600101549082015281565b60405161041d9190613642565b61047d61050f3660046134fb565b610c46565b61051c610c70565b60405161041d9190613694565b61045d610537366004613703565b610cc7565b61045d61054a3660046134fb565b610d5d565b610413610da1565b61055f610dbd565b60405161041d9190613757565b61045d61057a3660046137b9565b610e1e565b610413678ac7230489e8000081565b610413610f5b565b61045d6105a43660046134fb565b60009081526006602052604090205460ff1690565b60075461045d9060ff1681565b6104136105d436600461383a565b610f66565b61051c6105e73660046138aa565b611022565b6104136105fa366004613b61565b6111ca565b61041361060d366004613bad565b6111fb565b61041361128b565b610622611299565b60405161041d929190613be1565b61047d61063e3660046134fb565b6113e8565b61045d610651366004613c4a565b6113f8565b61067e6106643660046134fb565b600090815260186020526040902080546001909101549091565b6040805192835260208301919091520161041d565b6040805180820190915260048152630665c62760e31b60208201526104b0565b6104136106c1366004613ca5565b6001600160a01b031660009081526009602052604090205490565b610413611463565b6104136106f2366004613cc2565b61146e565b61041361155d565b61067e61070d366004613cf7565b611589565b610413610720366004613ca5565b60096020526000908152604090205481565b601f5461047d906001600160a01b031681565b6104b06115be565b61041360165481565b6104136115cd565b6107666115d8565b60405161041d9796959493929190613d27565b6104136107873660046134fb565b611660565b61051c611698565b61045d6107a2366004613ca5565b600d6020526000908152604090205460ff1681565b61055f611711565b6107c7611771565b005b6104136107d73660046134fb565b611a8e565b6104136107ea366004613ca5565b60176020526000908152604090205481565b61041361080a366004613ca5565b6001600160a01b031660009081526017602052604090205490565b61055f6108333660046134fb565b611a9e565b6104137f9cd1e4f593d70f62b8b6871524ca8aec7133d59699621d6343c0e83112e6ccf881565b61041361086d366004613d97565b611b10565b61087a611b75565b60405161041d9190613e08565b61089a6108953660046134fb565b611be7565b60405161041d9190613e30565b61045d6108b5366004613ca5565b600e6020526000908152604090205460ff1681565b610622611d61565b60195461045d9060ff1681565b6104137f7343c392feb8481d15cdb0897787a645f9dc411e17f6822303d298f04cc21fcd81565b610413610914366004613ca5565b600c6020526000908152604090205481565b610413611f75565b61041361093c3660046134fb565b601a6020526000908152604090205481565b6107c7611f87565b6104136120f1565b61047d73dc652c746a8f85e18ce632d97c6118e8a52fa73881565b61051c61211d565b6107c761098f366004613e97565b612173565b6107c76109a2366004613ca5565b612383565b61045d6109b53660046134fb565b60066020526000908152604090205460ff1681565b61045d6109d8366004613b61565b612480565b61041361271f565b60006109f0600f5490565b905090565b600860205260009081526040902080546001820180546001600160a01b03831693600160a01b90930460ff16929190610a2d90613ed8565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5990613ed8565b8015610aa65780601f10610a7b57610100808354040283529160200191610aa6565b820191906000526020600020905b815481529060010190602001808311610a8957829003601f168201915b5050604080516020808201835260028801546001600160a01b031682528251600389018054606093810283018401865294820185815298999398939750909550935084928491840182828015610b2557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610b07575b50505050508152602001600182015481525050905085565b60006001600160e01b031982166319cbae6160e11b1480610b6e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60006109f060115490565b60006109f06015546001600160a01b031690565b60058181548110610ba357600080fd5b600091825260209091200154905081565b606060028054610bc390613ed8565b80601f0160208091040260200160405190810160405280929190818152602001828054610bef90613ed8565b8015610c3c5780601f10610c1157610100808354040283529160200191610c3c565b820191906000526020600020905b815481529060010190602001808311610c1f57829003601f168201915b5050505050905090565b600a8181548110610c5657600080fd5b6000918252602090912001546001600160a01b0316905081565b60606005805480602002602001604051908101604052809291908181526020018280548015610c3c57602002820191906000526020600020905b815481526020019060010190808311610caa575050505050905090565b6001600160a01b0383166000908152600e602052604081205460ff16610d52577f9cd1e4f593d70f62b8b6871524ca8aec7133d59699621d6343c0e83112e6ccf8600003610d1757506001610d56565b610d2d84678ac7230489e8000085856000610e1e565b506001600160a01b0384166000908152600e60205260409020805460ff191660011790555b5060015b9392505050565b60195460009060ff16610d8b5760405162461bcd60e51b8152600401610d8290613f0c565b60405180910390fd5b506000908152601b602052604090205460ff1690565b6000610dab610b74565b610db3611f75565b6109f09190613f8d565b6060600b805480602002602001604051908101604052809291908181526020018280548015610c3c57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610df7575050505050905090565b6040516bffffffffffffffffffffffff19606087901b166020820152603481018590526000908190605401604051602081830303815290604052805190602001209050600083610ecd57610ec88686808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152507f9cd1e4f593d70f62b8b6871524ca8aec7133d59699621d6343c0e83112e6ccf8925086915061272a9050565b610f2d565b610f2d8686808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152507f7343c392feb8481d15cdb0897787a645f9dc411e17f6822303d298f04cc21fcd925086915061272a9050565b905080610f4d5760405163452c2df160e11b815260040160405180910390fd5b506001979650505050505050565b60006109f060105490565b600086815260066020526040812054339060ff1615610f975760405162461bcd60e51b8152600401610d8290613fa0565b610fa3818786866113f8565b61100a5760405162461bcd60e51b815260206004820152603260248201527f476f7665726e6f723a20746869732061646472657373206973206e6f74207065604482015271726d697373696f6e656420746f20766f746560701b6064820152608401610d82565b61101688828988612740565b98975050505050505050565b60606000808361103957611034611299565b611041565b611041611d61565b9150915060008251116110b15760405162461bcd60e51b815260206004820152603260248201527f476f7665726e6f72536f7274696e673a2063616e6e6f7420736f72742061206c6044820152710d2e6e840decc40f4cae4de40d8cadccee8d60731b6064820152608401610d82565b600082516001600160401b038111156110cc576110cc6138c5565b6040519080825280602002602001820160405280156110f5578160200160208202803683370190505b50905060005b82518110156111895761112a83828151811061111957611119613fef565b6020026020010151602001516129a2565b61115084838151811061113f5761113f613fef565b6020026020010151600001516129a2565b61115a9190614005565b82828151811061116c5761116c613fef565b6020908102919091010152806111818161402c565b9150506110fb565b5060005b6001845161119b9190614045565b8110156111c0576111ad818386612a10565b50806111b88161402c565b91505061118d565b5091949350505050565b6000816040516020016111dd9190613e30565b60408051601f19818403018152919052805160209091012092915050565b60007f9cd1e4f593d70f62b8b6871524ca8aec7133d59699621d6343c0e83112e6ccf81561125257336000908152600e602052604090205460ff166112525760405162461bcd60e51b8152600401610d8290614058565b61125e6109d8836140a7565b61127a5760405162461bcd60e51b8152600401610d82906140b3565b610b6e611286836140a7565b612b76565b611296600180613f8d565b81565b606080600060048054806020026020016040519081016040528092919081815260200182805480156112ea57602002820191906000526020600020905b8154815260200190600101908083116112d6575b50505050509050600081516001600160401b0381111561130c5761130c6138c5565b60405190808252806020026020018201604052801561135157816020015b604080518082019091526000808252602082015281526020019060019003908161132a5790505b50905060005b82518110156113de576018600084838151811061137657611376613fef565b60200260200101518152602001908152602001600020600001604051806040016040529081600082015481526020016001820154815250508282815181106113c0576113c0613fef565b602002602001018190525080806113d69061402c565b915050611357565b5090939092509050565b600b8181548110610c5657600080fd5b6001600160a01b0384166000908152600d602052604081205460ff1661145857611426858585856001610e1e565b506001600160a01b0385166000908152600c60209081526040808320879055600d9091529020805460ff191660011790555b506001949350505050565b60006109f060145490565b600083815260066020526040812054339060ff161561149f5760405162461bcd60e51b8152600401610d8290613fa0565b6001600160a01b0381166000908152600d602052604090205460ff166115485760405162461bcd60e51b815260206004820152605260248201527f476f7665726e6f723a20796f75206e65656420746f2063617374206120766f7460448201527f652077697468207468652070726f6f66206174206c65617374206f6e636520616064820152711b99081e5bdd481a185d995b89dd081e595d60721b608482015260a401610d82565b61155485828686612740565b95945050505050565b60195460009060ff166115825760405162461bcd60e51b8152600401610d8290613f0c565b50601d5490565b60008281526018602090815260408083206001600160a01b0385168452600301909152902080546001909101545b9250929050565b606060038054610bc390613ed8565b60006109f060125490565b60006060808280808361160b7f456967656e4c61796572204c535420436f6e74657374204d61696e6e6574001e83612f57565b6116367f332e3138000000000000000000000000000000000000000000000000000000046001612f57565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b60195460009060ff166116855760405162461bcd60e51b8152600401610d8290613f0c565b506000908152601a602052604090205490565b60195460609060ff166116bd5760405162461bcd60e51b8152600401610d8290613f0c565b601c805480602002602001604051908101604052809291908181526020018280548015610c3c5760200282019190600052602060002090815481526020019060010190808311610caa575050505050905090565b6060600a805480602002602001604051908101604052809291908181526020018280548015610c3c576020028201919060005260206000209081546001600160a01b03168152600190910190602001808311610df7575050505050905090565b600461177b611b75565b600481111561178c5761178c613df2565b1461180f5760405162461bcd60e51b815260206004820152604760248201527f476f7665726e6f72536f7274696e673a20636f6e74657374206d75737420626560448201527f20746f2063616c63756c61746520736f7274656420616e6420746965642070726064820152666f706f73616c7360c81b608482015260a401610d82565b60195460ff16156118ae5760405162461bcd60e51b815260206004820152605f60248201527f476f7665726e6f72536f7274696e673a20736574536f72746564416e6454696560448201527f6450726f706f73616c7328292068617320616c7265616479206265656e20727560648201527f6e20616e642069747320726573706563746976652076616c7565732073657400608482015260a401610d82565b6118b86001611022565b80516118cc91601c916020909101906133d9565b50601c546000906001906118e09082613f8d565b601e55601c5460005b81811015611a7b57601c5460009061190390600190614045565b905060008061194c601c6119178686614045565b8154811061192757611927613fef565b9060005260206000200154600090815260186020526040902080546001909101549091565b91509150600061195b826129a2565b611964846129a2565b61196e9190614005565b9050846000036119a757601c54909750879060010361199e576000878152601a60205260409020849055601d8790555b50505050611a69565b8781036119ff576000878152601b602052604090205460ff166119de576000878152601b60205260409020805460ff191660011790555b601c546119ec906001613f8d565b601e54036119fa57601e8790555b611a31565b611a098585614045565b611a14906001613f8d565b6000888152601a602052604090205586611a2d8161402c565b9750505b601c54611a3f866001613f8d565b03611a6357611a4e8585614045565b6000888152601a6020526040902055601d8790555b96505050505b80611a738161402c565b9150506118e9565b50506019805460ff191660011790555050565b60048181548110610ba357600080fd5b6000818152601860209081526040918290206002810180548451818502810185019095528085526060949293830182828015611b0357602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611ae5575b5050505050915050919050565b6000611b1d338484610cc7565b611b395760405162461bcd60e51b8152600401610d8290614058565b611b456109d8856140a7565b611b615760405162461bcd60e51b8152600401610d82906140b3565b611b6d611286856140a7565b949350505050565b60075460009060ff1615611b895750600290565b6000611b936109e5565b9050428110611ba457600091505090565b6000611bae611f75565b9050428110611bc05760039250505090565b6000611bca610da1565b9050428110611bdd576001935050505090565b6004935050505090565b611bef613420565b600082815260086020908152604091829020825160a08101845281546001600160a01b0381168252600160a01b900460ff161515928101929092526001810180549293919291840191611c4190613ed8565b80601f0160208091040260200160405190810160405280929190818152602001828054611c6d90613ed8565b8015611cba5780601f10611c8f57610100808354040283529160200191611cba565b820191906000526020600020905b815481529060010190602001808311611c9d57829003601f168201915b5050509183525050604080516020818101835260028501546001600160a01b03168252808401919091528151600385018054606093810283018401855282850181815294909501949193909284928491840182828015611d4357602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611d25575b50505050508152602001600182015481525050815250509050919050565b60608060006004805480602002602001604051908101604052809291908181526020018280548015611db257602002820191906000526020600020905b815481526020019060010190808311611d9e575b50505050509050600081516001600160401b03811115611dd457611dd46138c5565b604051908082528060200260200182016040528015611dfd578160200160208202803683370190505b509050600082516001600160401b03811115611e1b57611e1b6138c5565b604051908082528060200260200182016040528015611e6057816020015b6040805180820190915260008082526020820152815260200190600190039081611e395790505b5090506000805b8451811015611f6957611ea2858281518110611e8557611e85613fef565b602002602001015160009081526006602052604090205460ff1690565b611f5757848181518110611eb857611eb8613fef565b6020026020010151848381518110611ed257611ed2613fef565b60200260200101818152505060186000868381518110611ef457611ef4613fef565b6020026020010151815260200190815260200160002060000160405180604001604052908160008201548152602001600182015481525050838381518110611f3e57611f3e613fef565b6020908102919091010152611f54600183613f8d565b91505b80611f618161402c565b915050611e67565b50919590945092505050565b6000611f7f610f5b565b610db36109e5565b611f8f610b7f565b6001600160a01b0316336001600160a01b03161480611fc157503373dc652c746a8f85e18ce632d97c6118e8a52fa738145b61202c5760405162461bcd60e51b815260206004820152603660248201527f476f7665726e6f723a206f6e6c792063726561746f72206f72206a6b206c61626044820152751cc818d85b8818d85b98d95b08184818dbdb9d195cdd60521b6064820152608401610d82565b6000612036611b75565b9050600281600481111561204c5761204c613df2565b1415801561206c5750600481600481111561206957612069613df2565b14155b6120b85760405162461bcd60e51b815260206004820152601c60248201527f476f7665726e6f723a20636f6e74657374206e6f7420616374697665000000006044820152606401610d82565b6007805460ff191660011790556040517f4cd963a081760a54f571abc0f1db4dde31b4a07d8d6da3e844b8c6f47eeaaa4290600090a150565b60195460009060ff166121165760405162461bcd60e51b8152600401610d8290613f0c565b50601e5490565b60606004805480602002602001604051908101604052809291908181526020018280548015610c3c5760200282019190600052602060002090815481526020019060010190808311610caa575050505050905090565b61217b610b7f565b6001600160a01b0316336001600160a01b0316146122015760405162461bcd60e51b815260206004820152603760248201527f476f7665726e6f723a206f6e6c792074686520636f6e7465737420637265617460448201527f6f722063616e2064656c6574652070726f706f73616c730000000000000000006064820152608401610d82565b600461220b611b75565b600481111561221c5761221c613df2565b036122a15760405162461bcd60e51b815260206004820152604960248201527f476f7665726e6f723a2064656c6574696f6e206f662070726f706f73616c732060448201527f61667465722074686520656e64206f66206120636f6e74657374206973206e6f6064820152681d08185b1b1bddd95960ba1b608482015260a401610d82565b60005b818110156123465760008383838181106122c0576122c0613fef565b60209081029290920135600081815260069093526040909220549192505060ff16612333576000818152600660205260408120805460ff191660019081179091556005805491820181559091527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0018190555b508061233e8161402c565b9150506122a4565b507f75a75cf5c561892f4cc5b26c1b8e933849b42238c96dd073d080d1ae96c51416600460405161237791906140ff565b60405180910390a15050565b61238b610b7f565b6001600160a01b0316336001600160a01b0316146124265760405162461bcd60e51b815260206004820152604c60248201527f476f7665726e6f724d6f64756c6552656769737472793a206f6e6c792074686560448201527f2063726561746f722063616e2073657420746865206f6666696369616c20726560648201526b7761726473206d6f64756c6560a01b608482015260a401610d82565b601f80546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f753a2cf8d360cff631674504210913e48247f8e56b3e6d2006c2103d4095999f9101612377565b80516000906001600160a01b031633146124f55760405162461bcd60e51b815260206004820152603060248201527f476f7665726e6f723a207468652070726f706f73616c20617574686f72206d7560448201526f39ba1031329036b9b39739b2b73232b960811b6064820152608401610d82565b60005b612503600180613f8d565b8110156126a357600081600181111561251e5761251e613df2565b9050600081600181111561253457612534613df2565b0361253f5750612691565b600181600181111561255357612553613df2565b0361267657608084015151516000036125e55760405162461bcd60e51b815260206004820152604860248201527f476f7665726e6f724d6574616461746156616c69646174696f6e3a207468657260448201527f652063616e6e6f74206265207a65726f207369676e65727320696e20736166656064820152674d6574616461746160c01b608482015260a401610d82565b8360800151602001516000036126715760405162461bcd60e51b8152602060048201526044602482018190527f476f7665726e6f724d6574616461746156616c69646174696f6e3a2074687265908201527f73686f6c642063616e6e6f74206265207a65726f20696e20736166654d6574616064820152636461746160e01b608482015260a401610d82565b61268f565b6040516308b6566d60e11b815260040160405180910390fd5b505b8061269b8161402c565b9150506124f8565b508160400151516000036127175760405162461bcd60e51b815260206004820152603560248201527f476f7665726e6f723a20656d7074792070726f706f73616c20646573637269706044820152741d1a5bdb9cc8185c99481b9bdd08185b1b1bddd959605a1b6064820152608401610d82565b506001919050565b60006109f060135490565b6000826127378584613003565b14949350505050565b6000600161274c611b75565b600481111561275d5761275d613df2565b146127b65760405162461bcd60e51b815260206004820152602360248201527f476f7665726e6f723a20766f7465206e6f742063757272656e746c792061637460448201526269766560e81b6064820152608401610d82565b6000821161281a5760405162461bcd60e51b815260206004820152602b60248201527f476f7665726e6f723a2063616e6e6f7420766f746520776974682030206f722060448201526a666577657220766f74657360a81b6064820152608401610d82565b6001600160a01b0384166000908152600d602052604090205460ff166128c05760405162461bcd60e51b815260206004820152604f60248201527f476f7665726e6f723a20796f75206e65656420746f2076657269667920796f7560448201527f72206e756d626572206f6620766f74657320616761696e737420746865206d6560648201526e1c9adb19481c9bdbdd08199a5c9cdd608a1b608482015260a401610d82565b6128f285858585600c60008a6001600160a01b03166001600160a01b0316815260200190815260200160002054613050565b600b80546001810182556000919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90180546001600160a01b031916331790556040805186815260ff851660208201529081018390526001600160a01b038516907f2c9deb38f462962eadbd85a9d3a4120503ee091f1582eaaa10aa8c6797651d299060600160405180910390a25050506001600160a01b03166000908152600c6020526040902054919050565b60006001600160ff1b03821115612a0c5760405162461bcd60e51b815260206004820152602860248201527f53616665436173743a2076616c756520646f65736e27742066697420696e2061604482015267371034b73a191a9b60c11b6064820152608401610d82565b5090565b600083805b8451811015612a6e57848281518110612a3057612a30613fef565b6020026020010151858281518110612a4a57612a4a613fef565b60200260200101511215612a5c578091505b80612a668161402c565b915050612a15565b50848103612a80576000915050610d56565b6000848681518110612a9457612a94613fef565b60200260200101519050848281518110612ab057612ab0613fef565b6020026020010151858781518110612aca57612aca613fef565b60200260200101818152505080858381518110612ae957612ae9613fef565b6020026020010181815250506000848781518110612b0957612b09613fef565b60200260200101519050848381518110612b2557612b25613fef565b6020026020010151858881518110612b3f57612b3f613fef565b60200260200101818152505080858481518110612b5e57612b5e613fef565b60209081029190910101525060019695505050505050565b60006003612b82611b75565b6004811115612b9357612b93613df2565b14612c065760405162461bcd60e51b815260206004820152603e60248201527f476f7665726e6f723a20636f6e74657374206d7573742062652071756575656460448201527f20666f722070726f706f73616c7320746f206265207375626d697474656400006064820152608401610d82565b612c0e6115cd565b3360009081526009602052604090205410612cc55760405162461bcd60e51b815260206004820152606560248201527f476f7665726e6f723a207468652073616d6520616464726573732063616e6e6f60448201527f74207375626d6974206d6f7265207468616e20746865206e756d416c6c6f776560648201527f6450726f706f73616c5375626d697373696f6e7320666f72207468697320636f6084820152641b9d195cdd60da1b60a482015260c401610d82565b612ccd61271f565b600554600454612cdd9190614045565b10612d505760405162461bcd60e51b815260206004820152603960248201527f476f7665726e6f723a20746865206d6178206e756d626572206f662070726f7060448201527f6f73616c732068617665206265656e207375626d6974746564000000000000006064820152608401610d82565b6000612d5b836111ca565b600081815260086020526040902054909150600160a01b900460ff1615612dd65760405162461bcd60e51b815260206004820152602960248201527f476f7665726e6f723a206475706c69636174652070726f706f73616c73206e6f6044820152681d08185b1b1bddd95960ba1b6064820152608401610d82565b6004805460018181019092557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0182905560008281526008602090815260409182902086518154928801511515600160a01b026001600160a81b03199093166001600160a01b0390911617919091178155908501518592820190612e5a9082614189565b506060820151516002820180546001600160a01b0319166001600160a01b039092169190911790556080820151805180516003840191612e9f91839160200190613491565b5060209182015160019182015533600090815260099092526040822080549194509250612ecd908490613f8d565b9091555050600a80546001810182556000919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80180546001600160a01b031916339081179091556040805183815260208101929092527fcd423cc1203c0af96b9b3d68d73b3064a69de2d14450bb7181c5e5df2132b358910160405180910390a192915050565b606060ff8314612f7157612f6a83613346565b9050610b6e565b818054612f7d90613ed8565b80601f0160208091040260200160405190810160405280929190818152602001828054612fa990613ed8565b8015612ff65780601f10612fcb57610100808354040283529160200191612ff6565b820191906000526020600020905b815481529060010190602001808311612fd957829003601f168201915b5050505050905092915050565b600081815b8451811015613048576130348286838151811061302757613027613fef565b6020026020010151613385565b9150806130408161402c565b915050613008565b509392505050565b60008581526018602090815260408083206001600160a01b03881684526017909252909120546130809083614045565b8311156130eb5760405162461bcd60e51b815260206004820152603360248201527f476f7665726e6f72566f74696e6753696d706c653a206e6f7420656e6f756768604482015272081d9bdd195cc81b19599d081d1bc818d85cdd606a1b6064820152608401610d82565b6001600160a01b038516600090815260038201602052604081205415801561312e57506001600160a01b0386166000908152600383016020526040902060010154155b905060ff85166131865781548490839060009061314c908490613f8d565b90915550506001600160a01b03861660009081526003830160205260408120805486929061317b908490613f8d565b909155506132c09050565b60001960ff86160161325a5761319a611463565b600114613211576040805162461bcd60e51b81526020600482015260248101919091527f476f7665726e6f72566f74696e6753696d706c653a20646f776e766f74696e6760448201527f206973206e6f7420656e61626c656420666f72207468697320436f6e746573746064820152608401610d82565b838260000160010160008282546132289190613f8d565b90915550506001600160a01b03861660009081526003830160205260408120600101805486929061317b908490613f8d565b60405162461bcd60e51b815260206004820152603560248201527f476f7665726e6f72566f74696e6753696d706c653a20696e76616c69642076616044820152746c756520666f7220656e756d20566f74655479706560581b6064820152608401610d82565b80156132f757600282018054600181018255600091825260209091200180546001600160a01b0319166001600160a01b0388161790555b6001600160a01b0386166000908152601760205260408120805486929061331f908490613f8d565b9250508190555083601660008282546133389190613f8d565b909155505050505050505050565b60606000613353836133b1565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b60008183106133a1576000828152602084905260409020610d56565b5060009182526020526040902090565b600060ff8216601f811115610b6e57604051632cd44ac360e21b815260040160405180910390fd5b828054828255906000526020600020908101928215613414579160200282015b828111156134145782518255916020019190600101906133f9565b50612a0c9291506134e6565b6040518060a0016040528060006001600160a01b031681526020016000151581526020016060815260200161346a604051806020016040528060006001600160a01b031681525090565b815260200161348c604051806040016040528060608152602001600081525090565b905290565b828054828255906000526020600020908101928215613414579160200282015b8281111561341457825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906134b1565b5b80821115612a0c57600081556001016134e7565b60006020828403121561350d57600080fd5b5035919050565b6000815180845260005b8181101561353a5760208185018101518683018201520161351e565b506000602082860101526020601f19601f83011685010191505092915050565b805160408084528151908401819052600091602091908201906060860190845b8181101561359f5783516001600160a01b03168352928401929184019160010161357a565b505093820151949091019390935250919050565b600060018060a01b038088168352861515602084015260a060408401526135dd60a0840187613514565b81865116606085015283810360808501526135f8818661355a565b9998505050505050505050565b60006020828403121561361757600080fd5b81356001600160e01b031981168114610d5657600080fd5b602081526000610d566020830184613514565b815181526020808301519082015260408101610b6e565b600081518084526020808501945080840160005b838110156136895781518752958201959082019060010161366d565b509495945050505050565b602081526000610d566020830184613659565b6001600160a01b03811681146136bc57600080fd5b50565b60008083601f8401126136d157600080fd5b5081356001600160401b038111156136e857600080fd5b6020830191508360208260051b85010111156115b757600080fd5b60008060006040848603121561371857600080fd5b8335613723816136a7565b925060208401356001600160401b0381111561373e57600080fd5b61374a868287016136bf565b9497909650939450505050565b6020808252825182820181905260009190848201906040850190845b818110156137985783516001600160a01b031683529284019291840191600101613773565b50909695505050505050565b803580151581146137b457600080fd5b919050565b6000806000806000608086880312156137d157600080fd5b85356137dc816136a7565b94506020860135935060408601356001600160401b038111156137fe57600080fd5b61380a888289016136bf565b909450925061381d9050606087016137a4565b90509295509295909350565b803560ff811681146137b457600080fd5b60008060008060008060a0878903121561385357600080fd5b8635955061386360208801613829565b9450604087013593506060870135925060808701356001600160401b0381111561388c57600080fd5b61389889828a016136bf565b979a9699509497509295939492505050565b6000602082840312156138bc57600080fd5b610d56826137a4565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156138fd576138fd6138c5565b60405290565b60405160a081016001600160401b03811182821017156138fd576138fd6138c5565b604051601f8201601f191681016001600160401b038111828210171561394d5761394d6138c5565b604052919050565b60006020828403121561396757600080fd5b604051602081018181106001600160401b0382111715613989576139896138c5565b604052905080823561399a816136a7565b905292915050565b6000604082840312156139b457600080fd5b6139bc6138db565b905081356001600160401b03808211156139d557600080fd5b818401915084601f8301126139e957600080fd5b81356020828211156139fd576139fd6138c5565b8160051b9250613a0e818401613925565b8281529284018101928181019088851115613a2857600080fd5b948201945b84861015613a525785359350613a42846136a7565b8382529482019490820190613a2d565b808752505080860135818601525050505092915050565b600060a08284031215613a7b57600080fd5b613a83613903565b90508135613a90816136a7565b81526020613a9f8382016137a4565b8183015260408301356001600160401b0380821115613abd57600080fd5b818501915085601f830112613ad157600080fd5b813581811115613ae357613ae36138c5565b613af5601f8201601f19168501613925565b8181528785838601011115613b0957600080fd5b818585018683013760008583830101528060408701525050613b2e8660608701613955565b60608501526080850135925080831115613b4757600080fd5b5050613b55848285016139a2565b60808301525092915050565b600060208284031215613b7357600080fd5b81356001600160401b03811115613b8957600080fd5b611b6d84828501613a69565b600060a08284031215613ba757600080fd5b50919050565b600060208284031215613bbf57600080fd5b81356001600160401b03811115613bd557600080fd5b611b6d84828501613b95565b60006040808352613bf481840186613659565b83810360208581019190915285518083528682019282019060005b81811015613c3c57613c2c83865180518252602090810151910152565b9383019391850191600101613c0f565b509098975050505050505050565b60008060008060608587031215613c6057600080fd5b8435613c6b816136a7565b93506020850135925060408501356001600160401b03811115613c8d57600080fd5b613c99878288016136bf565b95989497509550505050565b600060208284031215613cb757600080fd5b8135610d56816136a7565b600080600060608486031215613cd757600080fd5b83359250613ce760208501613829565b9150604084013590509250925092565b60008060408385031215613d0a57600080fd5b823591506020830135613d1c816136a7565b809150509250929050565b60ff60f81b8816815260e060208201526000613d4660e0830189613514565b8281036040840152613d588189613514565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050613d898185613659565b9a9950505050505050505050565b600080600060408486031215613dac57600080fd5b83356001600160401b0380821115613dc357600080fd5b613dcf87838801613b95565b94506020860135915080821115613de557600080fd5b5061374a868287016136bf565b634e487b7160e01b600052602160045260246000fd5b6020810160058310613e2a57634e487b7160e01b600052602160045260246000fd5b91905290565b60208152600060018060a01b03808451166020840152602084015115156040840152604084015160a06060850152613e6b60c0850182613514565b90508160608601515116608085015260808501519150601f198482030160a0850152611554818361355a565b60008060208385031215613eaa57600080fd5b82356001600160401b03811115613ec057600080fd5b613ecc858286016136bf565b90969095509350505050565b600181811c90821680613eec57607f821691505b602082108103613ba757634e487b7160e01b600052602260045260246000fd5b60208082526045908201527f526577617264734d6f64756c653a2072756e20736574536f72746564416e645460408201527f69656450726f706f73616c73282920746f20706f70756c61746520746869732060608201526476616c756560d81b608082015260a00190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610b6e57610b6e613f77565b6020808252602f908201527f476f7665726e6f723a20796f752063616e6e6f7420766f7465206f6e2061206460408201526e195b195d1959081c1c9bdc1bdcd85b608a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b818103600083128015838313168383128216171561402557614025613f77565b5092915050565b60006001820161403e5761403e613f77565b5060010190565b81810381811115610b6e57610b6e613f77565b6020808252602f908201527f476f7665726e6f723a2061646472657373206973206e6f74207065726d69737360408201526e1a5bdb9959081d1bc81cdd589b5a5d608a1b606082015260800190565b6000610b6e3683613a69565b6020808252602c908201527f476f7665726e6f723a2070726f706f73616c20636f6e74656e74206661696c6560408201526b32103b30b634b230ba34b7b760a11b606082015260800190565b6020808252825482820181905260008481528281209092916040850190845b818110156137985783548352600193840193928501920161411e565b601f82111561418457600081815260208120601f850160051c810160208610156141615750805b601f850160051c820191505b818110156141805782815560010161416d565b5050505b505050565b81516001600160401b038111156141a2576141a26138c5565b6141b6816141b08454613ed8565b8461413a565b602080601f8311600181146141eb57600084156141d35750858301515b600019600386901b1c1916600185901b178555614180565b600085815260208120601f198616915b8281101561421a578886015182559484019460019091019084016141fb565b50858210156142385787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fea2646970667358221220fc91060814dbdaf1a29341323e99008a75154e369767bd36aa0417225c8f26c164736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e09cd1e4f593d70f62b8b6871524ca8aec7133d59699621d6343c0e83112e6ccf87343c392feb8481d15cdb0897787a645f9dc411e17f6822303d298f04cc21fcd0000000000000000000000000000000000000000000000000000000000001a60000000000000000000000000000000000000000000000000000000000000001e456967656e4c61796572204c535420436f6e74657374204d61696e6e657400000000000000000000000000000000000000000000000000000000000000001955636f6e7465737420636f6d7065746974696f6e7c456967656e4c61796572204c535420456c656374696f6e7c3c703e3c7374726f6e673e53756d6d6172793c2f7374726f6e673e3c2f703e3c703e5468697320636f6e746573742073657276657320617320612062696e64696e67206f6e636861696e20766f746520746f20656c65637420746865206e657874204c53547320746f20626520616464656420746f2074686520456967656e4c617965722072657374616b696e6720706f6f6c2e266e6273703b3c2f703e3c703e5468697320697320746865204d61696e6e65742076657273696f6e2c20796f752063616e20766f7465206f6e20656974686572204d616e746c65206f7220457468657265756d204d61696e6e65742e20416c6c6f776c697374656420766f746572732063616e20766f746520666f7220616e79206f6620746865207375626d697373696f6e7320284c535473292e3c2f703e3c703e3c2f703e3c703e3c7374726f6e673e4d6f7469766174696f6e3c2f7374726f6e673e3c2f703e3c703e4f757220766973696f6e20666f7220456967656e4c61796572206973206175646163696f7573202d20776520656e766973696f6e20612066757475726520776865726520456967656e4c61796572207468726976657320696e20616e20756e63617070656420616e64207065726d697373696f6e6c6573732073746174652e2042757420746f2072656163682074686973206675747572652c207765206e65656420636f6d6d756e6974792070617274696369706174696f6e20616e64207468652072696768742061737365747320746f206261636b206f757220676f616c2e3c62723e3c2f703e3c703e546f6b656e732061726520656e636f75726167656420746f207072652d636f6d6d69742072657374616b696e6720766f6c756d652069662074686579e280997265207679696e6720666f72206265696e672061646465642e2054686520746f6b656e732077696c6c2062652072616e6b6564206261736564206f6e207468652045544820766f6c756d6520746865697220636f6d6d756e697469657320636f6d6d697420746f2072657374616b65206f6e207468697320636f6e7465737420616e642074686520766f7465206f6620746865206578697374696e6720456967656e4c617965722072657374616b657220636f6d6d756e6974792e3c2f703e3c703e3c2f703e3c703e3c7374726f6e673e436f6e74657374616e74204c5354733c2f7374726f6e673e3c2f703e3c703e3c2f703e3c703e416c6c20457468657265756d204c535420746f6b656e732c206261636b6564206279206f7665722031352c303030204554482c2061726520696e766974656420746f207375626d69742e20546f6b656e20686f6c64657273206f6e2074686520457468657265756d206d61696e6e65742c20657370656369616c6c792066726f6d207468652070726576696f75736c7920646973637573736564204c5020706f6f6c7320616e642074686f73652073746f72656420696e2077616c6c6574732c20686176652074686520726967687420746f20766f74652e3c2f703e3c703e3c2f703e3c703e416e79204c5354207468617420726563656976657320766f74657320657863656564696e672031352c303030204554482077696c6c20626520696e746567726174656420696e746f20456967656e4c6179657220696e20746865207570636f6d696e67206d6f6e7468732e2054686520696e636f72706f726174696f6e2077696c6c207374617274207769746820746865204c5354207468617420617474726163747320746865206d6f737420766f7465732c20726570726573656e74696e6720746865204c535420636f6d6d756e697479277320636f6d6d69746d656e7420746f2072657374616b652c20616e642077696c6c20636f6e74696e756520696e206f72646572206261736564206f6e20746865206e756d626572206f6620766f7465732066726f6d206869676865737420746f206c6f776573742e204164646974696f6e616c20636f6e74657374732077696c6c2062652072756e20696e20746865206675747572652c20696e766974696e67206e6577204c53547320746f2070617274696369706174652e3c62723e3c2f703e3c703e4261736564206f6e20746865736520706172616d65746572732c2074686520666f6c6c6f77696e6720746f6b656e732068617665206265656e20696e766974656420746f207375626d69743a3c2f703e3c6f6c3e3c6c693e3c703e3c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f65746865727363616e2e696f2f746f6b656e2f307861326533333536363130383430373031626466353631316135333937343531306165323765326531223e77424554483c2f613e202842696e616e636529266e6273703b3c2f703e3c2f6c693e3c6c693e3c703e3c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f65746865727363616e2e696f2f746f6b656e2f307861633365303138343537623232326439333131343435383437366633653334313661626265333866223e736672784554483c2f613e20284672617829266e6273703b3c2f703e3c2f6c693e3c6c693e3c703e3c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f65746865727363616e2e696f2f746f6b656e2f307846653265363337323032303536643330303136373235343737633564613038394162304130343341223e53455448323c2f613e20285374616b65776973652920286966205374616b6577697365206765747320656e6f75676820766f7465732c207468656972206e6577204c5354206f734554482077696c6c206265206164646564207768656e206c697665293c2f703e3c2f6c693e3c6c693e3c703e3c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f65746865727363616e2e696f2f746f6b656e2f307866393531453333356166623238393335336463323439653832393236313738456143374445643738223e73774554483c2f613e20285377656c6c29266e6273703b3c2f703e3c2f6c693e3c6c693e3c703e3c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f65746865727363616e2e696f2f746f6b656e2f307845393541323033423161393161393038463942394345343634353964313031303738633263336362223e416e6b724554483c2f613e2028416e6b7229266e6273703b3c2f703e3c2f6c693e3c6c693e3c703e3c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f65746865727363616e2e696f2f746f6b656e2f307832344165326441306633363141413442453436623438454231394339316530326335653466323745223e6d65764554483c2f613e20283c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d22687474703a2f2f6d65762e696f223e6d65762e696f3c2f613e29266e6273703b3c2f703e3c2f6c693e3c6c693e3c703e3c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f65746865727363616e2e696f2f746f6b656e2f307841333562314233314365303032464246323035384432324633306639354434303532303041313562223e457468583c2f613e202853746164657229266e6273703b3c2f703e3c2f6c693e3c6c693e3c703e3c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f65746865727363616e2e696f2f746f6b656e2f307838353663344566623736433144314145303265323043454230334132413661303862306238644333223e6f4554483c2f613e20284f726967696e20455448293c2f703e3c703e3c2f703e3c2f6c693e3c2f6f6c3e3c703e54686579206861766520756e74696c204e6f76203173742061742031706d2045535420746f207375626d69742074686569722070726f706f73616c732e3c2f703e3c703e3c62723e3c2f703e3c703e546865207465616d73206172652072657175657374656420746f20696e636c7564652074686520666f6c6c6f77696e6720696e207468656972207375626d697373696f6e733a3c2f703e3c703e3c62723e3c2f703e3c703e312e205075626c6963205477697474657220706f7374206c696e6b7320746861742064656d6f6e737472617465207468652064656469636174696f6e206f6620626f74682074686520636f7265207465616d20616e642074686520776964657220636f6d6d756e69747920746f2072657374616b65206f6e20456967656e4c617965722e3c2f703e3c703e322e2044657461696c732061626f7574207468652070726f6a65637420616e64206974732073796e65726779207769746820456967656e4c617965722e3c2f703e3c703e332e204120636c65617220726f61646d617020616e6420616e79206f7468657220656c656d656e747320746861742077696c6c2064697374696e677569736820796f7572204c535420696e207468652065796573206f662074686520456967656e4c6179657220636f6d6d756e69747920616e6420766f746572732e3c2f703e3c703e342e204f746865722069646561732077656c636f6d65213c2f703e3c703e3c2f703e3c703e3c7374726f6e673e566f74696e6720706f6f6c3c2f7374726f6e673e3c2f703e3c703e3c2f703e3c703e54686520736e617073686f74206f6620766f74657273207761732074616b656e206f6e20467269646179204f63742032377468206174203132706d204553542e2054686520666f6c6c6f77696e672044756e652064617368626f6172642069732074686520736f75726365206f6620747275746820666f722074686520736e617073686f742c20776869636820696e636c756465733a3c2f703e3c703e3c2f703e3c703e3c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f64756e652e636f6d2f7369786465677265652f656967656e6c617965722d6c73742d6164646974696f6e2d636f6e74657374223e68747470733a2f2f64756e652e636f6d2f7369786465677265652f656967656e6c617965722d6c73742d6164646974696f6e2d636f6e746573743c2f613e3c2f703e3c703e3c2f703e3c703e312e20486f6c64657273206f662074686520746f6b656e73206c69737465642061626f7665202b203c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f65746865727363616e2e696f2f746f6b656e2f307832306263383332636130383162393134333366663663313766383537303162366539323438366335223e72455448323c2f613e2c20626f7468206f6e2074686569722077616c6c65747320616e6420746865206d6f73742072656c6576616e74206c697175696469747920706f6f6c7320696e2074686520666f6c6c6f77696e672070726f746f636f6c733c2f703e3c703e3c2f703e3c756c3e3c6c693e3c703e556e6973776170202856322b5633293c2f703e3c2f6c693e3c6c693e3c703e43757276653c2f703e3c2f6c693e3c6c693e3c703e50656e646c653c2f703e3c2f6c693e3c6c693e3c703e42616c616e6365723c2f703e3c2f6c693e3c6c693e3c703e436f6d706f756e643c2f703e3c2f6c693e3c6c693e3c703e416176653c2f703e3c2f6c693e3c6c693e3c703e4d6176657269636b3c2f703e3c2f6c693e3c6c693e3c703e467261786c656e643c2f703e3c2f6c693e3c6c693e3c703e457175696c69627269613c2f703e3c2f6c693e3c6c693e3c703e50656e7069653c2f703e3c703e3c62723e3c2f703e3c2f6c693e3c2f756c3e3c703e322e20456967656e4c61796572206c69717569642072657374616b65727320616e642074686569722072657374616b6564206361706974616c3c2f703e3c703e3c62723e3c2f703e3c703e456163682077616c6c65742067657473203120766f746520706572204554482076616c7565206f6620746865697220686f6c64696e67732f72657374616b6564206361706974616c2e205468657265e2809973206120746f74616c206f662034342c34303920766f74657273207769746820312c3831392c3737352e333120766f74657320766f74657320746f20626520676976656e2e3c2f703e3c703e3c62723e3c2f703e3c703e3c7374726f6e673e4e6578742073746570733c2f7374726f6e673e3c2f703e3c703e3c2f703e3c703e5765e280997265206f7074696d69737469632061626f757420746865204c5354206c616e64736361706527732065766f6c7574696f6e2c2061696d696e6720746f20666163696c69746174652072657374616b696e6720666f72206576657279204c535420696e20746865206c6f6e67206861756c2e20486f77657665722c20696e2074686520696d6d656469617465206675747572652c2074686520696e746567726174696f6e2077696c6c2062652073657175656e7469616c2e20506f737420636f6e746573742c204c53547320746861742072656365697665206f7665722031352c3030302045544820696e20766f74656420696e7465726573742077696c6c20626520616464656420746f20456967656e4c617965722e20546865206a6f75726e65792077696c6c20636f6d6d656e6365207769746820746865206c656164696e67204c535420616e642070726f67726573732073657175656e7469616c6c792e204d6f726520636f6e746573747320616e64206f70706f7274756e697469657320666f72206e6577204c53547320617265206168656164213c2f703e3c703e3c62723e3c2f703e3c703e3c7374726f6e673e41626f757420456967656e4c617965723c2f7374726f6e673e3c2f703e3c703e3c2f703e3c703e456967656e4c6179657220697320612070726f746f636f6c207468617420696e74726f64756365732072657374616b696e672c207265766f6c7574696f6e697a696e672074686520776179207374616b6572732063616e2073656375726520616e6420706172746963697061746520696e206d756c7469706c652070726f746f636f6c732077697468696e2074686520457468657265756d2065636f73797374656d20616e64206265796f6e642e20456967656e4c617965722069732061742074686520666f726566726f6e74206f66206c657665726167696e6720457468657265756de2809973207374616b6564206361706974616c206261736520746f20656d706f77657220646576656c6f706572732c2076616c696461746f72732c20616e64207374616b6572732c20736f207061727469636970616e74732063616e206f7074696d697a65206361706974616c20656666696369656e63792c20656e68616e6365206e6574776f726b2073656375726974792c20616e6420756e6c6f636b2067726f756e64627265616b696e6720706f73736962696c697469657320696e206469766572736520626c6f636b636861696e2065636f73797374656d732e3c2f703e3c703e3c62723e3c2f703e3c703e466f6c6c6f77207573206f6e3a3c2f703e3c703e3c2f703e3c703e57656273697465203c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f7777772e656967656e6c617965722e78797a2f223e68747470733a2f2f7777772e656967656e6c617965722e78797a2f3c2f613e3c2f703e3c703e54776974746572203c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f747769747465722e636f6d2f656967656e6c61796572223e68747470733a2f2f747769747465722e636f6d2f656967656e6c617965723c2f613e3c2f703e3c703e446973636f7264203c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f646973636f72642e67672f656967656e6c61796572223e68747470733a2f2f646973636f72642e67672f656967656e6c617965723c2f613e3c2f703e3c703e466f72756d203c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f666f72756d2e656967656e6c617965722e78797a2f223e68747470733a2f2f666f72756d2e656967656e6c617965722e78797a2f3c2f613e3c2f703e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000653bfaa00000000000000000000000000000000000000000000000000000000000067b5f0000000000000000000000000000000000000000000000000000000000093a80000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): EigenLayer LST Contest Mainnet
Arg [1] : _prompt (string): contest competition|EigenLayer LST Election|<p><strong>Summary</strong></p><p>This contest serves as a binding onchain vote to elect the next LSTs to be added to the EigenLayer restaking pool. </p><p>This is the Mainnet version, you can vote on either Mantle or Ethereum Mainnet. Allowlisted voters can vote for any of the submissions (LSTs).</p><p></p><p><strong>Motivation</strong></p><p>Our vision for EigenLayer is audacious - we envision a future where EigenLayer thrives in an uncapped and permissionless state. But to reach this future, we need community participation and the right assets to back our goal.<br></p><p>Tokens are encouraged to pre-commit restaking volume if they’re vying for being added. The tokens will be ranked based on the ETH volume their communities commit to restake on this contest and the vote of the existing EigenLayer restaker community.</p><p></p><p><strong>Contestant LSTs</strong></p><p></p><p>All Ethereum LST tokens, backed by over 15,000 ETH, are invited to submit. Token holders on the Ethereum mainnet, especially from the previously discussed LP pools and those stored in wallets, have the right to vote.</p><p></p><p>Any LST that receives votes exceeding 15,000 ETH will be integrated into EigenLayer in the upcoming months. The incorporation will start with the LST that attracts the most votes, representing the LST community's commitment to restake, and will continue in order based on the number of votes from highest to lowest. Additional contests will be run in the future, inviting new LSTs to participate.<br></p><p>Based on these parameters, the following tokens have been invited to submit:</p><ol><li><p><a target="_blank" rel="noopener noreferrer nofollow" href="https://etherscan.io/token/0xa2e3356610840701bdf5611a53974510ae27e2e1">wBETH</a> (Binance) </p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow" href="https://etherscan.io/token/0xac3e018457b222d93114458476f3e3416abbe38f">sfrxETH</a> (Frax) </p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow" href="https://etherscan.io/token/0xFe2e637202056d30016725477c5da089Ab0A043A">SETH2</a> (Stakewise) (if Stakewise gets enough votes, their new LST osETH will be added when live)</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow" href="https://etherscan.io/token/0xf951E335afb289353dc249e82926178EaC7DEd78">swETH</a> (Swell) </p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow" href="https://etherscan.io/token/0xE95A203B1a91a908F9B9CE46459d101078c2c3cb">AnkrETH</a> (Ankr) </p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow" href="https://etherscan.io/token/0x24Ae2dA0f361AA4BE46b48EB19C91e02c5e4f27E">mevETH</a> (<a target="_blank" rel="noopener noreferrer nofollow" href="http://mev.io">mev.io</a>) </p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow" href="https://etherscan.io/token/0xA35b1B31Ce002FBF2058D22F30f95D405200A15b">EthX</a> (Stader) </p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow" href="https://etherscan.io/token/0x856c4Efb76C1D1AE02e20CEB03A2A6a08b0b8dC3">oETH</a> (Origin ETH)</p><p></p></li></ol><p>They have until Nov 1st at 1pm EST to submit their proposals.</p><p><br></p><p>The teams are requested to include the following in their submissions:</p><p><br></p><p>1. Public Twitter post links that demonstrate the dedication of both the core team and the wider community to restake on EigenLayer.</p><p>2. Details about the project and its synergy with EigenLayer.</p><p>3. A clear roadmap and any other elements that will distinguish your LST in the eyes of the EigenLayer community and voters.</p><p>4. Other ideas welcome!</p><p></p><p><strong>Voting pool</strong></p><p></p><p>The snapshot of voters was taken on Friday Oct 27th at 12pm EST. The following Dune dashboard is the source of truth for the snapshot, which includes:</p><p></p><p><a target="_blank" rel="noopener noreferrer nofollow" href="https://dune.com/sixdegree/eigenlayer-lst-addition-contest">https://dune.com/sixdegree/eigenlayer-lst-addition-contest</a></p><p></p><p>1. Holders of the tokens listed above + <a target="_blank" rel="noopener noreferrer nofollow" href="https://etherscan.io/token/0x20bc832ca081b91433ff6c17f85701b6e92486c5">rETH2</a>, both on their wallets and the most relevant liquidity pools in the following protocols</p><p></p><ul><li><p>Uniswap (V2+V3)</p></li><li><p>Curve</p></li><li><p>Pendle</p></li><li><p>Balancer</p></li><li><p>Compound</p></li><li><p>Aave</p></li><li><p>Maverick</p></li><li><p>Fraxlend</p></li><li><p>Equilibria</p></li><li><p>Penpie</p><p><br></p></li></ul><p>2. EigenLayer liquid restakers and their restaked capital</p><p><br></p><p>Each wallet gets 1 vote per ETH value of their holdings/restaked capital. There’s a total of 44,409 voters with 1,819,775.31 votes votes to be given.</p><p><br></p><p><strong>Next steps</strong></p><p></p><p>We’re optimistic about the LST landscape's evolution, aiming to facilitate restaking for every LST in the long haul. However, in the immediate future, the integration will be sequential. Post contest, LSTs that receive over 15,000 ETH in voted interest will be added to EigenLayer. The journey will commence with the leading LST and progress sequentially. More contests and opportunities for new LSTs are ahead!</p><p><br></p><p><strong>About EigenLayer</strong></p><p></p><p>EigenLayer is a protocol that introduces restaking, revolutionizing the way stakers can secure and participate in multiple protocols within the Ethereum ecosystem and beyond. EigenLayer is at the forefront of leveraging Ethereum’s staked capital base to empower developers, validators, and stakers, so participants can optimize capital efficiency, enhance network security, and unlock groundbreaking possibilities in diverse blockchain ecosystems.</p><p><br></p><p>Follow us on:</p><p></p><p>Website <a target="_blank" rel="noopener noreferrer nofollow" href="https://www.eigenlayer.xyz/">https://www.eigenlayer.xyz/</a></p><p>Twitter <a target="_blank" rel="noopener noreferrer nofollow" href="https://twitter.com/eigenlayer">https://twitter.com/eigenlayer</a></p><p>Discord <a target="_blank" rel="noopener noreferrer nofollow" href="https://discord.gg/eigenlayer">https://discord.gg/eigenlayer</a></p><p>Forum <a target="_blank" rel="noopener noreferrer nofollow" href="https://forum.eigenlayer.xyz/">https://forum.eigenlayer.xyz/</a></p>
Arg [2] : _submissionMerkleRoot (bytes32): 0x9cd1e4f593d70f62b8b6871524ca8aec7133d59699621d6343c0e83112e6ccf8
Arg [3] : _votingMerkleRoot (bytes32): 0x7343c392feb8481d15cdb0897787a645f9dc411e17f6822303d298f04cc21fcd
Arg [4] : _constructorIntParams (uint256[]): 1698429600,424799,604800,3,25,0
-----Encoded View---------------
218 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 9cd1e4f593d70f62b8b6871524ca8aec7133d59699621d6343c0e83112e6ccf8
Arg [3] : 7343c392feb8481d15cdb0897787a645f9dc411e17f6822303d298f04cc21fcd
Arg [4] : 0000000000000000000000000000000000000000000000000000000000001a60
Arg [5] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [6] : 456967656e4c61796572204c535420436f6e74657374204d61696e6e65740000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000001955
Arg [8] : 636f6e7465737420636f6d7065746974696f6e7c456967656e4c61796572204c
Arg [9] : 535420456c656374696f6e7c3c703e3c7374726f6e673e53756d6d6172793c2f
Arg [10] : 7374726f6e673e3c2f703e3c703e5468697320636f6e74657374207365727665
Arg [11] : 7320617320612062696e64696e67206f6e636861696e20766f746520746f2065
Arg [12] : 6c65637420746865206e657874204c53547320746f2062652061646465642074
Arg [13] : 6f2074686520456967656e4c617965722072657374616b696e6720706f6f6c2e
Arg [14] : 266e6273703b3c2f703e3c703e5468697320697320746865204d61696e6e6574
Arg [15] : 2076657273696f6e2c20796f752063616e20766f7465206f6e20656974686572
Arg [16] : 204d616e746c65206f7220457468657265756d204d61696e6e65742e20416c6c
Arg [17] : 6f776c697374656420766f746572732063616e20766f746520666f7220616e79
Arg [18] : 206f6620746865207375626d697373696f6e7320284c535473292e3c2f703e3c
Arg [19] : 703e3c2f703e3c703e3c7374726f6e673e4d6f7469766174696f6e3c2f737472
Arg [20] : 6f6e673e3c2f703e3c703e4f757220766973696f6e20666f7220456967656e4c
Arg [21] : 61796572206973206175646163696f7573202d20776520656e766973696f6e20
Arg [22] : 612066757475726520776865726520456967656e4c6179657220746872697665
Arg [23] : 7320696e20616e20756e63617070656420616e64207065726d697373696f6e6c
Arg [24] : 6573732073746174652e2042757420746f207265616368207468697320667574
Arg [25] : 7572652c207765206e65656420636f6d6d756e69747920706172746963697061
Arg [26] : 74696f6e20616e64207468652072696768742061737365747320746f20626163
Arg [27] : 6b206f757220676f616c2e3c62723e3c2f703e3c703e546f6b656e7320617265
Arg [28] : 20656e636f75726167656420746f207072652d636f6d6d69742072657374616b
Arg [29] : 696e6720766f6c756d652069662074686579e280997265207679696e6720666f
Arg [30] : 72206265696e672061646465642e2054686520746f6b656e732077696c6c2062
Arg [31] : 652072616e6b6564206261736564206f6e207468652045544820766f6c756d65
Arg [32] : 20746865697220636f6d6d756e697469657320636f6d6d697420746f20726573
Arg [33] : 74616b65206f6e207468697320636f6e7465737420616e642074686520766f74
Arg [34] : 65206f6620746865206578697374696e6720456967656e4c6179657220726573
Arg [35] : 74616b657220636f6d6d756e6974792e3c2f703e3c703e3c2f703e3c703e3c73
Arg [36] : 74726f6e673e436f6e74657374616e74204c5354733c2f7374726f6e673e3c2f
Arg [37] : 703e3c703e3c2f703e3c703e416c6c20457468657265756d204c535420746f6b
Arg [38] : 656e732c206261636b6564206279206f7665722031352c303030204554482c20
Arg [39] : 61726520696e766974656420746f207375626d69742e20546f6b656e20686f6c
Arg [40] : 64657273206f6e2074686520457468657265756d206d61696e6e65742c206573
Arg [41] : 70656369616c6c792066726f6d207468652070726576696f75736c7920646973
Arg [42] : 637573736564204c5020706f6f6c7320616e642074686f73652073746f726564
Arg [43] : 20696e2077616c6c6574732c20686176652074686520726967687420746f2076
Arg [44] : 6f74652e3c2f703e3c703e3c2f703e3c703e416e79204c535420746861742072
Arg [45] : 6563656976657320766f74657320657863656564696e672031352c3030302045
Arg [46] : 54482077696c6c20626520696e746567726174656420696e746f20456967656e
Arg [47] : 4c6179657220696e20746865207570636f6d696e67206d6f6e7468732e205468
Arg [48] : 6520696e636f72706f726174696f6e2077696c6c207374617274207769746820
Arg [49] : 746865204c5354207468617420617474726163747320746865206d6f73742076
Arg [50] : 6f7465732c20726570726573656e74696e6720746865204c535420636f6d6d75
Arg [51] : 6e697479277320636f6d6d69746d656e7420746f2072657374616b652c20616e
Arg [52] : 642077696c6c20636f6e74696e756520696e206f72646572206261736564206f
Arg [53] : 6e20746865206e756d626572206f6620766f7465732066726f6d206869676865
Arg [54] : 737420746f206c6f776573742e204164646974696f6e616c20636f6e74657374
Arg [55] : 732077696c6c2062652072756e20696e20746865206675747572652c20696e76
Arg [56] : 6974696e67206e6577204c53547320746f2070617274696369706174652e3c62
Arg [57] : 723e3c2f703e3c703e4261736564206f6e20746865736520706172616d657465
Arg [58] : 72732c2074686520666f6c6c6f77696e6720746f6b656e732068617665206265
Arg [59] : 656e20696e766974656420746f207375626d69743a3c2f703e3c6f6c3e3c6c69
Arg [60] : 3e3c703e3c61207461726765743d225f626c616e6b222072656c3d226e6f6f70
Arg [61] : 656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265663d22
Arg [62] : 68747470733a2f2f65746865727363616e2e696f2f746f6b656e2f3078613265
Arg [63] : 3333353636313038343037303162646635363131613533393734353130616532
Arg [64] : 3765326531223e77424554483c2f613e202842696e616e636529266e6273703b
Arg [65] : 3c2f703e3c2f6c693e3c6c693e3c703e3c61207461726765743d225f626c616e
Arg [66] : 6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f
Arg [67] : 6c6c6f772220687265663d2268747470733a2f2f65746865727363616e2e696f
Arg [68] : 2f746f6b656e2f30786163336530313834353762323232643933313134343538
Arg [69] : 3437366633653334313661626265333866223e736672784554483c2f613e2028
Arg [70] : 4672617829266e6273703b3c2f703e3c2f6c693e3c6c693e3c703e3c61207461
Arg [71] : 726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265
Arg [72] : 666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f65
Arg [73] : 746865727363616e2e696f2f746f6b656e2f3078466532653633373230323035
Arg [74] : 36643330303136373235343737633564613038394162304130343341223e5345
Arg [75] : 5448323c2f613e20285374616b65776973652920286966205374616b65776973
Arg [76] : 65206765747320656e6f75676820766f7465732c207468656972206e6577204c
Arg [77] : 5354206f734554482077696c6c206265206164646564207768656e206c697665
Arg [78] : 293c2f703e3c2f6c693e3c6c693e3c703e3c61207461726765743d225f626c61
Arg [79] : 6e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e6f66
Arg [80] : 6f6c6c6f772220687265663d2268747470733a2f2f65746865727363616e2e69
Arg [81] : 6f2f746f6b656e2f307866393531453333356166623238393335336463323439
Arg [82] : 653832393236313738456143374445643738223e73774554483c2f613e202853
Arg [83] : 77656c6c29266e6273703b3c2f703e3c2f6c693e3c6c693e3c703e3c61207461
Arg [84] : 726765743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265
Arg [85] : 666572726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f65
Arg [86] : 746865727363616e2e696f2f746f6b656e2f3078453935413230334231613931
Arg [87] : 61393038463942394345343634353964313031303738633263336362223e416e
Arg [88] : 6b724554483c2f613e2028416e6b7229266e6273703b3c2f703e3c2f6c693e3c
Arg [89] : 6c693e3c703e3c61207461726765743d225f626c616e6b222072656c3d226e6f
Arg [90] : 6f70656e6572206e6f7265666572726572206e6f666f6c6c6f77222068726566
Arg [91] : 3d2268747470733a2f2f65746865727363616e2e696f2f746f6b656e2f307832
Arg [92] : 3441653264413066333631414134424534366234384542313943393165303263
Arg [93] : 35653466323745223e6d65764554483c2f613e20283c61207461726765743d22
Arg [94] : 5f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572
Arg [95] : 206e6f666f6c6c6f772220687265663d22687474703a2f2f6d65762e696f223e
Arg [96] : 6d65762e696f3c2f613e29266e6273703b3c2f703e3c2f6c693e3c6c693e3c70
Arg [97] : 3e3c61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e65
Arg [98] : 72206e6f7265666572726572206e6f666f6c6c6f772220687265663d22687474
Arg [99] : 70733a2f2f65746865727363616e2e696f2f746f6b656e2f3078413335623142
Arg [100] : 3331436530303246424632303538443232463330663935443430353230304131
Arg [101] : 3562223e457468583c2f613e202853746164657229266e6273703b3c2f703e3c
Arg [102] : 2f6c693e3c6c693e3c703e3c61207461726765743d225f626c616e6b22207265
Arg [103] : 6c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f7722
Arg [104] : 20687265663d2268747470733a2f2f65746865727363616e2e696f2f746f6b65
Arg [105] : 6e2f307838353663344566623736433144314145303265323043454230334132
Arg [106] : 413661303862306238644333223e6f4554483c2f613e20284f726967696e2045
Arg [107] : 5448293c2f703e3c703e3c2f703e3c2f6c693e3c2f6f6c3e3c703e5468657920
Arg [108] : 6861766520756e74696c204e6f76203173742061742031706d2045535420746f
Arg [109] : 207375626d69742074686569722070726f706f73616c732e3c2f703e3c703e3c
Arg [110] : 62723e3c2f703e3c703e546865207465616d7320617265207265717565737465
Arg [111] : 6420746f20696e636c7564652074686520666f6c6c6f77696e6720696e207468
Arg [112] : 656972207375626d697373696f6e733a3c2f703e3c703e3c62723e3c2f703e3c
Arg [113] : 703e312e205075626c6963205477697474657220706f7374206c696e6b732074
Arg [114] : 6861742064656d6f6e737472617465207468652064656469636174696f6e206f
Arg [115] : 6620626f74682074686520636f7265207465616d20616e642074686520776964
Arg [116] : 657220636f6d6d756e69747920746f2072657374616b65206f6e20456967656e
Arg [117] : 4c617965722e3c2f703e3c703e322e2044657461696c732061626f7574207468
Arg [118] : 652070726f6a65637420616e64206974732073796e6572677920776974682045
Arg [119] : 6967656e4c617965722e3c2f703e3c703e332e204120636c65617220726f6164
Arg [120] : 6d617020616e6420616e79206f7468657220656c656d656e7473207468617420
Arg [121] : 77696c6c2064697374696e677569736820796f7572204c535420696e20746865
Arg [122] : 2065796573206f662074686520456967656e4c6179657220636f6d6d756e6974
Arg [123] : 7920616e6420766f746572732e3c2f703e3c703e342e204f7468657220696465
Arg [124] : 61732077656c636f6d65213c2f703e3c703e3c2f703e3c703e3c7374726f6e67
Arg [125] : 3e566f74696e6720706f6f6c3c2f7374726f6e673e3c2f703e3c703e3c2f703e
Arg [126] : 3c703e54686520736e617073686f74206f6620766f7465727320776173207461
Arg [127] : 6b656e206f6e20467269646179204f63742032377468206174203132706d2045
Arg [128] : 53542e2054686520666f6c6c6f77696e672044756e652064617368626f617264
Arg [129] : 2069732074686520736f75726365206f6620747275746820666f722074686520
Arg [130] : 736e617073686f742c20776869636820696e636c756465733a3c2f703e3c703e
Arg [131] : 3c2f703e3c703e3c61207461726765743d225f626c616e6b222072656c3d226e
Arg [132] : 6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f772220687265
Arg [133] : 663d2268747470733a2f2f64756e652e636f6d2f7369786465677265652f6569
Arg [134] : 67656e6c617965722d6c73742d6164646974696f6e2d636f6e74657374223e68
Arg [135] : 747470733a2f2f64756e652e636f6d2f7369786465677265652f656967656e6c
Arg [136] : 617965722d6c73742d6164646974696f6e2d636f6e746573743c2f613e3c2f70
Arg [137] : 3e3c703e3c2f703e3c703e312e20486f6c64657273206f662074686520746f6b
Arg [138] : 656e73206c69737465642061626f7665202b203c61207461726765743d225f62
Arg [139] : 6c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572206e
Arg [140] : 6f666f6c6c6f772220687265663d2268747470733a2f2f65746865727363616e
Arg [141] : 2e696f2f746f6b656e2f30783230626338333263613038316239313433336666
Arg [142] : 3663313766383537303162366539323438366335223e72455448323c2f613e2c
Arg [143] : 20626f7468206f6e2074686569722077616c6c65747320616e6420746865206d
Arg [144] : 6f73742072656c6576616e74206c697175696469747920706f6f6c7320696e20
Arg [145] : 74686520666f6c6c6f77696e672070726f746f636f6c733c2f703e3c703e3c2f
Arg [146] : 703e3c756c3e3c6c693e3c703e556e6973776170202856322b5633293c2f703e
Arg [147] : 3c2f6c693e3c6c693e3c703e43757276653c2f703e3c2f6c693e3c6c693e3c70
Arg [148] : 3e50656e646c653c2f703e3c2f6c693e3c6c693e3c703e42616c616e6365723c
Arg [149] : 2f703e3c2f6c693e3c6c693e3c703e436f6d706f756e643c2f703e3c2f6c693e
Arg [150] : 3c6c693e3c703e416176653c2f703e3c2f6c693e3c6c693e3c703e4d61766572
Arg [151] : 69636b3c2f703e3c2f6c693e3c6c693e3c703e467261786c656e643c2f703e3c
Arg [152] : 2f6c693e3c6c693e3c703e457175696c69627269613c2f703e3c2f6c693e3c6c
Arg [153] : 693e3c703e50656e7069653c2f703e3c703e3c62723e3c2f703e3c2f6c693e3c
Arg [154] : 2f756c3e3c703e322e20456967656e4c61796572206c69717569642072657374
Arg [155] : 616b65727320616e642074686569722072657374616b6564206361706974616c
Arg [156] : 3c2f703e3c703e3c62723e3c2f703e3c703e456163682077616c6c6574206765
Arg [157] : 7473203120766f746520706572204554482076616c7565206f66207468656972
Arg [158] : 20686f6c64696e67732f72657374616b6564206361706974616c2e2054686572
Arg [159] : 65e2809973206120746f74616c206f662034342c34303920766f746572732077
Arg [160] : 69746820312c3831392c3737352e333120766f74657320766f74657320746f20
Arg [161] : 626520676976656e2e3c2f703e3c703e3c62723e3c2f703e3c703e3c7374726f
Arg [162] : 6e673e4e6578742073746570733c2f7374726f6e673e3c2f703e3c703e3c2f70
Arg [163] : 3e3c703e5765e280997265206f7074696d69737469632061626f757420746865
Arg [164] : 204c5354206c616e64736361706527732065766f6c7574696f6e2c2061696d69
Arg [165] : 6e6720746f20666163696c69746174652072657374616b696e6720666f722065
Arg [166] : 76657279204c535420696e20746865206c6f6e67206861756c2e20486f776576
Arg [167] : 65722c20696e2074686520696d6d656469617465206675747572652c20746865
Arg [168] : 20696e746567726174696f6e2077696c6c2062652073657175656e7469616c2e
Arg [169] : 20506f737420636f6e746573742c204c53547320746861742072656365697665
Arg [170] : 206f7665722031352c3030302045544820696e20766f74656420696e74657265
Arg [171] : 73742077696c6c20626520616464656420746f20456967656e4c617965722e20
Arg [172] : 546865206a6f75726e65792077696c6c20636f6d6d656e636520776974682074
Arg [173] : 6865206c656164696e67204c535420616e642070726f67726573732073657175
Arg [174] : 656e7469616c6c792e204d6f726520636f6e746573747320616e64206f70706f
Arg [175] : 7274756e697469657320666f72206e6577204c53547320617265206168656164
Arg [176] : 213c2f703e3c703e3c62723e3c2f703e3c703e3c7374726f6e673e41626f7574
Arg [177] : 20456967656e4c617965723c2f7374726f6e673e3c2f703e3c703e3c2f703e3c
Arg [178] : 703e456967656e4c6179657220697320612070726f746f636f6c207468617420
Arg [179] : 696e74726f64756365732072657374616b696e672c207265766f6c7574696f6e
Arg [180] : 697a696e672074686520776179207374616b6572732063616e20736563757265
Arg [181] : 20616e6420706172746963697061746520696e206d756c7469706c652070726f
Arg [182] : 746f636f6c732077697468696e2074686520457468657265756d2065636f7379
Arg [183] : 7374656d20616e64206265796f6e642e20456967656e4c617965722069732061
Arg [184] : 742074686520666f726566726f6e74206f66206c657665726167696e67204574
Arg [185] : 68657265756de2809973207374616b6564206361706974616c20626173652074
Arg [186] : 6f20656d706f77657220646576656c6f706572732c2076616c696461746f7273
Arg [187] : 2c20616e64207374616b6572732c20736f207061727469636970616e74732063
Arg [188] : 616e206f7074696d697a65206361706974616c20656666696369656e63792c20
Arg [189] : 656e68616e6365206e6574776f726b2073656375726974792c20616e6420756e
Arg [190] : 6c6f636b2067726f756e64627265616b696e6720706f73736962696c69746965
Arg [191] : 7320696e206469766572736520626c6f636b636861696e2065636f7379737465
Arg [192] : 6d732e3c2f703e3c703e3c62723e3c2f703e3c703e466f6c6c6f77207573206f
Arg [193] : 6e3a3c2f703e3c703e3c2f703e3c703e57656273697465203c61207461726765
Arg [194] : 743d225f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572
Arg [195] : 726572206e6f666f6c6c6f772220687265663d2268747470733a2f2f7777772e
Arg [196] : 656967656e6c617965722e78797a2f223e68747470733a2f2f7777772e656967
Arg [197] : 656e6c617965722e78797a2f3c2f613e3c2f703e3c703e54776974746572203c
Arg [198] : 61207461726765743d225f626c616e6b222072656c3d226e6f6f70656e657220
Arg [199] : 6e6f7265666572726572206e6f666f6c6c6f772220687265663d226874747073
Arg [200] : 3a2f2f747769747465722e636f6d2f656967656e6c61796572223e6874747073
Arg [201] : 3a2f2f747769747465722e636f6d2f656967656e6c617965723c2f613e3c2f70
Arg [202] : 3e3c703e446973636f7264203c61207461726765743d225f626c616e6b222072
Arg [203] : 656c3d226e6f6f70656e6572206e6f7265666572726572206e6f666f6c6c6f77
Arg [204] : 2220687265663d2268747470733a2f2f646973636f72642e67672f656967656e
Arg [205] : 6c61796572223e68747470733a2f2f646973636f72642e67672f656967656e6c
Arg [206] : 617965723c2f613e3c2f703e3c703e466f72756d203c61207461726765743d22
Arg [207] : 5f626c616e6b222072656c3d226e6f6f70656e6572206e6f7265666572726572
Arg [208] : 206e6f666f6c6c6f772220687265663d2268747470733a2f2f666f72756d2e65
Arg [209] : 6967656e6c617965722e78797a2f223e68747470733a2f2f666f72756d2e6569
Arg [210] : 67656e6c617965722e78797a2f3c2f613e3c2f703e0000000000000000000000
Arg [211] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [212] : 00000000000000000000000000000000000000000000000000000000653bfaa0
Arg [213] : 0000000000000000000000000000000000000000000000000000000000067b5f
Arg [214] : 0000000000000000000000000000000000000000000000000000000000093a80
Arg [215] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [216] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [217] : 0000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
170076:1959:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;170981:138;;;:::i;:::-;;;160:25:1;;;148:2;133:18;170981:138:0;;;;;;;;107828:49;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;:::i;108902:216::-;;;;;;:::i;:::-;;:::i;:::-;;;2732:14:1;;2725:22;2707:41;;2695:2;2680:18;108902:216:0;2567:187:1;171271:138:0;;;:::i;171904:128::-;;;:::i;:::-;;;-1:-1:-1;;;;;2923:32:1;;;2905:51;;2893:2;2878:18;171904:128:0;2759:203:1;107703:35:0;;;;;;:::i;:::-;;:::i;109179:100::-;;;:::i;:::-;;;;;;;:::i;130653:60::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;107940:32::-;;;;;;:::i;:::-;;:::i;111252:127::-;;;:::i;:::-;;;;;;;:::i;113469:538::-;;;;;;:::i;:::-;;:::i;146713:254::-;;;;;;:::i;:::-;;:::i;111641:128::-;;;:::i;111048:135::-;;;:::i;:::-;;;;;;;:::i;106653:551::-;;;;;;:::i;:::-;;:::i;107437:73::-;;107490:20;107437:73;;171127:136;;;:::i;112910:137::-;;;;;;:::i;:::-;112986:4;113010:29;;;:17;:29;;;;;;;;;112910:137;107801:20;;;;;;;;;119685:522;;;;;;:::i;:::-;;:::i;151014:1065::-;;;;;;:::i;:::-;;:::i;109683:165::-;;;;;;:::i;:::-;;:::i;115817:535::-;;;;;;:::i;:::-;;:::i;89889:74::-;;;:::i;148423:600::-;;;:::i;:::-;;;;;;;;:::i;107979:39::-;;;;;;:::i;:::-;;:::i;119157:463::-;;;;;;:::i;:::-;;:::i;130812:305::-;;;;;;:::i;:::-;130884:16;130971:32;;;:20;:32;;;;;131022:40;;131064:44;;;;;131022:40;;130812:305;;;;;14447:25:1;;;14503:2;14488:18;;14481:34;;;;14420:18;130812:305:0;14273:248:1;109510:104:0;109593:13;;;;;;;;;;;;-1:-1:-1;;;109593:13:0;;;;109510:104;;112693:131;;;;;;:::i;:::-;-1:-1:-1;;;;;112793:23:0;112766:7;112793:23;;;:14;:23;;;;;;;112693:131;171749:147;;;:::i;120284:552::-;;;;;;:::i;:::-;;:::i;147749:247::-;;;:::i;131225:435::-;;;;;;:::i;:::-;;:::i;107884:49::-;;;;;;:::i;:::-;;;;;;;;;;;;;;169461:42;;;;;-1:-1:-1;;;;;169461:42:0;;;109342:104;;;:::i;130511:29::-;;;;;;171417:171;;;:::i;40729:657::-;;;:::i;:::-;;;;;;;;;;;;;:::i;147059:286::-;;;;;;:::i;:::-;;:::i;147415:264::-;;;:::i;108086:57::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;110850:121;;;:::i;152513:3271::-;;;:::i;:::-;;107668:28;;;;;;:::i;:::-;;:::i;130585:61::-;;;;;;:::i;:::-;;;;;;;;;;;;;;132117:222;;;;;;:::i;:::-;-1:-1:-1;;;;;132292:39:0;132241:26;132292:39;;;:26;:39;;;;;;;132117:222;131766:235;;;;;;:::i;:::-;;:::i;105604:45::-;;;;;115332:409;;;;;;:::i;:::-;;:::i;109910:698::-;;;:::i;:::-;;;;;;;:::i;112456:138::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;108150:56::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;149153:1019;;;:::i;146025:55::-;;;;;;;;;105656:41;;;;;108027:52;;;;;;:::i;:::-;;;;;;;;;;;;;;111445:124;;;:::i;146087:62::-;;;;;;:::i;:::-;;;;;;;;;;;;;;118647:442;;;:::i;148068:257::-;;;:::i;107517:84::-;;107559:42;107517:84;;110669:113;;;:::i;117504:1045::-;;;;;;:::i;:::-;;:::i;169631:438::-;;;;;;:::i;:::-;;:::i;107745:49::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;114084:1184;;;;;;:::i;:::-;;:::i;171596:145::-;;;:::i;170981:138::-;171064:7;171091:20;126274:13;;;126185:110;171091:20;171084:27;;170981:138;:::o;107828:49::-;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;107828:49:0;;;-1:-1:-1;;;107828:49:0;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;107828:49:0;;;;;;;;;;;;;-1:-1:-1;;;;;107828:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;107828:49:0;;-1:-1:-1;107828:49:0;-1:-1:-1;107828:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;107828:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;108902:216::-;109004:4;-1:-1:-1;;;;;;109028:42:0;;-1:-1:-1;;;109028:42:0;;:82;;-1:-1:-1;;;;;;;;;;43089:40:0;;;109074:36;109021:89;108902:216;-1:-1:-1;;108902:216:0:o;171271:138::-;171354:7;171381:20;126629:13;;;126540:110;171904:128;171982:7;172009:15;127432:8;;-1:-1:-1;;;;;127432:8:0;;127348:100;107703:35;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;107703:35:0;:::o;109179:100::-;109233:13;109266:5;109259:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;109179:100;:::o;107940:32::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;107940:32:0;;-1:-1:-1;107940:32:0;:::o;111252:127::-;111317:16;111353:18;111346:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111252:127;:::o;113469:538::-;-1:-1:-1;;;;;113592:33:0;;113561:13;113592:33;;;:24;:33;;;;;;;;113587:391;;113646:20;113670:1;113646:25;113642:149;;-1:-1:-1;113771:4:0;113764:11;;113642:149;113805:61;113816:7;107490:20;113853:5;;113860;113805:10;:61::i;:::-;-1:-1:-1;;;;;;113926:33:0;;;;;;:24;:33;;;;;:40;;-1:-1:-1;;113926:40:0;113962:4;113926:40;;;113587:391;-1:-1:-1;113995:4:0;113469:538;;;;;;:::o;146713:254::-;146806:35;;146767:4;;146806:35;;146784:141;;;;-1:-1:-1;;;146784:141:0;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;146943:16:0;;;;:7;:16;;;;;;;;;146713:254::o;111641:128::-;111706:7;111747:14;:12;:14::i;:::-;111733:11;:9;:11::i;:::-;:28;;;;:::i;111048:135::-;111117:16;111153:22;111146:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;111146:29:0;;;;;;;;;;;;;;;;;;;;;;111048:135;:::o;106653:551::-;106914:40;;-1:-1:-1;;20791:2:1;20787:15;;;20783:53;106914:40:0;;;20771:66:1;20853:12;;;20846:28;;;106800:13:0;;;;20890:12:1;;106914:40:0;;;;;;;;;;;;106904:51;;;;;;106889:66;;106966:16;106985:6;:140;;107072:53;107091:5;;107072:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;107098:20:0;;-1:-1:-1;107120:4:0;;-1:-1:-1;107072:18:0;;-1:-1:-1;107072:53:0:i;:::-;106985:140;;;107007:49;107026:5;;107007:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;107033:16:0;;-1:-1:-1;107051:4:0;;-1:-1:-1;107007:18:0;;-1:-1:-1;107007:49:0:i;:::-;106966:159;;107141:11;107136:38;;107161:13;;-1:-1:-1;;;107161:13:0;;;;;;;;;;;107136:38;-1:-1:-1;107192:4:0;;106653:551;-1:-1:-1;;;;;;;106653:551:0:o;171127:136::-;171209:7;171236:19;126451:12;;;126363:108;119685:522;119871:7;113010:29;;;:17;:29;;;;;;119912:10;;113010:29;;119941:30;119933:90;;;;-1:-1:-1;;;119933:90:0;;;;;;;:::i;:::-;120042:37;120054:5;120061:10;120073:5;;120042:11;:37::i;:::-;120034:100;;;;-1:-1:-1;;;120034:100:0;;21531:2:1;120034:100:0;;;21513:21:1;21570:2;21550:18;;;21543:30;21609:34;21589:18;;;21582:62;-1:-1:-1;;;21660:18:1;;;21653:48;21718:19;;120034:100:0;21329:414:1;120034:100:0;120152:47;120162:10;120174:5;120181:7;120190:8;120152:9;:47::i;:::-;120145:54;119685:522;-1:-1:-1;;;;;;;;119685:522:0:o;151014:1065::-;151134:40;151193:31;151226:43;151286:23;:89;;151352:23;:21;:23::i;:::-;151286:89;;;151312:37;:35;:37::i;:::-;151192:183;;;;151418:1;151394:14;:21;:25;151386:88;;;;-1:-1:-1;;;151386:88:0;;21950:2:1;151386:88:0;;;21932:21:1;21989:2;21969:18;;;21962:30;22028:34;22008:18;;;22001:62;-1:-1:-1;;;22079:18:1;;;22072:48;22137:19;;151386:88:0;21748:414:1;151386:88:0;151485:32;151533:14;:21;-1:-1:-1;;;;;151520:35:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;151520:35:0;;151485:70;;151571:9;151566:242;151590:23;:30;151586:1;:34;151566:242;;;151738:58;151756:23;151780:1;151756:26;;;;;;;;:::i;:::-;;;;;;;:39;;;151738:17;:58::i;:::-;151664:54;151682:23;151706:1;151682:26;;;;;;;;:::i;:::-;;;;;;;:35;;;151664:17;:54::i;:::-;:132;;;;:::i;:::-;151642:16;151659:1;151642:19;;;;;;;;:::i;:::-;;;;;;;;;;:154;151622:3;;;;:::i;:::-;;;;151566:242;;;;151823:9;151818:222;151866:1;151842:14;:21;:25;;;;:::i;:::-;151838:1;:29;151818:222;;;151982:46;151992:1;151995:16;152013:14;151982:9;:46::i;:::-;-1:-1:-1;151869:3:0;;;;:::i;:::-;;;;151818:222;;;-1:-1:-1;152057:14:0;;151014:1065;-1:-1:-1;;;;151014:1065:0:o;109683:165::-;109773:7;109829:8;109818:20;;;;;;;;:::i;:::-;;;;-1:-1:-1;;109818:20:0;;;;;;;;;109808:31;;109818:20;109808:31;;;;;109683:165;-1:-1:-1;;109683:165:0:o;115817:535::-;115911:7;115935:20;:25;115931:275;;116131:10;116106:36;;;;:24;:36;;;;;;;;116098:96;;;;-1:-1:-1;;;116098:96:0;;;;;;;:::i;:::-;116224:30;;116245:8;116224:30;:::i;:::-;116216:87;;;;-1:-1:-1;;;116216:87:0;;;;;;;:::i;:::-;116321:23;;116335:8;116321:23;:::i;:::-;:13;:23::i;89889:74::-;89931:32;89939:19;;89931:32;:::i;:::-;89889:74;:::o;148423:600::-;148521:34;148557:49;148624:34;148661:11;148624:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;148683:43;148746:17;:24;-1:-1:-1;;;;;148729:42:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;148729:42:0;;;;;;;;;;;;;;;;148683:88;;148787:9;148782:172;148806:17;:24;148802:1;:28;148782:172;;;148881:20;:42;148902:17;148920:1;148902:20;;;;;;;;:::i;:::-;;;;;;;148881:42;;;;;;;;;;;:61;;148852:90;;;;;;;;;;;;;;;;;;;;;;;;;:23;148876:1;148852:26;;;;;;;;:::i;:::-;;;;;;:90;;;;148832:3;;;;;:::i;:::-;;;;148782:172;;;-1:-1:-1;148972:17:0;;148991:23;;-1:-1:-1;148423:600:0;-1:-1:-1;148423:600:0:o;107979:39::-;;;;;;;;;;;;119157:463;-1:-1:-1;;;;;119329:34:0;;119293:13;119329:34;;;:25;:34;;;;;;;;119324:267;;119380:44;119391:7;119400:10;119412:5;;119419:4;119380:10;:44::i;:::-;-1:-1:-1;;;;;;119484:26:0;;;;;;:17;:26;;;;;;;;:39;;;119538:25;:34;;;;;:41;;-1:-1:-1;;119538:41:0;119575:4;119538:41;;;119324:267;-1:-1:-1;119608:4:0;119157:463;;;;;;:::o;171749:147::-;171836:7;171863:25;127258:18;;;127164:120;120284:552;120436:7;113010:29;;;:17;:29;;;;;;120477:10;;113010:29;;120506:30;120498:90;;;;-1:-1:-1;;;120498:90:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;120621:32:0;;;;;;:25;:32;;;;;;;;120599:164;;;;-1:-1:-1;;;120599:164:0;;24021:2:1;120599:164:0;;;24003:21:1;24060:2;24040:18;;;24033:30;24099:34;24079:18;;;24072:62;24170:34;24150:18;;;24143:62;-1:-1:-1;;;24221:19:1;;;24214:49;24280:19;;120599:164:0;23819:486:1;120599:164:0;120781:47;120791:10;120803:5;120810:7;120819:8;120781:9;:47::i;:::-;120774:54;120284:552;-1:-1:-1;;;;;120284:552:0:o;147749:247::-;147837:35;;147795:7;;147837:35;;147815:141;;;;-1:-1:-1;;;147815:141:0;;;;;;;:::i;:::-;-1:-1:-1;147974:14:0;;;147749:247::o;131225:435::-;131361:16;131453:32;;;:20;:32;;;;;;;;-1:-1:-1;;;;;131518:43:0;;;;:30;;:43;;;;;:52;;131585:56;;;;;131225:435;;;;;;:::o;109342:104::-;109398:13;109431:7;109424:14;;;;;:::i;171417:171::-;171516:7;171543:37;126841:30;;;126735:144;40729:657;40850:13;40878:18;;40850:13;;;40878:18;41152:41;:5;40850:13;41152:26;:41::i;:::-;41208:47;:8;41238:16;41208:29;:47::i;:::-;41351:16;;;41334:1;41351:16;;;;;;;;;-1:-1:-1;;;41099:279:0;;;-1:-1:-1;41099:279:0;;-1:-1:-1;41270:13:0;;-1:-1:-1;41306:4:0;;-1:-1:-1;41334:1:0;-1:-1:-1;41351:16:0;-1:-1:-1;41099:279:0;-1:-1:-1;40729:657:0:o;147059:286::-;147164:35;;147122:7;;147164:35;;147142:141;;;;-1:-1:-1;;;147142:141:0;;;;;;;:::i;:::-;-1:-1:-1;147301:36:0;;;;:27;:36;;;;;;;147059:286::o;147415:264::-;147516:35;;147465:16;;147516:35;;147494:141;;;;-1:-1:-1;;;147494:141:0;;;;;;;:::i;:::-;147653:18;147646:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;147415:264;:::o;110850:121::-;110912:16;110948:15;110941:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;110941:22:0;;;;;;;;;;;;;;;;;;;;;;110850:121;:::o;152513:3271::-;152609:32;152598:7;:5;:7::i;:::-;:43;;;;;;;;:::i;:::-;;152576:164;;;;-1:-1:-1;;;152576:164:0;;24512:2:1;152576:164:0;;;24494:21:1;24551:2;24531:18;;;24524:30;24590:34;24570:18;;;24563:62;24661:34;24641:18;;;24634:62;-1:-1:-1;;;24712:19:1;;;24705:38;24760:19;;152576:164:0;24310:475:1;152576:164:0;152774:35;;;;152773:36;152751:181;;;;-1:-1:-1;;;152751:181:0;;24992:2:1;152751:181:0;;;24974:21:1;25031:2;25011:18;;;25004:30;25070:34;25050:18;;;25043:62;25141:34;25121:18;;;25114:62;25213:33;25192:19;;;25185:62;25264:19;;152751:181:0;24790:499:1;152751:181:0;152966:21;152982:4;152966:15;:21::i;:::-;152945:42;;;;:18;;:42;;;;;;:::i;:::-;-1:-1:-1;153096:18:0;:25;153000:21;;153062:1;;153096:29;;153062:1;153096:29;:::i;:::-;153074:19;:51;153228:18;:25;153194:31;153264:2458;153288:23;153284:1;:27;153264:2458;;;153363:18;:25;153333:27;;153363:29;;153391:1;;153363:29;:::i;:::-;153333:59;-1:-1:-1;153470:23:0;;153543:58;153557:18;153576:23;153598:1;153333:59;153576:23;:::i;:::-;153557:43;;;;;;;;:::i;:::-;;;;;;;;;130884:16;130971:32;;;:20;:32;;;;;131022:40;;131064:44;;;;;131022:40;;130812:305;153543:58;153469:132;;;;153616:24;153680:38;153698:19;153680:17;:38::i;:::-;153643:34;153661:15;153643:17;:34::i;:::-;:75;;;;:::i;:::-;153616:102;;153805:1;153810;153805:6;153801:481;;154034:18;:25;153849:17;;-1:-1:-1;153849:17:0;;154063:1;154034:30;154030:208;;154089:48;;;;:27;:48;;;;;:70;;;154182:14;:36;;;154030:208;154258:8;;;;;;153801:481;154389:14;154368:17;:35;154364:957;;154429:28;;;;:7;:28;;;;;;;;154424:164;;154533:28;;;;:7;:28;;;;;:35;;-1:-1:-1;;154533:35:0;154564:4;154533:35;;;154424:164;154633:18;:25;:29;;154661:1;154633:29;:::i;:::-;154610:19;;:52;154606:233;;154778:19;:41;;;154606:233;154364:957;;;155238:23;155260:1;155238:19;:23;:::i;:::-;:27;;155264:1;155238:27;:::i;:::-;155187:48;;;;:27;:48;;;;;:78;155215:19;155284:21;155215:19;155284:21;:::i;:::-;;;;154364:957;155469:18;:25;155460:5;:1;155464;155460:5;:::i;:::-;:34;155456:204;;155566:23;155588:1;155566:19;:23;:::i;:::-;155515:48;;;;:27;:48;;;;;:74;155608:14;:36;;;155456:204;155693:17;-1:-1:-1;;;;153264:2458:0;153313:3;;;;:::i;:::-;;;;153264:2458;;;-1:-1:-1;;155734:35:0;:42;;-1:-1:-1;;155734:42:0;155772:4;155734:42;;;-1:-1:-1;;152513:3271:0:o;107668:28::-;;;;;;;;;;;;131766:235;131880:33;131916:32;;;:20;:32;;;;;;;;;131966:27;;;131959:34;;;;;;;;;;;;;;;;;131851:16;;131916:32;;131959:34;;131966:27;131959:34;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;131959:34:0;;;;;;;;;;;;;;;;;;;;;;;;131766:235;;;:::o;115332:409::-;115476:7;115509:33;115524:10;115536:5;;115509:14;:33::i;:::-;115501:93;;;;-1:-1:-1;;;115501:93:0;;;;;;;:::i;:::-;115613:30;;115634:8;115613:30;:::i;:::-;115605:87;;;;-1:-1:-1;;;115605:87:0;;;;;;;:::i;:::-;115710:23;;115724:8;115710:23;:::i;:::-;115703:30;115332:409;-1:-1:-1;;;;115332:409:0:o;109910:698::-;109994:8;;109965:12;;109994:8;;109990:69;;;-1:-1:-1;110026:21:0;;109910:698::o;109990:69::-;110071:29;110103:14;:12;:14::i;:::-;110071:46;;110159:15;110134:21;:40;110130:103;;110198:23;110191:30;;;109910:698;:::o;110130:103::-;110245:26;110274:11;:9;:11::i;:::-;110245:40;;110324:15;110302:18;:37;110298:96;;110363:19;110356:26;;;;109910:698;:::o;110298:96::-;110406:25;110434:17;:15;:17::i;:::-;110406:45;;110489:15;110468:17;:36;110464:95;;110528:19;110521:26;;;;;109910:698;:::o;110464:95::-;110578:22;110571:29;;;;;109910:698;:::o;112456:138::-;112526:19;;:::i;:::-;112565:21;;;;:9;:21;;;;;;;;;112558:28;;;;;;;;;-1:-1:-1;;;;;112558:28:0;;;;-1:-1:-1;;;112558:28:0;;;;;;;;;;;;;;;;;;;;112565:21;;112558:28;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;112558:28:0;;;-1:-1:-1;;112558:28:0;;;;;;;;;;;;;-1:-1:-1;;;;;112558:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;112558:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;112456:138;;;:::o;149153:1019::-;149265:34;149301:49;149368:34;149405:11;149368:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;149427:42;149486:17;:24;-1:-1:-1;;;;;149472:39:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;149472:39:0;;149427:84;;149522:43;149585:17;:24;-1:-1:-1;;;;;149568:42:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;149568:42:0;;;;;;;;;;;;;;;;149522:88;;149623:29;149672:9;149667:428;149691:17;:24;149687:1;:28;149667:428;;;149742:39;149760:17;149778:1;149760:20;;;;;;;;:::i;:::-;;;;;;;112986:4;113010:29;;;:17;:29;;;;;;;;;112910:137;149742:39;149737:347;;149853:17;149871:1;149853:20;;;;;;;;:::i;:::-;;;;;;;149802:25;149828:21;149802:48;;;;;;;;:::i;:::-;;;;;;:71;;;;;149962:20;:42;149983:17;150001:1;149983:20;;;;;;;;:::i;:::-;;;;;;;149962:42;;;;;;;;;;;:61;;149892:131;;;;;;;;;;;;;;;;;;;;;;;;;:23;149916:21;149892:46;;;;;;;;:::i;:::-;;;;;;;;;;:131;150042:26;150067:1;150042:26;;:::i;:::-;;;149737:347;149717:3;;;;:::i;:::-;;;;149667:428;;;-1:-1:-1;150113:25:0;;150140:23;;-1:-1:-1;149153:1019:0;-1:-1:-1;;;149153:1019:0:o;111445:124::-;111504:7;111548:13;:11;:13::i;:::-;111531:14;:12;:14::i;118647:442::-;118729:9;:7;:9::i;:::-;-1:-1:-1;;;;;118715:23:0;:10;-1:-1:-1;;;;;118715:23:0;;118714:60;;;-1:-1:-1;118744:10:0;107559:42;118744:29;118714:60;118691:166;;;;-1:-1:-1;;;118691:166:0;;25496:2:1;118691:166:0;;;25478:21:1;25535:2;25515:18;;;25508:30;25574:34;25554:18;;;25547:62;-1:-1:-1;;;25625:18:1;;;25618:52;25687:19;;118691:166:0;25294:418:1;118691:166:0;118870:19;118892:7;:5;:7::i;:::-;118870:29;-1:-1:-1;118930:21:0;118920:6;:31;;;;;;;;:::i;:::-;;;:67;;;;-1:-1:-1;118965:22:0;118955:6;:32;;;;;;;;:::i;:::-;;;118920:67;118912:108;;;;-1:-1:-1;;;118912:108:0;;25919:2:1;118912:108:0;;;25901:21:1;25958:2;25938:18;;;25931:30;25997;25977:18;;;25970:58;26045:18;;118912:108:0;25717:352:1;118912:108:0;119031:8;:15;;-1:-1:-1;;119031:15:0;119042:4;119031:15;;;119064:17;;;;119031:8;;119064:17;118680:409;118647:442::o;148068:257::-;148161:35;;148119:7;;148161:35;;148139:141;;;;-1:-1:-1;;;148139:141:0;;;;;;;:::i;:::-;-1:-1:-1;148298:19:0;;;148068:257::o;110669:113::-;110727:16;110763:11;110756:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;110669:113;:::o;117504:1045::-;117617:9;:7;:9::i;:::-;-1:-1:-1;;;;;117603:23:0;:10;-1:-1:-1;;;;;117603:23:0;;117595:91;;;;-1:-1:-1;;;117595:91:0;;26276:2:1;117595:91:0;;;26258:21:1;26315:2;26295:18;;;26288:30;26354:34;26334:18;;;26327:62;26425:25;26405:18;;;26398:53;26468:19;;117595:91:0;26074:419:1;117595:91:0;117730:22;117719:7;:5;:7::i;:::-;:33;;;;;;;;:::i;:::-;;117697:156;;;;-1:-1:-1;;;117697:156:0;;26700:2:1;117697:156:0;;;26682:21:1;26739:2;26719:18;;;26712:30;26778:34;26758:18;;;26751:62;26849:34;26829:18;;;26822:62;-1:-1:-1;;;26900:19:1;;;26893:40;26950:19;;117697:156:0;26498:477:1;117697:156:0;117871:13;117866:629;117890:34;;;117866:629;;;117950:25;117978:19;;117998:5;117978:26;;;;;;;:::i;:::-;;;;;;;;;;118024:36;;;;:17;:36;;;;;;;;117978:26;;-1:-1:-1;;118024:36:0;;118019:465;;118146:36;;;;:17;:36;;;;;:43;;-1:-1:-1;;118146:43:0;118185:4;118146:43;;;;;;118426:18;:42;;;;;;;;;;;;;;;118019:465;-1:-1:-1;117926:7:0;;;;:::i;:::-;;;;117866:629;;;;118512:29;118529:11;118512:29;;;;;;:::i;:::-;;;;;;;;117504:1045;;:::o;169631:438::-;169751:9;:7;:9::i;:::-;-1:-1:-1;;;;;169737:23:0;:10;-1:-1:-1;;;;;169737:23:0;;169729:112;;;;-1:-1:-1;;;169729:112:0;;27979:2:1;169729:112:0;;;27961:21:1;28018:2;27998:18;;;27991:30;28057:34;28037:18;;;28030:62;28128:34;28108:18;;;28101:62;-1:-1:-1;;;28179:19:1;;;28172:43;28232:19;;169729:112:0;27777:480:1;169729:112:0;169893:21;;;-1:-1:-1;;;;;169925:46:0;;;-1:-1:-1;;;;;;169925:46:0;;;;;;;169987:74;;;169893:21;;;;28534:34:1;;;28599:2;28584:18;;28577:43;;;;169987:74:0;;28469:18:1;169987:74:0;28262:364:1;114084:1184:0;114216:15;;114177:18;;-1:-1:-1;;;;;114216:29:0;114235:10;114216:29;114208:90;;;;-1:-1:-1;;;114208:90:0;;28833:2:1;114208:90:0;;;28815:21:1;28872:2;28852:18;;;28845:30;28911:34;28891:18;;;28884:62;-1:-1:-1;;;28962:18:1;;;28955:46;29018:19;;114208:90:0;28631:412:1;114208:90:0;114314:13;114309:814;89931:32;89939:19;;89931:32;:::i;:::-;114333:5;:23;114309:814;;;114382:25;114420:5;114410:16;;;;;;;;:::i;:::-;114382:44;-1:-1:-1;114464:16:0;114445:15;:35;;;;;;;;:::i;:::-;;114441:671;;114501:8;;;114441:671;114611:14;114592:15;:33;;;;;;;;:::i;:::-;;114588:524;;114676:21;;;;:29;:36;:29;:41;114646:187;;;;-1:-1:-1;;;114646:187:0;;29250:2:1;114646:187:0;;;29232:21:1;29289:2;29269:18;;;29262:30;29328:34;29308:18;;;29301:62;29399:34;29379:18;;;29372:62;-1:-1:-1;;;29450:19:1;;;29443:39;29499:19;;114646:187:0;29048:476:1;114646:187:0;114882:8;:21;;;:31;;;114917:1;114882:36;114852:178;;;;-1:-1:-1;;;114852:178:0;;29731:2:1;114852:178:0;;;29713:21:1;29770:2;29750:18;;;29743:30;;;29809:34;29789:18;;;29782:62;29880:34;29860:18;;;29853:62;-1:-1:-1;;;29931:19:1;;;29924:35;29976:19;;114852:178:0;29529:472:1;114852:178:0;114588:524;;;115078:18;;-1:-1:-1;;;115078:18:0;;;;;;;;;;;114588:524;114367:756;114309:814;114358:7;;;;:::i;:::-;;;;114309:814;;;;115147:8;:20;;;115141:34;115179:1;115141:39;115133:105;;;;-1:-1:-1;;;115133:105:0;;30208:2:1;115133:105:0;;;30190:21:1;30247:2;30227:18;;;30220:30;30286:34;30266:18;;;30259:62;-1:-1:-1;;;30337:18:1;;;30330:51;30398:19;;115133:105:0;30006:417:1;115133:105:0;-1:-1:-1;115256:4:0;;114084:1184;-1:-1:-1;114084:1184:0:o;171596:145::-;171682:7;171709:24;127059:17;;;126966:118;96736:156;96827:4;96880;96851:25;96864:5;96871:4;96851:12;:25::i;:::-;:33;;96736:156;-1:-1:-1;;;;96736:156:0:o;121125:761::-;121267:7;121311:19;121300:7;:5;:7::i;:::-;:30;;;;;;;;:::i;:::-;;121292:78;;;;-1:-1:-1;;;121292:78:0;;30630:2:1;121292:78:0;;;30612:21:1;30669:2;30649:18;;;30642:30;30708:34;30688:18;;;30681:62;-1:-1:-1;;;30759:18:1;;;30752:33;30802:19;;121292:78:0;30428:399:1;121292:78:0;121400:1;121389:8;:12;121381:68;;;;-1:-1:-1;;;121381:68:0;;31034:2:1;121381:68:0;;;31016:21:1;31073:2;31053:18;;;31046:30;31112:34;31092:18;;;31085:62;-1:-1:-1;;;31163:18:1;;;31156:41;31214:19;;121381:68:0;30832:407:1;121381:68:0;-1:-1:-1;;;;;121484:34:0;;;;;;:25;:34;;;;;;;;121462:163;;;;-1:-1:-1;;;121462:163:0;;31446:2:1;121462:163:0;;;31428:21:1;31485:2;31465:18;;;31458:30;31524:34;31504:18;;;31497:62;31595:34;31575:18;;;31568:62;-1:-1:-1;;;31646:19:1;;;31639:46;31702:19;;121462:163:0;31244:483:1;121462:163:0;121636:78;121647:10;121659:7;121668;121677:8;121687:17;:26;121705:7;-1:-1:-1;;;;;121687:26:0;-1:-1:-1;;;;;121687:26:0;;;;;;;;;;;;;121636:10;:78::i;:::-;121727:22;:39;;;;;;;-1:-1:-1;121727:39:0;;;;;;;;-1:-1:-1;;;;;;121727:39:0;121755:10;121727:39;;;121784:48;;;31930:25:1;;;32003:4;31991:17;;31986:2;31971:18;;31964:45;32025:18;;;32018:34;;;-1:-1:-1;;;;;121784:48:0;;;;;31918:2:1;31903:18;121784:48:0;;;;;;;-1:-1:-1;;;;;;;;121852:26:0;;;;;:17;:26;;;;;;;121125:761;-1:-1:-1;121125:761:0:o;78995:301::-;79051:6;-1:-1:-1;;;;;79178:5:0;:34;;79170:87;;;;-1:-1:-1;;;79170:87:0;;32265:2:1;79170:87:0;;;32247:21:1;32304:2;32284:18;;;32277:30;32343:34;32323:18;;;32316:62;-1:-1:-1;;;32394:18:1;;;32387:38;32442:19;;79170:87:0;32063:404:1;79170:87:0;-1:-1:-1;79282:5:0;78995:301::o;150180:736::-;150326:4;150363:3;;150377:175;150403:16;:23;150399:1;:27;150377:175;;;150474:16;150491:4;150474:22;;;;;;;;:::i;:::-;;;;;;;150452:16;150469:1;150452:19;;;;;;;;:::i;:::-;;;;;;;:44;150448:93;;;150524:1;150517:8;;150448:93;150428:3;;;;:::i;:::-;;;;150377:175;;;;150574:3;150566:4;:11;150562:29;;150586:5;150579:12;;;;;150562:29;150602:15;150620:16;150637:3;150620:21;;;;;;;;:::i;:::-;;;;;;;150602:39;;150676:16;150693:4;150676:22;;;;;;;;:::i;:::-;;;;;;;150652:16;150669:3;150652:21;;;;;;;;:::i;:::-;;;;;;:46;;;;;150734:8;150709:16;150726:4;150709:22;;;;;;;;:::i;:::-;;;;;;:33;;;;;150753:22;150778:11;150790:3;150778:16;;;;;;;;:::i;:::-;;;;;;;150753:41;;150824:11;150836:4;150824:17;;;;;;;;:::i;:::-;;;;;;;150805:11;150817:3;150805:16;;;;;;;;:::i;:::-;;;;;;:36;;;;;150872:14;150852:11;150864:4;150852:17;;;;;;;;:::i;:::-;;;;;;;;;;:34;-1:-1:-1;150904:4:0;;150180:736;-1:-1:-1;;;;;;150180:736:0:o;116360:1027::-;116439:7;116478:19;116467:7;:5;:7::i;:::-;:30;;;;;;;;:::i;:::-;;116459:105;;;;-1:-1:-1;;;116459:105:0;;32674:2:1;116459:105:0;;;32656:21:1;32713:2;32693:18;;;32686:30;32752:34;32732:18;;;32725:62;32823:32;32803:18;;;32796:60;32873:19;;116459:105:0;32472:426:1;116459:105:0;116626:31;:29;:31::i;:::-;116612:10;116597:26;;;;:14;:26;;;;;;:60;116575:211;;;;-1:-1:-1;;;116575:211:0;;33105:2:1;116575:211:0;;;33087:21:1;33144:3;33124:18;;;33117:31;33184:34;33164:18;;;33157:62;33255:34;33235:18;;;33228:62;33327:34;33306:19;;;33299:63;-1:-1:-1;;;33378:19:1;;;33371:36;33424:19;;116575:211:0;32903:546:1;116575:211:0;116870:18;:16;:18::i;:::-;116841;:25;116820:11;:18;:46;;116841:25;116820:46;:::i;:::-;116819:69;116797:176;;;;-1:-1:-1;;;116797:176:0;;33656:2:1;116797:176:0;;;33638:21:1;33695:2;33675:18;;;33668:30;33734:34;33714:18;;;33707:62;33805:27;33785:18;;;33778:55;33850:19;;116797:176:0;33454:421:1;116797:176:0;116986:18;117007:22;117020:8;117007:12;:22::i;:::-;117049:21;;;;:9;:21;;;;;:28;:21;;-1:-1:-1;;;;117049:28:0;;;;117048:29;117040:83;;;;-1:-1:-1;;;117040:83:0;;34082:2:1;117040:83:0;;;34064:21:1;34121:2;34101:18;;;34094:30;34160:34;34140:18;;;34133:62;-1:-1:-1;;;34211:18:1;;;34204:39;34260:19;;117040:83:0;33880:405:1;117040:83:0;117136:11;:28;;;;;;;;;;;;;;-1:-1:-1;117175:21:0;;;:9;117136:28;117175:21;;;;;;;;:32;;;;;;;;;;-1:-1:-1;;;117175:32:0;-1:-1:-1;;;;;;117175:32:0;;;-1:-1:-1;;;;;117175:32:0;;;;;;;;;;;;;;117199:8;;117175:32;;;;;;;:::i;:::-;-1:-1:-1;117175:32:0;;;;;;;;;;-1:-1:-1;;;;;;117175:32:0;-1:-1:-1;;;;;117175:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;117175:32:0;;;;;;;;;;117233:10;117218:26;;;;:14;:26;;;;;;:31;;117175:32;;-1:-1:-1;117218:26:0;-1:-1:-1;117218:31:0;;117175:32;;117218:31;:::i;:::-;;;;-1:-1:-1;;117260:15:0;:32;;;;;;;-1:-1:-1;117260:32:0;;;;;;;;-1:-1:-1;;;;;;117260:32:0;117281:10;117260:32;;;;;;117310:39;;;36553:25:1;;;36609:2;36594:18;;36587:60;;;;117310:39:0;;36526:18:1;117310:39:0;;;;;;;117369:10;116360:1027;-1:-1:-1;;116360:1027:0:o;34181:274::-;34275:13;32126:66;34305:47;;34301:147;;34376:15;34385:5;34376:8;:15::i;:::-;34369:22;;;;34301:147;34431:5;34424:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34181:274;;;;:::o;97535:296::-;97618:7;97661:4;97618:7;97676:118;97700:5;:12;97696:1;:16;97676:118;;;97749:33;97759:12;97773:5;97779:1;97773:8;;;;;;;;:::i;:::-;;;;;;;97749:9;:33::i;:::-;97734:48;-1:-1:-1;97714:3:0;;;;:::i;:::-;;;;97676:118;;;-1:-1:-1;97811:12:0;97535:296;-1:-1:-1;;;97535:296:0:o;132484:1442::-;132663:33;132699:32;;;:20;:32;;;;;;;;-1:-1:-1;;;;;132792:35:0;;;;:26;:35;;;;;;;132779:48;;:10;:48;:::i;:::-;132766:8;:62;;132744:163;;;;-1:-1:-1;;;132744:163:0;;36860:2:1;132744:163:0;;;36842:21:1;36899:2;36879:18;;;36872:30;36938:34;36918:18;;;36911:62;-1:-1:-1;;;36989:18:1;;;36982:49;37048:19;;132744:163:0;36658:415:1;132744:163:0;-1:-1:-1;;;;;132958:39:0;;132920:20;132958:39;;;:30;;;:39;;;;;:48;:53;:131;;;;-1:-1:-1;;;;;;133032:39:0;;;;;;:30;;;:39;;;;;:52;;;:57;132958:131;132920:180;-1:-1:-1;133117:30:0;;;133113:610;;133164:52;;133208:8;;133164:12;;:31;;:52;;133208:8;;133164:52;:::i;:::-;;;;-1:-1:-1;;;;;;;133231:39:0;;;;;;:30;;;:39;;;;;:60;;133283:8;;133231:39;:60;;133283:8;;133231:60;:::i;:::-;;;;-1:-1:-1;133113:610:0;;-1:-1:-1;133113:610:0;;-1:-1:-1;;133313:34:0;;;;133309:414;;133372:19;:17;:19::i;:::-;133395:1;133372:24;133364:101;;;;;-1:-1:-1;;;133364:101:0;;37280:2:1;133364:101:0;;;37262:21:1;37299:18;;;37292:30;;;;37358:34;37338:18;;;37331:62;37429:34;37409:18;;;37402:62;37481:19;;133364:101:0;37078:428:1;133364:101:0;133528:8;133480:12;:31;;:44;;;:56;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;133551:39:0;;;;;;:30;;;:39;;;;;:52;;:64;;133607:8;;133551:39;:64;;133607:8;;133551:64;:::i;133309:414::-;133648:63;;-1:-1:-1;;;133648:63:0;;37713:2:1;133648:63:0;;;37695:21:1;37752:2;37732:18;;;37725:30;37791:34;37771:18;;;37764:62;-1:-1:-1;;;37842:18:1;;;37835:51;37903:19;;133648:63:0;37511:417:1;133309:414:0;133739:15;133735:89;;;133771:27;;;:41;;;;;;;-1:-1:-1;133771:41:0;;;;;;;;;;-1:-1:-1;;;;;;133771:41:0;-1:-1:-1;;;;;133771:41:0;;;;;133735:89;-1:-1:-1;;;;;133834:35:0;;;;;;:26;:35;;;;;:47;;133873:8;;133834:35;:47;;133873:8;;133834:47;:::i;:::-;;;;;;;;133910:8;133892:14;;:26;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;;;132484:1442:0:o;32835:415::-;32894:13;32920:11;32934:16;32945:4;32934:10;:16::i;:::-;33060:14;;;33071:2;33060:14;;;;;;;;;32920:30;;-1:-1:-1;33040:17:0;;33060:14;;;;;;;;;-1:-1:-1;;;33153:16:0;;;-1:-1:-1;33199:4:0;33190:14;;33183:28;;;;-1:-1:-1;33153:16:0;32835:415::o;104973:149::-;105036:7;105067:1;105063;:5;:51;;105198:13;105292:15;;;105328:4;105321:15;;;105375:4;105359:21;;105063:51;;;-1:-1:-1;105198:13:0;105292:15;;;105328:4;105321:15;105375:4;105359:21;;;104973:149::o;33327:251::-;33388:7;33461:4;33425:40;;33489:2;33480:11;;33476:71;;;33515:20;;-1:-1:-1;;;33515:20:0;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;196:180:1;255:6;308:2;296:9;287:7;283:23;279:32;276:52;;;324:1;321;314:12;276:52;-1:-1:-1;347:23:1;;196:180;-1:-1:-1;196:180:1:o;381:423::-;423:3;461:5;455:12;488:6;483:3;476:19;513:1;523:162;537:6;534:1;531:13;523:162;;;599:4;655:13;;;651:22;;645:29;627:11;;;623:20;;616:59;552:12;523:162;;;527:3;730:1;723:4;714:6;709:3;705:16;701:27;694:38;793:4;786:2;782:7;777:2;769:6;765:15;761:29;756:3;752:39;748:50;741:57;;;381:423;;;;:::o;809:668::-;937:12;;903:4;958:17;;;1024:19;;894:14;;;1052:20;;;864:3;;1121:4;;1148:21;;;;1099:2;1090:12;;;864:3;1197:201;1211:6;1208:1;1205:13;1197:201;;;1278:13;;-1:-1:-1;;;;;1274:39:1;1260:54;;1373:15;;;;1336:14;;;;1310:1;1226:9;1197:201;;;-1:-1:-1;;1434:14:1;;;1428:21;1414:12;;;;1407:43;;;;-1:-1:-1;1466:5:1;809:668;-1:-1:-1;809:668:1:o;1482:789::-;1824:4;1870:1;1866;1861:3;1857:11;1853:19;1911:2;1903:6;1899:15;1888:9;1881:34;1965:6;1958:14;1951:22;1946:2;1935:9;1931:18;1924:50;2010:3;2005:2;1994:9;1990:18;1983:31;2037:46;2078:3;2067:9;2063:19;2055:6;2037:46;:::i;:::-;2138:2;2129:6;2123:13;2119:22;2114:2;2103:9;2099:18;2092:50;2191:9;2183:6;2179:22;2173:3;2162:9;2158:19;2151:51;2219:46;2258:6;2250;2219:46;:::i;:::-;2211:54;1482:789;-1:-1:-1;;;;;;;;;1482:789:1:o;2276:286::-;2334:6;2387:2;2375:9;2366:7;2362:23;2358:32;2355:52;;;2403:1;2400;2393:12;2355:52;2429:23;;-1:-1:-1;;;;;;2481:32:1;;2471:43;;2461:71;;2528:1;2525;2518:12;2967:220;3116:2;3105:9;3098:21;3079:4;3136:45;3177:2;3166:9;3162:18;3154:6;3136:45;:::i;3348:255::-;3268:12;;3256:25;;3330:4;3319:16;;;3313:23;3297:14;;;3290:47;3538:2;3523:18;;3550:47;3192:151;3608:435;3661:3;3699:5;3693:12;3726:6;3721:3;3714:19;3752:4;3781:2;3776:3;3772:12;3765:19;;3818:2;3811:5;3807:14;3839:1;3849:169;3863:6;3860:1;3857:13;3849:169;;;3924:13;;3912:26;;3958:12;;;;3993:15;;;;3885:1;3878:9;3849:169;;;-1:-1:-1;4034:3:1;;3608:435;-1:-1:-1;;;;;3608:435:1:o;4048:261::-;4227:2;4216:9;4209:21;4190:4;4247:56;4299:2;4288:9;4284:18;4276:6;4247:56;:::i;4314:131::-;-1:-1:-1;;;;;4389:31:1;;4379:42;;4369:70;;4435:1;4432;4425:12;4369:70;4314:131;:::o;4450:367::-;4513:8;4523:6;4577:3;4570:4;4562:6;4558:17;4554:27;4544:55;;4595:1;4592;4585:12;4544:55;-1:-1:-1;4618:20:1;;-1:-1:-1;;;;;4650:30:1;;4647:50;;;4693:1;4690;4683:12;4647:50;4730:4;4722:6;4718:17;4706:29;;4790:3;4783:4;4773:6;4770:1;4766:14;4758:6;4754:27;4750:38;4747:47;4744:67;;;4807:1;4804;4797:12;4822:572;4917:6;4925;4933;4986:2;4974:9;4965:7;4961:23;4957:32;4954:52;;;5002:1;4999;4992:12;4954:52;5041:9;5028:23;5060:31;5085:5;5060:31;:::i;:::-;5110:5;-1:-1:-1;5166:2:1;5151:18;;5138:32;-1:-1:-1;;;;;5182:30:1;;5179:50;;;5225:1;5222;5215:12;5179:50;5264:70;5326:7;5317:6;5306:9;5302:22;5264:70;:::i;:::-;4822:572;;5353:8;;-1:-1:-1;5238:96:1;;-1:-1:-1;;;;4822:572:1:o;5399:658::-;5570:2;5622:21;;;5692:13;;5595:18;;;5714:22;;;5541:4;;5570:2;5793:15;;;;5767:2;5752:18;;;5541:4;5836:195;5850:6;5847:1;5844:13;5836:195;;;5915:13;;-1:-1:-1;;;;;5911:39:1;5899:52;;6006:15;;;;5971:12;;;;5947:1;5865:9;5836:195;;;-1:-1:-1;6048:3:1;;5399:658;-1:-1:-1;;;;;;5399:658:1:o;6062:160::-;6127:20;;6183:13;;6176:21;6166:32;;6156:60;;6212:1;6209;6202:12;6156:60;6062:160;;;:::o;6227:709::-;6337:6;6345;6353;6361;6369;6422:3;6410:9;6401:7;6397:23;6393:33;6390:53;;;6439:1;6436;6429:12;6390:53;6478:9;6465:23;6497:31;6522:5;6497:31;:::i;:::-;6547:5;-1:-1:-1;6599:2:1;6584:18;;6571:32;;-1:-1:-1;6654:2:1;6639:18;;6626:32;-1:-1:-1;;;;;6670:30:1;;6667:50;;;6713:1;6710;6703:12;6667:50;6752:70;6814:7;6805:6;6794:9;6790:22;6752:70;:::i;:::-;6841:8;;-1:-1:-1;6726:96:1;-1:-1:-1;6895:35:1;;-1:-1:-1;6926:2:1;6911:18;;6895:35;:::i;:::-;6885:45;;6227:709;;;;;;;;:::o;6941:156::-;7007:20;;7067:4;7056:16;;7046:27;;7036:55;;7087:1;7084;7077:12;7102:713;7222:6;7230;7238;7246;7254;7262;7315:3;7303:9;7294:7;7290:23;7286:33;7283:53;;;7332:1;7329;7322:12;7283:53;7368:9;7355:23;7345:33;;7397:36;7429:2;7418:9;7414:18;7397:36;:::i;:::-;7387:46;;7480:2;7469:9;7465:18;7452:32;7442:42;;7531:2;7520:9;7516:18;7503:32;7493:42;;7586:3;7575:9;7571:19;7558:33;-1:-1:-1;;;;;7606:6:1;7603:30;7600:50;;;7646:1;7643;7636:12;7600:50;7685:70;7747:7;7738:6;7727:9;7723:22;7685:70;:::i;:::-;7102:713;;;;-1:-1:-1;7102:713:1;;-1:-1:-1;7102:713:1;;7774:8;;7102:713;-1:-1:-1;;;7102:713:1:o;7820:180::-;7876:6;7929:2;7917:9;7908:7;7904:23;7900:32;7897:52;;;7945:1;7942;7935:12;7897:52;7968:26;7984:9;7968:26;:::i;8005:127::-;8066:10;8061:3;8057:20;8054:1;8047:31;8097:4;8094:1;8087:15;8121:4;8118:1;8111:15;8137:257;8209:4;8203:11;;;8241:17;;-1:-1:-1;;;;;8273:34:1;;8309:22;;;8270:62;8267:88;;;8335:18;;:::i;:::-;8371:4;8364:24;8137:257;:::o;8399:253::-;8471:2;8465:9;8513:4;8501:17;;-1:-1:-1;;;;;8533:34:1;;8569:22;;;8530:62;8527:88;;;8595:18;;:::i;8657:275::-;8728:2;8722:9;8793:2;8774:13;;-1:-1:-1;;8770:27:1;8758:40;;-1:-1:-1;;;;;8813:34:1;;8849:22;;;8810:62;8807:88;;;8875:18;;:::i;:::-;8911:2;8904:22;8657:275;;-1:-1:-1;8657:275:1:o;8937:486::-;8998:5;9046:4;9034:9;9029:3;9025:19;9021:30;9018:50;;;9064:1;9061;9054:12;9018:50;9097:2;9091:9;9139:4;9131:6;9127:17;9210:6;9198:10;9195:22;-1:-1:-1;;;;;9162:10:1;9159:34;9156:62;9153:88;;;9221:18;;:::i;:::-;9257:2;9250:22;9290:6;-1:-1:-1;9290:6:1;9320:23;;9352:33;9320:23;9352:33;:::i;:::-;9394:23;;8937:486;;-1:-1:-1;;8937:486:1:o;9428:1103::-;9487:5;9535:4;9523:9;9518:3;9514:19;9510:30;9507:50;;;9553:1;9550;9543:12;9507:50;9575:22;;:::i;:::-;9566:31;;9633:9;9620:23;-1:-1:-1;;;;;9703:2:1;9695:6;9692:14;9689:34;;;9719:1;9716;9709:12;9689:34;9757:6;9746:9;9742:22;9732:32;;9802:3;9795:4;9791:2;9787:13;9783:23;9773:51;;9820:1;9817;9810:12;9773:51;9856:2;9843:16;9878:4;9901:2;9897;9894:10;9891:36;;;9907:18;;:::i;:::-;9953:2;9950:1;9946:10;9936:20;;9976:28;10000:2;9996;9992:11;9976:28;:::i;:::-;10038:15;;;10108:11;;;10104:20;;;10069:12;;;;10136:15;;;10133:35;;;10164:1;10161;10154:12;10133:35;10188:11;;;;10208:223;10224:6;10219:3;10216:15;10208:223;;;10306:3;10293:17;10278:32;;10323:33;10348:7;10323:33;:::i;:::-;10369:20;;;10241:12;;;;10409;;;;10208:223;;;10454:5;10447;10440:20;;;10520:2;10509:9;10505:18;10492:32;10487:2;10480:5;10476:14;10469:56;;;;;9428:1103;;;;:::o;10536:1282::-;10595:5;10643:4;10631:9;10626:3;10622:19;10618:30;10615:50;;;10661:1;10658;10651:12;10615:50;10683:22;;:::i;:::-;10674:31;;10742:9;10729:23;10761:33;10786:7;10761:33;:::i;:::-;10803:22;;10844:2;10878:35;10894:18;;;10878:35;:::i;:::-;10873:2;10866:5;10862:14;10855:59;10965:2;10954:9;10950:18;10937:32;-1:-1:-1;;;;;11029:2:1;11021:6;11018:14;11015:34;;;11045:1;11042;11035:12;11015:34;11083:6;11072:9;11068:22;11058:32;;11128:3;11121:4;11117:2;11113:13;11109:23;11099:51;;11146:1;11143;11136:12;11099:51;11182:2;11169:16;11204:2;11200;11197:10;11194:36;;;11210:18;;:::i;:::-;11252:53;11295:2;11276:13;;-1:-1:-1;;11272:27:1;11268:36;;11252:53;:::i;:::-;11328:2;11321:5;11314:17;11368:3;11363:2;11358;11354;11350:11;11346:20;11343:29;11340:49;;;11385:1;11382;11375:12;11340:49;11440:2;11435;11431;11427:11;11422:2;11415:5;11411:14;11398:45;11484:1;11479:2;11474;11467:5;11463:14;11459:23;11452:34;11518:5;11513:2;11506:5;11502:14;11495:29;;;11556:57;11609:3;11604:2;11593:9;11589:18;11556:57;:::i;:::-;11551:2;11544:5;11540:14;11533:81;11667:3;11656:9;11652:19;11639:33;11623:49;;11697:2;11687:8;11684:16;11681:36;;;11713:1;11710;11703:12;11681:36;;;11750:61;11807:3;11796:8;11785:9;11781:24;11750:61;:::i;:::-;11744:3;11737:5;11733:15;11726:86;;10536:1282;;;;:::o;11823:355::-;11912:6;11965:2;11953:9;11944:7;11940:23;11936:32;11933:52;;;11981:1;11978;11971:12;11933:52;12021:9;12008:23;-1:-1:-1;;;;;12046:6:1;12043:30;12040:50;;;12086:1;12083;12076:12;12040:50;12109:63;12164:7;12155:6;12144:9;12140:22;12109:63;:::i;12183:161::-;12248:5;12293:3;12284:6;12279:3;12275:16;12271:26;12268:46;;;12310:1;12307;12300:12;12268:46;-1:-1:-1;12332:6:1;12183:161;-1:-1:-1;12183:161:1:o;12349:366::-;12440:6;12493:2;12481:9;12472:7;12468:23;12464:32;12461:52;;;12509:1;12506;12499:12;12461:52;12549:9;12536:23;-1:-1:-1;;;;;12574:6:1;12571:30;12568:50;;;12614:1;12611;12604:12;12568:50;12637:72;12701:7;12692:6;12681:9;12677:22;12637:72;:::i;12720:903::-;12996:4;13025:2;13054;13043:9;13036:21;13080:56;13132:2;13121:9;13117:18;13109:6;13080:56;:::i;:::-;13193:22;;;13155:2;13173:18;;;13166:50;;;;13265:13;;13287:22;;;13363:15;;;;13325;;;13396:1;13406:191;13420:6;13417:1;13414:13;13406:191;;;13469:48;13513:3;13504:6;13498:13;3268:12;;3256:25;;3330:4;3319:16;;;3313:23;3297:14;;3290:47;3192:151;13469:48;13572:15;;;;13537:12;;;;13442:1;13435:9;13406:191;;;-1:-1:-1;13614:3:1;;12720:903;-1:-1:-1;;;;;;;;12720:903:1:o;13628:640::-;13732:6;13740;13748;13756;13809:2;13797:9;13788:7;13784:23;13780:32;13777:52;;;13825:1;13822;13815:12;13777:52;13864:9;13851:23;13883:31;13908:5;13883:31;:::i;:::-;13933:5;-1:-1:-1;13985:2:1;13970:18;;13957:32;;-1:-1:-1;14040:2:1;14025:18;;14012:32;-1:-1:-1;;;;;14056:30:1;;14053:50;;;14099:1;14096;14089:12;14053:50;14138:70;14200:7;14191:6;14180:9;14176:22;14138:70;:::i;:::-;13628:640;;;;-1:-1:-1;14227:8:1;-1:-1:-1;;;;13628:640:1:o;14526:247::-;14585:6;14638:2;14626:9;14617:7;14613:23;14609:32;14606:52;;;14654:1;14651;14644:12;14606:52;14693:9;14680:23;14712:31;14737:5;14712:31;:::i;14778:318::-;14853:6;14861;14869;14922:2;14910:9;14901:7;14897:23;14893:32;14890:52;;;14938:1;14935;14928:12;14890:52;14974:9;14961:23;14951:33;;15003:36;15035:2;15024:9;15020:18;15003:36;:::i;:::-;14993:46;;15086:2;15075:9;15071:18;15058:32;15048:42;;14778:318;;;;;:::o;15101:315::-;15169:6;15177;15230:2;15218:9;15209:7;15205:23;15201:32;15198:52;;;15246:1;15243;15236:12;15198:52;15282:9;15269:23;15259:33;;15342:2;15331:9;15327:18;15314:32;15355:31;15380:5;15355:31;:::i;:::-;15405:5;15395:15;;;15101:315;;;;;:::o;15659:920::-;16065:3;16060;16056:13;16048:6;16044:26;16033:9;16026:45;16107:3;16102:2;16091:9;16087:18;16080:31;16007:4;16134:46;16175:3;16164:9;16160:19;16152:6;16134:46;:::i;:::-;16228:9;16220:6;16216:22;16211:2;16200:9;16196:18;16189:50;16262:33;16288:6;16280;16262:33;:::i;:::-;16326:2;16311:18;;16304:34;;;-1:-1:-1;;;;;16375:32:1;;16369:3;16354:19;;16347:61;16395:3;16424:19;;16417:35;;;16489:22;;;16483:3;16468:19;;16461:51;16248:47;-1:-1:-1;16529:44:1;16248:47;16558:6;16529:44;:::i;:::-;16521:52;15659:920;-1:-1:-1;;;;;;;;;;15659:920:1:o;16766:702::-;16893:6;16901;16909;16962:2;16950:9;16941:7;16937:23;16933:32;16930:52;;;16978:1;16975;16968:12;16930:52;17018:9;17005:23;-1:-1:-1;;;;;17088:2:1;17080:6;17077:14;17074:34;;;17104:1;17101;17094:12;17074:34;17127:72;17191:7;17182:6;17171:9;17167:22;17127:72;:::i;:::-;17117:82;;17252:2;17241:9;17237:18;17224:32;17208:48;;17281:2;17271:8;17268:16;17265:36;;;17297:1;17294;17287:12;17265:36;;17336:72;17400:7;17389:8;17378:9;17374:24;17336:72;:::i;17473:127::-;17534:10;17529:3;17525:20;17522:1;17515:31;17565:4;17562:1;17555:15;17589:4;17586:1;17579:15;17605:345;17754:2;17739:18;;17787:1;17776:13;;17766:144;;17832:10;17827:3;17823:20;17820:1;17813:31;17867:4;17864:1;17857:15;17895:4;17892:1;17885:15;17766:144;17919:25;;;17605:345;:::o;17955:813::-;18144:2;18133:9;18126:21;18107:4;18183:1;18179;18174:3;18170:11;18166:19;18240:2;18231:6;18225:13;18221:22;18216:2;18205:9;18201:18;18194:50;18312:2;18304:6;18300:15;18294:22;18287:30;18280:38;18275:2;18264:9;18260:18;18253:66;18366:2;18358:6;18354:15;18348:22;18406:4;18401:2;18390:9;18386:18;18379:32;18434:52;18481:3;18470:9;18466:19;18452:12;18434:52;:::i;:::-;18420:66;;18558:2;18551;18543:6;18539:15;18533:22;18527:29;18523:38;18517:3;18506:9;18502:19;18495:67;18611:3;18603:6;18599:16;18593:23;18571:45;;18686:2;18682:7;18670:9;18662:6;18658:22;18654:36;18647:4;18636:9;18632:20;18625:66;18708:54;18755:6;18739:14;18708:54;:::i;18773:437::-;18859:6;18867;18920:2;18908:9;18899:7;18895:23;18891:32;18888:52;;;18936:1;18933;18926:12;18888:52;18976:9;18963:23;-1:-1:-1;;;;;19001:6:1;18998:30;18995:50;;;19041:1;19038;19031:12;18995:50;19080:70;19142:7;19133:6;19122:9;19118:22;19080:70;:::i;:::-;19169:8;;19054:96;;-1:-1:-1;18773:437:1;-1:-1:-1;;;;18773:437:1:o;19489:380::-;19568:1;19564:12;;;;19611;;;19632:61;;19686:4;19678:6;19674:17;19664:27;;19632:61;19739:2;19731:6;19728:14;19708:18;19705:38;19702:161;;19785:10;19780:3;19776:20;19773:1;19766:31;19820:4;19817:1;19810:15;19848:4;19845:1;19838:15;19874:473;20076:2;20058:21;;;20115:2;20095:18;;;20088:30;20154:34;20149:2;20134:18;;20127:62;20225:34;20220:2;20205:18;;20198:62;-1:-1:-1;;;20291:3:1;20276:19;;20269:36;20337:3;20322:19;;19874:473::o;20352:127::-;20413:10;20408:3;20404:20;20401:1;20394:31;20444:4;20441:1;20434:15;20468:4;20465:1;20458:15;20484:125;20549:9;;;20570:10;;;20567:36;;;20583:18;;:::i;20913:411::-;21115:2;21097:21;;;21154:2;21134:18;;;21127:30;21193:34;21188:2;21173:18;;21166:62;-1:-1:-1;;;21259:2:1;21244:18;;21237:45;21314:3;21299:19;;20913:411::o;22167:127::-;22228:10;22223:3;22219:20;22216:1;22209:31;22259:4;22256:1;22249:15;22283:4;22280:1;22273:15;22299:200;22365:9;;;22338:4;22393:9;;22421:10;;22433:12;;;22417:29;22456:12;;;22448:21;;22414:56;22411:82;;;22473:18;;:::i;:::-;22411:82;22299:200;;;;:::o;22504:135::-;22543:3;22564:17;;;22561:43;;22584:18;;:::i;:::-;-1:-1:-1;22631:1:1;22620:13;;22504:135::o;22644:128::-;22711:9;;;22732:11;;;22729:37;;;22746:18;;:::i;22777:411::-;22979:2;22961:21;;;23018:2;22998:18;;;22991:30;23057:34;23052:2;23037:18;;23030:62;-1:-1:-1;;;23123:2:1;23108:18;;23101:45;23178:3;23163:19;;22777:411::o;23193:208::-;23305:9;23342:53;23380:14;23373:5;23342:53;:::i;23406:408::-;23608:2;23590:21;;;23647:2;23627:18;;;23620:30;23686:34;23681:2;23666:18;;23659:62;-1:-1:-1;;;23752:2:1;23737:18;;23730:42;23804:3;23789:19;;23406:408::o;27117:655::-;27285:2;27337:21;;;27407:13;;27310:18;;;27429:22;;;27256:4;27494:17;;;27534:16;;;27256:4;;27285:2;27482;27467:18;;;27256:4;27578:168;27592:6;27589:1;27586:13;27578:168;;;27653:13;;27641:26;;27734:1;27722:14;;;;27687:12;;;;27607:9;27578:168;;34290:545;34392:2;34387:3;34384:11;34381:448;;;34428:1;34453:5;34449:2;34442:17;34498:4;34494:2;34484:19;34568:2;34556:10;34552:19;34549:1;34545:27;34539:4;34535:38;34604:4;34592:10;34589:20;34586:47;;;-1:-1:-1;34627:4:1;34586:47;34682:2;34677:3;34673:12;34670:1;34666:20;34660:4;34656:31;34646:41;;34737:82;34755:2;34748:5;34745:13;34737:82;;;34800:17;;;34781:1;34770:13;34737:82;;;34741:3;;;34381:448;34290:545;;;:::o;35011:1363::-;35137:3;35131:10;-1:-1:-1;;;;;35156:6:1;35153:30;35150:56;;;35186:18;;:::i;:::-;35215:97;35305:6;35265:38;35297:4;35291:11;35265:38;:::i;:::-;35259:4;35215:97;:::i;:::-;35367:4;;35431:2;35420:14;;35448:1;35443:674;;;;36161:1;36178:6;36175:89;;;-1:-1:-1;36230:19:1;;;36224:26;36175:89;-1:-1:-1;;34968:1:1;34964:11;;;34960:24;34956:29;34946:40;34992:1;34988:11;;;34943:57;36277:81;;35413:955;;35443:674;27064:1;27057:14;;;27101:4;27088:18;;-1:-1:-1;;35479:20:1;;;35608:236;35622:7;35619:1;35616:14;35608:236;;;35711:19;;;35705:26;35690:42;;35803:27;;;;35771:1;35759:14;;;;35638:19;;35608:236;;;35612:3;35872:6;35863:7;35860:19;35857:201;;;35933:19;;;35927:26;-1:-1:-1;;36016:1:1;36012:14;;;36028:3;36008:24;36004:37;36000:42;35985:58;35970:74;;35857:201;-1:-1:-1;;;;;36104:1:1;36088:14;;;36084:22;36071:36;;-1:-1:-1;35011:1363:1:o
Swarm Source
ipfs://fc91060814dbdaf1a29341323e99008a75154e369767bd36aa0417225c8f26c1
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.