Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60a06040 | 17141523 | 459 days ago | IN | 0 ETH | 0.12051055 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
DragonsV2
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-04-28 */ // File: operator-filter-registry/src/lib/Constants.sol pragma solidity ^0.8.13; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6; // File: operator-filter-registry/src/IOperatorFilterRegistry.sol pragma solidity ^0.8.13; interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); } // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: @openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol) pragma solidity ^0.8.0; /** * @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: * ``` * 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`, and `uint256`._ */ library StorageSlotUpgradeable { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 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 } } } // File: @openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol // OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol) pragma solidity ^0.8.0; /** * @dev This is the interface that {BeaconProxy} expects of its beacon. */ interface IBeaconUpgradeable { /** * @dev Must return an address that can be used as a delegate call target. * * {BeaconProxy} will check that this address is a contract. */ function implementation() external view returns (address); } // File: @openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol) pragma solidity ^0.8.0; /** * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified * proxy whose upgrades are fully controlled by the current implementation. */ interface IERC1822ProxiableUpgradeable { /** * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation * address. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. */ function proxiableUUID() external view returns (bytes32); } // File: @openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts-upgradeable/interfaces/IERC2981Upgradeable.sol // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981Upgradeable is IERC165Upgradeable { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); } // File: erc721a-upgradeable/contracts/ERC721A__InitializableStorage.sol pragma solidity ^0.8.0; /** * @dev This is a base storage for the initialization function for upgradeable diamond facet contracts **/ library ERC721A__InitializableStorage { struct Layout { /* * Indicates that the contract has been initialized. */ bool _initialized; /* * Indicates that the contract is in the process of being initialized. */ bool _initializing; } bytes32 internal constant STORAGE_SLOT = keccak256('ERC721A.contracts.storage.initializable.facet'); function layout() internal pure returns (Layout storage l) { bytes32 slot = STORAGE_SLOT; assembly { l.slot := slot } } } // File: erc721a-upgradeable/contracts/ERC721A__Initializable.sol pragma solidity ^0.8.0; /** * @dev This is a base contract to aid in writing upgradeable diamond facet contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. */ abstract contract ERC721A__Initializable { using ERC721A__InitializableStorage for ERC721A__InitializableStorage.Layout; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializerERC721A() { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the // contract may have been reentered. require( ERC721A__InitializableStorage.layout()._initializing ? _isConstructor() : !ERC721A__InitializableStorage.layout()._initialized, 'ERC721A__Initializable: contract is already initialized' ); bool isTopLevelCall = !ERC721A__InitializableStorage.layout()._initializing; if (isTopLevelCall) { ERC721A__InitializableStorage.layout()._initializing = true; ERC721A__InitializableStorage.layout()._initialized = true; } _; if (isTopLevelCall) { ERC721A__InitializableStorage.layout()._initializing = false; } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} modifier, directly or indirectly. */ modifier onlyInitializingERC721A() { require( ERC721A__InitializableStorage.layout()._initializing, 'ERC721A__Initializable: contract is not initializing' ); _; } /// @dev Returns true if and only if the function is running in the constructor function _isConstructor() private view returns (bool) { // extcodesize checks the size of the code stored in an address, and // address returns the current address. Since the code is still not // deployed when running a constructor, any checks on its code size will // yield zero, making it an effective way to detect if a contract is // under construction or not. address self = address(this); uint256 cs; assembly { cs := extcodesize(self) } return cs == 0; } } // File: erc721a-upgradeable/contracts/ERC721AStorage.sol pragma solidity ^0.8.0; library ERC721AStorage { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } struct Layout { // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 _currentIndex; // The number of tokens burned. uint256 _burnCounter; // Token name string _name; // Token symbol string _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => ERC721AStorage.TokenApprovalRef) _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) _operatorApprovals; } bytes32 internal constant STORAGE_SLOT = keccak256('ERC721A.contracts.storage.ERC721A'); function layout() internal pure returns (Layout storage l) { bytes32 slot = STORAGE_SLOT; assembly { l.slot := slot } } } // File: erc721a-upgradeable/contracts/IERC721AUpgradeable.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721AUpgradeable { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File: erc721a-upgradeable/contracts/ERC721AUpgradeable.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721ReceiverUpgradeable { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721AUpgradeable is ERC721A__Initializable, IERC721AUpgradeable { using ERC721AStorage for ERC721AStorage.Layout; // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // CONSTRUCTOR // ============================================================= function __ERC721A_init(string memory name_, string memory symbol_) internal onlyInitializingERC721A { __ERC721A_init_unchained(name_, symbol_); } function __ERC721A_init_unchained(string memory name_, string memory symbol_) internal onlyInitializingERC721A { ERC721AStorage.layout()._name = name_; ERC721AStorage.layout()._symbol = symbol_; ERC721AStorage.layout()._currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return ERC721AStorage.layout()._currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return ERC721AStorage.layout()._currentIndex - ERC721AStorage.layout()._burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return ERC721AStorage.layout()._currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return ERC721AStorage.layout()._burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return ERC721AStorage.layout()._packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (ERC721AStorage.layout()._packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (ERC721AStorage.layout()._packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(ERC721AStorage.layout()._packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = ERC721AStorage.layout()._packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); ERC721AStorage.layout()._packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return ERC721AStorage.layout()._name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return ERC721AStorage.layout()._symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(ERC721AStorage.layout()._packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (ERC721AStorage.layout()._packedOwnerships[index] == 0) { ERC721AStorage.layout()._packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) { if (_startTokenId() <= tokenId) { packed = ERC721AStorage.layout()._packedOwnerships[tokenId]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // If the data at the starting slot does not exist, start the scan. if (packed == 0) { if (tokenId >= ERC721AStorage.layout()._currentIndex) revert OwnerQueryForNonexistentToken(); // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `tokenId` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. for (;;) { unchecked { packed = ERC721AStorage.layout()._packedOwnerships[--tokenId]; } if (packed == 0) continue; return packed; } } // Otherwise, the data exists and is not burned. We can skip the scan. // This is possible because we have already achieved the target condition. // This saves 2143 gas on transfers of initialized tokens. return packed; } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. See {ERC721A-_approve}. * * Requirements: * * - The caller must own the token or be an approved operator. */ function approve(address to, uint256 tokenId) public payable virtual override { _approve(to, tokenId, true); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return ERC721AStorage.layout()._tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { ERC721AStorage.layout()._operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return ERC721AStorage.layout()._operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < ERC721AStorage.layout()._currentIndex && // If within bounds, ERC721AStorage.layout()._packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { ERC721AStorage.TokenApprovalRef storage tokenApproval = ERC721AStorage.layout()._tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --ERC721AStorage.layout()._packedAddressData[from]; // Updates: `balance -= 1`. ++ERC721AStorage.layout()._packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. ERC721AStorage.layout()._packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (ERC721AStorage.layout()._packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != ERC721AStorage.layout()._currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. ERC721AStorage.layout()._packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721ReceiverUpgradeable(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (bytes4 retval) { return retval == ERC721A__IERC721ReceiverUpgradeable(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = ERC721AStorage.layout()._currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. ERC721AStorage.layout()._packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. ERC721AStorage.layout()._packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); ERC721AStorage.layout()._currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = ERC721AStorage.layout()._currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. ERC721AStorage.layout()._packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. ERC721AStorage.layout()._packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); ERC721AStorage.layout()._currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = ERC721AStorage.layout()._currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (ERC721AStorage.layout()._currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Equivalent to `_approve(to, tokenId, false)`. */ function _approve(address to, uint256 tokenId) internal virtual { _approve(to, tokenId, false); } /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - `tokenId` must exist. * * Emits an {Approval} event. */ function _approve( address to, uint256 tokenId, bool approvalCheck ) internal virtual { address owner = ownerOf(tokenId); if (approvalCheck) if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } ERC721AStorage.layout()._tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. ERC721AStorage.layout()._packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. ERC721AStorage.layout()._packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (ERC721AStorage.layout()._packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != ERC721AStorage.layout()._currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. ERC721AStorage.layout()._packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { ERC721AStorage.layout()._burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = ERC721AStorage.layout()._packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); ERC721AStorage.layout()._packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } // File: @openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // File: @openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol // OpenZeppelin Contracts (last updated v4.8.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: setting the version to 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Internal function that returns the initialized version. Returns `_initialized` */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Internal function that returns the initialized version. Returns `_initializing` */ function _isInitializing() internal view returns (bool) { return _initializing; } } // File: operator-filter-registry/src/upgradeable/OperatorFiltererUpgradeable.sol pragma solidity ^0.8.13; /** * @title OperatorFiltererUpgradeable * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry when the init function is called. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract OperatorFiltererUpgradeable is Initializable { /// @notice Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); IOperatorFilterRegistry constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); /// @dev The upgradeable initialize function that should be called when the contract is being upgraded. function __OperatorFilterer_init(address subscriptionOrRegistrantToCopy, bool subscribe) internal onlyInitializing { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (!OPERATOR_FILTER_REGISTRY.isRegistered(address(this))) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } } /** * @dev A helper modifier to check if the operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper modifier to check if the operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @dev A helper function to check if the operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting or // upgraded contracts may specify their own OperatorFilterRegistry implementations, which may behave // differently if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } } // File: operator-filter-registry/src/upgradeable/DefaultOperatorFiltererUpgradeable.sol pragma solidity ^0.8.13; /** * @title DefaultOperatorFiltererUpgradeable * @notice Inherits from OperatorFiltererUpgradeable and automatically subscribes to the default OpenSea subscription * when the init function is called. */ abstract contract DefaultOperatorFiltererUpgradeable is OperatorFiltererUpgradeable { /// @dev The upgradeable initialize function that should be called when the contract is being deployed. function __DefaultOperatorFilterer_init() internal onlyInitializing { OperatorFiltererUpgradeable.__OperatorFilterer_init(CANONICAL_CORI_SUBSCRIPTION, true); } } // File: @openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol // OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol) pragma solidity ^0.8.2; /** * @dev This abstract contract provides getters and event emitting update functions for * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots. * * _Available since v4.1._ * * @custom:oz-upgrades-unsafe-allow delegatecall */ abstract contract ERC1967UpgradeUpgradeable is Initializable { function __ERC1967Upgrade_init() internal onlyInitializing { } function __ERC1967Upgrade_init_unchained() internal onlyInitializing { } // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1 bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143; /** * @dev Storage slot with the address of the current implementation. * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; /** * @dev Emitted when the implementation is upgraded. */ event Upgraded(address indexed implementation); /** * @dev Returns the current implementation address. */ function _getImplementation() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value; } /** * @dev Stores a new address in the EIP1967 implementation slot. */ function _setImplementation(address newImplementation) private { require(AddressUpgradeable.isContract(newImplementation), "ERC1967: new implementation is not a contract"); StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; } /** * @dev Perform implementation upgrade * * Emits an {Upgraded} event. */ function _upgradeTo(address newImplementation) internal { _setImplementation(newImplementation); emit Upgraded(newImplementation); } /** * @dev Perform implementation upgrade with additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCall( address newImplementation, bytes memory data, bool forceCall ) internal { _upgradeTo(newImplementation); if (data.length > 0 || forceCall) { _functionDelegateCall(newImplementation, data); } } /** * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCallUUPS( address newImplementation, bytes memory data, bool forceCall ) internal { // Upgrades from old implementations will perform a rollback test. This test requires the new // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing // this special case will break upgrade paths from old UUPS implementation to new ones. if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) { _setImplementation(newImplementation); } else { try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) { require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID"); } catch { revert("ERC1967Upgrade: new implementation is not UUPS"); } _upgradeToAndCall(newImplementation, data, forceCall); } } /** * @dev Storage slot with the admin of the contract. * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; /** * @dev Emitted when the admin account has changed. */ event AdminChanged(address previousAdmin, address newAdmin); /** * @dev Returns the current admin. */ function _getAdmin() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value; } /** * @dev Stores a new address in the EIP1967 admin slot. */ function _setAdmin(address newAdmin) private { require(newAdmin != address(0), "ERC1967: new admin is the zero address"); StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin; } /** * @dev Changes the admin of the proxy. * * Emits an {AdminChanged} event. */ function _changeAdmin(address newAdmin) internal { emit AdminChanged(_getAdmin(), newAdmin); _setAdmin(newAdmin); } /** * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy. * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor. */ bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50; /** * @dev Emitted when the beacon is upgraded. */ event BeaconUpgraded(address indexed beacon); /** * @dev Returns the current beacon. */ function _getBeacon() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value; } /** * @dev Stores a new beacon in the EIP1967 beacon slot. */ function _setBeacon(address newBeacon) private { require(AddressUpgradeable.isContract(newBeacon), "ERC1967: new beacon is not a contract"); require( AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()), "ERC1967: beacon implementation is not a contract" ); StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon; } /** * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that). * * Emits a {BeaconUpgraded} event. */ function _upgradeBeaconToAndCall( address newBeacon, bytes memory data, bool forceCall ) internal { _setBeacon(newBeacon); emit BeaconUpgraded(newBeacon); if (data.length > 0 || forceCall) { _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data); } } /** * @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) private returns (bytes memory) { require(AddressUpgradeable.isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return AddressUpgradeable.verifyCallResult(success, returndata, "Address: low-level delegate call failed"); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File: @openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol // OpenZeppelin Contracts (last updated v4.8.0) (proxy/utils/UUPSUpgradeable.sol) pragma solidity ^0.8.0; /** * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy. * * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing * `UUPSUpgradeable` with a custom implementation of upgrades. * * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism. * * _Available since v4.1._ */ abstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable { function __UUPSUpgradeable_init() internal onlyInitializing { } function __UUPSUpgradeable_init_unchained() internal onlyInitializing { } /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment address private immutable __self = address(this); /** * @dev Check that the execution is being performed through a delegatecall call and that the execution context is * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to * fail. */ modifier onlyProxy() { require(address(this) != __self, "Function must be called through delegatecall"); require(_getImplementation() == __self, "Function must be called through active proxy"); _; } /** * @dev Check that the execution is not being performed through a delegate call. This allows a function to be * callable on the implementing contract but not through proxies. */ modifier notDelegated() { require(address(this) == __self, "UUPSUpgradeable: must not be called through delegatecall"); _; } /** * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the * implementation. It is used to validate the implementation's compatibility when performing an upgrade. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier. */ function proxiableUUID() external view virtual override notDelegated returns (bytes32) { return _IMPLEMENTATION_SLOT; } /** * @dev Upgrade the implementation of the proxy to `newImplementation`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. */ function upgradeTo(address newImplementation) external virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallUUPS(newImplementation, new bytes(0), false); } /** * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call * encoded in `data`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. */ function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallUUPS(newImplementation, data, true); } /** * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by * {upgradeTo} and {upgradeToAndCall}. * * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}. * * ```solidity * function _authorizeUpgrade(address) internal override onlyOwner {} * ``` */ function _authorizeUpgrade(address newImplementation) internal virtual; /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File: @openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal onlyInitializing { } function __ERC165_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File: @openzeppelin/contracts-upgradeable/token/common/ERC2981Upgradeable.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981Upgradeable is Initializable, IERC2981Upgradeable, ERC165Upgradeable { function __ERC2981_init() internal onlyInitializing { } function __ERC2981_init_unchained() internal onlyInitializing { } struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165Upgradeable, ERC165Upgradeable) returns (bool) { return interfaceId == type(IERC2981Upgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981Upgradeable */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[48] private __gap; } // File: @openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File: @openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; } // File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @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 rebuild 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 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 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 for 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) { 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 rebuild 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 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 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 for 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) { 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) } } } // File: DragonsV2.sol pragma solidity ^0.8.18; interface ITrophies { struct Stake { uint256[] tokenIds; uint256 timestamp; } function getStake(address _user) external returns(Stake memory); } interface ILoot { function controlledBurn(address _from, uint256 _id, uint256 _amount) external; } contract DragonsV2 is Initializable, ERC721AUpgradeable, ERC2981Upgradeable, DefaultOperatorFiltererUpgradeable, OwnableUpgradeable, UUPSUpgradeable { // staking mapping (uint256 => uint256) stakingStarted; // blood burn mapping (uint256 => uint256) bloodToBurnAmount; // minting mapping(address => uint256) mintedPerWallet; uint256 public maxPerWallet; uint256 public maxAlMint; uint256 public maxSupply; uint256 public alMinted; bytes32 private root; uint256 public price; bool public isAllowListMinting; bool public isPublicMinting; bool public isBloodBurnLive; // externals string public baseUri; address trophiesContract; address lootContract; // libraries using Strings for uint256; function initialize( address royaltyReceiver, uint96 royaltyFeeNumerator ) initializerERC721A initializer public { __ERC721A_init("Dragons", "DRGN"); __Ownable_init(); __UUPSUpgradeable_init(); DefaultOperatorFiltererUpgradeable.__DefaultOperatorFilterer_init(); baseUri = "https://moonrunners-dragons.herokuapp.com/dragons/"; trophiesContract = 0x1485297e942ce64E0870EcE60179dFda34b4C625; lootContract = 0xb6d460aC51B93BCa63B694f099C4A8b3B1CF73B4; maxPerWallet = 2; bloodToBurnAmount[7] = 5; // common blood bloodToBurnAmount[6] = 4; // rare blood bloodToBurnAmount[5] = 1; // epic blood bloodToBurnAmount[4] = 1; // legendary blood price = 69_000_000 gwei; maxAlMint = 1500; maxSupply = 5500; _setDefaultRoyalty(royaltyReceiver, royaltyFeeNumerator); } function _authorizeUpgrade(address newImplementation) internal onlyOwner override {} function setBloodToBurnAmount(uint256 _bloodId, uint256 _amount) public onlyOwner { bloodToBurnAmount[_bloodId] = _amount; } function setTrophiesContract(address _trophiesContract) public onlyOwner { trophiesContract = _trophiesContract; } function setLootContract(address _lootContract) public onlyOwner { lootContract = _lootContract; } function setRoot(bytes32 _root) public onlyOwner { root = _root; } function setPrice(uint256 _price) public onlyOwner { price = _price; } function setMaxSupply(uint256 _maxSupply) public onlyOwner { maxSupply = _maxSupply; } function setIsAllowListMinting(bool _isAllowListMinting) public onlyOwner { isAllowListMinting = _isAllowListMinting; } function setIsBloodBurnLive(bool _isBloodBurnLive) public onlyOwner { isBloodBurnLive = _isBloodBurnLive; } function setBaseURI(string calldata _baseUri) public onlyOwner { baseUri = _baseUri; } function setMaxPerWallet(uint256 _maxPerWallet) public onlyOwner { maxPerWallet = _maxPerWallet; } function isStaked(uint256 _tokenId) public view returns (bool) { return stakingStarted[_tokenId] > 0; } function setMaxInitialMint(uint256 _maxAlMint) public onlyOwner { maxAlMint = _maxAlMint; } function setPublicMinting(bool _isPublicMinting, uint256 _price) public onlyOwner { isPublicMinting = _isPublicMinting; price = _price; } function toggleStaking(uint256[] calldata _tokenIds, bool _shouldStake) public { for (uint256 i = 0; i < _tokenIds.length; i++) { uint256 tokenId = _tokenIds[i]; require(super.ownerOf(tokenId) == msg.sender, "You do not own this dragon!"); if (_shouldStake) { require(!isStaked(tokenId), "Dragon already staked!"); stakingStarted[tokenId] = block.timestamp; } else { require (isStaked(tokenId), "Dragon already un-staked!"); stakingStarted[tokenId] = 0; } } } function mint(bytes32[] memory _proof) public payable { require(isAllowListMinting || isPublicMinting, "Mint is not live yet!"); require (msg.value % price == 0, 'Unexpected amount of ETH sent'); uint256 amount = msg.value / price; require(mintedPerWallet[msg.sender] + amount <= maxPerWallet, "You have already minted the max amount!"); require(super.totalSupply() + amount <= maxSupply, "Max supply exceeded!"); require(alMinted + amount <= maxAlMint, "All AL mints are completed"); if (isAllowListMinting && !isPublicMinting) { require( ITrophies(trophiesContract).getStake(msg.sender).timestamp > 0 || MerkleProof.verify(_proof, root, keccak256(bytes.concat(keccak256(abi.encode(msg.sender))))), "You neither have Moonrunners staked nor are in AL!" ); } alMinted += amount; mintedPerWallet[msg.sender] += amount; super._mint(msg.sender, amount); } function tokenURI(uint256 _tokenId) override public view returns (string memory) { if (isStaked(_tokenId)) { return string(abi.encodePacked(baseUri, "staked/", _tokenId.toString())); } return string(abi.encodePacked(baseUri, _tokenId.toString())); } function _beforeTokenTransfers( address, address to, uint256 tokenId, uint256 ) internal override virtual { require(to == address(0) || !isStaked(tokenId), "This dragon is staked!"); } function burnBloodForDragons(uint256[] calldata _bloodIds) public { require(isBloodBurnLive, "Blood burning is not live!"); require(super.totalSupply() + _bloodIds.length <= maxSupply, "Exceeding max dragons supply!"); uint256[] memory dragonIds = new uint256[](_bloodIds.length); for (uint256 i = 0; i < _bloodIds.length; i++) { uint256 bloodId = _bloodIds[i]; dragonIds[i] = super.totalSupply() + i; ILoot(lootContract).controlledBurn(msg.sender, bloodId, bloodToBurnAmount[bloodId]); } super._mint(msg.sender, _bloodIds.length); emit BloodBurn(_bloodIds, dragonIds); } // ---- DefaultOperatorFilterRegistry ---- function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public payable override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } // ---- ERC165 ---- function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721AUpgradeable, ERC2981Upgradeable) returns (bool) { return super.supportsInterface(interfaceId); } // ---- ERC2981 ---- function setDefaultRoyalty(address receiver, uint96 feeNumerator) external onlyOwner { _setDefaultRoyalty(receiver, feeNumerator); } function deleteDefaultRoyalty() external onlyOwner { _deleteDefaultRoyalty(); } function setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) external onlyOwner { _setTokenRoyalty(tokenId, receiver, feeNumerator); } function resetTokenRoyalty(uint256 tokenId) external onlyOwner { _resetTokenRoyalty(tokenId); } function withdraw() public onlyOwner { (bool sent,) = payable(super.owner()).call{value: address(this).balance}(""); require(sent, "Failed to send Ether"); } event BloodBurn(uint256[] bloodIds, uint256[] dragonIds); }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"bloodIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"dragonIds","type":"uint256[]"}],"name":"BloodBurn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"alMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_bloodIds","type":"uint256[]"}],"name":"burnBloodForDragons","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"royaltyReceiver","type":"address"},{"internalType":"uint96","name":"royaltyFeeNumerator","type":"uint96"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isAllowListMinting","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isBloodBurnLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicMinting","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isStaked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxAlMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"resetTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bloodId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setBloodToBurnAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isAllowListMinting","type":"bool"}],"name":"setIsAllowListMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isBloodBurnLive","type":"bool"}],"name":"setIsBloodBurnLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_lootContract","type":"address"}],"name":"setLootContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxAlMint","type":"uint256"}],"name":"setMaxInitialMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerWallet","type":"uint256"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPublicMinting","type":"bool"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPublicMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_trophiesContract","type":"address"}],"name":"setTrophiesContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"bool","name":"_shouldStake","type":"bool"}],"name":"toggleStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523060805234801561001457600080fd5b50608051613ec261004c60003960008181610b7301528181610bbc01528181610d3301528181610d730152610e020152613ec26000f3fe6080604052600436106102ff5760003560e01c806391b7f5ed11610190578063bb940b94116100dc578063dab5f34011610095578063edc5b2c31161006f578063edc5b2c3146108a4578063f2a41374146108c4578063f2fde38b146108e4578063fdbcc9b11461090457600080fd5b8063dab5f34014610844578063e268e4d314610864578063e985e9c51461088457600080fd5b8063bb940b941461078d578063bc81328b146107ad578063c6036c5c146107cd578063c87b56dd146107ed578063d5abeb011461080d578063d7ec48951461082457600080fd5b8063aa1b103f11610149578063b383518811610123578063b383518814610717578063b77a147b14610737578063b88d4fde1461074a578063baa51f861461075d57600080fd5b8063aa1b103f146106d4578063ac397f12146106e9578063b19909771461070057600080fd5b806391b7f5ed1461063257806394ea11161461065257806395d89b41146106735780639abc832014610688578063a035b1fe1461069d578063a22cb465146106b457600080fd5b8063453c23101161024f5780636352211e11610208578063715018a6116101e2578063715018a6146105bf5780638a4948b1146105d45780638a616bc0146105f45780638da5cb5b1461061457600080fd5b80636352211e1461055f5780636f8b44b01461057f57806370a082311461059f57600080fd5b8063453c2310146104c55780634f1ef286146104dc57806352d1902d146104ef57806355f804b3146105045780635944c753146105245780635a1a3ebd1461054457600080fd5b80631d21b9e7116102bc5780632c673915116102965780632c6739151461045d5780633659cfe61461047d5780633ccfd60b1461049d57806342842e0e146104b257600080fd5b80631d21b9e7146103eb57806323b872dd1461040b5780632a55205a1461041e57600080fd5b806301ffc9a71461030457806304634d8d1461033957806306fdde031461035b578063081812fc1461037d578063095ea7b3146103b557806318160ddd146103c8575b600080fd5b34801561031057600080fd5b5061032461031f3660046130ea565b610924565b60405190151581526020015b60405180910390f35b34801561034557600080fd5b50610359610354366004613135565b610935565b005b34801561036757600080fd5b5061037061094b565b60405161033091906131b8565b34801561038957600080fd5b5061039d6103983660046131cb565b6109e6565b6040516001600160a01b039091168152602001610330565b6103596103c33660046131e4565b610a33565b3480156103d457600080fd5b506103dd610a4c565b604051908152602001610330565b3480156103f757600080fd5b5061035961040636600461321c565b610a6b565b610359610419366004613239565b610a90565b34801561042a57600080fd5b5061043e610439366004613275565b610abb565b604080516001600160a01b039093168352602083019190915201610330565b34801561046957600080fd5b506101365461032490610100900460ff1681565b34801561048957600080fd5b50610359610498366004613297565b610b69565b3480156104a957600080fd5b50610359610c51565b6103596104c0366004613239565b610d04565b3480156104d157600080fd5b506103dd6101305481565b6103596104ea36600461338f565b610d29565b3480156104fb57600080fd5b506103dd610df5565b34801561051057600080fd5b5061035961051f3660046133dc565b610ea8565b34801561053057600080fd5b5061035961053f36600461344d565b610ebe565b34801561055057600080fd5b50610136546103249060ff1681565b34801561056b57600080fd5b5061039d61057a3660046131cb565b610ed1565b34801561058b57600080fd5b5061035961059a3660046131cb565b610edc565b3480156105ab57600080fd5b506103dd6105ba366004613297565b610eea565b3480156105cb57600080fd5b50610359610f52565b3480156105e057600080fd5b506103596105ef3660046134cd565b610f66565b34801561060057600080fd5b5061035961060f3660046131cb565b6110ea565b34801561062057600080fd5b506097546001600160a01b031661039d565b34801561063e57600080fd5b5061035961064d3660046131cb565b611103565b34801561065e57600080fd5b50610136546103249062010000900460ff1681565b34801561067f57600080fd5b50610370611111565b34801561069457600080fd5b50610370611129565b3480156106a957600080fd5b506103dd6101355481565b3480156106c057600080fd5b506103596106cf366004613523565b6111b8565b3480156106e057600080fd5b506103596111cc565b3480156106f557600080fd5b506103dd6101315481565b34801561070c57600080fd5b506103dd6101335481565b34801561072357600080fd5b506103596107323660046131cb565b6111de565b61035961074536600461357d565b6111ec565b610359610758366004613612565b611593565b34801561076957600080fd5b506103246107783660046131cb565b600090815261012d6020526040902054151590565b34801561079957600080fd5b506103596107a8366004613297565b6115c0565b3480156107b957600080fd5b506103596107c8366004613679565b6115eb565b3480156107d957600080fd5b506103596107e8366004613297565b611826565b3480156107f957600080fd5b506103706108083660046131cb565b611851565b34801561081957600080fd5b506103dd6101325481565b34801561083057600080fd5b5061035961083f36600461321c565b6118b9565b34801561085057600080fd5b5061035961085f3660046131cb565b6118d5565b34801561087057600080fd5b5061035961087f3660046131cb565b6118e3565b34801561089057600080fd5b5061032461089f3660046136ba565b6118f1565b3480156108b057600080fd5b506103596108bf3660046136e4565b61192e565b3480156108d057600080fd5b506103596108df366004613135565b611956565b3480156108f057600080fd5b506103596108ff366004613297565b611cfe565b34801561091057600080fd5b5061035961091f366004613275565b611d74565b600061092f82611d8f565b92915050565b61093d611dc4565b6109478282611e1e565b5050565b6060610955611ed8565b600201805461096390613702565b80601f016020809104026020016040519081016040528092919081815260200182805461098f90613702565b80156109dc5780601f106109b1576101008083540402835291602001916109dc565b820191906000526020600020905b8154815290600101906020018083116109bf57829003601f168201915b5050505050905090565b60006109f182611efc565b610a0e576040516333d1c03960e21b815260040160405180910390fd5b610a16611ed8565b60009283526006016020525060409020546001600160a01b031690565b81610a3d81611f38565b610a478383611ff1565b505050565b600080610a57611ed8565b60010154610a63611ed8565b540303919050565b610a73611dc4565b6101368054911515620100000262ff000019909216919091179055565b826001600160a01b0381163314610aaa57610aaa33611f38565b610ab5848484611ffd565b50505050565b60008281526034602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610b305750604080518082019091526033546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610b4f906001600160601b031687613752565b610b59919061377f565b91519350909150505b9250929050565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610bba5760405162461bcd60e51b8152600401610bb190613793565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610c03600080516020613df4833981519152546001600160a01b031690565b6001600160a01b031614610c295760405162461bcd60e51b8152600401610bb1906137df565b610c3281612201565b60408051600080825260208201909252610c4e91839190612209565b50565b610c59611dc4565b6000610c6d6097546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610cb7576040519150601f19603f3d011682016040523d82523d6000602084013e610cbc565b606091505b5050905080610c4e5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610bb1565b826001600160a01b0381163314610d1e57610d1e33611f38565b610ab5848484612374565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610d715760405162461bcd60e51b8152600401610bb190613793565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610dba600080516020613df4833981519152546001600160a01b031690565b6001600160a01b031614610de05760405162461bcd60e51b8152600401610bb1906137df565b610de982612201565b61094782826001612209565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610e955760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610bb1565b50600080516020613df483398151915290565b610eb0611dc4565b610137610a47828483613871565b610ec6611dc4565b610a4783838361238f565b600061092f8261245a565b610ee4611dc4565b61013255565b60006001600160a01b038216610f13576040516323d3ad8160e21b815260040160405180910390fd5b6001600160401b03610f23611ed8565b6005016000846001600160a01b03166001600160a01b0316815260200190815260200160002054169050919050565b610f5a611dc4565b610f6460006124ff565b565b60005b82811015610ab5576000848483818110610f8557610f85613930565b905060200201359050336001600160a01b0316610fa182610ed1565b6001600160a01b031614610ff75760405162461bcd60e51b815260206004820152601b60248201527f596f7520646f206e6f74206f776e207468697320647261676f6e2100000000006044820152606401610bb1565b821561106a57600081815261012d6020526040902054156110535760405162461bcd60e51b8152602060048201526016602482015275447261676f6e20616c7265616479207374616b65642160501b6044820152606401610bb1565b600081815261012d602052604090204290556110d7565b600081815261012d60205260409020546110c65760405162461bcd60e51b815260206004820152601960248201527f447261676f6e20616c726561647920756e2d7374616b656421000000000000006044820152606401610bb1565b600081815261012d60205260408120555b50806110e281613946565b915050610f69565b6110f2611dc4565b600090815260346020526040812055565b61110b611dc4565b61013555565b606061111b611ed8565b600301805461096390613702565b610137805461113790613702565b80601f016020809104026020016040519081016040528092919081815260200182805461116390613702565b80156111b05780601f10611185576101008083540402835291602001916111b0565b820191906000526020600020905b81548152906001019060200180831161119357829003601f168201915b505050505081565b816111c281611f38565b610a478383612551565b6111d4611dc4565b610f646000603355565b6111e6611dc4565b61013155565b6101365460ff1680611206575061013654610100900460ff165b61124a5760405162461bcd60e51b81526020600482015260156024820152744d696e74206973206e6f74206c697665207965742160581b6044820152606401610bb1565b61013554611258903461395f565b156112a55760405162461bcd60e51b815260206004820152601d60248201527f556e657870656374656420616d6f756e74206f66204554482073656e740000006044820152606401610bb1565b600061013554346112b6919061377f565b6101305433600090815261012f6020526040902054919250906112da908390613973565b11156113385760405162461bcd60e51b815260206004820152602760248201527f596f75206861766520616c7265616479206d696e74656420746865206d617820604482015266616d6f756e742160c81b6064820152608401610bb1565b6101325481611345610a4c565b61134f9190613973565b11156113945760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b6044820152606401610bb1565b6101315481610133546113a79190613973565b11156113f55760405162461bcd60e51b815260206004820152601a60248201527f416c6c20414c206d696e74732061726520636f6d706c657465640000000000006044820152606401610bb1565b6101365460ff168015611411575061013654610100900460ff16155b1561154b57610138546040516303d3b32360e51b81523360048201526000916001600160a01b031690637a766460906024016000604051808303816000875af1158015611462573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261148a9190810190613986565b6020015111806114e4575061013454604080513360208201526114e492859290910160408051601f1981840301815282825280516020918201209083015201604051602081830303815290604052805190602001206125ce565b61154b5760405162461bcd60e51b815260206004820152603260248201527f596f75206e6569746865722068617665204d6f6f6e72756e6e657273207374616044820152716b6564206e6f722061726520696e20414c2160701b6064820152608401610bb1565b80610133600082825461155e9190613973565b909155505033600090815261012f602052604081208054839290611583908490613973565b90915550610947905033826125e6565b836001600160a01b03811633146115ad576115ad33611f38565b6115b98585858561272e565b5050505050565b6115c8611dc4565b61013980546001600160a01b0319166001600160a01b0392909216919091179055565b6101365462010000900460ff166116445760405162461bcd60e51b815260206004820152601a60248201527f426c6f6f64206275726e696e67206973206e6f74206c697665210000000000006044820152606401610bb1565b6101325481611651610a4c565b61165b9190613973565b11156116a95760405162461bcd60e51b815260206004820152601d60248201527f457863656564696e67206d617820647261676f6e7320737570706c79210000006044820152606401610bb1565b6000816001600160401b038111156116c3576116c36132b2565b6040519080825280602002602001820160405280156116ec578160200160208202803683370190505b50905060005b828110156117db57600084848381811061170e5761170e613930565b90506020020135905081611720610a4c565b61172a9190613973565b83838151811061173c5761173c613930565b60209081029190910181019190915261013954600083815261012e90925260409182902054915163ee72006560e01b81523360048201526024810184905260448101929092526001600160a01b03169063ee72006590606401600060405180830381600087803b1580156117af57600080fd5b505af11580156117c3573d6000803e3d6000fd5b505050505080806117d390613946565b9150506116f2565b506117e633836125e6565b7fca0126e75d49b512347b8ee47e8b3de3c8bd8f9442987bee202f82ddb570d9db83838360405161181993929190613a50565b60405180910390a1505050565b61182e611dc4565b61013880546001600160a01b0319166001600160a01b0392909216919091179055565b600081815261012d60205260409020546060901561189c5761013761187583612772565b604051602001611886929190613b42565b6040516020818303038152906040529050919050565b6101376118a883612772565b604051602001611886929190613b7a565b6118c1611dc4565b610136805460ff1916911515919091179055565b6118dd611dc4565b61013455565b6118eb611dc4565b61013055565b60006118fb611ed8565b6001600160a01b039384166000908152600791909101602090815260408083209490951682529290925250205460ff1690565b611936611dc4565b61013680549215156101000261ff00199093169290921790915561013555565b600080516020613e6d83398151915254610100900460ff1661198b57600080516020613e6d8339815191525460ff161561198f565b303b155b611a015760405162461bcd60e51b815260206004820152603760248201527f455243373231415f5f496e697469616c697a61626c653a20636f6e747261637460448201527f20697320616c726561647920696e697469616c697a65640000000000000000006064820152608401610bb1565b600080516020613e6d83398151915254610100900460ff16158015611a3d57600080516020613e6d833981519152805461ffff19166101011790555b600054610100900460ff1615808015611a5d5750600054600160ff909116105b80611a775750303b158015611a77575060005460ff166001145b611ada5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610bb1565b6000805460ff191660011790558015611afd576000805461ff0019166101001790555b611b4260405180604001604052806007815260200166447261676f6e7360c81b81525060405180604001604052806004815260200163222923a760e11b815250612804565b611b4a612842565b611b52612871565b611b5a612898565b604051806060016040528060328152602001613e146032913961013790611b819082613b9f565b5061013880546001600160a01b0319908116731485297e942ce64e0870ece60179dfda34b4c62517909155610139805490911673b6d460ac51b93bca63b694f099c4a8b3b1cf73b417905560026101305561012e60205260057f897db7a3dd3698ee7e92ddbf6330e248523dd785d7fbba7244a6952b810c8afc5560047f9047bba89121e89e5d86e8366afbc408a290f8c69e73c300bcf01a4dec5b779b81905560017f7b5e2a2921fcee941ffcb62b67b9dfc1ae9224791915bb37e5756beaeab86a7d8190556000919091527fa135932be7035866fe2486eaf59b5fcdb540af50eae05b6087a7066fe7aee3d25566f5232269808000610135556105dc6101315561157c61013255611c948484611e1e565b8015611cda576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b508015610a47575050600080516020613e6d833981519152805461ff001916905550565b611d06611dc4565b6001600160a01b038116611d6b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bb1565b610c4e816124ff565b611d7c611dc4565b600091825261012e602052604090912055565b60006001600160e01b0319821663152a902d60e11b148061092f57506301ffc9a760e01b6001600160e01b031983161461092f565b6097546001600160a01b03163314610f645760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610bb1565b6127106001600160601b0382161115611e495760405162461bcd60e51b8152600401610bb190613c5e565b6001600160a01b038216611e9f5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610bb1565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217603355565b7f2569078dfb4b0305704d3008e7403993ae9601b85f7ae5e742de3de8f8011c4090565b6000611f06611ed8565b548210801561092f5750600160e01b611f1d611ed8565b60008481526004919091016020526040902054161592915050565b6daaeb6d7670e522a718067333cd4e3b15610c4e57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611fa5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fc99190613ca8565b610c4e57604051633b79c77360e21b81526001600160a01b0382166004820152602401610bb1565b610947828260016128de565b60006120088261245a565b9050836001600160a01b0316816001600160a01b03161461203b5760405162a1148160e81b815260040160405180910390fd5b60008061204784612993565b9150915061206c81876120573390565b6001600160a01b039081169116811491141790565b6120975761207a86336118f1565b61209757604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166120be57604051633a954ecd60e21b815260040160405180910390fd5b6120cb86868660016129bb565b80156120d657600082555b6120de611ed8565b6001600160a01b038716600090815260059190910160205260409020805460001901905561210a611ed8565b6001600160a01b03861660008181526005929092016020526040909120805460010190554260a01b17600160e11b17612141611ed8565b60008681526004919091016020526040812091909155600160e11b841690036121b75760018401612170611ed8565b6000828152600491909101602052604081205490036121b557612191611ed8565b5481146121b557836121a1611ed8565b600083815260049190910160205260409020555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610c4e611dc4565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff161561223c57610a4783612a23565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015612296575060408051601f3d908101601f1916820190925261229391810190613cc5565b60015b6122f95760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610bb1565b600080516020613df483398151915281146123685760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610bb1565b50610a47838383612abf565b610a4783838360405180602001604052806000815250611593565b6127106001600160601b03821611156123ba5760405162461bcd60e51b8152600401610bb190613c5e565b6001600160a01b0382166124105760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610bb1565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752603490529190942093519051909116600160a01b029116179055565b6000612464611ed8565b600083815260049190910160205260408120549150600160e01b821690036124e657806000036124e157612496611ed8565b5482106124b657604051636f96cda160e11b815260040160405180910390fd5b6124be611ed8565b6000199092016000818152600493909301602052604090922054905080156124b6575b919050565b604051636f96cda160e11b815260040160405180910390fd5b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8061255a611ed8565b336000818152600792909201602090815260408084206001600160a01b03881680865290835293819020805460ff19169515159590951790945592518415158152919290917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000826125db8584612ae4565b1490505b9392505050565b60006125f0611ed8565b54905060008290036126155760405163b562e8dd60e01b815260040160405180910390fd5b61262260008483856129bb565b680100000000000000018202612636611ed8565b6001600160a01b038516600081815260059290920160205260409091208054929092019091554260a01b6001841460e11b1717612671611ed8565b600083815260049190910160205260408120919091556001600160a01b0384169083830190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146126fb57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016126c3565b508160000361271c57604051622e076360e81b815260040160405180910390fd5b80612725611ed8565b5550610a479050565b612739848484610a90565b6001600160a01b0383163b15610ab55761275584848484612b31565b610ab5576040516368d2bf6b60e11b815260040160405180910390fd5b6060600061277f83612c1c565b60010190506000816001600160401b0381111561279e5761279e6132b2565b6040519080825280601f01601f1916602001820160405280156127c8576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846127d257509392505050565b600080516020613e6d83398151915254610100900460ff166128385760405162461bcd60e51b8152600401610bb190613cde565b6109478282612cf4565b600054610100900460ff166128695760405162461bcd60e51b8152600401610bb190613d32565b610f64612d67565b600054610100900460ff16610f645760405162461bcd60e51b8152600401610bb190613d32565b600054610100900460ff166128bf5760405162461bcd60e51b8152600401610bb190613d32565b610f64733cc6cdda760b79bafa08df41ecfa224f810dceb66001612d97565b60006128e983610ed1565b9050811561292857336001600160a01b038216146129285761290b81336118f1565b612928576040516367d9dca160e11b815260040160405180910390fd5b83612931611ed8565b6000858152600691909101602052604080822080546001600160a01b0319166001600160a01b0394851617905551859287811692908516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a450505050565b60008060006129a0611ed8565b60009485526006016020525050604090912080549092909150565b6001600160a01b03831615806129de5750600082815261012d6020526040902054155b610ab55760405162461bcd60e51b81526020600482015260166024820152755468697320647261676f6e206973207374616b65642160501b6044820152606401610bb1565b6001600160a01b0381163b612a905760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610bb1565b600080516020613df483398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b612ac883612f36565b600082511180612ad55750805b15610a4757610ab58383612f76565b600081815b8451811015612b2957612b1582868381518110612b0857612b08613930565b602002602001015161306a565b915080612b2181613946565b915050612ae9565b509392505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612b66903390899088908890600401613d7d565b6020604051808303816000875af1925050508015612ba1575060408051601f3d908101601f19168201909252612b9e91810190613dba565b60015b612bff573d808015612bcf576040519150601f19603f3d011682016040523d82523d6000602084013e612bd4565b606091505b508051600003612bf7576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310612c5b5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612c87576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612ca557662386f26fc10000830492506010015b6305f5e1008310612cbd576305f5e100830492506008015b6127108310612cd157612710830492506004015b60648310612ce3576064830492506002015b600a831061092f5760010192915050565b600080516020613e6d83398151915254610100900460ff16612d285760405162461bcd60e51b8152600401610bb190613cde565b81612d31611ed8565b60020190612d3f9082613b9f565b5080612d49611ed8565b60030190612d579082613b9f565b506000612d62611ed8565b555050565b600054610100900460ff16612d8e5760405162461bcd60e51b8152600401610bb190613d32565b610f64336124ff565b600054610100900460ff16612dbe5760405162461bcd60e51b8152600401610bb190613d32565b6daaeb6d7670e522a718067333cd4e3b156109475760405163c3c5a54760e01b81523060048201526daaeb6d7670e522a718067333cd4e9063c3c5a547906024016020604051808303816000875af1158015612e1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e429190613ca8565b610947578015612eb657604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b158015612ea257600080fd5b505af11580156121f9573d6000803e3d6000fd5b6001600160a01b03821615612f055760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401612e88565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401612e88565b612f3f81612a23565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b612fde5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610bb1565b600080846001600160a01b031684604051612ff99190613dd7565b600060405180830381855af49150503d8060008114613034576040519150601f19603f3d011682016040523d82523d6000602084013e613039565b606091505b50915091506130618282604051806060016040528060278152602001613e4660279139613096565b95945050505050565b60008183106130865760008281526020849052604090206125df565b5060009182526020526040902090565b606083156130a55750816125df565b6125df83838151156130ba5781518083602001fd5b8060405162461bcd60e51b8152600401610bb191906131b8565b6001600160e01b031981168114610c4e57600080fd5b6000602082840312156130fc57600080fd5b81356125df816130d4565b80356001600160a01b03811681146124e157600080fd5b80356001600160601b03811681146124e157600080fd5b6000806040838503121561314857600080fd5b61315183613107565b915061315f6020840161311e565b90509250929050565b60005b8381101561318357818101518382015260200161316b565b50506000910152565b600081518084526131a4816020860160208601613168565b601f01601f19169290920160200192915050565b6020815260006125df602083018461318c565b6000602082840312156131dd57600080fd5b5035919050565b600080604083850312156131f757600080fd5b61320083613107565b946020939093013593505050565b8015158114610c4e57600080fd5b60006020828403121561322e57600080fd5b81356125df8161320e565b60008060006060848603121561324e57600080fd5b61325784613107565b925061326560208501613107565b9150604084013590509250925092565b6000806040838503121561328857600080fd5b50508035926020909101359150565b6000602082840312156132a957600080fd5b6125df82613107565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156132ea576132ea6132b2565b60405290565b604051601f8201601f191681016001600160401b0381118282101715613318576133186132b2565b604052919050565b600082601f83011261333157600080fd5b81356001600160401b0381111561334a5761334a6132b2565b61335d601f8201601f19166020016132f0565b81815284602083860101111561337257600080fd5b816020850160208301376000918101602001919091529392505050565b600080604083850312156133a257600080fd5b6133ab83613107565b915060208301356001600160401b038111156133c657600080fd5b6133d285828601613320565b9150509250929050565b600080602083850312156133ef57600080fd5b82356001600160401b038082111561340657600080fd5b818501915085601f83011261341a57600080fd5b81358181111561342957600080fd5b86602082850101111561343b57600080fd5b60209290920196919550909350505050565b60008060006060848603121561346257600080fd5b8335925061347260208501613107565b91506134806040850161311e565b90509250925092565b60008083601f84011261349b57600080fd5b5081356001600160401b038111156134b257600080fd5b6020830191508360208260051b8501011115610b6257600080fd5b6000806000604084860312156134e257600080fd5b83356001600160401b038111156134f857600080fd5b61350486828701613489565b90945092505060208401356135188161320e565b809150509250925092565b6000806040838503121561353657600080fd5b61353f83613107565b9150602083013561354f8161320e565b809150509250929050565b60006001600160401b03821115613573576135736132b2565b5060051b60200190565b6000602080838503121561359057600080fd5b82356001600160401b038111156135a657600080fd5b8301601f810185136135b757600080fd5b80356135ca6135c58261355a565b6132f0565b81815260059190911b820183019083810190878311156135e957600080fd5b928401925b82841015613607578335825292840192908401906135ee565b979650505050505050565b6000806000806080858703121561362857600080fd5b61363185613107565b935061363f60208601613107565b92506040850135915060608501356001600160401b0381111561366157600080fd5b61366d87828801613320565b91505092959194509250565b6000806020838503121561368c57600080fd5b82356001600160401b038111156136a257600080fd5b6136ae85828601613489565b90969095509350505050565b600080604083850312156136cd57600080fd5b6136d683613107565b915061315f60208401613107565b600080604083850312156136f757600080fd5b82356132008161320e565b600181811c9082168061371657607f821691505b60208210810361373657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761092f5761092f61373c565b634e487b7160e01b600052601260045260246000fd5b60008261378e5761378e613769565b500490565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b601f821115610a4757600081815260208120601f850160051c810160208610156138525750805b601f850160051c820191505b818110156121f95782815560010161385e565b6001600160401b03831115613888576138886132b2565b61389c836138968354613702565b8361382b565b6000601f8411600181146138d057600085156138b85750838201355b600019600387901b1c1916600186901b1783556115b9565b600083815260209020601f19861690835b8281101561390157868501358255602094850194600190920191016138e1565b508682101561391e5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052603260045260246000fd5b6000600182016139585761395861373c565b5060010190565b60008261396e5761396e613769565b500690565b8082018082111561092f5761092f61373c565b6000602080838503121561399957600080fd5b82516001600160401b03808211156139b057600080fd5b90840190604082870312156139c457600080fd5b6139cc6132c8565b8251828111156139db57600080fd5b83019150601f820187136139ee57600080fd5b81516139fc6135c58261355a565b81815260059190911b83018501908581019089831115613a1b57600080fd5b938601935b82851015613a3957845182529386019390860190613a20565b835250509183015192820192909252949350505050565b6040808252810183905260006001600160fb1b03841115613a7057600080fd5b8360051b8086606085013760609083018381038201602080860191909152855192820183905285810192600092608001905b80841015613ac25784518252938201936001939093019290820190613aa2565b5098975050505050505050565b60008154613adc81613702565b60018281168015613af45760018114613b0957613b38565b60ff1984168752821515830287019450613b38565b8560005260208060002060005b85811015613b2f5781548a820152908401908201613b16565b50505082870194505b5050505092915050565b6000613b4e8285613acf565b667374616b65642f60c81b81528351613b6e816007840160208801613168565b01600701949350505050565b6000613b868285613acf565b8351613b96818360208801613168565b01949350505050565b81516001600160401b03811115613bb857613bb86132b2565b613bcc81613bc68454613702565b8461382b565b602080601f831160018114613c015760008415613be95750858301515b600019600386901b1c1916600185901b1785556121f9565b600085815260208120601f198616915b82811015613c3057888601518255948401946001909101908401613c11565b5085821015613c4e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b600060208284031215613cba57600080fd5b81516125df8161320e565b600060208284031215613cd757600080fd5b5051919050565b60208082526034908201527f455243373231415f5f496e697469616c697a61626c653a20636f6e7472616374604082015273206973206e6f7420696e697469616c697a696e6760601b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613db09083018461318c565b9695505050505050565b600060208284031215613dcc57600080fd5b81516125df816130d4565b60008251613de9818460208701613168565b919091019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc68747470733a2f2f6d6f6f6e72756e6e6572732d647261676f6e732e6865726f6b756170702e636f6d2f647261676f6e732f416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564ee151c8401928dc223602bb187aff91b9a56c7cae5476ef1b3287b085a16c85fa26469706673582212200648c1ce4e6a2cebb92f9e47a7de0c59f2d7228574e66e1b9bc49c31ce46c67864736f6c63430008120033
Deployed Bytecode
0x6080604052600436106102ff5760003560e01c806391b7f5ed11610190578063bb940b94116100dc578063dab5f34011610095578063edc5b2c31161006f578063edc5b2c3146108a4578063f2a41374146108c4578063f2fde38b146108e4578063fdbcc9b11461090457600080fd5b8063dab5f34014610844578063e268e4d314610864578063e985e9c51461088457600080fd5b8063bb940b941461078d578063bc81328b146107ad578063c6036c5c146107cd578063c87b56dd146107ed578063d5abeb011461080d578063d7ec48951461082457600080fd5b8063aa1b103f11610149578063b383518811610123578063b383518814610717578063b77a147b14610737578063b88d4fde1461074a578063baa51f861461075d57600080fd5b8063aa1b103f146106d4578063ac397f12146106e9578063b19909771461070057600080fd5b806391b7f5ed1461063257806394ea11161461065257806395d89b41146106735780639abc832014610688578063a035b1fe1461069d578063a22cb465146106b457600080fd5b8063453c23101161024f5780636352211e11610208578063715018a6116101e2578063715018a6146105bf5780638a4948b1146105d45780638a616bc0146105f45780638da5cb5b1461061457600080fd5b80636352211e1461055f5780636f8b44b01461057f57806370a082311461059f57600080fd5b8063453c2310146104c55780634f1ef286146104dc57806352d1902d146104ef57806355f804b3146105045780635944c753146105245780635a1a3ebd1461054457600080fd5b80631d21b9e7116102bc5780632c673915116102965780632c6739151461045d5780633659cfe61461047d5780633ccfd60b1461049d57806342842e0e146104b257600080fd5b80631d21b9e7146103eb57806323b872dd1461040b5780632a55205a1461041e57600080fd5b806301ffc9a71461030457806304634d8d1461033957806306fdde031461035b578063081812fc1461037d578063095ea7b3146103b557806318160ddd146103c8575b600080fd5b34801561031057600080fd5b5061032461031f3660046130ea565b610924565b60405190151581526020015b60405180910390f35b34801561034557600080fd5b50610359610354366004613135565b610935565b005b34801561036757600080fd5b5061037061094b565b60405161033091906131b8565b34801561038957600080fd5b5061039d6103983660046131cb565b6109e6565b6040516001600160a01b039091168152602001610330565b6103596103c33660046131e4565b610a33565b3480156103d457600080fd5b506103dd610a4c565b604051908152602001610330565b3480156103f757600080fd5b5061035961040636600461321c565b610a6b565b610359610419366004613239565b610a90565b34801561042a57600080fd5b5061043e610439366004613275565b610abb565b604080516001600160a01b039093168352602083019190915201610330565b34801561046957600080fd5b506101365461032490610100900460ff1681565b34801561048957600080fd5b50610359610498366004613297565b610b69565b3480156104a957600080fd5b50610359610c51565b6103596104c0366004613239565b610d04565b3480156104d157600080fd5b506103dd6101305481565b6103596104ea36600461338f565b610d29565b3480156104fb57600080fd5b506103dd610df5565b34801561051057600080fd5b5061035961051f3660046133dc565b610ea8565b34801561053057600080fd5b5061035961053f36600461344d565b610ebe565b34801561055057600080fd5b50610136546103249060ff1681565b34801561056b57600080fd5b5061039d61057a3660046131cb565b610ed1565b34801561058b57600080fd5b5061035961059a3660046131cb565b610edc565b3480156105ab57600080fd5b506103dd6105ba366004613297565b610eea565b3480156105cb57600080fd5b50610359610f52565b3480156105e057600080fd5b506103596105ef3660046134cd565b610f66565b34801561060057600080fd5b5061035961060f3660046131cb565b6110ea565b34801561062057600080fd5b506097546001600160a01b031661039d565b34801561063e57600080fd5b5061035961064d3660046131cb565b611103565b34801561065e57600080fd5b50610136546103249062010000900460ff1681565b34801561067f57600080fd5b50610370611111565b34801561069457600080fd5b50610370611129565b3480156106a957600080fd5b506103dd6101355481565b3480156106c057600080fd5b506103596106cf366004613523565b6111b8565b3480156106e057600080fd5b506103596111cc565b3480156106f557600080fd5b506103dd6101315481565b34801561070c57600080fd5b506103dd6101335481565b34801561072357600080fd5b506103596107323660046131cb565b6111de565b61035961074536600461357d565b6111ec565b610359610758366004613612565b611593565b34801561076957600080fd5b506103246107783660046131cb565b600090815261012d6020526040902054151590565b34801561079957600080fd5b506103596107a8366004613297565b6115c0565b3480156107b957600080fd5b506103596107c8366004613679565b6115eb565b3480156107d957600080fd5b506103596107e8366004613297565b611826565b3480156107f957600080fd5b506103706108083660046131cb565b611851565b34801561081957600080fd5b506103dd6101325481565b34801561083057600080fd5b5061035961083f36600461321c565b6118b9565b34801561085057600080fd5b5061035961085f3660046131cb565b6118d5565b34801561087057600080fd5b5061035961087f3660046131cb565b6118e3565b34801561089057600080fd5b5061032461089f3660046136ba565b6118f1565b3480156108b057600080fd5b506103596108bf3660046136e4565b61192e565b3480156108d057600080fd5b506103596108df366004613135565b611956565b3480156108f057600080fd5b506103596108ff366004613297565b611cfe565b34801561091057600080fd5b5061035961091f366004613275565b611d74565b600061092f82611d8f565b92915050565b61093d611dc4565b6109478282611e1e565b5050565b6060610955611ed8565b600201805461096390613702565b80601f016020809104026020016040519081016040528092919081815260200182805461098f90613702565b80156109dc5780601f106109b1576101008083540402835291602001916109dc565b820191906000526020600020905b8154815290600101906020018083116109bf57829003601f168201915b5050505050905090565b60006109f182611efc565b610a0e576040516333d1c03960e21b815260040160405180910390fd5b610a16611ed8565b60009283526006016020525060409020546001600160a01b031690565b81610a3d81611f38565b610a478383611ff1565b505050565b600080610a57611ed8565b60010154610a63611ed8565b540303919050565b610a73611dc4565b6101368054911515620100000262ff000019909216919091179055565b826001600160a01b0381163314610aaa57610aaa33611f38565b610ab5848484611ffd565b50505050565b60008281526034602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610b305750604080518082019091526033546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610b4f906001600160601b031687613752565b610b59919061377f565b91519350909150505b9250929050565b6001600160a01b037f0000000000000000000000003864a4c5957c6a1654e363bb35e9af835e16f4d5163003610bba5760405162461bcd60e51b8152600401610bb190613793565b60405180910390fd5b7f0000000000000000000000003864a4c5957c6a1654e363bb35e9af835e16f4d56001600160a01b0316610c03600080516020613df4833981519152546001600160a01b031690565b6001600160a01b031614610c295760405162461bcd60e51b8152600401610bb1906137df565b610c3281612201565b60408051600080825260208201909252610c4e91839190612209565b50565b610c59611dc4565b6000610c6d6097546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610cb7576040519150601f19603f3d011682016040523d82523d6000602084013e610cbc565b606091505b5050905080610c4e5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610bb1565b826001600160a01b0381163314610d1e57610d1e33611f38565b610ab5848484612374565b6001600160a01b037f0000000000000000000000003864a4c5957c6a1654e363bb35e9af835e16f4d5163003610d715760405162461bcd60e51b8152600401610bb190613793565b7f0000000000000000000000003864a4c5957c6a1654e363bb35e9af835e16f4d56001600160a01b0316610dba600080516020613df4833981519152546001600160a01b031690565b6001600160a01b031614610de05760405162461bcd60e51b8152600401610bb1906137df565b610de982612201565b61094782826001612209565b6000306001600160a01b037f0000000000000000000000003864a4c5957c6a1654e363bb35e9af835e16f4d51614610e955760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610bb1565b50600080516020613df483398151915290565b610eb0611dc4565b610137610a47828483613871565b610ec6611dc4565b610a4783838361238f565b600061092f8261245a565b610ee4611dc4565b61013255565b60006001600160a01b038216610f13576040516323d3ad8160e21b815260040160405180910390fd5b6001600160401b03610f23611ed8565b6005016000846001600160a01b03166001600160a01b0316815260200190815260200160002054169050919050565b610f5a611dc4565b610f6460006124ff565b565b60005b82811015610ab5576000848483818110610f8557610f85613930565b905060200201359050336001600160a01b0316610fa182610ed1565b6001600160a01b031614610ff75760405162461bcd60e51b815260206004820152601b60248201527f596f7520646f206e6f74206f776e207468697320647261676f6e2100000000006044820152606401610bb1565b821561106a57600081815261012d6020526040902054156110535760405162461bcd60e51b8152602060048201526016602482015275447261676f6e20616c7265616479207374616b65642160501b6044820152606401610bb1565b600081815261012d602052604090204290556110d7565b600081815261012d60205260409020546110c65760405162461bcd60e51b815260206004820152601960248201527f447261676f6e20616c726561647920756e2d7374616b656421000000000000006044820152606401610bb1565b600081815261012d60205260408120555b50806110e281613946565b915050610f69565b6110f2611dc4565b600090815260346020526040812055565b61110b611dc4565b61013555565b606061111b611ed8565b600301805461096390613702565b610137805461113790613702565b80601f016020809104026020016040519081016040528092919081815260200182805461116390613702565b80156111b05780601f10611185576101008083540402835291602001916111b0565b820191906000526020600020905b81548152906001019060200180831161119357829003601f168201915b505050505081565b816111c281611f38565b610a478383612551565b6111d4611dc4565b610f646000603355565b6111e6611dc4565b61013155565b6101365460ff1680611206575061013654610100900460ff165b61124a5760405162461bcd60e51b81526020600482015260156024820152744d696e74206973206e6f74206c697665207965742160581b6044820152606401610bb1565b61013554611258903461395f565b156112a55760405162461bcd60e51b815260206004820152601d60248201527f556e657870656374656420616d6f756e74206f66204554482073656e740000006044820152606401610bb1565b600061013554346112b6919061377f565b6101305433600090815261012f6020526040902054919250906112da908390613973565b11156113385760405162461bcd60e51b815260206004820152602760248201527f596f75206861766520616c7265616479206d696e74656420746865206d617820604482015266616d6f756e742160c81b6064820152608401610bb1565b6101325481611345610a4c565b61134f9190613973565b11156113945760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b6044820152606401610bb1565b6101315481610133546113a79190613973565b11156113f55760405162461bcd60e51b815260206004820152601a60248201527f416c6c20414c206d696e74732061726520636f6d706c657465640000000000006044820152606401610bb1565b6101365460ff168015611411575061013654610100900460ff16155b1561154b57610138546040516303d3b32360e51b81523360048201526000916001600160a01b031690637a766460906024016000604051808303816000875af1158015611462573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261148a9190810190613986565b6020015111806114e4575061013454604080513360208201526114e492859290910160408051601f1981840301815282825280516020918201209083015201604051602081830303815290604052805190602001206125ce565b61154b5760405162461bcd60e51b815260206004820152603260248201527f596f75206e6569746865722068617665204d6f6f6e72756e6e657273207374616044820152716b6564206e6f722061726520696e20414c2160701b6064820152608401610bb1565b80610133600082825461155e9190613973565b909155505033600090815261012f602052604081208054839290611583908490613973565b90915550610947905033826125e6565b836001600160a01b03811633146115ad576115ad33611f38565b6115b98585858561272e565b5050505050565b6115c8611dc4565b61013980546001600160a01b0319166001600160a01b0392909216919091179055565b6101365462010000900460ff166116445760405162461bcd60e51b815260206004820152601a60248201527f426c6f6f64206275726e696e67206973206e6f74206c697665210000000000006044820152606401610bb1565b6101325481611651610a4c565b61165b9190613973565b11156116a95760405162461bcd60e51b815260206004820152601d60248201527f457863656564696e67206d617820647261676f6e7320737570706c79210000006044820152606401610bb1565b6000816001600160401b038111156116c3576116c36132b2565b6040519080825280602002602001820160405280156116ec578160200160208202803683370190505b50905060005b828110156117db57600084848381811061170e5761170e613930565b90506020020135905081611720610a4c565b61172a9190613973565b83838151811061173c5761173c613930565b60209081029190910181019190915261013954600083815261012e90925260409182902054915163ee72006560e01b81523360048201526024810184905260448101929092526001600160a01b03169063ee72006590606401600060405180830381600087803b1580156117af57600080fd5b505af11580156117c3573d6000803e3d6000fd5b505050505080806117d390613946565b9150506116f2565b506117e633836125e6565b7fca0126e75d49b512347b8ee47e8b3de3c8bd8f9442987bee202f82ddb570d9db83838360405161181993929190613a50565b60405180910390a1505050565b61182e611dc4565b61013880546001600160a01b0319166001600160a01b0392909216919091179055565b600081815261012d60205260409020546060901561189c5761013761187583612772565b604051602001611886929190613b42565b6040516020818303038152906040529050919050565b6101376118a883612772565b604051602001611886929190613b7a565b6118c1611dc4565b610136805460ff1916911515919091179055565b6118dd611dc4565b61013455565b6118eb611dc4565b61013055565b60006118fb611ed8565b6001600160a01b039384166000908152600791909101602090815260408083209490951682529290925250205460ff1690565b611936611dc4565b61013680549215156101000261ff00199093169290921790915561013555565b600080516020613e6d83398151915254610100900460ff1661198b57600080516020613e6d8339815191525460ff161561198f565b303b155b611a015760405162461bcd60e51b815260206004820152603760248201527f455243373231415f5f496e697469616c697a61626c653a20636f6e747261637460448201527f20697320616c726561647920696e697469616c697a65640000000000000000006064820152608401610bb1565b600080516020613e6d83398151915254610100900460ff16158015611a3d57600080516020613e6d833981519152805461ffff19166101011790555b600054610100900460ff1615808015611a5d5750600054600160ff909116105b80611a775750303b158015611a77575060005460ff166001145b611ada5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610bb1565b6000805460ff191660011790558015611afd576000805461ff0019166101001790555b611b4260405180604001604052806007815260200166447261676f6e7360c81b81525060405180604001604052806004815260200163222923a760e11b815250612804565b611b4a612842565b611b52612871565b611b5a612898565b604051806060016040528060328152602001613e146032913961013790611b819082613b9f565b5061013880546001600160a01b0319908116731485297e942ce64e0870ece60179dfda34b4c62517909155610139805490911673b6d460ac51b93bca63b694f099c4a8b3b1cf73b417905560026101305561012e60205260057f897db7a3dd3698ee7e92ddbf6330e248523dd785d7fbba7244a6952b810c8afc5560047f9047bba89121e89e5d86e8366afbc408a290f8c69e73c300bcf01a4dec5b779b81905560017f7b5e2a2921fcee941ffcb62b67b9dfc1ae9224791915bb37e5756beaeab86a7d8190556000919091527fa135932be7035866fe2486eaf59b5fcdb540af50eae05b6087a7066fe7aee3d25566f5232269808000610135556105dc6101315561157c61013255611c948484611e1e565b8015611cda576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b508015610a47575050600080516020613e6d833981519152805461ff001916905550565b611d06611dc4565b6001600160a01b038116611d6b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bb1565b610c4e816124ff565b611d7c611dc4565b600091825261012e602052604090912055565b60006001600160e01b0319821663152a902d60e11b148061092f57506301ffc9a760e01b6001600160e01b031983161461092f565b6097546001600160a01b03163314610f645760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610bb1565b6127106001600160601b0382161115611e495760405162461bcd60e51b8152600401610bb190613c5e565b6001600160a01b038216611e9f5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610bb1565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217603355565b7f2569078dfb4b0305704d3008e7403993ae9601b85f7ae5e742de3de8f8011c4090565b6000611f06611ed8565b548210801561092f5750600160e01b611f1d611ed8565b60008481526004919091016020526040902054161592915050565b6daaeb6d7670e522a718067333cd4e3b15610c4e57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611fa5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fc99190613ca8565b610c4e57604051633b79c77360e21b81526001600160a01b0382166004820152602401610bb1565b610947828260016128de565b60006120088261245a565b9050836001600160a01b0316816001600160a01b03161461203b5760405162a1148160e81b815260040160405180910390fd5b60008061204784612993565b9150915061206c81876120573390565b6001600160a01b039081169116811491141790565b6120975761207a86336118f1565b61209757604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166120be57604051633a954ecd60e21b815260040160405180910390fd5b6120cb86868660016129bb565b80156120d657600082555b6120de611ed8565b6001600160a01b038716600090815260059190910160205260409020805460001901905561210a611ed8565b6001600160a01b03861660008181526005929092016020526040909120805460010190554260a01b17600160e11b17612141611ed8565b60008681526004919091016020526040812091909155600160e11b841690036121b75760018401612170611ed8565b6000828152600491909101602052604081205490036121b557612191611ed8565b5481146121b557836121a1611ed8565b600083815260049190910160205260409020555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610c4e611dc4565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff161561223c57610a4783612a23565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015612296575060408051601f3d908101601f1916820190925261229391810190613cc5565b60015b6122f95760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610bb1565b600080516020613df483398151915281146123685760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610bb1565b50610a47838383612abf565b610a4783838360405180602001604052806000815250611593565b6127106001600160601b03821611156123ba5760405162461bcd60e51b8152600401610bb190613c5e565b6001600160a01b0382166124105760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610bb1565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752603490529190942093519051909116600160a01b029116179055565b6000612464611ed8565b600083815260049190910160205260408120549150600160e01b821690036124e657806000036124e157612496611ed8565b5482106124b657604051636f96cda160e11b815260040160405180910390fd5b6124be611ed8565b6000199092016000818152600493909301602052604090922054905080156124b6575b919050565b604051636f96cda160e11b815260040160405180910390fd5b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8061255a611ed8565b336000818152600792909201602090815260408084206001600160a01b03881680865290835293819020805460ff19169515159590951790945592518415158152919290917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000826125db8584612ae4565b1490505b9392505050565b60006125f0611ed8565b54905060008290036126155760405163b562e8dd60e01b815260040160405180910390fd5b61262260008483856129bb565b680100000000000000018202612636611ed8565b6001600160a01b038516600081815260059290920160205260409091208054929092019091554260a01b6001841460e11b1717612671611ed8565b600083815260049190910160205260408120919091556001600160a01b0384169083830190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146126fb57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016126c3565b508160000361271c57604051622e076360e81b815260040160405180910390fd5b80612725611ed8565b5550610a479050565b612739848484610a90565b6001600160a01b0383163b15610ab55761275584848484612b31565b610ab5576040516368d2bf6b60e11b815260040160405180910390fd5b6060600061277f83612c1c565b60010190506000816001600160401b0381111561279e5761279e6132b2565b6040519080825280601f01601f1916602001820160405280156127c8576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846127d257509392505050565b600080516020613e6d83398151915254610100900460ff166128385760405162461bcd60e51b8152600401610bb190613cde565b6109478282612cf4565b600054610100900460ff166128695760405162461bcd60e51b8152600401610bb190613d32565b610f64612d67565b600054610100900460ff16610f645760405162461bcd60e51b8152600401610bb190613d32565b600054610100900460ff166128bf5760405162461bcd60e51b8152600401610bb190613d32565b610f64733cc6cdda760b79bafa08df41ecfa224f810dceb66001612d97565b60006128e983610ed1565b9050811561292857336001600160a01b038216146129285761290b81336118f1565b612928576040516367d9dca160e11b815260040160405180910390fd5b83612931611ed8565b6000858152600691909101602052604080822080546001600160a01b0319166001600160a01b0394851617905551859287811692908516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a450505050565b60008060006129a0611ed8565b60009485526006016020525050604090912080549092909150565b6001600160a01b03831615806129de5750600082815261012d6020526040902054155b610ab55760405162461bcd60e51b81526020600482015260166024820152755468697320647261676f6e206973207374616b65642160501b6044820152606401610bb1565b6001600160a01b0381163b612a905760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610bb1565b600080516020613df483398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b612ac883612f36565b600082511180612ad55750805b15610a4757610ab58383612f76565b600081815b8451811015612b2957612b1582868381518110612b0857612b08613930565b602002602001015161306a565b915080612b2181613946565b915050612ae9565b509392505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612b66903390899088908890600401613d7d565b6020604051808303816000875af1925050508015612ba1575060408051601f3d908101601f19168201909252612b9e91810190613dba565b60015b612bff573d808015612bcf576040519150601f19603f3d011682016040523d82523d6000602084013e612bd4565b606091505b508051600003612bf7576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310612c5b5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612c87576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612ca557662386f26fc10000830492506010015b6305f5e1008310612cbd576305f5e100830492506008015b6127108310612cd157612710830492506004015b60648310612ce3576064830492506002015b600a831061092f5760010192915050565b600080516020613e6d83398151915254610100900460ff16612d285760405162461bcd60e51b8152600401610bb190613cde565b81612d31611ed8565b60020190612d3f9082613b9f565b5080612d49611ed8565b60030190612d579082613b9f565b506000612d62611ed8565b555050565b600054610100900460ff16612d8e5760405162461bcd60e51b8152600401610bb190613d32565b610f64336124ff565b600054610100900460ff16612dbe5760405162461bcd60e51b8152600401610bb190613d32565b6daaeb6d7670e522a718067333cd4e3b156109475760405163c3c5a54760e01b81523060048201526daaeb6d7670e522a718067333cd4e9063c3c5a547906024016020604051808303816000875af1158015612e1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e429190613ca8565b610947578015612eb657604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b158015612ea257600080fd5b505af11580156121f9573d6000803e3d6000fd5b6001600160a01b03821615612f055760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401612e88565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401612e88565b612f3f81612a23565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b612fde5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610bb1565b600080846001600160a01b031684604051612ff99190613dd7565b600060405180830381855af49150503d8060008114613034576040519150601f19603f3d011682016040523d82523d6000602084013e613039565b606091505b50915091506130618282604051806060016040528060278152602001613e4660279139613096565b95945050505050565b60008183106130865760008281526020849052604090206125df565b5060009182526020526040902090565b606083156130a55750816125df565b6125df83838151156130ba5781518083602001fd5b8060405162461bcd60e51b8152600401610bb191906131b8565b6001600160e01b031981168114610c4e57600080fd5b6000602082840312156130fc57600080fd5b81356125df816130d4565b80356001600160a01b03811681146124e157600080fd5b80356001600160601b03811681146124e157600080fd5b6000806040838503121561314857600080fd5b61315183613107565b915061315f6020840161311e565b90509250929050565b60005b8381101561318357818101518382015260200161316b565b50506000910152565b600081518084526131a4816020860160208601613168565b601f01601f19169290920160200192915050565b6020815260006125df602083018461318c565b6000602082840312156131dd57600080fd5b5035919050565b600080604083850312156131f757600080fd5b61320083613107565b946020939093013593505050565b8015158114610c4e57600080fd5b60006020828403121561322e57600080fd5b81356125df8161320e565b60008060006060848603121561324e57600080fd5b61325784613107565b925061326560208501613107565b9150604084013590509250925092565b6000806040838503121561328857600080fd5b50508035926020909101359150565b6000602082840312156132a957600080fd5b6125df82613107565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156132ea576132ea6132b2565b60405290565b604051601f8201601f191681016001600160401b0381118282101715613318576133186132b2565b604052919050565b600082601f83011261333157600080fd5b81356001600160401b0381111561334a5761334a6132b2565b61335d601f8201601f19166020016132f0565b81815284602083860101111561337257600080fd5b816020850160208301376000918101602001919091529392505050565b600080604083850312156133a257600080fd5b6133ab83613107565b915060208301356001600160401b038111156133c657600080fd5b6133d285828601613320565b9150509250929050565b600080602083850312156133ef57600080fd5b82356001600160401b038082111561340657600080fd5b818501915085601f83011261341a57600080fd5b81358181111561342957600080fd5b86602082850101111561343b57600080fd5b60209290920196919550909350505050565b60008060006060848603121561346257600080fd5b8335925061347260208501613107565b91506134806040850161311e565b90509250925092565b60008083601f84011261349b57600080fd5b5081356001600160401b038111156134b257600080fd5b6020830191508360208260051b8501011115610b6257600080fd5b6000806000604084860312156134e257600080fd5b83356001600160401b038111156134f857600080fd5b61350486828701613489565b90945092505060208401356135188161320e565b809150509250925092565b6000806040838503121561353657600080fd5b61353f83613107565b9150602083013561354f8161320e565b809150509250929050565b60006001600160401b03821115613573576135736132b2565b5060051b60200190565b6000602080838503121561359057600080fd5b82356001600160401b038111156135a657600080fd5b8301601f810185136135b757600080fd5b80356135ca6135c58261355a565b6132f0565b81815260059190911b820183019083810190878311156135e957600080fd5b928401925b82841015613607578335825292840192908401906135ee565b979650505050505050565b6000806000806080858703121561362857600080fd5b61363185613107565b935061363f60208601613107565b92506040850135915060608501356001600160401b0381111561366157600080fd5b61366d87828801613320565b91505092959194509250565b6000806020838503121561368c57600080fd5b82356001600160401b038111156136a257600080fd5b6136ae85828601613489565b90969095509350505050565b600080604083850312156136cd57600080fd5b6136d683613107565b915061315f60208401613107565b600080604083850312156136f757600080fd5b82356132008161320e565b600181811c9082168061371657607f821691505b60208210810361373657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761092f5761092f61373c565b634e487b7160e01b600052601260045260246000fd5b60008261378e5761378e613769565b500490565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b601f821115610a4757600081815260208120601f850160051c810160208610156138525750805b601f850160051c820191505b818110156121f95782815560010161385e565b6001600160401b03831115613888576138886132b2565b61389c836138968354613702565b8361382b565b6000601f8411600181146138d057600085156138b85750838201355b600019600387901b1c1916600186901b1783556115b9565b600083815260209020601f19861690835b8281101561390157868501358255602094850194600190920191016138e1565b508682101561391e5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052603260045260246000fd5b6000600182016139585761395861373c565b5060010190565b60008261396e5761396e613769565b500690565b8082018082111561092f5761092f61373c565b6000602080838503121561399957600080fd5b82516001600160401b03808211156139b057600080fd5b90840190604082870312156139c457600080fd5b6139cc6132c8565b8251828111156139db57600080fd5b83019150601f820187136139ee57600080fd5b81516139fc6135c58261355a565b81815260059190911b83018501908581019089831115613a1b57600080fd5b938601935b82851015613a3957845182529386019390860190613a20565b835250509183015192820192909252949350505050565b6040808252810183905260006001600160fb1b03841115613a7057600080fd5b8360051b8086606085013760609083018381038201602080860191909152855192820183905285810192600092608001905b80841015613ac25784518252938201936001939093019290820190613aa2565b5098975050505050505050565b60008154613adc81613702565b60018281168015613af45760018114613b0957613b38565b60ff1984168752821515830287019450613b38565b8560005260208060002060005b85811015613b2f5781548a820152908401908201613b16565b50505082870194505b5050505092915050565b6000613b4e8285613acf565b667374616b65642f60c81b81528351613b6e816007840160208801613168565b01600701949350505050565b6000613b868285613acf565b8351613b96818360208801613168565b01949350505050565b81516001600160401b03811115613bb857613bb86132b2565b613bcc81613bc68454613702565b8461382b565b602080601f831160018114613c015760008415613be95750858301515b600019600386901b1c1916600185901b1785556121f9565b600085815260208120601f198616915b82811015613c3057888601518255948401946001909101908401613c11565b5085821015613c4e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b600060208284031215613cba57600080fd5b81516125df8161320e565b600060208284031215613cd757600080fd5b5051919050565b60208082526034908201527f455243373231415f5f496e697469616c697a61626c653a20636f6e7472616374604082015273206973206e6f7420696e697469616c697a696e6760601b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613db09083018461318c565b9695505050505050565b600060208284031215613dcc57600080fd5b81516125df816130d4565b60008251613de9818460208701613168565b919091019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc68747470733a2f2f6d6f6f6e72756e6e6572732d647261676f6e732e6865726f6b756170702e636f6d2f647261676f6e732f416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564ee151c8401928dc223602bb187aff91b9a56c7cae5476ef1b3287b085a16c85fa26469706673582212200648c1ce4e6a2cebb92f9e47a7de0c59f2d7228574e66e1b9bc49c31ce46c67864736f6c63430008120033
Deployed Bytecode Sourcemap
140379:8420:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;147740:193;;;;;;;;;;-1:-1:-1;147740:193:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;147740:193:0;;;;;;;;147969:146;;;;;;;;;;-1:-1:-1;147969:146:0;;;;;:::i;:::-;;:::i;:::-;;52861:124;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;59453:242::-;;;;;;;;;;-1:-1:-1;59453:242:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2322:32:1;;;2304:51;;2292:2;2277:18;59453:242:0;2158:203:1;146939:165:0;;;;;;:::i;:::-;;:::i;48346:371::-;;;;;;;;;;;;;:::i;:::-;;;2771:25:1;;;2759:2;2744:18;48346:371:0;2625:177:1;143046:121:0;;;;;;;;;;-1:-1:-1;143046:121:0;;;;;:::i;:::-;;:::i;147112:171::-;;;;;;:::i;:::-;;:::i;123058:442::-;;;;;;;;;;-1:-1:-1;123058:442:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3954:32:1;;;3936:51;;4018:2;4003:18;;3996:34;;;;3909:18;123058:442:0;3762:274:1;140963:27:0;;;;;;;;;;-1:-1:-1;140963:27:0;;;;;;;;;;;118119:200;;;;;;;;;;-1:-1:-1;118119:200:0;;;;;:::i;:::-;;:::i;148551:180::-;;;;;;;;;;;;;:::i;147291:179::-;;;;;;:::i;:::-;;:::i;140746:27::-;;;;;;;;;;;;;;;;118578:225;;;;;;:::i;:::-;;:::i;117797:133::-;;;;;;;;;;;;;:::i;143175:100::-;;;;;;;;;;-1:-1:-1;143175:100:0;;;;;:::i;:::-;;:::i;148224:202::-;;;;;;;;;;-1:-1:-1;148224:202:0;;;;;:::i;:::-;;:::i;140926:30::-;;;;;;;;;;-1:-1:-1;140926:30:0;;;;;;;;54302:152;;;;;;;;;;-1:-1:-1;54302:152:0;;;;;:::i;:::-;;:::i;142797:100::-;;;;;;;;;;-1:-1:-1;142797:100:0;;;;;:::i;:::-;;:::i;49626:257::-;;;;;;;;;;-1:-1:-1;49626:257:0;;;;;:::i;:::-;;:::i;129339:103::-;;;;;;;;;;;;;:::i;143809:615::-;;;;;;;;;;-1:-1:-1;143809:615:0;;;;;:::i;:::-;;:::i;148434:109::-;;;;;;;;;;-1:-1:-1;148434:109:0;;;;;:::i;:::-;;:::i;128691:87::-;;;;;;;;;;-1:-1:-1;128764:6:0;;-1:-1:-1;;;;;128764:6:0;128691:87;;142705:84;;;;;;;;;;-1:-1:-1;142705:84:0;;;;;:::i;:::-;;:::i;140997:27::-;;;;;;;;;;-1:-1:-1;140997:27:0;;;;;;;;;;;53061:128;;;;;;;;;;;;;:::i;141049:21::-;;;;;;;;;;;;;:::i;140899:20::-;;;;;;;;;;;;;;;;146755:176;;;;;;;;;;-1:-1:-1;146755:176:0;;;;;:::i;:::-;;:::i;148123:93::-;;;;;;;;;;;;;:::i;140780:24::-;;;;;;;;;;;;;;;;140842:23;;;;;;;;;;;;;;;;143528:105;;;;;;;;;;-1:-1:-1;143528:105:0;;;;;:::i;:::-;;:::i;144432:1032::-;;;;;;:::i;:::-;;:::i;147478:229::-;;;;;;:::i;:::-;;:::i;143403:117::-;;;;;;;;;;-1:-1:-1;143403:117:0;;;;;:::i;:::-;143460:4;143484:24;;;:14;:24;;;;;;:28;;;143403:117;142497:112;;;;;;;;;;-1:-1:-1;142497:112:0;;;;;:::i;:::-;;:::i;146021:678::-;;;;;;;;;;-1:-1:-1;146021:678:0;;;;;:::i;:::-;;:::i;142361:128::-;;;;;;;;;;-1:-1:-1;142361:128:0;;;;;:::i;:::-;;:::i;145472:294::-;;;;;;;;;;-1:-1:-1;145472:294:0;;;;;:::i;:::-;;:::i;140811:24::-;;;;;;;;;;;;;;;;142905:133;;;;;;;;;;-1:-1:-1;142905:133:0;;;;;:::i;:::-;;:::i;142617:80::-;;;;;;;;;;-1:-1:-1;142617:80:0;;;;;:::i;:::-;;:::i;143283:112::-;;;;;;;;;;-1:-1:-1;143283:112:0;;;;;:::i;:::-;;:::i;60450:188::-;;;;;;;;;;-1:-1:-1;60450:188:0;;;;;:::i;:::-;;:::i;143641:160::-;;;;;;;;;;-1:-1:-1;143641:160:0;;;;;:::i;:::-;;:::i;141187:926::-;;;;;;;;;;-1:-1:-1;141187:926:0;;;;;:::i;:::-;;:::i;129597:201::-;;;;;;;;;;-1:-1:-1;129597:201:0;;;;;:::i;:::-;;:::i;142215:138::-;;;;;;;;;;-1:-1:-1;142215:138:0;;;;;:::i;:::-;;:::i;147740:193::-;147865:4;147889:36;147913:11;147889:23;:36::i;:::-;147882:43;147740:193;-1:-1:-1;;147740:193:0:o;147969:146::-;128577:13;:11;:13::i;:::-;148065:42:::1;148084:8;148094:12;148065:18;:42::i;:::-;147969:146:::0;;:::o;52861:124::-;52915:13;52948:23;:21;:23::i;:::-;:29;;52941:36;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52861:124;:::o;59453:242::-;59529:7;59554:16;59562:7;59554;:16::i;:::-;59549:64;;59579:34;;-1:-1:-1;;;59579:34:0;;;;;;;;;;;59549:64;59633:23;:21;:23::i;:::-;:48;;;;:39;;:48;;-1:-1:-1;59633:48:0;;;:54;-1:-1:-1;;;;;59633:54:0;;59453:242::o;146939:165::-;147043:8;105381:30;105402:8;105381:20;:30::i;:::-;147064:32:::1;147078:8;147088:7;147064:13;:32::i;:::-;146939:165:::0;;;:::o;48346:371::-;48407:7;;48644:23;:21;:23::i;:::-;:36;;;48604:23;:21;:23::i;:::-;:37;:76;:94;;48346:371;-1:-1:-1;48346:371:0:o;143046:121::-;128577:13;:11;:13::i;:::-;143125:15:::1;:34:::0;;;::::1;;::::0;::::1;-1:-1:-1::0;;143125:34:0;;::::1;::::0;;;::::1;::::0;;143046:121::o;147112:171::-;147221:4;-1:-1:-1;;;;;105106:18:0;;105114:10;105106:18;105102:83;;105141:32;105162:10;105141:20;:32::i;:::-;147238:37:::1;147257:4;147263:2;147267:7;147238:18;:37::i;:::-;147112:171:::0;;;;:::o;123058:442::-;123155:7;123213:27;;;:17;:27;;;;;;;;123184:56;;;;;;;;;-1:-1:-1;;;;;123184:56:0;;;;;-1:-1:-1;;;123184:56:0;;;-1:-1:-1;;;;;123184:56:0;;;;;;;;123155:7;;123253:92;;-1:-1:-1;123304:29:0;;;;;;;;;123314:19;123304:29;-1:-1:-1;;;;;123304:29:0;;;;-1:-1:-1;;;123304:29:0;;-1:-1:-1;;;;;123304:29:0;;;;;123253:92;123395:23;;;;123357:21;;123866:5;;123382:36;;-1:-1:-1;;;;;123382:36:0;:10;:36;:::i;:::-;123381:58;;;;:::i;:::-;123460:16;;;-1:-1:-1;123357:82:0;;-1:-1:-1;;123058:442:0;;;;;;:::o;118119:200::-;-1:-1:-1;;;;;116667:6:0;116650:23;116658:4;116650:23;116642:80;;;;-1:-1:-1;;;116642:80:0;;;;;;;:::i;:::-;;;;;;;;;116765:6;-1:-1:-1;;;;;116741:30:0;:20;-1:-1:-1;;;;;;;;;;;108454:65:0;-1:-1:-1;;;;;108454:65:0;;108374:153;116741:20;-1:-1:-1;;;;;116741:30:0;;116733:87;;;;-1:-1:-1;;;116733:87:0;;;;;;;:::i;:::-;118203:36:::1;118221:17;118203;:36::i;:::-;118291:12;::::0;;118301:1:::1;118291:12:::0;;;::::1;::::0;::::1;::::0;;;118250:61:::1;::::0;118272:17;;118291:12;118250:21:::1;:61::i;:::-;118119:200:::0;:::o;148551:180::-;128577:13;:11;:13::i;:::-;148600:9:::1;148622:13;128764:6:::0;;-1:-1:-1;;;;;128764:6:0;;128691:87;148622:13:::1;-1:-1:-1::0;;;;;148614:27:0::1;148649:21;148614:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;148599:76;;;148694:4;148686:37;;;::::0;-1:-1:-1;;;148686:37:0;;13230:2:1;148686:37:0::1;::::0;::::1;13212:21:1::0;13269:2;13249:18;;;13242:30;-1:-1:-1;;;13288:18:1;;;13281:50;13348:18;;148686:37:0::1;13028:344:1::0;147291:179:0;147404:4;-1:-1:-1;;;;;105106:18:0;;105114:10;105106:18;105102:83;;105141:32;105162:10;105141:20;:32::i;:::-;147421:41:::1;147444:4;147450:2;147454:7;147421:22;:41::i;118578:225::-:0;-1:-1:-1;;;;;116667:6:0;116650:23;116658:4;116650:23;116642:80;;;;-1:-1:-1;;;116642:80:0;;;;;;;:::i;:::-;116765:6;-1:-1:-1;;;;;116741:30:0;:20;-1:-1:-1;;;;;;;;;;;108454:65:0;-1:-1:-1;;;;;108454:65:0;;108374:153;116741:20;-1:-1:-1;;;;;116741:30:0;;116733:87;;;;-1:-1:-1;;;116733:87:0;;;;;;;:::i;:::-;118696:36:::1;118714:17;118696;:36::i;:::-;118743:52;118765:17;118784:4;118790;118743:21;:52::i;117797:133::-:0;117875:7;117103:4;-1:-1:-1;;;;;117112:6:0;117095:23;;117087:92;;;;-1:-1:-1;;;117087:92:0;;13579:2:1;117087:92:0;;;13561:21:1;13618:2;13598:18;;;13591:30;13657:34;13637:18;;;13630:62;13728:26;13708:18;;;13701:54;13772:19;;117087:92:0;13377:420:1;117087:92:0;-1:-1:-1;;;;;;;;;;;;117797:133:0;:::o;143175:100::-;128577:13;:11;:13::i;:::-;143249:7:::1;:18;143259:8:::0;;143249:7;:18:::1;:::i;148224:202::-:0;128577:13;:11;:13::i;:::-;148369:49:::1;148386:7;148395:8;148405:12;148369:16;:49::i;54302:152::-:0;54374:7;54417:27;54436:7;54417:18;:27::i;142797:100::-;128577:13;:11;:13::i;:::-;142867:9:::1;:22:::0;142797:100::o;49626:257::-;49698:7;-1:-1:-1;;;;;49722:19:0;;49718:60;;49750:28;;-1:-1:-1;;;49750:28:0;;;;;;;;;;;49718:60;-1:-1:-1;;;;;49796:23:0;:21;:23::i;:::-;:42;;:49;49839:5;-1:-1:-1;;;;;49796:49:0;-1:-1:-1;;;;;49796:49:0;;;;;;;;;;;;;:79;49789:86;;49626:257;;;:::o;129339:103::-;128577:13;:11;:13::i;:::-;129404:30:::1;129431:1;129404:18;:30::i;:::-;129339:103::o:0;143809:615::-;143904:9;143899:518;143919:20;;;143899:518;;;143961:15;143979:9;;143989:1;143979:12;;;;;;;:::i;:::-;;;;;;;143961:30;;144040:10;-1:-1:-1;;;;;144014:36:0;:22;144028:7;144014:13;:22::i;:::-;-1:-1:-1;;;;;144014:36:0;;144006:76;;;;-1:-1:-1;;;144006:76:0;;16194:2:1;144006:76:0;;;16176:21:1;16233:2;16213:18;;;16206:30;16272:29;16252:18;;;16245:57;16319:18;;144006:76:0;15992:351:1;144006:76:0;144101:12;144097:309;;;143460:4;143484:24;;;:14;:24;;;;;;:28;144134:53;;;;-1:-1:-1;;;144134:53:0;;16550:2:1;144134:53:0;;;16532:21:1;16589:2;16569:18;;;16562:30;-1:-1:-1;;;16608:18:1;;;16601:52;16670:18;;144134:53:0;16348:346:1;144134:53:0;144206:23;;;;:14;:23;;;;;144232:15;144206:41;;144097:309;;;143460:4;143484:24;;;:14;:24;;;;;;144288:56;;;;-1:-1:-1;;;144288:56:0;;16901:2:1;144288:56:0;;;16883:21:1;16940:2;16920:18;;;16913:30;16979:27;16959:18;;;16952:55;17024:18;;144288:56:0;16699:349:1;144288:56:0;144389:1;144363:23;;;:14;:23;;;;;:27;144097:309;-1:-1:-1;143941:3:0;;;;:::i;:::-;;;;143899:518;;148434:109;128577:13;:11;:13::i;:::-;125514:26;;;;:17;:26;;;;;125507:33;118119:200::o;142705:84::-;128577:13;:11;:13::i;:::-;142767:5:::1;:14:::0;142705:84::o;53061:128::-;53117:13;53150:23;:21;:23::i;:::-;:31;;53143:38;;;;;:::i;141049:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;146755:176::-;146859:8;105381:30;105402:8;105381:20;:30::i;:::-;146880:43:::1;146904:8;146914;146880:23;:43::i;148123:93::-:0;128577:13;:11;:13::i;:::-;148185:23:::1;124626:19:::0;;124619:26;124558:95;143528:105;128577:13;:11;:13::i;:::-;143603:9:::1;:22:::0;143528:105::o;144432:1032::-;144505:18;;;;;:37;;-1:-1:-1;144527:15:0;;;;;;;144505:37;144497:71;;;;-1:-1:-1;;;144497:71:0;;17395:2:1;144497:71:0;;;17377:21:1;17434:2;17414:18;;;17407:30;-1:-1:-1;;;17453:18:1;;;17446:51;17514:18;;144497:71:0;17193:345:1;144497:71:0;144600:5;;144588:17;;:9;:17;:::i;:::-;:22;144579:65;;;;-1:-1:-1;;;144579:65:0;;17862:2:1;144579:65:0;;;17844:21:1;17901:2;17881:18;;;17874:30;17940:31;17920:18;;;17913:59;17989:18;;144579:65:0;17660:353:1;144579:65:0;144655:14;144684:5;;144672:9;:17;;;;:::i;:::-;144748:12;;144724:10;144708:27;;;;:15;:27;;;;;;144655:34;;-1:-1:-1;144748:12:0;144708:36;;144655:34;;144708:36;:::i;:::-;:52;;144700:104;;;;-1:-1:-1;;;144700:104:0;;18350:2:1;144700:104:0;;;18332:21:1;18389:2;18369:18;;;18362:30;18428:34;18408:18;;;18401:62;-1:-1:-1;;;18479:18:1;;;18472:37;18526:19;;144700:104:0;18148:403:1;144700:104:0;144855:9;;144845:6;144823:19;:17;:19::i;:::-;:28;;;;:::i;:::-;:41;;144815:74;;;;-1:-1:-1;;;144815:74:0;;18758:2:1;144815:74:0;;;18740:21:1;18797:2;18777:18;;;18770:30;-1:-1:-1;;;18816:18:1;;;18809:50;18876:18;;144815:74:0;18556:344:1;144815:74:0;144929:9;;144919:6;144908:8;;:17;;;;:::i;:::-;:30;;144900:69;;;;-1:-1:-1;;;144900:69:0;;19107:2:1;144900:69:0;;;19089:21:1;19146:2;19126:18;;;19119:30;19185:28;19165:18;;;19158:56;19231:18;;144900:69:0;18905:350:1;144900:69:0;144984:18;;;;:38;;;;-1:-1:-1;145007:15:0;;;;;;;145006:16;144984:38;144980:358;;;145075:16;;145065:48;;-1:-1:-1;;;145065:48:0;;145102:10;145065:48;;;2304:51:1;145126:1:0;;-1:-1:-1;;;;;145075:16:0;;145065:36;;2277:18:1;;145065:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;145065:48:0;;;;;;;;;;;;:::i;:::-;:58;;;:62;:175;;;-1:-1:-1;145175:4:0;;145214:22;;;145225:10;145214:22;;;2304:51:1;145148:92:0;;145167:6;;145175:4;;2277:18:1;145214:22:0;;;-1:-1:-1;;145214:22:0;;;;;;;;;145204:33;;145214:22;145204:33;;;;145191:47;;;20589:19:1;20624:12;145191:47:0;;;;;;;;;;;;145181:58;;;;;;145148:18;:92::i;:::-;145039:287;;;;-1:-1:-1;;;145039:287:0;;20849:2:1;145039:287:0;;;20831:21:1;20888:2;20868:18;;;20861:30;20927:34;20907:18;;;20900:62;-1:-1:-1;;;20978:18:1;;;20971:48;21036:19;;145039:287:0;20647:414:1;145039:287:0;145360:6;145348:8;;:18;;;;;;;:::i;:::-;;;;-1:-1:-1;;145393:10:0;145377:27;;;;:15;:27;;;;;:37;;145408:6;;145377:27;:37;;145408:6;;145377:37;:::i;:::-;;;;-1:-1:-1;145425:31:0;;-1:-1:-1;145437:10:0;145449:6;145425:11;:31::i;147478:229::-;147630:4;-1:-1:-1;;;;;105106:18:0;;105114:10;105106:18;105102:83;;105141:32;105162:10;105141:20;:32::i;:::-;147652:47:::1;147675:4;147681:2;147685:7;147694:4;147652:22;:47::i;:::-;147478:229:::0;;;;;:::o;142497:112::-;128577:13;:11;:13::i;:::-;142573:12:::1;:28:::0;;-1:-1:-1;;;;;;142573:28:0::1;-1:-1:-1::0;;;;;142573:28:0;;;::::1;::::0;;;::::1;::::0;;142497:112::o;146021:678::-;146106:15;;;;;;;146098:54;;;;-1:-1:-1;;;146098:54:0;;21268:2:1;146098:54:0;;;21250:21:1;21307:2;21287:18;;;21280:30;21346:28;21326:18;;;21319:56;21392:18;;146098:54:0;21066:350:1;146098:54:0;146213:9;;146193;146171:19;:17;:19::i;:::-;:38;;;;:::i;:::-;:51;;146163:93;;;;-1:-1:-1;;;146163:93:0;;21623:2:1;146163:93:0;;;21605:21:1;21662:2;21642:18;;;21635:30;21701:31;21681:18;;;21674:59;21750:18;;146163:93:0;21421:353:1;146163:93:0;146267:26;146310:9;-1:-1:-1;;;;;146296:31:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;146296:31:0;;146267:60;;146343:9;146338:255;146358:20;;;146338:255;;;146400:15;146418:9;;146428:1;146418:12;;;;;;;:::i;:::-;;;;;;;146400:30;;146482:1;146460:19;:17;:19::i;:::-;:23;;;;:::i;:::-;146445:9;146455:1;146445:12;;;;;;;;:::i;:::-;;;;;;;;;;;:38;;;;146504:12;;;146554:26;;;:17;:26;;;;;;;;;146498:83;;-1:-1:-1;;;146498:83:0;;146533:10;146498:83;;;21981:51:1;22048:18;;;22041:34;;;22091:18;;;22084:34;;;;-1:-1:-1;;;;;146504:12:0;;146498:34;;21954:18:1;;146498:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;146385:208;146380:3;;;;;:::i;:::-;;;;146338:255;;;-1:-1:-1;146603:41:0;146615:10;146627:9;146603:11;:41::i;:::-;146660:31;146670:9;;146681;146660:31;;;;;;;;:::i;:::-;;;;;;;;146087:612;146021:678;;:::o;142361:128::-;128577:13;:11;:13::i;:::-;142445:16:::1;:36:::0;;-1:-1:-1;;;;;;142445:36:0::1;-1:-1:-1::0;;;;;142445:36:0;;;::::1;::::0;;;::::1;::::0;;142361:128::o;145472:294::-;143460:4;143484:24;;;:14;:24;;;;;;145538:13;;143484:28;145564:123;;145634:7;145654:19;:8;:17;:19::i;:::-;145617:57;;;;;;;;;:::i;:::-;;;;;;;;;;;;;145603:72;;145472:294;;;:::o;145564:123::-;145728:7;145737:19;:8;:17;:19::i;:::-;145711:46;;;;;;;;;:::i;142905:133::-;128577:13;:11;:13::i;:::-;142990:18:::1;:40:::0;;-1:-1:-1;;142990:40:0::1;::::0;::::1;;::::0;;;::::1;::::0;;142905:133::o;142617:80::-;128577:13;:11;:13::i;:::-;142677:4:::1;:12:::0;142617:80::o;143283:112::-;128577:13;:11;:13::i;:::-;143359:12:::1;:28:::0;143283:112::o;60450:188::-;60547:4;60571:23;:21;:23::i;:::-;-1:-1:-1;;;;;60571:49:0;;;;;;;:42;;;;;:49;;;;;;;;:59;;;;;;;;;;-1:-1:-1;60571:59:0;;;;;60450:188::o;143641:160::-;128577:13;:11;:13::i;:::-;143734:15:::1;:34:::0;;;::::1;;;;-1:-1:-1::0;;143734:34:0;;::::1;::::0;;;::::1;::::0;;;143779:5:::1;:14:::0;143641:160::o;141187:926::-;-1:-1:-1;;;;;;;;;;;30562:52:0;;;;;;:160;;-1:-1:-1;;;;;;;;;;;30671:51:0;;;30670:52;30562:160;;;32173:4;32240:17;32285:7;30634:16;30540:265;;;;-1:-1:-1;;;30540:265:0;;25006:2:1;30540:265:0;;;24988:21:1;25045:2;25025:18;;;25018:30;25084:34;25064:18;;;25057:62;25155:25;25135:18;;;25128:53;25198:19;;30540:265:0;24804:419:1;30540:265:0;-1:-1:-1;;;;;;;;;;;30841:52:0;;;;;;30840:53;30904:179;;;;-1:-1:-1;;;;;;;;;;;30939:59:0;;-1:-1:-1;;31013:58:0;;;;;30904:179;99069:19:::1;99092:13:::0;::::1;::::0;::::1;;;99091:14;::::0;99139:34;::::1;;;-1:-1:-1::0;99157:12:0::1;::::0;99172:1:::1;99157:12;::::0;;::::1;:16;99139:34;99138:108;;;-1:-1:-1::0;99218:4:0::1;88730:19:::0;:23;;;99179:66:::1;;-1:-1:-1::0;99228:12:0::1;::::0;::::1;;::::0;:17:::1;99179:66;99116:204;;;::::0;-1:-1:-1;;;99116:204:0;;25430:2:1;99116:204:0::1;::::0;::::1;25412:21:1::0;25469:2;25449:18;;;25442:30;25508:34;25488:18;;;25481:62;-1:-1:-1;;;25559:18:1;;;25552:44;25613:19;;99116:204:0::1;25228:410:1::0;99116:204:0::1;99331:12;:16:::0;;-1:-1:-1;;99331:16:0::1;99346:1;99331:16;::::0;;99358:67;::::1;;;99393:13;:20:::0;;-1:-1:-1;;99393:20:0::1;;;::::0;;99358:67:::1;141334:33:::2;;;;;;;;;;;;;;-1:-1:-1::0;;;141334:33:0::2;;::::0;::::2;;;;;;;;;;;;;-1:-1:-1::0;;;141334:33:0::2;;::::0;:14:::2;:33::i;:::-;141378:16;:14;:16::i;:::-;141405:24;:22;:24::i;:::-;141440:67;:65;:67::i;:::-;141518:62;;;;;;;;;;;;;;;;;:7;::::0;:62:::2;::::0;:7;:62:::2;:::i;:::-;-1:-1:-1::0;141591:16:0::2;:61:::0;;-1:-1:-1;;;;;;141591:61:0;;::::2;141610:42;141591:61;::::0;;;141663:12:::2;:57:::0;;;;::::2;141678:42;141663:57;::::0;;141746:1:::2;141731:12;:16:::0;141758:17:::2;:20;::::0;141781:1:::2;141758:20:::0;:24;141832:1:::2;141809:20:::0;:24;;;141591:61;141858:20;:24;;;141591:16:::2;141907:20:::0;;;;;:24;141969:15:::2;141961:5;:23:::0;142007:4:::2;141995:9;:16:::0;142034:4:::2;142022:9;:16:::0;142049:56:::2;142068:15:::0;142085:19;142049:18:::2;:56::i;:::-;99451:14:::1;99447:102;;;99498:5;99482:21:::0;;-1:-1:-1;;99482:21:0::1;::::0;;99523:14:::1;::::0;-1:-1:-1;27152:36:1;;99523:14:0::1;::::0;27140:2:1;27125:18;99523:14:0::1;;;;;;;99447:102;99058:498;31113:14:::0;31109:107;;;-1:-1:-1;;;;;;;;;;;;;31144:60:0;;-1:-1:-1;;31144:60:0;;;-1:-1:-1;141187:926:0:o;129597:201::-;128577:13;:11;:13::i;:::-;-1:-1:-1;;;;;129686:22:0;::::1;129678:73;;;::::0;-1:-1:-1;;;129678:73:0;;27401:2:1;129678:73:0::1;::::0;::::1;27383:21:1::0;27440:2;27420:18;;;27413:30;27479:34;27459:18;;;27452:62;-1:-1:-1;;;27530:18:1;;;27523:36;27576:19;;129678:73:0::1;27199:402:1::0;129678:73:0::1;129762:28;129781:8;129762:18;:28::i;142215:138::-:0;128577:13;:11;:13::i;:::-;142308:27:::1;::::0;;;:17:::1;:27;::::0;;;;;:37;142215:138::o;122744:248::-;122868:4;-1:-1:-1;;;;;;122892:52:0;;-1:-1:-1;;;122892:52:0;;:92;;-1:-1:-1;;;;;;;;;;120777:51:0;;;122948:36;120668:168;128856:132;128764:6;;-1:-1:-1;;;;;128764:6:0;126809:10;128920:23;128912:68;;;;-1:-1:-1;;;128912:68:0;;27808:2:1;128912:68:0;;;27790:21:1;;;27827:18;;;27820:30;27886:34;27866:18;;;27859:62;27938:18;;128912:68:0;27606:356:1;124150:332:0;123866:5;-1:-1:-1;;;;;124253:33:0;;;;124245:88;;;;-1:-1:-1;;;124245:88:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;124352:22:0;;124344:60;;;;-1:-1:-1;;;124344:60:0;;28580:2:1;124344:60:0;;;28562:21:1;28619:2;28599:18;;;28592:30;28658:27;28638:18;;;28631:55;28703:18;;124344:60:0;28378:349:1;124344:60:0;124439:35;;;;;;;;;-1:-1:-1;;;;;124439:35:0;;;;;;-1:-1:-1;;;;;124439:35:0;;;;;;;;;;-1:-1:-1;;;124417:57:0;;;;:19;:57;124150:332::o;34180:164::-;34125:46;;34180:164::o;60896:330::-;60961:4;61051:23;:21;:23::i;:::-;:37;61041:47;;60998:201;;;;;-1:-1:-1;;;61126:23:0;:21;:23::i;:::-;:50;;;;:41;;;;;:50;;;;;;:68;:73;60978:221;60896:330;-1:-1:-1;;60896:330:0:o;105525:675::-;103475:42;105716:45;:49;105712:481;;106043:67;;-1:-1:-1;;;106043:67:0;;106094:4;106043:67;;;28944:34:1;-1:-1:-1;;;;;29014:15:1;;28994:18;;;28987:43;103475:42:0;;106043;;28879:18:1;;106043:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;106038:144;;106138:28;;-1:-1:-1;;;106138:28:0;;-1:-1:-1;;;;;2322:32:1;;106138:28:0;;;2304:51:1;2277:18;;106138:28:0;2158:203:1;59170:124:0;59259:27;59268:2;59272:7;59281:4;59259:8;:27::i;63251:2969::-;63393:27;63423;63442:7;63423:18;:27::i;:::-;63393:57;;63508:4;-1:-1:-1;;;;;63467:45:0;63483:19;-1:-1:-1;;;;;63467:45:0;;63463:86;;63521:28;;-1:-1:-1;;;63521:28:0;;;;;;;;;;;63463:86;63563:27;63592:23;63619:35;63646:7;63619:26;:35::i;:::-;63562:92;;;;63754:68;63779:15;63796:4;63802:19;126809:10;;126729:98;63802:19;-1:-1:-1;;;;;61794:32:0;;;61638:28;;61923:20;;61945:30;;61920:56;;61335:659;63754:68;63749:180;;63842:43;63859:4;126809:10;60450:188;:::i;63842:43::-;63837:92;;63894:35;;-1:-1:-1;;;63894:35:0;;;;;;;;;;;63837:92;-1:-1:-1;;;;;63946:16:0;;63942:52;;63971:23;;-1:-1:-1;;;63971:23:0;;;;;;;;;;;63942:52;64007:43;64029:4;64035:2;64039:7;64048:1;64007:21;:43::i;:::-;64143:15;64140:160;;;64283:1;64262:19;64255:30;64140:160;64680:23;:21;:23::i;:::-;-1:-1:-1;;;;;64680:48:0;;;;;;:42;;;;;:48;;;;;64678:50;;-1:-1:-1;;64678:50:0;;;64773:23;:21;:23::i;:::-;-1:-1:-1;;;;;64773:46:0;;;;;;:42;;;;;:46;;;;;;64771:48;;;;;;58272:11;58247:23;58243:41;58230:63;-1:-1:-1;;;58230:63:0;65090:23;:21;:23::i;:::-;:50;;;;:41;;;;;:50;;;;;:199;;;;-1:-1:-1;;;65409:47:0;;:52;;65405:699;;65514:1;65504:11;;65637:23;:21;:23::i;:::-;:54;;;;:41;;;;;:54;;;;;;:59;;65633:456;;65799:23;:21;:23::i;:::-;:37;65784:52;;65780:290;;66027:19;65970:23;:21;:23::i;:::-;:54;;;;:41;;;;;:54;;;;;:76;65780:290;65463:641;65405:699;66151:7;66147:2;-1:-1:-1;;;;;66132:27:0;66141:4;-1:-1:-1;;;;;66132:27:0;;;;;;;;;;;66170:42;63382:2838;;;63251:2969;;;:::o;142123:84::-;128577:13;:11;:13::i;109792:992::-;107745:66;110246:59;;;110242:535;;;110322:37;110341:17;110322:18;:37::i;110242:535::-;110425:17;-1:-1:-1;;;;;110396:61:0;;:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;110396:63:0;;;;;;;;-1:-1:-1;;110396:63:0;;;;;;;;;;;;:::i;:::-;;;110392:306;;110626:56;;-1:-1:-1;;;110626:56:0;;29682:2:1;110626:56:0;;;29664:21:1;29721:2;29701:18;;;29694:30;29760:34;29740:18;;;29733:62;-1:-1:-1;;;29811:18:1;;;29804:44;29865:19;;110626:56:0;29480:410:1;110392:306:0;-1:-1:-1;;;;;;;;;;;110510:28:0;;110502:82;;;;-1:-1:-1;;;110502:82:0;;30097:2:1;110502:82:0;;;30079:21:1;30136:2;30116:18;;;30109:30;30175:34;30155:18;;;30148:62;-1:-1:-1;;;30226:18:1;;;30219:39;30275:19;;110502:82:0;29895:405:1;110502:82:0;110460:140;110712:53;110730:17;110749:4;110755:9;110712:17;:53::i;66316:193::-;66462:39;66479:4;66485:2;66489:7;66462:39;;;;;;;;;;;;:16;:39::i;124933:390::-;123866:5;-1:-1:-1;;;;;125085:33:0;;;;125077:88;;;;-1:-1:-1;;;125077:88:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;125184:22:0;;125176:62;;;;-1:-1:-1;;;125176:62:0;;30507:2:1;125176:62:0;;;30489:21:1;30546:2;30526:18;;;30519:30;30585:29;30565:18;;;30558:57;30632:18;;125176:62:0;30305:351:1;125176:62:0;125280:35;;;;;;;;-1:-1:-1;;;;;125280:35:0;;;;;-1:-1:-1;;;;;125280:35:0;;;;;;;;;;-1:-1:-1;125251:26:0;;;:17;:26;;;;;;:64;;;;;;;-1:-1:-1;;;125251:64:0;;;;;;124933:390::o;55529:1784::-;55596:14;55679:23;:21;:23::i;:::-;:50;;;;:41;;;;;:50;;;;;;;-1:-1:-1;;;;55779:24:0;;:29;;55775:1471;;55918:6;55928:1;55918:11;55914:1029;;55969:23;:21;:23::i;:::-;:37;55958:48;;55954:92;;56015:31;;-1:-1:-1;;;56015:31:0;;;;;;;;;;;55954:92;56729:23;:21;:23::i;:::-;-1:-1:-1;;56771:9:0;;;56729:52;;;;:41;;;;;:52;;;;;;;;-1:-1:-1;56835:25:0;;56643:281;56835:25;;55529:1784;;;:::o;55775:1471::-;57274:31;;-1:-1:-1;;;57274:31:0;;;;;;;;;;;129958:191;130051:6;;;-1:-1:-1;;;;;130068:17:0;;;-1:-1:-1;;;;;;130068:17:0;;;;;;;130101:40;;130051:6;;;130068:17;130051:6;;130101:40;;130032:16;;130101:40;130021:128;129958:191;:::o;60035:258::-;60206:8;60130:23;:21;:23::i;:::-;126809:10;60130:63;;;;:42;;;;;:63;;;;;;;;-1:-1:-1;;;;;60130:73:0;;;;;;;;;;;;:84;;-1:-1:-1;;60130:84:0;;;;;;;;;;;60230:55;;565:14:1;;558:22;540:41;;60130:73:0;;126809:10;;60230:55;;513:18:1;60230:55:0;;;;;;;60035:258;;:::o;131676:190::-;131801:4;131854;131825:25;131838:5;131845:4;131825:12;:25::i;:::-;:33;131818:40;;131676:190;;;;;;:::o;70796:3062::-;70869:20;70892:23;:21;:23::i;:::-;:37;;-1:-1:-1;70892:37:0;70944:13;;;70940:44;;70966:18;;-1:-1:-1;;;70966:18:0;;;;;;;;;;;70940:44;70997:61;71027:1;71031:2;71035:12;71049:8;70997:21;:61::i;:::-;71534:32;71522:45;;71472:23;:21;:23::i;:::-;-1:-1:-1;;;;;71472:46:0;;;;;;:42;;;;;:46;;;;;;:95;;;;;;;;;58272:11;58247:23;58243:41;-1:-1:-1;58703:15:0;;58677:24;58673:46;58240:52;58230:63;71810:23;:21;:23::i;:::-;:55;;;;:41;;;;;:55;;;;;:197;;;;-1:-1:-1;;;;;72597:25:0;;;72069:23;;;;71852:12;;72597:25;;72834;71810:55;;72687:335;73348:1;73334:12;73330:20;73288:346;73389:3;73380:7;73377:16;73288:346;;73607:7;73597:8;73594:1;73567:25;73564:1;73561;73556:59;73442:1;73429:15;73288:346;;;73292:77;73667:8;73679:1;73667:13;73663:45;;73689:19;;-1:-1:-1;;;73689:19:0;;;;;;;;;;;73663:45;73765:3;73725:23;:21;:23::i;:::-;:43;-1:-1:-1;73790:60:0;;-1:-1:-1;147112:171:0;67107:407;67282:31;67295:4;67301:2;67305:7;67282:12;:31::i;:::-;-1:-1:-1;;;;;67328:14:0;;;:19;67324:183;;67367:56;67398:4;67404:2;67408:7;67417:5;67367:30;:56::i;:::-;67362:145;;67451:40;;-1:-1:-1;;;67451:40:0;;;;;;;;;;;19981:716;20037:13;20088:14;20105:17;20116:5;20105:10;:17::i;:::-;20125:1;20105:21;20088:38;;20141:20;20175:6;-1:-1:-1;;;;;20164:18:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;20164:18:0;-1:-1:-1;20141:41:0;-1:-1:-1;20306:28:0;;;20322:2;20306:28;20363:288;-1:-1:-1;;20395:5:0;-1:-1:-1;;;20532:2:0;20521:14;;20516:30;20395:5;20503:44;20593:2;20584:11;;;-1:-1:-1;20614:21:0;20363:288;20614:21;-1:-1:-1;20672:6:0;19981:716;-1:-1:-1;;;19981:716:0:o;47049:160::-;-1:-1:-1;;;;;;;;;;;31486:52:0;;;;;;31464:154;;;;-1:-1:-1;;;31464:154:0;;;;;;;:::i;:::-;47161:40:::1;47186:5;47193:7;47161:24;:40::i;128234:97::-:0;101212:13;;;;;;;101204:69;;;;-1:-1:-1;;;101204:69:0;;;;;;;:::i;:::-;128297:26:::1;:24;:26::i;115795:68::-:0;101212:13;;;;;;;101204:69;;;;-1:-1:-1;;;101204:69:0;;;;;;;:::i;106755:173::-;101212:13;;;;;;;101204:69;;;;-1:-1:-1;;;101204:69:0;;;;;;;:::i;:::-;106834:86:::1;243:42;106915:4;106834:51;:86::i;78445:516::-:0;78574:13;78590:16;78598:7;78590;:16::i;:::-;78574:32;;78623:13;78619:219;;;126809:10;-1:-1:-1;;;;;78655:28:0;;;78651:187;;78707:44;78724:5;126809:10;60450:188;:::i;78707:44::-;78702:136;;78783:35;;-1:-1:-1;;;78783:35:0;;;;;;;;;;;78702:136;78907:2;78850:23;:21;:23::i;:::-;:48;;;;:39;;;;;:48;;;;;;:59;;-1:-1:-1;;;;;;78850:59:0;-1:-1:-1;;;;;78850:59:0;;;;;;78925:28;78850:48;;78925:28;;;;;;;;;;78850:48;78925:28;78563:398;78445:516;;;:::o;62107:524::-;62209:27;62238:23;62279:53;62335:23;:21;:23::i;:::-;:48;;;;:39;;:48;;-1:-1:-1;;62335:48:0;;;;62587:26;;62335:48;;62587:26;;-1:-1:-1;62107:524:0:o;145774:239::-;-1:-1:-1;;;;;145940:16:0;;;;:38;;-1:-1:-1;143460:4:0;143484:24;;;:14;:24;;;;;;:28;145940:38;145932:73;;;;-1:-1:-1;;;145932:73:0;;31696:2:1;145932:73:0;;;31678:21:1;31735:2;31715:18;;;31708:30;-1:-1:-1;;;31754:18:1;;;31747:52;31816:18;;145932:73:0;31494:346:1;108623:284:0;-1:-1:-1;;;;;88730:19:0;;;108697:106;;;;-1:-1:-1;;;108697:106:0;;32047:2:1;108697:106:0;;;32029:21:1;32086:2;32066:18;;;32059:30;32125:34;32105:18;;;32098:62;-1:-1:-1;;;32176:18:1;;;32169:43;32229:19;;108697:106:0;31845:409:1;108697:106:0;-1:-1:-1;;;;;;;;;;;108814:85:0;;-1:-1:-1;;;;;;108814:85:0;-1:-1:-1;;;;;108814:85:0;;;;;;;;;;108623:284::o;109316:297::-;109459:29;109470:17;109459:10;:29::i;:::-;109517:1;109503:4;:11;:15;:28;;;;109522:9;109503:28;109499:107;;;109548:46;109570:17;109589:4;109548:21;:46::i;132543:296::-;132626:7;132669:4;132626:7;132684:118;132708:5;:12;132704:1;:16;132684:118;;;132757:33;132767:12;132781:5;132787:1;132781:8;;;;;;;;:::i;:::-;;;;;;;132757:9;:33::i;:::-;132742:48;-1:-1:-1;132722:3:0;;;;:::i;:::-;;;;132684:118;;;-1:-1:-1;132819:12:0;132543:296;-1:-1:-1;;;132543:296:0:o;69598:736::-;69795:99;;-1:-1:-1;;;69795:99:0;;69761:4;;-1:-1:-1;;;;;69795:56:0;;;;;:99;;126809:10;;69873:4;;69879:7;;69888:5;;69795:99;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;69795:99:0;;;;;;;;-1:-1:-1;;69795:99:0;;;;;;;;;;;;:::i;:::-;;;69778:549;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70085:6;:13;70102:1;70085:18;70081:235;;70131:40;;-1:-1:-1;;;70131:40:0;;;;;;;;;;;70081:235;70274:6;70268:13;70259:6;70255:2;70251:15;70244:38;69778:549;-1:-1:-1;;;;;;69950:75:0;-1:-1:-1;;;69950:75:0;;-1:-1:-1;69598:736:0;;;;;;:::o;16847:922::-;16900:7;;-1:-1:-1;;;16978:15:0;;16974:102;;-1:-1:-1;;;17014:15:0;;;-1:-1:-1;17058:2:0;17048:12;16974:102;17103:6;17094:5;:15;17090:102;;17139:6;17130:15;;;-1:-1:-1;17174:2:0;17164:12;17090:102;17219:6;17210:5;:15;17206:102;;17255:6;17246:15;;;-1:-1:-1;17290:2:0;17280:12;17206:102;17335:5;17326;:14;17322:99;;17370:5;17361:14;;;-1:-1:-1;17404:1:0;17394:11;17322:99;17448:5;17439;:14;17435:99;;17483:5;17474:14;;;-1:-1:-1;17517:1:0;17507:11;17435:99;17561:5;17552;:14;17548:99;;17596:5;17587:14;;;-1:-1:-1;17630:1:0;17620:11;17548:99;17674:5;17665;:14;17661:66;;17710:1;17700:11;17755:6;16847:922;-1:-1:-1;;16847:922:0:o;47217:285::-;-1:-1:-1;;;;;;;;;;;31486:52:0;;;;;;31464:154;;;;-1:-1:-1;;;31464:154:0;;;;;;;:::i;:::-;47371:5:::1;47339:23;:21;:23::i;:::-;:29;;::::0;:37:::1;::::0;:29;:37:::1;:::i;:::-;;47421:7;47387:23;:21;:23::i;:::-;:31;;::::0;:41:::1;::::0;:31;:41:::1;:::i;:::-;-1:-1:-1::0;47894:7:0;47439:23:::1;:21;:23::i;:::-;:55:::0;-1:-1:-1;;47217:285:0:o;128339:113::-;101212:13;;;;;;;101204:69;;;;-1:-1:-1;;;101204:69:0;;;;;;;:::i;:::-;128412:32:::1;126809:10:::0;128412:18:::1;:32::i;103636:1111::-:0;101212:13;;;;;;;101204:69;;;;-1:-1:-1;;;101204:69:0;;;;;;;:::i;:::-;103475:42:::1;104072:45;:49:::0;104068:672:::1;;104143:52;::::0;-1:-1:-1;;;104143:52:0;;104189:4:::1;104143:52;::::0;::::1;2304:51:1::0;103475:42:0::1;::::0;104143:37:::1;::::0;2277:18:1;;104143:52:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;104138:591;;104220:9;104216:498;;;104254:92;::::0;-1:-1:-1;;;104254:92:0;;104308:4:::1;104254:92;::::0;::::1;28944:34:1::0;-1:-1:-1;;;;;29014:15:1;;28994:18;;;28987:43;103475:42:0::1;::::0;104254:45:::1;::::0;28879:18:1;;104254:92:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;104216:498;-1:-1:-1::0;;;;;104399:44:0;::::1;::::0;104395:300:::1;;104472:94;::::0;-1:-1:-1;;;104472:94:0;;104528:4:::1;104472:94;::::0;::::1;28944:34:1::0;-1:-1:-1;;;;;29014:15:1;;28994:18;;;28987:43;103475:42:0::1;::::0;104472:47:::1;::::0;28879:18:1;;104472:94:0::1;28732:304:1::0;104395:300:0::1;104623:48;::::0;-1:-1:-1;;;104623:48:0;;104665:4:::1;104623:48;::::0;::::1;2304:51:1::0;103475:42:0::1;::::0;104623:33:::1;::::0;2277:18:1;;104623:48:0::1;2158:203:1::0;109020:155:0;109087:37;109106:17;109087:18;:37::i;:::-;109140:27;;-1:-1:-1;;;;;109140:27:0;;;;;;;;109020:155;:::o;114053:461::-;114136:12;-1:-1:-1;;;;;88730:19:0;;;114161:88;;;;-1:-1:-1;;;114161:88:0;;33209:2:1;114161:88:0;;;33191:21:1;33248:2;33228:18;;;33221:30;33287:34;33267:18;;;33260:62;-1:-1:-1;;;33338:18:1;;;33331:36;33384:19;;114161:88:0;33007:402:1;114161:88:0;114323:12;114337:23;114364:6;-1:-1:-1;;;;;114364:19:0;114384:4;114364:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;114322:67;;;;114407:99;114443:7;114452:10;114407:99;;;;;;;;;;;;;;;;;:35;:99::i;:::-;114400:106;114053:461;-1:-1:-1;;;;;114053:461:0:o;139583:149::-;139646:7;139677:1;139673;:5;:51;;139808:13;139902:15;;;139938:4;139931:15;;;139985:4;139969:21;;139673:51;;;-1:-1:-1;139808:13:0;139902:15;;;139938:4;139931:15;139985:4;139969:21;;;139583:149::o;94845:305::-;94995:12;95024:7;95020:123;;;-1:-1:-1;95055:10:0;95048:17;;95020:123;95098:33;95106:10;95118:12;95319:17;;:21;95315:388;;95551:10;95545:17;95608:15;95595:10;95591:2;95587:19;95580:44;95315:388;95678:12;95671:20;;-1:-1:-1;;;95671:20:0;;;;;;;;:::i;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:173::-;660:20;;-1:-1:-1;;;;;709:31:1;;699:42;;689:70;;755:1;752;745:12;770:179;837:20;;-1:-1:-1;;;;;886:38:1;;876:49;;866:77;;939:1;936;929:12;954:258;1021:6;1029;1082:2;1070:9;1061:7;1057:23;1053:32;1050:52;;;1098:1;1095;1088:12;1050:52;1121:29;1140:9;1121:29;:::i;:::-;1111:39;;1169:37;1202:2;1191:9;1187:18;1169:37;:::i;:::-;1159:47;;954:258;;;;;:::o;1217:250::-;1302:1;1312:113;1326:6;1323:1;1320:13;1312:113;;;1402:11;;;1396:18;1383:11;;;1376:39;1348:2;1341:10;1312:113;;;-1:-1:-1;;1459:1:1;1441:16;;1434:27;1217:250::o;1472:271::-;1514:3;1552:5;1546:12;1579:6;1574:3;1567:19;1595:76;1664:6;1657:4;1652:3;1648:14;1641:4;1634:5;1630:16;1595:76;:::i;:::-;1725:2;1704:15;-1:-1:-1;;1700:29:1;1691:39;;;;1732:4;1687:50;;1472:271;-1:-1:-1;;1472:271:1:o;1748:220::-;1897:2;1886:9;1879:21;1860:4;1917:45;1958:2;1947:9;1943:18;1935:6;1917:45;:::i;1973:180::-;2032:6;2085:2;2073:9;2064:7;2060:23;2056:32;2053:52;;;2101:1;2098;2091:12;2053:52;-1:-1:-1;2124:23:1;;1973:180;-1:-1:-1;1973:180:1:o;2366:254::-;2434:6;2442;2495:2;2483:9;2474:7;2470:23;2466:32;2463:52;;;2511:1;2508;2501:12;2463:52;2534:29;2553:9;2534:29;:::i;:::-;2524:39;2610:2;2595:18;;;;2582:32;;-1:-1:-1;;;2366:254:1:o;2807:118::-;2893:5;2886:13;2879:21;2872:5;2869:32;2859:60;;2915:1;2912;2905:12;2930:241;2986:6;3039:2;3027:9;3018:7;3014:23;3010:32;3007:52;;;3055:1;3052;3045:12;3007:52;3094:9;3081:23;3113:28;3135:5;3113:28;:::i;3176:328::-;3253:6;3261;3269;3322:2;3310:9;3301:7;3297:23;3293:32;3290:52;;;3338:1;3335;3328:12;3290:52;3361:29;3380:9;3361:29;:::i;:::-;3351:39;;3409:38;3443:2;3432:9;3428:18;3409:38;:::i;:::-;3399:48;;3494:2;3483:9;3479:18;3466:32;3456:42;;3176:328;;;;;:::o;3509:248::-;3577:6;3585;3638:2;3626:9;3617:7;3613:23;3609:32;3606:52;;;3654:1;3651;3644:12;3606:52;-1:-1:-1;;3677:23:1;;;3747:2;3732:18;;;3719:32;;-1:-1:-1;3509:248:1:o;4041:186::-;4100:6;4153:2;4141:9;4132:7;4128:23;4124:32;4121:52;;;4169:1;4166;4159:12;4121:52;4192:29;4211:9;4192:29;:::i;4232:127::-;4293:10;4288:3;4284:20;4281:1;4274:31;4324:4;4321:1;4314:15;4348:4;4345:1;4338:15;4364:257;4436:4;4430:11;;;4468:17;;-1:-1:-1;;;;;4500:34:1;;4536:22;;;4497:62;4494:88;;;4562:18;;:::i;:::-;4598:4;4591:24;4364:257;:::o;4626:275::-;4697:2;4691:9;4762:2;4743:13;;-1:-1:-1;;4739:27:1;4727:40;;-1:-1:-1;;;;;4782:34:1;;4818:22;;;4779:62;4776:88;;;4844:18;;:::i;:::-;4880:2;4873:22;4626:275;;-1:-1:-1;4626:275:1:o;4906:530::-;4948:5;5001:3;4994:4;4986:6;4982:17;4978:27;4968:55;;5019:1;5016;5009:12;4968:55;5055:6;5042:20;-1:-1:-1;;;;;5077:2:1;5074:26;5071:52;;;5103:18;;:::i;:::-;5147:55;5190:2;5171:13;;-1:-1:-1;;5167:27:1;5196:4;5163:38;5147:55;:::i;:::-;5227:2;5218:7;5211:19;5273:3;5266:4;5261:2;5253:6;5249:15;5245:26;5242:35;5239:55;;;5290:1;5287;5280:12;5239:55;5355:2;5348:4;5340:6;5336:17;5329:4;5320:7;5316:18;5303:55;5403:1;5378:16;;;5396:4;5374:27;5367:38;;;;5382:7;4906:530;-1:-1:-1;;;4906:530:1:o;5441:394::-;5518:6;5526;5579:2;5567:9;5558:7;5554:23;5550:32;5547:52;;;5595:1;5592;5585:12;5547:52;5618:29;5637:9;5618:29;:::i;:::-;5608:39;;5698:2;5687:9;5683:18;5670:32;-1:-1:-1;;;;;5717:6:1;5714:30;5711:50;;;5757:1;5754;5747:12;5711:50;5780:49;5821:7;5812:6;5801:9;5797:22;5780:49;:::i;:::-;5770:59;;;5441:394;;;;;:::o;6022:592::-;6093:6;6101;6154:2;6142:9;6133:7;6129:23;6125:32;6122:52;;;6170:1;6167;6160:12;6122:52;6210:9;6197:23;-1:-1:-1;;;;;6280:2:1;6272:6;6269:14;6266:34;;;6296:1;6293;6286:12;6266:34;6334:6;6323:9;6319:22;6309:32;;6379:7;6372:4;6368:2;6364:13;6360:27;6350:55;;6401:1;6398;6391:12;6350:55;6441:2;6428:16;6467:2;6459:6;6456:14;6453:34;;;6483:1;6480;6473:12;6453:34;6528:7;6523:2;6514:6;6510:2;6506:15;6502:24;6499:37;6496:57;;;6549:1;6546;6539:12;6496:57;6580:2;6572:11;;;;;6602:6;;-1:-1:-1;6022:592:1;;-1:-1:-1;;;;6022:592:1:o;6619:326::-;6695:6;6703;6711;6764:2;6752:9;6743:7;6739:23;6735:32;6732:52;;;6780:1;6777;6770:12;6732:52;6816:9;6803:23;6793:33;;6845:38;6879:2;6868:9;6864:18;6845:38;:::i;:::-;6835:48;;6902:37;6935:2;6924:9;6920:18;6902:37;:::i;:::-;6892:47;;6619:326;;;;;:::o;6950:367::-;7013:8;7023:6;7077:3;7070:4;7062:6;7058:17;7054:27;7044:55;;7095:1;7092;7085:12;7044:55;-1:-1:-1;7118:20:1;;-1:-1:-1;;;;;7150:30:1;;7147:50;;;7193:1;7190;7183:12;7147:50;7230:4;7222:6;7218:17;7206:29;;7290:3;7283:4;7273:6;7270:1;7266:14;7258:6;7254:27;7250:38;7247:47;7244:67;;;7307:1;7304;7297:12;7322:566;7414:6;7422;7430;7483:2;7471:9;7462:7;7458:23;7454:32;7451:52;;;7499:1;7496;7489:12;7451:52;7539:9;7526:23;-1:-1:-1;;;;;7564:6:1;7561:30;7558:50;;;7604:1;7601;7594:12;7558:50;7643:70;7705:7;7696:6;7685:9;7681:22;7643:70;:::i;:::-;7732:8;;-1:-1:-1;7617:96:1;-1:-1:-1;;7817:2:1;7802:18;;7789:32;7830:28;7789:32;7830:28;:::i;:::-;7877:5;7867:15;;;7322:566;;;;;:::o;7893:315::-;7958:6;7966;8019:2;8007:9;7998:7;7994:23;7990:32;7987:52;;;8035:1;8032;8025:12;7987:52;8058:29;8077:9;8058:29;:::i;:::-;8048:39;;8137:2;8126:9;8122:18;8109:32;8150:28;8172:5;8150:28;:::i;:::-;8197:5;8187:15;;;7893:315;;;;;:::o;8213:183::-;8273:4;-1:-1:-1;;;;;8298:6:1;8295:30;8292:56;;;8328:18;;:::i;:::-;-1:-1:-1;8373:1:1;8369:14;8385:4;8365:25;;8213:183::o;8401:891::-;8485:6;8516:2;8559;8547:9;8538:7;8534:23;8530:32;8527:52;;;8575:1;8572;8565:12;8527:52;8615:9;8602:23;-1:-1:-1;;;;;8640:6:1;8637:30;8634:50;;;8680:1;8677;8670:12;8634:50;8703:22;;8756:4;8748:13;;8744:27;-1:-1:-1;8734:55:1;;8785:1;8782;8775:12;8734:55;8821:2;8808:16;8844:60;8860:43;8900:2;8860:43;:::i;:::-;8844:60;:::i;:::-;8938:15;;;9020:1;9016:10;;;;9008:19;;9004:28;;;8969:12;;;;9044:19;;;9041:39;;;9076:1;9073;9066:12;9041:39;9100:11;;;;9120:142;9136:6;9131:3;9128:15;9120:142;;;9202:17;;9190:30;;9153:12;;;;9240;;;;9120:142;;;9281:5;8401:891;-1:-1:-1;;;;;;;8401:891:1:o;9297:537::-;9392:6;9400;9408;9416;9469:3;9457:9;9448:7;9444:23;9440:33;9437:53;;;9486:1;9483;9476:12;9437:53;9509:29;9528:9;9509:29;:::i;:::-;9499:39;;9557:38;9591:2;9580:9;9576:18;9557:38;:::i;:::-;9547:48;;9642:2;9631:9;9627:18;9614:32;9604:42;;9697:2;9686:9;9682:18;9669:32;-1:-1:-1;;;;;9716:6:1;9713:30;9710:50;;;9756:1;9753;9746:12;9710:50;9779:49;9820:7;9811:6;9800:9;9796:22;9779:49;:::i;:::-;9769:59;;;9297:537;;;;;;;:::o;9839:437::-;9925:6;9933;9986:2;9974:9;9965:7;9961:23;9957:32;9954:52;;;10002:1;9999;9992:12;9954:52;10042:9;10029:23;-1:-1:-1;;;;;10067:6:1;10064:30;10061:50;;;10107:1;10104;10097:12;10061:50;10146:70;10208:7;10199:6;10188:9;10184:22;10146:70;:::i;:::-;10235:8;;10120:96;;-1:-1:-1;9839:437:1;-1:-1:-1;;;;9839:437:1:o;10466:260::-;10534:6;10542;10595:2;10583:9;10574:7;10570:23;10566:32;10563:52;;;10611:1;10608;10601:12;10563:52;10634:29;10653:9;10634:29;:::i;:::-;10624:39;;10682:38;10716:2;10705:9;10701:18;10682:38;:::i;10731:309::-;10796:6;10804;10857:2;10845:9;10836:7;10832:23;10828:32;10825:52;;;10873:1;10870;10863:12;10825:52;10912:9;10899:23;10931:28;10953:5;10931:28;:::i;11045:380::-;11124:1;11120:12;;;;11167;;;11188:61;;11242:4;11234:6;11230:17;11220:27;;11188:61;11295:2;11287:6;11284:14;11264:18;11261:38;11258:161;;11341:10;11336:3;11332:20;11329:1;11322:31;11376:4;11373:1;11366:15;11404:4;11401:1;11394:15;11258:161;;11045:380;;;:::o;11430:127::-;11491:10;11486:3;11482:20;11479:1;11472:31;11522:4;11519:1;11512:15;11546:4;11543:1;11536:15;11562:168;11635:9;;;11666;;11683:15;;;11677:22;;11663:37;11653:71;;11704:18;;:::i;11735:127::-;11796:10;11791:3;11787:20;11784:1;11777:31;11827:4;11824:1;11817:15;11851:4;11848:1;11841:15;11867:120;11907:1;11933;11923:35;;11938:18;;:::i;:::-;-1:-1:-1;11972:9:1;;11867:120::o;11992:408::-;12194:2;12176:21;;;12233:2;12213:18;;;12206:30;12272:34;12267:2;12252:18;;12245:62;-1:-1:-1;;;12338:2:1;12323:18;;12316:42;12390:3;12375:19;;11992:408::o;12405:::-;12607:2;12589:21;;;12646:2;12626:18;;;12619:30;12685:34;12680:2;12665:18;;12658:62;-1:-1:-1;;;12751:2:1;12736:18;;12729:42;12803:3;12788:19;;12405:408::o;13928:545::-;14030:2;14025:3;14022:11;14019:448;;;14066:1;14091:5;14087:2;14080:17;14136:4;14132:2;14122:19;14206:2;14194:10;14190:19;14187:1;14183:27;14177:4;14173:38;14242:4;14230:10;14227:20;14224:47;;;-1:-1:-1;14265:4:1;14224:47;14320:2;14315:3;14311:12;14308:1;14304:20;14298:4;14294:31;14284:41;;14375:82;14393:2;14386:5;14383:13;14375:82;;;14438:17;;;14419:1;14408:13;14375:82;;14649:1206;-1:-1:-1;;;;;14768:3:1;14765:27;14762:53;;;14795:18;;:::i;:::-;14824:94;14914:3;14874:38;14906:4;14900:11;14874:38;:::i;:::-;14868:4;14824:94;:::i;:::-;14944:1;14969:2;14964:3;14961:11;14986:1;14981:616;;;;15641:1;15658:3;15655:93;;;-1:-1:-1;15714:19:1;;;15701:33;15655:93;-1:-1:-1;;14606:1:1;14602:11;;;14598:24;14594:29;14584:40;14630:1;14626:11;;;14581:57;15761:78;;14954:895;;14981:616;13875:1;13868:14;;;13912:4;13899:18;;-1:-1:-1;;15017:17:1;;;15118:9;15140:229;15154:7;15151:1;15148:14;15140:229;;;15243:19;;;15230:33;15215:49;;15350:4;15335:20;;;;15303:1;15291:14;;;;15170:12;15140:229;;;15144:3;15397;15388:7;15385:16;15382:159;;;15521:1;15517:6;15511:3;15505;15502:1;15498:11;15494:21;15490:34;15486:39;15473:9;15468:3;15464:19;15451:33;15447:79;15439:6;15432:95;15382:159;;;15584:1;15578:3;15575:1;15571:11;15567:19;15561:4;15554:33;14954:895;;14649:1206;;;:::o;15860:127::-;15921:10;15916:3;15912:20;15909:1;15902:31;15952:4;15949:1;15942:15;15976:4;15973:1;15966:15;17053:135;17092:3;17113:17;;;17110:43;;17133:18;;:::i;:::-;-1:-1:-1;17180:1:1;17169:13;;17053:135::o;17543:112::-;17575:1;17601;17591:35;;17606:18;;:::i;:::-;-1:-1:-1;17640:9:1;;17543:112::o;18018:125::-;18083:9;;;18104:10;;;18101:36;;;18117:18;;:::i;19260:1195::-;19353:6;19384:2;19427;19415:9;19406:7;19402:23;19398:32;19395:52;;;19443:1;19440;19433:12;19395:52;19476:9;19470:16;-1:-1:-1;;;;;19546:2:1;19538:6;19535:14;19532:34;;;19562:1;19559;19552:12;19532:34;19585:22;;;;19641:4;19623:16;;;19619:27;19616:47;;;19659:1;19656;19649:12;19616:47;19685:22;;:::i;:::-;19738:2;19732:9;19766:2;19756:8;19753:16;19750:36;;;19782:1;19779;19772:12;19750:36;19805:17;;;-1:-1:-1;19853:4:1;19845:13;;19841:27;-1:-1:-1;19831:55:1;;19882:1;19879;19872:12;19831:55;19911:2;19905:9;19934:60;19950:43;19990:2;19950:43;:::i;19934:60::-;20028:15;;;20110:1;20106:10;;;;20098:19;;20094:28;;;20059:12;;;;20134:19;;;20131:39;;;20166:1;20163;20156:12;20131:39;20190:11;;;;20210:135;20226:6;20221:3;20218:15;20210:135;;;20292:10;;20280:23;;20243:12;;;;20323;;;;20210:135;;;20354:20;;-1:-1:-1;;20412:11:1;;;20406:18;20390:14;;;20383:42;;;;20361:5;19260:1195;-1:-1:-1;;;;19260:1195:1:o;22129:1008::-;22396:2;22378:21;;;22415:18;;22408:34;;;-1:-1:-1;;;;;;22454:31:1;;22451:51;;;22498:1;22495;22488:12;22451:51;22532:6;22529:1;22525:14;22589:6;22581;22576:2;22565:9;22561:18;22548:48;22665:2;22615:22;;;22731:18;;;22727:27;;22687:4;22707:18;;;22700:55;;;;22803:13;;22657:11;;;22825:21;;;22897:15;;;;22930:1;;22870:3;22862:12;;22940:171;22954:8;22951:1;22948:15;22940:171;;;23017:13;;23005:26;;23086:15;;;;22978:1;22971:9;;;;;23051:12;;;;22940:171;;;-1:-1:-1;23128:3:1;22129:1008;-1:-1:-1;;;;;;;;22129:1008:1:o;23142:722::-;23192:3;23233:5;23227:12;23262:36;23288:9;23262:36;:::i;:::-;23317:1;23334:18;;;23361:133;;;;23508:1;23503:355;;;;23327:531;;23361:133;-1:-1:-1;;23394:24:1;;23382:37;;23467:14;;23460:22;23448:35;;23439:45;;;-1:-1:-1;23361:133:1;;23503:355;23534:5;23531:1;23524:16;23563:4;23608:2;23605:1;23595:16;23633:1;23647:165;23661:6;23658:1;23655:13;23647:165;;;23739:14;;23726:11;;;23719:35;23782:16;;;;23676:10;;23647:165;;;23651:3;;;23841:6;23836:3;23832:16;23825:23;;23327:531;;;;;23142:722;;;;:::o;23869:536::-;24146:3;24174:38;24208:3;24200:6;24174:38;:::i;:::-;-1:-1:-1;;;24228:2:1;24221:21;24271:6;24265:13;24287:73;24353:6;24349:1;24345:2;24341:10;24334:4;24326:6;24322:17;24287:73;:::i;:::-;24380:15;24397:1;24376:23;;23869:536;-1:-1:-1;;;;23869:536:1:o;24410:389::-;24586:3;24614:38;24648:3;24640:6;24614:38;:::i;:::-;24681:6;24675:13;24697:65;24755:6;24751:2;24744:4;24736:6;24732:17;24697:65;:::i;:::-;24778:15;;24410:389;-1:-1:-1;;;;24410:389:1:o;25643:1352::-;25769:3;25763:10;-1:-1:-1;;;;;25788:6:1;25785:30;25782:56;;;25818:18;;:::i;:::-;25847:97;25937:6;25897:38;25929:4;25923:11;25897:38;:::i;:::-;25891:4;25847:97;:::i;:::-;25999:4;;26063:2;26052:14;;26080:1;26075:663;;;;26782:1;26799:6;26796:89;;;-1:-1:-1;26851:19:1;;;26845:26;26796:89;-1:-1:-1;;14606:1:1;14602:11;;;14598:24;14594:29;14584:40;14630:1;14626:11;;;14581:57;26898:81;;26045:944;;26075:663;13875:1;13868:14;;;13912:4;13899:18;;-1:-1:-1;;26111:20:1;;;26229:236;26243:7;26240:1;26237:14;26229:236;;;26332:19;;;26326:26;26311:42;;26424:27;;;;26392:1;26380:14;;;;26259:19;;26229:236;;;26233:3;26493:6;26484:7;26481:19;26478:201;;;26554:19;;;26548:26;-1:-1:-1;;26637:1:1;26633:14;;;26649:3;26629:24;26625:37;26621:42;26606:58;26591:74;;26478:201;-1:-1:-1;;;;;26725:1:1;26709:14;;;26705:22;26692:36;;-1:-1:-1;25643:1352:1:o;27967:406::-;28169:2;28151:21;;;28208:2;28188:18;;;28181:30;28247:34;28242:2;28227:18;;28220:62;-1:-1:-1;;;28313:2:1;28298:18;;28291:40;28363:3;28348:19;;27967:406::o;29041:245::-;29108:6;29161:2;29149:9;29140:7;29136:23;29132:32;29129:52;;;29177:1;29174;29167:12;29129:52;29209:9;29203:16;29228:28;29250:5;29228:28;:::i;29291:184::-;29361:6;29414:2;29402:9;29393:7;29389:23;29385:32;29382:52;;;29430:1;29427;29420:12;29382:52;-1:-1:-1;29453:16:1;;29291:184;-1:-1:-1;29291:184:1:o;30661:416::-;30863:2;30845:21;;;30902:2;30882:18;;;30875:30;30941:34;30936:2;30921:18;;30914:62;-1:-1:-1;;;31007:2:1;30992:18;;30985:50;31067:3;31052:19;;30661:416::o;31082:407::-;31284:2;31266:21;;;31323:2;31303:18;;;31296:30;31362:34;31357:2;31342:18;;31335:62;-1:-1:-1;;;31428:2:1;31413:18;;31406:41;31479:3;31464:19;;31082:407::o;32259:489::-;-1:-1:-1;;;;;32528:15:1;;;32510:34;;32580:15;;32575:2;32560:18;;32553:43;32627:2;32612:18;;32605:34;;;32675:3;32670:2;32655:18;;32648:31;;;32453:4;;32696:46;;32722:19;;32714:6;32696:46;:::i;:::-;32688:54;32259:489;-1:-1:-1;;;;;;32259:489:1:o;32753:249::-;32822:6;32875:2;32863:9;32854:7;32850:23;32846:32;32843:52;;;32891:1;32888;32881:12;32843:52;32923:9;32917:16;32942:30;32966:5;32942:30;:::i;33414:287::-;33543:3;33581:6;33575:13;33597:66;33656:6;33651:3;33644:4;33636:6;33632:17;33597:66;:::i;:::-;33679:16;;;;;33414:287;-1:-1:-1;;33414:287:1:o
Swarm Source
ipfs://0648c1ce4e6a2cebb92f9e47a7de0c59f2d7228574e66e1b9bc49c31ce46c678
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 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.