ERC-721
Overview
Max Total Supply
150 Runestone
Holders
11
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
10 RunestoneLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
EthrunesNFT
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-03-27 */ // SPDX-License-Identifier: MIT // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File @openzeppelin/contracts/interfaces/[email protected] // 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 IERC2981 is IERC165 { /** * @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 @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File @openzeppelin/contracts/token/common/[email protected] // 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 ERC2981 is IERC2981, ERC165 { 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(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ 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]; } } // File @openzeppelin/contracts/token/ERC1155/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; } // File @openzeppelin/contracts/token/ERC1155/[email protected] // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); } // File @openzeppelin/contracts/token/ERC1155/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC1155/utils/ERC1155Receiver.sol) pragma solidity ^0.8.0; /** * @dev _Available since v3.1._ */ abstract contract ERC1155Receiver is ERC165, IERC1155Receiver { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId); } } // File @openzeppelin/contracts/utils/math/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File @openzeppelin/contracts/security/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File contracts/IEthrunes.sol pragma solidity ^0.8.17; interface IEthrunes is IERC1155 { function transfer( address to, uint256 id, uint256 amount, bytes memory data ) external payable; function batchTransfer( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) external payable; function deploy2( string calldata tick, uint8 decimals, uint256 supply, address to ) external payable; function tokens(uint160 _id) external view returns( uint160 id, uint8 decimals, uint256 supply, uint256 limit, string memory tick ); function totalSupply(uint256 id) external view returns (uint256); } // File contracts/lib/ArrayQueue.sol pragma solidity ^0.8.17; library ArrayQueue { struct Queue { uint256 begin; uint256[] data; } function pushBack(Queue storage queue, uint256[] memory values) internal { for(uint256 i = 0; i < values.length; i++) { queue.data.push(values[i]); } } function empty(Queue storage queue) internal view returns (bool) { return queue.begin == queue.data.length; } function length(Queue storage queue) internal view returns (uint256) { return queue.data.length - queue.begin; } function clear(Queue storage queue) internal { delete queue.data; queue.begin = 0; } function dequeue(Queue storage queue, uint256 size) internal returns (uint256[] memory values) { if (size == 0) return values; if (empty(queue)) return values; if (length(queue) > size) { values = new uint256[](size); for(uint256 i = 0; i < size; i++) { values[i] = queue.data[queue.begin + i]; } queue.begin = queue.begin + size; } else { size = length(queue); values = new uint256[](size); for(uint256 i = 0; i < size; i++) { values[i] = queue.data[queue.begin + i]; } clear(queue); } } } // File erc721a/contracts/[email protected] // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * 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/contracts/[email protected] // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { 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 ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // 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; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _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) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _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 _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 _currentIndex - _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 _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _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 _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_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 (_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(_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 = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _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 _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _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(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // 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, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } 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. * 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) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @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 _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 { _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 _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 < _currentIndex && // If within bounds, _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) { TokenApprovalRef storage tokenApproval = _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. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _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 (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _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__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(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 = _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`. _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`. _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(); _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 = _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`. _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`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _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 = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // 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;`. _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`. _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 (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _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 { _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 = _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); _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 erc721a/contracts/extensions/[email protected] // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721AQueryable. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); } // File erc721a/contracts/extensions/[email protected] // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @title ERC721AQueryable. * * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } } // File contracts/EthrunesNFT.sol pragma solidity ^0.8.17; contract EthrunesNFT is Ownable, ERC2981, ERC721AQueryable, ERC1155Receiver, ReentrancyGuard { using ArrayQueue for ArrayQueue.Queue; error InvalidSender(); error InvalidRuneId(); error EmptyTokens(); error NotSupportBatchReceivedCallback(); error ExceedMaxSupply(); // The queue of ERC-721 token ids stored in the contract. ArrayQueue.Queue private queue; uint256 public constant MAX_SUPPLY = 10000; uint256 public constant SWAP_RATIO = 1e18; uint160 public runeId; address public ethrunes; address public launchswap; string private imageBaseURI = "ipfs://QmNSuTaRTpRjB14yRyaiDqrBVu8HngAp36qsf7R7gnsQfQ/"; string[] private runes = [ unicode"ᚠ", unicode"ᚢ", unicode"ᚦ", unicode"ᚨ", unicode"ᚱ", unicode"ᚲ", unicode"ᚷ", unicode"ᚹ", unicode"ᚺ", unicode"ᚾ", unicode"ᛁ", unicode"ᛃ", unicode"ᛇ", unicode"ᛈ", unicode"ᛉ", unicode"ᛋ", unicode"ᛏ", unicode"ᛒ", unicode"ᛖ", unicode"ᛗ", unicode"ᛚ", unicode"ᛜ", unicode"ᛞ", unicode"ᛟ" ]; string[] private materials = [ "Amethyst", "Jade", "Aquamarine", "Topaz", "Ruby", "Spinel", "Citrine", "Turquoise" ]; constructor(address _ethrunes, uint160 _runeId, address _launchswap) ERC721A("Ethereum Runestone", "Runestone") { ethrunes = _ethrunes; runeId = _runeId; launchswap = _launchswap; } function setImageBaseURI(string memory uri) external onlyOwner { imageBaseURI = uri; } function setRoyalty(address royaltyReceiver, uint96 feeNumerator) external onlyOwner { _setDefaultRoyalty(royaltyReceiver, feeNumerator); } function _startTokenId() internal view override returns (uint256) { return 1; } function _mintInternal(address to, uint256 count) internal { if(totalSupply() + count > MAX_SUPPLY) revert ExceedMaxSupply(); _mint(to, count); } function batchTransfer(address to, uint256[] memory tokenIds) public { for(uint256 i = 0; i < tokenIds.length; i++){ transferFrom(msg.sender, to, tokenIds[i]); } } function convert(uint256[] calldata tokenIds) external nonReentrant { if(tokenIds.length == 0) revert EmptyTokens(); batchTransfer(address(this), tokenIds); queue.pushBack(tokenIds); uint256 amount = tokenIds.length * SWAP_RATIO; IEthrunes(ethrunes).transfer(msg.sender, runeId, amount, ""); } function sellToLaunchSwap(uint256[] calldata tokenIds, uint256 amountOutMin) external nonReentrant { if(tokenIds.length == 0) revert EmptyTokens(); batchTransfer(address(this), tokenIds); queue.pushBack(tokenIds); uint256 amount = tokenIds.length * SWAP_RATIO; bytes memory data = abi.encodePacked(uint8(1), abi.encode(msg.sender, amountOutMin, block.timestamp)); IEthrunes(ethrunes).transfer(launchswap, runeId, amount, data); } function _transferOrMint(address recipient, uint256 quantity) internal { if(quantity == 0) return; uint256[] memory tokenIds = queue.dequeue(quantity); if(tokenIds.length < quantity) { this.batchTransfer(recipient, tokenIds); _mintInternal(recipient, quantity - tokenIds.length); } else { this.batchTransfer(recipient, tokenIds); } } // convert erc1155 to erc721 function onERC1155Received( address, address, uint256 id, uint256 amount, bytes calldata data ) public nonReentrant override returns (bytes4) { if(id != runeId) revert InvalidRuneId(); if(msg.sender != ethrunes) revert InvalidSender(); address recipient; assembly { recipient := calldataload(data.offset) } uint256 quantity = amount / SWAP_RATIO; uint256 refund = amount - quantity * SWAP_RATIO; if(quantity > 0) { _transferOrMint(recipient, quantity); } if(refund > 0) { IEthrunes(ethrunes).safeTransferFrom(address(this), recipient, runeId, refund, ""); } return this.onERC1155Received.selector; } function onERC1155BatchReceived( address, address, uint256[] calldata, uint256[] calldata, bytes calldata ) public override returns (bytes4) { revert NotSupportBatchReceivedCallback(); } function supportsInterface(bytes4 interfaceId) public view override(ERC1155Receiver, IERC721A, ERC721A, ERC2981) returns (bool){ return ERC1155Receiver.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } function compileURI(uint256 tokenId) internal view returns (string memory) { uint256 hash = uint256(keccak256(abi.encodePacked("ethrunes:", tokenId))); uint8 runeSeed = uint8(hash >> 248); uint8 _runeId = runeSeed % 24 + 1; uint8 stoneSeed = uint8(hash & 0xff); uint8 _stoneId; if(stoneSeed < 5) { _stoneId = 1; } else if(stoneSeed < 15) { _stoneId = 2; } else if(stoneSeed < 35) { _stoneId = 3; } else if(stoneSeed < 65) { _stoneId = 4; } else if(stoneSeed < 105) { _stoneId = 5; } else if(stoneSeed < 155) { _stoneId = 6; } else if(stoneSeed < 215) { _stoneId = 7; } else { _stoneId = 8; } bytes memory traits = abi.encodePacked( '[{"trait_type":"Rune",', '"value":"', runes[_runeId - 1], '"},{"trait_type":"Material",', '"value":"', materials[_stoneId - 1], '"}]' ); string memory imageHash = Strings.toHexString(uint256(keccak256(abi.encodePacked(_stoneId, _runeId))), 32); bytes memory metadata = abi.encodePacked( '{"name":"Runestone #', Strings.toString(tokenId), '","description":"10,000 Runestones on Ethereum enabled by Ethrunes","image":"', imageBaseURI, imageHash, '.png","attributes":', traits, '}' ); return string(abi.encodePacked( "data:application/json;utf8,", metadata )); } function tokenURI(uint256 tokenId) public view override(ERC721A, IERC721A) returns (string memory) { return compileURI(tokenId); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_ethrunes","type":"address"},{"internalType":"uint160","name":"_runeId","type":"uint160"},{"internalType":"address","name":"_launchswap","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"EmptyTokens","type":"error"},{"inputs":[],"name":"ExceedMaxSupply","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"InvalidRuneId","type":"error"},{"inputs":[],"name":"InvalidSender","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotSupportBatchReceivedCallback","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":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":"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":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"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SWAP_RATIO","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"batchTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"convert","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ethrunes","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launchswap","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":[],"name":"runeId","outputs":[{"internalType":"uint160","name":"","type":"uint160"}],"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":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"}],"name":"sellToLaunchSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setImageBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"royaltyReceiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setRoyalty","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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"}]
Contract Creation Code
60e06040526036608081815290620038a660a039601190620000229082620006ff565b5060408051610340810182526003610300820181815262070cd560ed1b6103208401528252825180840184528181526270cd5160e91b60208281019190915280840191909152835180850185528281526270cd5360e91b818301528385015283518085018552828152621c335560eb1b8183015260608401528351808501855282815262e19ab160e81b818301526080840152835180850185528281526270cd5960e91b8183015260a08401528351808501855282815262e19ab760e81b8183015260c08401528351808501855282815262e19ab960e81b8183015260e0840152835180850185528281526270cd5d60e91b81830152610100840152835180850185528281526270cd5f60e91b818301526101208401528351808501855282815262e19b8160e81b818301526101408401528351808501855282815262e19b8360e81b818301526101608401528351808501855282815262e19b8760e81b8183015261018084015283518085018552828152621c337160eb1b818301526101a08401528351808501855282815262e19b8960e81b818301526101c08401528351808501855282815262e19b8b60e81b818301526101e08401528351808501855282815262e19b8f60e81b81830152610200840152835180850185528281526270cdc960e91b81830152610220840152835180850185528281526270cdcb60e91b818301526102408401528351808501855282815262e19b9760e81b81830152610260840152835180850185528281526270cdcd60e91b8183015261028084015283518085018552828152623866e760ea1b818301526102a0840152835180850185528281526270cdcf60e91b818301526102c0840152835180850190945290835262e19b9f60e81b908301526102e0810191909152620002c790601290601862000538565b5060408051610140810182526008610100820181815267105b595d1a1e5cdd60c21b6101208401528252825180840184526004808252634a61646560e01b6020838101919091528085019290925284518086018652600a815269417175616d6172696e6560b01b81840152848601528451808601865260058152642a37b830bd60d91b81840152606085015284518086018652908152635275627960e01b81830152608084015283518085018552600681526514dc1a5b995b60d21b8183015260a084015283518085018552600781526643697472696e6560c81b8183015260c08401528351808501909452600984526854757271756f69736560b81b9084015260e0820192909252620003df916013919062000595565b50348015620003ed57600080fd5b50604051620038dc380380620038dc8339810160408190526200041091620007e1565b60405180604001604052806012815260200171457468657265756d2052756e6573746f6e6560701b8152506040518060400160405280600981526020016852756e6573746f6e6560b81b8152506200047762000471620004e460201b60201c565b620004e8565b6005620004858382620006ff565b506006620004948282620006ff565b50600160035550506001600b55600f80546001600160a01b039485166001600160a01b031991821617909155600e8054938516938216939093179092556010805491909316911617905562000835565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805482825590600052602060002090810192821562000583579160200282015b82811115620005835782518290620005729082620006ff565b509160200191906001019062000559565b5062000591929150620005e0565b5090565b82805482825590600052602060002090810192821562000583579160200282015b82811115620005835782518290620005cf9082620006ff565b5091602001919060010190620005b6565b8082111562000591576000620005f7828262000601565b50600101620005e0565b5080546200060f9062000670565b6000825580601f1062000620575050565b601f01602090049060005260206000209081019062000640919062000643565b50565b5b8082111562000591576000815560010162000644565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200068557607f821691505b602082108103620006a657634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620006fa57600081815260208120601f850160051c81016020861015620006d55750805b601f850160051c820191505b81811015620006f657828155600101620006e1565b5050505b505050565b81516001600160401b038111156200071b576200071b6200065a565b62000733816200072c845462000670565b84620006ac565b602080601f8311600181146200076b5760008415620007525750858301515b600019600386901b1c1916600185901b178555620006f6565b600085815260208120601f198616915b828110156200079c578886015182559484019460019091019084016200077b565b5085821015620007bb5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b03811681146200064057600080fd5b600080600060608486031215620007f757600080fd5b83516200080481620007cb565b60208501519093506200081781620007cb565b60408501519092506200082a81620007cb565b809150509250925092565b61306180620008456000396000f3fe6080604052600436106101f95760003560e01c80638462151c1161010d578063b88d4fde116100a0578063d5ef903a1161006f578063d5ef903a146105db578063e7e115a9146105fb578063e985e9c51461061b578063f23a6e6114610664578063f2fde38b1461068457600080fd5b8063b88d4fde14610542578063bc197c8114610555578063c23dc68f1461058e578063c87b56dd146105bb57600080fd5b806399a2557a116100dc57806399a2557a146104c6578063a22cb465146104e6578063ac3c995214610506578063b7f41a171461052657600080fd5b80638462151c146104465780638da5cb5b146104735780638f2fc60b1461049157806395d89b41146104b157600080fd5b806332cb6b0c116101905780635bbb21771161015f5780635bbb2177146103a45780636352211e146103d15780636cfa24cc146103f157806370a0823114610411578063715018a61461043157600080fd5b806332cb6b0c1461033b57806342842e0e14610351578063467d9b9d146103645780634756a9291461038457600080fd5b806318160ddd116101cc57806318160ddd146102a25780631ea618a1146102c957806323b872dd146102e95780632a55205a146102fc57600080fd5b806301ffc9a7146101fe57806306fdde0314610233578063081812fc14610255578063095ea7b31461028d575b600080fd5b34801561020a57600080fd5b5061021e610219366004612388565b6106a4565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b506102486106c4565b60405161022a91906123f5565b34801561026157600080fd5b50610275610270366004612408565b610756565b6040516001600160a01b03909116815260200161022a565b6102a061029b36600461243d565b61079a565b005b3480156102ae57600080fd5b5060045460035403600019015b60405190815260200161022a565b3480156102d557600080fd5b50600e54610275906001600160a01b031681565b6102a06102f7366004612467565b61083a565b34801561030857600080fd5b5061031c6103173660046124a3565b6109d3565b604080516001600160a01b03909316835260208301919091520161022a565b34801561034757600080fd5b506102bb61271081565b6102a061035f366004612467565b610a81565b34801561037057600080fd5b50600f54610275906001600160a01b031681565b34801561039057600080fd5b506102a061039f366004612509565b610aa1565b3480156103b057600080fd5b506103c46103bf366004612554565b610c29565b60405161022a91906125d1565b3480156103dd57600080fd5b506102756103ec366004612408565b610cf4565b3480156103fd57600080fd5b506102a061040c3660046126b0565b610cff565b34801561041d57600080fd5b506102bb61042c3660046126f8565b610d17565b34801561043d57600080fd5b506102a0610d65565b34801561045257600080fd5b506104666104613660046126f8565b610d79565b60405161022a919061274e565b34801561047f57600080fd5b506000546001600160a01b0316610275565b34801561049d57600080fd5b506102a06104ac366004612761565b610e81565b3480156104bd57600080fd5b50610248610e93565b3480156104d257600080fd5b506104666104e13660046127a4565b610ea2565b3480156104f257600080fd5b506102a06105013660046127d7565b611029565b34801561051257600080fd5b506102a0610521366004612808565b611095565b34801561053257600080fd5b506102bb670de0b6b3a764000081565b6102a06105503660046128c0565b6110d7565b34801561056157600080fd5b5061057561057036600461297c565b611121565b6040516001600160e01b0319909116815260200161022a565b34801561059a57600080fd5b506105ae6105a9366004612408565b61113c565b60405161022a9190612a36565b3480156105c757600080fd5b506102486105d6366004612408565b6111c4565b3480156105e757600080fd5b506102a06105f6366004612554565b6111cf565b34801561060757600080fd5b50601054610275906001600160a01b031681565b34801561062757600080fd5b5061021e610636366004612a44565b6001600160a01b039182166000908152600a6020908152604080832093909416825291909152205460ff1690565b34801561067057600080fd5b5061057561067f366004612a77565b611313565b34801561069057600080fd5b506102a061069f3660046126f8565b611467565b60006106af826114e5565b806106be57506106be8261150a565b92915050565b6060600580546106d390612aee565b80601f01602080910402602001604051908101604052809291908181526020018280546106ff90612aee565b801561074c5780601f106107215761010080835404028352916020019161074c565b820191906000526020600020905b81548152906001019060200180831161072f57829003601f168201915b5050505050905090565b60006107618261153f565b61077e576040516333d1c03960e21b815260040160405180910390fd5b506000908152600960205260409020546001600160a01b031690565b60006107a582610cf4565b9050336001600160a01b038216146107de576107c18133610636565b6107de576040516367d9dca160e11b815260040160405180910390fd5b60008281526009602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061084582611574565b9050836001600160a01b0316816001600160a01b0316146108785760405162a1148160e81b815260040160405180910390fd5b60008281526009602052604090208054338082146001600160a01b038816909114176108c5576108a88633610636565b6108c557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166108ec57604051633a954ecd60e21b815260040160405180910390fd5b80156108f757600082555b6001600160a01b038681166000908152600860205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260076020526040812091909155600160e11b84169003610989576001840160008181526007602052604081205490036109875760035481146109875760008181526007602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b60008281526002602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610a485750604080518082019091526001546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610a67906001600160601b031687612b3e565b610a719190612b6b565b91519350909150505b9250929050565b610a9c838383604051806020016040528060008152506110d7565b505050565b610aa96115e3565b6000829003610acb57604051631335351b60e31b815260040160405180910390fd5b610b083084848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061109592505050565b610b48838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250600c9392505061163c9050565b6000610b5c670de0b6b3a764000084612b3e565b6040805133602082015290810184905242606082015290915060009060019060800160408051601f1981840301815290829052610b9c9291602001612b7f565b60408051601f1981840301815290829052600f54601054600e5463dabd76e960e01b85529294506001600160a01b039182169363dabd76e993610beb9392831692169087908790600401612bae565b600060405180830381600087803b158015610c0557600080fd5b505af1158015610c19573d6000803e3d6000fd5b505050505050610a9c6001600b55565b6060816000816001600160401b03811115610c4657610c46612613565b604051908082528060200260200182016040528015610c9857816020015b604080516080810182526000808252602080830182905292820181905260608201528252600019909201910181610c645790505b50905060005b828114610ceb57610cc6868683818110610cba57610cba612be1565b9050602002013561113c565b828281518110610cd857610cd8612be1565b6020908102919091010152600101610c9e565b50949350505050565b60006106be82611574565b610d0761168f565b6011610d138282612c3d565b5050565b60006001600160a01b038216610d40576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600860205260409020546001600160401b031690565b610d6d61168f565b610d7760006116e9565b565b60606000806000610d8985610d17565b90506000816001600160401b03811115610da557610da5612613565b604051908082528060200260200182016040528015610dce578160200160208202803683370190505b509050610dfb60408051608081018252600080825260208201819052918101829052606081019190915290565b60015b838614610e7557610e0e81611739565b91508160400151610e6d5781516001600160a01b031615610e2e57815194505b876001600160a01b0316856001600160a01b031603610e6d5780838780600101985081518110610e6057610e60612be1565b6020026020010181815250505b600101610dfe565b50909695505050505050565b610e8961168f565b610d138282611775565b6060600680546106d390612aee565b6060818310610ec457604051631960ccad60e11b815260040160405180910390fd5b600080610ed060035490565b90506001851015610ee057600194505b80841115610eec578093505b6000610ef787610d17565b905084861015610f165785850381811015610f10578091505b50610f1a565b5060005b6000816001600160401b03811115610f3457610f34612613565b604051908082528060200260200182016040528015610f5d578160200160208202803683370190505b50905081600003610f7357935061102292505050565b6000610f7e8861113c565b905060008160400151610f8f575080515b885b888114158015610fa15750848714155b1561101657610faf81611739565b9250826040015161100e5782516001600160a01b031615610fcf57825191505b8a6001600160a01b0316826001600160a01b03160361100e578084888060010199508151811061100157611001612be1565b6020026020010181815250505b600101610f91565b50505092835250909150505b9392505050565b336000818152600a602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60005b8151811015610a9c576110c533848484815181106110b8576110b8612be1565b602002602001015161083a565b806110cf81612cfc565b915050611098565b6110e284848461083a565b6001600160a01b0383163b1561111b576110fe84848484611872565b61111b576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600060405163b893332b60e01b815260040160405180910390fd5b604080516080810182526000808252602082018190529181018290526060810191909152604080516080810182526000808252602082018190529181018290526060810191909152600183108061119557506003548310155b156111a05792915050565b6111a983611739565b90508060400151156111bb5792915050565b6110228361195e565b60606106be82611993565b6111d76115e3565b60008190036111f957604051631335351b60e31b815260040160405180910390fd5b6112363083838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061109592505050565b611276828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250600c9392505061163c9050565b600061128a670de0b6b3a764000083612b3e565b600f54600e5460405163dabd76e960e01b81523360048201526001600160a01b039182166024820152604481018490526080606482015260006084820152929350169063dabd76e99060a401600060405180830381600087803b1580156112f057600080fd5b505af1158015611304573d6000803e3d6000fd5b5050505050610d136001600b55565b600061131d6115e3565b600e546001600160a01b031685146113485760405163924ac1f160e01b815260040160405180910390fd5b600f546001600160a01b0316331461137357604051636edaef2f60e11b815260040160405180910390fd5b82356000611389670de0b6b3a764000087612b6b565b9050600061139f670de0b6b3a764000083612b3e565b6113a99088612d15565b905081156113bb576113bb8383611bac565b801561144657600f54600e54604051637921219560e11b81523060048201526001600160a01b03868116602483015291821660448201526064810184905260a06084820152600060a482015291169063f242432a9060c401600060405180830381600087803b15801561142d57600080fd5b505af1158015611441573d6000803e3d6000fd5b505050505b5063f23a6e6160e01b9250505061145d6001600b55565b9695505050505050565b61146f61168f565b6001600160a01b0381166114d95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6114e2816116e9565b50565b60006001600160e01b03198216630271189760e51b14806106be57506106be82611c99565b60006001600160e01b0319821663152a902d60e11b14806106be57506301ffc9a760e01b6001600160e01b03198316146106be565b600081600111158015611553575060035482105b80156106be575050600090815260076020526040902054600160e01b161590565b600081806001116115ca576003548110156115ca5760008181526007602052604081205490600160e01b821690036115c8575b806000036110225750600019016000818152600760205260409020546115a7565b505b604051636f96cda160e11b815260040160405180910390fd5b6002600b54036116355760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016114d0565b6002600b55565b60005b8151811015610a9c578260010182828151811061165e5761165e612be1565b602090810291909101810151825460018101845560009384529190922001558061168781612cfc565b91505061163f565b6000546001600160a01b03163314610d775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016114d0565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040805160808101825260008082526020820181905291810182905260608101919091526000828152600760205260409020546106be90611ce7565b6127106001600160601b03821611156117e35760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016114d0565b6001600160a01b0382166118395760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016114d0565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600155565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906118a7903390899088908890600401612bae565b6020604051808303816000875af19250505080156118e2575060408051601f3d908101601f191682019092526118df91810190612d28565b60015b611940573d808015611910576040519150601f19603f3d011682016040523d82523d6000602084013e611915565b606091505b508051600003611938576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6040805160808101825260008082526020820181905291810182905260608101919091526106be61198e83611574565b611ce7565b6040516832ba34393ab732b99d60b91b60208201526029810182905260609060009060490160408051601f198184030181529190528051602090910120905060f881901c60006119e4601883612d45565b6119ef906001612d67565b905060ff831660006005821015611a0857506001611a84565b600f8260ff161015611a1c57506002611a84565b60238260ff161015611a3057506003611a84565b60418260ff161015611a4457506004611a84565b60698260ff161015611a5857506005611a84565b609b8260ff161015611a6c57506006611a84565b60d78260ff161015611a8057506007611a84565b5060085b60006012611a93600186612d80565b60ff1681548110611aa657611aa6612be1565b906000526020600020016013600184611abf9190612d80565b60ff1681548110611ad257611ad2612be1565b90600052602060002001604051602001611aed929190612e0c565b60408051601f19818403018152908290526001600160f81b031960f885811b8216602085015287901b1660218301529150600090611b48906022016040516020818303038152906040528051906020012060001c6020611d2e565b90506000611b558a611ec9565b60118385604051602001611b6c9493929190612e98565b604051602081830303815290604052905080604051602001611b8e9190612f98565b60405160208183030381529060405298505050505050505050919050565b80600003611bb8575050565b6000611bc5600c83611f5b565b90508181511015611c3d5760405163561e4ca960e11b8152309063ac3c995290611bf59086908590600401612fdd565b600060405180830381600087803b158015611c0f57600080fd5b505af1158015611c23573d6000803e3d6000fd5b50505050610a9c83825184611c389190612d15565b6120ff565b60405163561e4ca960e11b8152309063ac3c995290611c629086908590600401612fdd565b600060405180830381600087803b158015611c7c57600080fd5b505af1158015611c90573d6000803e3d6000fd5b50505050505050565b60006301ffc9a760e01b6001600160e01b031983161480611cca57506380ac58cd60e01b6001600160e01b03198316145b806106be5750506001600160e01b031916635b5e139f60e01b1490565b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b60606000611d3d836002612b3e565b611d48906002613001565b6001600160401b03811115611d5f57611d5f612613565b6040519080825280601f01601f191660200182016040528015611d89576020820181803683370190505b509050600360fc1b81600081518110611da457611da4612be1565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611dd357611dd3612be1565b60200101906001600160f81b031916908160001a9053506000611df7846002612b3e565b611e02906001613001565b90505b6001811115611e7a576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611e3657611e36612be1565b1a60f81b828281518110611e4c57611e4c612be1565b60200101906001600160f81b031916908160001a90535060049490941c93611e7381613014565b9050611e05565b5083156110225760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016114d0565b60606000611ed683612143565b60010190506000816001600160401b03811115611ef557611ef5612613565b6040519080825280601f01601f191660200182016040528015611f1f576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611f2957509392505050565b606081156106be5760018301548354146106be5781611f798461221b565b111561203f57816001600160401b03811115611f9757611f97612613565b604051908082528060200260200182016040528015611fc0578160200160208202803683370190505b50905060005b8281101561202a5783546001850190611fe0908390613001565b81548110611ff057611ff0612be1565b906000526020600020015482828151811061200d5761200d612be1565b60209081029190910101528061202281612cfc565b915050611fc6565b508254612038908390613001565b83556106be565b6120488361221b565b9150816001600160401b0381111561206257612062612613565b60405190808252806020026020018201604052801561208b578160200160208202803683370190505b50905060005b828110156120f557835460018501906120ab908390613001565b815481106120bb576120bb612be1565b90600052602060002001548282815181106120d8576120d8612be1565b6020908102919091010152806120ed81612cfc565b915050612091565b506106be8361222e565b600454600354612710918391036000190161211a9190613001565b111561213957604051630f0c37b960e11b815260040160405180910390fd5b610d138282612242565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106121825772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106121ae576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106121cc57662386f26fc10000830492506010015b6305f5e10083106121e4576305f5e100830492506008015b61271083106121f857612710830492506004015b6064831061220a576064830492506002015b600a83106106be5760010192915050565b805460018201546000916106be91612d15565b61223c600182016000612340565b60009055565b60035460008290036122675760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526008602090815260408083208054680100000000000000018802019055848352600790915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461231657808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016122de565b508160000361233757604051622e076360e81b815260040160405180910390fd5b60035550505050565b50805460008255906000526020600020908101906114e291905b8082111561236e576000815560010161235a565b5090565b6001600160e01b0319811681146114e257600080fd5b60006020828403121561239a57600080fd5b813561102281612372565b60005b838110156123c05781810151838201526020016123a8565b50506000910152565b600081518084526123e18160208601602086016123a5565b601f01601f19169290920160200192915050565b60208152600061102260208301846123c9565b60006020828403121561241a57600080fd5b5035919050565b80356001600160a01b038116811461243857600080fd5b919050565b6000806040838503121561245057600080fd5b61245983612421565b946020939093013593505050565b60008060006060848603121561247c57600080fd5b61248584612421565b925061249360208501612421565b9150604084013590509250925092565b600080604083850312156124b657600080fd5b50508035926020909101359150565b60008083601f8401126124d757600080fd5b5081356001600160401b038111156124ee57600080fd5b6020830191508360208260051b8501011115610a7a57600080fd5b60008060006040848603121561251e57600080fd5b83356001600160401b0381111561253457600080fd5b612540868287016124c5565b909790965060209590950135949350505050565b6000806020838503121561256757600080fd5b82356001600160401b0381111561257d57600080fd5b612589858286016124c5565b90969095509350505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015610e7557612600838551612595565b92840192608092909201916001016125ed565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561265157612651612613565b604052919050565b60006001600160401b0383111561267257612672612613565b612685601f8401601f1916602001612629565b905082815283838301111561269957600080fd5b828260208301376000602084830101529392505050565b6000602082840312156126c257600080fd5b81356001600160401b038111156126d857600080fd5b8201601f810184136126e957600080fd5b61195684823560208401612659565b60006020828403121561270a57600080fd5b61102282612421565b600081518084526020808501945080840160005b8381101561274357815187529582019590820190600101612727565b509495945050505050565b6020815260006110226020830184612713565b6000806040838503121561277457600080fd5b61277d83612421565b915060208301356001600160601b038116811461279957600080fd5b809150509250929050565b6000806000606084860312156127b957600080fd5b6127c284612421565b95602085013595506040909401359392505050565b600080604083850312156127ea57600080fd5b6127f383612421565b91506020830135801515811461279957600080fd5b6000806040838503121561281b57600080fd5b61282483612421565b91506020808401356001600160401b038082111561284157600080fd5b818601915086601f83011261285557600080fd5b81358181111561286757612867612613565b8060051b9150612878848301612629565b818152918301840191848101908984111561289257600080fd5b938501935b838510156128b057843582529385019390850190612897565b8096505050505050509250929050565b600080600080608085870312156128d657600080fd5b6128df85612421565b93506128ed60208601612421565b92506040850135915060608501356001600160401b0381111561290f57600080fd5b8501601f8101871361292057600080fd5b61292f87823560208401612659565b91505092959194509250565b60008083601f84011261294d57600080fd5b5081356001600160401b0381111561296457600080fd5b602083019150836020828501011115610a7a57600080fd5b60008060008060008060008060a0898b03121561299857600080fd5b6129a189612421565b97506129af60208a01612421565b965060408901356001600160401b03808211156129cb57600080fd5b6129d78c838d016124c5565b909850965060608b01359150808211156129f057600080fd5b6129fc8c838d016124c5565b909650945060808b0135915080821115612a1557600080fd5b50612a228b828c0161293b565b999c989b5096995094979396929594505050565b608081016106be8284612595565b60008060408385031215612a5757600080fd5b612a6083612421565b9150612a6e60208401612421565b90509250929050565b60008060008060008060a08789031215612a9057600080fd5b612a9987612421565b9550612aa760208801612421565b9450604087013593506060870135925060808701356001600160401b03811115612ad057600080fd5b612adc89828a0161293b565b979a9699509497509295939492505050565b600181811c90821680612b0257607f821691505b602082108103612b2257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176106be576106be612b28565b634e487b7160e01b600052601260045260246000fd5b600082612b7a57612b7a612b55565b500490565b60ff60f81b8360f81b16815260008251612ba08160018501602087016123a5565b919091016001019392505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061145d908301846123c9565b634e487b7160e01b600052603260045260246000fd5b601f821115610a9c57600081815260208120601f850160051c81016020861015612c1e5750805b601f850160051c820191505b818110156109cb57828155600101612c2a565b81516001600160401b03811115612c5657612c56612613565b612c6a81612c648454612aee565b84612bf7565b602080601f831160018114612c9f5760008415612c875750858301515b600019600386901b1c1916600185901b1785556109cb565b600085815260208120601f198616915b82811015612cce57888601518255948401946001909101908401612caf565b5085821015612cec5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060018201612d0e57612d0e612b28565b5060010190565b818103818111156106be576106be612b28565b600060208284031215612d3a57600080fd5b815161102281612372565b600060ff831680612d5857612d58612b55565b8060ff84160691505092915050565b60ff81811683821601908111156106be576106be612b28565b60ff82811682821603908111156106be576106be612b28565b60008154612da681612aee565b60018281168015612dbe5760018114612dd357612e02565b60ff1984168752821515830287019450612e02565b8560005260208060002060005b85811015612df95781548a820152908401908201612de0565b50505082870194505b5050505092915050565b7516dec89d1c985a5d17dd1e5c19488e88949d5b99488b60521b815268113b30b63ab2911d1160b91b60168201819052600090612e4c601f840186612d99565b7f227d2c7b2274726169745f74797065223a224d6174657269616c222c00000000815281601c820152612e826025820186612d99565b62227d5d60e81b81526003019695505050505050565b737b226e616d65223a2252756e6573746f6e65202360601b81528451600090612ec8816014850160208a016123a5565b7f222c226465736372697074696f6e223a2231302c3030302052756e6573746f6e6014918401918201527f6573206f6e20457468657265756d20656e61626c65642062792045746872756e60348201526c32b991161134b6b0b3b2911d1160991b6054820152612f3b6061820187612d99565b90508451612f4d8183602089016123a5565b721738373391161130ba3a3934b13aba32b9911d60691b91019081528351612f7c8160138401602088016123a5565b607d60f81b601392909101918201526014019695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c0000000000815260008251612fd081601b8501602087016123a5565b91909101601b0192915050565b6001600160a01b038316815260406020820181905260009061195690830184612713565b808201808211156106be576106be612b28565b60008161302357613023612b28565b50600019019056fea26469706673582212205e2fd56287336ae10eccaa421c128d37d14d8362bf82682e8c539675029ead6f64736f6c63430008110033697066733a2f2f516d4e53755461525470526a423134795279616944717242567538486e6741703336717366375237676e735166512f000000000000000000000000326490a8f5dcaeaa4a2ad9ea902990c5b0834d9b000000000000000000000000c280351d99de82884c7173f823eed94c062dd2d200000000000000000000000049caeb8175dc9db709d4e6299cf8252dddee2738
Deployed Bytecode
0x6080604052600436106101f95760003560e01c80638462151c1161010d578063b88d4fde116100a0578063d5ef903a1161006f578063d5ef903a146105db578063e7e115a9146105fb578063e985e9c51461061b578063f23a6e6114610664578063f2fde38b1461068457600080fd5b8063b88d4fde14610542578063bc197c8114610555578063c23dc68f1461058e578063c87b56dd146105bb57600080fd5b806399a2557a116100dc57806399a2557a146104c6578063a22cb465146104e6578063ac3c995214610506578063b7f41a171461052657600080fd5b80638462151c146104465780638da5cb5b146104735780638f2fc60b1461049157806395d89b41146104b157600080fd5b806332cb6b0c116101905780635bbb21771161015f5780635bbb2177146103a45780636352211e146103d15780636cfa24cc146103f157806370a0823114610411578063715018a61461043157600080fd5b806332cb6b0c1461033b57806342842e0e14610351578063467d9b9d146103645780634756a9291461038457600080fd5b806318160ddd116101cc57806318160ddd146102a25780631ea618a1146102c957806323b872dd146102e95780632a55205a146102fc57600080fd5b806301ffc9a7146101fe57806306fdde0314610233578063081812fc14610255578063095ea7b31461028d575b600080fd5b34801561020a57600080fd5b5061021e610219366004612388565b6106a4565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b506102486106c4565b60405161022a91906123f5565b34801561026157600080fd5b50610275610270366004612408565b610756565b6040516001600160a01b03909116815260200161022a565b6102a061029b36600461243d565b61079a565b005b3480156102ae57600080fd5b5060045460035403600019015b60405190815260200161022a565b3480156102d557600080fd5b50600e54610275906001600160a01b031681565b6102a06102f7366004612467565b61083a565b34801561030857600080fd5b5061031c6103173660046124a3565b6109d3565b604080516001600160a01b03909316835260208301919091520161022a565b34801561034757600080fd5b506102bb61271081565b6102a061035f366004612467565b610a81565b34801561037057600080fd5b50600f54610275906001600160a01b031681565b34801561039057600080fd5b506102a061039f366004612509565b610aa1565b3480156103b057600080fd5b506103c46103bf366004612554565b610c29565b60405161022a91906125d1565b3480156103dd57600080fd5b506102756103ec366004612408565b610cf4565b3480156103fd57600080fd5b506102a061040c3660046126b0565b610cff565b34801561041d57600080fd5b506102bb61042c3660046126f8565b610d17565b34801561043d57600080fd5b506102a0610d65565b34801561045257600080fd5b506104666104613660046126f8565b610d79565b60405161022a919061274e565b34801561047f57600080fd5b506000546001600160a01b0316610275565b34801561049d57600080fd5b506102a06104ac366004612761565b610e81565b3480156104bd57600080fd5b50610248610e93565b3480156104d257600080fd5b506104666104e13660046127a4565b610ea2565b3480156104f257600080fd5b506102a06105013660046127d7565b611029565b34801561051257600080fd5b506102a0610521366004612808565b611095565b34801561053257600080fd5b506102bb670de0b6b3a764000081565b6102a06105503660046128c0565b6110d7565b34801561056157600080fd5b5061057561057036600461297c565b611121565b6040516001600160e01b0319909116815260200161022a565b34801561059a57600080fd5b506105ae6105a9366004612408565b61113c565b60405161022a9190612a36565b3480156105c757600080fd5b506102486105d6366004612408565b6111c4565b3480156105e757600080fd5b506102a06105f6366004612554565b6111cf565b34801561060757600080fd5b50601054610275906001600160a01b031681565b34801561062757600080fd5b5061021e610636366004612a44565b6001600160a01b039182166000908152600a6020908152604080832093909416825291909152205460ff1690565b34801561067057600080fd5b5061057561067f366004612a77565b611313565b34801561069057600080fd5b506102a061069f3660046126f8565b611467565b60006106af826114e5565b806106be57506106be8261150a565b92915050565b6060600580546106d390612aee565b80601f01602080910402602001604051908101604052809291908181526020018280546106ff90612aee565b801561074c5780601f106107215761010080835404028352916020019161074c565b820191906000526020600020905b81548152906001019060200180831161072f57829003601f168201915b5050505050905090565b60006107618261153f565b61077e576040516333d1c03960e21b815260040160405180910390fd5b506000908152600960205260409020546001600160a01b031690565b60006107a582610cf4565b9050336001600160a01b038216146107de576107c18133610636565b6107de576040516367d9dca160e11b815260040160405180910390fd5b60008281526009602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061084582611574565b9050836001600160a01b0316816001600160a01b0316146108785760405162a1148160e81b815260040160405180910390fd5b60008281526009602052604090208054338082146001600160a01b038816909114176108c5576108a88633610636565b6108c557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166108ec57604051633a954ecd60e21b815260040160405180910390fd5b80156108f757600082555b6001600160a01b038681166000908152600860205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260076020526040812091909155600160e11b84169003610989576001840160008181526007602052604081205490036109875760035481146109875760008181526007602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b60008281526002602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610a485750604080518082019091526001546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610a67906001600160601b031687612b3e565b610a719190612b6b565b91519350909150505b9250929050565b610a9c838383604051806020016040528060008152506110d7565b505050565b610aa96115e3565b6000829003610acb57604051631335351b60e31b815260040160405180910390fd5b610b083084848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061109592505050565b610b48838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250600c9392505061163c9050565b6000610b5c670de0b6b3a764000084612b3e565b6040805133602082015290810184905242606082015290915060009060019060800160408051601f1981840301815290829052610b9c9291602001612b7f565b60408051601f1981840301815290829052600f54601054600e5463dabd76e960e01b85529294506001600160a01b039182169363dabd76e993610beb9392831692169087908790600401612bae565b600060405180830381600087803b158015610c0557600080fd5b505af1158015610c19573d6000803e3d6000fd5b505050505050610a9c6001600b55565b6060816000816001600160401b03811115610c4657610c46612613565b604051908082528060200260200182016040528015610c9857816020015b604080516080810182526000808252602080830182905292820181905260608201528252600019909201910181610c645790505b50905060005b828114610ceb57610cc6868683818110610cba57610cba612be1565b9050602002013561113c565b828281518110610cd857610cd8612be1565b6020908102919091010152600101610c9e565b50949350505050565b60006106be82611574565b610d0761168f565b6011610d138282612c3d565b5050565b60006001600160a01b038216610d40576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600860205260409020546001600160401b031690565b610d6d61168f565b610d7760006116e9565b565b60606000806000610d8985610d17565b90506000816001600160401b03811115610da557610da5612613565b604051908082528060200260200182016040528015610dce578160200160208202803683370190505b509050610dfb60408051608081018252600080825260208201819052918101829052606081019190915290565b60015b838614610e7557610e0e81611739565b91508160400151610e6d5781516001600160a01b031615610e2e57815194505b876001600160a01b0316856001600160a01b031603610e6d5780838780600101985081518110610e6057610e60612be1565b6020026020010181815250505b600101610dfe565b50909695505050505050565b610e8961168f565b610d138282611775565b6060600680546106d390612aee565b6060818310610ec457604051631960ccad60e11b815260040160405180910390fd5b600080610ed060035490565b90506001851015610ee057600194505b80841115610eec578093505b6000610ef787610d17565b905084861015610f165785850381811015610f10578091505b50610f1a565b5060005b6000816001600160401b03811115610f3457610f34612613565b604051908082528060200260200182016040528015610f5d578160200160208202803683370190505b50905081600003610f7357935061102292505050565b6000610f7e8861113c565b905060008160400151610f8f575080515b885b888114158015610fa15750848714155b1561101657610faf81611739565b9250826040015161100e5782516001600160a01b031615610fcf57825191505b8a6001600160a01b0316826001600160a01b03160361100e578084888060010199508151811061100157611001612be1565b6020026020010181815250505b600101610f91565b50505092835250909150505b9392505050565b336000818152600a602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60005b8151811015610a9c576110c533848484815181106110b8576110b8612be1565b602002602001015161083a565b806110cf81612cfc565b915050611098565b6110e284848461083a565b6001600160a01b0383163b1561111b576110fe84848484611872565b61111b576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600060405163b893332b60e01b815260040160405180910390fd5b604080516080810182526000808252602082018190529181018290526060810191909152604080516080810182526000808252602082018190529181018290526060810191909152600183108061119557506003548310155b156111a05792915050565b6111a983611739565b90508060400151156111bb5792915050565b6110228361195e565b60606106be82611993565b6111d76115e3565b60008190036111f957604051631335351b60e31b815260040160405180910390fd5b6112363083838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061109592505050565b611276828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250600c9392505061163c9050565b600061128a670de0b6b3a764000083612b3e565b600f54600e5460405163dabd76e960e01b81523360048201526001600160a01b039182166024820152604481018490526080606482015260006084820152929350169063dabd76e99060a401600060405180830381600087803b1580156112f057600080fd5b505af1158015611304573d6000803e3d6000fd5b5050505050610d136001600b55565b600061131d6115e3565b600e546001600160a01b031685146113485760405163924ac1f160e01b815260040160405180910390fd5b600f546001600160a01b0316331461137357604051636edaef2f60e11b815260040160405180910390fd5b82356000611389670de0b6b3a764000087612b6b565b9050600061139f670de0b6b3a764000083612b3e565b6113a99088612d15565b905081156113bb576113bb8383611bac565b801561144657600f54600e54604051637921219560e11b81523060048201526001600160a01b03868116602483015291821660448201526064810184905260a06084820152600060a482015291169063f242432a9060c401600060405180830381600087803b15801561142d57600080fd5b505af1158015611441573d6000803e3d6000fd5b505050505b5063f23a6e6160e01b9250505061145d6001600b55565b9695505050505050565b61146f61168f565b6001600160a01b0381166114d95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6114e2816116e9565b50565b60006001600160e01b03198216630271189760e51b14806106be57506106be82611c99565b60006001600160e01b0319821663152a902d60e11b14806106be57506301ffc9a760e01b6001600160e01b03198316146106be565b600081600111158015611553575060035482105b80156106be575050600090815260076020526040902054600160e01b161590565b600081806001116115ca576003548110156115ca5760008181526007602052604081205490600160e01b821690036115c8575b806000036110225750600019016000818152600760205260409020546115a7565b505b604051636f96cda160e11b815260040160405180910390fd5b6002600b54036116355760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016114d0565b6002600b55565b60005b8151811015610a9c578260010182828151811061165e5761165e612be1565b602090810291909101810151825460018101845560009384529190922001558061168781612cfc565b91505061163f565b6000546001600160a01b03163314610d775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016114d0565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040805160808101825260008082526020820181905291810182905260608101919091526000828152600760205260409020546106be90611ce7565b6127106001600160601b03821611156117e35760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016114d0565b6001600160a01b0382166118395760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016114d0565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600155565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906118a7903390899088908890600401612bae565b6020604051808303816000875af19250505080156118e2575060408051601f3d908101601f191682019092526118df91810190612d28565b60015b611940573d808015611910576040519150601f19603f3d011682016040523d82523d6000602084013e611915565b606091505b508051600003611938576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6040805160808101825260008082526020820181905291810182905260608101919091526106be61198e83611574565b611ce7565b6040516832ba34393ab732b99d60b91b60208201526029810182905260609060009060490160408051601f198184030181529190528051602090910120905060f881901c60006119e4601883612d45565b6119ef906001612d67565b905060ff831660006005821015611a0857506001611a84565b600f8260ff161015611a1c57506002611a84565b60238260ff161015611a3057506003611a84565b60418260ff161015611a4457506004611a84565b60698260ff161015611a5857506005611a84565b609b8260ff161015611a6c57506006611a84565b60d78260ff161015611a8057506007611a84565b5060085b60006012611a93600186612d80565b60ff1681548110611aa657611aa6612be1565b906000526020600020016013600184611abf9190612d80565b60ff1681548110611ad257611ad2612be1565b90600052602060002001604051602001611aed929190612e0c565b60408051601f19818403018152908290526001600160f81b031960f885811b8216602085015287901b1660218301529150600090611b48906022016040516020818303038152906040528051906020012060001c6020611d2e565b90506000611b558a611ec9565b60118385604051602001611b6c9493929190612e98565b604051602081830303815290604052905080604051602001611b8e9190612f98565b60405160208183030381529060405298505050505050505050919050565b80600003611bb8575050565b6000611bc5600c83611f5b565b90508181511015611c3d5760405163561e4ca960e11b8152309063ac3c995290611bf59086908590600401612fdd565b600060405180830381600087803b158015611c0f57600080fd5b505af1158015611c23573d6000803e3d6000fd5b50505050610a9c83825184611c389190612d15565b6120ff565b60405163561e4ca960e11b8152309063ac3c995290611c629086908590600401612fdd565b600060405180830381600087803b158015611c7c57600080fd5b505af1158015611c90573d6000803e3d6000fd5b50505050505050565b60006301ffc9a760e01b6001600160e01b031983161480611cca57506380ac58cd60e01b6001600160e01b03198316145b806106be5750506001600160e01b031916635b5e139f60e01b1490565b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b60606000611d3d836002612b3e565b611d48906002613001565b6001600160401b03811115611d5f57611d5f612613565b6040519080825280601f01601f191660200182016040528015611d89576020820181803683370190505b509050600360fc1b81600081518110611da457611da4612be1565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611dd357611dd3612be1565b60200101906001600160f81b031916908160001a9053506000611df7846002612b3e565b611e02906001613001565b90505b6001811115611e7a576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611e3657611e36612be1565b1a60f81b828281518110611e4c57611e4c612be1565b60200101906001600160f81b031916908160001a90535060049490941c93611e7381613014565b9050611e05565b5083156110225760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016114d0565b60606000611ed683612143565b60010190506000816001600160401b03811115611ef557611ef5612613565b6040519080825280601f01601f191660200182016040528015611f1f576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611f2957509392505050565b606081156106be5760018301548354146106be5781611f798461221b565b111561203f57816001600160401b03811115611f9757611f97612613565b604051908082528060200260200182016040528015611fc0578160200160208202803683370190505b50905060005b8281101561202a5783546001850190611fe0908390613001565b81548110611ff057611ff0612be1565b906000526020600020015482828151811061200d5761200d612be1565b60209081029190910101528061202281612cfc565b915050611fc6565b508254612038908390613001565b83556106be565b6120488361221b565b9150816001600160401b0381111561206257612062612613565b60405190808252806020026020018201604052801561208b578160200160208202803683370190505b50905060005b828110156120f557835460018501906120ab908390613001565b815481106120bb576120bb612be1565b90600052602060002001548282815181106120d8576120d8612be1565b6020908102919091010152806120ed81612cfc565b915050612091565b506106be8361222e565b600454600354612710918391036000190161211a9190613001565b111561213957604051630f0c37b960e11b815260040160405180910390fd5b610d138282612242565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106121825772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106121ae576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106121cc57662386f26fc10000830492506010015b6305f5e10083106121e4576305f5e100830492506008015b61271083106121f857612710830492506004015b6064831061220a576064830492506002015b600a83106106be5760010192915050565b805460018201546000916106be91612d15565b61223c600182016000612340565b60009055565b60035460008290036122675760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526008602090815260408083208054680100000000000000018802019055848352600790915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461231657808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016122de565b508160000361233757604051622e076360e81b815260040160405180910390fd5b60035550505050565b50805460008255906000526020600020908101906114e291905b8082111561236e576000815560010161235a565b5090565b6001600160e01b0319811681146114e257600080fd5b60006020828403121561239a57600080fd5b813561102281612372565b60005b838110156123c05781810151838201526020016123a8565b50506000910152565b600081518084526123e18160208601602086016123a5565b601f01601f19169290920160200192915050565b60208152600061102260208301846123c9565b60006020828403121561241a57600080fd5b5035919050565b80356001600160a01b038116811461243857600080fd5b919050565b6000806040838503121561245057600080fd5b61245983612421565b946020939093013593505050565b60008060006060848603121561247c57600080fd5b61248584612421565b925061249360208501612421565b9150604084013590509250925092565b600080604083850312156124b657600080fd5b50508035926020909101359150565b60008083601f8401126124d757600080fd5b5081356001600160401b038111156124ee57600080fd5b6020830191508360208260051b8501011115610a7a57600080fd5b60008060006040848603121561251e57600080fd5b83356001600160401b0381111561253457600080fd5b612540868287016124c5565b909790965060209590950135949350505050565b6000806020838503121561256757600080fd5b82356001600160401b0381111561257d57600080fd5b612589858286016124c5565b90969095509350505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015610e7557612600838551612595565b92840192608092909201916001016125ed565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561265157612651612613565b604052919050565b60006001600160401b0383111561267257612672612613565b612685601f8401601f1916602001612629565b905082815283838301111561269957600080fd5b828260208301376000602084830101529392505050565b6000602082840312156126c257600080fd5b81356001600160401b038111156126d857600080fd5b8201601f810184136126e957600080fd5b61195684823560208401612659565b60006020828403121561270a57600080fd5b61102282612421565b600081518084526020808501945080840160005b8381101561274357815187529582019590820190600101612727565b509495945050505050565b6020815260006110226020830184612713565b6000806040838503121561277457600080fd5b61277d83612421565b915060208301356001600160601b038116811461279957600080fd5b809150509250929050565b6000806000606084860312156127b957600080fd5b6127c284612421565b95602085013595506040909401359392505050565b600080604083850312156127ea57600080fd5b6127f383612421565b91506020830135801515811461279957600080fd5b6000806040838503121561281b57600080fd5b61282483612421565b91506020808401356001600160401b038082111561284157600080fd5b818601915086601f83011261285557600080fd5b81358181111561286757612867612613565b8060051b9150612878848301612629565b818152918301840191848101908984111561289257600080fd5b938501935b838510156128b057843582529385019390850190612897565b8096505050505050509250929050565b600080600080608085870312156128d657600080fd5b6128df85612421565b93506128ed60208601612421565b92506040850135915060608501356001600160401b0381111561290f57600080fd5b8501601f8101871361292057600080fd5b61292f87823560208401612659565b91505092959194509250565b60008083601f84011261294d57600080fd5b5081356001600160401b0381111561296457600080fd5b602083019150836020828501011115610a7a57600080fd5b60008060008060008060008060a0898b03121561299857600080fd5b6129a189612421565b97506129af60208a01612421565b965060408901356001600160401b03808211156129cb57600080fd5b6129d78c838d016124c5565b909850965060608b01359150808211156129f057600080fd5b6129fc8c838d016124c5565b909650945060808b0135915080821115612a1557600080fd5b50612a228b828c0161293b565b999c989b5096995094979396929594505050565b608081016106be8284612595565b60008060408385031215612a5757600080fd5b612a6083612421565b9150612a6e60208401612421565b90509250929050565b60008060008060008060a08789031215612a9057600080fd5b612a9987612421565b9550612aa760208801612421565b9450604087013593506060870135925060808701356001600160401b03811115612ad057600080fd5b612adc89828a0161293b565b979a9699509497509295939492505050565b600181811c90821680612b0257607f821691505b602082108103612b2257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176106be576106be612b28565b634e487b7160e01b600052601260045260246000fd5b600082612b7a57612b7a612b55565b500490565b60ff60f81b8360f81b16815260008251612ba08160018501602087016123a5565b919091016001019392505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061145d908301846123c9565b634e487b7160e01b600052603260045260246000fd5b601f821115610a9c57600081815260208120601f850160051c81016020861015612c1e5750805b601f850160051c820191505b818110156109cb57828155600101612c2a565b81516001600160401b03811115612c5657612c56612613565b612c6a81612c648454612aee565b84612bf7565b602080601f831160018114612c9f5760008415612c875750858301515b600019600386901b1c1916600185901b1785556109cb565b600085815260208120601f198616915b82811015612cce57888601518255948401946001909101908401612caf565b5085821015612cec5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060018201612d0e57612d0e612b28565b5060010190565b818103818111156106be576106be612b28565b600060208284031215612d3a57600080fd5b815161102281612372565b600060ff831680612d5857612d58612b55565b8060ff84160691505092915050565b60ff81811683821601908111156106be576106be612b28565b60ff82811682821603908111156106be576106be612b28565b60008154612da681612aee565b60018281168015612dbe5760018114612dd357612e02565b60ff1984168752821515830287019450612e02565b8560005260208060002060005b85811015612df95781548a820152908401908201612de0565b50505082870194505b5050505092915050565b7516dec89d1c985a5d17dd1e5c19488e88949d5b99488b60521b815268113b30b63ab2911d1160b91b60168201819052600090612e4c601f840186612d99565b7f227d2c7b2274726169745f74797065223a224d6174657269616c222c00000000815281601c820152612e826025820186612d99565b62227d5d60e81b81526003019695505050505050565b737b226e616d65223a2252756e6573746f6e65202360601b81528451600090612ec8816014850160208a016123a5565b7f222c226465736372697074696f6e223a2231302c3030302052756e6573746f6e6014918401918201527f6573206f6e20457468657265756d20656e61626c65642062792045746872756e60348201526c32b991161134b6b0b3b2911d1160991b6054820152612f3b6061820187612d99565b90508451612f4d8183602089016123a5565b721738373391161130ba3a3934b13aba32b9911d60691b91019081528351612f7c8160138401602088016123a5565b607d60f81b601392909101918201526014019695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c0000000000815260008251612fd081601b8501602087016123a5565b91909101601b0192915050565b6001600160a01b038316815260406020820181905260009061195690830184612713565b808201808211156106be576106be612b28565b60008161302357613023612b28565b50600019019056fea26469706673582212205e2fd56287336ae10eccaa421c128d37d14d8362bf82682e8c539675029ead6f64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000326490a8f5dcaeaa4a2ad9ea902990c5b0834d9b000000000000000000000000c280351d99de82884c7173f823eed94c062dd2d200000000000000000000000049caeb8175dc9db709d4e6299cf8252dddee2738
-----Decoded View---------------
Arg [0] : _ethrunes (address): 0x326490A8f5dCaEAa4a2Ad9ea902990c5b0834D9B
Arg [1] : _runeId (uint160): 1110403331949107032233257649694731726496094606034
Arg [2] : _launchswap (address): 0x49CaEB8175DC9Db709d4e6299CF8252ddDEE2738
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000326490a8f5dcaeaa4a2ad9ea902990c5b0834d9b
Arg [1] : 000000000000000000000000c280351d99de82884c7173f823eed94c062dd2d2
Arg [2] : 00000000000000000000000049caeb8175dc9db709d4e6299cf8252dddee2738
Deployed Bytecode Sourcemap
98957:6857:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;103752:241;;;;;;;;;;-1:-1:-1;103752:241:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;103752:241:0;;;;;;;;57758:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;64249:218::-;;;;;;;;;;-1:-1:-1;64249:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;64249:218:0;1533:203:1;63682:408:0;;;;;;:::i;:::-;;:::i;:::-;;53509:323;;;;;;;;;;-1:-1:-1;53783:12:0;;53767:13;;:28;-1:-1:-1;;53767:46:0;53509:323;;;2324:25:1;;;2312:2;2297:18;53509:323:0;2178:177:1;99460:21:0;;;;;;;;;;-1:-1:-1;99460:21:0;;;;-1:-1:-1;;;;;99460:21:0;;;67888:2825;;;;;;:::i;:::-;;:::i;8166:442::-;;;;;;;;;;-1:-1:-1;8166:442:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3346:32:1;;;3328:51;;3410:2;3395:18;;3388:34;;;;3301:18;8166:442:0;3154:274:1;99361:42:0;;;;;;;;;;;;99398:5;99361:42;;70809:193;;;;;;:::i;:::-;;:::i;99488:23::-;;;;;;;;;;-1:-1:-1;99488:23:0;;;;-1:-1:-1;;;;;99488:23:0;;;101702:488;;;;;;;;;;-1:-1:-1;101702:488:0;;;;;:::i;:::-;;:::i;94091:528::-;;;;;;;;;;-1:-1:-1;94091:528:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;59151:152::-;;;;;;;;;;-1:-1:-1;59151:152:0;;;;;:::i;:::-;;:::i;100596:100::-;;;;;;;;;;-1:-1:-1;100596:100:0;;;;;:::i;:::-;;:::i;54693:233::-;;;;;;;;;;-1:-1:-1;54693:233:0;;;;;:::i;:::-;;:::i;2823:103::-;;;;;;;;;;;;;:::i;97967:900::-;;;;;;;;;;-1:-1:-1;97967:900:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;2175:87::-;;;;;;;;;;-1:-1:-1;2221:7:0;2248:6;-1:-1:-1;;;;;2248:6:0;2175:87;;100704:153;;;;;;;;;;-1:-1:-1;100704:153:0;;;;;:::i;:::-;;:::i;57934:104::-;;;;;;;;;;;;;:::i;95007:2513::-;;;;;;;;;;-1:-1:-1;95007:2513:0;;;;;:::i;:::-;;:::i;64807:234::-;;;;;;;;;;-1:-1:-1;64807:234:0;;;;;:::i;:::-;;:::i;101142:199::-;;;;;;;;;;-1:-1:-1;101142:199:0;;;;;:::i;:::-;;:::i;99410:41::-;;;;;;;;;;;;99447:4;99410:41;;71600:407;;;;;;:::i;:::-;;:::i;103492:250::-;;;;;;;;;;-1:-1:-1;103492:250:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;;12493:33:1;;;12475:52;;12463:2;12448:18;103492:250:0;12331:202:1;93504:428:0;;;;;;;;;;-1:-1:-1;93504:428:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;105665:144::-;;;;;;;;;;-1:-1:-1;105665:144:0;;;;;:::i;:::-;;:::i;101349:343::-;;;;;;;;;;-1:-1:-1;101349:343:0;;;;;:::i;:::-;;:::i;99518:25::-;;;;;;;;;;-1:-1:-1;99518:25:0;;;;-1:-1:-1;;;;;99518:25:0;;;65198:164;;;;;;;;;;-1:-1:-1;65198:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;65319:25:0;;;65295:4;65319:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;65198:164;102662:822;;;;;;;;;;-1:-1:-1;102662:822:0;;;;;:::i;:::-;;:::i;3081:201::-;;;;;;;;;;-1:-1:-1;3081:201:0;;;;;:::i;:::-;;:::i;103752:241::-;103874:4;103897:46;103931:11;103897:33;:46::i;:::-;:88;;;;103947:38;103973:11;103947:25;:38::i;:::-;103890:95;103752:241;-1:-1:-1;;103752:241:0:o;57758:100::-;57812:13;57845:5;57838:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57758:100;:::o;64249:218::-;64325:7;64350:16;64358:7;64350;:16::i;:::-;64345:64;;64375:34;;-1:-1:-1;;;64375:34:0;;;;;;;;;;;64345:64;-1:-1:-1;64429:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;64429:30:0;;64249:218::o;63682:408::-;63771:13;63787:16;63795:7;63787;:16::i;:::-;63771:32;-1:-1:-1;88015:10:0;-1:-1:-1;;;;;63820:28:0;;;63816:175;;63868:44;63885:5;88015:10;65198:164;:::i;63868:44::-;63863:128;;63940:35;;-1:-1:-1;;;63940:35:0;;;;;;;;;;;63863:128;64003:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;64003:35:0;-1:-1:-1;;;;;64003:35:0;;;;;;;;;64054:28;;64003:24;;64054:28;;;;;;;63760:330;63682:408;;:::o;67888:2825::-;68030:27;68060;68079:7;68060:18;:27::i;:::-;68030:57;;68145:4;-1:-1:-1;;;;;68104:45:0;68120:19;-1:-1:-1;;;;;68104:45:0;;68100:86;;68158:28;;-1:-1:-1;;;68158:28:0;;;;;;;;;;;68100:86;68200:27;66996:24;;;:15;:24;;;;;67224:26;;88015:10;66621:30;;;-1:-1:-1;;;;;66314:28:0;;66599:20;;;66596:56;68386:180;;68479:43;68496:4;88015:10;65198:164;:::i;68479:43::-;68474:92;;68531:35;;-1:-1:-1;;;68531:35:0;;;;;;;;;;;68474:92;-1:-1:-1;;;;;68583:16:0;;68579:52;;68608:23;;-1:-1:-1;;;68608:23:0;;;;;;;;;;;68579:52;68780:15;68777:160;;;68920:1;68899:19;68892:30;68777:160;-1:-1:-1;;;;;69317:24:0;;;;;;;:18;:24;;;;;;69315:26;;-1:-1:-1;;69315:26:0;;;69386:22;;;;;;;;;69384:24;;-1:-1:-1;69384:24:0;;;62540:11;62515:23;62511:41;62498:63;-1:-1:-1;;;62498:63:0;69679:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;69974:47:0;;:52;;69970:627;;70079:1;70069:11;;70047:19;70202:30;;;:17;:30;;;;;;:35;;70198:384;;70340:13;;70325:11;:28;70321:242;;70487:30;;;;:17;:30;;;;;:52;;;70321:242;70028:569;69970:627;70644:7;70640:2;-1:-1:-1;;;;;70625:27:0;70634:4;-1:-1:-1;;;;;70625:27:0;;;;;;;;;;;70663:42;68019:2694;;;67888:2825;;;:::o;8166:442::-;8263:7;8321:27;;;:17;:27;;;;;;;;8292:56;;;;;;;;;-1:-1:-1;;;;;8292:56:0;;;;;-1:-1:-1;;;8292:56:0;;;-1:-1:-1;;;;;8292:56:0;;;;;;;;8263:7;;8361:92;;-1:-1:-1;8412:29:0;;;;;;;;;8422:19;8412:29;-1:-1:-1;;;;;8412:29:0;;;;-1:-1:-1;;;8412:29:0;;-1:-1:-1;;;;;8412:29:0;;;;;8361:92;8503:23;;;;8465:21;;8974:5;;8490:36;;-1:-1:-1;;;;;8490:36:0;:10;:36;:::i;:::-;8489:58;;;;:::i;:::-;8568:16;;;-1:-1:-1;8465:82:0;;-1:-1:-1;;8166:442:0;;;;;;:::o;70809:193::-;70955:39;70972:4;70978:2;70982:7;70955:39;;;;;;;;;;;;:16;:39::i;:::-;70809:193;;;:::o;101702:488::-;35577:21;:19;:21::i;:::-;101834:1:::1;101815:20:::0;;;101812:45:::1;;101844:13;;-1:-1:-1::0;;;101844:13:0::1;;;;;;;;;;;101812:45;101868:38;101890:4;101897:8;;101868:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;101868:13:0::1;::::0;-1:-1:-1;;;101868:38:0:i:1;:::-;101917:24;101932:8;;101917:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;101917:5:0::1;::::0;:24;-1:-1:-1;;101917:14:0::1;:24:::0;-1:-1:-1;101917:24:0:i:1;:::-;101952:14;101969:28;99447:4;101969:8:::0;:28:::1;:::i;:::-;102055:53;::::0;;102066:10:::1;102055:53;::::0;::::1;14925:51:1::0;14992:18;;;14985:34;;;102092:15:0::1;15035:18:1::0;;;15028:34;101952:45:0;;-1:-1:-1;102008:17:0::1;::::0;102051:1:::1;::::0;14898:18:1;;102055:53:0::1;::::0;;-1:-1:-1;;102055:53:0;;::::1;::::0;;;;;;;102028:81:::1;::::0;;102055:53:::1;102028:81;;:::i;:::-;;::::0;;-1:-1:-1;;102028:81:0;;::::1;::::0;;;;;;;102130:8:::1;::::0;102149:10:::1;::::0;102161:6:::1;::::0;-1:-1:-1;;;102120:62:0;;102028:81;;-1:-1:-1;;;;;;102130:8:0;;::::1;::::0;102120:28:::1;::::0;:62:::1;::::0;102149:10;;::::1;::::0;102161:6:::1;::::0;102169;;102028:81;;102120:62:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;101801:389;;35621:20:::0;35015:1;36141:7;:22;35958:213;94091:528;94235:23;94326:8;94301:22;94326:8;-1:-1:-1;;;;;94393:36:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;94393:36:0;;-1:-1:-1;;94393:36:0;;;;;;;;;;;;94356:73;;94449:9;94444:125;94465:14;94460:1;:19;94444:125;;94521:32;94541:8;;94550:1;94541:11;;;;;;;:::i;:::-;;;;;;;94521:19;:32::i;:::-;94505:10;94516:1;94505:13;;;;;;;;:::i;:::-;;;;;;;;;;:48;94481:3;;94444:125;;;-1:-1:-1;94590:10:0;94091:528;-1:-1:-1;;;;94091:528:0:o;59151:152::-;59223:7;59266:27;59285:7;59266:18;:27::i;100596:100::-;2061:13;:11;:13::i;:::-;100670:12:::1;:18;100685:3:::0;100670:12;:18:::1;:::i;:::-;;100596:100:::0;:::o;54693:233::-;54765:7;-1:-1:-1;;;;;54789:19:0;;54785:60;;54817:28;;-1:-1:-1;;;54817:28:0;;;;;;;;;;;54785:60;-1:-1:-1;;;;;;54863:25:0;;;;;:18;:25;;;;;;-1:-1:-1;;;;;54863:55:0;;54693:233::o;2823:103::-;2061:13;:11;:13::i;:::-;2888:30:::1;2915:1;2888:18;:30::i;:::-;2823:103::o:0;97967:900::-;98045:16;98099:19;98133:25;98173:22;98198:16;98208:5;98198:9;:16::i;:::-;98173:41;;98229:25;98271:14;-1:-1:-1;;;;;98257:29:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;98257:29:0;;98229:57;;98301:31;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;98301:31:0;100949:1;98347:472;98396:14;98381:11;:29;98347:472;;98448:15;98461:1;98448:12;:15::i;:::-;98436:27;;98486:9;:16;;;98527:8;98482:73;98577:14;;-1:-1:-1;;;;;98577:28:0;;98573:111;;98650:14;;;-1:-1:-1;98573:111:0;98727:5;-1:-1:-1;;;;;98706:26:0;:17;-1:-1:-1;;;;;98706:26:0;;98702:102;;98783:1;98757:8;98766:13;;;;;;98757:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;98702:102;98412:3;;98347:472;;;-1:-1:-1;98840:8:0;;97967:900;-1:-1:-1;;;;;;97967:900:0:o;100704:153::-;2061:13;:11;:13::i;:::-;100800:49:::1;100819:15;100836:12;100800:18;:49::i;57934:104::-:0;57990:13;58023:7;58016:14;;;;;:::i;95007:2513::-;95150:16;95217:4;95208:5;:13;95204:45;;95230:19;;-1:-1:-1;;;95230:19:0;;;;;;;;;;;95204:45;95264:19;95298:17;95318:14;53278:13;;;53196:103;95318:14;95298:34;-1:-1:-1;100949:1:0;95410:5;:23;95406:87;;;100949:1;95454:23;;95406:87;95569:9;95562:4;:16;95558:73;;;95606:9;95599:16;;95558:73;95645:25;95673:16;95683:5;95673:9;:16::i;:::-;95645:44;;95867:4;95859:5;:12;95855:278;;;95914:12;;;95949:31;;;95945:111;;;96025:11;96005:31;;95945:111;95873:198;95855:278;;;-1:-1:-1;96116:1:0;95855:278;96147:25;96189:17;-1:-1:-1;;;;;96175:32:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;96175:32:0;;96147:60;;96226:17;96247:1;96226:22;96222:78;;96276:8;-1:-1:-1;96269:15:0;;-1:-1:-1;;;96269:15:0;96222:78;96444:31;96478:26;96498:5;96478:19;:26::i;:::-;96444:60;;96519:25;96764:9;:16;;;96759:92;;-1:-1:-1;96821:14:0;;96759:92;96882:5;96865:478;96894:4;96889:1;:9;;:45;;;;;96917:17;96902:11;:32;;96889:45;96865:478;;;96972:15;96985:1;96972:12;:15::i;:::-;96960:27;;97010:9;:16;;;97051:8;97006:73;97101:14;;-1:-1:-1;;;;;97101:28:0;;97097:111;;97174:14;;;-1:-1:-1;97097:111:0;97251:5;-1:-1:-1;;;;;97230:26:0;:17;-1:-1:-1;;;;;97230:26:0;;97226:102;;97307:1;97281:8;97290:13;;;;;;97281:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;97226:102;96936:3;;96865:478;;;-1:-1:-1;;;97428:29:0;;;-1:-1:-1;97435:8:0;;-1:-1:-1;;95007:2513:0;;;;;;:::o;64807:234::-;88015:10;64902:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;64902:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;64902:60:0;;;;;;;;;;64978:55;;540:41:1;;;64902:49:0;;88015:10;64978:55;;513:18:1;64978:55:0;;;;;;;64807:234;;:::o;101142:199::-;101226:9;101222:112;101245:8;:15;101241:1;:19;101222:112;;;101281:41;101294:10;101306:2;101310:8;101319:1;101310:11;;;;;;;;:::i;:::-;;;;;;;101281:12;:41::i;:::-;101262:3;;;;:::i;:::-;;;;101222:112;;71600:407;71775:31;71788:4;71794:2;71798:7;71775:12;:31::i;:::-;-1:-1:-1;;;;;71821:14:0;;;:19;71817:183;;71860:56;71891:4;71897:2;71901:7;71910:5;71860:30;:56::i;:::-;71855:145;;71944:40;;-1:-1:-1;;;71944:40:0;;;;;;;;;;;71855:145;71600:407;;;;:::o;103492:250::-;103675:6;103701:33;;-1:-1:-1;;;103701:33:0;;;;;;;;;;;93504:428;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;100949:1:0;93668:7;:25;:54;;;-1:-1:-1;53278:13:0;;93697:7;:25;;93668:54;93664:103;;;93746:9;93504:428;-1:-1:-1;;93504:428:0:o;93664:103::-;93789:21;93802:7;93789:12;:21::i;:::-;93777:33;;93825:9;:16;;;93821:65;;;93865:9;93504:428;-1:-1:-1;;93504:428:0:o;93821:65::-;93903:21;93916:7;93903:12;:21::i;105665:144::-;105749:13;105782:19;105793:7;105782:10;:19::i;101349:343::-;35577:21;:19;:21::i;:::-;101450:1:::1;101431:20:::0;;;101428:45:::1;;101460:13;;-1:-1:-1::0;;;101460:13:0::1;;;;;;;;;;;101428:45;101484:38;101506:4;101513:8;;101484:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;101484:13:0::1;::::0;-1:-1:-1;;;101484:38:0:i:1;:::-;101533:24;101548:8;;101533:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;101533:5:0::1;::::0;:24;-1:-1:-1;;101533:14:0::1;:24:::0;-1:-1:-1;101533:24:0:i:1;:::-;101568:14;101585:28;99447:4;101585:8:::0;:28:::1;:::i;:::-;101634:8;::::0;101665:6:::1;::::0;101624:60:::1;::::0;-1:-1:-1;;;101624:60:0;;101653:10:::1;101624:60;::::0;::::1;18738:34:1::0;-1:-1:-1;;;;;101665:6:0;;::::1;18788:18:1::0;;;18781:43;18840:18;;;18833:34;;;18903:3;18883:18;;;18876:31;-1:-1:-1;18923:19:1;;;18916:30;101568:45:0;;-1:-1:-1;101634:8:0::1;::::0;101624:28:::1;::::0;18963:19:1;;101624:60:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;101417:275;35621:20:::0;35015:1;36141:7;:22;35958:213;102662:822;102846:6;35577:21;:19;:21::i;:::-;102874:6:::1;::::0;-1:-1:-1;;;;;102874:6:0::1;102868:12:::0;::::1;102865:39;;102889:15;;-1:-1:-1::0;;;102889:15:0::1;;;;;;;;;;;102865:39;102932:8;::::0;-1:-1:-1;;;;;102932:8:0::1;102918:10;:22;102915:49;;102949:15;;-1:-1:-1::0;;;102949:15:0::1;;;;;;;;;;;102915:49;103042:25:::0;::::1;102977:17;103109:19;99447:4;103109:6:::0;:19:::1;:::i;:::-;103090:38:::0;-1:-1:-1;103139:14:0::1;103165:21;99447:4;103090:38:::0;103165:21:::1;:::i;:::-;103156:30;::::0;:6;:30:::1;:::i;:::-;103139:47:::0;-1:-1:-1;103202:12:0;;103199:83:::1;;103231:36;103247:9;103258:8;103231:15;:36::i;:::-;103305:10:::0;;103302:124:::1;;103342:8;::::0;103395:6:::1;::::0;103332:82:::1;::::0;-1:-1:-1;;;103332:82:0;;103377:4:::1;103332:82;::::0;::::1;19459:34:1::0;-1:-1:-1;;;;;19529:15:1;;;19509:18;;;19502:43;103395:6:0;;::::1;19561:18:1::0;;;19554:43;19613:18;;;19606:34;;;19439:3;19656:19;;;19649:32;-1:-1:-1;19697:19:1;;;19690:30;103342:8:0;::::1;::::0;103332:36:::1;::::0;19737:19:1;;103332:82:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;103302:124;-1:-1:-1::0;;;;103445:31:0;-1:-1:-1;;;35621:20:0;35015:1;36141:7;:22;35958:213;35621:20;102662:822;;;;;;;;:::o;3081:201::-;2061:13;:11;:13::i;:::-;-1:-1:-1;;;;;3170:22:0;::::1;3162:73;;;::::0;-1:-1:-1;;;3162:73:0;;19969:2:1;3162:73:0::1;::::0;::::1;19951:21:1::0;20008:2;19988:18;;;19981:30;20047:34;20027:18;;;20020:62;-1:-1:-1;;;20098:18:1;;;20091:36;20144:19;;3162:73:0::1;;;;;;;;;3246:28;3265:8;3246:18;:28::i;:::-;3081:201:::0;:::o;17781:223::-;17883:4;-1:-1:-1;;;;;;17907:49:0;;-1:-1:-1;;;17907:49:0;;:89;;;17960:36;17984:11;17960:23;:36::i;7896:215::-;7998:4;-1:-1:-1;;;;;;8022:41:0;;-1:-1:-1;;;8022:41:0;;:81;;-1:-1:-1;;;;;;;;;;6449:40:0;;;8067:36;6340:157;65620:282;65685:4;65741:7;100949:1;65722:26;;:66;;;;;65775:13;;65765:7;:23;65722:66;:153;;;;-1:-1:-1;;65826:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;65826:44:0;:49;;65620:282::o;60306:1275::-;60373:7;60408;;100949:1;60457:23;60453:1061;;60510:13;;60503:4;:20;60499:1015;;;60548:14;60565:23;;;:17;:23;;;;;;;-1:-1:-1;;;60654:24:0;;:29;;60650:845;;61319:113;61326:6;61336:1;61326:11;61319:113;;-1:-1:-1;;;61397:6:0;61379:25;;;;:17;:25;;;;;;61319:113;;60650:845;60525:989;60499:1015;61542:31;;-1:-1:-1;;;61542:31:0;;;;;;;;;;;35657:293;35059:1;35791:7;;:19;35783:63;;;;-1:-1:-1;;;35783:63:0;;20376:2:1;35783:63:0;;;20358:21:1;20415:2;20395:18;;;20388:30;20454:33;20434:18;;;20427:61;20505:18;;35783:63:0;20174:355:1;35783:63:0;35059:1;35924:7;:18;35657:293::o;37165:187::-;37253:9;37249:96;37272:6;:13;37268:1;:17;37249:96;;;37307:5;:10;;37323:6;37330:1;37323:9;;;;;;;;:::i;:::-;;;;;;;;;;;;37307:26;;;;;;;-1:-1:-1;37307:26:0;;;;;;;;;37287:3;;;;:::i;:::-;;;;37249:96;;2340:132;2221:7;2248:6;-1:-1:-1;;;;;2248:6:0;88015:10;2404:23;2396:68;;;;-1:-1:-1;;;2396:68:0;;20736:2:1;2396:68:0;;;20718:21:1;;;20755:18;;;20748:30;20814:34;20794:18;;;20787:62;20866:18;;2396:68:0;20534:356:1;3442:191:0;3516:16;3535:6;;-1:-1:-1;;;;;3552:17:0;;;-1:-1:-1;;;;;;3552:17:0;;;;;;3585:40;;3535:6;;;;;;;3585:40;;3516:16;3585:40;3505:128;3442:191;:::o;59754:161::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59882:24:0;;;;:17;:24;;;;;;59863:44;;:18;:44::i;9258:332::-;8974:5;-1:-1:-1;;;;;9361:33:0;;;;9353:88;;;;-1:-1:-1;;;9353:88:0;;21097:2:1;9353:88:0;;;21079:21:1;21136:2;21116:18;;;21109:30;21175:34;21155:18;;;21148:62;-1:-1:-1;;;21226:18:1;;;21219:40;21276:19;;9353:88:0;20895:406:1;9353:88:0;-1:-1:-1;;;;;9460:22:0;;9452:60;;;;-1:-1:-1;;;9452:60:0;;21508:2:1;9452:60:0;;;21490:21:1;21547:2;21527:18;;;21520:30;21586:27;21566:18;;;21559:55;21631:18;;9452:60:0;21306:349:1;9452:60:0;9547:35;;;;;;;;;-1:-1:-1;;;;;9547:35:0;;;;;;-1:-1:-1;;;;;9547:35:0;;;;;;;;;;-1:-1:-1;;;9525:57:0;;;;:19;:57;9258:332::o;74091:716::-;74275:88;;-1:-1:-1;;;74275:88:0;;74254:4;;-1:-1:-1;;;;;74275:45:0;;;;;:88;;88015:10;;74342:4;;74348:7;;74357:5;;74275:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;74275:88:0;;;;;;;;-1:-1:-1;;74275:88:0;;;;;;;;;;;;:::i;:::-;;;74271:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74558:6;:13;74575:1;74558:18;74554:235;;74604:40;;-1:-1:-1;;;74604:40:0;;;;;;;;;;;74554:235;74747:6;74741:13;74732:6;74728:2;74724:15;74717:38;74271:529;-1:-1:-1;;;;;;74434:64:0;-1:-1:-1;;;74434:64:0;;-1:-1:-1;74271:529:0;74091:716;;;;;;:::o;59492:166::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59603:47:0;59622:27;59641:7;59622:18;:27::i;:::-;59603:18;:47::i;104001:1654::-;104120:38;;-1:-1:-1;;;104120:38:0;;;22638:24:1;22678:11;;;22671:27;;;104061:13:0;;104087:12;;22714::1;;104120:38:0;;;-1:-1:-1;;104120:38:0;;;;;;;;;104110:49;;104120:38;104110:49;;;;;-1:-1:-1;104202:3:0;104194:11;;;104102:58;104233:13;104244:2;104194:11;104233:13;:::i;:::-;:17;;104249:1;104233:17;:::i;:::-;104217:33;-1:-1:-1;104292:4:0;104285:11;;104261:15;104350:1;104338:13;;104335:489;;;-1:-1:-1;104379:1:0;104335:489;;;104413:2;104401:9;:14;;;104398:426;;;-1:-1:-1;104443:1:0;104398:426;;;104477:2;104465:9;:14;;;104462:362;;;-1:-1:-1;104507:1:0;104462:362;;;104541:2;104529:9;:14;;;104526:298;;;-1:-1:-1;104571:1:0;104526:298;;;104605:3;104593:9;:15;;;104590:234;;;-1:-1:-1;104636:1:0;104590:234;;;104670:3;104658:9;:15;;;104655:169;;;-1:-1:-1;104701:1:0;104655:169;;;104735:3;104723:9;:15;;;104720:104;;;-1:-1:-1;104766:1:0;104720:104;;;-1:-1:-1;104811:1:0;104720:104;104836:19;104941:5;104947:11;104957:1;104947:7;:11;:::i;:::-;104941:18;;;;;;;;;;:::i;:::-;;;;;;;;105032:9;105053:1;105042:8;:12;;;;:::i;:::-;105032:23;;;;;;;;;;:::i;:::-;;;;;;;;104858:228;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;104858:228:0;;;;;;;;;;-1:-1:-1;;;;;;25269:3:1;25303:16;;;25299:25;;104858:228:0;105163:35;;25287:38:1;25358:16;;;25354:25;25341:11;;;25334:46;104858:228:0;-1:-1:-1;105099:23:0;;105125:80;;25396:11:1;;105163:35:0;;;;;;;;;;;;105153:46;;;;;;105145:55;;105202:2;105125:19;:80::i;:::-;105099:106;;105216:21;105295:25;105312:7;105295:16;:25::i;:::-;105429:12;105443:9;105490:6;105240:285;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;105216:309;;105627:8;105552:94;;;;;;;;:::i;:::-;;;;;;;;;;;;;105538:109;;;;;;;;;;104001:1654;;;:::o;102198:422::-;102283:8;102295:1;102283:13;102280:25;;102198:422;;:::o;102280:25::-;102315;102343:23;:5;102357:8;102343:13;:23::i;:::-;102315:51;;102398:8;102380;:15;:26;102377:236;;;102423:39;;-1:-1:-1;;;102423:39:0;;:4;;:18;;:39;;102442:9;;102453:8;;102423:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;102477:52;102491:9;102513:8;:15;102502:8;:26;;;;:::i;:::-;102477:13;:52::i;102377:236::-;102562:39;;-1:-1:-1;;;102562:39:0;;:4;;:18;;:39;;102581:9;;102592:8;;102562:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;102269:351;102198:422;;:::o;56856:639::-;56941:4;-1:-1:-1;;;;;;;;;57265:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;57342:25:0;;;57265:102;:179;;;-1:-1:-1;;;;;;;;57419:25:0;-1:-1:-1;;;57419:25:0;;56856:639::o;61680:366::-;-1:-1:-1;;;;;;;;;;;;;61790:41:0;;;;49511:3;61876:33;;;-1:-1:-1;;;;;61842:68:0;-1:-1:-1;;;61842:68:0;-1:-1:-1;;;61940:24:0;;:29;;-1:-1:-1;;;61921:48:0;;;;50032:3;62009:28;;;;-1:-1:-1;;;61980:58:0;-1:-1:-1;61680:366:0:o;32462:447::-;32537:13;32563:19;32595:10;32599:6;32595:1;:10;:::i;:::-;:14;;32608:1;32595:14;:::i;:::-;-1:-1:-1;;;;;32585:25:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32585:25:0;;32563:47;;-1:-1:-1;;;32621:6:0;32628:1;32621:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;32621:15:0;;;;;;;;;-1:-1:-1;;;32647:6:0;32654:1;32647:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;32647:15:0;;;;;;;;-1:-1:-1;32678:9:0;32690:10;32694:6;32690:1;:10;:::i;:::-;:14;;32703:1;32690:14;:::i;:::-;32678:26;;32673:131;32710:1;32706;:5;32673:131;;;-1:-1:-1;;;32754:5:0;32762:3;32754:11;32745:21;;;;;;;:::i;:::-;;;;32733:6;32740:1;32733:9;;;;;;;;:::i;:::-;;;;:33;-1:-1:-1;;;;;32733:33:0;;;;;;;;-1:-1:-1;32791:1:0;32781:11;;;;;32713:3;;;:::i;:::-;;;32673:131;;;-1:-1:-1;32822:10:0;;32814:55;;;;-1:-1:-1;;;32814:55:0;;28383:2:1;32814:55:0;;;28365:21:1;;;28402:18;;;28395:30;28461:34;28441:18;;;28434:62;28513:18;;32814:55:0;28181:356:1;31330:716:0;31386:13;31437:14;31454:17;31465:5;31454:10;:17::i;:::-;31474:1;31454:21;31437:38;;31490:20;31524:6;-1:-1:-1;;;;;31513:18:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31513:18:0;-1:-1:-1;31490:41:0;-1:-1:-1;31655:28:0;;;31671:2;31655:28;31712:288;-1:-1:-1;;31744:5:0;-1:-1:-1;;;31881:2:0;31870:14;;31865:30;31744:5;31852:44;31942:2;31933:11;;;-1:-1:-1;31963:21:0;31712:288;31963:21;-1:-1:-1;32021:6:0;31330:716;-1:-1:-1;;;31330:716:0:o;37740:691::-;37810:23;37846:28;;37861:13;37846:28;37458:10;;;:17;37443:11;;:32;37903:13;37885:31;37949:4;37933:13;37940:5;37933:6;:13::i;:::-;:20;37929:495;;;37993:4;-1:-1:-1;;;;;37979:19:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37979:19:0;;37970:28;;38017:9;38013:108;38036:4;38032:1;:8;38013:108;;;38089:11;;38078:10;;;;38089:15;;38103:1;;38089:15;:::i;:::-;38078:27;;;;;;;;:::i;:::-;;;;;;;;;38066:6;38073:1;38066:9;;;;;;;;:::i;:::-;;;;;;;;;;:39;38042:3;;;;:::i;:::-;;;;38013:108;;;-1:-1:-1;38149:11:0;;:18;;38163:4;;38149:18;:::i;:::-;38135:32;;37929:495;;;38207:13;38214:5;38207:6;:13::i;:::-;38200:20;;38258:4;-1:-1:-1;;;;;38244:19:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38244:19:0;;38235:28;;38282:9;38278:108;38301:4;38297:1;:8;38278:108;;;38354:11;;38343:10;;;;38354:15;;38368:1;;38354:15;:::i;:::-;38343:27;;;;;;;;:::i;:::-;;;;;;;;;38331:6;38338:1;38331:9;;;;;;;;:::i;:::-;;;;;;;;;;:39;38307:3;;;;:::i;:::-;;;;38278:108;;;;38400:12;38406:5;38400;:12::i;100966:168::-;53783:12;;53767:13;;99398:5;;101055;;53767:28;-1:-1:-1;;53767:46:0;101039:21;;;;:::i;:::-;:34;101036:63;;;101082:17;;-1:-1:-1;;;101082:17:0;;;;;;;;;;;101036:63;101110:16;101116:2;101120:5;101110;:16::i;28190:922::-;28243:7;;-1:-1:-1;;;28321:15:0;;28317:102;;-1:-1:-1;;;28357:15:0;;;-1:-1:-1;28401:2:0;28391:12;28317:102;28446:6;28437:5;:15;28433:102;;28482:6;28473:15;;;-1:-1:-1;28517:2:0;28507:12;28433:102;28562:6;28553:5;:15;28549:102;;28598:6;28589:15;;;-1:-1:-1;28633:2:0;28623:12;28549:102;28678:5;28669;:14;28665:99;;28713:5;28704:14;;;-1:-1:-1;28747:1:0;28737:11;28665:99;28791:5;28782;:14;28778:99;;28826:5;28817:14;;;-1:-1:-1;28860:1:0;28850:11;28778:99;28904:5;28895;:14;28891:99;;28939:5;28930:14;;;-1:-1:-1;28973:1:0;28963:11;28891:99;29017:5;29008;:14;29004:66;;29053:1;29043:11;29098:6;28190:922;-1:-1:-1;;28190:922:0:o;37491:126::-;37598:11;;37578:10;;;:17;37551:7;;37578:31;;;:::i;37625:107::-;37681:17;37688:10;;;;37681:17;:::i;:::-;37723:1;37709:15;;37625:107::o;75269:2966::-;75365:13;;75342:20;75393:13;;;75389:44;;75415:18;;-1:-1:-1;;;75415:18:0;;;;;;;;;;;75389:44;-1:-1:-1;;;;;75921:22:0;;;;;;:18;:22;;;;48990:2;75921:22;;;:71;;75959:32;75947:45;;75921:71;;;76235:31;;;:17;:31;;;;;-1:-1:-1;62971:15:0;;62945:24;62941:46;62540:11;62515:23;62511:41;62508:52;62498:63;;76235:173;;76470:23;;;;76235:31;;75921:22;;77235:25;75921:22;;77088:335;77749:1;77735:12;77731:20;77689:346;77790:3;77781:7;77778:16;77689:346;;78008:7;77998:8;77995:1;77968:25;77965:1;77962;77957:59;77843:1;77830:15;77689:346;;;77693:77;78068:8;78080:1;78068:13;78064:45;;78090:19;;-1:-1:-1;;;78090:19:0;;;;;;;;;;;78064:45;78126:13;:19;-1:-1:-1;70809:193:0;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;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:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2568:328::-;2645:6;2653;2661;2714:2;2702:9;2693:7;2689:23;2685:32;2682:52;;;2730:1;2727;2720:12;2682:52;2753:29;2772:9;2753:29;:::i;:::-;2743:39;;2801:38;2835:2;2824:9;2820:18;2801:38;:::i;:::-;2791:48;;2886:2;2875:9;2871:18;2858:32;2848:42;;2568:328;;;;;:::o;2901:248::-;2969:6;2977;3030:2;3018:9;3009:7;3005:23;3001:32;2998:52;;;3046:1;3043;3036:12;2998:52;-1:-1:-1;;3069:23:1;;;3139:2;3124:18;;;3111:32;;-1:-1:-1;2901:248:1:o;3433:367::-;3496:8;3506:6;3560:3;3553:4;3545:6;3541:17;3537:27;3527:55;;3578:1;3575;3568:12;3527:55;-1:-1:-1;3601:20:1;;-1:-1:-1;;;;;3633:30:1;;3630:50;;;3676:1;3673;3666:12;3630:50;3713:4;3705:6;3701:17;3689:29;;3773:3;3766:4;3756:6;3753:1;3749:14;3741:6;3737:27;3733:38;3730:47;3727:67;;;3790:1;3787;3780:12;3805:505;3900:6;3908;3916;3969:2;3957:9;3948:7;3944:23;3940:32;3937:52;;;3985:1;3982;3975:12;3937:52;4025:9;4012:23;-1:-1:-1;;;;;4050:6:1;4047:30;4044:50;;;4090:1;4087;4080:12;4044:50;4129:70;4191:7;4182:6;4171:9;4167:22;4129:70;:::i;:::-;4218:8;;4103:96;;-1:-1:-1;4300:2:1;4285:18;;;;4272:32;;3805:505;-1:-1:-1;;;;3805:505:1:o;4315:437::-;4401:6;4409;4462:2;4450:9;4441:7;4437:23;4433:32;4430:52;;;4478:1;4475;4468:12;4430:52;4518:9;4505:23;-1:-1:-1;;;;;4543:6:1;4540:30;4537:50;;;4583:1;4580;4573:12;4537:50;4622:70;4684:7;4675:6;4664:9;4660:22;4622:70;:::i;:::-;4711:8;;4596:96;;-1:-1:-1;4315:437:1;-1:-1:-1;;;;4315:437:1:o;4757:349::-;4841:12;;-1:-1:-1;;;;;4837:38:1;4825:51;;4929:4;4918:16;;;4912:23;-1:-1:-1;;;;;4908:48:1;4892:14;;;4885:72;5020:4;5009:16;;;5003:23;4996:31;4989:39;4973:14;;;4966:63;5082:4;5071:16;;;5065:23;5090:8;5061:38;5045:14;;5038:62;4757:349::o;5111:724::-;5346:2;5398:21;;;5468:13;;5371:18;;;5490:22;;;5317:4;;5346:2;5569:15;;;;5543:2;5528:18;;;5317:4;5612:197;5626:6;5623:1;5620:13;5612:197;;;5675:52;5723:3;5714:6;5708:13;5675:52;:::i;:::-;5784:15;;;;5756:4;5747:14;;;;;5648:1;5641:9;5612:197;;5840:127;5901:10;5896:3;5892:20;5889:1;5882:31;5932:4;5929:1;5922:15;5956:4;5953:1;5946:15;5972:275;6043:2;6037:9;6108:2;6089:13;;-1:-1:-1;;6085:27:1;6073:40;;-1:-1:-1;;;;;6128:34:1;;6164:22;;;6125:62;6122:88;;;6190:18;;:::i;:::-;6226:2;6219:22;5972:275;;-1:-1:-1;5972:275:1:o;6252:407::-;6317:5;-1:-1:-1;;;;;6343:6:1;6340:30;6337:56;;;6373:18;;:::i;:::-;6411:57;6456:2;6435:15;;-1:-1:-1;;6431:29:1;6462:4;6427:40;6411:57;:::i;:::-;6402:66;;6491:6;6484:5;6477:21;6531:3;6522:6;6517:3;6513:16;6510:25;6507:45;;;6548:1;6545;6538:12;6507:45;6597:6;6592:3;6585:4;6578:5;6574:16;6561:43;6651:1;6644:4;6635:6;6628:5;6624:18;6620:29;6613:40;6252:407;;;;;:::o;6664:451::-;6733:6;6786:2;6774:9;6765:7;6761:23;6757:32;6754:52;;;6802:1;6799;6792:12;6754:52;6842:9;6829:23;-1:-1:-1;;;;;6867:6:1;6864:30;6861:50;;;6907:1;6904;6897:12;6861:50;6930:22;;6983:4;6975:13;;6971:27;-1:-1:-1;6961:55:1;;7012:1;7009;7002:12;6961:55;7035:74;7101:7;7096:2;7083:16;7078:2;7074;7070:11;7035:74;:::i;7120:186::-;7179:6;7232:2;7220:9;7211:7;7207:23;7203:32;7200:52;;;7248:1;7245;7238:12;7200:52;7271:29;7290:9;7271:29;:::i;7311:435::-;7364:3;7402:5;7396:12;7429:6;7424:3;7417:19;7455:4;7484:2;7479:3;7475:12;7468:19;;7521:2;7514:5;7510:14;7542:1;7552:169;7566:6;7563:1;7560:13;7552:169;;;7627:13;;7615:26;;7661:12;;;;7696:15;;;;7588:1;7581:9;7552:169;;;-1:-1:-1;7737:3:1;;7311:435;-1:-1:-1;;;;;7311:435:1:o;7751:261::-;7930:2;7919:9;7912:21;7893:4;7950:56;8002:2;7991:9;7987:18;7979:6;7950:56;:::i;8017:366::-;8084:6;8092;8145:2;8133:9;8124:7;8120:23;8116:32;8113:52;;;8161:1;8158;8151:12;8113:52;8184:29;8203:9;8184:29;:::i;:::-;8174:39;;8263:2;8252:9;8248:18;8235:32;-1:-1:-1;;;;;8300:5:1;8296:38;8289:5;8286:49;8276:77;;8349:1;8346;8339:12;8276:77;8372:5;8362:15;;;8017:366;;;;;:::o;8388:322::-;8465:6;8473;8481;8534:2;8522:9;8513:7;8509:23;8505:32;8502:52;;;8550:1;8547;8540:12;8502:52;8573:29;8592:9;8573:29;:::i;:::-;8563:39;8649:2;8634:18;;8621:32;;-1:-1:-1;8700:2:1;8685:18;;;8672:32;;8388:322;-1:-1:-1;;;8388:322:1:o;8715:347::-;8780:6;8788;8841:2;8829:9;8820:7;8816:23;8812:32;8809:52;;;8857:1;8854;8847:12;8809:52;8880:29;8899:9;8880:29;:::i;:::-;8870:39;;8959:2;8948:9;8944:18;8931:32;9006:5;8999:13;8992:21;8985:5;8982:32;8972:60;;9028:1;9025;9018:12;9067:1020;9160:6;9168;9221:2;9209:9;9200:7;9196:23;9192:32;9189:52;;;9237:1;9234;9227:12;9189:52;9260:29;9279:9;9260:29;:::i;:::-;9250:39;;9308:2;9361;9350:9;9346:18;9333:32;-1:-1:-1;;;;;9425:2:1;9417:6;9414:14;9411:34;;;9441:1;9438;9431:12;9411:34;9479:6;9468:9;9464:22;9454:32;;9524:7;9517:4;9513:2;9509:13;9505:27;9495:55;;9546:1;9543;9536:12;9495:55;9582:2;9569:16;9604:2;9600;9597:10;9594:36;;;9610:18;;:::i;:::-;9656:2;9653:1;9649:10;9639:20;;9679:28;9703:2;9699;9695:11;9679:28;:::i;:::-;9741:15;;;9811:11;;;9807:20;;;9772:12;;;;9839:19;;;9836:39;;;9871:1;9868;9861:12;9836:39;9895:11;;;;9915:142;9931:6;9926:3;9923:15;9915:142;;;9997:17;;9985:30;;9948:12;;;;10035;;;;9915:142;;;10076:5;10066:15;;;;;;;;9067:1020;;;;;:::o;10092:667::-;10187:6;10195;10203;10211;10264:3;10252:9;10243:7;10239:23;10235:33;10232:53;;;10281:1;10278;10271:12;10232:53;10304:29;10323:9;10304:29;:::i;:::-;10294:39;;10352:38;10386:2;10375:9;10371:18;10352:38;:::i;:::-;10342:48;;10437:2;10426:9;10422:18;10409:32;10399:42;;10492:2;10481:9;10477:18;10464:32;-1:-1:-1;;;;;10511:6:1;10508:30;10505:50;;;10551:1;10548;10541:12;10505:50;10574:22;;10627:4;10619:13;;10615:27;-1:-1:-1;10605:55:1;;10656:1;10653;10646:12;10605:55;10679:74;10745:7;10740:2;10727:16;10722:2;10718;10714:11;10679:74;:::i;:::-;10669:84;;;10092:667;;;;;;;:::o;10764:347::-;10815:8;10825:6;10879:3;10872:4;10864:6;10860:17;10856:27;10846:55;;10897:1;10894;10887:12;10846:55;-1:-1:-1;10920:20:1;;-1:-1:-1;;;;;10952:30:1;;10949:50;;;10995:1;10992;10985:12;10949:50;11032:4;11024:6;11020:17;11008:29;;11084:3;11077:4;11068:6;11060;11056:19;11052:30;11049:39;11046:59;;;11101:1;11098;11091:12;11116:1210;11276:6;11284;11292;11300;11308;11316;11324;11332;11385:3;11373:9;11364:7;11360:23;11356:33;11353:53;;;11402:1;11399;11392:12;11353:53;11425:29;11444:9;11425:29;:::i;:::-;11415:39;;11473:38;11507:2;11496:9;11492:18;11473:38;:::i;:::-;11463:48;;11562:2;11551:9;11547:18;11534:32;-1:-1:-1;;;;;11626:2:1;11618:6;11615:14;11612:34;;;11642:1;11639;11632:12;11612:34;11681:70;11743:7;11734:6;11723:9;11719:22;11681:70;:::i;:::-;11770:8;;-1:-1:-1;11655:96:1;-1:-1:-1;11858:2:1;11843:18;;11830:32;;-1:-1:-1;11874:16:1;;;11871:36;;;11903:1;11900;11893:12;11871:36;11942:72;12006:7;11995:8;11984:9;11980:24;11942:72;:::i;:::-;12033:8;;-1:-1:-1;11916:98:1;-1:-1:-1;12121:3:1;12106:19;;12093:33;;-1:-1:-1;12138:16:1;;;12135:36;;;12167:1;12164;12157:12;12135:36;;12206:60;12258:7;12247:8;12236:9;12232:24;12206:60;:::i;:::-;11116:1210;;;;-1:-1:-1;11116:1210:1;;-1:-1:-1;11116:1210:1;;;;;;12285:8;-1:-1:-1;;;11116:1210:1:o;12538:268::-;12736:3;12721:19;;12749:51;12725:9;12782:6;12749:51;:::i;12811:260::-;12879:6;12887;12940:2;12928:9;12919:7;12915:23;12911:32;12908:52;;;12956:1;12953;12946:12;12908:52;12979:29;12998:9;12979:29;:::i;:::-;12969:39;;13027:38;13061:2;13050:9;13046:18;13027:38;:::i;:::-;13017:48;;12811:260;;;;;:::o;13076:695::-;13182:6;13190;13198;13206;13214;13222;13275:3;13263:9;13254:7;13250:23;13246:33;13243:53;;;13292:1;13289;13282:12;13243:53;13315:29;13334:9;13315:29;:::i;:::-;13305:39;;13363:38;13397:2;13386:9;13382:18;13363:38;:::i;:::-;13353:48;;13448:2;13437:9;13433:18;13420:32;13410:42;;13499:2;13488:9;13484:18;13471:32;13461:42;;13554:3;13543:9;13539:19;13526:33;-1:-1:-1;;;;;13574:6:1;13571:30;13568:50;;;13614:1;13611;13604:12;13568:50;13653:58;13703:7;13694:6;13683:9;13679:22;13653:58;:::i;:::-;13076:695;;;;-1:-1:-1;13076:695:1;;-1:-1:-1;13076:695:1;;13730:8;;13076:695;-1:-1:-1;;;13076:695:1:o;13776:380::-;13855:1;13851:12;;;;13898;;;13919:61;;13973:4;13965:6;13961:17;13951:27;;13919:61;14026:2;14018:6;14015:14;13995:18;13992:38;13989:161;;14072:10;14067:3;14063:20;14060:1;14053:31;14107:4;14104:1;14097:15;14135:4;14132:1;14125:15;13989:161;;13776:380;;;:::o;14161:127::-;14222:10;14217:3;14213:20;14210:1;14203:31;14253:4;14250:1;14243:15;14277:4;14274:1;14267:15;14293:168;14366:9;;;14397;;14414:15;;;14408:22;;14394:37;14384:71;;14435:18;;:::i;14466:127::-;14527:10;14522:3;14518:20;14515:1;14508:31;14558:4;14555:1;14548:15;14582:4;14579:1;14572:15;14598:120;14638:1;14664;14654:35;;14669:18;;:::i;:::-;-1:-1:-1;14703:9:1;;14598:120::o;15073:385::-;15287:3;15282;15278:13;15269:6;15264:3;15260:16;15256:36;15251:3;15244:49;15226:3;15322:6;15316:13;15338:74;15405:6;15401:1;15396:3;15392:11;15385:4;15377:6;15373:17;15338:74;:::i;:::-;15432:16;;;;15450:1;15428:24;;15073:385;-1:-1:-1;;;15073:385:1:o;15463:489::-;-1:-1:-1;;;;;15732:15:1;;;15714:34;;15784:15;;15779:2;15764:18;;15757:43;15831:2;15816:18;;15809:34;;;15879:3;15874:2;15859:18;;15852:31;;;15657:4;;15900:46;;15926:19;;15918:6;15900:46;:::i;15957:127::-;16018:10;16013:3;16009:20;16006:1;15999:31;16049:4;16046:1;16039:15;16073:4;16070:1;16063:15;16215:545;16317:2;16312:3;16309:11;16306:448;;;16353:1;16378:5;16374:2;16367:17;16423:4;16419:2;16409:19;16493:2;16481:10;16477:19;16474:1;16470:27;16464:4;16460:38;16529:4;16517:10;16514:20;16511:47;;;-1:-1:-1;16552:4:1;16511:47;16607:2;16602:3;16598:12;16595:1;16591:20;16585:4;16581:31;16571:41;;16662:82;16680:2;16673:5;16670:13;16662:82;;;16725:17;;;16706:1;16695:13;16662:82;;16936:1352;17062:3;17056:10;-1:-1:-1;;;;;17081:6:1;17078:30;17075:56;;;17111:18;;:::i;:::-;17140:97;17230:6;17190:38;17222:4;17216:11;17190:38;:::i;:::-;17184:4;17140:97;:::i;:::-;17292:4;;17356:2;17345:14;;17373:1;17368:663;;;;18075:1;18092:6;18089:89;;;-1:-1:-1;18144:19:1;;;18138:26;18089:89;-1:-1:-1;;16893:1:1;16889:11;;;16885:24;16881:29;16871:40;16917:1;16913:11;;;16868:57;18191:81;;17338:944;;17368:663;16162:1;16155:14;;;16199:4;16186:18;;-1:-1:-1;;17404:20:1;;;17522:236;17536:7;17533:1;17530:14;17522:236;;;17625:19;;;17619:26;17604:42;;17717:27;;;;17685:1;17673:14;;;;17552:19;;17522:236;;;17526:3;17786:6;17777:7;17774:19;17771:201;;;17847:19;;;17841:26;-1:-1:-1;;17930:1:1;17926:14;;;17942:3;17922:24;17918:37;17914:42;17899:58;17884:74;;17771:201;-1:-1:-1;;;;;18018:1:1;18002:14;;;17998:22;17985:36;;-1:-1:-1;16936:1352:1:o;18293:135::-;18332:3;18353:17;;;18350:43;;18373:18;;:::i;:::-;-1:-1:-1;18420:1:1;18409:13;;18293:135::o;18993:128::-;19060:9;;;19081:11;;;19078:37;;;19095:18;;:::i;22154:249::-;22223:6;22276:2;22264:9;22255:7;22251:23;22247:32;22244:52;;;22292:1;22289;22282:12;22244:52;22324:9;22318:16;22343:30;22367:5;22343:30;:::i;22737:157::-;22767:1;22801:4;22798:1;22794:12;22825:3;22815:37;;22832:18;;:::i;:::-;22884:3;22877:4;22874:1;22870:12;22866:22;22861:27;;;22737:157;;;;:::o;22899:148::-;22987:4;22966:12;;;22980;;;22962:31;;23005:13;;23002:39;;;23021:18;;:::i;23052:151::-;23142:4;23135:12;;;23121;;;23117:31;;23160:14;;23157:40;;;23177:18;;:::i;23208:722::-;23258:3;23299:5;23293:12;23328:36;23354:9;23328:36;:::i;:::-;23383:1;23400:18;;;23427:133;;;;23574:1;23569:355;;;;23393:531;;23427:133;-1:-1:-1;;23460:24:1;;23448:37;;23533:14;;23526:22;23514:35;;23505:45;;;-1:-1:-1;23427:133:1;;23569:355;23600:5;23597:1;23590:16;23629:4;23674:2;23671:1;23661:16;23699:1;23713:165;23727:6;23724:1;23721:13;23713:165;;;23805:14;;23792:11;;;23785:35;23848:16;;;;23742:10;;23713:165;;;23717:3;;;23907:6;23902:3;23898:16;23891:23;;23393:531;;;;;23208:722;;;;:::o;23935:1166::-;-1:-1:-1;;;24631:68:1;;-1:-1:-1;;;24773:2:1;24764:12;;24757:24;;;24613:3;;24800:47;24843:2;24834:12;;24826:6;24800:47;:::i;:::-;24867:66;24863:2;24856:78;24963:2;24958;24954;24950:11;24943:23;24985:46;25027:2;25023;25019:11;25011:6;24985:46;:::i;:::-;-1:-1:-1;;;25040:29:1;;25093:1;25085:10;;23935:1166;-1:-1:-1;;;;;;23935:1166:1:o;25418:1662::-;-1:-1:-1;;;26110:64:1;;26197:13;;26092:3;;26219:75;26197:13;26282:2;26273:12;;26266:4;26254:17;;26219:75;:::i;:::-;26358:66;26353:2;26313:16;;;26345:11;;;26338:87;26454:34;26449:2;26441:11;;26434:55;-1:-1:-1;;;26513:2:1;26505:11;;26498:59;26576:46;26618:2;26610:11;;26602:6;26576:46;:::i;:::-;26566:56;;26653:6;26647:13;26669:67;26727:8;26723:2;26716:4;26708:6;26704:17;26669:67;:::i;:::-;-1:-1:-1;;;26758:17:1;;26784:65;;;26874:13;;26896:79;26874:13;26961:2;26950:14;;26943:4;26931:17;;26896:79;:::i;:::-;-1:-1:-1;;;27038:2:1;26994:20;;;;27030:11;;;27023:24;27071:2;27063:11;;25418:1662;-1:-1:-1;;;;;;25418:1662:1:o;27085:457::-;27345:29;27340:3;27333:42;27315:3;27404:6;27398:13;27420:75;27488:6;27483:2;27478:3;27474:12;27467:4;27459:6;27455:17;27420:75;:::i;:::-;27515:16;;;;27533:2;27511:25;;27085:457;-1:-1:-1;;27085:457:1:o;27547:358::-;-1:-1:-1;;;;;27754:32:1;;27736:51;;27823:2;27818;27803:18;;27796:30;;;-1:-1:-1;;27843:56:1;;27880:18;;27872:6;27843:56;:::i;27910:125::-;27975:9;;;27996:10;;;27993:36;;;28009:18;;:::i;28040:136::-;28079:3;28107:5;28097:39;;28116:18;;:::i;:::-;-1:-1:-1;;;28152:18:1;;28040:136::o
Swarm Source
ipfs://5e2fd56287336ae10eccaa421c128d37d14d8362bf82682e8c539675029ead6f
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.