ERC-721
Overview
Max Total Supply
6,901 SVB
Holders
1,677
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
167 SVBLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SiliconValleyBankers
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-03-14 */ // Sources flattened with hardhat v2.12.6 https://hardhat.org // File @openzeppelin/contracts/utils/[email protected] // SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File @openzeppelin/contracts/interfaces/[email protected] // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); } // File @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File @openzeppelin/contracts/token/common/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } } // File @openzeppelin/contracts/utils/math/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File @openzeppelin/contracts/utils/cryptography/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV // Deprecated in v4.8 } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } } // File contracts/IERC721A.sol // ERC721A Contracts v4.2.2 // 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(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * 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; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @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; /** * @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); // ============================================================= // 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 contracts/ERC721A.sol // ERC721A Contracts v4.2.2 // 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 { // Reference type for token approval. struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public 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 virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 0x80 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 0x20 + 3 * 0x20 = 0x80. str := add(mload(0x40), 0x80) // Update the free memory pointer to allocate. mstore(0x40, str) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } // File contracts/extensions/IERC4907A.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC4907A. */ interface IERC4907A is IERC721A { /** * The caller must own the token or be an approved operator. */ error SetUserCallerNotOwnerNorApproved(); /** * @dev Emitted when the `user` of an NFT or the `expires` of the `user` is changed. * The zero address for user indicates that there is no user address. */ event UpdateUser(uint256 indexed tokenId, address indexed user, uint64 expires); /** * @dev Sets the `user` and `expires` for `tokenId`. * The zero address indicates there is no user. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function setUser( uint256 tokenId, address user, uint64 expires ) external; /** * @dev Returns the user address for `tokenId`. * The zero address indicates that there is no user or if the user is expired. */ function userOf(uint256 tokenId) external view returns (address); /** * @dev Returns the user's expires of `tokenId`. */ function userExpires(uint256 tokenId) external view returns (uint256); } // File contracts/extensions/ERC4907A.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @title ERC4907A * * @dev [ERC4907](https://eips.ethereum.org/EIPS/eip-4907) compliant * extension of ERC721A, which allows owners and authorized addresses * to add a time-limited role with restricted permissions to ERC721 tokens. */ abstract contract ERC4907A is ERC721A, IERC4907A { // The bit position of `expires` in packed user info. uint256 private constant _BITPOS_EXPIRES = 160; // Mapping from token ID to user info. // // Bits Layout: // - [0..159] `user` // - [160..223] `expires` mapping(uint256 => uint256) private _packedUserInfo; /** * @dev Sets the `user` and `expires` for `tokenId`. * The zero address indicates there is no user. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function setUser( uint256 tokenId, address user, uint64 expires ) public virtual override { // Require the caller to be either the token owner or an approved operator. address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) if (getApproved(tokenId) != _msgSenderERC721A()) revert SetUserCallerNotOwnerNorApproved(); _packedUserInfo[tokenId] = (uint256(expires) << _BITPOS_EXPIRES) | uint256(uint160(user)); emit UpdateUser(tokenId, user, expires); } /** * @dev Returns the user address for `tokenId`. * The zero address indicates that there is no user or if the user is expired. */ function userOf(uint256 tokenId) public view virtual override returns (address) { uint256 packed = _packedUserInfo[tokenId]; assembly { // Branchless `packed *= (block.timestamp <= expires ? 1 : 0)`. // If the `block.timestamp == expires`, the `lt` clause will be true // if there is a non-zero user address in the lower 160 bits of `packed`. packed := mul( packed, // `block.timestamp <= expires ? 1 : 0`. lt(shl(_BITPOS_EXPIRES, timestamp()), packed) ) } return address(uint160(packed)); } /** * @dev Returns the user's expires of `tokenId`. */ function userExpires(uint256 tokenId) public view virtual override returns (uint256) { return _packedUserInfo[tokenId] >> _BITPOS_EXPIRES; } /** * @dev Override of {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, IERC721A) returns (bool) { // The interface ID for ERC4907 is `0xad092b5c`, // as defined in [ERC4907](https://eips.ethereum.org/EIPS/eip-4907). return super.supportsInterface(interfaceId) || interfaceId == 0xad092b5c; } /** * @dev Returns the user address for `tokenId`, ignoring the expiry status. */ function _explicitUserOf(uint256 tokenId) internal view virtual returns (address) { return address(uint160(_packedUserInfo[tokenId])); } } // File contracts/extensions/IERC721ABurnable.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721ABurnable. */ interface IERC721ABurnable is IERC721A { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) external; } // File contracts/extensions/ERC721ABurnable.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @title ERC721ABurnable. * * @dev ERC721A token that can be irreversibly burned (destroyed). */ abstract contract ERC721ABurnable is ERC721A, IERC721ABurnable { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual override { _burn(tokenId, true); } } // File contracts/extensions/IERC721AQueryable.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721AQueryable. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); } // File contracts/extensions/ERC721AQueryable.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @title ERC721AQueryable. * * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } } // File contracts/interfaces/IERC4907A.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; // File contracts/interfaces/IERC721A.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; // File contracts/interfaces/IERC721ABurnable.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; // File contracts/interfaces/IERC721AQueryable.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; // File @openzeppelin/contracts/security/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File contracts/svbankers.sol pragma solidity ^0.8.13; error AccessDenied(); error ExceedsMaxPerTransaction(); error MaxPerWalletExceeded(); error IncorrectPayment(); error InvalidMintQuantity(); error MintingDisabled(); error PresaleNotAllowed(); error TokenNotFound(); error NoBurnsYet(); error PresaleClosed(); error InsufficientPayment(); error CannotBurnUnmintedToken(); error MaxSupplyReached(); error WithdrawalFailed(); abstract contract BankFactory { function burnBanker(address to, uint256 boxId) public virtual returns (uint256); } contract SiliconValleyBankers is ERC721AQueryable, ReentrancyGuard, ERC2981, Ownable { using ECDSA for bytes32; string private _baseTokenURI; bool public canMint = false; bool public canBurn = false; uint public cost = 0.0042 ether; uint public freePerWallet = 1; uint public maxPerTransaction = 10; uint public maxPerWallet = 25; uint public totalAvailable = 6900; address private burnContract; constructor() ERC721A("SiliconValleyBankers", "SVB") {} modifier callerIsUser() { require(tx.origin == msg.sender, "not original sender"); _; } function mint(uint qty) external payable callerIsUser nonReentrant { uint price = getPrice(qty); if (!canMint) revert MintingDisabled(); if (_totalMinted() + qty > totalAvailable + 1) revert MaxSupplyReached(); if (_numberMinted(msg.sender) + qty > maxPerWallet + 1) revert MaxPerWalletExceeded(); if (qty > maxPerTransaction + 1) revert ExceedsMaxPerTransaction(); _mint(msg.sender, qty); _refundOverPayment(price); } function burnBanker(uint256 bankerId) public nonReentrant() returns (uint256) { if (!canBurn) { if (msg.sender != owner()) revert NoBurnsYet(); } address to = ownerOf(bankerId); if (to != msg.sender) { if (msg.sender != owner()) revert CannotBurnUnmintedToken(); } BankFactory factory = BankFactory(burnContract); _burn(bankerId, true); uint256 bankerTokenId = factory.burnBanker(to, bankerId); return bankerTokenId; } function numberBankersBurned(address addr) external view returns (uint256) { return _numberBurned(addr); } function totalBankersBurned() external view returns (uint256) { return _totalBurned(); } function toggleCanBurn() external onlyOwner { if (burnContract == address(0)) revert NoBurnsYet(); canBurn = !canBurn; } function setBurnContract(address contract_) external onlyOwner { burnContract = contract_; } function getPrice(uint qty) public view returns (uint) { uint numMinted = _numberMinted(msg.sender); uint free = numMinted < freePerWallet ? freePerWallet - numMinted : 0; if (qty >= free) { return (cost) * (qty - free); } return 0; } function _refundOverPayment(uint256 amount) internal { if (msg.value < amount) revert InsufficientPayment(); if (msg.value > amount) { payable(msg.sender).transfer(msg.value - amount); } } function bankMint(uint256 quantity, address to) external onlyOwner { require( totalSupply() + quantity <= totalAvailable, "dev you should know better" ); _mint(to, quantity); } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function deleteDefaultRoyalty() external onlyOwner { _deleteDefaultRoyalty(); } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function setMaxPerTx(uint256 maxPerTransaction_) external onlyOwner { maxPerTransaction = maxPerTransaction_; } function setMaxPerWallet(uint256 maxPerWallet_) external onlyOwner { maxPerWallet = maxPerWallet_; } function setMaxSupply(uint256 maxSupply_) public onlyOwner { totalAvailable = maxSupply_; } function toggleCanMint() external onlyOwner { canMint = !canMint; } function numberMinted(address owner) public view returns (uint256) { return _numberMinted(owner); } function setBaseURI(string calldata baseURI_) external onlyOwner { _baseTokenURI = baseURI_; } function withdraw() external onlyOwner { (bool success, ) = msg.sender.call{value: address(this).balance}(""); if (!success) revert WithdrawalFailed(); } function setDefaultRoyalty(address receiver, uint96 feeNumerator) external onlyOwner { _setDefaultRoyalty(receiver, feeNumerator); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, ERC2981, IERC721A) returns (bool) { // Supports the following `interfaceId`s: // - IERC165: 0x01ffc9a7 // - IERC721: 0x80ac58cd // - IERC721Metadata: 0x5b5e139f // - IERC2981: 0x2a55205a return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"CannotBurnUnmintedToken","type":"error"},{"inputs":[],"name":"ExceedsMaxPerTransaction","type":"error"},{"inputs":[],"name":"InsufficientPayment","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MaxPerWalletExceeded","type":"error"},{"inputs":[],"name":"MaxSupplyReached","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintingDisabled","type":"error"},{"inputs":[],"name":"NoBurnsYet","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"},{"inputs":[],"name":"WithdrawalFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","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":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"bankMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"bankerId","type":"uint256"}],"name":"burnBanker","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"canBurn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freePerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint256","name":"qty","type":"uint256"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"numberBankersBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contract_","type":"address"}],"name":"setBurnContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxPerTransaction_","type":"uint256"}],"name":"setMaxPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxPerWallet_","type":"uint256"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxSupply_","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"toggleCanBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleCanMint","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAvailable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBankersBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600d805461ffff19169055660eebe0b40e8000600e556001600f55600a6010556019601155611af46012553480156200003c57600080fd5b506040518060400160405280601481526020017f53696c69636f6e56616c6c657942616e6b6572730000000000000000000000008152506040518060400160405280600381526020016229ab2160e91b8152508160029081620000a09190620001c4565b506003620000af8282620001c4565b50600160005550506001600855620000c733620000cd565b62000290565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200014a57607f821691505b6020821081036200016b57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001bf57600081815260208120601f850160051c810160208610156200019a5750805b601f850160051c820191505b81811015620001bb57828155600101620001a6565b5050505b505050565b81516001600160401b03811115620001e057620001e06200011f565b620001f881620001f1845462000135565b8462000171565b602080601f831160018114620002305760008415620002175750858301515b600019600386901b1c1916600185901b178555620001bb565b600085815260208120601f198616915b82811015620002615788860151825594840194600190910190840162000240565b5085821015620002805787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6126fa80620002a06000396000f3fe60806040526004361061027d5760003560e01c8063715018a61161014f578063beb9716d116100c1578063dc33e6811161007a578063dc33e6811461076f578063e268e4d31461078f578063e7572230146107af578063e985e9c5146107cf578063f2fde38b14610818578063f72effad1461083857600080fd5b8063beb9716d146106b3578063c1eb1840146106cd578063c23dc68f146106ec578063c6f6f21614610719578063c87b56dd14610739578063d85d7f5b1461075957600080fd5b806399a2557a1161011357806399a2557a1461060b5780639e598ed81461062b578063a0712d681461064b578063a22cb4651461065e578063aa1b103f1461067e578063b88d4fde1461069357600080fd5b8063715018a6146105815780638462151c14610596578063868ed356146105c35780638da5cb5b146105d857806395d89b41146105f657600080fd5b80633ccfd60b116101f35780635b74efcf116101ac5780635b74efcf146104be5780635bbb2177146104d45780636352211e146105015780636a721400146105215780636f8b44b01461054157806370a082311461056157600080fd5b80633ccfd60b1461042857806342842e0e1461043d578063453c23101461045d57806346b253e4146104735780634b980d671461048857806355f804b31461049e57600080fd5b806313faede61161024557806313faede61461035357806318160ddd146103775780631d3d7d641461039457806323b872dd146103a95780632a55205a146103c957806337beafe01461040857600080fd5b806301ffc9a71461028257806304634d8d146102b757806306fdde03146102d9578063081812fc146102fb578063095ea7b314610333575b600080fd5b34801561028e57600080fd5b506102a261029d366004611f5a565b610858565b60405190151581526020015b60405180910390f35b3480156102c357600080fd5b506102d76102d2366004611f8e565b610878565b005b3480156102e557600080fd5b506102ee61088e565b6040516102ae9190612021565b34801561030757600080fd5b5061031b610316366004612034565b610920565b6040516001600160a01b0390911681526020016102ae565b34801561033f57600080fd5b506102d761034e36600461204d565b610964565b34801561035f57600080fd5b50610369600e5481565b6040519081526020016102ae565b34801561038357600080fd5b506001546000540360001901610369565b3480156103a057600080fd5b506102d7610a04565b3480156103b557600080fd5b506102d76103c4366004612077565b610a51565b3480156103d557600080fd5b506103e96103e43660046120b3565b610be2565b604080516001600160a01b0390931683526020830191909152016102ae565b34801561041457600080fd5b506102d76104233660046120d5565b610c8e565b34801561043457600080fd5b506102d7610cb8565b34801561044957600080fd5b506102d7610458366004612077565b610d2c565b34801561046957600080fd5b5061036960115481565b34801561047f57600080fd5b506102d7610d4c565b34801561049457600080fd5b5061036960105481565b3480156104aa57600080fd5b506102d76104b93660046120f0565b610d68565b3480156104ca57600080fd5b50610369600f5481565b3480156104e057600080fd5b506104f46104ef366004612162565b610d7d565b6040516102ae9190612202565b34801561050d57600080fd5b5061031b61051c366004612034565b610e49565b34801561052d57600080fd5b5061036961053c366004612034565b610e54565b34801561054d57600080fd5b506102d761055c366004612034565b610f81565b34801561056d57600080fd5b5061036961057c3660046120d5565b610f8e565b34801561058d57600080fd5b506102d7610fdd565b3480156105a257600080fd5b506105b66105b13660046120d5565b610ff1565b6040516102ae9190612244565b3480156105cf57600080fd5b506103696110fa565b3480156105e457600080fd5b50600b546001600160a01b031661031b565b34801561060257600080fd5b506102ee61110a565b34801561061757600080fd5b506105b661062636600461227c565b611119565b34801561063757600080fd5b506103696106463660046120d5565b6112a1565b6102d7610659366004612034565b6112cf565b34801561066a57600080fd5b506102d76106793660046122af565b611424565b34801561068a57600080fd5b506102d76114b9565b34801561069f57600080fd5b506102d76106ae3660046122f6565b6114cb565b3480156106bf57600080fd5b50600d546102a29060ff1681565b3480156106d957600080fd5b50600d546102a290610100900460ff1681565b3480156106f857600080fd5b5061070c610707366004612034565b611515565b6040516102ae91906123d2565b34801561072557600080fd5b506102d7610734366004612034565b61159d565b34801561074557600080fd5b506102ee610754366004612034565b6115aa565b34801561076557600080fd5b5061036960125481565b34801561077b57600080fd5b5061036961078a3660046120d5565b61162d565b34801561079b57600080fd5b506102d76107aa366004612034565b611638565b3480156107bb57600080fd5b506103696107ca366004612034565b611645565b3480156107db57600080fd5b506102a26107ea3660046123e0565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561082457600080fd5b506102d76108333660046120d5565b6116a5565b34801561084457600080fd5b506102d7610853366004612413565b61171b565b600061086382611796565b806108725750610872826117e4565b92915050565b610880611819565b61088a8282611873565b5050565b60606002805461089d90612436565b80601f01602080910402602001604051908101604052809291908181526020018280546108c990612436565b80156109165780601f106108eb57610100808354040283529160200191610916565b820191906000526020600020905b8154815290600101906020018083116108f957829003601f168201915b5050505050905090565b600061092b82611970565b610948576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061096f82610e49565b9050336001600160a01b038216146109a85761098b81336107ea565b6109a8576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610a0c611819565b6013546001600160a01b0316610a3457604051622306d760e81b815260040160405180910390fd5b600d805461ff001981166101009182900460ff1615909102179055565b6000610a5c826119a5565b9050836001600160a01b0316816001600160a01b031614610a8f5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054610abb8187335b6001600160a01b039081169116811491141790565b610ae657610ac986336107ea565b610ae657604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610b0d57604051633a954ecd60e21b815260040160405180910390fd5b8015610b1857600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610baa57600184016000818152600460205260408120549003610ba8576000548114610ba85760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03166000805160206126a583398151915260405160405180910390a45b505050505050565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610c575750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610c76906001600160601b031687612486565b610c80919061249d565b915196919550909350505050565b610c96611819565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b610cc0611819565b604051600090339047908381818185875af1925050503d8060008114610d02576040519150601f19603f3d011682016040523d82523d6000602084013e610d07565b606091505b5050905080610d29576040516327fcd9d160e01b815260040160405180910390fd5b50565b610d47838383604051806020016040528060008152506114cb565b505050565b610d54611819565b600d805460ff19811660ff90911615179055565b610d70611819565b600c610d47828483612505565b60608160008167ffffffffffffffff811115610d9b57610d9b6122e0565b604051908082528060200260200182016040528015610ded57816020015b604080516080810182526000808252602080830182905292820181905260608201528252600019909201910181610db95790505b50905060005b828114610e4057610e1b868683818110610e0f57610e0f6125c6565b90506020020135611515565b828281518110610e2d57610e2d6125c6565b6020908102919091010152600101610df3565b50949350505050565b6000610872826119a5565b6000610e5e611a14565b600d54610100900460ff16610e9757600b546001600160a01b03163314610e9757604051622306d760e81b815260040160405180910390fd5b6000610ea283610e49565b90506001600160a01b0381163314610edf57600b546001600160a01b03163314610edf57604051634f962acb60e01b815260040160405180910390fd5b6013546001600160a01b0316610ef6846001611a6d565b604051631538158f60e11b81526001600160a01b0383811660048301526024820186905260009190831690632a702b1e906044016020604051808303816000875af1158015610f49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6d91906125dc565b9350505050610f7c6001600855565b919050565b610f89611819565b601255565b60006001600160a01b038216610fb7576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610fe5611819565b610fef6000611ba5565b565b6060600080600061100185610f8e565b905060008167ffffffffffffffff81111561101e5761101e6122e0565b604051908082528060200260200182016040528015611047578160200160208202803683370190505b50905061107460408051608081018252600080825260208201819052918101829052606081019190915290565b60015b8386146110ee5761108781611bf7565b915081604001516110e65781516001600160a01b0316156110a757815194505b876001600160a01b0316856001600160a01b0316036110e657808387806001019850815181106110d9576110d96125c6565b6020026020010181815250505b600101611077565b50909695505050505050565b600061110560015490565b905090565b60606003805461089d90612436565b606081831061113b57604051631960ccad60e11b815260040160405180910390fd5b60008061114760005490565b9050600185101561115757600194505b80841115611163578093505b600061116e87610f8e565b90508486101561118d5785850381811015611187578091505b50611191565b5060005b60008167ffffffffffffffff8111156111ac576111ac6122e0565b6040519080825280602002602001820160405280156111d5578160200160208202803683370190505b509050816000036111eb57935061129a92505050565b60006111f688611515565b905060008160400151611207575080515b885b8881141580156112195750848714155b1561128e5761122781611bf7565b925082604001516112865782516001600160a01b03161561124757825191505b8a6001600160a01b0316826001600160a01b0316036112865780848880600101995081518110611279576112796125c6565b6020026020010181815250505b600101611209565b50505092835250909150505b9392505050565b6000610872826001600160a01b031660009081526005602052604090205460801c67ffffffffffffffff1690565b3233146113195760405162461bcd60e51b81526020600482015260136024820152723737ba1037b934b3b4b730b61039b2b73232b960691b60448201526064015b60405180910390fd5b611321611a14565b600061132c82611645565b600d5490915060ff166113525760405163af79b43760e01b815260040160405180910390fd5b6012546113609060016125f5565b8261136e6000546000190190565b61137891906125f5565b11156113975760405163d05cb60960e01b815260040160405180910390fd5b6011546113a59060016125f5565b826113af33611c33565b6113b991906125f5565b11156113d857604051637ab0312d60e11b815260040160405180910390fd5b6010546113e69060016125f5565b8211156114065760405163162d230560e11b815260040160405180910390fd5b6114103383611c5c565b61141981611d36565b50610d296001600855565b336001600160a01b0383160361144d5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6114c1611819565b610fef6000600955565b6114d6848484610a51565b6001600160a01b0383163b1561150f576114f284848484611d95565b61150f576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b604080516080810182526000808252602082018190529181018290526060810191909152604080516080810182526000808252602082018190529181018290526060810191909152600183108061156e57506000548310155b156115795792915050565b61158283611bf7565b90508060400151156115945792915050565b61129a83611e80565b6115a5611819565b601055565b60606115b582611970565b6115d257604051630a14c4b560e41b815260040160405180910390fd5b60006115dc611eb5565b905080516000036115fc576040518060200160405280600081525061129a565b8061160684611ec4565b604051602001611617929190612608565b6040516020818303038152906040529392505050565b600061087282611c33565b611640611819565b601155565b60008061165133611c33565b90506000600f548210611665576000611673565b81600f546116739190612637565b905080841061169b576116868185612637565b600e546116939190612486565b949350505050565b5060009392505050565b6116ad611819565b6001600160a01b0381166117125760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611310565b610d2981611ba5565b611723611819565b601254600154600054849190036000190161173e91906125f5565b111561178c5760405162461bcd60e51b815260206004820152601a60248201527f64657620796f752073686f756c64206b6e6f77206265747465720000000000006044820152606401611310565b61088a8183611c5c565b60006301ffc9a760e01b6001600160e01b0319831614806117c757506380ac58cd60e01b6001600160e01b03198316145b806108725750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b148061087257506301ffc9a760e01b6001600160e01b0319831614610872565b600b546001600160a01b03163314610fef5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611310565b6127106001600160601b03821611156118e15760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401611310565b6001600160a01b0382166119375760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401611310565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b600081600111158015611984575060005482105b8015610872575050600090815260046020526040902054600160e01b161590565b600081806001116119fb576000548110156119fb5760008181526004602052604081205490600160e01b821690036119f9575b8060000361129a5750600019016000818152600460205260409020546119d8565b505b604051636f96cda160e11b815260040160405180910390fd5b600260085403611a665760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401611310565b6002600855565b6000611a78836119a5565b905080600080611a9686600090815260066020526040902080549091565b915091508415611ad657611aab818433610aa6565b611ad657611ab983336107ea565b611ad657604051632ce44b5f60e11b815260040160405180910390fd5b8015611ae157600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040812091909155600160e11b85169003611b6f57600186016000818152600460205260408120549003611b6d576000548114611b6d5760008181526004602052604090208590555b505b60405186906000906001600160a01b038616906000805160206126a5833981519152908390a45050600180548101905550505050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60408051608081018252600080825260208201819052918101829052606081019190915260008281526004602052604090205461087290611efc565b6001600160a01b03166000908152600560205260409081902054901c67ffffffffffffffff1690565b6000805490829003611c815760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083906000805160206126a58339815191528180a4600183015b818114611d0c57808360006000805160206126a5833981519152600080a4600101611ce6565b5081600003611d2d57604051622e076360e81b815260040160405180910390fd5b60005550505050565b80341015611d575760405163cd1c886760e01b815260040160405180910390fd5b80341115610d2957336108fc611d6d8334612637565b6040518115909202916000818181858888f1935050505015801561088a573d6000803e3d6000fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611dca90339089908890889060040161264a565b6020604051808303816000875af1925050508015611e05575060408051601f3d908101601f19168201909252611e0291810190612687565b60015b611e63573d808015611e33576040519150601f19603f3d011682016040523d82523d6000602084013e611e38565b606091505b508051600003611e5b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152610872611eb0836119a5565b611efc565b6060600c805461089d90612436565b604080516080019081905280825b600183039250600a81066030018353600a900480611ed25750819003601f19909101908152919050565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6001600160e01b031981168114610d2957600080fd5b600060208284031215611f6c57600080fd5b813561129a81611f44565b80356001600160a01b0381168114610f7c57600080fd5b60008060408385031215611fa157600080fd5b611faa83611f77565b915060208301356001600160601b0381168114611fc657600080fd5b809150509250929050565b60005b83811015611fec578181015183820152602001611fd4565b50506000910152565b6000815180845261200d816020860160208601611fd1565b601f01601f19169290920160200192915050565b60208152600061129a6020830184611ff5565b60006020828403121561204657600080fd5b5035919050565b6000806040838503121561206057600080fd5b61206983611f77565b946020939093013593505050565b60008060006060848603121561208c57600080fd5b61209584611f77565b92506120a360208501611f77565b9150604084013590509250925092565b600080604083850312156120c657600080fd5b50508035926020909101359150565b6000602082840312156120e757600080fd5b61129a82611f77565b6000806020838503121561210357600080fd5b823567ffffffffffffffff8082111561211b57600080fd5b818501915085601f83011261212f57600080fd5b81358181111561213e57600080fd5b86602082850101111561215057600080fd5b60209290920196919550909350505050565b6000806020838503121561217557600080fd5b823567ffffffffffffffff8082111561218d57600080fd5b818501915085601f8301126121a157600080fd5b8135818111156121b057600080fd5b8660208260051b850101111561215057600080fd5b80516001600160a01b0316825260208082015167ffffffffffffffff169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b818110156110ee576122318385516121c5565b928401926080929092019160010161221e565b6020808252825182820181905260009190848201906040850190845b818110156110ee57835183529284019291840191600101612260565b60008060006060848603121561229157600080fd5b61229a84611f77565b95602085013595506040909401359392505050565b600080604083850312156122c257600080fd5b6122cb83611f77565b915060208301358015158114611fc657600080fd5b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561230c57600080fd5b61231585611f77565b935061232360208601611f77565b925060408501359150606085013567ffffffffffffffff8082111561234757600080fd5b818701915087601f83011261235b57600080fd5b81358181111561236d5761236d6122e0565b604051601f8201601f19908116603f01168101908382118183101715612395576123956122e0565b816040528281528a60208487010111156123ae57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6080810161087282846121c5565b600080604083850312156123f357600080fd5b6123fc83611f77565b915061240a60208401611f77565b90509250929050565b6000806040838503121561242657600080fd5b8235915061240a60208401611f77565b600181811c9082168061244a57607f821691505b60208210810361246a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761087257610872612470565b6000826124ba57634e487b7160e01b600052601260045260246000fd5b500490565b601f821115610d4757600081815260208120601f850160051c810160208610156124e65750805b601f850160051c820191505b81811015610bda578281556001016124f2565b67ffffffffffffffff83111561251d5761251d6122e0565b6125318361252b8354612436565b836124bf565b6000601f841160018114612565576000851561254d5750838201355b600019600387901b1c1916600186901b1783556125bf565b600083815260209020601f19861690835b828110156125965786850135825560209485019460019092019101612576565b50868210156125b35760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156125ee57600080fd5b5051919050565b8082018082111561087257610872612470565b6000835161261a818460208801611fd1565b83519083019061262e818360208801611fd1565b01949350505050565b8181038181111561087257610872612470565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061267d90830184611ff5565b9695505050505050565b60006020828403121561269957600080fd5b815161129a81611f4456feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212208637a228d1968b98ac47cad5290e01bd873d8430dc10dab617b8bdb9e875388964736f6c63430008120033
Deployed Bytecode
0x60806040526004361061027d5760003560e01c8063715018a61161014f578063beb9716d116100c1578063dc33e6811161007a578063dc33e6811461076f578063e268e4d31461078f578063e7572230146107af578063e985e9c5146107cf578063f2fde38b14610818578063f72effad1461083857600080fd5b8063beb9716d146106b3578063c1eb1840146106cd578063c23dc68f146106ec578063c6f6f21614610719578063c87b56dd14610739578063d85d7f5b1461075957600080fd5b806399a2557a1161011357806399a2557a1461060b5780639e598ed81461062b578063a0712d681461064b578063a22cb4651461065e578063aa1b103f1461067e578063b88d4fde1461069357600080fd5b8063715018a6146105815780638462151c14610596578063868ed356146105c35780638da5cb5b146105d857806395d89b41146105f657600080fd5b80633ccfd60b116101f35780635b74efcf116101ac5780635b74efcf146104be5780635bbb2177146104d45780636352211e146105015780636a721400146105215780636f8b44b01461054157806370a082311461056157600080fd5b80633ccfd60b1461042857806342842e0e1461043d578063453c23101461045d57806346b253e4146104735780634b980d671461048857806355f804b31461049e57600080fd5b806313faede61161024557806313faede61461035357806318160ddd146103775780631d3d7d641461039457806323b872dd146103a95780632a55205a146103c957806337beafe01461040857600080fd5b806301ffc9a71461028257806304634d8d146102b757806306fdde03146102d9578063081812fc146102fb578063095ea7b314610333575b600080fd5b34801561028e57600080fd5b506102a261029d366004611f5a565b610858565b60405190151581526020015b60405180910390f35b3480156102c357600080fd5b506102d76102d2366004611f8e565b610878565b005b3480156102e557600080fd5b506102ee61088e565b6040516102ae9190612021565b34801561030757600080fd5b5061031b610316366004612034565b610920565b6040516001600160a01b0390911681526020016102ae565b34801561033f57600080fd5b506102d761034e36600461204d565b610964565b34801561035f57600080fd5b50610369600e5481565b6040519081526020016102ae565b34801561038357600080fd5b506001546000540360001901610369565b3480156103a057600080fd5b506102d7610a04565b3480156103b557600080fd5b506102d76103c4366004612077565b610a51565b3480156103d557600080fd5b506103e96103e43660046120b3565b610be2565b604080516001600160a01b0390931683526020830191909152016102ae565b34801561041457600080fd5b506102d76104233660046120d5565b610c8e565b34801561043457600080fd5b506102d7610cb8565b34801561044957600080fd5b506102d7610458366004612077565b610d2c565b34801561046957600080fd5b5061036960115481565b34801561047f57600080fd5b506102d7610d4c565b34801561049457600080fd5b5061036960105481565b3480156104aa57600080fd5b506102d76104b93660046120f0565b610d68565b3480156104ca57600080fd5b50610369600f5481565b3480156104e057600080fd5b506104f46104ef366004612162565b610d7d565b6040516102ae9190612202565b34801561050d57600080fd5b5061031b61051c366004612034565b610e49565b34801561052d57600080fd5b5061036961053c366004612034565b610e54565b34801561054d57600080fd5b506102d761055c366004612034565b610f81565b34801561056d57600080fd5b5061036961057c3660046120d5565b610f8e565b34801561058d57600080fd5b506102d7610fdd565b3480156105a257600080fd5b506105b66105b13660046120d5565b610ff1565b6040516102ae9190612244565b3480156105cf57600080fd5b506103696110fa565b3480156105e457600080fd5b50600b546001600160a01b031661031b565b34801561060257600080fd5b506102ee61110a565b34801561061757600080fd5b506105b661062636600461227c565b611119565b34801561063757600080fd5b506103696106463660046120d5565b6112a1565b6102d7610659366004612034565b6112cf565b34801561066a57600080fd5b506102d76106793660046122af565b611424565b34801561068a57600080fd5b506102d76114b9565b34801561069f57600080fd5b506102d76106ae3660046122f6565b6114cb565b3480156106bf57600080fd5b50600d546102a29060ff1681565b3480156106d957600080fd5b50600d546102a290610100900460ff1681565b3480156106f857600080fd5b5061070c610707366004612034565b611515565b6040516102ae91906123d2565b34801561072557600080fd5b506102d7610734366004612034565b61159d565b34801561074557600080fd5b506102ee610754366004612034565b6115aa565b34801561076557600080fd5b5061036960125481565b34801561077b57600080fd5b5061036961078a3660046120d5565b61162d565b34801561079b57600080fd5b506102d76107aa366004612034565b611638565b3480156107bb57600080fd5b506103696107ca366004612034565b611645565b3480156107db57600080fd5b506102a26107ea3660046123e0565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561082457600080fd5b506102d76108333660046120d5565b6116a5565b34801561084457600080fd5b506102d7610853366004612413565b61171b565b600061086382611796565b806108725750610872826117e4565b92915050565b610880611819565b61088a8282611873565b5050565b60606002805461089d90612436565b80601f01602080910402602001604051908101604052809291908181526020018280546108c990612436565b80156109165780601f106108eb57610100808354040283529160200191610916565b820191906000526020600020905b8154815290600101906020018083116108f957829003601f168201915b5050505050905090565b600061092b82611970565b610948576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061096f82610e49565b9050336001600160a01b038216146109a85761098b81336107ea565b6109a8576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610a0c611819565b6013546001600160a01b0316610a3457604051622306d760e81b815260040160405180910390fd5b600d805461ff001981166101009182900460ff1615909102179055565b6000610a5c826119a5565b9050836001600160a01b0316816001600160a01b031614610a8f5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054610abb8187335b6001600160a01b039081169116811491141790565b610ae657610ac986336107ea565b610ae657604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610b0d57604051633a954ecd60e21b815260040160405180910390fd5b8015610b1857600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610baa57600184016000818152600460205260408120549003610ba8576000548114610ba85760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03166000805160206126a583398151915260405160405180910390a45b505050505050565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610c575750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610c76906001600160601b031687612486565b610c80919061249d565b915196919550909350505050565b610c96611819565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b610cc0611819565b604051600090339047908381818185875af1925050503d8060008114610d02576040519150601f19603f3d011682016040523d82523d6000602084013e610d07565b606091505b5050905080610d29576040516327fcd9d160e01b815260040160405180910390fd5b50565b610d47838383604051806020016040528060008152506114cb565b505050565b610d54611819565b600d805460ff19811660ff90911615179055565b610d70611819565b600c610d47828483612505565b60608160008167ffffffffffffffff811115610d9b57610d9b6122e0565b604051908082528060200260200182016040528015610ded57816020015b604080516080810182526000808252602080830182905292820181905260608201528252600019909201910181610db95790505b50905060005b828114610e4057610e1b868683818110610e0f57610e0f6125c6565b90506020020135611515565b828281518110610e2d57610e2d6125c6565b6020908102919091010152600101610df3565b50949350505050565b6000610872826119a5565b6000610e5e611a14565b600d54610100900460ff16610e9757600b546001600160a01b03163314610e9757604051622306d760e81b815260040160405180910390fd5b6000610ea283610e49565b90506001600160a01b0381163314610edf57600b546001600160a01b03163314610edf57604051634f962acb60e01b815260040160405180910390fd5b6013546001600160a01b0316610ef6846001611a6d565b604051631538158f60e11b81526001600160a01b0383811660048301526024820186905260009190831690632a702b1e906044016020604051808303816000875af1158015610f49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6d91906125dc565b9350505050610f7c6001600855565b919050565b610f89611819565b601255565b60006001600160a01b038216610fb7576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610fe5611819565b610fef6000611ba5565b565b6060600080600061100185610f8e565b905060008167ffffffffffffffff81111561101e5761101e6122e0565b604051908082528060200260200182016040528015611047578160200160208202803683370190505b50905061107460408051608081018252600080825260208201819052918101829052606081019190915290565b60015b8386146110ee5761108781611bf7565b915081604001516110e65781516001600160a01b0316156110a757815194505b876001600160a01b0316856001600160a01b0316036110e657808387806001019850815181106110d9576110d96125c6565b6020026020010181815250505b600101611077565b50909695505050505050565b600061110560015490565b905090565b60606003805461089d90612436565b606081831061113b57604051631960ccad60e11b815260040160405180910390fd5b60008061114760005490565b9050600185101561115757600194505b80841115611163578093505b600061116e87610f8e565b90508486101561118d5785850381811015611187578091505b50611191565b5060005b60008167ffffffffffffffff8111156111ac576111ac6122e0565b6040519080825280602002602001820160405280156111d5578160200160208202803683370190505b509050816000036111eb57935061129a92505050565b60006111f688611515565b905060008160400151611207575080515b885b8881141580156112195750848714155b1561128e5761122781611bf7565b925082604001516112865782516001600160a01b03161561124757825191505b8a6001600160a01b0316826001600160a01b0316036112865780848880600101995081518110611279576112796125c6565b6020026020010181815250505b600101611209565b50505092835250909150505b9392505050565b6000610872826001600160a01b031660009081526005602052604090205460801c67ffffffffffffffff1690565b3233146113195760405162461bcd60e51b81526020600482015260136024820152723737ba1037b934b3b4b730b61039b2b73232b960691b60448201526064015b60405180910390fd5b611321611a14565b600061132c82611645565b600d5490915060ff166113525760405163af79b43760e01b815260040160405180910390fd5b6012546113609060016125f5565b8261136e6000546000190190565b61137891906125f5565b11156113975760405163d05cb60960e01b815260040160405180910390fd5b6011546113a59060016125f5565b826113af33611c33565b6113b991906125f5565b11156113d857604051637ab0312d60e11b815260040160405180910390fd5b6010546113e69060016125f5565b8211156114065760405163162d230560e11b815260040160405180910390fd5b6114103383611c5c565b61141981611d36565b50610d296001600855565b336001600160a01b0383160361144d5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6114c1611819565b610fef6000600955565b6114d6848484610a51565b6001600160a01b0383163b1561150f576114f284848484611d95565b61150f576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b604080516080810182526000808252602082018190529181018290526060810191909152604080516080810182526000808252602082018190529181018290526060810191909152600183108061156e57506000548310155b156115795792915050565b61158283611bf7565b90508060400151156115945792915050565b61129a83611e80565b6115a5611819565b601055565b60606115b582611970565b6115d257604051630a14c4b560e41b815260040160405180910390fd5b60006115dc611eb5565b905080516000036115fc576040518060200160405280600081525061129a565b8061160684611ec4565b604051602001611617929190612608565b6040516020818303038152906040529392505050565b600061087282611c33565b611640611819565b601155565b60008061165133611c33565b90506000600f548210611665576000611673565b81600f546116739190612637565b905080841061169b576116868185612637565b600e546116939190612486565b949350505050565b5060009392505050565b6116ad611819565b6001600160a01b0381166117125760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611310565b610d2981611ba5565b611723611819565b601254600154600054849190036000190161173e91906125f5565b111561178c5760405162461bcd60e51b815260206004820152601a60248201527f64657620796f752073686f756c64206b6e6f77206265747465720000000000006044820152606401611310565b61088a8183611c5c565b60006301ffc9a760e01b6001600160e01b0319831614806117c757506380ac58cd60e01b6001600160e01b03198316145b806108725750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b148061087257506301ffc9a760e01b6001600160e01b0319831614610872565b600b546001600160a01b03163314610fef5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611310565b6127106001600160601b03821611156118e15760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401611310565b6001600160a01b0382166119375760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401611310565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b600081600111158015611984575060005482105b8015610872575050600090815260046020526040902054600160e01b161590565b600081806001116119fb576000548110156119fb5760008181526004602052604081205490600160e01b821690036119f9575b8060000361129a5750600019016000818152600460205260409020546119d8565b505b604051636f96cda160e11b815260040160405180910390fd5b600260085403611a665760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401611310565b6002600855565b6000611a78836119a5565b905080600080611a9686600090815260066020526040902080549091565b915091508415611ad657611aab818433610aa6565b611ad657611ab983336107ea565b611ad657604051632ce44b5f60e11b815260040160405180910390fd5b8015611ae157600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040812091909155600160e11b85169003611b6f57600186016000818152600460205260408120549003611b6d576000548114611b6d5760008181526004602052604090208590555b505b60405186906000906001600160a01b038616906000805160206126a5833981519152908390a45050600180548101905550505050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60408051608081018252600080825260208201819052918101829052606081019190915260008281526004602052604090205461087290611efc565b6001600160a01b03166000908152600560205260409081902054901c67ffffffffffffffff1690565b6000805490829003611c815760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083906000805160206126a58339815191528180a4600183015b818114611d0c57808360006000805160206126a5833981519152600080a4600101611ce6565b5081600003611d2d57604051622e076360e81b815260040160405180910390fd5b60005550505050565b80341015611d575760405163cd1c886760e01b815260040160405180910390fd5b80341115610d2957336108fc611d6d8334612637565b6040518115909202916000818181858888f1935050505015801561088a573d6000803e3d6000fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611dca90339089908890889060040161264a565b6020604051808303816000875af1925050508015611e05575060408051601f3d908101601f19168201909252611e0291810190612687565b60015b611e63573d808015611e33576040519150601f19603f3d011682016040523d82523d6000602084013e611e38565b606091505b508051600003611e5b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152610872611eb0836119a5565b611efc565b6060600c805461089d90612436565b604080516080019081905280825b600183039250600a81066030018353600a900480611ed25750819003601f19909101908152919050565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6001600160e01b031981168114610d2957600080fd5b600060208284031215611f6c57600080fd5b813561129a81611f44565b80356001600160a01b0381168114610f7c57600080fd5b60008060408385031215611fa157600080fd5b611faa83611f77565b915060208301356001600160601b0381168114611fc657600080fd5b809150509250929050565b60005b83811015611fec578181015183820152602001611fd4565b50506000910152565b6000815180845261200d816020860160208601611fd1565b601f01601f19169290920160200192915050565b60208152600061129a6020830184611ff5565b60006020828403121561204657600080fd5b5035919050565b6000806040838503121561206057600080fd5b61206983611f77565b946020939093013593505050565b60008060006060848603121561208c57600080fd5b61209584611f77565b92506120a360208501611f77565b9150604084013590509250925092565b600080604083850312156120c657600080fd5b50508035926020909101359150565b6000602082840312156120e757600080fd5b61129a82611f77565b6000806020838503121561210357600080fd5b823567ffffffffffffffff8082111561211b57600080fd5b818501915085601f83011261212f57600080fd5b81358181111561213e57600080fd5b86602082850101111561215057600080fd5b60209290920196919550909350505050565b6000806020838503121561217557600080fd5b823567ffffffffffffffff8082111561218d57600080fd5b818501915085601f8301126121a157600080fd5b8135818111156121b057600080fd5b8660208260051b850101111561215057600080fd5b80516001600160a01b0316825260208082015167ffffffffffffffff169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b818110156110ee576122318385516121c5565b928401926080929092019160010161221e565b6020808252825182820181905260009190848201906040850190845b818110156110ee57835183529284019291840191600101612260565b60008060006060848603121561229157600080fd5b61229a84611f77565b95602085013595506040909401359392505050565b600080604083850312156122c257600080fd5b6122cb83611f77565b915060208301358015158114611fc657600080fd5b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561230c57600080fd5b61231585611f77565b935061232360208601611f77565b925060408501359150606085013567ffffffffffffffff8082111561234757600080fd5b818701915087601f83011261235b57600080fd5b81358181111561236d5761236d6122e0565b604051601f8201601f19908116603f01168101908382118183101715612395576123956122e0565b816040528281528a60208487010111156123ae57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6080810161087282846121c5565b600080604083850312156123f357600080fd5b6123fc83611f77565b915061240a60208401611f77565b90509250929050565b6000806040838503121561242657600080fd5b8235915061240a60208401611f77565b600181811c9082168061244a57607f821691505b60208210810361246a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761087257610872612470565b6000826124ba57634e487b7160e01b600052601260045260246000fd5b500490565b601f821115610d4757600081815260208120601f850160051c810160208610156124e65750805b601f850160051c820191505b81811015610bda578281556001016124f2565b67ffffffffffffffff83111561251d5761251d6122e0565b6125318361252b8354612436565b836124bf565b6000601f841160018114612565576000851561254d5750838201355b600019600387901b1c1916600186901b1783556125bf565b600083815260209020601f19861690835b828110156125965786850135825560209485019460019092019101612576565b50868210156125b35760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156125ee57600080fd5b5051919050565b8082018082111561087257610872612470565b6000835161261a818460208801611fd1565b83519083019061262e818360208801611fd1565b01949350505050565b8181038181111561087257610872612470565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061267d90830184611ff5565b9695505050505050565b60006020828403121561269957600080fd5b815161129a81611f4456feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212208637a228d1968b98ac47cad5290e01bd873d8430dc10dab617b8bdb9e875388964736f6c63430008120033
Deployed Bytecode Sourcemap
104562:4779:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;108889:447;;;;;;;;;;-1:-1:-1;108889:447:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;108889:447:0;;;;;;;;108735:146;;;;;;;;;;-1:-1:-1;108735:146:0;;;;;:::i;:::-;;:::i;:::-;;54025:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;60508:218::-;;;;;;;;;;-1:-1:-1;60508:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2246:32:1;;;2228:51;;2216:2;2201:18;60508:218:0;2082:203:1;59949:400:0;;;;;;;;;;-1:-1:-1;59949:400:0;;;;;:::i;:::-;;:::i;104787:31::-;;;;;;;;;;;;;;;;;;;2695:25:1;;;2683:2;2668:18;104787:31:0;2549:177:1;49776:323:0;;;;;;;;;;-1:-1:-1;107840:1:0;50050:12;49837:7;50034:13;:28;-1:-1:-1;;50034:46:0;49776:323;;106486:143;;;;;;;;;;;;;:::i;64221:2817::-;;;;;;;;;;-1:-1:-1;64221:2817:0;;;;;:::i;:::-;;:::i;8227:442::-;;;;;;;;;;-1:-1:-1;8227:442:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3509:32:1;;;3491:51;;3573:2;3558:18;;3551:34;;;;3464:18;8227:442:0;3317:274:1;106637:106:0;;;;;;;;;;-1:-1:-1;106637:106:0;;;;;:::i;:::-;;:::i;108551:176::-;;;;;;;;;;;;;:::i;67134:185::-;;;;;;;;;;-1:-1:-1;67134:185:0;;;;;:::i;:::-;;:::i;104902:29::-;;;;;;;;;;;;;;;;108225:81;;;;;;;;;;;;;:::i;104861:34::-;;;;;;;;;;;;;;;;108435:108;;;;;;;;;;-1:-1:-1;108435:108:0;;;;;:::i;:::-;;:::i;104825:29::-;;;;;;;;;;;;;;;;95693:528;;;;;;;;;;-1:-1:-1;95693:528:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;55418:152::-;;;;;;;;;;-1:-1:-1;55418:152:0;;;;;:::i;:::-;;:::i;105722:518::-;;;;;;;;;;-1:-1:-1;105722:518:0;;;;;:::i;:::-;;:::i;108112:105::-;;;;;;;;;;-1:-1:-1;108112:105:0;;;;;:::i;:::-;;:::i;50960:233::-;;;;;;;;;;-1:-1:-1;50960:233:0;;;;;:::i;:::-;;:::i;2884:103::-;;;;;;;;;;;;;:::i;99569:900::-;;;;;;;;;;-1:-1:-1;99569:900:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;106376:102::-;;;;;;;;;;;;;:::i;2236:87::-;;;;;;;;;;-1:-1:-1;2309:6:0;;-1:-1:-1;;;;;2309:6:0;2236:87;;54201:104;;;;;;;;;;;;;:::i;96609:2513::-;;;;;;;;;;-1:-1:-1;96609:2513:0;;;;;:::i;:::-;;:::i;106248:120::-;;;;;;;;;;-1:-1:-1;106248:120:0;;;;;:::i;:::-;;:::i;105196:518::-;;;;;;:::i;:::-;;:::i;61066:308::-;;;;;;;;;;-1:-1:-1;61066:308:0;;;;;:::i;:::-;;:::i;107647:93::-;;;;;;;;;;;;;:::i;67917:399::-;;;;;;;;;;-1:-1:-1;67917:399:0;;;;;:::i;:::-;;:::i;104719:27::-;;;;;;;;;;-1:-1:-1;104719:27:0;;;;;;;;104753;;;;;;;;;;-1:-1:-1;104753:27:0;;;;;;;;;;;95106:428;;;;;;;;;;-1:-1:-1;95106:428:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;107857:125::-;;;;;;;;;;-1:-1:-1;107857:125:0;;;;;:::i;:::-;;:::i;54411:318::-;;;;;;;;;;-1:-1:-1;54411:318:0;;;;;:::i;:::-;;:::i;104938:33::-;;;;;;;;;;;;;;;;108314:113;;;;;;;;;;-1:-1:-1;108314:113:0;;;;;:::i;:::-;;:::i;107990:114::-;;;;;;;;;;-1:-1:-1;107990:114:0;;;;;:::i;:::-;;:::i;106751:283::-;;;;;;;;;;-1:-1:-1;106751:283:0;;;;;:::i;:::-;;:::i;61531:164::-;;;;;;;;;;-1:-1:-1;61531:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;61652:25:0;;;61628:4;61652:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;61531:164;3142:201;;;;;;;;;;-1:-1:-1;3142:201:0;;;;;:::i;:::-;;:::i;107283:234::-;;;;;;;;;;-1:-1:-1;107283:234:0;;;;;:::i;:::-;;:::i;108889:447::-;109002:4;109235:38;109261:11;109235:25;:38::i;:::-;:93;;;;109290:38;109316:11;109290:25;:38::i;:::-;109215:113;108889:447;-1:-1:-1;;108889:447:0:o;108735:146::-;2122:13;:11;:13::i;:::-;108831:42:::1;108850:8;108860:12;108831:18;:42::i;:::-;108735:146:::0;;:::o;54025:100::-;54079:13;54112:5;54105:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54025:100;:::o;60508:218::-;60584:7;60609:16;60617:7;60609;:16::i;:::-;60604:64;;60634:34;;-1:-1:-1;;;60634:34:0;;;;;;;;;;;60604:64;-1:-1:-1;60688:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;60688:30:0;;60508:218::o;59949:400::-;60030:13;60046:16;60054:7;60046;:16::i;:::-;60030:32;-1:-1:-1;84078:10:0;-1:-1:-1;;;;;60079:28:0;;;60075:175;;60127:44;60144:5;84078:10;61531:164;:::i;60127:44::-;60122:128;;60199:35;;-1:-1:-1;;;60199:35:0;;;;;;;;;;;60122:128;60262:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;60262:35:0;-1:-1:-1;;;;;60262:35:0;;;;;;;;;60313:28;;60262:24;;60313:28;;;;;;;60019:330;59949:400;;:::o;106486:143::-;2122:13;:11;:13::i;:::-;106545:12:::1;::::0;-1:-1:-1;;;;;106545:12:0::1;106541:51;;106580:12;;-1:-1:-1::0;;;106580:12:0::1;;;;;;;;;;;106541:51;106614:7;::::0;;-1:-1:-1;;106603:18:0;::::1;106614:7;::::0;;;::::1;;;106613:8;106603:18:::0;;::::1;;::::0;;106486:143::o;64221:2817::-;64355:27;64385;64404:7;64385:18;:27::i;:::-;64355:57;;64470:4;-1:-1:-1;;;;;64429:45:0;64445:19;-1:-1:-1;;;;;64429:45:0;;64425:86;;64483:28;;-1:-1:-1;;;64483:28:0;;;;;;;;;;;64425:86;64525:27;63329:24;;;:15;:24;;;;;63557:26;;64716:68;63557:26;64758:4;84078:10;64764:19;-1:-1:-1;;;;;62803:32:0;;;62647:28;;62932:20;;62954:30;;62929:56;;62344:659;64716:68;64711:180;;64804:43;64821:4;84078:10;61531:164;:::i;64804:43::-;64799:92;;64856:35;;-1:-1:-1;;;64856:35:0;;;;;;;;;;;64799:92;-1:-1:-1;;;;;64908:16:0;;64904:52;;64933:23;;-1:-1:-1;;;64933:23:0;;;;;;;;;;;64904:52;65105:15;65102:160;;;65245:1;65224:19;65217:30;65102:160;-1:-1:-1;;;;;65642:24:0;;;;;;;:18;:24;;;;;;65640:26;;-1:-1:-1;;65640:26:0;;;65711:22;;;;;;;;;65709:24;;-1:-1:-1;65709:24:0;;;58807:11;58782:23;58778:41;58765:63;-1:-1:-1;;;58765:63:0;66004:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;66299:47:0;;:52;;66295:627;;66404:1;66394:11;;66372:19;66527:30;;;:17;:30;;;;;;:35;;66523:384;;66665:13;;66650:11;:28;66646:242;;66812:30;;;;:17;:30;;;;;:52;;;66646:242;66353:569;66295:627;66969:7;66965:2;-1:-1:-1;;;;;66950:27:0;66959:4;-1:-1:-1;;;;;66950:27:0;-1:-1:-1;;;;;;;;;;;66950:27:0;;;;;;;;;66988:42;64344:2694;;;64221:2817;;;:::o;8227:442::-;8324:7;8382:27;;;:17;:27;;;;;;;;8353:56;;;;;;;;;-1:-1:-1;;;;;8353:56:0;;;;;-1:-1:-1;;;8353:56:0;;;-1:-1:-1;;;;;8353:56:0;;;;;;;;8324:7;;8422:92;;-1:-1:-1;8473:29:0;;;;;;;;;8483:19;8473:29;-1:-1:-1;;;;;8473:29:0;;;;-1:-1:-1;;;8473:29:0;;-1:-1:-1;;;;;8473:29:0;;;;;8422:92;8564:23;;;;8526:21;;9035:5;;8551:36;;-1:-1:-1;;;;;8551:36:0;:10;:36;:::i;:::-;8550:58;;;;:::i;:::-;8629:16;;;;;-1:-1:-1;8227:442:0;;-1:-1:-1;;;;8227:442:0:o;106637:106::-;2122:13;:11;:13::i;:::-;106711:12:::1;:24:::0;;-1:-1:-1;;;;;;106711:24:0::1;-1:-1:-1::0;;;;;106711:24:0;;;::::1;::::0;;;::::1;::::0;;106637:106::o;108551:176::-;2122:13;:11;:13::i;:::-;108620:49:::1;::::0;108602:12:::1;::::0;108620:10:::1;::::0;108643:21:::1;::::0;108602:12;108620:49;108602:12;108620:49;108643:21;108620:10;:49:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;108601:68;;;108685:7;108680:39;;108701:18;;-1:-1:-1::0;;;108701:18:0::1;;;;;;;;;;;108680:39;108590:137;108551:176::o:0;67134:185::-;67272:39;67289:4;67295:2;67299:7;67272:39;;;;;;;;;;;;:16;:39::i;:::-;67134:185;;;:::o;108225:81::-;2122:13;:11;:13::i;:::-;108291:7:::1;::::0;;-1:-1:-1;;108280:18:0;::::1;108291:7;::::0;;::::1;108290:8;108280:18;::::0;;108225:81::o;108435:108::-;2122:13;:11;:13::i;:::-;108511::::1;:24;108527:8:::0;;108511:13;:24:::1;:::i;95693:528::-:0;95837:23;95928:8;95903:22;95928:8;95995:36;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;95995:36:0;;-1:-1:-1;;95995:36:0;;;;;;;;;;;;95958:73;;96051:9;96046:125;96067:14;96062:1;:19;96046:125;;96123:32;96143:8;;96152:1;96143:11;;;;;;;:::i;:::-;;;;;;;96123:19;:32::i;:::-;96107:10;96118:1;96107:13;;;;;;;;:::i;:::-;;;;;;;;;;:48;96083:3;;96046:125;;;-1:-1:-1;96192:10:0;95693:528;-1:-1:-1;;;;95693:528:0:o;55418:152::-;55490:7;55533:27;55552:7;55533:18;:27::i;105722:518::-;105791:7;103371:21;:19;:21::i;:::-;105814:7:::1;::::0;::::1;::::0;::::1;;;105809:83;;2309:6:::0;;-1:-1:-1;;;;;2309:6:0;105840:10:::1;:21;105836:46;;105870:12;;-1:-1:-1::0;;;105870:12:0::1;;;;;;;;;;;105836:46;105902:10;105915:17;105923:8;105915:7;:17::i;:::-;105902:30:::0;-1:-1:-1;;;;;;105947:16:0;::::1;105953:10;105947:16;105943:104;;2309:6:::0;;-1:-1:-1;;;;;2309:6:0;105982:10:::1;:21;105978:59;;106012:25;;-1:-1:-1::0;;;106012:25:0::1;;;;;;;;;;;105978:59;106091:12;::::0;-1:-1:-1;;;;;106091:12:0::1;106115:21;106121:8:::0;106091:12;106115:5:::1;:21::i;:::-;106171:32;::::0;-1:-1:-1;;;106171:32:0;;-1:-1:-1;;;;;3509:32:1;;;106171::0::1;::::0;::::1;3491:51:1::0;3558:18;;;3551:34;;;106147:21:0::1;::::0;106171:18;;::::1;::::0;::::1;::::0;3464::1;;106171:32:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;106147:56:::0;-1:-1:-1;;;;103415:20:0;102809:1;103935:7;:22;103752:213;103415:20;105722:518;;;:::o;108112:105::-;2122:13;:11;:13::i;:::-;108182:14:::1;:27:::0;108112:105::o;50960:233::-;51032:7;-1:-1:-1;;;;;51056:19:0;;51052:60;;51084:28;;-1:-1:-1;;;51084:28:0;;;;;;;;;;;51052:60;-1:-1:-1;;;;;;51130:25:0;;;;;:18;:25;;;;;;45119:13;51130:55;;50960:233::o;2884:103::-;2122:13;:11;:13::i;:::-;2949:30:::1;2976:1;2949:18;:30::i;:::-;2884:103::o:0;99569:900::-;99647:16;99701:19;99735:25;99775:22;99800:16;99810:5;99800:9;:16::i;:::-;99775:41;;99831:25;99873:14;99859:29;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;99859:29:0;;99831:57;;99903:31;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;99903:31:0;107840:1;99949:472;99998:14;99983:11;:29;99949:472;;100050:15;100063:1;100050:12;:15::i;:::-;100038:27;;100088:9;:16;;;100129:8;100084:73;100179:14;;-1:-1:-1;;;;;100179:28:0;;100175:111;;100252:14;;;-1:-1:-1;100175:111:0;100329:5;-1:-1:-1;;;;;100308:26:0;:17;-1:-1:-1;;;;;100308:26:0;;100304:102;;100385:1;100359:8;100368:13;;;;;;100359:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;100304:102;100014:3;;99949:472;;;-1:-1:-1;100442:8:0;;99569:900;-1:-1:-1;;;;;;99569:900:0:o;106376:102::-;106429:7;106456:14;50657:12;;;50575:102;106456:14;106449:21;;106376:102;:::o;54201:104::-;54257:13;54290:7;54283:14;;;;;:::i;96609:2513::-;96752:16;96819:4;96810:5;:13;96806:45;;96832:19;;-1:-1:-1;;;96832:19:0;;;;;;;;;;;96806:45;96866:19;96900:17;96920:14;49518:7;49545:13;;49463:103;96920:14;96900:34;-1:-1:-1;107840:1:0;97012:5;:23;97008:87;;;107840:1;97056:23;;97008:87;97171:9;97164:4;:16;97160:73;;;97208:9;97201:16;;97160:73;97247:25;97275:16;97285:5;97275:9;:16::i;:::-;97247:44;;97469:4;97461:5;:12;97457:278;;;97516:12;;;97551:31;;;97547:111;;;97627:11;97607:31;;97547:111;97475:198;97457:278;;;-1:-1:-1;97718:1:0;97457:278;97749:25;97791:17;97777:32;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;97777:32:0;;97749:60;;97828:17;97849:1;97828:22;97824:78;;97878:8;-1:-1:-1;97871:15:0;;-1:-1:-1;;;97871:15:0;97824:78;98046:31;98080:26;98100:5;98080:19;:26::i;:::-;98046:60;;98121:25;98366:9;:16;;;98361:92;;-1:-1:-1;98423:14:0;;98361:92;98484:5;98467:478;98496:4;98491:1;:9;;:45;;;;;98519:17;98504:11;:32;;98491:45;98467:478;;;98574:15;98587:1;98574:12;:15::i;:::-;98562:27;;98612:9;:16;;;98653:8;98608:73;98703:14;;-1:-1:-1;;;;;98703:28:0;;98699:111;;98776:14;;;-1:-1:-1;98699:111:0;98853:5;-1:-1:-1;;;;;98832:26:0;:17;-1:-1:-1;;;;;98832:26:0;;98828:102;;98909:1;98883:8;98892:13;;;;;;98883:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;98828:102;98538:3;;98467:478;;;-1:-1:-1;;;99030:29:0;;;-1:-1:-1;99037:8:0;;-1:-1:-1;;96609:2513:0;;;;;;:::o;106248:120::-;106314:7;106341:19;106355:4;-1:-1:-1;;;;;51640:25:0;51612:7;51640:25;;;:18;:25;;;;;;45384:3;51640:50;45119:13;51639:82;;51551:178;105196:518;105121:9;105134:10;105121:23;105113:55;;;;-1:-1:-1;;;105113:55:0;;13178:2:1;105113:55:0;;;13160:21:1;13217:2;13197:18;;;13190:30;-1:-1:-1;;;13236:18:1;;;13229:49;13295:18;;105113:55:0;;;;;;;;;103371:21:::1;:19;:21::i;:::-;105302:10:::2;105315:13;105324:3;105315:8;:13::i;:::-;105346:7;::::0;105302:26;;-1:-1:-1;105346:7:0::2;;105341:38;;105362:17;;-1:-1:-1::0;;;105362:17:0::2;;;;;;;;;;;105341:38;105417:14;::::0;:18:::2;::::0;105434:1:::2;105417:18;:::i;:::-;105411:3;105394:14;50252:7:::0;50443:13;-1:-1:-1;;50443:31:0;;50197:296;105394:14:::2;:20;;;;:::i;:::-;:41;105390:72;;;105444:18;;-1:-1:-1::0;;;105444:18:0::2;;;;;;;;;;;105390:72;105511:12;::::0;:16:::2;::::0;105526:1:::2;105511:16;:::i;:::-;105505:3;105477:25;105491:10;105477:13;:25::i;:::-;:31;;;;:::i;:::-;:50;105473:85;;;105536:22;;-1:-1:-1::0;;;105536:22:0::2;;;;;;;;;;;105473:85;105579:17;::::0;:21:::2;::::0;105599:1:::2;105579:21;:::i;:::-;105573:3;:27;105569:66;;;105609:26;;-1:-1:-1::0;;;105609:26:0::2;;;;;;;;;;;105569:66;105648:22;105654:10;105666:3;105648:5;:22::i;:::-;105681:25;105700:5;105681:18;:25::i;:::-;105291:423;103415:20:::1;102809:1:::0;103935:7;:22;103752:213;61066:308;84078:10;-1:-1:-1;;;;;61165:31:0;;;61161:61;;61205:17;;-1:-1:-1;;;61205:17:0;;;;;;;;;;;61161:61;84078:10;61235:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;61235:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;61235:60:0;;;;;;;;;;61311:55;;540:41:1;;;61235:49:0;;84078:10;61311:55;;513:18:1;61311:55:0;;;;;;;61066:308;;:::o;107647:93::-;2122:13;:11;:13::i;:::-;107709:23:::1;9795:19:::0;;9788:26;9727:95;67917:399;68084:31;68097:4;68103:2;68107:7;68084:12;:31::i;:::-;-1:-1:-1;;;;;68130:14:0;;;:19;68126:183;;68169:56;68200:4;68206:2;68210:7;68219:5;68169:30;:56::i;:::-;68164:145;;68253:40;;-1:-1:-1;;;68253:40:0;;;;;;;;;;;68164:145;67917:399;;;;:::o;95106:428::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;107840:1:0;95270:7;:25;:54;;;-1:-1:-1;49518:7:0;49545:13;95299:7;:25;;95270:54;95266:103;;;95348:9;95106:428;-1:-1:-1;;95106:428:0:o;95266:103::-;95391:21;95404:7;95391:12;:21::i;:::-;95379:33;;95427:9;:16;;;95423:65;;;95467:9;95106:428;-1:-1:-1;;95106:428:0:o;95423:65::-;95505:21;95518:7;95505:12;:21::i;107857:125::-;2122:13;:11;:13::i;:::-;107936:17:::1;:38:::0;107857:125::o;54411:318::-;54484:13;54515:16;54523:7;54515;:16::i;:::-;54510:59;;54540:29;;-1:-1:-1;;;54540:29:0;;;;;;;;;;;54510:59;54582:21;54606:10;:8;:10::i;:::-;54582:34;;54640:7;54634:21;54659:1;54634:26;:87;;;;;;;;;;;;;;;;;54687:7;54696:18;54706:7;54696:9;:18::i;:::-;54670:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;54627:94;54411:318;-1:-1:-1;;;54411:318:0:o;108314:113::-;108372:7;108399:20;108413:5;108399:13;:20::i;107990:114::-;2122:13;:11;:13::i;:::-;108068:12:::1;:28:::0;107990:114::o;106751:283::-;106800:4;106815:14;106832:25;106846:10;106832:13;:25::i;:::-;106815:42;;106866:9;106890:13;;106878:9;:25;:57;;106934:1;106878:57;;;106922:9;106906:13;;:25;;;;:::i;:::-;106866:69;;106955:4;106948:3;:11;106944:66;;106989:10;106995:4;106989:3;:10;:::i;:::-;106980:4;;106979:21;;;;:::i;:::-;106972:28;106751:283;-1:-1:-1;;;;106751:283:0:o;106944:66::-;-1:-1:-1;107025:1:0;;106751:283;-1:-1:-1;;;106751:283:0:o;3142:201::-;2122:13;:11;:13::i;:::-;-1:-1:-1;;;;;3231:22:0;::::1;3223:73;;;::::0;-1:-1:-1;;;3223:73:0;;14290:2:1;3223:73:0::1;::::0;::::1;14272:21:1::0;14329:2;14309:18;;;14302:30;14368:34;14348:18;;;14341:62;-1:-1:-1;;;14419:18:1;;;14412:36;14465:19;;3223:73:0::1;14088:402:1::0;3223:73:0::1;3307:28;3326:8;3307:18;:28::i;107283:234::-:0;2122:13;:11;:13::i;:::-;107411:14:::1;::::0;107840:1;50050:12;49837:7;50034:13;107399:8;;50034:28;;-1:-1:-1;;50034:46:0;107383:24:::1;;;;:::i;:::-;:42;;107361:118;;;::::0;-1:-1:-1;;;107361:118:0;;14697:2:1;107361:118:0::1;::::0;::::1;14679:21:1::0;14736:2;14716:18;;;14709:30;14775:28;14755:18;;;14748:56;14821:18;;107361:118:0::1;14495:350:1::0;107361:118:0::1;107490:19;107496:2;107500:8;107490:5;:19::i;53123:639::-:0;53208:4;-1:-1:-1;;;;;;;;;53532:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;53609:25:0;;;53532:102;:179;;;-1:-1:-1;;;;;;;;53686:25:0;-1:-1:-1;;;53686:25:0;;53123:639::o;7957:215::-;8059:4;-1:-1:-1;;;;;;8083:41:0;;-1:-1:-1;;;8083:41:0;;:81;;-1:-1:-1;;;;;;;;;;6510:40:0;;;8128:36;6401:157;2401:132;2309:6;;-1:-1:-1;;;;;2309:6:0;84078:10;2465:23;2457:68;;;;-1:-1:-1;;;2457:68:0;;15052:2:1;2457:68:0;;;15034:21:1;;;15071:18;;;15064:30;15130:34;15110:18;;;15103:62;15182:18;;2457:68:0;14850:356:1;9319:332:0;9035:5;-1:-1:-1;;;;;9422:33:0;;;;9414:88;;;;-1:-1:-1;;;9414:88:0;;15413:2:1;9414:88:0;;;15395:21:1;15452:2;15432:18;;;15425:30;15491:34;15471:18;;;15464:62;-1:-1:-1;;;15542:18:1;;;15535:40;15592:19;;9414:88:0;15211:406:1;9414:88:0;-1:-1:-1;;;;;9521:22:0;;9513:60;;;;-1:-1:-1;;;9513:60:0;;15824:2:1;9513:60:0;;;15806:21:1;15863:2;15843:18;;;15836:30;15902:27;15882:18;;;15875:55;15947:18;;9513:60:0;15622:349:1;9513:60:0;9608:35;;;;;;;;;-1:-1:-1;;;;;9608:35:0;;;;;;-1:-1:-1;;;;;9608:35:0;;;;;;;;;;-1:-1:-1;;;9586:57:0;;;;:19;:57;9319:332::o;61953:282::-;62018:4;62074:7;107840:1;62055:26;;:66;;;;;62108:13;;62098:7;:23;62055:66;:153;;;;-1:-1:-1;;62159:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;62159:44:0;:49;;61953:282::o;56573:1275::-;56640:7;56675;;107840:1;56724:23;56720:1061;;56777:13;;56770:4;:20;56766:1015;;;56815:14;56832:23;;;:17;:23;;;;;;;-1:-1:-1;;;56921:24:0;;:29;;56917:845;;57586:113;57593:6;57603:1;57593:11;57586:113;;-1:-1:-1;;;57664:6:0;57646:25;;;;:17;:25;;;;;;57586:113;;56917:845;56792:989;56766:1015;57809:31;;-1:-1:-1;;;57809:31:0;;;;;;;;;;;103451:293;102853:1;103585:7;;:19;103577:63;;;;-1:-1:-1;;;103577:63:0;;16178:2:1;103577:63:0;;;16160:21:1;16217:2;16197:18;;;16190:30;16256:33;16236:18;;;16229:61;16307:18;;103577:63:0;15976:355:1;103577:63:0;102853:1;103718:7;:18;103451:293::o;78520:3081::-;78600:27;78630;78649:7;78630:18;:27::i;:::-;78600:57;-1:-1:-1;78600:57:0;78670:12;;78792:35;78819:7;63218:27;63329:24;;;:15;:24;;;;;63557:26;;63329:24;;63116:485;78792:35;78735:92;;;;78844:13;78840:316;;;78965:68;78990:15;79007:4;84078:10;79013:19;83991:105;78965:68;78960:184;;79057:43;79074:4;84078:10;61531:164;:::i;79057:43::-;79052:92;;79109:35;;-1:-1:-1;;;79109:35:0;;;;;;;;;;;79052:92;79312:15;79309:160;;;79452:1;79431:19;79424:30;79309:160;-1:-1:-1;;;;;80071:24:0;;;;;;:18;:24;;;;;:60;;80099:32;80071:60;;;58807:11;58782:23;58778:41;58765:63;-1:-1:-1;;;58765:63:0;80369:26;;;;:17;:26;;;;;:205;;;;-1:-1:-1;;;80694:47:0;;:52;;80690:627;;80799:1;80789:11;;80767:19;80922:30;;;:17;:30;;;;;;:35;;80918:384;;81060:13;;81045:11;:28;81041:242;;81207:30;;;;:17;:30;;;;;:52;;;81041:242;80748:569;80690:627;81345:35;;81372:7;;81368:1;;-1:-1:-1;;;;;81345:35:0;;;-1:-1:-1;;;;;;;;;;;81345:35:0;81368:1;;81345:35;-1:-1:-1;;81568:12:0;:14;;;;;;-1:-1:-1;;;;78520:3081:0:o;3503:191::-;3596:6;;;-1:-1:-1;;;;;3613:17:0;;;-1:-1:-1;;;;;;3613:17:0;;;;;;;3646:40;;3596:6;;;3613:17;3596:6;;3646:40;;3577:16;;3646:40;3566:128;3503:191;:::o;56021:161::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56149:24:0;;;;:17;:24;;;;;;56130:44;;:18;:44::i;51275:178::-;-1:-1:-1;;;;;51364:25:0;51336:7;51364:25;;;:18;:25;;45257:2;51364:25;;;;;:50;;45119:13;51363:82;;51275:178::o;71578:2720::-;71651:20;71674:13;;;71702;;;71698:44;;71724:18;;-1:-1:-1;;;71724:18:0;;;;;;;;;;;71698:44;-1:-1:-1;;;;;72230:22:0;;;;;;:18;:22;;;;45257:2;72230:22;;;:71;;72268:32;72256:45;;72230:71;;;72544:31;;;:17;:31;;;;;-1:-1:-1;59238:15:0;;59212:24;59208:46;58807:11;58782:23;58778:41;58775:52;58765:63;;72544:173;;72779:23;;;;72544:31;;72230:22;;-1:-1:-1;;;;;;;;;;;72230:22:0;;73397:335;73812:1;73798:12;73794:20;73752:346;73853:3;73844:7;73841:16;73752:346;;74071:7;74061:8;74058:1;-1:-1:-1;;;;;;;;;;;74028:1:0;74025;74020:59;73906:1;73893:15;73752:346;;;73756:77;74131:8;74143:1;74131:13;74127:45;;74153:19;;-1:-1:-1;;;74153:19:0;;;;;;;;;;;74127:45;74189:13;:19;-1:-1:-1;67134:185:0;;;:::o;107042:233::-;107122:6;107110:9;:18;107106:52;;;107137:21;;-1:-1:-1;;;107137:21:0;;;;;;;;;;;107106:52;107185:6;107173:9;:18;107169:99;;;107216:10;107208:48;107237:18;107249:6;107237:9;:18;:::i;:::-;107208:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70400:716;70584:88;;-1:-1:-1;;;70584:88:0;;70563:4;;-1:-1:-1;;;;;70584:45:0;;;;;:88;;84078:10;;70651:4;;70657:7;;70666:5;;70584:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;70584:88:0;;;;;;;;-1:-1:-1;;70584:88:0;;;;;;;;;;;;:::i;:::-;;;70580:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70867:6;:13;70884:1;70867:18;70863:235;;70913:40;;-1:-1:-1;;;70913:40:0;;;;;;;;;;;70863:235;71056:6;71050:13;71041:6;71037:2;71033:15;71026:38;70580:529;-1:-1:-1;;;;;;70743:64:0;-1:-1:-1;;;70743:64:0;;-1:-1:-1;70400:716:0;;;;;;:::o;55759:166::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55870:47:0;55889:27;55908:7;55889:18;:27::i;:::-;55870:18;:47::i;107525:114::-;107585:13;107618;107611:20;;;;;:::i;84198:1582::-;84682:4;84676:11;;84689:4;84672:22;84768:17;;;;84672:22;85126:5;85108:428;85174:1;85169:3;85165:11;85158:18;;85345:2;85339:4;85335:13;85331:2;85327:22;85322:3;85314:36;85439:2;85429:13;;85496:25;85108:428;85496:25;-1:-1:-1;85566:13:0;;;-1:-1:-1;;85681:14:0;;;85743:19;;;85681:14;84198:1582;-1:-1:-1;84198:1582:0:o;57947:366::-;-1:-1:-1;;;;;;;;;;;;;58057:41:0;;;;45778:3;58143:33;;;58109:68;;-1:-1:-1;;;58109:68:0;-1:-1:-1;;;58207:24:0;;:29;;-1:-1:-1;;;58188:48:0;;;;46299:3;58276:28;;;;-1:-1:-1;;;58247:58:0;-1:-1:-1;57947:366:0:o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:173::-;660:20;;-1:-1:-1;;;;;709:31:1;;699:42;;689:70;;755:1;752;745:12;770:366;837:6;845;898:2;886:9;877:7;873:23;869:32;866:52;;;914:1;911;904:12;866:52;937:29;956:9;937:29;:::i;:::-;927:39;;1016:2;1005:9;1001:18;988:32;-1:-1:-1;;;;;1053:5:1;1049:38;1042:5;1039:49;1029:77;;1102:1;1099;1092:12;1029:77;1125:5;1115:15;;;770:366;;;;;:::o;1141:250::-;1226:1;1236:113;1250:6;1247:1;1244:13;1236:113;;;1326:11;;;1320:18;1307:11;;;1300:39;1272:2;1265:10;1236:113;;;-1:-1:-1;;1383:1:1;1365:16;;1358:27;1141:250::o;1396:271::-;1438:3;1476:5;1470:12;1503:6;1498:3;1491:19;1519:76;1588:6;1581:4;1576:3;1572:14;1565:4;1558:5;1554:16;1519:76;:::i;:::-;1649:2;1628:15;-1:-1:-1;;1624:29:1;1615:39;;;;1656:4;1611:50;;1396:271;-1:-1:-1;;1396:271:1:o;1672:220::-;1821:2;1810:9;1803:21;1784:4;1841:45;1882:2;1871:9;1867:18;1859:6;1841:45;:::i;1897:180::-;1956:6;2009:2;1997:9;1988:7;1984:23;1980:32;1977:52;;;2025:1;2022;2015:12;1977:52;-1:-1:-1;2048:23:1;;1897:180;-1:-1:-1;1897:180:1:o;2290:254::-;2358:6;2366;2419:2;2407:9;2398:7;2394:23;2390:32;2387:52;;;2435:1;2432;2425:12;2387:52;2458:29;2477:9;2458:29;:::i;:::-;2448:39;2534:2;2519:18;;;;2506:32;;-1:-1:-1;;;2290:254:1:o;2731:328::-;2808:6;2816;2824;2877:2;2865:9;2856:7;2852:23;2848:32;2845:52;;;2893:1;2890;2883:12;2845:52;2916:29;2935:9;2916:29;:::i;:::-;2906:39;;2964:38;2998:2;2987:9;2983:18;2964:38;:::i;:::-;2954:48;;3049:2;3038:9;3034:18;3021:32;3011:42;;2731:328;;;;;:::o;3064:248::-;3132:6;3140;3193:2;3181:9;3172:7;3168:23;3164:32;3161:52;;;3209:1;3206;3199:12;3161:52;-1:-1:-1;;3232:23:1;;;3302:2;3287:18;;;3274:32;;-1:-1:-1;3064:248:1:o;3596:186::-;3655:6;3708:2;3696:9;3687:7;3683:23;3679:32;3676:52;;;3724:1;3721;3714:12;3676:52;3747:29;3766:9;3747:29;:::i;3787:592::-;3858:6;3866;3919:2;3907:9;3898:7;3894:23;3890:32;3887:52;;;3935:1;3932;3925:12;3887:52;3975:9;3962:23;4004:18;4045:2;4037:6;4034:14;4031:34;;;4061:1;4058;4051:12;4031:34;4099:6;4088:9;4084:22;4074:32;;4144:7;4137:4;4133:2;4129:13;4125:27;4115:55;;4166:1;4163;4156:12;4115:55;4206:2;4193:16;4232:2;4224:6;4221:14;4218:34;;;4248:1;4245;4238:12;4218:34;4293:7;4288:2;4279:6;4275:2;4271:15;4267:24;4264:37;4261:57;;;4314:1;4311;4304:12;4261:57;4345:2;4337:11;;;;;4367:6;;-1:-1:-1;3787:592:1;;-1:-1:-1;;;;3787:592:1:o;4384:615::-;4470:6;4478;4531:2;4519:9;4510:7;4506:23;4502:32;4499:52;;;4547:1;4544;4537:12;4499:52;4587:9;4574:23;4616:18;4657:2;4649:6;4646:14;4643:34;;;4673:1;4670;4663:12;4643:34;4711:6;4700:9;4696:22;4686:32;;4756:7;4749:4;4745:2;4741:13;4737:27;4727:55;;4778:1;4775;4768:12;4727:55;4818:2;4805:16;4844:2;4836:6;4833:14;4830:34;;;4860:1;4857;4850:12;4830:34;4913:7;4908:2;4898:6;4895:1;4891:14;4887:2;4883:23;4879:32;4876:45;4873:65;;;4934:1;4931;4924:12;5004:349;5088:12;;-1:-1:-1;;;;;5084:38:1;5072:51;;5176:4;5165:16;;;5159:23;5184:18;5155:48;5139:14;;;5132:72;5267:4;5256:16;;;5250:23;5243:31;5236:39;5220:14;;;5213:63;5329:4;5318:16;;;5312:23;5337:8;5308:38;5292:14;;5285:62;5004:349::o;5358:724::-;5593:2;5645:21;;;5715:13;;5618:18;;;5737:22;;;5564:4;;5593:2;5816:15;;;;5790:2;5775:18;;;5564:4;5859:197;5873:6;5870:1;5867:13;5859:197;;;5922:52;5970:3;5961:6;5955:13;5922:52;:::i;:::-;6031:15;;;;6003:4;5994:14;;;;;5895:1;5888:9;5859:197;;6087:632;6258:2;6310:21;;;6380:13;;6283:18;;;6402:22;;;6229:4;;6258:2;6481:15;;;;6455:2;6440:18;;;6229:4;6524:169;6538:6;6535:1;6532:13;6524:169;;;6599:13;;6587:26;;6668:15;;;;6633:12;;;;6560:1;6553:9;6524:169;;6724:322;6801:6;6809;6817;6870:2;6858:9;6849:7;6845:23;6841:32;6838:52;;;6886:1;6883;6876:12;6838:52;6909:29;6928:9;6909:29;:::i;:::-;6899:39;6985:2;6970:18;;6957:32;;-1:-1:-1;7036:2:1;7021:18;;;7008:32;;6724:322;-1:-1:-1;;;6724:322:1:o;7051:347::-;7116:6;7124;7177:2;7165:9;7156:7;7152:23;7148:32;7145:52;;;7193:1;7190;7183:12;7145:52;7216:29;7235:9;7216:29;:::i;:::-;7206:39;;7295:2;7284:9;7280:18;7267:32;7342:5;7335:13;7328:21;7321:5;7318:32;7308:60;;7364:1;7361;7354:12;7403:127;7464:10;7459:3;7455:20;7452:1;7445:31;7495:4;7492:1;7485:15;7519:4;7516:1;7509:15;7535:1138;7630:6;7638;7646;7654;7707:3;7695:9;7686:7;7682:23;7678:33;7675:53;;;7724:1;7721;7714:12;7675:53;7747:29;7766:9;7747:29;:::i;:::-;7737:39;;7795:38;7829:2;7818:9;7814:18;7795:38;:::i;:::-;7785:48;;7880:2;7869:9;7865:18;7852:32;7842:42;;7935:2;7924:9;7920:18;7907:32;7958:18;7999:2;7991:6;7988:14;7985:34;;;8015:1;8012;8005:12;7985:34;8053:6;8042:9;8038:22;8028:32;;8098:7;8091:4;8087:2;8083:13;8079:27;8069:55;;8120:1;8117;8110:12;8069:55;8156:2;8143:16;8178:2;8174;8171:10;8168:36;;;8184:18;;:::i;:::-;8259:2;8253:9;8227:2;8313:13;;-1:-1:-1;;8309:22:1;;;8333:2;8305:31;8301:40;8289:53;;;8357:18;;;8377:22;;;8354:46;8351:72;;;8403:18;;:::i;:::-;8443:10;8439:2;8432:22;8478:2;8470:6;8463:18;8518:7;8513:2;8508;8504;8500:11;8496:20;8493:33;8490:53;;;8539:1;8536;8529:12;8490:53;8595:2;8590;8586;8582:11;8577:2;8569:6;8565:15;8552:46;8640:1;8635:2;8630;8622:6;8618:15;8614:24;8607:35;8661:6;8651:16;;;;;;;7535:1138;;;;;;;:::o;8678:268::-;8876:3;8861:19;;8889:51;8865:9;8922:6;8889:51;:::i;8951:260::-;9019:6;9027;9080:2;9068:9;9059:7;9055:23;9051:32;9048:52;;;9096:1;9093;9086:12;9048:52;9119:29;9138:9;9119:29;:::i;:::-;9109:39;;9167:38;9201:2;9190:9;9186:18;9167:38;:::i;:::-;9157:48;;8951:260;;;;;:::o;9216:254::-;9284:6;9292;9345:2;9333:9;9324:7;9320:23;9316:32;9313:52;;;9361:1;9358;9351:12;9313:52;9397:9;9384:23;9374:33;;9426:38;9460:2;9449:9;9445:18;9426:38;:::i;9475:380::-;9554:1;9550:12;;;;9597;;;9618:61;;9672:4;9664:6;9660:17;9650:27;;9618:61;9725:2;9717:6;9714:14;9694:18;9691:38;9688:161;;9771:10;9766:3;9762:20;9759:1;9752:31;9806:4;9803:1;9796:15;9834:4;9831:1;9824:15;9688:161;;9475:380;;;:::o;9860:127::-;9921:10;9916:3;9912:20;9909:1;9902:31;9952:4;9949:1;9942:15;9976:4;9973:1;9966:15;9992:168;10065:9;;;10096;;10113:15;;;10107:22;;10093:37;10083:71;;10134:18;;:::i;10165:217::-;10205:1;10231;10221:132;;10275:10;10270:3;10266:20;10263:1;10256:31;10310:4;10307:1;10300:15;10338:4;10335:1;10328:15;10221:132;-1:-1:-1;10367:9:1;;10165:217::o;10723:545::-;10825:2;10820:3;10817:11;10814:448;;;10861:1;10886:5;10882:2;10875:17;10931:4;10927:2;10917:19;11001:2;10989:10;10985:19;10982:1;10978:27;10972:4;10968:38;11037:4;11025:10;11022:20;11019:47;;;-1:-1:-1;11060:4:1;11019:47;11115:2;11110:3;11106:12;11103:1;11099:20;11093:4;11089:31;11079:41;;11170:82;11188:2;11181:5;11178:13;11170:82;;;11233:17;;;11214:1;11203:13;11170:82;;11444:1206;11568:18;11563:3;11560:27;11557:53;;;11590:18;;:::i;:::-;11619:94;11709:3;11669:38;11701:4;11695:11;11669:38;:::i;:::-;11663:4;11619:94;:::i;:::-;11739:1;11764:2;11759:3;11756:11;11781:1;11776:616;;;;12436:1;12453:3;12450:93;;;-1:-1:-1;12509:19:1;;;12496:33;12450:93;-1:-1:-1;;11401:1:1;11397:11;;;11393:24;11389:29;11379:40;11425:1;11421:11;;;11376:57;12556:78;;11749:895;;11776:616;10670:1;10663:14;;;10707:4;10694:18;;-1:-1:-1;;11812:17:1;;;11913:9;11935:229;11949:7;11946:1;11943:14;11935:229;;;12038:19;;;12025:33;12010:49;;12145:4;12130:20;;;;12098:1;12086:14;;;;11965:12;11935:229;;;11939:3;12192;12183:7;12180:16;12177:159;;;12316:1;12312:6;12306:3;12300;12297:1;12293:11;12289:21;12285:34;12281:39;12268:9;12263:3;12259:19;12246:33;12242:79;12234:6;12227:95;12177:159;;;12379:1;12373:3;12370:1;12366:11;12362:19;12356:4;12349:33;11749:895;;;11444:1206;;;:::o;12655:127::-;12716:10;12711:3;12707:20;12704:1;12697:31;12747:4;12744:1;12737:15;12771:4;12768:1;12761:15;12787:184;12857:6;12910:2;12898:9;12889:7;12885:23;12881:32;12878:52;;;12926:1;12923;12916:12;12878:52;-1:-1:-1;12949:16:1;;12787:184;-1:-1:-1;12787:184:1:o;13324:125::-;13389:9;;;13410:10;;;13407:36;;;13423:18;;:::i;13454:496::-;13633:3;13671:6;13665:13;13687:66;13746:6;13741:3;13734:4;13726:6;13722:17;13687:66;:::i;:::-;13816:13;;13775:16;;;;13838:70;13816:13;13775:16;13885:4;13873:17;;13838:70;:::i;:::-;13924:20;;13454:496;-1:-1:-1;;;;13454:496:1:o;13955:128::-;14022:9;;;14043:11;;;14040:37;;;14057:18;;:::i;16336:489::-;-1:-1:-1;;;;;16605:15:1;;;16587:34;;16657:15;;16652:2;16637:18;;16630:43;16704:2;16689:18;;16682:34;;;16752:3;16747:2;16732:18;;16725:31;;;16530:4;;16773:46;;16799:19;;16791:6;16773:46;:::i;:::-;16765:54;16336:489;-1:-1:-1;;;;;;16336:489:1:o;16830:249::-;16899:6;16952:2;16940:9;16931:7;16927:23;16923:32;16920:52;;;16968:1;16965;16958:12;16920:52;17000:9;16994:16;17019:30;17043:5;17019:30;:::i
Swarm Source
ipfs://8637a228d1968b98ac47cad5290e01bd873d8430dc10dab617b8bdb9e8753889
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.