ERC-721
Overview
Max Total Supply
4,813 OGBBOXES
Holders
210
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
25 OGBBOXESLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BananaBoxes
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-07-12 */ // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface 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/token/ERC721/IERC721.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); } // File: @openzeppelin/contracts-upgradeable/utils/math/SignedMathUpgradeable.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMathUpgradeable { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } } // File: @openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library MathUpgradeable { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } } // File: @openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = MathUpgradeable.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMathUpgradeable.abs(value)))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, MathUpgradeable.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract 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/Ownable.sol // OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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/cryptography/MerkleProof.sol // OpenZeppelin Contracts (last updated v4.9.2) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proofLen - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { require(proofPos == proofLen, "MerkleProof: invalid multiproof"); unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proofLen - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { require(proofPos == proofLen, "MerkleProof: invalid multiproof"); unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } // File: https://github.com/chiru-labs/ERC721A/blob/main/contracts/IERC721A.sol // 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: https://github.com/chiru-labs/ERC721A/blob/main/contracts/ERC721A.sol // 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.selector); 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.selector); 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 Returns whether the ownership slot at `index` is initialized. * An uninitialized slot does not necessarily mean that the slot has no owner. */ function _ownershipIsInitialized(uint256 index) internal view virtual returns (bool) { return _packedOwnerships[index] != 0; } /** * @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 packed) { if (_startTokenId() <= tokenId) { packed = _packedOwnerships[tokenId]; // If the data at the starting slot does not exist, start the scan. if (packed == 0) { if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector); // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `tokenId` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. for (;;) { unchecked { packed = _packedOwnerships[--tokenId]; } if (packed == 0) continue; if (packed & _BITMASK_BURNED == 0) return packed; // Otherwise, the token is burned, and we must revert. // This handles the case of batch burned tokens, where only the burned bit // of the starting slot is set, and remaining slots are left uninitialized. _revert(OwnerQueryForNonexistentToken.selector); } } // Otherwise, the data exists and we can skip the scan. // This is possible because we have already achieved the target condition. // This saves 2143 gas on transfers of initialized tokens. // If the token is not burned, return `packed`. Otherwise, revert. if (packed & _BITMASK_BURNED == 0) return packed; } _revert(OwnerQueryForNonexistentToken.selector); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. See {ERC721A-_approve}. * * Requirements: * * - The caller must own the token or be an approved operator. */ function approve(address to, uint256 tokenId) public payable virtual override { _approve(to, tokenId, true); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) _revert(ApprovalQueryForNonexistentToken.selector); 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 result) { if (_startTokenId() <= tokenId) { if (tokenId < _currentIndex) { uint256 packed; while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId; result = packed & _BITMASK_BURNED == 0; } } } /** * @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); // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS)); if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector); (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.selector); _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; } } } } // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; assembly { // 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. from, // `from`. toMasked, // `to`. tokenId // `tokenId`. ) } if (toMasked == 0) _revert(TransferToZeroAddress.selector); _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.selector); } } /** * @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.selector); } 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.selector); _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: // - `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) ); // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); uint256 end = startTokenId + quantity; uint256 tokenId = startTokenId; do { assembly { // 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`. tokenId // `tokenId`. ) } // The `!=` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. } while (++tokenId != end); _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.selector); if (quantity == 0) _revert(MintZeroQuantity.selector); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector); _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.selector); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) _revert(bytes4(0)); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Equivalent to `_approve(to, tokenId, false)`. */ function _approve(address to, uint256 tokenId) internal virtual { _approve(to, tokenId, false); } /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - `tokenId` must exist. * * Emits an {Approval} event. */ function _approve( address to, uint256 tokenId, bool approvalCheck ) internal virtual { address owner = ownerOf(tokenId); if (approvalCheck && _msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { _revert(ApprovalCallerNotOwnerNorApproved.selector); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector); } _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.selector); 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) } } /** * @dev For more efficient reverts. */ function _revert(bytes4 errorSelector) internal pure { assembly { mstore(0x00, errorSelector) revert(0x00, 0x04) } } } // File: contracts/Ogac/BananaBoxes.sol pragma solidity 0.8.7; contract BananaBoxes is ERC721A, Ownable { using StringsUpgradeable for uint256; event Minted(address indexed _from, uint256 _amount, uint256 _value); event UseBox(address indexed _from, uint256 _boxId, uint256 _ogacId); address public ERC20FUNDWALLET = 0x29Cf4C62FbB6bD5cdBd0fAb6Fb301e5196693861; string public baseApiURI; //Utility bool public paused = false; bool public canClaim = true; bool public canBurn = false; bool public erc20PaymentsPause = false; //General Settings uint16 public maxMintAmountPerTransaction = 20; //Inventory uint256 public maxSupply = 10000; //Prices uint256 public cost = 0.008420 ether; //Merkle Tree Roots bytes32 private claimRoot; //mapping mapping(address => bool) private claims; mapping(address => bool) public _allowedErc20; mapping(address => uint256) public _erc20MintPrice; mapping(address => bool) public extendingContract; IERC721 ogac ; constructor(string memory _baseUrl, address _ogac) ERC721A("Banana Boxes", "OGBBOXES") { baseApiURI = _baseUrl; _erc20MintPrice[0xED5464bd5c477b7F71739Ce1d741b43E932b97b0] = 500; _allowedErc20[0xED5464bd5c477b7F71739Ce1d741b43E932b97b0] = true; ogac = IERC721(_ogac); } function mint(uint256 _amount) payable external { require(!paused, "Contract is paused"); require(_amount > 0, "Mint amount should be greater than 0"); require((totalSupply() + _amount) <= maxSupply, "NFT Supply Passed"); require( _amount <= maxMintAmountPerTransaction, "Passed Mint limit per transaction"); //check price if(msg.sender != owner()){ require(msg.value >= (cost * _amount), "Not enough Funds"); } _mint(msg.sender, _amount); } function mintComicWithErc20(uint256 _amount, address _erc20) external payable { require(!erc20PaymentsPause, "Contract is paused"); require(_amount > 0, "Mint amount should be greater than 0"); require((totalSupply() + _amount) <= maxSupply, "NFTS Supply Passed"); require( _amount <= maxMintAmountPerTransaction, "Passed Mint limit per transaction" ); //check if erc20 contract is allowed require(_allowedErc20[_erc20], "ERC20 is not allowed"); //check if erc20 price is not 0 require(_erc20MintPrice[_erc20] > 0, "ERC20 Mint price not set"); //check allowance require( IERC20(_erc20).allowance(msg.sender, address(this)) >= (_erc20MintPrice[_erc20] * _amount), "Not enough Allowance" ); IERC20(_erc20).transferFrom( msg.sender, ERC20FUNDWALLET, _erc20MintPrice[_erc20] * _amount ); _mint(msg.sender, _amount); } //This function will be used to extend the project with more capabilities function setExternalContract(address _bAddress, bool _state) public onlyOwner { extendingContract[_bAddress] = _state; } //this function can be called only from the extending contract function mintExternal(address _address, uint256 _mintAmount) external { require( extendingContract[msg.sender], "Sorry you don't have permission to mint" ); _safeMint(_address, _mintAmount); } function burnExternal( uint256 _tokenId) external { require( extendingContract[msg.sender], "Sorry you don't have permission to mint" ); _burn(_tokenId); } function setClaimRoot(bytes32 _root) public onlyOwner { claimRoot = _root; } function _verifyClaim(bytes32 _leafNode, bytes32[] memory proof) internal view returns (bool) { return MerkleProof.verify(proof, claimRoot, _leafNode); } function _leaf(address account, uint256 _amount) internal pure returns (bytes32) { return keccak256(abi.encodePacked(account, _amount)); } //genesis Claim function claim(uint256 _amount, bytes32[] calldata proof) public payable { //verification require(canClaim, "Claim not enabled"); require( _verifyClaim(_leaf(msg.sender, _amount), proof), "Invalid proof" ); require(!claims[msg.sender], "Already Claimed"); _mintLoop(msg.sender, _amount); claims[msg.sender] = true; } //assign trait box function assignBox(uint256[] memory _tokens, uint256[] memory _ogacs) public { require(canBurn,"Cannot Burn now"); require(_tokens.length >0 && _ogacs.length > 0,"Both Arrays should be greater"); require(_tokens.length == _ogacs.length,"Both Arrays should be equal in size"); for (uint256 i = 0; i < _tokens.length; i++) { require(ownerOf(_tokens[i]) == msg.sender,"You dont own box"); require(ogac.ownerOf(_ogacs[i]) == msg.sender,"you dont own this Ogac to assign"); _burn(_tokens[i]); //send event with assignment for offchain trait set emit UseBox(msg.sender,_tokens[i], _ogacs[i]); } } function isClaimed(address _owner) external view returns (bool) { return claims[_owner]; } function gift(address _to, uint256 _mintAmount) public onlyOwner { _mintLoop(_to, _mintAmount); } function airdrop(address[] memory _airdropAddresses) public onlyOwner { for (uint256 i = 0; i < _airdropAddresses.length; i++) { address to = _airdropAddresses[i]; _mintLoop(to, 1); } } function _baseURI() internal view virtual override returns (string memory) { return baseApiURI; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString())) : ""; } function setCost(uint256 _newCost) public onlyOwner { cost = _newCost; } function setErc20ContractState(address _a, uint256 _p, bool _val) external onlyOwner{ _allowedErc20[_a] = _val; _erc20MintPrice[_a] = _p; } function setErc20FundAddress(address _a) external onlyOwner { ERC20FUNDWALLET = _a; } function setmaxMintAmountPerTransaction(uint16 _amount) public onlyOwner { maxMintAmountPerTransaction = _amount; } function setMaxSupply(uint256 _supply) public onlyOwner { maxSupply = _supply; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseApiURI = _newBaseURI; } function togglePause() public onlyOwner { paused = !paused; } function setCanBurn(bool _val) public onlyOwner{ canBurn = _val; } function toggleClaim() public onlyOwner { canClaim = !canClaim; } function _mintLoop(address _receiver, uint256 _mintAmount) internal { _safeMint(_receiver, _mintAmount); } function withdraw() public payable onlyOwner { (bool hq, ) = payable(owner()).call{value: address(this).balance}(""); require(hq); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_baseUrl","type":"string"},{"internalType":"address","name":"_ogac","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"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":"_from","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"uint256","name":"_boxId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_ogacId","type":"uint256"}],"name":"UseBox","type":"event"},{"inputs":[],"name":"ERC20FUNDWALLET","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_allowedErc20","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_erc20MintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_airdropAddresses","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokens","type":"uint256[]"},{"internalType":"uint256[]","name":"_ogacs","type":"uint256[]"}],"name":"assignBox","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseApiURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burnExternal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"canBurn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canClaim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc20PaymentsPause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"extendingContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"_to","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"isClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerTransaction","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_erc20","type":"address"}],"name":"mintComicWithErc20","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintExternal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_val","type":"bool"}],"name":"setCanBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setClaimRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_a","type":"address"},{"internalType":"uint256","name":"_p","type":"uint256"},{"internalType":"bool","name":"_val","type":"bool"}],"name":"setErc20ContractState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_a","type":"address"}],"name":"setErc20FundAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bAddress","type":"address"},{"internalType":"bool","name":"_state","type":"bool"}],"name":"setExternalContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_amount","type":"uint16"}],"name":"setmaxMintAmountPerTransaction","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":[],"name":"toggleClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
6080604052600980546001600160a01b0319167329cf4c62fbb6bd5cdbd0fab6fb301e5196693861179055600b805464140000010065ffffffffffff19909116179055612710600c55661de9f205024000600d553480156200006057600080fd5b5060405162002feb38038062002feb8339810160408190526200008391620002c1565b604080518082018252600c81526b42616e616e6120426f78657360a01b6020808301918252835180850190945260088452674f4742424f58455360c01b908401528151919291620000d791600291620001fe565b508051620000ed906003906020840190620001fe565b50506000805550620000ff33620001ac565b81516200011490600a906020850190620001fe565b5073ed5464bd5c477b7f71739ce1d741b43e932b97b06000526101f47f448c6b7e4080e9580169a57e4abd7f9c1bf1e026d4c716fa5a5301432fd0c28a5560106020527f71674f927e5910a08d0e4ecfbfd963e1946c19ddc603113021c7dc53cb31e6d9805460ff19166001179055601380546001600160a01b03929092166001600160a01b03199092169190911790555062000405565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200020c90620003b2565b90600052602060002090601f0160209004810192826200023057600085556200027b565b82601f106200024b57805160ff19168380011785556200027b565b828001600101855582156200027b579182015b828111156200027b5782518255916020019190600101906200025e565b50620002899291506200028d565b5090565b5b808211156200028957600081556001016200028e565b80516001600160a01b0381168114620002bc57600080fd5b919050565b60008060408385031215620002d557600080fd5b82516001600160401b0380821115620002ed57600080fd5b818501915085601f8301126200030257600080fd5b815181811115620003175762000317620003ef565b604051601f8201601f19908116603f01168101908382118183101715620003425762000342620003ef565b816040528281526020935088848487010111156200035f57600080fd5b600091505b8282101562000383578482018401518183018501529083019062000364565b82821115620003955760008484830101525b9550620003a7915050858201620002a4565b925050509250929050565b600181811c90821680620003c757607f821691505b60208210811415620003e957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b612bd680620004156000396000f3fe6080604052600436106102c95760003560e01c806370a0823111610175578063bbb89744116100dc578063d5abeb0111610095578063e985e9c51161006f578063e985e9c514610869578063f2fde38b146108b2578063f4da1846146108d2578063ff0eab46146108f257600080fd5b8063d5abeb0114610813578063e459ad0214610829578063e97800cb1461084957600080fd5b8063bbb8974414610753578063c1eb184014610789578063c4ae3168146107a9578063c87b56dd146107be578063cbce4c97146107de578063d1129745146107fe57600080fd5b80639e8846051161012e5780639e8846051461069d5780639ebc3e07146106bd578063a0712d68146106ed578063a22cb46514610700578063a67ba02714610720578063b88d4fde1461074057600080fd5b806370a08231146105dc578063715018a6146105fc578063729ad39e146106115780638cc08025146106315780638da5cb5b1461066a57806395d89b411461068857600080fd5b80633652f0191161023457806344a0d68a116101ed5780636352211e116101c75780636352211e146105505780636aaffa36146105705780636dc7a6271461059d5780636f8b44b0146105bc57600080fd5b806344a0d68a146104f657806355f804b3146105165780635c975abb1461053657600080fd5b80633652f01914610466578063386c69f2146104865780633ccfd60b146104a657806341827f13146104ae57806342172e52146104c357806342842e0e146104e357600080fd5b806321b97f201161028657806321b97f20146103af57806323b872dd146103cf578063292bb014146103e25780632a63d576146104125780632bac46df146104325780632f52ebb71461045357600080fd5b806301ffc9a7146102ce57806306fdde0314610303578063081812fc14610325578063095ea7b31461035d57806313faede61461037257806318160ddd14610396575b600080fd5b3480156102da57600080fd5b506102ee6102e9366004612725565b610905565b60405190151581526020015b60405180910390f35b34801561030f57600080fd5b50610318610957565b6040516102fa9190612921565b34801561033157600080fd5b5061034561034036600461270c565b6109e9565b6040516001600160a01b0390911681526020016102fa565b61037061036b36600461255f565b610a24565b005b34801561037e57600080fd5b50610388600d5481565b6040519081526020016102fa565b3480156103a257600080fd5b5060015460005403610388565b3480156103bb57600080fd5b506103706103ca36600461270c565b610a34565b6103706103dd366004612470565b610a41565b3480156103ee57600080fd5b506102ee6103fd3660046123fd565b60126020526000908152604090205460ff1681565b34801561041e57600080fd5b5061037061042d366004612531565b610ba6565b34801561043e57600080fd5b50600b546102ee906301000000900460ff1681565b61037061046136600461280a565b610bd9565b34801561047257600080fd5b5061037061048136600461270c565b610d5c565b34801561049257600080fd5b506103706104a13660046126d2565b610d97565b610370610dbb565b3480156104ba57600080fd5b50610318610e34565b3480156104cf57600080fd5b506103706104de36600461266e565b610ec2565b6103706104f1366004612470565b6111f4565b34801561050257600080fd5b5061037061051136600461270c565b61120f565b34801561052257600080fd5b5061037061053136600461275f565b61121c565b34801561054257600080fd5b50600b546102ee9060ff1681565b34801561055c57600080fd5b5061034561056b36600461270c565b611237565b34801561057c57600080fd5b5061038861058b3660046123fd565b60116020526000908152604090205481565b3480156105a957600080fd5b50600b546102ee90610100900460ff1681565b3480156105c857600080fd5b506103706105d736600461270c565b611242565b3480156105e857600080fd5b506103886105f73660046123fd565b61124f565b34801561060857600080fd5b50610370611295565b34801561061d57600080fd5b5061037061062c3660046125cd565b6112a9565b34801561063d57600080fd5b506102ee61064c3660046123fd565b6001600160a01b03166000908152600f602052604090205460ff1690565b34801561067657600080fd5b506008546001600160a01b0316610345565b34801561069457600080fd5b506103186112f9565b3480156106a957600080fd5b50600954610345906001600160a01b031681565b3480156106c957600080fd5b506102ee6106d83660046123fd565b60106020526000908152604090205460ff1681565b6103706106fb36600461270c565b611308565b34801561070c57600080fd5b5061037061071b366004612531565b611467565b34801561072c57600080fd5b5061037061073b3660046123fd565b6114d3565b61037061074e3660046124b1565b6114fd565b34801561075f57600080fd5b50600b5461077690640100000000900461ffff1681565b60405161ffff90911681526020016102fa565b34801561079557600080fd5b50600b546102ee9062010000900460ff1681565b3480156107b557600080fd5b5061037061153e565b3480156107ca57600080fd5b506103186107d936600461270c565b61155a565b3480156107ea57600080fd5b506103706107f936600461255f565b611625565b34801561080a57600080fd5b50610370611637565b34801561081f57600080fd5b50610388600c5481565b34801561083557600080fd5b5061037061084436600461258b565b61165c565b34801561085557600080fd5b506103706108643660046127a8565b61169c565b34801561087557600080fd5b506102ee610884366004612437565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156108be57600080fd5b506103706108cd3660046123fd565b6116c8565b3480156108de57600080fd5b506103706108ed36600461255f565b61173e565b6103706109003660046127e5565b611777565b60006301ffc9a760e01b6001600160e01b03198316148061093657506380ac58cd60e01b6001600160e01b03198316145b806109515750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461096690612acf565b80601f016020809104026020016040519081016040528092919081815260200182805461099290612acf565b80156109df5780601f106109b4576101008083540402835291602001916109df565b820191906000526020600020905b8154815290600101906020018083116109c257829003601f168201915b5050505050905090565b60006109f482611ae3565b610a0857610a086333d1c03960e21b611b25565b506000908152600660205260409020546001600160a01b031690565b610a3082826001611b2f565b5050565b610a3c611bd2565b600e55565b6000610a4c82611c2c565b6001600160a01b039485169490915081168414610a7257610a7262a1148160e81b611b25565b60008281526006602052604090208054610a9e8187335b6001600160a01b039081169116811491141790565b610ac057610aac8633610884565b610ac057610ac0632ce44b5f60e11b611b25565b8015610acb57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610b565760018401600081815260046020526040902054610b54576000548114610b545760008181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a480610b9d57610b9d633a954ecd60e21b611b25565b50505050505050565b610bae611bd2565b6001600160a01b03919091166000908152601260205260409020805460ff1916911515919091179055565b600b54610100900460ff16610c295760405162461bcd60e51b815260206004820152601160248201527010db185a5b481b9bdd08195b98589b1959607a1b60448201526064015b60405180910390fd5b604080513360601b6bffffffffffffffffffffffff191660208083019190915260348083018790528351808403909101815260549092019092528051910120610ca590838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250611cbd92505050565b610ce15760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610c20565b336000908152600f602052604090205460ff1615610d335760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4810db185a5b5959608a1b6044820152606401610c20565b610d3d338461176d565b5050336000908152600f60205260409020805460ff1916600117905550565b3360009081526012602052604090205460ff16610d8b5760405162461bcd60e51b8152600401610c2090612934565b610d9481611ccc565b50565b610d9f611bd2565b600b8054911515620100000262ff000019909216919091179055565b610dc3611bd2565b6000610dd76008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610e21576040519150601f19603f3d011682016040523d82523d6000602084013e610e26565b606091505b5050905080610d9457600080fd5b600a8054610e4190612acf565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6d90612acf565b8015610eba5780601f10610e8f57610100808354040283529160200191610eba565b820191906000526020600020905b815481529060010190602001808311610e9d57829003601f168201915b505050505081565b600b5462010000900460ff16610f0c5760405162461bcd60e51b815260206004820152600f60248201526e43616e6e6f74204275726e206e6f7760881b6044820152606401610c20565b60008251118015610f1e575060008151115b610f6a5760405162461bcd60e51b815260206004820152601d60248201527f426f7468204172726179732073686f756c6420626520677265617465720000006044820152606401610c20565b8051825114610fc75760405162461bcd60e51b815260206004820152602360248201527f426f7468204172726179732073686f756c6420626520657175616c20696e2073604482015262697a6560e81b6064820152608401610c20565b60005b82518110156111ef57336001600160a01b0316610fff848381518110610ff257610ff2612b3b565b6020026020010151611237565b6001600160a01b0316146110485760405162461bcd60e51b815260206004820152601060248201526f0b2deea40c8dedce840deeedc40c4def60831b6044820152606401610c20565b601354825133916001600160a01b031690636352211e9085908590811061107157611071612b3b565b60200260200101516040518263ffffffff1660e01b815260040161109791815260200190565b60206040518083038186803b1580156110af57600080fd5b505afa1580156110c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110e7919061241a565b6001600160a01b03161461113d5760405162461bcd60e51b815260206004820181905260248201527f796f7520646f6e74206f776e2074686973204f67616320746f2061737369676e6044820152606401610c20565b61115f83828151811061115257611152612b3b565b6020026020010151611ccc565b336001600160a01b03167f702f77665d9e9e10596830067810f91574573f98e00e7c47455dc83ca55e4f9b84838151811061119c5761119c612b3b565b60200260200101518484815181106111b6576111b6612b3b565b60200260200101516040516111d5929190918252602082015260400190565b60405180910390a2806111e781612b0a565b915050610fca565b505050565b6111ef838383604051806020016040528060008152506114fd565b611217611bd2565b600d55565b611224611bd2565b8051610a3090600a90602084019061229a565b600061095182611c2c565b61124a611bd2565b600c55565b60006001600160a01b03821661126f5761126f6323d3ad8160e21b611b25565b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b61129d611bd2565b6112a76000611cd7565b565b6112b1611bd2565b60005b8151811015610a305760008282815181106112d1576112d1612b3b565b602002602001015190506112e681600161176d565b50806112f181612b0a565b9150506112b4565b60606003805461096690612acf565b600b5460ff16156113505760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b6044820152606401610c20565b600081116113705760405162461bcd60e51b8152600401610c209061297b565b600c54816113816001546000540390565b61138b9190612a55565b11156113cd5760405162461bcd60e51b81526020600482015260116024820152701391950814dd5c1c1b1e4814185cdcd959607a1b6044820152606401610c20565b600b54640100000000900461ffff168111156113fb5760405162461bcd60e51b8152600401610c20906129bf565b6008546001600160a01b0316331461145d5780600d5461141b9190612a6d565b34101561145d5760405162461bcd60e51b815260206004820152601060248201526f4e6f7420656e6f7567682046756e647360801b6044820152606401610c20565b610d943382611d29565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6114db611bd2565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b611508848484610a41565b6001600160a01b0383163b156115385761152484848484611de0565b611538576115386368d2bf6b60e11b611b25565b50505050565b611546611bd2565b600b805460ff19811660ff90911615179055565b606061156582611ae3565b6115c95760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610c20565b60006115d3611ecf565b905060008151116115f3576040518060200160405280600081525061161e565b806115fd84611ede565b60405160200161160e9291906128b5565b6040516020818303038152906040525b9392505050565b61162d611bd2565b610a30828261176d565b61163f611bd2565b600b805461ff001981166101009182900460ff1615909102179055565b611664611bd2565b6001600160a01b03929092166000908152601060209081526040808320805460ff191695151595909517909455601190529190912055565b6116a4611bd2565b600b805461ffff9092166401000000000265ffff0000000019909216919091179055565b6116d0611bd2565b6001600160a01b0381166117355760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c20565b610d9481611cd7565b3360009081526012602052604090205460ff1661176d5760405162461bcd60e51b8152600401610c2090612934565b610a308282611f7b565b600b546301000000900460ff16156117c65760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b6044820152606401610c20565b600082116117e65760405162461bcd60e51b8152600401610c209061297b565b600c54826117f76001546000540390565b6118019190612a55565b11156118445760405162461bcd60e51b815260206004820152601260248201527113919514c814dd5c1c1b1e4814185cdcd95960721b6044820152606401610c20565b600b54640100000000900461ffff168211156118725760405162461bcd60e51b8152600401610c20906129bf565b6001600160a01b03811660009081526010602052604090205460ff166118d15760405162461bcd60e51b8152602060048201526014602482015273115490cc8c081a5cc81b9bdd08185b1b1bddd95960621b6044820152606401610c20565b6001600160a01b0381166000908152601160205260409020546119365760405162461bcd60e51b815260206004820152601860248201527f4552433230204d696e74207072696365206e6f742073657400000000000000006044820152606401610c20565b6001600160a01b03811660009081526011602052604090205461195a908390612a6d565b604051636eb1769f60e11b81523360048201523060248201526001600160a01b0383169063dd62ed3e9060440160206040518083038186803b15801561199f57600080fd5b505afa1580156119b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119d791906127cc565b1015611a1c5760405162461bcd60e51b81526020600482015260146024820152734e6f7420656e6f75676820416c6c6f77616e636560601b6044820152606401610c20565b6009546001600160a01b0380831660008181526011602052604090205490926323b872dd923392911690611a51908790612a6d565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b158015611aa057600080fd5b505af1158015611ab4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ad891906126ef565b50610a303383611d29565b60008054821015611b205760005b5060008281526004602052604090205480611b1657611b0f83612ab8565b9250611af1565b600160e01b161590505b919050565b8060005260046000fd5b6000611b3a83611237565b9050818015611b525750336001600160a01b03821614155b15611b7557611b618133610884565b611b7557611b756367d9dca160e11b611b25565b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b6008546001600160a01b031633146112a75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c20565b60008181526004602052604090205480611c9d576000548210611c5957611c59636f96cda160e11b611b25565b5b506000190160008181526004602052604090205480611c7857611c5a565b600160e01b8116611c8857919050565b611c98636f96cda160e11b611b25565b611c5a565b600160e01b8116611cad57919050565b611b20636f96cda160e11b611b25565b600061161e82600e5485611f95565b610d94816000611fab565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005481611d4157611d4163b562e8dd60e01b611b25565b60008181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b1781179091558084526005909252909120805468010000000000000001850201905580611d9d57611d9d622e076360e81b611b25565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010180821415611da2575060005550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611e159033908990889088906004016128e4565b602060405180830381600087803b158015611e2f57600080fd5b505af1925050508015611e5f575060408051601f3d908101601f19168201909252611e5c91810190612742565b60015b611eb1573d808015611e8d576040519150601f19603f3d011682016040523d82523d6000602084013e611e92565b606091505b508051611ea957611ea96368d2bf6b60e11b611b25565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600a805461096690612acf565b60606000611eeb836120e5565b600101905060008167ffffffffffffffff811115611f0b57611f0b612b51565b6040519080825280601f01601f191660200182016040528015611f35576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611f6e57611f73565b611f3f565b509392505050565b610a308282604051806020016040528060008152506121bd565b600082611fa28584612226565b14949350505050565b6000611fb683611c2c565b905080600080611fd486600090815260066020526040902080549091565b91509150841561200b57611fe9818433610a89565b61200b57611ff78333610884565b61200b5761200b632ce44b5f60e11b611b25565b801561201657600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040902055600160e11b841661209d576001860160008181526004602052604090205461209b57600054811461209b5760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106121245772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612150576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061216e57662386f26fc10000830492506010015b6305f5e1008310612186576305f5e100830492506008015b612710831061219a57612710830492506004015b606483106121ac576064830492506002015b600a83106109515760010192915050565b6121c78383611d29565b6001600160a01b0383163b156111ef576000548281035b6121f16000868380600101945086611de0565b612205576122056368d2bf6b60e11b611b25565b8181106121de57816000541461221f5761221f6000611b25565b5050505050565b600081815b8451811015611f73576122578286838151811061224a5761224a612b3b565b602002602001015161226b565b91508061226381612b0a565b91505061222b565b600081831061228757600082815260208490526040902061161e565b600083815260208390526040902061161e565b8280546122a690612acf565b90600052602060002090601f0160209004810192826122c8576000855561230e565b82601f106122e157805160ff191683800117855561230e565b8280016001018555821561230e579182015b8281111561230e5782518255916020019190600101906122f3565b5061231a92915061231e565b5090565b5b8082111561231a576000815560010161231f565b600067ffffffffffffffff83111561234d5761234d612b51565b612360601f8401601f1916602001612a00565b905082815283838301111561237457600080fd5b828260208301376000602084830101529392505050565b600082601f83011261239c57600080fd5b813560206123b16123ac83612a31565b612a00565b80838252828201915082860187848660051b89010111156123d157600080fd5b60005b858110156123f0578135845292840192908401906001016123d4565b5090979650505050505050565b60006020828403121561240f57600080fd5b813561161e81612b67565b60006020828403121561242c57600080fd5b815161161e81612b67565b6000806040838503121561244a57600080fd5b823561245581612b67565b9150602083013561246581612b67565b809150509250929050565b60008060006060848603121561248557600080fd5b833561249081612b67565b925060208401356124a081612b67565b929592945050506040919091013590565b600080600080608085870312156124c757600080fd5b84356124d281612b67565b935060208501356124e281612b67565b925060408501359150606085013567ffffffffffffffff81111561250557600080fd5b8501601f8101871361251657600080fd5b61252587823560208401612333565b91505092959194509250565b6000806040838503121561254457600080fd5b823561254f81612b67565b9150602083013561246581612b7c565b6000806040838503121561257257600080fd5b823561257d81612b67565b946020939093013593505050565b6000806000606084860312156125a057600080fd5b83356125ab81612b67565b92506020840135915060408401356125c281612b7c565b809150509250925092565b600060208083850312156125e057600080fd5b823567ffffffffffffffff8111156125f757600080fd5b8301601f8101851361260857600080fd5b80356126166123ac82612a31565b80828252848201915084840188868560051b870101111561263657600080fd5b600094505b8385101561266257803561264e81612b67565b83526001949094019391850191850161263b565b50979650505050505050565b6000806040838503121561268157600080fd5b823567ffffffffffffffff8082111561269957600080fd5b6126a58683870161238b565b935060208501359150808211156126bb57600080fd5b506126c88582860161238b565b9150509250929050565b6000602082840312156126e457600080fd5b813561161e81612b7c565b60006020828403121561270157600080fd5b815161161e81612b7c565b60006020828403121561271e57600080fd5b5035919050565b60006020828403121561273757600080fd5b813561161e81612b8a565b60006020828403121561275457600080fd5b815161161e81612b8a565b60006020828403121561277157600080fd5b813567ffffffffffffffff81111561278857600080fd5b8201601f8101841361279957600080fd5b611ec784823560208401612333565b6000602082840312156127ba57600080fd5b813561ffff8116811461161e57600080fd5b6000602082840312156127de57600080fd5b5051919050565b600080604083850312156127f857600080fd5b82359150602083013561246581612b67565b60008060006040848603121561281f57600080fd5b83359250602084013567ffffffffffffffff8082111561283e57600080fd5b818601915086601f83011261285257600080fd5b81358181111561286157600080fd5b8760208260051b850101111561287657600080fd5b6020830194508093505050509250925092565b600081518084526128a1816020860160208601612a8c565b601f01601f19169290920160200192915050565b600083516128c7818460208801612a8c565b8351908301906128db818360208801612a8c565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061291790830184612889565b9695505050505050565b60208152600061161e6020830184612889565b60208082526027908201527f536f72727920796f7520646f6e27742068617665207065726d697373696f6e206040820152661d1bc81b5a5b9d60ca1b606082015260800190565b60208082526024908201527f4d696e7420616d6f756e742073686f756c6420626520677265617465722074686040820152630616e20360e41b606082015260800190565b60208082526021908201527f506173736564204d696e74206c696d697420706572207472616e73616374696f6040820152603760f91b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715612a2957612a29612b51565b604052919050565b600067ffffffffffffffff821115612a4b57612a4b612b51565b5060051b60200190565b60008219821115612a6857612a68612b25565b500190565b6000816000190483118215151615612a8757612a87612b25565b500290565b60005b83811015612aa7578181015183820152602001612a8f565b838111156115385750506000910152565b600081612ac757612ac7612b25565b506000190190565b600181811c90821680612ae357607f821691505b60208210811415612b0457634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612b1e57612b1e612b25565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610d9457600080fd5b8015158114610d9457600080fd5b6001600160e01b031981168114610d9457600080fdfea26469706673582212209fbafe6fdd4fb4aa35ee08d4cf009236ad998b25157f0051d6486240f91211d664736f6c634300080700330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000a83ad73eed496fcd7adc5f4027cbad818d0075a00000000000000000000000000000000000000000000000000000000000000028617069322e6f726967696e616c617065636c75622e696f2f6170692f76312f6e66742f62626f782f000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102c95760003560e01c806370a0823111610175578063bbb89744116100dc578063d5abeb0111610095578063e985e9c51161006f578063e985e9c514610869578063f2fde38b146108b2578063f4da1846146108d2578063ff0eab46146108f257600080fd5b8063d5abeb0114610813578063e459ad0214610829578063e97800cb1461084957600080fd5b8063bbb8974414610753578063c1eb184014610789578063c4ae3168146107a9578063c87b56dd146107be578063cbce4c97146107de578063d1129745146107fe57600080fd5b80639e8846051161012e5780639e8846051461069d5780639ebc3e07146106bd578063a0712d68146106ed578063a22cb46514610700578063a67ba02714610720578063b88d4fde1461074057600080fd5b806370a08231146105dc578063715018a6146105fc578063729ad39e146106115780638cc08025146106315780638da5cb5b1461066a57806395d89b411461068857600080fd5b80633652f0191161023457806344a0d68a116101ed5780636352211e116101c75780636352211e146105505780636aaffa36146105705780636dc7a6271461059d5780636f8b44b0146105bc57600080fd5b806344a0d68a146104f657806355f804b3146105165780635c975abb1461053657600080fd5b80633652f01914610466578063386c69f2146104865780633ccfd60b146104a657806341827f13146104ae57806342172e52146104c357806342842e0e146104e357600080fd5b806321b97f201161028657806321b97f20146103af57806323b872dd146103cf578063292bb014146103e25780632a63d576146104125780632bac46df146104325780632f52ebb71461045357600080fd5b806301ffc9a7146102ce57806306fdde0314610303578063081812fc14610325578063095ea7b31461035d57806313faede61461037257806318160ddd14610396575b600080fd5b3480156102da57600080fd5b506102ee6102e9366004612725565b610905565b60405190151581526020015b60405180910390f35b34801561030f57600080fd5b50610318610957565b6040516102fa9190612921565b34801561033157600080fd5b5061034561034036600461270c565b6109e9565b6040516001600160a01b0390911681526020016102fa565b61037061036b36600461255f565b610a24565b005b34801561037e57600080fd5b50610388600d5481565b6040519081526020016102fa565b3480156103a257600080fd5b5060015460005403610388565b3480156103bb57600080fd5b506103706103ca36600461270c565b610a34565b6103706103dd366004612470565b610a41565b3480156103ee57600080fd5b506102ee6103fd3660046123fd565b60126020526000908152604090205460ff1681565b34801561041e57600080fd5b5061037061042d366004612531565b610ba6565b34801561043e57600080fd5b50600b546102ee906301000000900460ff1681565b61037061046136600461280a565b610bd9565b34801561047257600080fd5b5061037061048136600461270c565b610d5c565b34801561049257600080fd5b506103706104a13660046126d2565b610d97565b610370610dbb565b3480156104ba57600080fd5b50610318610e34565b3480156104cf57600080fd5b506103706104de36600461266e565b610ec2565b6103706104f1366004612470565b6111f4565b34801561050257600080fd5b5061037061051136600461270c565b61120f565b34801561052257600080fd5b5061037061053136600461275f565b61121c565b34801561054257600080fd5b50600b546102ee9060ff1681565b34801561055c57600080fd5b5061034561056b36600461270c565b611237565b34801561057c57600080fd5b5061038861058b3660046123fd565b60116020526000908152604090205481565b3480156105a957600080fd5b50600b546102ee90610100900460ff1681565b3480156105c857600080fd5b506103706105d736600461270c565b611242565b3480156105e857600080fd5b506103886105f73660046123fd565b61124f565b34801561060857600080fd5b50610370611295565b34801561061d57600080fd5b5061037061062c3660046125cd565b6112a9565b34801561063d57600080fd5b506102ee61064c3660046123fd565b6001600160a01b03166000908152600f602052604090205460ff1690565b34801561067657600080fd5b506008546001600160a01b0316610345565b34801561069457600080fd5b506103186112f9565b3480156106a957600080fd5b50600954610345906001600160a01b031681565b3480156106c957600080fd5b506102ee6106d83660046123fd565b60106020526000908152604090205460ff1681565b6103706106fb36600461270c565b611308565b34801561070c57600080fd5b5061037061071b366004612531565b611467565b34801561072c57600080fd5b5061037061073b3660046123fd565b6114d3565b61037061074e3660046124b1565b6114fd565b34801561075f57600080fd5b50600b5461077690640100000000900461ffff1681565b60405161ffff90911681526020016102fa565b34801561079557600080fd5b50600b546102ee9062010000900460ff1681565b3480156107b557600080fd5b5061037061153e565b3480156107ca57600080fd5b506103186107d936600461270c565b61155a565b3480156107ea57600080fd5b506103706107f936600461255f565b611625565b34801561080a57600080fd5b50610370611637565b34801561081f57600080fd5b50610388600c5481565b34801561083557600080fd5b5061037061084436600461258b565b61165c565b34801561085557600080fd5b506103706108643660046127a8565b61169c565b34801561087557600080fd5b506102ee610884366004612437565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156108be57600080fd5b506103706108cd3660046123fd565b6116c8565b3480156108de57600080fd5b506103706108ed36600461255f565b61173e565b6103706109003660046127e5565b611777565b60006301ffc9a760e01b6001600160e01b03198316148061093657506380ac58cd60e01b6001600160e01b03198316145b806109515750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461096690612acf565b80601f016020809104026020016040519081016040528092919081815260200182805461099290612acf565b80156109df5780601f106109b4576101008083540402835291602001916109df565b820191906000526020600020905b8154815290600101906020018083116109c257829003601f168201915b5050505050905090565b60006109f482611ae3565b610a0857610a086333d1c03960e21b611b25565b506000908152600660205260409020546001600160a01b031690565b610a3082826001611b2f565b5050565b610a3c611bd2565b600e55565b6000610a4c82611c2c565b6001600160a01b039485169490915081168414610a7257610a7262a1148160e81b611b25565b60008281526006602052604090208054610a9e8187335b6001600160a01b039081169116811491141790565b610ac057610aac8633610884565b610ac057610ac0632ce44b5f60e11b611b25565b8015610acb57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610b565760018401600081815260046020526040902054610b54576000548114610b545760008181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a480610b9d57610b9d633a954ecd60e21b611b25565b50505050505050565b610bae611bd2565b6001600160a01b03919091166000908152601260205260409020805460ff1916911515919091179055565b600b54610100900460ff16610c295760405162461bcd60e51b815260206004820152601160248201527010db185a5b481b9bdd08195b98589b1959607a1b60448201526064015b60405180910390fd5b604080513360601b6bffffffffffffffffffffffff191660208083019190915260348083018790528351808403909101815260549092019092528051910120610ca590838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250611cbd92505050565b610ce15760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610c20565b336000908152600f602052604090205460ff1615610d335760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4810db185a5b5959608a1b6044820152606401610c20565b610d3d338461176d565b5050336000908152600f60205260409020805460ff1916600117905550565b3360009081526012602052604090205460ff16610d8b5760405162461bcd60e51b8152600401610c2090612934565b610d9481611ccc565b50565b610d9f611bd2565b600b8054911515620100000262ff000019909216919091179055565b610dc3611bd2565b6000610dd76008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610e21576040519150601f19603f3d011682016040523d82523d6000602084013e610e26565b606091505b5050905080610d9457600080fd5b600a8054610e4190612acf565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6d90612acf565b8015610eba5780601f10610e8f57610100808354040283529160200191610eba565b820191906000526020600020905b815481529060010190602001808311610e9d57829003601f168201915b505050505081565b600b5462010000900460ff16610f0c5760405162461bcd60e51b815260206004820152600f60248201526e43616e6e6f74204275726e206e6f7760881b6044820152606401610c20565b60008251118015610f1e575060008151115b610f6a5760405162461bcd60e51b815260206004820152601d60248201527f426f7468204172726179732073686f756c6420626520677265617465720000006044820152606401610c20565b8051825114610fc75760405162461bcd60e51b815260206004820152602360248201527f426f7468204172726179732073686f756c6420626520657175616c20696e2073604482015262697a6560e81b6064820152608401610c20565b60005b82518110156111ef57336001600160a01b0316610fff848381518110610ff257610ff2612b3b565b6020026020010151611237565b6001600160a01b0316146110485760405162461bcd60e51b815260206004820152601060248201526f0b2deea40c8dedce840deeedc40c4def60831b6044820152606401610c20565b601354825133916001600160a01b031690636352211e9085908590811061107157611071612b3b565b60200260200101516040518263ffffffff1660e01b815260040161109791815260200190565b60206040518083038186803b1580156110af57600080fd5b505afa1580156110c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110e7919061241a565b6001600160a01b03161461113d5760405162461bcd60e51b815260206004820181905260248201527f796f7520646f6e74206f776e2074686973204f67616320746f2061737369676e6044820152606401610c20565b61115f83828151811061115257611152612b3b565b6020026020010151611ccc565b336001600160a01b03167f702f77665d9e9e10596830067810f91574573f98e00e7c47455dc83ca55e4f9b84838151811061119c5761119c612b3b565b60200260200101518484815181106111b6576111b6612b3b565b60200260200101516040516111d5929190918252602082015260400190565b60405180910390a2806111e781612b0a565b915050610fca565b505050565b6111ef838383604051806020016040528060008152506114fd565b611217611bd2565b600d55565b611224611bd2565b8051610a3090600a90602084019061229a565b600061095182611c2c565b61124a611bd2565b600c55565b60006001600160a01b03821661126f5761126f6323d3ad8160e21b611b25565b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b61129d611bd2565b6112a76000611cd7565b565b6112b1611bd2565b60005b8151811015610a305760008282815181106112d1576112d1612b3b565b602002602001015190506112e681600161176d565b50806112f181612b0a565b9150506112b4565b60606003805461096690612acf565b600b5460ff16156113505760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b6044820152606401610c20565b600081116113705760405162461bcd60e51b8152600401610c209061297b565b600c54816113816001546000540390565b61138b9190612a55565b11156113cd5760405162461bcd60e51b81526020600482015260116024820152701391950814dd5c1c1b1e4814185cdcd959607a1b6044820152606401610c20565b600b54640100000000900461ffff168111156113fb5760405162461bcd60e51b8152600401610c20906129bf565b6008546001600160a01b0316331461145d5780600d5461141b9190612a6d565b34101561145d5760405162461bcd60e51b815260206004820152601060248201526f4e6f7420656e6f7567682046756e647360801b6044820152606401610c20565b610d943382611d29565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6114db611bd2565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b611508848484610a41565b6001600160a01b0383163b156115385761152484848484611de0565b611538576115386368d2bf6b60e11b611b25565b50505050565b611546611bd2565b600b805460ff19811660ff90911615179055565b606061156582611ae3565b6115c95760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610c20565b60006115d3611ecf565b905060008151116115f3576040518060200160405280600081525061161e565b806115fd84611ede565b60405160200161160e9291906128b5565b6040516020818303038152906040525b9392505050565b61162d611bd2565b610a30828261176d565b61163f611bd2565b600b805461ff001981166101009182900460ff1615909102179055565b611664611bd2565b6001600160a01b03929092166000908152601060209081526040808320805460ff191695151595909517909455601190529190912055565b6116a4611bd2565b600b805461ffff9092166401000000000265ffff0000000019909216919091179055565b6116d0611bd2565b6001600160a01b0381166117355760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c20565b610d9481611cd7565b3360009081526012602052604090205460ff1661176d5760405162461bcd60e51b8152600401610c2090612934565b610a308282611f7b565b600b546301000000900460ff16156117c65760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b6044820152606401610c20565b600082116117e65760405162461bcd60e51b8152600401610c209061297b565b600c54826117f76001546000540390565b6118019190612a55565b11156118445760405162461bcd60e51b815260206004820152601260248201527113919514c814dd5c1c1b1e4814185cdcd95960721b6044820152606401610c20565b600b54640100000000900461ffff168211156118725760405162461bcd60e51b8152600401610c20906129bf565b6001600160a01b03811660009081526010602052604090205460ff166118d15760405162461bcd60e51b8152602060048201526014602482015273115490cc8c081a5cc81b9bdd08185b1b1bddd95960621b6044820152606401610c20565b6001600160a01b0381166000908152601160205260409020546119365760405162461bcd60e51b815260206004820152601860248201527f4552433230204d696e74207072696365206e6f742073657400000000000000006044820152606401610c20565b6001600160a01b03811660009081526011602052604090205461195a908390612a6d565b604051636eb1769f60e11b81523360048201523060248201526001600160a01b0383169063dd62ed3e9060440160206040518083038186803b15801561199f57600080fd5b505afa1580156119b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119d791906127cc565b1015611a1c5760405162461bcd60e51b81526020600482015260146024820152734e6f7420656e6f75676820416c6c6f77616e636560601b6044820152606401610c20565b6009546001600160a01b0380831660008181526011602052604090205490926323b872dd923392911690611a51908790612a6d565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b158015611aa057600080fd5b505af1158015611ab4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ad891906126ef565b50610a303383611d29565b60008054821015611b205760005b5060008281526004602052604090205480611b1657611b0f83612ab8565b9250611af1565b600160e01b161590505b919050565b8060005260046000fd5b6000611b3a83611237565b9050818015611b525750336001600160a01b03821614155b15611b7557611b618133610884565b611b7557611b756367d9dca160e11b611b25565b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b6008546001600160a01b031633146112a75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c20565b60008181526004602052604090205480611c9d576000548210611c5957611c59636f96cda160e11b611b25565b5b506000190160008181526004602052604090205480611c7857611c5a565b600160e01b8116611c8857919050565b611c98636f96cda160e11b611b25565b611c5a565b600160e01b8116611cad57919050565b611b20636f96cda160e11b611b25565b600061161e82600e5485611f95565b610d94816000611fab565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005481611d4157611d4163b562e8dd60e01b611b25565b60008181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b1781179091558084526005909252909120805468010000000000000001850201905580611d9d57611d9d622e076360e81b611b25565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010180821415611da2575060005550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611e159033908990889088906004016128e4565b602060405180830381600087803b158015611e2f57600080fd5b505af1925050508015611e5f575060408051601f3d908101601f19168201909252611e5c91810190612742565b60015b611eb1573d808015611e8d576040519150601f19603f3d011682016040523d82523d6000602084013e611e92565b606091505b508051611ea957611ea96368d2bf6b60e11b611b25565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600a805461096690612acf565b60606000611eeb836120e5565b600101905060008167ffffffffffffffff811115611f0b57611f0b612b51565b6040519080825280601f01601f191660200182016040528015611f35576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611f6e57611f73565b611f3f565b509392505050565b610a308282604051806020016040528060008152506121bd565b600082611fa28584612226565b14949350505050565b6000611fb683611c2c565b905080600080611fd486600090815260066020526040902080549091565b91509150841561200b57611fe9818433610a89565b61200b57611ff78333610884565b61200b5761200b632ce44b5f60e11b611b25565b801561201657600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040902055600160e11b841661209d576001860160008181526004602052604090205461209b57600054811461209b5760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106121245772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612150576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061216e57662386f26fc10000830492506010015b6305f5e1008310612186576305f5e100830492506008015b612710831061219a57612710830492506004015b606483106121ac576064830492506002015b600a83106109515760010192915050565b6121c78383611d29565b6001600160a01b0383163b156111ef576000548281035b6121f16000868380600101945086611de0565b612205576122056368d2bf6b60e11b611b25565b8181106121de57816000541461221f5761221f6000611b25565b5050505050565b600081815b8451811015611f73576122578286838151811061224a5761224a612b3b565b602002602001015161226b565b91508061226381612b0a565b91505061222b565b600081831061228757600082815260208490526040902061161e565b600083815260208390526040902061161e565b8280546122a690612acf565b90600052602060002090601f0160209004810192826122c8576000855561230e565b82601f106122e157805160ff191683800117855561230e565b8280016001018555821561230e579182015b8281111561230e5782518255916020019190600101906122f3565b5061231a92915061231e565b5090565b5b8082111561231a576000815560010161231f565b600067ffffffffffffffff83111561234d5761234d612b51565b612360601f8401601f1916602001612a00565b905082815283838301111561237457600080fd5b828260208301376000602084830101529392505050565b600082601f83011261239c57600080fd5b813560206123b16123ac83612a31565b612a00565b80838252828201915082860187848660051b89010111156123d157600080fd5b60005b858110156123f0578135845292840192908401906001016123d4565b5090979650505050505050565b60006020828403121561240f57600080fd5b813561161e81612b67565b60006020828403121561242c57600080fd5b815161161e81612b67565b6000806040838503121561244a57600080fd5b823561245581612b67565b9150602083013561246581612b67565b809150509250929050565b60008060006060848603121561248557600080fd5b833561249081612b67565b925060208401356124a081612b67565b929592945050506040919091013590565b600080600080608085870312156124c757600080fd5b84356124d281612b67565b935060208501356124e281612b67565b925060408501359150606085013567ffffffffffffffff81111561250557600080fd5b8501601f8101871361251657600080fd5b61252587823560208401612333565b91505092959194509250565b6000806040838503121561254457600080fd5b823561254f81612b67565b9150602083013561246581612b7c565b6000806040838503121561257257600080fd5b823561257d81612b67565b946020939093013593505050565b6000806000606084860312156125a057600080fd5b83356125ab81612b67565b92506020840135915060408401356125c281612b7c565b809150509250925092565b600060208083850312156125e057600080fd5b823567ffffffffffffffff8111156125f757600080fd5b8301601f8101851361260857600080fd5b80356126166123ac82612a31565b80828252848201915084840188868560051b870101111561263657600080fd5b600094505b8385101561266257803561264e81612b67565b83526001949094019391850191850161263b565b50979650505050505050565b6000806040838503121561268157600080fd5b823567ffffffffffffffff8082111561269957600080fd5b6126a58683870161238b565b935060208501359150808211156126bb57600080fd5b506126c88582860161238b565b9150509250929050565b6000602082840312156126e457600080fd5b813561161e81612b7c565b60006020828403121561270157600080fd5b815161161e81612b7c565b60006020828403121561271e57600080fd5b5035919050565b60006020828403121561273757600080fd5b813561161e81612b8a565b60006020828403121561275457600080fd5b815161161e81612b8a565b60006020828403121561277157600080fd5b813567ffffffffffffffff81111561278857600080fd5b8201601f8101841361279957600080fd5b611ec784823560208401612333565b6000602082840312156127ba57600080fd5b813561ffff8116811461161e57600080fd5b6000602082840312156127de57600080fd5b5051919050565b600080604083850312156127f857600080fd5b82359150602083013561246581612b67565b60008060006040848603121561281f57600080fd5b83359250602084013567ffffffffffffffff8082111561283e57600080fd5b818601915086601f83011261285257600080fd5b81358181111561286157600080fd5b8760208260051b850101111561287657600080fd5b6020830194508093505050509250925092565b600081518084526128a1816020860160208601612a8c565b601f01601f19169290920160200192915050565b600083516128c7818460208801612a8c565b8351908301906128db818360208801612a8c565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061291790830184612889565b9695505050505050565b60208152600061161e6020830184612889565b60208082526027908201527f536f72727920796f7520646f6e27742068617665207065726d697373696f6e206040820152661d1bc81b5a5b9d60ca1b606082015260800190565b60208082526024908201527f4d696e7420616d6f756e742073686f756c6420626520677265617465722074686040820152630616e20360e41b606082015260800190565b60208082526021908201527f506173736564204d696e74206c696d697420706572207472616e73616374696f6040820152603760f91b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715612a2957612a29612b51565b604052919050565b600067ffffffffffffffff821115612a4b57612a4b612b51565b5060051b60200190565b60008219821115612a6857612a68612b25565b500190565b6000816000190483118215151615612a8757612a87612b25565b500290565b60005b83811015612aa7578181015183820152602001612a8f565b838111156115385750506000910152565b600081612ac757612ac7612b25565b506000190190565b600181811c90821680612ae357607f821691505b60208210811415612b0457634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612b1e57612b1e612b25565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610d9457600080fd5b8015158114610d9457600080fd5b6001600160e01b031981168114610d9457600080fdfea26469706673582212209fbafe6fdd4fb4aa35ee08d4cf009236ad998b25157f0051d6486240f91211d664736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000a83ad73eed496fcd7adc5f4027cbad818d0075a00000000000000000000000000000000000000000000000000000000000000028617069322e6f726967696e616c617065636c75622e696f2f6170692f76312f6e66742f62626f782f000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _baseUrl (string): api2.originalapeclub.io/api/v1/nft/bbox/
Arg [1] : _ogac (address): 0xA83ad73eEd496fcD7adc5F4027CbAD818D0075a0
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 000000000000000000000000a83ad73eed496fcd7adc5f4027cbad818d0075a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000028
Arg [3] : 617069322e6f726967696e616c617065636c75622e696f2f6170692f76312f6e
Arg [4] : 66742f62626f782f000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
93530:7841:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58181:639;;;;;;;;;;-1:-1:-1;58181:639:0;;;;;:::i;:::-;;:::i;:::-;;;12108:14:1;;12101:22;12083:41;;12071:2;12056:18;58181:639:0;;;;;;;;59083:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;66117:227::-;;;;;;;;;;-1:-1:-1;66117:227:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;10717:32:1;;;10699:51;;10687:2;10672:18;66117:227:0;10553:203:1;65834:124:0;;;;;;:::i;:::-;;:::i;:::-;;94213:36;;;;;;;;;;;;;;;;;;;20377:25:1;;;20365:2;20350:18;94213:36:0;20231:177:1;54825:323:0;;;;;;;;;;-1:-1:-1;55099:12:0;;54886:7;55083:13;:28;54825:323;;97304:90;;;;;;;;;;-1:-1:-1;97304:90:0;;;;;:::i;:::-;;:::i;69851:3523::-;;;;;;:::i;:::-;;:::i;94487:49::-;;;;;;;;;;-1:-1:-1;94487:49:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;96614:134;;;;;;;;;;-1:-1:-1;96614:134:0;;;;;:::i;:::-;;:::i;94010:38::-;;;;;;;;;;-1:-1:-1;94010:38:0;;;;;;;;;;;97822:435;;;;;;:::i;:::-;;:::i;97083:213::-;;;;;;;;;;-1:-1:-1;97083:213:0;;;;;:::i;:::-;;:::i;100910:80::-;;;;;;;;;;-1:-1:-1;100910:80:0;;;;;:::i;:::-;;:::i;101213:155::-;;;:::i;93861:24::-;;;;;;;;;;;;;:::i;98290:708::-;;;;;;;;;;-1:-1:-1;98290:708:0;;;;;:::i;:::-;;:::i;73470:193::-;;;;;;:::i;:::-;;:::i;100093:86::-;;;;;;;;;;-1:-1:-1;100093:86:0;;;;;:::i;:::-;;:::i;100712:107::-;;;;;;;;;;-1:-1:-1;100712:107:0;;;;;:::i;:::-;;:::i;93909:26::-;;;;;;;;;;-1:-1:-1;93909:26:0;;;;;;;;60485:152;;;;;;;;;;-1:-1:-1;60485:152:0;;;;;:::i;:::-;;:::i;94430:50::-;;;;;;;;;;-1:-1:-1;94430:50:0;;;;;:::i;:::-;;;;;;;;;;;;;;93942:27;;;;;;;;;;-1:-1:-1;93942:27:0;;;;;;;;;;;100610:94;;;;;;;;;;-1:-1:-1;100610:94:0;;;;;:::i;:::-;;:::i;56009:242::-;;;;;;;;;;-1:-1:-1;56009:242:0;;;;;:::i;:::-;;:::i;28980:103::-;;;;;;;;;;;;;:::i;99237:234::-;;;;;;;;;;-1:-1:-1;99237:234:0;;;;;:::i;:::-;;:::i;99006:104::-;;;;;;;;;;-1:-1:-1;99006:104:0;;;;;:::i;:::-;-1:-1:-1;;;;;99088:14:0;99064:4;99088:14;;;:6;:14;;;;;;;;;99006:104;28339:87;;;;;;;;;;-1:-1:-1;28412:6:0;;-1:-1:-1;;;;;28412:6:0;28339:87;;59259:104;;;;;;;;;;;;;:::i;93777:75::-;;;;;;;;;;-1:-1:-1;93777:75:0;;;;-1:-1:-1;;;;;93777:75:0;;;94378:45;;;;;;;;;;-1:-1:-1;94378:45:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;94897:534;;;;;;:::i;:::-;;:::i;66684:234::-;;;;;;;;;;-1:-1:-1;66684:234:0;;;;;:::i;:::-;;:::i;100358:99::-;;;;;;;;;;-1:-1:-1;100358:99:0;;;;;:::i;:::-;;:::i;74261:416::-;;;;;;:::i;:::-;;:::i;94081:46::-;;;;;;;;;;-1:-1:-1;94081:46:0;;;;;;;;;;;;;;20212:6:1;20200:19;;;20182:38;;20170:2;20155:18;94081:46:0;20038:188:1;93976:27:0;;;;;;;;;;-1:-1:-1;93976:27:0;;;;;;;;;;;100827:75;;;;;;;;;;;;;:::i;99598:487::-;;;;;;;;;;-1:-1:-1;99598:487:0;;;;;:::i;:::-;;:::i;99118:111::-;;;;;;;;;;-1:-1:-1;99118:111:0;;;;;:::i;:::-;;:::i;100998:79::-;;;;;;;;;;;;;:::i;94158:32::-;;;;;;;;;;;;;;;;100188:162;;;;;;;;;;-1:-1:-1;100188:162:0;;;;;:::i;:::-;;:::i;100465:129::-;;;;;;;;;;-1:-1:-1;100465:129:0;;;;;:::i;:::-;;:::i;67075:164::-;;;;;;;;;;-1:-1:-1;67075:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;67196:25:0;;;67172:4;67196:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;67075:164;29238:201;;;;;;;;;;-1:-1:-1;29238:201:0;;;;;:::i;:::-;;:::i;96824:250::-;;;;;;;;;;-1:-1:-1;96824:250:0;;;;;:::i;:::-;;:::i;95443:1084::-;;;;;;:::i;:::-;;:::i;58181:639::-;58266:4;-1:-1:-1;;;;;;;;;58590:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;58667:25:0;;;58590:102;:179;;;-1:-1:-1;;;;;;;;;;58744:25:0;;;58590:179;58570:199;58181:639;-1:-1:-1;;58181:639:0:o;59083:100::-;59137:13;59170:5;59163:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59083:100;:::o;66117:227::-;66193:7;66218:16;66226:7;66218;:16::i;:::-;66213:73;;66236:50;-1:-1:-1;;;66236:7:0;:50::i;:::-;-1:-1:-1;66306:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;66306:30:0;;66117:227::o;65834:124::-;65923:27;65932:2;65936:7;65945:4;65923:8;:27::i;:::-;65834:124;;:::o;97304:90::-;28225:13;:11;:13::i;:::-;97369:9:::1;:17:::0;97304:90::o;69851:3523::-;69993:27;70023;70042:7;70023:18;:27::i;:::-;-1:-1:-1;;;;;70178:22:0;;;;69993:57;;-1:-1:-1;70238:45:0;;;;70234:95;;70285:44;-1:-1:-1;;;70285:7:0;:44::i;:::-;70343:27;68959:24;;;:15;:24;;;;;69187:26;;70534:68;69187:26;70576:4;91343:10;70582:19;-1:-1:-1;;;;;68433:32:0;;;68277:28;;68562:20;;68584:30;;68559:56;;67974:659;70534:68;70529:189;;70622:43;70639:4;91343:10;67075:164;:::i;70622:43::-;70617:101;;70667:51;-1:-1:-1;;;70667:7:0;:51::i;:::-;70867:15;70864:160;;;71007:1;70986:19;70979:30;70864:160;-1:-1:-1;;;;;71404:24:0;;;;;;;:18;:24;;;;;;71402:26;;-1:-1:-1;;71402:26:0;;;71473:22;;;;;;;;;71471:24;;-1:-1:-1;71471:24:0;;;64936:11;64911:23;64907:41;64894:63;-1:-1:-1;;;64894:63:0;71766:26;;;;:17;:26;;;;;:175;-1:-1:-1;;;72061:47:0;;72057:627;;72166:1;72156:11;;72134:19;72289:30;;;:17;:30;;;;;;72285:384;;72427:13;;72412:11;:28;72408:242;;72574:30;;;;:17;:30;;;;;:52;;;72408:242;72115:569;72057:627;-1:-1:-1;;;;;72816:20:0;;73196:7;72816:20;73126:4;73068:25;72797:16;;72933:299;73257:13;73253:58;;73272:39;-1:-1:-1;;;73272:7:0;:39::i;:::-;69982:3392;;;;69851:3523;;;:::o;96614:134::-;28225:13;:11;:13::i;:::-;-1:-1:-1;;;;;96703:28:0;;;::::1;;::::0;;;:17:::1;:28;::::0;;;;:37;;-1:-1:-1;;96703:37:0::1;::::0;::::1;;::::0;;;::::1;::::0;;96614:134::o;97822:435::-;97961:8;;;;;;;97953:38;;;;-1:-1:-1;;;97953:38:0;;15829:2:1;97953:38:0;;;15811:21:1;15868:2;15848:18;;;15841:30;-1:-1:-1;;;15887:18:1;;;15880:47;15944:18;;97953:38:0;;;;;;;;;97750:34;;;98043:10;9746:2:1;9742:15;-1:-1:-1;;9738:53:1;97750:34:0;;;;9726:66:1;;;;9808:12;;;;9801:28;;;97750:34:0;;;;;;;;;;9845:12:1;;;;97750:34:0;;;97740:45;;;;;98024:47;;98065:5;;98024:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;98024:12:0;;-1:-1:-1;;;98024:47:0:i;:::-;98002:110;;;;-1:-1:-1;;;98002:110:0;;19149:2:1;98002:110:0;;;19131:21:1;19188:2;19168:18;;;19161:30;-1:-1:-1;;;19207:18:1;;;19200:43;19260:18;;98002:110:0;18947:337:1;98002:110:0;98141:10;98134:18;;;;:6;:18;;;;;;;;98133:19;98125:47;;;;-1:-1:-1;;;98125:47:0;;18047:2:1;98125:47:0;;;18029:21:1;18086:2;18066:18;;;18059:30;-1:-1:-1;;;18105:18:1;;;18098:45;18160:18;;98125:47:0;17845:339:1;98125:47:0;98183:30;98193:10;98205:7;98183:9;:30::i;:::-;-1:-1:-1;;98231:10:0;98224:18;;;;:6;:18;;;;;:25;;-1:-1:-1;;98224:25:0;98245:4;98224:25;;;-1:-1:-1;97822:435:0:o;97083:213::-;97184:10;97166:29;;;;:17;:29;;;;;;;;97144:118;;;;-1:-1:-1;;;97144:118:0;;;;;;;:::i;:::-;97273:15;97279:8;97273:5;:15::i;:::-;97083:213;:::o;100910:80::-;28225:13;:11;:13::i;:::-;100968:7:::1;:14:::0;;;::::1;;::::0;::::1;-1:-1:-1::0;;100968:14:0;;::::1;::::0;;;::::1;::::0;;100910:80::o;101213:155::-;28225:13;:11;:13::i;:::-;101270:7:::1;101291;28412:6:::0;;-1:-1:-1;;;;;28412:6:0;;28339:87;101291:7:::1;-1:-1:-1::0;;;;;101283:21:0::1;101312;101283:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;101269:69;;;101357:2;101349:11;;;::::0;::::1;93861:24:::0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;98290:708::-;98386:7;;;;;;;98378:34;;;;-1:-1:-1;;;98378:34:0;;12906:2:1;98378:34:0;;;12888:21:1;12945:2;12925:18;;;12918:30;-1:-1:-1;;;12964:18:1;;;12957:45;13019:18;;98378:34:0;12704:339:1;98378:34:0;98447:1;98431:7;:14;:17;:38;;;;;98468:1;98452:6;:13;:17;98431:38;98423:79;;;;-1:-1:-1;;;98423:79:0;;13657:2:1;98423:79:0;;;13639:21:1;13696:2;13676:18;;;13669:30;13735:31;13715:18;;;13708:59;13784:18;;98423:79:0;13455:353:1;98423:79:0;98539:6;:13;98521:7;:14;:31;98513:78;;;;-1:-1:-1;;;98513:78:0;;17643:2:1;98513:78:0;;;17625:21:1;17682:2;17662:18;;;17655:30;17721:34;17701:18;;;17694:62;-1:-1:-1;;;17772:18:1;;;17765:33;17815:19;;98513:78:0;17441:399:1;98513:78:0;98610:9;98605:386;98629:7;:14;98625:1;:18;98605:386;;;98697:10;-1:-1:-1;;;;;98674:33:0;:19;98682:7;98690:1;98682:10;;;;;;;;:::i;:::-;;;;;;;98674:7;:19::i;:::-;-1:-1:-1;;;;;98674:33:0;;98666:61;;;;-1:-1:-1;;;98666:61:0;;16882:2:1;98666:61:0;;;16864:21:1;16921:2;16901:18;;;16894:30;-1:-1:-1;;;16940:18:1;;;16933:46;16996:18;;98666:61:0;16680:340:1;98666:61:0;98751:4;;98764:9;;98778:10;;-1:-1:-1;;;;;98751:4:0;;:12;;98764:6;;98771:1;;98764:9;;;;;;:::i;:::-;;;;;;;98751:23;;;;;;;;;;;;;20377:25:1;;20365:2;20350:18;;20231:177;98751:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;98751:37:0;;98743:81;;;;-1:-1:-1;;;98743:81:0;;15060:2:1;98743:81:0;;;15042:21:1;;;15079:18;;;15072:30;15138:34;15118:18;;;15111:62;15190:18;;98743:81:0;14858:356:1;98743:81:0;98838:17;98844:7;98852:1;98844:10;;;;;;;;:::i;:::-;;;;;;;98838:5;:17::i;:::-;98946:10;-1:-1:-1;;;;;98939:40:0;;98957:7;98965:1;98957:10;;;;;;;;:::i;:::-;;;;;;;98969:6;98976:1;98969:9;;;;;;;;:::i;:::-;;;;;;;98939:40;;;;;;20587:25:1;;;20643:2;20628:18;;20621:34;20575:2;20560:18;;20413:248;98939:40:0;;;;;;;;98645:3;;;;:::i;:::-;;;;98605:386;;;;98290:708;;:::o;73470:193::-;73616:39;73633:4;73639:2;73643:7;73616:39;;;;;;;;;;;;:16;:39::i;100093:86::-;28225:13;:11;:13::i;:::-;100156:4:::1;:15:::0;100093:86::o;100712:107::-;28225:13;:11;:13::i;:::-;100787:24;;::::1;::::0;:10:::1;::::0;:24:::1;::::0;::::1;::::0;::::1;:::i;60485:152::-:0;60557:7;60600:27;60619:7;60600:18;:27::i;100610:94::-;28225:13;:11;:13::i;:::-;100677:9:::1;:19:::0;100610:94::o;56009:242::-;56081:7;-1:-1:-1;;;;;56105:19:0;;56101:69;;56126:44;-1:-1:-1;;;56126:7:0;:44::i;:::-;-1:-1:-1;;;;;;56188:25:0;;;;;:18;:25;;;;;;50168:13;56188:55;;56009:242::o;28980:103::-;28225:13;:11;:13::i;:::-;29045:30:::1;29072:1;29045:18;:30::i;:::-;28980:103::o:0;99237:234::-;28225:13;:11;:13::i;:::-;99323:9:::1;99318:146;99342:17;:24;99338:1;:28;99318:146;;;99388:10;99401:17;99419:1;99401:20;;;;;;;;:::i;:::-;;;;;;;99388:33;;99436:16;99446:2;99450:1;99436:9;:16::i;:::-;-1:-1:-1::0;99368:3:0;::::1;::::0;::::1;:::i;:::-;;;;99318:146;;59259:104:::0;59315:13;59348:7;59341:14;;;;;:::i;94897:534::-;94965:6;;;;94964:7;94956:38;;;;-1:-1:-1;;;94956:38:0;;19491:2:1;94956:38:0;;;19473:21:1;19530:2;19510:18;;;19503:30;-1:-1:-1;;;19549:18:1;;;19542:48;19607:18;;94956:38:0;19289:342:1;94956:38:0;95023:1;95013:7;:11;95005:60;;;;-1:-1:-1;;;95005:60:0;;;;;;;:::i;:::-;95113:9;;95101:7;95085:13;55099:12;;54886:7;55083:13;:28;;54825:323;95085:13;:23;;;;:::i;:::-;95084:38;;95076:68;;;;-1:-1:-1;;;95076:68:0;;16175:2:1;95076:68:0;;;16157:21:1;16214:2;16194:18;;;16187:30;-1:-1:-1;;;16233:18:1;;;16226:47;16290:18;;95076:68:0;15973:341:1;95076:68:0;95175:27;;;;;;;95164:38;;;95155:85;;;;-1:-1:-1;;;95155:85:0;;;;;;;:::i;:::-;28412:6;;-1:-1:-1;;;;;28412:6:0;95278:10;:21;95275:111;;95345:7;95338:4;;:14;;;;:::i;:::-;95324:9;:29;;95316:58;;;;-1:-1:-1;;;95316:58:0;;12561:2:1;95316:58:0;;;12543:21:1;12600:2;12580:18;;;12573:30;-1:-1:-1;;;12619:18:1;;;12612:46;12675:18;;95316:58:0;12359:340:1;95316:58:0;95397:26;95403:10;95415:7;95397:5;:26::i;66684:234::-;91343:10;66779:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;66779:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;66779:60:0;;;;;;;;;;66855:55;;12083:41:1;;;66779:49:0;;91343:10;66855:55;;12056:18:1;66855:55:0;;;;;;;66684:234;;:::o;100358:99::-;28225:13;:11;:13::i;:::-;100429:15:::1;:20:::0;;-1:-1:-1;;;;;;100429:20:0::1;-1:-1:-1::0;;;;;100429:20:0;;;::::1;::::0;;;::::1;::::0;;100358:99::o;74261:416::-;74436:31;74449:4;74455:2;74459:7;74436:12;:31::i;:::-;-1:-1:-1;;;;;74482:14:0;;;:19;74478:192;;74521:56;74552:4;74558:2;74562:7;74571:5;74521:30;:56::i;:::-;74516:154;;74598:56;-1:-1:-1;;;74598:7:0;:56::i;:::-;74261:416;;;;:::o;100827:75::-;28225:13;:11;:13::i;:::-;100888:6:::1;::::0;;-1:-1:-1;;100878:16:0;::::1;100888:6;::::0;;::::1;100887:7;100878:16;::::0;;100827:75::o;99598:487::-;99716:13;99769:16;99777:7;99769;:16::i;:::-;99747:113;;;;-1:-1:-1;;;99747:113:0;;17227:2:1;99747:113:0;;;17209:21:1;17266:2;17246:18;;;17239:30;17305:34;17285:18;;;17278:62;-1:-1:-1;;;17356:18:1;;;17349:45;17411:19;;99747:113:0;17025:411:1;99747:113:0;99871:28;99902:10;:8;:10::i;:::-;99871:41;;99974:1;99949:14;99943:28;:32;:134;;;;;;;;;;;;;;;;;100019:14;100035:18;:7;:16;:18::i;:::-;100002:52;;;;;;;;;:::i;:::-;;;;;;;;;;;;;99943:134;99923:154;99598:487;-1:-1:-1;;;99598:487:0:o;99118:111::-;28225:13;:11;:13::i;:::-;99194:27:::1;99204:3;99209:11;99194:9;:27::i;100998:79::-:0;28225:13;:11;:13::i;:::-;101061:8:::1;::::0;;-1:-1:-1;;101049:20:0;::::1;101061:8;::::0;;;::::1;;;101060:9;101049:20:::0;;::::1;;::::0;;100998:79::o;100188:162::-;28225:13;:11;:13::i;:::-;-1:-1:-1;;;;;100283:17:0;;;::::1;;::::0;;;:13:::1;:17;::::0;;;;;;;:24;;-1:-1:-1;;100283:24:0::1;::::0;::::1;;::::0;;;::::1;::::0;;;100318:15:::1;:19:::0;;;;;;:24;100188:162::o;100465:129::-;28225:13;:11;:13::i;:::-;100549:27:::1;:37:::0;;::::1;::::0;;::::1;::::0;::::1;-1:-1:-1::0;;100549:37:0;;::::1;::::0;;;::::1;::::0;;100465:129::o;29238:201::-;28225:13;:11;:13::i;:::-;-1:-1:-1;;;;;29327:22:0;::::1;29319:73;;;::::0;-1:-1:-1;;;29319:73:0;;13250:2:1;29319:73:0::1;::::0;::::1;13232:21:1::0;13289:2;13269:18;;;13262:30;13328:34;13308:18;;;13301:62;-1:-1:-1;;;13379:18:1;;;13372:36;13425:19;;29319:73:0::1;13048:402:1::0;29319:73:0::1;29403:28;29422:8;29403:18;:28::i;96824:250::-:0;96945:10;96927:29;;;;:17;:29;;;;;;;;96905:118;;;;-1:-1:-1;;;96905:118:0;;;;;;;:::i;:::-;97034:32;97044:8;97054:11;97034:9;:32::i;95443:1084::-;95564:18;;;;;;;95563:19;95555:50;;;;-1:-1:-1;;;95555:50:0;;19491:2:1;95555:50:0;;;19473:21:1;19530:2;19510:18;;;19503:30;-1:-1:-1;;;19549:18:1;;;19542:48;19607:18;;95555:50:0;19289:342:1;95555:50:0;95634:1;95624:7;:11;95616:60;;;;-1:-1:-1;;;95616:60:0;;;;;;;:::i;:::-;95724:9;;95712:7;95696:13;55099:12;;54886:7;55083:13;:28;;54825:323;95696:13;:23;;;;:::i;:::-;95695:38;;95687:69;;;;-1:-1:-1;;;95687:69:0;;14015:2:1;95687:69:0;;;13997:21:1;14054:2;14034:18;;;14027:30;-1:-1:-1;;;14073:18:1;;;14066:48;14131:18;;95687:69:0;13813:342:1;95687:69:0;95800:27;;;;;;;95789:38;;;95767:121;;;;-1:-1:-1;;;95767:121:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;95953:21:0;;;;;;:13;:21;;;;;;;;95945:54;;;;-1:-1:-1;;;95945:54:0;;14362:2:1;95945:54:0;;;14344:21:1;14401:2;14381:18;;;14374:30;-1:-1:-1;;;14420:18:1;;;14413:50;14480:18;;95945:54:0;14160:344:1;95945:54:0;-1:-1:-1;;;;;96059:23:0;;96085:1;96059:23;;;:15;:23;;;;;;96051:64;;;;-1:-1:-1;;;96051:64:0;;18391:2:1;96051:64:0;;;18373:21:1;18430:2;18410:18;;;18403:30;18469:26;18449:18;;;18442:54;18513:18;;96051:64:0;18189:348:1;96051:64:0;-1:-1:-1;;;;;96248:23:0;;;;;;:15;:23;;;;;;:33;;96274:7;;96248:33;:::i;:::-;96175:51;;-1:-1:-1;;;96175:51:0;;96200:10;96175:51;;;10973:34:1;96220:4:0;11023:18:1;;;11016:43;-1:-1:-1;;;;;96175:24:0;;;;;10908:18:1;;96175:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:107;;96153:177;;;;-1:-1:-1;;;96153:177:0;;14711:2:1;96153:177:0;;;14693:21:1;14750:2;14730:18;;;14723:30;-1:-1:-1;;;14769:18:1;;;14762:50;14829:18;;96153:177:0;14509:344:1;96153:177:0;96408:15;;-1:-1:-1;;;;;96341:27:0;;;96408:15;96438:23;;;:15;:23;;;;;;96341:27;;;;96383:10;;96408:15;;;96438:33;;96464:7;;96438:33;:::i;:::-;96341:141;;-1:-1:-1;;;;;;96341:141:0;;;;;;;-1:-1:-1;;;;;11328:15:1;;;96341:141:0;;;11310:34:1;11380:15;;;;11360:18;;;11353:43;11412:18;;;11405:34;11245:18;;96341:141:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;96493:26;96499:10;96511:7;96493:5;:26::i;67497:368::-;67562:11;67647:13;;67637:7;:23;67633:214;;;67681:14;67714:60;-1:-1:-1;67731:26:0;;;;:17;:26;;;;;;67721:42;67714:60;;67765:9;;;:::i;:::-;;;67714:60;;;-1:-1:-1;;;67802:24:0;:29;;-1:-1:-1;67633:214:0;67497:368;;;:::o;93275:165::-;93376:13;93370:4;93363:27;93417:4;93411;93404:18;84708:474;84837:13;84853:16;84861:7;84853;:16::i;:::-;84837:32;;84886:13;:45;;;;-1:-1:-1;91343:10:0;-1:-1:-1;;;;;84903:28:0;;;;84886:45;84882:201;;;84951:44;84968:5;91343:10;67075:164;:::i;84951:44::-;84946:137;;85016:51;-1:-1:-1;;;85016:7:0;:51::i;:::-;85095:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;85095:35:0;-1:-1:-1;;;;;85095:35:0;;;;;;;;;85146:28;;85095:24;;85146:28;;;;;;;84826:356;84708:474;;;:::o;28504:132::-;28412:6;;-1:-1:-1;;;;;28412:6:0;91343:10;28568:23;28560:68;;;;-1:-1:-1;;;28560:68:0;;16521:2:1;28560:68:0;;;16503:21:1;;;16540:18;;;16533:30;16599:34;16579:18;;;16572:62;16651:18;;28560:68:0;16319:356:1;61965:2012:0;62115:26;;;;:17;:26;;;;;;62241:11;62237:1292;;62288:13;;62277:7;:24;62273:77;;62303:47;-1:-1:-1;;;62303:7:0;:47::i;:::-;62907:607;-1:-1:-1;;;63003:9:0;62985:28;;;;:17;:28;;;;;;63063:11;63059:25;;62907:607;;63059:25;-1:-1:-1;;;63111:24:0;;63107:48;;61965:2012;;;:::o;63107:48::-;63447:47;-1:-1:-1;;;63447:7:0;:47::i;:::-;62907:607;;62237:1292;-1:-1:-1;;;63856:24:0;;63852:48;;61965:2012;;;:::o;63852:48::-;63922:47;-1:-1:-1;;;63922:7:0;:47::i;97402:199::-;97517:4;97546:47;97565:5;97572:9;;97583;97546:18;:47::i;85449:89::-;85509:21;85515:7;85524:5;85509;:21::i;29599:191::-;29692:6;;;-1:-1:-1;;;;;29709:17:0;;;-1:-1:-1;;;;;;29709:17:0;;;;;;;29742:40;;29692:6;;;29709:17;29692:6;;29742:40;;29673:16;;29742:40;29662:128;29599:191;:::o;77914:2305::-;77987:20;78010:13;78038;78034:53;;78053:34;-1:-1:-1;;;78053:7:0;:34::i;:::-;78600:31;;;;:17;:31;;;;;;;;-1:-1:-1;;;;;64762:28:0;;64936:11;64911:23;64907:41;65380:1;65367:15;;65341:24;65337:46;64904:52;64894:63;;78600:173;;;78991:22;;;:18;:22;;;;;;:71;;79029:32;79017:45;;78991:71;;;64762:28;79248:54;;79267:35;-1:-1:-1;;;79267:7:0;:35::i;:::-;79333:23;;;:12;79418:676;79837:7;79793:8;79748:1;79682:25;79619:1;79554;79523:358;80076:9;;:16;;;;79418:676;;-1:-1:-1;80110:13:0;:19;-1:-1:-1;98605:386:0;98290:708;;:::o;76761:691::-;76945:88;;-1:-1:-1;;;76945:88:0;;76924:4;;-1:-1:-1;;;;;76945:45:0;;;;;:88;;91343:10;;77012:4;;77018:7;;77027:5;;76945:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;76945:88:0;;;;;;;;-1:-1:-1;;76945:88:0;;;;;;;;;;;;:::i;:::-;;;76941:504;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;77228:13:0;;77224:115;;77267:56;-1:-1:-1;;;77267:7:0;:56::i;:::-;77411:6;77405:13;77396:6;77392:2;77388:15;77381:38;76941:504;-1:-1:-1;;;;;;77104:64:0;-1:-1:-1;;;77104:64:0;;-1:-1:-1;76941:504:0;76761:691;;;;;;:::o;99479:111::-;99539:13;99572:10;99565:17;;;;;:::i;23776:727::-;23832:13;23883:14;23900:28;23922:5;23900:21;:28::i;:::-;23931:1;23900:32;23883:49;;23947:20;23981:6;23970:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23970:18:0;-1:-1:-1;23947:41:0;-1:-1:-1;24112:28:0;;;24128:2;24112:28;24169:288;-1:-1:-1;;24201:5:0;-1:-1:-1;;;24338:2:0;24327:14;;24322:30;24201:5;24309:44;24399:2;24390:11;;;-1:-1:-1;24424:10:0;24420:21;;24436:5;;24420:21;24169:288;;;-1:-1:-1;24478:6:0;23776:727;-1:-1:-1;;;23776:727:0:o;83790:112::-;83867:27;83877:2;83881:8;83867:27;;;;;;;;;;;;:9;:27::i;31019:156::-;31110:4;31163;31134:25;31147:5;31154:4;31134:12;:25::i;:::-;:33;;31019:156;-1:-1:-1;;;;31019:156:0:o;85767:3090::-;85847:27;85877;85896:7;85877:18;:27::i;:::-;85847:57;-1:-1:-1;85847:57:0;85917:12;;86039:35;86066:7;68848:27;68959:24;;;:15;:24;;;;;69187:26;;68959:24;;68746:485;86039:35;85982:92;;;;86091:13;86087:325;;;86212:68;86237:15;86254:4;91343:10;86260:19;91256:105;86212:68;86207:193;;86304:43;86321:4;91343:10;67075:164;:::i;86304:43::-;86299:101;;86349:51;-1:-1:-1;;;86349:7:0;:51::i;:::-;86568:15;86565:160;;;86708:1;86687:19;86680:30;86565:160;-1:-1:-1;;;;;87327:24:0;;;;;;:18;:24;;;;;:60;;87355:32;87327:60;;;64936:11;64911:23;64907:41;64894:63;-1:-1:-1;;;64894:63:0;87625:26;;;;:17;:26;;;;;:205;-1:-1:-1;;;87950:47:0;;87946:627;;88055:1;88045:11;;88023:19;88178:30;;;:17;:30;;;;;;88174:384;;88316:13;;88301:11;:28;88297:242;;88463:30;;;;:17;:30;;;;;:52;;;88297:242;88004:569;87946:627;88601:35;;88628:7;;88624:1;;-1:-1:-1;;;;;88601:35:0;;;;;88624:1;;88601:35;-1:-1:-1;;88824:12:0;:14;;;;;;-1:-1:-1;;;;85767:3090:0:o;20576:948::-;20629:7;;-1:-1:-1;;;20707:17:0;;20703:106;;-1:-1:-1;;;20745:17:0;;;-1:-1:-1;20791:2:0;20781:12;20703:106;20836:8;20827:5;:17;20823:106;;20874:8;20865:17;;;-1:-1:-1;20911:2:0;20901:12;20823:106;20956:8;20947:5;:17;20943:106;;20994:8;20985:17;;;-1:-1:-1;21031:2:0;21021:12;20943:106;21076:7;21067:5;:16;21063:103;;21113:7;21104:16;;;-1:-1:-1;21149:1:0;21139:11;21063:103;21193:7;21184:5;:16;21180:103;;21230:7;21221:16;;;-1:-1:-1;21266:1:0;21256:11;21180:103;21310:7;21301:5;:16;21297:103;;21347:7;21338:16;;;-1:-1:-1;21383:1:0;21373:11;21297:103;21427:7;21418:5;:16;21414:68;;21465:1;21455:11;21510:6;20576:948;-1:-1:-1;;20576:948:0:o;82998:708::-;83129:19;83135:2;83139:8;83129:5;:19::i;:::-;-1:-1:-1;;;;;83190:14:0;;;:19;83186:502;;83230:11;83244:13;83292:14;;;83325:242;83356:62;83395:1;83399:2;83403:7;;;;;;83412:5;83356:30;:62::i;:::-;83351:176;;83447:56;-1:-1:-1;;;83447:7:0;:56::i;:::-;83562:3;83554:5;:11;83325:242;;83649:3;83632:13;;:20;83628:44;;83654:18;83669:1;83654:7;:18::i;:::-;83211:477;;82998:708;;;:::o;31818:296::-;31901:7;31944:4;31901:7;31959:118;31983:5;:12;31979:1;:16;31959:118;;;32032:33;32042:12;32056:5;32062:1;32056:8;;;;;;;;:::i;:::-;;;;;;;32032:9;:33::i;:::-;32017:48;-1:-1:-1;31997:3:0;;;;:::i;:::-;;;;31959:118;;39256:149;39319:7;39350:1;39346;:5;:51;;39481:13;39575:15;;;39611:4;39604:15;;;39658:4;39642:21;;39346:51;;;39481:13;39575:15;;;39611:4;39604:15;;;39658:4;39642:21;;39354:20;39413:268;-1:-1:-1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:406:1;78:5;112:18;104:6;101:30;98:56;;;134:18;;:::i;:::-;172:57;217:2;196:15;;-1:-1:-1;;192:29:1;223:4;188:40;172:57;:::i;:::-;163:66;;252:6;245:5;238:21;292:3;283:6;278:3;274:16;271:25;268:45;;;309:1;306;299:12;268:45;358:6;353:3;346:4;339:5;335:16;322:43;412:1;405:4;396:6;389:5;385:18;381:29;374:40;14:406;;;;;:::o;425:673::-;479:5;532:3;525:4;517:6;513:17;509:27;499:55;;550:1;547;540:12;499:55;586:6;573:20;612:4;636:60;652:43;692:2;652:43;:::i;:::-;636:60;:::i;:::-;718:3;742:2;737:3;730:15;770:2;765:3;761:12;754:19;;805:2;797:6;793:15;857:3;852:2;846;843:1;839:10;831:6;827:23;823:32;820:41;817:61;;;874:1;871;864:12;817:61;896:1;906:163;920:2;917:1;914:9;906:163;;;977:17;;965:30;;1015:12;;;;1047;;;;938:1;931:9;906:163;;;-1:-1:-1;1087:5:1;;425:673;-1:-1:-1;;;;;;;425:673:1:o;1103:247::-;1162:6;1215:2;1203:9;1194:7;1190:23;1186:32;1183:52;;;1231:1;1228;1221:12;1183:52;1270:9;1257:23;1289:31;1314:5;1289:31;:::i;1355:251::-;1425:6;1478:2;1466:9;1457:7;1453:23;1449:32;1446:52;;;1494:1;1491;1484:12;1446:52;1526:9;1520:16;1545:31;1570:5;1545:31;:::i;1611:388::-;1679:6;1687;1740:2;1728:9;1719:7;1715:23;1711:32;1708:52;;;1756:1;1753;1746:12;1708:52;1795:9;1782:23;1814:31;1839:5;1814:31;:::i;:::-;1864:5;-1:-1:-1;1921:2:1;1906:18;;1893:32;1934:33;1893:32;1934:33;:::i;:::-;1986:7;1976:17;;;1611:388;;;;;:::o;2004:456::-;2081:6;2089;2097;2150:2;2138:9;2129:7;2125:23;2121:32;2118:52;;;2166:1;2163;2156:12;2118:52;2205:9;2192:23;2224:31;2249:5;2224:31;:::i;:::-;2274:5;-1:-1:-1;2331:2:1;2316:18;;2303:32;2344:33;2303:32;2344:33;:::i;:::-;2004:456;;2396:7;;-1:-1:-1;;;2450:2:1;2435:18;;;;2422:32;;2004:456::o;2465:794::-;2560:6;2568;2576;2584;2637:3;2625:9;2616:7;2612:23;2608:33;2605:53;;;2654:1;2651;2644:12;2605:53;2693:9;2680:23;2712:31;2737:5;2712:31;:::i;:::-;2762:5;-1:-1:-1;2819:2:1;2804:18;;2791:32;2832:33;2791:32;2832:33;:::i;:::-;2884:7;-1:-1:-1;2938:2:1;2923:18;;2910:32;;-1:-1:-1;2993:2:1;2978:18;;2965:32;3020:18;3009:30;;3006:50;;;3052:1;3049;3042:12;3006:50;3075:22;;3128:4;3120:13;;3116:27;-1:-1:-1;3106:55:1;;3157:1;3154;3147:12;3106:55;3180:73;3245:7;3240:2;3227:16;3222:2;3218;3214:11;3180:73;:::i;:::-;3170:83;;;2465:794;;;;;;;:::o;3264:382::-;3329:6;3337;3390:2;3378:9;3369:7;3365:23;3361:32;3358:52;;;3406:1;3403;3396:12;3358:52;3445:9;3432:23;3464:31;3489:5;3464:31;:::i;:::-;3514:5;-1:-1:-1;3571:2:1;3556:18;;3543:32;3584:30;3543:32;3584:30;:::i;3651:315::-;3719:6;3727;3780:2;3768:9;3759:7;3755:23;3751:32;3748:52;;;3796:1;3793;3786:12;3748:52;3835:9;3822:23;3854:31;3879:5;3854:31;:::i;:::-;3904:5;3956:2;3941:18;;;;3928:32;;-1:-1:-1;;;3651:315:1:o;3971:450::-;4045:6;4053;4061;4114:2;4102:9;4093:7;4089:23;4085:32;4082:52;;;4130:1;4127;4120:12;4082:52;4169:9;4156:23;4188:31;4213:5;4188:31;:::i;:::-;4238:5;-1:-1:-1;4290:2:1;4275:18;;4262:32;;-1:-1:-1;4346:2:1;4331:18;;4318:32;4359:30;4318:32;4359:30;:::i;:::-;4408:7;4398:17;;;3971:450;;;;;:::o;4426:977::-;4510:6;4541:2;4584;4572:9;4563:7;4559:23;4555:32;4552:52;;;4600:1;4597;4590:12;4552:52;4640:9;4627:23;4673:18;4665:6;4662:30;4659:50;;;4705:1;4702;4695:12;4659:50;4728:22;;4781:4;4773:13;;4769:27;-1:-1:-1;4759:55:1;;4810:1;4807;4800:12;4759:55;4846:2;4833:16;4869:60;4885:43;4925:2;4885:43;:::i;4869:60::-;4951:3;4975:2;4970:3;4963:15;5003:2;4998:3;4994:12;4987:19;;5034:2;5030;5026:11;5082:7;5077:2;5071;5068:1;5064:10;5060:2;5056:19;5052:28;5049:41;5046:61;;;5103:1;5100;5093:12;5046:61;5125:1;5116:10;;5135:238;5149:2;5146:1;5143:9;5135:238;;;5220:3;5207:17;5237:31;5262:5;5237:31;:::i;:::-;5281:18;;5167:1;5160:9;;;;;5319:12;;;;5351;;5135:238;;;-1:-1:-1;5392:5:1;4426:977;-1:-1:-1;;;;;;;4426:977:1:o;5408:595::-;5526:6;5534;5587:2;5575:9;5566:7;5562:23;5558:32;5555:52;;;5603:1;5600;5593:12;5555:52;5643:9;5630:23;5672:18;5713:2;5705:6;5702:14;5699:34;;;5729:1;5726;5719:12;5699:34;5752:61;5805:7;5796:6;5785:9;5781:22;5752:61;:::i;:::-;5742:71;;5866:2;5855:9;5851:18;5838:32;5822:48;;5895:2;5885:8;5882:16;5879:36;;;5911:1;5908;5901:12;5879:36;;5934:63;5989:7;5978:8;5967:9;5963:24;5934:63;:::i;:::-;5924:73;;;5408:595;;;;;:::o;6008:241::-;6064:6;6117:2;6105:9;6096:7;6092:23;6088:32;6085:52;;;6133:1;6130;6123:12;6085:52;6172:9;6159:23;6191:28;6213:5;6191:28;:::i;6254:245::-;6321:6;6374:2;6362:9;6353:7;6349:23;6345:32;6342:52;;;6390:1;6387;6380:12;6342:52;6422:9;6416:16;6441:28;6463:5;6441:28;:::i;6504:180::-;6563:6;6616:2;6604:9;6595:7;6591:23;6587:32;6584:52;;;6632:1;6629;6622:12;6584:52;-1:-1:-1;6655:23:1;;6504:180;-1:-1:-1;6504:180:1:o;6689:245::-;6747:6;6800:2;6788:9;6779:7;6775:23;6771:32;6768:52;;;6816:1;6813;6806:12;6768:52;6855:9;6842:23;6874:30;6898:5;6874:30;:::i;6939:249::-;7008:6;7061:2;7049:9;7040:7;7036:23;7032:32;7029:52;;;7077:1;7074;7067:12;7029:52;7109:9;7103:16;7128:30;7152:5;7128:30;:::i;7193:450::-;7262:6;7315:2;7303:9;7294:7;7290:23;7286:32;7283:52;;;7331:1;7328;7321:12;7283:52;7371:9;7358:23;7404:18;7396:6;7393:30;7390:50;;;7436:1;7433;7426:12;7390:50;7459:22;;7512:4;7504:13;;7500:27;-1:-1:-1;7490:55:1;;7541:1;7538;7531:12;7490:55;7564:73;7629:7;7624:2;7611:16;7606:2;7602;7598:11;7564:73;:::i;7648:272::-;7706:6;7759:2;7747:9;7738:7;7734:23;7730:32;7727:52;;;7775:1;7772;7765:12;7727:52;7814:9;7801:23;7864:6;7857:5;7853:18;7846:5;7843:29;7833:57;;7886:1;7883;7876:12;8110:184;8180:6;8233:2;8221:9;8212:7;8208:23;8204:32;8201:52;;;8249:1;8246;8239:12;8201:52;-1:-1:-1;8272:16:1;;8110:184;-1:-1:-1;8110:184:1:o;8299:315::-;8367:6;8375;8428:2;8416:9;8407:7;8403:23;8399:32;8396:52;;;8444:1;8441;8434:12;8396:52;8480:9;8467:23;8457:33;;8540:2;8529:9;8525:18;8512:32;8553:31;8578:5;8553:31;:::i;8619:683::-;8714:6;8722;8730;8783:2;8771:9;8762:7;8758:23;8754:32;8751:52;;;8799:1;8796;8789:12;8751:52;8835:9;8822:23;8812:33;;8896:2;8885:9;8881:18;8868:32;8919:18;8960:2;8952:6;8949:14;8946:34;;;8976:1;8973;8966:12;8946:34;9014:6;9003:9;8999:22;8989:32;;9059:7;9052:4;9048:2;9044:13;9040:27;9030:55;;9081:1;9078;9071:12;9030:55;9121:2;9108:16;9147:2;9139:6;9136:14;9133:34;;;9163:1;9160;9153:12;9133:34;9216:7;9211:2;9201:6;9198:1;9194:14;9190:2;9186:23;9182:32;9179:45;9176:65;;;9237:1;9234;9227:12;9176:65;9268:2;9264;9260:11;9250:21;;9290:6;9280:16;;;;;8619:683;;;;;:::o;9307:257::-;9348:3;9386:5;9380:12;9413:6;9408:3;9401:19;9429:63;9485:6;9478:4;9473:3;9469:14;9462:4;9455:5;9451:16;9429:63;:::i;:::-;9546:2;9525:15;-1:-1:-1;;9521:29:1;9512:39;;;;9553:4;9508:50;;9307:257;-1:-1:-1;;9307:257:1:o;9868:470::-;10047:3;10085:6;10079:13;10101:53;10147:6;10142:3;10135:4;10127:6;10123:17;10101:53;:::i;:::-;10217:13;;10176:16;;;;10239:57;10217:13;10176:16;10273:4;10261:17;;10239:57;:::i;:::-;10312:20;;9868:470;-1:-1:-1;;;;9868:470:1:o;11450:488::-;-1:-1:-1;;;;;11719:15:1;;;11701:34;;11771:15;;11766:2;11751:18;;11744:43;11818:2;11803:18;;11796:34;;;11866:3;11861:2;11846:18;;11839:31;;;11644:4;;11887:45;;11912:19;;11904:6;11887:45;:::i;:::-;11879:53;11450:488;-1:-1:-1;;;;;;11450:488:1:o;12135:219::-;12284:2;12273:9;12266:21;12247:4;12304:44;12344:2;12333:9;12329:18;12321:6;12304:44;:::i;15219:403::-;15421:2;15403:21;;;15460:2;15440:18;;;15433:30;15499:34;15494:2;15479:18;;15472:62;-1:-1:-1;;;15565:2:1;15550:18;;15543:37;15612:3;15597:19;;15219:403::o;18542:400::-;18744:2;18726:21;;;18783:2;18763:18;;;18756:30;18822:34;18817:2;18802:18;;18795:62;-1:-1:-1;;;18888:2:1;18873:18;;18866:34;18932:3;18917:19;;18542:400::o;19636:397::-;19838:2;19820:21;;;19877:2;19857:18;;;19850:30;19916:34;19911:2;19896:18;;19889:62;-1:-1:-1;;;19982:2:1;19967:18;;19960:31;20023:3;20008:19;;19636:397::o;20666:275::-;20737:2;20731:9;20802:2;20783:13;;-1:-1:-1;;20779:27:1;20767:40;;20837:18;20822:34;;20858:22;;;20819:62;20816:88;;;20884:18;;:::i;:::-;20920:2;20913:22;20666:275;;-1:-1:-1;20666:275:1:o;20946:183::-;21006:4;21039:18;21031:6;21028:30;21025:56;;;21061:18;;:::i;:::-;-1:-1:-1;21106:1:1;21102:14;21118:4;21098:25;;20946:183::o;21134:128::-;21174:3;21205:1;21201:6;21198:1;21195:13;21192:39;;;21211:18;;:::i;:::-;-1:-1:-1;21247:9:1;;21134:128::o;21267:168::-;21307:7;21373:1;21369;21365:6;21361:14;21358:1;21355:21;21350:1;21343:9;21336:17;21332:45;21329:71;;;21380:18;;:::i;:::-;-1:-1:-1;21420:9:1;;21267:168::o;21440:258::-;21512:1;21522:113;21536:6;21533:1;21530:13;21522:113;;;21612:11;;;21606:18;21593:11;;;21586:39;21558:2;21551:10;21522:113;;;21653:6;21650:1;21647:13;21644:48;;;-1:-1:-1;;21688:1:1;21670:16;;21663:27;21440:258::o;21703:136::-;21742:3;21770:5;21760:39;;21779:18;;:::i;:::-;-1:-1:-1;;;21815:18:1;;21703:136::o;21844:380::-;21923:1;21919:12;;;;21966;;;21987:61;;22041:4;22033:6;22029:17;22019:27;;21987:61;22094:2;22086:6;22083:14;22063:18;22060:38;22057:161;;;22140:10;22135:3;22131:20;22128:1;22121:31;22175:4;22172:1;22165:15;22203:4;22200:1;22193:15;22057:161;;21844:380;;;:::o;22229:135::-;22268:3;-1:-1:-1;;22289:17:1;;22286:43;;;22309:18;;:::i;:::-;-1:-1:-1;22356:1:1;22345:13;;22229:135::o;22369:127::-;22430:10;22425:3;22421:20;22418:1;22411:31;22461:4;22458:1;22451:15;22485:4;22482:1;22475:15;22633:127;22694:10;22689:3;22685:20;22682:1;22675:31;22725:4;22722:1;22715:15;22749:4;22746:1;22739:15;22765:127;22826:10;22821:3;22817:20;22814:1;22807:31;22857:4;22854:1;22847:15;22881:4;22878:1;22871:15;22897:131;-1:-1:-1;;;;;22972:31:1;;22962:42;;22952:70;;23018:1;23015;23008:12;23033:118;23119:5;23112:13;23105:21;23098:5;23095:32;23085:60;;23141:1;23138;23131:12;23156:131;-1:-1:-1;;;;;;23230:32:1;;23220:43;;23210:71;;23277:1;23274;23267:12
Swarm Source
ipfs://9fbafe6fdd4fb4aa35ee08d4cf009236ad998b25157f0051d6486240f91211d6
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.