ERC-721
Overview
Max Total Supply
2,283 BRKBRSOF
Holders
274
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 BRKBRSOFLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BrokeBearsOfficial
Compiler Version
v0.8.15+commit.e14f2714
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-01-21 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: @openzeppelin/contracts/utils/cryptography/ECDSA.sol // 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: Ticketed.sol pragma solidity ^0.8.7; error InvalidSignature(); error InvalidSpotId(); error AlreadyMinted(); error InvalidSignerAddress(); contract Ticketed { using ECDSA for bytes32; // maximum value of an unsigned 256-bit integer uint256 private constant MAX_INT = 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff; uint256[] _claimGroups; address _signer = address(0); // this technique is adopted from https://medium.com/donkeverse/hardcore-gas-savings-in-nft-minting-part-3-save-30-000-in-presale-gas-c945406e89f0 // it saves buyers from expensive SSTORE operations when marking an allowlist spot as "used" function _claimAllowlistSpot(bytes calldata _signature, uint256 spotId) internal { if ( !_verify( keccak256(abi.encodePacked(msg.sender, spotId)), _signature ) ) revert InvalidSignature(); // make sure the spot ID can fit somewhere in the array // (ie, spotId of 1000 if claimGroups can only store 256 bytes, is invalid) if (spotId >= _claimGroups.length * 256) revert InvalidSpotId(); uint256 groupIndex; uint256 spotIndex; uint256 localGroup; uint256 storedBit; unchecked { // which index of the claimGroups array the provided ID falls into // for ex, if the ID is 256, then we're in group[1] // (group[0] would be 0-255, group[1] would be 256-511, etc) groupIndex = spotId / 256; // which of the 256 bits in that group the ID falls into spotIndex = spotId % 256; } // assign the group we're interested into a temporary variable localGroup = _claimGroups[groupIndex]; // shift the group bits to the right by the number of bits at the specified index // this puts the bit we care about at the rightmost position // bitwise AND the result with a 1 to zero-out everything except the bit being examined storedBit = (localGroup >> spotIndex) & uint256(1); // if we got a 0, then the spot is already claimed if (storedBit == 0) revert AlreadyMinted(); // zero-out the bit at the specified index by shifting it back to its original spot, and then bitflip localGroup = localGroup & ~(uint256(1) << spotIndex); // store the modified group back into the array // this modified group will have the spot ID set to 1 at its corresponding index _claimGroups[groupIndex] = localGroup; } function isValidSpot(uint256 spotId) public view returns (bool) { if (spotId >= _claimGroups.length * 256) revert InvalidSpotId(); uint256 groupIndex = spotId / 256; uint256 spotIndex = spotId % 256; uint256 localGroup = _claimGroups[groupIndex]; uint256 storedBit = (localGroup >> spotIndex) & uint256(1); return storedBit == 1; } function _setClaimGroups(uint256 numSlots) internal { // fill claimGroups array with MAX_INTs. Each group accounts for 256 spots. uint256 slotCount = (numSlots / 256) + 1; uint256[] memory arr = new uint256[](slotCount); for (uint256 i; i < slotCount; i++) { arr[i] = MAX_INT; } _claimGroups = arr; } function _verify(bytes32 hash, bytes memory signature) internal view returns (bool) { if (_signer == address(0)) revert InvalidSignerAddress(); bytes32 signedHash = hash.toEthSignedMessageHash(); return signedHash.recover(signature) == _signer; } function _setClaimSigner(address _claimSigner) internal { _signer = _claimSigner; } } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.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/Address.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract 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/ERC721/IERC721.sol // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @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); } // File: ERC721A.sol // Creator: Chiru Labs pragma solidity ^0.8.4; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerQueryForNonexistentToken(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _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 _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary 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 { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr && curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ 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, tokenId.toString())) : ''; } /** * @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, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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 (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, 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. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @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. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (safe && to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex != end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // 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 { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev This is 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 { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // 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 { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @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 {} } // File: broke_bears.sol // Coded by broke people for the broke people <3 pragma solidity ^0.8.15; error SalePaused(); error InvalidQuantity(); error WithdrawFailed(); error SoldOut(); error InvalidPrice(); contract BrokeBearsOfficial is ERC721A, Ownable { using Strings for uint256; string baseURI; string public baseExtension = ".json"; uint256 public cost = 0 ether; uint256 public constant maxSupply = 5555; uint256 public maxMintAmountPerTx = 10; uint256 public maxMintPerWallet = 10; uint256 public maxMintableForFree = 2222; uint256 public preMinted = 222; bool public paused = true; mapping(address => uint256) public addressMintBalance; constructor(string memory _initBaseURI) ERC721A("BrokeBearsOfficial", "BRKBRSOF") { setBaseURI(_initBaseURI); } // internal function _baseURI() internal view virtual override returns (string memory) { return baseURI; } // public function mint(uint256 _mintAmount) public payable { uint256 supply = totalSupply(); if (paused) revert SalePaused(); if (_mintAmount <= 0 || _mintAmount > maxMintAmountPerTx) revert InvalidQuantity(); if (addressMintBalance[msg.sender] + _mintAmount > maxMintPerWallet) revert InvalidQuantity(); if (supply + _mintAmount > maxSupply) revert SoldOut(); if (msg.sender != owner() || supply > maxMintableForFree) { if (msg.value < cost * _mintAmount) revert InvalidPrice(); } _safeMint(msg.sender, _mintAmount); addressMintBalance[msg.sender] += _mintAmount; if (supply + _mintAmount >= maxMintableForFree && cost == 0){ cost = 0.0035 ether; } } function preMint(uint256 _mintAmount) public onlyOwner { uint256 supply = totalSupply(); if (_mintAmount <= 0) revert InvalidQuantity(); if (supply + _mintAmount > preMinted ) revert SoldOut(); _safeMint(msg.sender, _mintAmount); } function tokensOfOwner(address owner) public view returns (uint256[] memory){ uint256 holdingAmount = balanceOf(owner); uint256 currSupply = _currentIndex; uint256 tokenIdsIdx; address currOwnershipAddr; uint256[] memory list = new uint256[](holdingAmount); unchecked { for (uint256 i = _startTokenId(); i < currSupply; ++i) { TokenOwnership memory ownership = _ownerships[i]; // Find out who owns this sequence if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } // Append tokens the last found owner owns in the sequence if (currOwnershipAddr == owner) { list[tokenIdsIdx++] = i; } // All tokens have been found, we don't need to keep searching if (tokenIdsIdx == holdingAmount) { break; } } } return list; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), baseExtension)) : ""; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } //only owner function setCost(uint256 _newCost) public onlyOwner { cost = _newCost; } function setmaxMintAmountPerTx(uint256 _newMaxMintAmountPerTx) public onlyOwner { maxMintAmountPerTx = _newMaxMintAmountPerTx; } function setmaxMintAmountPerWallet(uint256 _newMaxMintAmountPerWallet) public onlyOwner { maxMintPerWallet = _newMaxMintAmountPerWallet; } function setmaxMintForFree(uint256 _newMaxMintableForFree) public onlyOwner { maxMintableForFree = _newMaxMintableForFree; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function setBaseExtension(string memory _newBaseExtension) public onlyOwner { baseExtension = _newBaseExtension; } function pause(bool _state) public onlyOwner { paused = _state; } function withdraw() public payable onlyOwner { (bool success, ) = payable(owner()).call{value: address(this).balance}(""); if (!success) revert WithdrawFailed(); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_initBaseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidPrice","type":"error"},{"inputs":[],"name":"InvalidQuantity","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"SalePaused","type":"error"},{"inputs":[],"name":"SoldOut","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"WithdrawFailed","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":"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":"","type":"address"}],"name":"addressMintBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","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":"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":"maxMintAmountPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintableForFree","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"preMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"preMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxMintAmountPerTx","type":"uint256"}],"name":"setmaxMintAmountPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxMintAmountPerWallet","type":"uint256"}],"name":"setmaxMintAmountPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxMintableForFree","type":"uint256"}],"name":"setmaxMintForFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"payable","type":"function"}]
Contract Creation Code
60c06040526005608090815264173539b7b760d91b60a052600a9062000026908262000283565b506000600b55600a600c819055600d556108ae600e5560de600f556010805460ff191660011790553480156200005b57600080fd5b5060405162002323380380620023238339810160408190526200007e916200034f565b60405180604001604052806012815260200171109c9bdad95099585c9cd3d9999a58da585b60721b81525060405180604001604052806008815260200167212925a12929a7a360c11b8152508160029081620000db919062000283565b506003620000ea828262000283565b5050600160005550620000fd336200010f565b620001088162000161565b506200042b565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200016b6200017d565b600962000179828262000283565b5050565b6008546001600160a01b03163314620001dc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200020957607f821691505b6020821081036200022a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200027e57600081815260208120601f850160051c81016020861015620002595750805b601f850160051c820191505b818110156200027a5782815560010162000265565b5050505b505050565b81516001600160401b038111156200029f576200029f620001de565b620002b781620002b08454620001f4565b8462000230565b602080601f831160018114620002ef5760008415620002d65750858301515b600019600386901b1c1916600185901b1785556200027a565b600085815260208120601f198616915b828110156200032057888601518255948401946001909101908401620002ff565b50858210156200033f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208083850312156200036357600080fd5b82516001600160401b03808211156200037b57600080fd5b818501915085601f8301126200039057600080fd5b815181811115620003a557620003a5620001de565b604051601f8201601f19908116603f01168101908382118183101715620003d057620003d0620001de565b816040528281528886848701011115620003e957600080fd5b600093505b828410156200040d5784840186015181850187015292850192620003ee565b828411156200041f5760008684830101525b98975050505050505050565b611ee8806200043b6000396000f3fe60806040526004361061021a5760003560e01c80635c975abb11610123578063a0712d68116100ab578063c87b56dd1161006f578063c87b56dd146105f5578063d5abeb0114610615578063da3ef23f1461062b578063e985e9c51461064b578063f2fde38b1461069457600080fd5b8063a0712d6814610577578063a22cb4651461058a578063b228d925146105aa578063b88d4fde146105c0578063c6682862146105e057600080fd5b80638462151c116100f25780638462151c146104e15780638ad433ac1461050e5780638da5cb5b1461052e57806394354fd01461054c57806395d89b411461056257600080fd5b80635c975abb146104725780636352211e1461048c57806370a08231146104ac578063715018a6146104cc57600080fd5b806324bed072116101a65780633ccfd60b116101755780633ccfd60b146103ea57806342842e0e146103f257806344a0d68a1461041257806353db40731461043257806355f804b31461045257600080fd5b806324bed072146103675780632aaccf7a14610387578063314d4d1b1461039d5780633406c726146103bd57600080fd5b8063095ea7b3116101ed578063095ea7b3146102d057806313faede6146102f057806314af882a1461031457806318160ddd1461032a57806323b872dd1461034757600080fd5b806301ffc9a71461021f57806302329a291461025457806306fdde0314610276578063081812fc14610298575b600080fd5b34801561022b57600080fd5b5061023f61023a3660046118b6565b6106b4565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b5061027461026f3660046118e8565b610706565b005b34801561028257600080fd5b5061028b610721565b60405161024b919061195b565b3480156102a457600080fd5b506102b86102b336600461196e565b6107b3565b6040516001600160a01b03909116815260200161024b565b3480156102dc57600080fd5b506102746102eb36600461199e565b6107f7565b3480156102fc57600080fd5b50610306600b5481565b60405190815260200161024b565b34801561032057600080fd5b50610306600e5481565b34801561033657600080fd5b506001546000540360001901610306565b34801561035357600080fd5b506102746103623660046119c8565b610884565b34801561037357600080fd5b5061027461038236600461196e565b61088f565b34801561039357600080fd5b50610306600f5481565b3480156103a957600080fd5b506102746103b836600461196e565b61089c565b3480156103c957600080fd5b506103066103d8366004611a04565b60116020526000908152604090205481565b6102746108a9565b3480156103fe57600080fd5b5061027461040d3660046119c8565b610939565b34801561041e57600080fd5b5061027461042d36600461196e565b610954565b34801561043e57600080fd5b5061027461044d36600461196e565b610961565b34801561045e57600080fd5b5061027461046d366004611aaa565b61096e565b34801561047e57600080fd5b5060105461023f9060ff1681565b34801561049857600080fd5b506102b86104a736600461196e565b610986565b3480156104b857600080fd5b506103066104c7366004611a04565b610998565b3480156104d857600080fd5b506102746109e6565b3480156104ed57600080fd5b506105016104fc366004611a04565b6109fa565b60405161024b9190611af2565b34801561051a57600080fd5b5061027461052936600461196e565b610b1c565b34801561053a57600080fd5b506008546001600160a01b03166102b8565b34801561055857600080fd5b50610306600c5481565b34801561056e57600080fd5b5061028b610b92565b61027461058536600461196e565b610ba1565b34801561059657600080fd5b506102746105a5366004611b36565b610d1c565b3480156105b657600080fd5b50610306600d5481565b3480156105cc57600080fd5b506102746105db366004611b69565b610db1565b3480156105ec57600080fd5b5061028b610e02565b34801561060157600080fd5b5061028b61061036600461196e565b610e90565b34801561062157600080fd5b506103066115b381565b34801561063757600080fd5b50610274610646366004611aaa565b610f63565b34801561065757600080fd5b5061023f610666366004611be4565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156106a057600080fd5b506102746106af366004611a04565b610f77565b60006001600160e01b031982166380ac58cd60e01b14806106e557506001600160e01b03198216635b5e139f60e01b145b8061070057506301ffc9a760e01b6001600160e01b03198316145b92915050565b61070e610fed565b6010805460ff1916911515919091179055565b60606002805461073090611c0e565b80601f016020809104026020016040519081016040528092919081815260200182805461075c90611c0e565b80156107a95780601f1061077e576101008083540402835291602001916107a9565b820191906000526020600020905b81548152906001019060200180831161078c57829003601f168201915b5050505050905090565b60006107be82611047565b6107db576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061080282610986565b9050806001600160a01b0316836001600160a01b0316036108365760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061085657506108548133610666565b155b15610874576040516367d9dca160e11b815260040160405180910390fd5b61087f838383611080565b505050565b61087f8383836110dc565b610897610fed565b600e55565b6108a4610fed565b600d55565b6108b1610fed565b60006108c56008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d806000811461090f576040519150601f19603f3d011682016040523d82523d6000602084013e610914565b606091505b505090508061093657604051631d42c86760e21b815260040160405180910390fd5b50565b61087f83838360405180602001604052806000815250610db1565b61095c610fed565b600b55565b610969610fed565b600c55565b610976610fed565b60096109828282611c96565b5050565b6000610991826112ca565b5192915050565b60006001600160a01b0382166109c1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6109ee610fed565b6109f860006113f1565b565b60606000610a0783610998565b600080549192508080846001600160401b03811115610a2857610a28611a1f565b604051908082528060200260200182016040528015610a51578160200160208202803683370190505b50905060015b84811015610b1157600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215610abc57805193505b886001600160a01b0316846001600160a01b031603610afb5781838680600101975081518110610aee57610aee611d55565b6020026020010181815250505b868503610b085750610b11565b50600101610a57565b509695505050505050565b610b24610fed565b6000610b396001546000546000199190030190565b905060008211610b5c5760405163524f409b60e01b815260040160405180910390fd5b600f54610b698383611d81565b1115610b88576040516352df9fe560e01b815260040160405180910390fd5b6109823383611443565b60606003805461073090611c0e565b6000610bb66001546000546000199190030190565b60105490915060ff1615610bdd576040516308a98cbd60e41b815260040160405180910390fd5b811580610beb5750600c5482115b15610c095760405163524f409b60e01b815260040160405180910390fd5b600d5433600090815260116020526040902054610c27908490611d81565b1115610c465760405163524f409b60e01b815260040160405180910390fd5b6115b3610c538383611d81565b1115610c72576040516352df9fe560e01b815260040160405180910390fd5b6008546001600160a01b031633141580610c8d5750600e5481115b15610cbf5781600b54610ca09190611d99565b341015610cbf5760405162bfc92160e01b815260040160405180910390fd5b610cc93383611443565b3360009081526011602052604081208054849290610ce8908490611d81565b9091555050600e54610cfa8383611d81565b10158015610d085750600b54155b1561098257660c6f3b40b6c000600b555050565b336001600160a01b03831603610d455760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610dbc8484846110dc565b6001600160a01b0383163b15158015610dde5750610ddc8484848461145d565b155b15610dfc576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600a8054610e0f90611c0e565b80601f0160208091040260200160405190810160405280929190818152602001828054610e3b90611c0e565b8015610e885780601f10610e5d57610100808354040283529160200191610e88565b820191906000526020600020905b815481529060010190602001808311610e6b57829003601f168201915b505050505081565b6060610e9b82611047565b610f045760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084015b60405180910390fd5b6000610f0e611549565b90506000815111610f2e5760405180602001604052806000815250610f5c565b80610f3884611558565b600a604051602001610f4c93929190611db8565b6040516020818303038152906040525b9392505050565b610f6b610fed565b600a6109828282611c96565b610f7f610fed565b6001600160a01b038116610fe45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610efb565b610936816113f1565b6008546001600160a01b031633146109f85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610efb565b60008160011115801561105b575060005482105b8015610700575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006110e7826112ca565b9050836001600160a01b031681600001516001600160a01b03161461111e5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061113c575061113c8533610666565b8061115757503361114c846107b3565b6001600160a01b0316145b90508061117757604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661119e57604051633a954ecd60e21b815260040160405180910390fd5b6111aa60008487611080565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661127e57600054821461127e57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b604080516060810182526000808252602082018190529181019190915281806001111580156112fa575060005481105b156113d857600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906113d65780516001600160a01b03161561136d579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156113d1579392505050565b61136d565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6109828282604051806020016040528060008152506115ea565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611492903390899088908890600401611e58565b6020604051808303816000875af19250505080156114cd575060408051601f3d908101601f191682019092526114ca91810190611e95565b60015b61152b573d8080156114fb576040519150601f19603f3d011682016040523d82523d6000602084013e611500565b606091505b508051600003611523576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60606009805461073090611c0e565b60606000611565836115f7565b60010190506000816001600160401b0381111561158457611584611a1f565b6040519080825280601f01601f1916602001820160405280156115ae576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846115b857509392505050565b61087f83838360016116cf565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106116365772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611662576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061168057662386f26fc10000830492506010015b6305f5e1008310611698576305f5e100830492506008015b61271083106116ac57612710830492506004015b606483106116be576064830492506002015b600a83106107005760010192915050565b6000546001600160a01b0385166116f857604051622e076360e81b815260040160405180910390fd5b836000036117195760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b4290921691909102179055808085018380156117ca57506001600160a01b0387163b15155b15611852575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461181b600088848060010195508861145d565b611838576040516368d2bf6b60e11b815260040160405180910390fd5b8082036117d057826000541461184d57600080fd5b611897565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808203611853575b506000556112c3565b6001600160e01b03198116811461093657600080fd5b6000602082840312156118c857600080fd5b8135610f5c816118a0565b803580151581146118e357600080fd5b919050565b6000602082840312156118fa57600080fd5b610f5c826118d3565b60005b8381101561191e578181015183820152602001611906565b83811115610dfc5750506000910152565b60008151808452611947816020860160208601611903565b601f01601f19169290920160200192915050565b602081526000610f5c602083018461192f565b60006020828403121561198057600080fd5b5035919050565b80356001600160a01b03811681146118e357600080fd5b600080604083850312156119b157600080fd5b6119ba83611987565b946020939093013593505050565b6000806000606084860312156119dd57600080fd5b6119e684611987565b92506119f460208501611987565b9150604084013590509250925092565b600060208284031215611a1657600080fd5b610f5c82611987565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115611a4f57611a4f611a1f565b604051601f8501601f19908116603f01168101908282118183101715611a7757611a77611a1f565b81604052809350858152868686011115611a9057600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611abc57600080fd5b81356001600160401b03811115611ad257600080fd5b8201601f81018413611ae357600080fd5b61154184823560208401611a35565b6020808252825182820181905260009190848201906040850190845b81811015611b2a57835183529284019291840191600101611b0e565b50909695505050505050565b60008060408385031215611b4957600080fd5b611b5283611987565b9150611b60602084016118d3565b90509250929050565b60008060008060808587031215611b7f57600080fd5b611b8885611987565b9350611b9660208601611987565b92506040850135915060608501356001600160401b03811115611bb857600080fd5b8501601f81018713611bc957600080fd5b611bd887823560208401611a35565b91505092959194509250565b60008060408385031215611bf757600080fd5b611c0083611987565b9150611b6060208401611987565b600181811c90821680611c2257607f821691505b602082108103611c4257634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561087f57600081815260208120601f850160051c81016020861015611c6f5750805b601f850160051c820191505b81811015611c8e57828155600101611c7b565b505050505050565b81516001600160401b03811115611caf57611caf611a1f565b611cc381611cbd8454611c0e565b84611c48565b602080601f831160018114611cf85760008415611ce05750858301515b600019600386901b1c1916600185901b178555611c8e565b600085815260208120601f198616915b82811015611d2757888601518255948401946001909101908401611d08565b5085821015611d455787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115611d9457611d94611d6b565b500190565b6000816000190483118215151615611db357611db3611d6b565b500290565b600084516020611dcb8285838a01611903565b855191840191611dde8184848a01611903565b8554920191600090611def81611c0e565b60018281168015611e075760018114611e1c57611e48565b60ff1984168752821515830287019450611e48565b896000528560002060005b84811015611e4057815489820152908301908701611e27565b505082870194505b50929a9950505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611e8b9083018461192f565b9695505050505050565b600060208284031215611ea757600080fd5b8151610f5c816118a056fea26469706673582212208bf42f4efe87e1517c538eaceca31d2497f30e0071a99d542bc1b491c0d8244964736f6c634300080f003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061021a5760003560e01c80635c975abb11610123578063a0712d68116100ab578063c87b56dd1161006f578063c87b56dd146105f5578063d5abeb0114610615578063da3ef23f1461062b578063e985e9c51461064b578063f2fde38b1461069457600080fd5b8063a0712d6814610577578063a22cb4651461058a578063b228d925146105aa578063b88d4fde146105c0578063c6682862146105e057600080fd5b80638462151c116100f25780638462151c146104e15780638ad433ac1461050e5780638da5cb5b1461052e57806394354fd01461054c57806395d89b411461056257600080fd5b80635c975abb146104725780636352211e1461048c57806370a08231146104ac578063715018a6146104cc57600080fd5b806324bed072116101a65780633ccfd60b116101755780633ccfd60b146103ea57806342842e0e146103f257806344a0d68a1461041257806353db40731461043257806355f804b31461045257600080fd5b806324bed072146103675780632aaccf7a14610387578063314d4d1b1461039d5780633406c726146103bd57600080fd5b8063095ea7b3116101ed578063095ea7b3146102d057806313faede6146102f057806314af882a1461031457806318160ddd1461032a57806323b872dd1461034757600080fd5b806301ffc9a71461021f57806302329a291461025457806306fdde0314610276578063081812fc14610298575b600080fd5b34801561022b57600080fd5b5061023f61023a3660046118b6565b6106b4565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b5061027461026f3660046118e8565b610706565b005b34801561028257600080fd5b5061028b610721565b60405161024b919061195b565b3480156102a457600080fd5b506102b86102b336600461196e565b6107b3565b6040516001600160a01b03909116815260200161024b565b3480156102dc57600080fd5b506102746102eb36600461199e565b6107f7565b3480156102fc57600080fd5b50610306600b5481565b60405190815260200161024b565b34801561032057600080fd5b50610306600e5481565b34801561033657600080fd5b506001546000540360001901610306565b34801561035357600080fd5b506102746103623660046119c8565b610884565b34801561037357600080fd5b5061027461038236600461196e565b61088f565b34801561039357600080fd5b50610306600f5481565b3480156103a957600080fd5b506102746103b836600461196e565b61089c565b3480156103c957600080fd5b506103066103d8366004611a04565b60116020526000908152604090205481565b6102746108a9565b3480156103fe57600080fd5b5061027461040d3660046119c8565b610939565b34801561041e57600080fd5b5061027461042d36600461196e565b610954565b34801561043e57600080fd5b5061027461044d36600461196e565b610961565b34801561045e57600080fd5b5061027461046d366004611aaa565b61096e565b34801561047e57600080fd5b5060105461023f9060ff1681565b34801561049857600080fd5b506102b86104a736600461196e565b610986565b3480156104b857600080fd5b506103066104c7366004611a04565b610998565b3480156104d857600080fd5b506102746109e6565b3480156104ed57600080fd5b506105016104fc366004611a04565b6109fa565b60405161024b9190611af2565b34801561051a57600080fd5b5061027461052936600461196e565b610b1c565b34801561053a57600080fd5b506008546001600160a01b03166102b8565b34801561055857600080fd5b50610306600c5481565b34801561056e57600080fd5b5061028b610b92565b61027461058536600461196e565b610ba1565b34801561059657600080fd5b506102746105a5366004611b36565b610d1c565b3480156105b657600080fd5b50610306600d5481565b3480156105cc57600080fd5b506102746105db366004611b69565b610db1565b3480156105ec57600080fd5b5061028b610e02565b34801561060157600080fd5b5061028b61061036600461196e565b610e90565b34801561062157600080fd5b506103066115b381565b34801561063757600080fd5b50610274610646366004611aaa565b610f63565b34801561065757600080fd5b5061023f610666366004611be4565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156106a057600080fd5b506102746106af366004611a04565b610f77565b60006001600160e01b031982166380ac58cd60e01b14806106e557506001600160e01b03198216635b5e139f60e01b145b8061070057506301ffc9a760e01b6001600160e01b03198316145b92915050565b61070e610fed565b6010805460ff1916911515919091179055565b60606002805461073090611c0e565b80601f016020809104026020016040519081016040528092919081815260200182805461075c90611c0e565b80156107a95780601f1061077e576101008083540402835291602001916107a9565b820191906000526020600020905b81548152906001019060200180831161078c57829003601f168201915b5050505050905090565b60006107be82611047565b6107db576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061080282610986565b9050806001600160a01b0316836001600160a01b0316036108365760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061085657506108548133610666565b155b15610874576040516367d9dca160e11b815260040160405180910390fd5b61087f838383611080565b505050565b61087f8383836110dc565b610897610fed565b600e55565b6108a4610fed565b600d55565b6108b1610fed565b60006108c56008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d806000811461090f576040519150601f19603f3d011682016040523d82523d6000602084013e610914565b606091505b505090508061093657604051631d42c86760e21b815260040160405180910390fd5b50565b61087f83838360405180602001604052806000815250610db1565b61095c610fed565b600b55565b610969610fed565b600c55565b610976610fed565b60096109828282611c96565b5050565b6000610991826112ca565b5192915050565b60006001600160a01b0382166109c1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6109ee610fed565b6109f860006113f1565b565b60606000610a0783610998565b600080549192508080846001600160401b03811115610a2857610a28611a1f565b604051908082528060200260200182016040528015610a51578160200160208202803683370190505b50905060015b84811015610b1157600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215610abc57805193505b886001600160a01b0316846001600160a01b031603610afb5781838680600101975081518110610aee57610aee611d55565b6020026020010181815250505b868503610b085750610b11565b50600101610a57565b509695505050505050565b610b24610fed565b6000610b396001546000546000199190030190565b905060008211610b5c5760405163524f409b60e01b815260040160405180910390fd5b600f54610b698383611d81565b1115610b88576040516352df9fe560e01b815260040160405180910390fd5b6109823383611443565b60606003805461073090611c0e565b6000610bb66001546000546000199190030190565b60105490915060ff1615610bdd576040516308a98cbd60e41b815260040160405180910390fd5b811580610beb5750600c5482115b15610c095760405163524f409b60e01b815260040160405180910390fd5b600d5433600090815260116020526040902054610c27908490611d81565b1115610c465760405163524f409b60e01b815260040160405180910390fd5b6115b3610c538383611d81565b1115610c72576040516352df9fe560e01b815260040160405180910390fd5b6008546001600160a01b031633141580610c8d5750600e5481115b15610cbf5781600b54610ca09190611d99565b341015610cbf5760405162bfc92160e01b815260040160405180910390fd5b610cc93383611443565b3360009081526011602052604081208054849290610ce8908490611d81565b9091555050600e54610cfa8383611d81565b10158015610d085750600b54155b1561098257660c6f3b40b6c000600b555050565b336001600160a01b03831603610d455760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610dbc8484846110dc565b6001600160a01b0383163b15158015610dde5750610ddc8484848461145d565b155b15610dfc576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600a8054610e0f90611c0e565b80601f0160208091040260200160405190810160405280929190818152602001828054610e3b90611c0e565b8015610e885780601f10610e5d57610100808354040283529160200191610e88565b820191906000526020600020905b815481529060010190602001808311610e6b57829003601f168201915b505050505081565b6060610e9b82611047565b610f045760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084015b60405180910390fd5b6000610f0e611549565b90506000815111610f2e5760405180602001604052806000815250610f5c565b80610f3884611558565b600a604051602001610f4c93929190611db8565b6040516020818303038152906040525b9392505050565b610f6b610fed565b600a6109828282611c96565b610f7f610fed565b6001600160a01b038116610fe45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610efb565b610936816113f1565b6008546001600160a01b031633146109f85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610efb565b60008160011115801561105b575060005482105b8015610700575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006110e7826112ca565b9050836001600160a01b031681600001516001600160a01b03161461111e5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061113c575061113c8533610666565b8061115757503361114c846107b3565b6001600160a01b0316145b90508061117757604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661119e57604051633a954ecd60e21b815260040160405180910390fd5b6111aa60008487611080565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661127e57600054821461127e57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b604080516060810182526000808252602082018190529181019190915281806001111580156112fa575060005481105b156113d857600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906113d65780516001600160a01b03161561136d579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156113d1579392505050565b61136d565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6109828282604051806020016040528060008152506115ea565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611492903390899088908890600401611e58565b6020604051808303816000875af19250505080156114cd575060408051601f3d908101601f191682019092526114ca91810190611e95565b60015b61152b573d8080156114fb576040519150601f19603f3d011682016040523d82523d6000602084013e611500565b606091505b508051600003611523576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60606009805461073090611c0e565b60606000611565836115f7565b60010190506000816001600160401b0381111561158457611584611a1f565b6040519080825280601f01601f1916602001820160405280156115ae576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846115b857509392505050565b61087f83838360016116cf565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106116365772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611662576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061168057662386f26fc10000830492506010015b6305f5e1008310611698576305f5e100830492506008015b61271083106116ac57612710830492506004015b606483106116be576064830492506002015b600a83106107005760010192915050565b6000546001600160a01b0385166116f857604051622e076360e81b815260040160405180910390fd5b836000036117195760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b4290921691909102179055808085018380156117ca57506001600160a01b0387163b15155b15611852575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461181b600088848060010195508861145d565b611838576040516368d2bf6b60e11b815260040160405180910390fd5b8082036117d057826000541461184d57600080fd5b611897565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808203611853575b506000556112c3565b6001600160e01b03198116811461093657600080fd5b6000602082840312156118c857600080fd5b8135610f5c816118a0565b803580151581146118e357600080fd5b919050565b6000602082840312156118fa57600080fd5b610f5c826118d3565b60005b8381101561191e578181015183820152602001611906565b83811115610dfc5750506000910152565b60008151808452611947816020860160208601611903565b601f01601f19169290920160200192915050565b602081526000610f5c602083018461192f565b60006020828403121561198057600080fd5b5035919050565b80356001600160a01b03811681146118e357600080fd5b600080604083850312156119b157600080fd5b6119ba83611987565b946020939093013593505050565b6000806000606084860312156119dd57600080fd5b6119e684611987565b92506119f460208501611987565b9150604084013590509250925092565b600060208284031215611a1657600080fd5b610f5c82611987565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115611a4f57611a4f611a1f565b604051601f8501601f19908116603f01168101908282118183101715611a7757611a77611a1f565b81604052809350858152868686011115611a9057600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611abc57600080fd5b81356001600160401b03811115611ad257600080fd5b8201601f81018413611ae357600080fd5b61154184823560208401611a35565b6020808252825182820181905260009190848201906040850190845b81811015611b2a57835183529284019291840191600101611b0e565b50909695505050505050565b60008060408385031215611b4957600080fd5b611b5283611987565b9150611b60602084016118d3565b90509250929050565b60008060008060808587031215611b7f57600080fd5b611b8885611987565b9350611b9660208601611987565b92506040850135915060608501356001600160401b03811115611bb857600080fd5b8501601f81018713611bc957600080fd5b611bd887823560208401611a35565b91505092959194509250565b60008060408385031215611bf757600080fd5b611c0083611987565b9150611b6060208401611987565b600181811c90821680611c2257607f821691505b602082108103611c4257634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561087f57600081815260208120601f850160051c81016020861015611c6f5750805b601f850160051c820191505b81811015611c8e57828155600101611c7b565b505050505050565b81516001600160401b03811115611caf57611caf611a1f565b611cc381611cbd8454611c0e565b84611c48565b602080601f831160018114611cf85760008415611ce05750858301515b600019600386901b1c1916600185901b178555611c8e565b600085815260208120601f198616915b82811015611d2757888601518255948401946001909101908401611d08565b5085821015611d455787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115611d9457611d94611d6b565b500190565b6000816000190483118215151615611db357611db3611d6b565b500290565b600084516020611dcb8285838a01611903565b855191840191611dde8184848a01611903565b8554920191600090611def81611c0e565b60018281168015611e075760018114611e1c57611e48565b60ff1984168752821515830287019450611e48565b896000528560002060005b84811015611e4057815489820152908301908701611e27565b505082870194505b50929a9950505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611e8b9083018461192f565b9695505050505050565b600060208284031215611ea757600080fd5b8151610f5c816118a056fea26469706673582212208bf42f4efe87e1517c538eaceca31d2497f30e0071a99d542bc1b491c0d8244964736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _initBaseURI (string):
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
72043:4245:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54066:305;;;;;;;;;;-1:-1:-1;54066:305:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;54066:305:0;;;;;;;;76026:73;;;;;;;;;;-1:-1:-1;76026:73:0;;;;;:::i;:::-;;:::i;:::-;;57179:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;58682:204::-;;;;;;;;;;-1:-1:-1;58682:204:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2042:32:1;;;2024:51;;2012:2;1997:18;58682:204:0;1878:203:1;58245:371:0;;;;;;;;;;-1:-1:-1;58245:371:0;;;;;:::i;:::-;;:::i;72189:29::-;;;;;;;;;;;;;;;;;;;2669:25:1;;;2657:2;2642:18;72189:29:0;2523:177:1;72352:40:0;;;;;;;;;;;;;;;;53315:303;;;;;;;;;;-1:-1:-1;75239:1:0;53569:12;53359:7;53553:13;:28;-1:-1:-1;;53553:46:0;53315:303;;59547:170;;;;;;;;;;-1:-1:-1;59547:170:0;;;;;:::i;:::-;;:::i;75656:132::-;;;;;;;;;;-1:-1:-1;75656:132:0;;;;;:::i;:::-;;:::i;72399:30::-;;;;;;;;;;;;;;;;75504:146;;;;;;;;;;-1:-1:-1;75504:146:0;;;;;:::i;:::-;;:::i;72466:53::-;;;;;;;;;;-1:-1:-1;72466:53:0;;;;;:::i;:::-;;;;;;;;;;;;;;76107:176;;;:::i;59788:185::-;;;;;;;;;;-1:-1:-1;59788:185:0;;;;;:::i;:::-;;:::i;75270:80::-;;;;;;;;;;-1:-1:-1;75270:80:0;;;;;:::i;:::-;;:::i;75360:136::-;;;;;;;;;;-1:-1:-1;75360:136:0;;;;;:::i;:::-;;:::i;75794:98::-;;;;;;;;;;-1:-1:-1;75794:98:0;;;;;:::i;:::-;;:::i;72436:25::-;;;;;;;;;;-1:-1:-1;72436:25:0;;;;;;;;56987:125;;;;;;;;;;-1:-1:-1;56987:125:0;;;;;:::i;:::-;;:::i;54435:206::-;;;;;;;;;;-1:-1:-1;54435:206:0;;;;;:::i;:::-;;:::i;30652:103::-;;;;;;;;;;;;;:::i;73785:992::-;;;;;;;;;;-1:-1:-1;73785:992:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;73523:256::-;;;;;;;;;;-1:-1:-1;73523:256:0;;;;;:::i;:::-;;:::i;30004:87::-;;;;;;;;;;-1:-1:-1;30077:6:0;;-1:-1:-1;;;;;30077:6:0;30004:87;;72268:38;;;;;;;;;;;;;;;;57348:104;;;;;;;;;;;;;:::i;72789:728::-;;;;;;:::i;:::-;;:::i;58958:287::-;;;;;;;;;;-1:-1:-1;58958:287:0;;;;;:::i;:::-;;:::i;72311:36::-;;;;;;;;;;;;;;;;60044:369;;;;;;;;;;-1:-1:-1;60044:369:0;;;;;:::i;:::-;;:::i;72147:37::-;;;;;;;;;;;;;:::i;74783:356::-;;;;;;;;;;-1:-1:-1;74783:356:0;;;;;:::i;:::-;;:::i;72223:40::-;;;;;;;;;;;;72259:4;72223:40;;75898:122;;;;;;;;;;-1:-1:-1;75898:122:0;;;;;:::i;:::-;;:::i;59316:164::-;;;;;;;;;;-1:-1:-1;59316:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;59437:25:0;;;59413:4;59437:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;59316:164;30910:201;;;;;;;;;;-1:-1:-1;30910:201:0;;;;;:::i;:::-;;:::i;54066:305::-;54168:4;-1:-1:-1;;;;;;54205:40:0;;-1:-1:-1;;;54205:40:0;;:105;;-1:-1:-1;;;;;;;54262:48:0;;-1:-1:-1;;;54262:48:0;54205:105;:158;;;-1:-1:-1;;;;;;;;;;43842:40:0;;;54327:36;54185:178;54066:305;-1:-1:-1;;54066:305:0:o;76026:73::-;29890:13;:11;:13::i;:::-;76078:6:::1;:15:::0;;-1:-1:-1;;76078:15:0::1;::::0;::::1;;::::0;;;::::1;::::0;;76026:73::o;57179:100::-;57233:13;57266:5;57259:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57179:100;:::o;58682:204::-;58750:7;58775:16;58783:7;58775;:16::i;:::-;58770:64;;58800:34;;-1:-1:-1;;;58800:34:0;;;;;;;;;;;58770:64;-1:-1:-1;58854:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;58854:24:0;;58682:204::o;58245:371::-;58318:13;58334:24;58350:7;58334:15;:24::i;:::-;58318:40;;58379:5;-1:-1:-1;;;;;58373:11:0;:2;-1:-1:-1;;;;;58373:11:0;;58369:48;;58393:24;;-1:-1:-1;;;58393:24:0;;;;;;;;;;;58369:48;28635:10;-1:-1:-1;;;;;58434:21:0;;;;;;:63;;-1:-1:-1;58460:37:0;58477:5;28635:10;59316:164;:::i;58460:37::-;58459:38;58434:63;58430:138;;;58521:35;;-1:-1:-1;;;58521:35:0;;;;;;;;;;;58430:138;58580:28;58589:2;58593:7;58602:5;58580:8;:28::i;:::-;58307:309;58245:371;;:::o;59547:170::-;59681:28;59691:4;59697:2;59701:7;59681:9;:28::i;75656:132::-;29890:13;:11;:13::i;:::-;75739:18:::1;:43:::0;75656:132::o;75504:146::-;29890:13;:11;:13::i;:::-;75599:16:::1;:45:::0;75504:146::o;76107:176::-;29890:13;:11;:13::i;:::-;76160:12:::1;76186:7;30077:6:::0;;-1:-1:-1;;;;;30077:6:0;;30004:87;76186:7:::1;-1:-1:-1::0;;;;;76178:21:0::1;76207;76178:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76159:74;;;76245:7;76240:37;;76261:16;;-1:-1:-1::0;;;76261:16:0::1;;;;;;;;;;;76240:37;76152:131;76107:176::o:0;59788:185::-;59926:39;59943:4;59949:2;59953:7;59926:39;;;;;;;;;;;;:16;:39::i;75270:80::-;29890:13;:11;:13::i;:::-;75329:4:::1;:15:::0;75270:80::o;75360:136::-;29890:13;:11;:13::i;:::-;75447:18:::1;:43:::0;75360:136::o;75794:98::-;29890:13;:11;:13::i;:::-;75865:7:::1;:21;75875:11:::0;75865:7;:21:::1;:::i;:::-;;75794:98:::0;:::o;56987:125::-;57051:7;57078:21;57091:7;57078:12;:21::i;:::-;:26;;56987:125;-1:-1:-1;;56987:125:0:o;54435:206::-;54499:7;-1:-1:-1;;;;;54523:19:0;;54519:60;;54551:28;;-1:-1:-1;;;54551:28:0;;;;;;;;;;;54519:60;-1:-1:-1;;;;;;54605:19:0;;;;;:12;:19;;;;;:27;-1:-1:-1;;;;;54605:27:0;;54435:206::o;30652:103::-;29890:13;:11;:13::i;:::-;30717:30:::1;30744:1;30717:18;:30::i;:::-;30652:103::o:0;73785:992::-;73844:16;73868:21;73892:16;73902:5;73892:9;:16::i;:::-;73915:18;73936:13;;73868:40;;-1:-1:-1;73915:18:0;;73868:40;-1:-1:-1;;;;;74040:28:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;74040:28:0;-1:-1:-1;74016:52:0;-1:-1:-1;75239:1:0;74098:641;74136:10;74132:1;:14;74098:641;;;74168:31;74202:14;;;:11;:14;;;;;;;;;74168:48;;;;;;;;;-1:-1:-1;;;;;74168:48:0;;;;;-1:-1:-1;;;74168:48:0;;-1:-1:-1;;;;;74168:48:0;;;;;;;;-1:-1:-1;;;74168:48:0;;;;;;;;;;;;;74285:28;74281:103;;74354:14;;;-1:-1:-1;74281:103:0;74497:5;-1:-1:-1;;;;;74476:26:0;:17;-1:-1:-1;;;;;74476:26:0;;74472:90;;74545:1;74523:4;74528:13;;;;;;74523:19;;;;;;;;:::i;:::-;;;;;;:23;;;;;74472:90;74673:13;74658:11;:28;74654:74;;74707:5;;;74654:74;-1:-1:-1;74148:3:0;;74098:641;;;-1:-1:-1;74767:4:0;73785:992;-1:-1:-1;;;;;;73785:992:0:o;73523:256::-;29890:13;:11;:13::i;:::-;73585:14:::1;73602:13;75239:1:::0;53569:12;53359:7;53553:13;-1:-1:-1;;53553:28:0;;;:46;;53315:303;73602:13:::1;73585:30;;73641:1;73626:11;:16;73622:46;;73651:17;;-1:-1:-1::0;;;73651:17:0::1;;;;;;;;;;;73622:46;73702:9;::::0;73679:20:::1;73688:11:::0;73679:6;:20:::1;:::i;:::-;:32;73675:55;;;73721:9;;-1:-1:-1::0;;;73721:9:0::1;;;;;;;;;;;73675:55;73739:34;73749:10;73761:11;73739:9;:34::i;57348:104::-:0;57404:13;57437:7;57430:14;;;;;:::i;72789:728::-;72846:14;72863:13;75239:1;53569:12;53359:7;53553:13;-1:-1:-1;;53553:28:0;;;:46;;53315:303;72863:13;72887:6;;72846:30;;-1:-1:-1;72887:6:0;;72883:31;;;72902:12;;-1:-1:-1;;;72902:12:0;;;;;;;;;;;72883:31;72925:16;;;:52;;;72959:18;;72945:11;:32;72925:52;72921:82;;;72986:17;;-1:-1:-1;;;72986:17:0;;;;;;;;;;;72921:82;73061:16;;73033:10;73014:30;;;;:18;:30;;;;;;:44;;73047:11;;73014:44;:::i;:::-;:63;73010:93;;;73086:17;;-1:-1:-1;;;73086:17:0;;;;;;;;;;;73010:93;72259:4;73114:20;73123:11;73114:6;:20;:::i;:::-;:32;73110:54;;;73155:9;;-1:-1:-1;;;73155:9:0;;;;;;;;;;;73110:54;30077:6;;-1:-1:-1;;;;;30077:6:0;73177:10;:21;;;:52;;;73211:18;;73202:6;:27;73177:52;73173:132;;;73263:11;73256:4;;:18;;;;:::i;:::-;73244:9;:30;73240:57;;;73283:14;;-1:-1:-1;;;73283:14:0;;;;;;;;;;;73240:57;73317:34;73327:10;73339:11;73317:9;:34::i;:::-;73377:10;73358:30;;;;:18;:30;;;;;:45;;73392:11;;73358:30;:45;;73392:11;;73358:45;:::i;:::-;;;;-1:-1:-1;;73440:18:0;;73416:20;73425:11;73416:6;:20;:::i;:::-;:42;;:55;;;;-1:-1:-1;73462:4:0;;:9;73416:55;73412:98;;;73490:12;73483:4;:19;72839:678;72789:728;:::o;58958:287::-;28635:10;-1:-1:-1;;;;;59057:24:0;;;59053:54;;59090:17;;-1:-1:-1;;;59090:17:0;;;;;;;;;;;59053:54;28635:10;59120:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;59120:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;59120:53:0;;;;;;;;;;59189:48;;540:41:1;;;59120:42:0;;28635:10;59189:48;;513:18:1;59189:48:0;;;;;;;58958:287;;:::o;60044:369::-;60211:28;60221:4;60227:2;60231:7;60211:9;:28::i;:::-;-1:-1:-1;;;;;60254:13:0;;32997:19;:23;;60254:76;;;;;60274:56;60305:4;60311:2;60315:7;60324:5;60274:30;:56::i;:::-;60273:57;60254:76;60250:156;;;60354:40;;-1:-1:-1;;;60354:40:0;;;;;;;;;;;60250:156;60044:369;;;;:::o;72147:37::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;74783:356::-;74856:13;74886:16;74894:7;74886;:16::i;:::-;74878:76;;;;-1:-1:-1;;;74878:76:0;;9858:2:1;74878:76:0;;;9840:21:1;9897:2;9877:18;;;9870:30;9936:34;9916:18;;;9909:62;-1:-1:-1;;;9987:18:1;;;9980:45;10042:19;;74878:76:0;;;;;;;;;74963:28;74994:10;:8;:10::i;:::-;74963:41;;75049:1;75024:14;75018:28;:32;:115;;;;;;;;;;;;;;;;;75077:14;75093:18;:7;:16;:18::i;:::-;75113:13;75060:67;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;75018:115;75011:122;74783:356;-1:-1:-1;;;74783:356:0:o;75898:122::-;29890:13;:11;:13::i;:::-;75981::::1;:33;75997:17:::0;75981:13;:33:::1;:::i;30910:201::-:0;29890:13;:11;:13::i;:::-;-1:-1:-1;;;;;30999:22:0;::::1;30991:73;;;::::0;-1:-1:-1;;;30991:73:0;;11509:2:1;30991:73:0::1;::::0;::::1;11491:21:1::0;11548:2;11528:18;;;11521:30;11587:34;11567:18;;;11560:62;-1:-1:-1;;;11638:18:1;;;11631:36;11684:19;;30991:73:0::1;11307:402:1::0;30991:73:0::1;31075:28;31094:8;31075:18;:28::i;30169:132::-:0;30077:6;;-1:-1:-1;;;;;30077:6:0;28635:10;30233:23;30225:68;;;;-1:-1:-1;;;30225:68:0;;11916:2:1;30225:68:0;;;11898:21:1;;;11935:18;;;11928:30;11994:34;11974:18;;;11967:62;12046:18;;30225:68:0;11714:356:1;60668:187:0;60725:4;60768:7;75239:1;60749:26;;:53;;;;;60789:13;;60779:7;:23;60749:53;:98;;;;-1:-1:-1;;60820:20:0;;;;:11;:20;;;;;:27;-1:-1:-1;;;60820:27:0;;;;60819:28;;60668:187::o;68838:196::-;68953:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;68953:29:0;-1:-1:-1;;;;;68953:29:0;;;;;;;;;68998:28;;68953:24;;68998:28;;;;;;;68838:196;;;:::o;63781:2130::-;63896:35;63934:21;63947:7;63934:12;:21::i;:::-;63896:59;;63994:4;-1:-1:-1;;;;;63972:26:0;:13;:18;;;-1:-1:-1;;;;;63972:26:0;;63968:67;;64007:28;;-1:-1:-1;;;64007:28:0;;;;;;;;;;;63968:67;64048:22;28635:10;-1:-1:-1;;;;;64074:20:0;;;;:73;;-1:-1:-1;64111:36:0;64128:4;28635:10;59316:164;:::i;64111:36::-;64074:126;;;-1:-1:-1;28635:10:0;64164:20;64176:7;64164:11;:20::i;:::-;-1:-1:-1;;;;;64164:36:0;;64074:126;64048:153;;64219:17;64214:66;;64245:35;;-1:-1:-1;;;64245:35:0;;;;;;;;;;;64214:66;-1:-1:-1;;;;;64295:16:0;;64291:52;;64320:23;;-1:-1:-1;;;64320:23:0;;;;;;;;;;;64291:52;64464:35;64481:1;64485:7;64494:4;64464:8;:35::i;:::-;-1:-1:-1;;;;;64795:18:0;;;;;;;:12;:18;;;;;;;;:31;;-1:-1:-1;;64795:31:0;;;-1:-1:-1;;;;;64795:31:0;;;-1:-1:-1;;64795:31:0;;;;;;;64841:16;;;;;;;;;:29;;;;;;;;-1:-1:-1;64841:29:0;;;;;;;;;;;64921:20;;;:11;:20;;;;;;64956:18;;-1:-1:-1;;;;;;64989:49:0;;;;-1:-1:-1;;;65022:15:0;64989:49;;;;;;;;;;65312:11;;65372:24;;;;;65415:13;;64921:20;;65372:24;;65415:13;65411:384;;65625:13;;65610:11;:28;65606:174;;65663:20;;65732:28;;;;-1:-1:-1;;;;;65706:54:0;-1:-1:-1;;;65706:54:0;-1:-1:-1;;;;;;65706:54:0;;;-1:-1:-1;;;;;65663:20:0;;65706:54;;;;65606:174;64770:1036;;;65842:7;65838:2;-1:-1:-1;;;;;65823:27:0;65832:4;-1:-1:-1;;;;;65823:27:0;;;;;;;;;;;65861:42;63885:2026;;63781:2130;;;:::o;55816:1109::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;55927:7:0;;75239:1;55976:23;;:47;;;;;56010:13;;56003:4;:20;55976:47;55972:886;;;56044:31;56078:17;;;:11;:17;;;;;;;;;56044:51;;;;;;;;;-1:-1:-1;;;;;56044:51:0;;;;-1:-1:-1;;;56044:51:0;;-1:-1:-1;;;;;56044:51:0;;;;;;;;-1:-1:-1;;;56044:51:0;;;;;;;;;;;;;;56114:729;;56164:14;;-1:-1:-1;;;;;56164:28:0;;56160:101;;56228:9;55816:1109;-1:-1:-1;;;55816:1109:0:o;56160:101::-;-1:-1:-1;;;56603:6:0;56648:17;;;;:11;:17;;;;;;;;;56636:29;;;;;;;;;-1:-1:-1;;;;;56636:29:0;;;;;-1:-1:-1;;;56636:29:0;;-1:-1:-1;;;;;56636:29:0;;;;;;;;-1:-1:-1;;;56636:29:0;;;;;;;;;;;;;56696:28;56692:109;;56764:9;55816:1109;-1:-1:-1;;;55816:1109:0:o;56692:109::-;56563:261;;;56025:833;55972:886;56886:31;;-1:-1:-1;;;56886:31:0;;;;;;;;;;;31271:191;31364:6;;;-1:-1:-1;;;;;31381:17:0;;;-1:-1:-1;;;;;;31381:17:0;;;;;;;31414:40;;31364:6;;;31381:17;31364:6;;31414:40;;31345:16;;31414:40;31334:128;31271:191;:::o;60863:104::-;60932:27;60942:2;60946:8;60932:27;;;;;;;;;;;;:9;:27::i;69526:667::-;69710:72;;-1:-1:-1;;;69710:72:0;;69689:4;;-1:-1:-1;;;;;69710:36:0;;;;;:72;;28635:10;;69761:4;;69767:7;;69776:5;;69710:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;69710:72:0;;;;;;;;-1:-1:-1;;69710:72:0;;;;;;;;;;;;:::i;:::-;;;69706:480;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69944:6;:13;69961:1;69944:18;69940:235;;69990:40;;-1:-1:-1;;;69990:40:0;;;;;;;;;;;69940:235;70133:6;70127:13;70118:6;70114:2;70110:15;70103:38;69706:480;-1:-1:-1;;;;;;69829:55:0;-1:-1:-1;;;69829:55:0;;-1:-1:-1;69706:480:0;69526:667;;;;;;:::o;72666:102::-;72726:13;72755:7;72748:14;;;;;:::i;13338:716::-;13394:13;13445:14;13462:17;13473:5;13462:10;:17::i;:::-;13482:1;13462:21;13445:38;;13498:20;13532:6;-1:-1:-1;;;;;13521:18:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;13521:18:0;-1:-1:-1;13498:41:0;-1:-1:-1;13663:28:0;;;13679:2;13663:28;13720:288;-1:-1:-1;;13752:5:0;-1:-1:-1;;;13889:2:0;13878:14;;13873:30;13752:5;13860:44;13950:2;13941:11;;;-1:-1:-1;13971:21:0;13720:288;13971:21;-1:-1:-1;14029:6:0;13338:716;-1:-1:-1;;;13338:716:0:o;61330:163::-;61453:32;61459:2;61463:8;61473:5;61480:4;61453:5;:32::i;10204:922::-;10257:7;;-1:-1:-1;;;10335:15:0;;10331:102;;-1:-1:-1;;;10371:15:0;;;-1:-1:-1;10415:2:0;10405:12;10331:102;10460:6;10451:5;:15;10447:102;;10496:6;10487:15;;;-1:-1:-1;10531:2:0;10521:12;10447:102;10576:6;10567:5;:15;10563:102;;10612:6;10603:15;;;-1:-1:-1;10647:2:0;10637:12;10563:102;10692:5;10683;:14;10679:99;;10727:5;10718:14;;;-1:-1:-1;10761:1:0;10751:11;10679:99;10805:5;10796;:14;10792:99;;10840:5;10831:14;;;-1:-1:-1;10874:1:0;10864:11;10792:99;10918:5;10909;:14;10905:99;;10953:5;10944:14;;;-1:-1:-1;10987:1:0;10977:11;10905:99;11031:5;11022;:14;11018:66;;11067:1;11057:11;11112:6;10204:922;-1:-1:-1;;10204:922:0:o;61752:1775::-;61891:20;61914:13;-1:-1:-1;;;;;61942:16:0;;61938:48;;61967:19;;-1:-1:-1;;;61967:19:0;;;;;;;;;;;61938:48;62001:8;62013:1;62001:13;61997:44;;62023:18;;-1:-1:-1;;;62023:18:0;;;;;;;;;;;61997:44;-1:-1:-1;;;;;62392:16:0;;;;;;:12;:16;;;;;;;;:44;;-1:-1:-1;;62451:49:0;;-1:-1:-1;;;;;62392:44:0;;;;;;;62451:49;;;;-1:-1:-1;;62392:44:0;;;;;;62451:49;;;;;;;;;;;;;;;;62517:25;;;:11;:25;;;;;;:35;;-1:-1:-1;;;;;;62567:66:0;;;;-1:-1:-1;;;62617:15:0;62567:66;;;;;;;;;;62517:25;62714:23;;;62758:4;:23;;;;-1:-1:-1;;;;;;62766:13:0;;32997:19;:23;;62766:15;62754:641;;;62802:314;62833:38;;62858:12;;-1:-1:-1;;;;;62833:38:0;;;62850:1;;62833:38;;62850:1;;62833:38;62899:69;62938:1;62942:2;62946:14;;;;;;62962:5;62899:30;:69::i;:::-;62894:174;;63004:40;;-1:-1:-1;;;63004:40:0;;;;;;;;;;;62894:174;63111:3;63095:12;:19;62802:314;;63197:12;63180:13;;:29;63176:43;;63211:8;;;63176:43;62754:641;;;63260:120;63291:40;;63316:14;;;;;-1:-1:-1;;;;;63291:40:0;;;63308:1;;63291:40;;63308:1;;63291:40;63375:3;63359:12;:19;63260:120;;62754:641;-1:-1:-1;63409:13:0;:28;63459:60;60044:369;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:160::-;657:20;;713:13;;706:21;696:32;;686:60;;742:1;739;732:12;686:60;592:160;;;:::o;757:180::-;813:6;866:2;854:9;845:7;841:23;837:32;834:52;;;882:1;879;872:12;834:52;905:26;921:9;905:26;:::i;942:258::-;1014:1;1024:113;1038:6;1035:1;1032:13;1024:113;;;1114:11;;;1108:18;1095:11;;;1088:39;1060:2;1053:10;1024:113;;;1155:6;1152:1;1149:13;1146:48;;;-1:-1:-1;;1190:1:1;1172:16;;1165:27;942:258::o;1205:::-;1247:3;1285:5;1279:12;1312:6;1307:3;1300:19;1328:63;1384:6;1377:4;1372:3;1368:14;1361:4;1354:5;1350:16;1328:63;:::i;:::-;1445:2;1424:15;-1:-1:-1;;1420:29:1;1411:39;;;;1452:4;1407:50;;1205:258;-1:-1:-1;;1205:258:1:o;1468:220::-;1617:2;1606:9;1599:21;1580:4;1637:45;1678:2;1667:9;1663:18;1655:6;1637:45;:::i;1693:180::-;1752:6;1805:2;1793:9;1784:7;1780:23;1776:32;1773:52;;;1821:1;1818;1811:12;1773:52;-1:-1:-1;1844:23:1;;1693:180;-1:-1:-1;1693:180:1:o;2086:173::-;2154:20;;-1:-1:-1;;;;;2203:31:1;;2193:42;;2183:70;;2249:1;2246;2239:12;2264:254;2332:6;2340;2393:2;2381:9;2372:7;2368:23;2364:32;2361:52;;;2409:1;2406;2399:12;2361:52;2432:29;2451:9;2432:29;:::i;:::-;2422:39;2508:2;2493:18;;;;2480:32;;-1:-1:-1;;;2264:254:1:o;2705:328::-;2782:6;2790;2798;2851:2;2839:9;2830:7;2826:23;2822:32;2819:52;;;2867:1;2864;2857:12;2819:52;2890:29;2909:9;2890:29;:::i;:::-;2880:39;;2938:38;2972:2;2961:9;2957:18;2938:38;:::i;:::-;2928:48;;3023:2;3012:9;3008:18;2995:32;2985:42;;2705:328;;;;;:::o;3038:186::-;3097:6;3150:2;3138:9;3129:7;3125:23;3121:32;3118:52;;;3166:1;3163;3156:12;3118:52;3189:29;3208:9;3189:29;:::i;3229:127::-;3290:10;3285:3;3281:20;3278:1;3271:31;3321:4;3318:1;3311:15;3345:4;3342:1;3335:15;3361:632;3426:5;-1:-1:-1;;;;;3497:2:1;3489:6;3486:14;3483:40;;;3503:18;;:::i;:::-;3578:2;3572:9;3546:2;3632:15;;-1:-1:-1;;3628:24:1;;;3654:2;3624:33;3620:42;3608:55;;;3678:18;;;3698:22;;;3675:46;3672:72;;;3724:18;;:::i;:::-;3764:10;3760:2;3753:22;3793:6;3784:15;;3823:6;3815;3808:22;3863:3;3854:6;3849:3;3845:16;3842:25;3839:45;;;3880:1;3877;3870:12;3839:45;3930:6;3925:3;3918:4;3910:6;3906:17;3893:44;3985:1;3978:4;3969:6;3961;3957:19;3953:30;3946:41;;;;3361:632;;;;;:::o;3998:451::-;4067:6;4120:2;4108:9;4099:7;4095:23;4091:32;4088:52;;;4136:1;4133;4126:12;4088:52;4176:9;4163:23;-1:-1:-1;;;;;4201:6:1;4198:30;4195:50;;;4241:1;4238;4231:12;4195:50;4264:22;;4317:4;4309:13;;4305:27;-1:-1:-1;4295:55:1;;4346:1;4343;4336:12;4295:55;4369:74;4435:7;4430:2;4417:16;4412:2;4408;4404:11;4369:74;:::i;4454:632::-;4625:2;4677:21;;;4747:13;;4650:18;;;4769:22;;;4596:4;;4625:2;4848:15;;;;4822:2;4807:18;;;4596:4;4891:169;4905:6;4902:1;4899:13;4891:169;;;4966:13;;4954:26;;5035:15;;;;5000:12;;;;4927:1;4920:9;4891:169;;;-1:-1:-1;5077:3:1;;4454:632;-1:-1:-1;;;;;;4454:632:1:o;5091:254::-;5156:6;5164;5217:2;5205:9;5196:7;5192:23;5188:32;5185:52;;;5233:1;5230;5223:12;5185:52;5256:29;5275:9;5256:29;:::i;:::-;5246:39;;5304:35;5335:2;5324:9;5320:18;5304:35;:::i;:::-;5294:45;;5091:254;;;;;:::o;5350:667::-;5445:6;5453;5461;5469;5522:3;5510:9;5501:7;5497:23;5493:33;5490:53;;;5539:1;5536;5529:12;5490:53;5562:29;5581:9;5562:29;:::i;:::-;5552:39;;5610:38;5644:2;5633:9;5629:18;5610:38;:::i;:::-;5600:48;;5695:2;5684:9;5680:18;5667:32;5657:42;;5750:2;5739:9;5735:18;5722:32;-1:-1:-1;;;;;5769:6:1;5766:30;5763:50;;;5809:1;5806;5799:12;5763:50;5832:22;;5885:4;5877:13;;5873:27;-1:-1:-1;5863:55:1;;5914:1;5911;5904:12;5863:55;5937:74;6003:7;5998:2;5985:16;5980:2;5976;5972:11;5937:74;:::i;:::-;5927:84;;;5350:667;;;;;;;:::o;6022:260::-;6090:6;6098;6151:2;6139:9;6130:7;6126:23;6122:32;6119:52;;;6167:1;6164;6157:12;6119:52;6190:29;6209:9;6190:29;:::i;:::-;6180:39;;6238:38;6272:2;6261:9;6257:18;6238:38;:::i;6287:380::-;6366:1;6362:12;;;;6409;;;6430:61;;6484:4;6476:6;6472:17;6462:27;;6430:61;6537:2;6529:6;6526:14;6506:18;6503:38;6500:161;;6583:10;6578:3;6574:20;6571:1;6564:31;6618:4;6615:1;6608:15;6646:4;6643:1;6636:15;6500:161;;6287:380;;;:::o;7008:545::-;7110:2;7105:3;7102:11;7099:448;;;7146:1;7171:5;7167:2;7160:17;7216:4;7212:2;7202:19;7286:2;7274:10;7270:19;7267:1;7263:27;7257:4;7253:38;7322:4;7310:10;7307:20;7304:47;;;-1:-1:-1;7345:4:1;7304:47;7400:2;7395:3;7391:12;7388:1;7384:20;7378:4;7374:31;7364:41;;7455:82;7473:2;7466:5;7463:13;7455:82;;;7518:17;;;7499:1;7488:13;7455:82;;;7459:3;;;7008:545;;;:::o;7729:1352::-;7855:3;7849:10;-1:-1:-1;;;;;7874:6:1;7871:30;7868:56;;;7904:18;;:::i;:::-;7933:97;8023:6;7983:38;8015:4;8009:11;7983:38;:::i;:::-;7977:4;7933:97;:::i;:::-;8085:4;;8149:2;8138:14;;8166:1;8161:663;;;;8868:1;8885:6;8882:89;;;-1:-1:-1;8937:19:1;;;8931:26;8882:89;-1:-1:-1;;7686:1:1;7682:11;;;7678:24;7674:29;7664:40;7710:1;7706:11;;;7661:57;8984:81;;8131:944;;8161:663;6955:1;6948:14;;;6992:4;6979:18;;-1:-1:-1;;8197:20:1;;;8315:236;8329:7;8326:1;8323:14;8315:236;;;8418:19;;;8412:26;8397:42;;8510:27;;;;8478:1;8466:14;;;;8345:19;;8315:236;;;8319:3;8579:6;8570:7;8567:19;8564:201;;;8640:19;;;8634:26;-1:-1:-1;;8723:1:1;8719:14;;;8735:3;8715:24;8711:37;8707:42;8692:58;8677:74;;8564:201;-1:-1:-1;;;;;8811:1:1;8795:14;;;8791:22;8778:36;;-1:-1:-1;7729:1352:1:o;9086:127::-;9147:10;9142:3;9138:20;9135:1;9128:31;9178:4;9175:1;9168:15;9202:4;9199:1;9192:15;9218:127;9279:10;9274:3;9270:20;9267:1;9260:31;9310:4;9307:1;9300:15;9334:4;9331:1;9324:15;9350:128;9390:3;9421:1;9417:6;9414:1;9411:13;9408:39;;;9427:18;;:::i;:::-;-1:-1:-1;9463:9:1;;9350:128::o;9483:168::-;9523:7;9589:1;9585;9581:6;9577:14;9574:1;9571:21;9566:1;9559:9;9552:17;9548:45;9545:71;;;9596:18;;:::i;:::-;-1:-1:-1;9636:9:1;;9483:168::o;10072:1230::-;10296:3;10334:6;10328:13;10360:4;10373:51;10417:6;10412:3;10407:2;10399:6;10395:15;10373:51;:::i;:::-;10487:13;;10446:16;;;;10509:55;10487:13;10446:16;10531:15;;;10509:55;:::i;:::-;10653:13;;10586:20;;;10626:1;;10691:36;10653:13;10691:36;:::i;:::-;10746:1;10763:18;;;10790:141;;;;10945:1;10940:337;;;;10756:521;;10790:141;-1:-1:-1;;10825:24:1;;10811:39;;10902:16;;10895:24;10881:39;;10870:51;;;-1:-1:-1;10790:141:1;;10940:337;10971:6;10968:1;10961:17;11019:2;11016:1;11006:16;11044:1;11058:169;11072:8;11069:1;11066:15;11058:169;;;11154:14;;11139:13;;;11132:37;11197:16;;;;11089:10;;11058:169;;;11062:3;;11258:8;11251:5;11247:20;11240:27;;10756:521;-1:-1:-1;11293:3:1;;10072:1230;-1:-1:-1;;;;;;;;;;10072:1230:1:o;12075:489::-;-1:-1:-1;;;;;12344:15:1;;;12326:34;;12396:15;;12391:2;12376:18;;12369:43;12443:2;12428:18;;12421:34;;;12491:3;12486:2;12471:18;;12464:31;;;12269:4;;12512:46;;12538:19;;12530:6;12512:46;:::i;:::-;12504:54;12075:489;-1:-1:-1;;;;;;12075:489:1:o;12569:249::-;12638:6;12691:2;12679:9;12670:7;12666:23;12662:32;12659:52;;;12707:1;12704;12697:12;12659:52;12739:9;12733:16;12758:30;12782:5;12758:30;:::i
Swarm Source
ipfs://8bf42f4efe87e1517c538eaceca31d2497f30e0071a99d542bc1b491c0d82449
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.