ERC-721
Overview
Max Total Supply
2,555 TRMP
Holders
723
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
4 TRMPLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Trumpepen
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-04-04 */ // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/math/SignedMath.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/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) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/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 `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, 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); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/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. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: https://github.com/chiru-labs/ERC721A/blob/main/contracts/IERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File: https://github.com/chiru-labs/ERC721A/blob/main/contracts/ERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) _revert(BalanceQueryForZeroAddress.selector); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) _revert(URIQueryForNonexistentToken.selector); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Returns whether the ownership slot at `index` is initialized. * An uninitialized slot does not necessarily mean that the slot has no owner. */ function _ownershipIsInitialized(uint256 index) internal view virtual returns (bool) { return _packedOwnerships[index] != 0; } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) { if (_startTokenId() <= tokenId) { packed = _packedOwnerships[tokenId]; // If the data at the starting slot does not exist, start the scan. if (packed == 0) { if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector); // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `tokenId` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. for (;;) { unchecked { packed = _packedOwnerships[--tokenId]; } if (packed == 0) continue; if (packed & _BITMASK_BURNED == 0) return packed; // Otherwise, the token is burned, and we must revert. // This handles the case of batch burned tokens, where only the burned bit // of the starting slot is set, and remaining slots are left uninitialized. _revert(OwnerQueryForNonexistentToken.selector); } } // Otherwise, the data exists and we can skip the scan. // This is possible because we have already achieved the target condition. // This saves 2143 gas on transfers of initialized tokens. // If the token is not burned, return `packed`. Otherwise, revert. if (packed & _BITMASK_BURNED == 0) return packed; } _revert(OwnerQueryForNonexistentToken.selector); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. See {ERC721A-_approve}. * * Requirements: * * - The caller must own the token or be an approved operator. */ function approve(address to, uint256 tokenId) public payable virtual override { _approve(to, tokenId, true); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) _revert(ApprovalQueryForNonexistentToken.selector); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool result) { if (_startTokenId() <= tokenId) { if (tokenId < _currentIndex) { uint256 packed; while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId; result = packed & _BITMASK_BURNED == 0; } } } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS)); if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; assembly { // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. from, // `from`. toMasked, // `to`. tokenId // `tokenId`. ) } if (toMasked == 0) _revert(TransferToZeroAddress.selector); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { _revert(TransferToNonERC721ReceiverImplementer.selector); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { _revert(TransferToNonERC721ReceiverImplementer.selector); } assembly { revert(add(32, reason), mload(reason)) } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) _revert(MintZeroQuantity.selector); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); uint256 end = startTokenId + quantity; uint256 tokenId = startTokenId; do { assembly { // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. tokenId // `tokenId`. ) } // The `!=` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. } while (++tokenId != end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) _revert(MintToZeroAddress.selector); if (quantity == 0) _revert(MintZeroQuantity.selector); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { _revert(TransferToNonERC721ReceiverImplementer.selector); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) _revert(bytes4(0)); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Equivalent to `_approve(to, tokenId, false)`. */ function _approve(address to, uint256 tokenId) internal virtual { _approve(to, tokenId, false); } /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - `tokenId` must exist. * * Emits an {Approval} event. */ function _approve( address to, uint256 tokenId, bool approvalCheck ) internal virtual { address owner = ownerOf(tokenId); if (approvalCheck && _msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { _revert(ApprovalCallerNotOwnerNorApproved.selector); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) _revert(OwnershipNotInitializedForExtraData.selector); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } /** * @dev For more efficient reverts. */ function _revert(bytes4 errorSelector) internal pure { assembly { mstore(0x00, errorSelector) revert(0x00, 0x04) } } } // File: Trumpepen.sol pragma solidity ^0.8.17; contract Trumpepen is ERC721A, Ownable { using Strings for uint256; uint256 public maxSupply = 2555; uint256 public maxFreeAmount = 450; uint256 public maxFreePerWallet = 2; uint256 public price = 0.0025 ether; uint256 public maxPerTx = 20; uint256 public maxPerWallet = 40; bool public mintEnabled = false; string public baseURI; constructor( string memory _name, string memory _symbol, string memory _initBaseURI ) ERC721A(_name,_symbol) { setBaseURI(_initBaseURI); } function MAGAMint(uint256 _amountPerAddress, address[] calldata addresses) external onlyOwner { uint256 totalSupply = uint256(totalSupply()); uint totalAmount = _amountPerAddress * addresses.length; require(totalSupply + totalAmount <= maxSupply, "Exceeds max supply."); for (uint256 i = 0; i < addresses.length; i++) { _safeMint(addresses[i], _amountPerAddress); } delete _amountPerAddress; delete totalSupply; } function publicMint(uint256 quantity) external payable { require(mintEnabled, "Minting is not live yet."); require(totalSupply() + quantity < maxSupply + 1, "No more"); uint256 cost = price; uint256 _maxPerWallet = maxPerWallet; if ( totalSupply() < maxFreeAmount && _numberMinted(msg.sender) == 0 && quantity <= maxFreePerWallet ) { cost = 0; _maxPerWallet = maxFreePerWallet; } require( _numberMinted(msg.sender) + quantity <= _maxPerWallet, "Max per wallet" ); uint256 needPayCount = quantity; if (_numberMinted(msg.sender) == 0) { needPayCount = quantity - 1; } require( msg.value >= needPayCount * cost, "Please send the exact amount." ); _safeMint(msg.sender, quantity); } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function tokenURI( uint256 tokenId ) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); return string(abi.encodePacked(baseURI, tokenId.toString(), ".json")); } function flipSale() external onlyOwner { mintEnabled = !mintEnabled; } function setBaseURI(string memory uri) public onlyOwner { baseURI = uri; } function setPrice(uint256 _newPrice) external onlyOwner { price = _newPrice; } function setMaxFreeAmount(uint256 _amount) external onlyOwner { maxFreeAmount = _amount; } function setMaxFreePerWallet(uint256 _amount) external onlyOwner { maxFreePerWallet = _amount; } function withdraw() external onlyOwner { (bool success, ) = payable(msg.sender).call{ value: address(this).balance }(""); require(success, "Transfer failed."); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_initBaseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"uint256","name":"_amountPerAddress","type":"uint256"},{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"MAGAMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxFreeAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxFreePerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setMaxFreeAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setMaxFreePerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","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":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526109fb6009556101c2600a556002600b556608e1bc9bf04000600c556014600d556028600e55600f805460ff191690553480156200004157600080fd5b5060405162001fb438038062001fb483398101604081905262000064916200023d565b828260026200007483826200035d565b5060036200008382826200035d565b505060008055506200009533620000a9565b620000a081620000fb565b50505062000429565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200010562000117565b60106200011382826200035d565b5050565b6008546001600160a01b03163314620001765760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001a057600080fd5b81516001600160401b0380821115620001bd57620001bd62000178565b604051601f8301601f19908116603f01168101908282118183101715620001e857620001e862000178565b816040528381526020925086838588010111156200020557600080fd5b600091505b838210156200022957858201830151818301840152908201906200020a565b600093810190920192909252949350505050565b6000806000606084860312156200025357600080fd5b83516001600160401b03808211156200026b57600080fd5b62000279878388016200018e565b945060208601519150808211156200029057600080fd5b6200029e878388016200018e565b93506040860151915080821115620002b557600080fd5b50620002c4868287016200018e565b9150509250925092565b600181811c90821680620002e357607f821691505b6020821081036200030457634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200035857600081815260208120601f850160051c81016020861015620003335750805b601f850160051c820191505b8181101562000354578281556001016200033f565b5050505b505050565b81516001600160401b0381111562000379576200037962000178565b62000391816200038a8454620002ce565b846200030a565b602080601f831160018114620003c95760008415620003b05750858301515b600019600386901b1c1916600185901b17855562000354565b600085815260208120601f198616915b82811015620003fa57888601518255948401946001909101908401620003d9565b5085821015620004195787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611b7b80620004396000396000f3fe6080604052600436106101ee5760003560e01c806370a082311161010d578063a7027357116100a0578063d5abeb011161006f578063d5abeb0114610509578063e985e9c51461051f578063f2fde38b14610568578063f892c6e214610588578063f968adbe1461059e57600080fd5b8063a7027357146104a6578063b88d4fde146104bc578063c87b56dd146104cf578063d1239730146104ef57600080fd5b806391b7f5ed116100dc57806391b7f5ed1461043b57806395d89b411461045b578063a035b1fe14610470578063a22cb4651461048657600080fd5b806370a08231146103d3578063715018a6146103f35780637ba5e621146104085780638da5cb5b1461041d57600080fd5b80632db115441161018557806355f804b31161015457806355f804b31461035e5780636352211e1461037e5780636c0360eb1461039e5780636d7c4a4b146103b357600080fd5b80632db115441461030d5780633ccfd60b1461032057806342842e0e14610335578063453c23101461034857600080fd5b80630c23bb3f116101c15780630c23bb3f1461029757806317c70c03146102b757806318160ddd146102d757806323b872dd146102fa57600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b314610282575b600080fd5b3480156101ff57600080fd5b5061021361020e366004611505565b6105b4565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d610606565b60405161021f9190611579565b34801561025657600080fd5b5061026a61026536600461158c565b610698565b6040516001600160a01b03909116815260200161021f565b6102956102903660046115bc565b6106d3565b005b3480156102a357600080fd5b506102956102b236600461158c565b6106e3565b3480156102c357600080fd5b506102956102d23660046115e6565b6106f0565b3480156102e357600080fd5b50600154600054035b60405190815260200161021f565b610295610308366004611665565b6107c3565b61029561031b36600461158c565b610945565b34801561032c57600080fd5b50610295610b4e565b610295610343366004611665565b610be4565b34801561035457600080fd5b506102ec600e5481565b34801561036a57600080fd5b5061029561037936600461172d565b610c04565b34801561038a57600080fd5b5061026a61039936600461158c565b610c18565b3480156103aa57600080fd5b5061023d610c23565b3480156103bf57600080fd5b506102956103ce36600461158c565b610cb1565b3480156103df57600080fd5b506102ec6103ee366004611776565b610cbe565b3480156103ff57600080fd5b50610295610d04565b34801561041457600080fd5b50610295610d18565b34801561042957600080fd5b506008546001600160a01b031661026a565b34801561044757600080fd5b5061029561045636600461158c565b610d34565b34801561046757600080fd5b5061023d610d41565b34801561047c57600080fd5b506102ec600c5481565b34801561049257600080fd5b506102956104a1366004611791565b610d50565b3480156104b257600080fd5b506102ec600b5481565b6102956104ca3660046117cd565b610dbc565b3480156104db57600080fd5b5061023d6104ea36600461158c565b610df7565b3480156104fb57600080fd5b50600f546102139060ff1681565b34801561051557600080fd5b506102ec60095481565b34801561052b57600080fd5b5061021361053a366004611849565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561057457600080fd5b50610295610583366004611776565b610e98565b34801561059457600080fd5b506102ec600a5481565b3480156105aa57600080fd5b506102ec600d5481565b60006301ffc9a760e01b6001600160e01b0319831614806105e557506380ac58cd60e01b6001600160e01b03198316145b806106005750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546106159061187c565b80601f01602080910402602001604051908101604052809291908181526020018280546106419061187c565b801561068e5780601f106106635761010080835404028352916020019161068e565b820191906000526020600020905b81548152906001019060200180831161067157829003601f168201915b5050505050905090565b60006106a382610f0e565b6106b7576106b76333d1c03960e21b610f53565b506000908152600660205260409020546001600160a01b031690565b6106df82826001610f5d565b5050565b6106eb61101d565b600a55565b6106f861101d565b60006107076001546000540390565b9050600061071583866118cc565b60095490915061072582846118e3565b111561076e5760405162461bcd60e51b815260206004820152601360248201527222bc31b2b2b2399036b0bc1039bab838363c9760691b60448201526064015b60405180910390fd5b60005b838110156107bb576107a985858381811061078e5761078e6118f6565b90506020020160208101906107a39190611776565b87611077565b806107b38161190c565b915050610771565b505050505050565b60006107ce82611091565b6001600160a01b0394851694909150811684146107f4576107f462a1148160e81b610f53565b60008281526006602052604090208054338082146001600160a01b03881690911417610855576001600160a01b038616600090815260076020908152604080832033845290915290205460ff1661085557610855632ce44b5f60e11b610f53565b801561086057600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036108f2576001840160008181526004602052604081205490036108f05760005481146108f05760008181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a48060000361093c5761093c633a954ecd60e21b610f53565b50505050505050565b600f5460ff166109975760405162461bcd60e51b815260206004820152601860248201527f4d696e74696e67206973206e6f74206c697665207965742e00000000000000006044820152606401610765565b6009546109a59060016118e3565b816109b36001546000540390565b6109bd91906118e3565b106109f45760405162461bcd60e51b81526020600482015260076024820152664e6f206d6f726560c81b6044820152606401610765565b600c54600e54600a5460015460005403108015610a2c575033600090815260056020526040908190205467ffffffffffffffff911c16155b8015610a3a5750600b548311155b15610a48575050600b546000905b3360009081526005602052604090819020548291610a729186911c67ffffffffffffffff166118e3565b1115610ab15760405162461bcd60e51b815260206004820152600e60248201526d13585e081c195c881dd85b1b195d60921b6044820152606401610765565b33600090815260056020526040908190205484911c67ffffffffffffffff16600003610ae557610ae2600185611925565b90505b610aef83826118cc565b341015610b3e5760405162461bcd60e51b815260206004820152601d60248201527f506c656173652073656e642074686520657861637420616d6f756e742e0000006044820152606401610765565b610b483385611077565b50505050565b610b5661101d565b604051600090339047908381818185875af1925050503d8060008114610b98576040519150601f19603f3d011682016040523d82523d6000602084013e610b9d565b606091505b5050905080610be15760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610765565b50565b610bff83838360405180602001604052806000815250610dbc565b505050565b610c0c61101d565b60106106df828261197e565b600061060082611091565b60108054610c309061187c565b80601f0160208091040260200160405190810160405280929190818152602001828054610c5c9061187c565b8015610ca95780601f10610c7e57610100808354040283529160200191610ca9565b820191906000526020600020905b815481529060010190602001808311610c8c57829003601f168201915b505050505081565b610cb961101d565b600b55565b60006001600160a01b038216610cde57610cde6323d3ad8160e21b610f53565b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610d0c61101d565b610d166000611127565b565b610d2061101d565b600f805460ff19811660ff90911615179055565b610d3c61101d565b600c55565b6060600380546106159061187c565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610dc78484846107c3565b6001600160a01b0383163b15610b4857610de384848484611179565b610b4857610b486368d2bf6b60e11b610f53565b6060610e0282610f0e565b610e665760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610765565b6010610e718361125c565b604051602001610e82929190611a3e565b6040516020818303038152906040529050919050565b610ea061101d565b6001600160a01b038116610f055760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610765565b610be181611127565b60008054821015610f4e5760005b5060008281526004602052604081205490819003610f4457610f3d83611ad5565b9250610f1c565b600160e01b161590505b919050565b8060005260046000fd5b6000610f6883610c18565b9050818015610f805750336001600160a01b03821614155b15610fc0576001600160a01b038116600090815260076020908152604080832033845290915290205460ff16610fc057610fc06367d9dca160e11b610f53565b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b6008546001600160a01b03163314610d165760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610765565b6106df8282604051806020016040528060008152506112ef565b600081815260046020526040812054908190036111045760005482106110c1576110c1636f96cda160e11b610f53565b5b506000190160008181526004602052604090205480156110c257600160e01b81166000036110ef57919050565b6110ff636f96cda160e11b610f53565b6110c2565b600160e01b811660000361111757919050565b610f4e636f96cda160e11b610f53565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906111ae903390899088908890600401611aec565b6020604051808303816000875af19250505080156111e9575060408051601f3d908101601f191682019092526111e691810190611b28565b60015b61123e573d808015611217576040519150601f19603f3d011682016040523d82523d6000602084013e61121c565b606091505b508051600003611236576112366368d2bf6b60e11b610f53565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600061126983611358565b600101905060008167ffffffffffffffff811115611289576112896116a1565b6040519080825280601f01601f1916602001820160405280156112b3576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846112bd57509392505050565b6112f98383611430565b6001600160a01b0383163b15610bff576000548281035b6113236000868380600101945086611179565b611337576113376368d2bf6b60e11b610f53565b818110611310578160005414611351576113516000610f53565b5050505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106113975772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106113c3576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106113e157662386f26fc10000830492506010015b6305f5e10083106113f9576305f5e100830492506008015b612710831061140d57612710830492506004015b6064831061141f576064830492506002015b600a83106106005760010192915050565b600080549082900361144c5761144c63b562e8dd60e01b610f53565b60008181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b178117909155808452600590925282208054680100000000000000018602019055908190036114aa576114aa622e076360e81b610f53565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a48181600101915081036114af575060005550505050565b6001600160e01b031981168114610be157600080fd5b60006020828403121561151757600080fd5b8135611522816114ef565b9392505050565b60005b8381101561154457818101518382015260200161152c565b50506000910152565b60008151808452611565816020860160208601611529565b601f01601f19169290920160200192915050565b602081526000611522602083018461154d565b60006020828403121561159e57600080fd5b5035919050565b80356001600160a01b0381168114610f4e57600080fd5b600080604083850312156115cf57600080fd5b6115d8836115a5565b946020939093013593505050565b6000806000604084860312156115fb57600080fd5b83359250602084013567ffffffffffffffff8082111561161a57600080fd5b818601915086601f83011261162e57600080fd5b81358181111561163d57600080fd5b8760208260051b850101111561165257600080fd5b6020830194508093505050509250925092565b60008060006060848603121561167a57600080fd5b611683846115a5565b9250611691602085016115a5565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156116d2576116d26116a1565b604051601f8501601f19908116603f011681019082821181831017156116fa576116fa6116a1565b8160405280935085815286868601111561171357600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561173f57600080fd5b813567ffffffffffffffff81111561175657600080fd5b8201601f8101841361176757600080fd5b611254848235602084016116b7565b60006020828403121561178857600080fd5b611522826115a5565b600080604083850312156117a457600080fd5b6117ad836115a5565b9150602083013580151581146117c257600080fd5b809150509250929050565b600080600080608085870312156117e357600080fd5b6117ec856115a5565b93506117fa602086016115a5565b925060408501359150606085013567ffffffffffffffff81111561181d57600080fd5b8501601f8101871361182e57600080fd5b61183d878235602084016116b7565b91505092959194509250565b6000806040838503121561185c57600080fd5b611865836115a5565b9150611873602084016115a5565b90509250929050565b600181811c9082168061189057607f821691505b6020821081036118b057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610600576106006118b6565b80820180821115610600576106006118b6565b634e487b7160e01b600052603260045260246000fd5b60006001820161191e5761191e6118b6565b5060010190565b81810381811115610600576106006118b6565b601f821115610bff57600081815260208120601f850160051c8101602086101561195f5750805b601f850160051c820191505b818110156107bb5782815560010161196b565b815167ffffffffffffffff811115611998576119986116a1565b6119ac816119a6845461187c565b84611938565b602080601f8311600181146119e157600084156119c95750858301515b600019600386901b1c1916600185901b1785556107bb565b600085815260208120601f198616915b82811015611a10578886015182559484019460019091019084016119f1565b5085821015611a2e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000808454611a4c8161187c565b60018281168015611a645760018114611a7957611aa8565b60ff1984168752821515830287019450611aa8565b8860005260208060002060005b85811015611a9f5781548a820152908401908201611a86565b50505082870194505b505050508351611abc818360208801611529565b64173539b7b760d91b9101908152600501949350505050565b600081611ae457611ae46118b6565b506000190190565b60006001600160a01b03808716835280861660208401525083604083015260806060830152611b1e608083018461154d565b9695505050505050565b600060208284031215611b3a57600080fd5b8151611522816114ef56fea2646970667358221220f43d12a91478c519ff93ca276efa393b0957d1954be2b4b8d6d8dd3b45231daa64736f6c63430008110033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000095472756d706570656e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000454524d50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696477323661776365626b656f62776633707a3637767134327a7a366b68707a66656c3676646f336f68696b7a65613775347436652f0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101ee5760003560e01c806370a082311161010d578063a7027357116100a0578063d5abeb011161006f578063d5abeb0114610509578063e985e9c51461051f578063f2fde38b14610568578063f892c6e214610588578063f968adbe1461059e57600080fd5b8063a7027357146104a6578063b88d4fde146104bc578063c87b56dd146104cf578063d1239730146104ef57600080fd5b806391b7f5ed116100dc57806391b7f5ed1461043b57806395d89b411461045b578063a035b1fe14610470578063a22cb4651461048657600080fd5b806370a08231146103d3578063715018a6146103f35780637ba5e621146104085780638da5cb5b1461041d57600080fd5b80632db115441161018557806355f804b31161015457806355f804b31461035e5780636352211e1461037e5780636c0360eb1461039e5780636d7c4a4b146103b357600080fd5b80632db115441461030d5780633ccfd60b1461032057806342842e0e14610335578063453c23101461034857600080fd5b80630c23bb3f116101c15780630c23bb3f1461029757806317c70c03146102b757806318160ddd146102d757806323b872dd146102fa57600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b314610282575b600080fd5b3480156101ff57600080fd5b5061021361020e366004611505565b6105b4565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d610606565b60405161021f9190611579565b34801561025657600080fd5b5061026a61026536600461158c565b610698565b6040516001600160a01b03909116815260200161021f565b6102956102903660046115bc565b6106d3565b005b3480156102a357600080fd5b506102956102b236600461158c565b6106e3565b3480156102c357600080fd5b506102956102d23660046115e6565b6106f0565b3480156102e357600080fd5b50600154600054035b60405190815260200161021f565b610295610308366004611665565b6107c3565b61029561031b36600461158c565b610945565b34801561032c57600080fd5b50610295610b4e565b610295610343366004611665565b610be4565b34801561035457600080fd5b506102ec600e5481565b34801561036a57600080fd5b5061029561037936600461172d565b610c04565b34801561038a57600080fd5b5061026a61039936600461158c565b610c18565b3480156103aa57600080fd5b5061023d610c23565b3480156103bf57600080fd5b506102956103ce36600461158c565b610cb1565b3480156103df57600080fd5b506102ec6103ee366004611776565b610cbe565b3480156103ff57600080fd5b50610295610d04565b34801561041457600080fd5b50610295610d18565b34801561042957600080fd5b506008546001600160a01b031661026a565b34801561044757600080fd5b5061029561045636600461158c565b610d34565b34801561046757600080fd5b5061023d610d41565b34801561047c57600080fd5b506102ec600c5481565b34801561049257600080fd5b506102956104a1366004611791565b610d50565b3480156104b257600080fd5b506102ec600b5481565b6102956104ca3660046117cd565b610dbc565b3480156104db57600080fd5b5061023d6104ea36600461158c565b610df7565b3480156104fb57600080fd5b50600f546102139060ff1681565b34801561051557600080fd5b506102ec60095481565b34801561052b57600080fd5b5061021361053a366004611849565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561057457600080fd5b50610295610583366004611776565b610e98565b34801561059457600080fd5b506102ec600a5481565b3480156105aa57600080fd5b506102ec600d5481565b60006301ffc9a760e01b6001600160e01b0319831614806105e557506380ac58cd60e01b6001600160e01b03198316145b806106005750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546106159061187c565b80601f01602080910402602001604051908101604052809291908181526020018280546106419061187c565b801561068e5780601f106106635761010080835404028352916020019161068e565b820191906000526020600020905b81548152906001019060200180831161067157829003601f168201915b5050505050905090565b60006106a382610f0e565b6106b7576106b76333d1c03960e21b610f53565b506000908152600660205260409020546001600160a01b031690565b6106df82826001610f5d565b5050565b6106eb61101d565b600a55565b6106f861101d565b60006107076001546000540390565b9050600061071583866118cc565b60095490915061072582846118e3565b111561076e5760405162461bcd60e51b815260206004820152601360248201527222bc31b2b2b2399036b0bc1039bab838363c9760691b60448201526064015b60405180910390fd5b60005b838110156107bb576107a985858381811061078e5761078e6118f6565b90506020020160208101906107a39190611776565b87611077565b806107b38161190c565b915050610771565b505050505050565b60006107ce82611091565b6001600160a01b0394851694909150811684146107f4576107f462a1148160e81b610f53565b60008281526006602052604090208054338082146001600160a01b03881690911417610855576001600160a01b038616600090815260076020908152604080832033845290915290205460ff1661085557610855632ce44b5f60e11b610f53565b801561086057600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036108f2576001840160008181526004602052604081205490036108f05760005481146108f05760008181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a48060000361093c5761093c633a954ecd60e21b610f53565b50505050505050565b600f5460ff166109975760405162461bcd60e51b815260206004820152601860248201527f4d696e74696e67206973206e6f74206c697665207965742e00000000000000006044820152606401610765565b6009546109a59060016118e3565b816109b36001546000540390565b6109bd91906118e3565b106109f45760405162461bcd60e51b81526020600482015260076024820152664e6f206d6f726560c81b6044820152606401610765565b600c54600e54600a5460015460005403108015610a2c575033600090815260056020526040908190205467ffffffffffffffff911c16155b8015610a3a5750600b548311155b15610a48575050600b546000905b3360009081526005602052604090819020548291610a729186911c67ffffffffffffffff166118e3565b1115610ab15760405162461bcd60e51b815260206004820152600e60248201526d13585e081c195c881dd85b1b195d60921b6044820152606401610765565b33600090815260056020526040908190205484911c67ffffffffffffffff16600003610ae557610ae2600185611925565b90505b610aef83826118cc565b341015610b3e5760405162461bcd60e51b815260206004820152601d60248201527f506c656173652073656e642074686520657861637420616d6f756e742e0000006044820152606401610765565b610b483385611077565b50505050565b610b5661101d565b604051600090339047908381818185875af1925050503d8060008114610b98576040519150601f19603f3d011682016040523d82523d6000602084013e610b9d565b606091505b5050905080610be15760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610765565b50565b610bff83838360405180602001604052806000815250610dbc565b505050565b610c0c61101d565b60106106df828261197e565b600061060082611091565b60108054610c309061187c565b80601f0160208091040260200160405190810160405280929190818152602001828054610c5c9061187c565b8015610ca95780601f10610c7e57610100808354040283529160200191610ca9565b820191906000526020600020905b815481529060010190602001808311610c8c57829003601f168201915b505050505081565b610cb961101d565b600b55565b60006001600160a01b038216610cde57610cde6323d3ad8160e21b610f53565b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610d0c61101d565b610d166000611127565b565b610d2061101d565b600f805460ff19811660ff90911615179055565b610d3c61101d565b600c55565b6060600380546106159061187c565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610dc78484846107c3565b6001600160a01b0383163b15610b4857610de384848484611179565b610b4857610b486368d2bf6b60e11b610f53565b6060610e0282610f0e565b610e665760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610765565b6010610e718361125c565b604051602001610e82929190611a3e565b6040516020818303038152906040529050919050565b610ea061101d565b6001600160a01b038116610f055760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610765565b610be181611127565b60008054821015610f4e5760005b5060008281526004602052604081205490819003610f4457610f3d83611ad5565b9250610f1c565b600160e01b161590505b919050565b8060005260046000fd5b6000610f6883610c18565b9050818015610f805750336001600160a01b03821614155b15610fc0576001600160a01b038116600090815260076020908152604080832033845290915290205460ff16610fc057610fc06367d9dca160e11b610f53565b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b6008546001600160a01b03163314610d165760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610765565b6106df8282604051806020016040528060008152506112ef565b600081815260046020526040812054908190036111045760005482106110c1576110c1636f96cda160e11b610f53565b5b506000190160008181526004602052604090205480156110c257600160e01b81166000036110ef57919050565b6110ff636f96cda160e11b610f53565b6110c2565b600160e01b811660000361111757919050565b610f4e636f96cda160e11b610f53565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906111ae903390899088908890600401611aec565b6020604051808303816000875af19250505080156111e9575060408051601f3d908101601f191682019092526111e691810190611b28565b60015b61123e573d808015611217576040519150601f19603f3d011682016040523d82523d6000602084013e61121c565b606091505b508051600003611236576112366368d2bf6b60e11b610f53565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600061126983611358565b600101905060008167ffffffffffffffff811115611289576112896116a1565b6040519080825280601f01601f1916602001820160405280156112b3576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846112bd57509392505050565b6112f98383611430565b6001600160a01b0383163b15610bff576000548281035b6113236000868380600101945086611179565b611337576113376368d2bf6b60e11b610f53565b818110611310578160005414611351576113516000610f53565b5050505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106113975772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106113c3576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106113e157662386f26fc10000830492506010015b6305f5e10083106113f9576305f5e100830492506008015b612710831061140d57612710830492506004015b6064831061141f576064830492506002015b600a83106106005760010192915050565b600080549082900361144c5761144c63b562e8dd60e01b610f53565b60008181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b178117909155808452600590925282208054680100000000000000018602019055908190036114aa576114aa622e076360e81b610f53565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a48181600101915081036114af575060005550505050565b6001600160e01b031981168114610be157600080fd5b60006020828403121561151757600080fd5b8135611522816114ef565b9392505050565b60005b8381101561154457818101518382015260200161152c565b50506000910152565b60008151808452611565816020860160208601611529565b601f01601f19169290920160200192915050565b602081526000611522602083018461154d565b60006020828403121561159e57600080fd5b5035919050565b80356001600160a01b0381168114610f4e57600080fd5b600080604083850312156115cf57600080fd5b6115d8836115a5565b946020939093013593505050565b6000806000604084860312156115fb57600080fd5b83359250602084013567ffffffffffffffff8082111561161a57600080fd5b818601915086601f83011261162e57600080fd5b81358181111561163d57600080fd5b8760208260051b850101111561165257600080fd5b6020830194508093505050509250925092565b60008060006060848603121561167a57600080fd5b611683846115a5565b9250611691602085016115a5565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156116d2576116d26116a1565b604051601f8501601f19908116603f011681019082821181831017156116fa576116fa6116a1565b8160405280935085815286868601111561171357600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561173f57600080fd5b813567ffffffffffffffff81111561175657600080fd5b8201601f8101841361176757600080fd5b611254848235602084016116b7565b60006020828403121561178857600080fd5b611522826115a5565b600080604083850312156117a457600080fd5b6117ad836115a5565b9150602083013580151581146117c257600080fd5b809150509250929050565b600080600080608085870312156117e357600080fd5b6117ec856115a5565b93506117fa602086016115a5565b925060408501359150606085013567ffffffffffffffff81111561181d57600080fd5b8501601f8101871361182e57600080fd5b61183d878235602084016116b7565b91505092959194509250565b6000806040838503121561185c57600080fd5b611865836115a5565b9150611873602084016115a5565b90509250929050565b600181811c9082168061189057607f821691505b6020821081036118b057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610600576106006118b6565b80820180821115610600576106006118b6565b634e487b7160e01b600052603260045260246000fd5b60006001820161191e5761191e6118b6565b5060010190565b81810381811115610600576106006118b6565b601f821115610bff57600081815260208120601f850160051c8101602086101561195f5750805b601f850160051c820191505b818110156107bb5782815560010161196b565b815167ffffffffffffffff811115611998576119986116a1565b6119ac816119a6845461187c565b84611938565b602080601f8311600181146119e157600084156119c95750858301515b600019600386901b1c1916600185901b1785556107bb565b600085815260208120601f198616915b82811015611a10578886015182559484019460019091019084016119f1565b5085821015611a2e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000808454611a4c8161187c565b60018281168015611a645760018114611a7957611aa8565b60ff1984168752821515830287019450611aa8565b8860005260208060002060005b85811015611a9f5781548a820152908401908201611a86565b50505082870194505b505050508351611abc818360208801611529565b64173539b7b760d91b9101908152600501949350505050565b600081611ae457611ae46118b6565b506000190190565b60006001600160a01b03808716835280861660208401525083604083015260806060830152611b1e608083018461154d565b9695505050505050565b600060208284031215611b3a57600080fd5b8151611522816114ef56fea2646970667358221220f43d12a91478c519ff93ca276efa393b0957d1954be2b4b8d6d8dd3b45231daa64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000095472756d706570656e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000454524d50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696477323661776365626b656f62776633707a3637767134327a7a366b68707a66656c3676646f336f68696b7a65613775347436652f0000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Trumpepen
Arg [1] : _symbol (string): TRMP
Arg [2] : _initBaseURI (string): ipfs://bafybeidw26awcebkeobwf3pz67vq42zz6khpzfel6vdo3ohikzea7u4t6e/
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [4] : 5472756d706570656e0000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 54524d5000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [8] : 697066733a2f2f626166796265696477323661776365626b656f62776633707a
Arg [9] : 3637767134327a7a366b68707a66656c3676646f336f68696b7a656137753474
Arg [10] : 36652f0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
74996:3188:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39666:639;;;;;;;;;;-1:-1:-1;39666:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;39666:639:0;;;;;;;;40568:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;47602:227::-;;;;;;;;;;-1:-1:-1;47602:227:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:55:1;;;1679:74;;1667:2;1652:18;47602:227:0;1533:226:1;47319:124:0;;;;;;:::i;:::-;;:::i;:::-;;77745:104;;;;;;;;;;-1:-1:-1;77745:104:0;;;;;:::i;:::-;;:::i;75557:478::-;;;;;;;;;;-1:-1:-1;75557:478:0;;;;;:::i;:::-;;:::i;36310:323::-;;;;;;;;;;-1:-1:-1;36584:12:0;;36371:7;36568:13;:28;36310:323;;;3058:25:1;;;3046:2;3031:18;36310:323:0;2912:177:1;51336:3523:0;;;;;;:::i;:::-;;:::i;76043:966::-;;;;;;:::i;:::-;;:::i;77975:206::-;;;;;;;;;;;;;:::i;54955:193::-;;;;;;:::i;:::-;;:::i;75272:32::-;;;;;;;;;;;;;;;;77549:88;;;;;;;;;;-1:-1:-1;77549:88:0;;;;;:::i;:::-;;:::i;41970:152::-;;;;;;;;;;-1:-1:-1;41970:152:0;;;;;:::i;:::-;;:::i;75349:21::-;;;;;;;;;;;;;:::i;77857:110::-;;;;;;;;;;-1:-1:-1;77857:110:0;;;;;:::i;:::-;;:::i;37494:242::-;;;;;;;;;;-1:-1:-1;37494:242:0;;;;;:::i;:::-;;:::i;20356:103::-;;;;;;;;;;;;;:::i;77457:84::-;;;;;;;;;;;;;:::i;19715:87::-;;;;;;;;;;-1:-1:-1;19788:6:0;;-1:-1:-1;;;;;19788:6:0;19715:87;;77645:92;;;;;;;;;;-1:-1:-1;77645:92:0;;;;;:::i;:::-;;:::i;40744:104::-;;;;;;;;;;;;;:::i;75195:35::-;;;;;;;;;;;;;;;;48169:234;;;;;;;;;;-1:-1:-1;48169:234:0;;;;;:::i;:::-;;:::i;75153:35::-;;;;;;;;;;;;;;;;55746:416;;;;;;:::i;:::-;;:::i;77133:316::-;;;;;;;;;;-1:-1:-1;77133:316:0;;;;;:::i;:::-;;:::i;75311:31::-;;;;;;;;;;-1:-1:-1;75311:31:0;;;;;;;;75074;;;;;;;;;;;;;;;;48560:164;;;;;;;;;;-1:-1:-1;48560:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;48681:25:0;;;48657:4;48681:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;48560:164;20614:201;;;;;;;;;;-1:-1:-1;20614:201:0;;;;;:::i;:::-;;:::i;75112:34::-;;;;;;;;;;;;;;;;75237:28;;;;;;;;;;;;;;;;39666:639;39751:4;-1:-1:-1;;;;;;;;;40075:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;40152:25:0;;;40075:102;:179;;;-1:-1:-1;;;;;;;;;;40229:25:0;;;40075:179;40055:199;39666:639;-1:-1:-1;;39666:639:0:o;40568:100::-;40622:13;40655:5;40648:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40568:100;:::o;47602:227::-;47678:7;47703:16;47711:7;47703;:16::i;:::-;47698:73;;47721:50;-1:-1:-1;;;47721:7:0;:50::i;:::-;-1:-1:-1;47791:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;47791:30:0;;47602:227::o;47319:124::-;47408:27;47417:2;47421:7;47430:4;47408:8;:27::i;:::-;47319:124;;:::o;77745:104::-;19601:13;:11;:13::i;:::-;77818::::1;:23:::0;77745:104::o;75557:478::-;19601:13;:11;:13::i;:::-;75660:19:::1;75690:13;36584:12:::0;;36371:7;36568:13;:28;;36310:323;75690:13:::1;75660:44:::0;-1:-1:-1;75712:16:0::1;75733:36;75753:9:::0;75733:17;:36:::1;:::i;:::-;75813:9;::::0;75712:57;;-1:-1:-1;75784:25:0::1;75712:57:::0;75784:11;:25:::1;:::i;:::-;:38;;75776:70;;;::::0;-1:-1:-1;;;75776:70:0;;7154:2:1;75776:70:0::1;::::0;::::1;7136:21:1::0;7193:2;7173:18;;;7166:30;-1:-1:-1;;;7212:18:1;;;7205:49;7271:18;;75776:70:0::1;;;;;;;;;75859:9;75854:116;75874:20:::0;;::::1;75854:116;;;75916:42;75926:9;;75936:1;75926:12;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;75940:17;75916:9;:42::i;:::-;75896:3:::0;::::1;::::0;::::1;:::i;:::-;;;;75854:116;;;-1:-1:-1::0;;;;;;75557:478:0:o;51336:3523::-;51478:27;51508;51527:7;51508:18;:27::i;:::-;-1:-1:-1;;;;;51663:22:0;;;;51478:57;;-1:-1:-1;51723:45:0;;;;51719:95;;51770:44;-1:-1:-1;;;51770:7:0;:44::i;:::-;51828:27;50444:24;;;:15;:24;;;;;50672:26;;72828:10;50069:30;;;-1:-1:-1;;;;;49762:28:0;;50047:20;;;50044:56;52014:189;;-1:-1:-1;;;;;48681:25:0;;48657:4;48681:25;;;:18;:25;;;;;;;;72828:10;48681:35;;;;;;;;;;52102:101;;52152:51;-1:-1:-1;;;52152:7:0;:51::i;:::-;52352:15;52349:160;;;52492:1;52471:19;52464:30;52349:160;-1:-1:-1;;;;;52889:24:0;;;;;;;:18;:24;;;;;;52887:26;;-1:-1:-1;;52887:26:0;;;52958:22;;;;;;;;;52956:24;;-1:-1:-1;52956:24:0;;;46421:11;46396:23;46392:41;46379:63;-1:-1:-1;;;46379:63:0;53251:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;53546:47:0;;:52;;53542:627;;53651:1;53641:11;;53619:19;53774:30;;;:17;:30;;;;;;:35;;53770:384;;53912:13;;53897:11;:28;53893:242;;54059:30;;;;:17;:30;;;;;:52;;;53893:242;53600:569;53542:627;-1:-1:-1;;;;;54301:20:0;;54681:7;54301:20;54611:4;54553:25;54282:16;;54418:299;54742:8;54754:1;54742:13;54738:58;;54757:39;-1:-1:-1;;;54757:7:0;:39::i;:::-;51467:3392;;;;51336:3523;;;:::o;76043:966::-;76119:11;;;;76111:48;;;;-1:-1:-1;;;76111:48:0;;7774:2:1;76111:48:0;;;7756:21:1;7813:2;7793:18;;;7786:30;7852:26;7832:18;;;7825:54;7896:18;;76111:48:0;7572:348:1;76111:48:0;76205:9;;:13;;76217:1;76205:13;:::i;:::-;76194:8;76178:13;36584:12;;36371:7;36568:13;:28;;36310:323;76178:13;:24;;;;:::i;:::-;:40;76170:60;;;;-1:-1:-1;;;76170:60:0;;8127:2:1;76170:60:0;;;8109:21:1;8166:1;8146:18;;;8139:29;-1:-1:-1;;;8184:18:1;;;8177:37;8231:18;;76170:60:0;7925:330:1;76170:60:0;76256:5;;76296:12;;76365:13;;36584:12;;36371:7;36568:13;:28;76349:29;:76;;;;-1:-1:-1;76409:10:0;37879:7;37907:25;;;:18;:25;;31791:2;37907:25;;;;;31653:13;37907:50;;37906:82;76395:30;76349:76;:121;;;;;76454:16;;76442:8;:28;;76349:121;76331:233;;;-1:-1:-1;;76536:16:0;;76504:1;;76331:233;76612:10;37879:7;37907:25;;;:18;:25;;31791:2;37907:25;;;;;76638:13;;76598:36;;76626:8;;37907:50;31653:13;37906:82;76598:36;:::i;:::-;:53;;76576:117;;;;-1:-1:-1;;;76576:117:0;;8462:2:1;76576:117:0;;;8444:21:1;8501:2;8481:18;;;8474:30;-1:-1:-1;;;8520:18:1;;;8513:44;8574:18;;76576:117:0;8260:338:1;76576:117:0;76766:10;37879:7;37907:25;;;:18;:25;;31791:2;37907:25;;;;;76729:8;;37907:50;31653:13;37906:82;76781:1;76752:30;76748:90;;76814:12;76825:1;76814:8;:12;:::i;:::-;76799:27;;76748:90;76883:19;76898:4;76883:12;:19;:::i;:::-;76870:9;:32;;76848:111;;;;-1:-1:-1;;;76848:111:0;;8938:2:1;76848:111:0;;;8920:21:1;8977:2;8957:18;;;8950:30;9016:31;8996:18;;;8989:59;9065:18;;76848:111:0;8736:353:1;76848:111:0;76970:31;76980:10;76992:8;76970:9;:31::i;:::-;76100:909;;;76043:966;:::o;77975:206::-;19601:13;:11;:13::i;:::-;78044:82:::1;::::0;78026:12:::1;::::0;78052:10:::1;::::0;78090:21:::1;::::0;78026:12;78044:82;78026:12;78044:82;78090:21;78052:10;78044:82:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78025:101;;;78145:7;78137:36;;;::::0;-1:-1:-1;;;78137:36:0;;9506:2:1;78137:36:0::1;::::0;::::1;9488:21:1::0;9545:2;9525:18;;;9518:30;-1:-1:-1;;;9564:18:1;;;9557:46;9620:18;;78137:36:0::1;9304:340:1::0;78137:36:0::1;78014:167;77975:206::o:0;54955:193::-;55101:39;55118:4;55124:2;55128:7;55101:39;;;;;;;;;;;;:16;:39::i;:::-;54955:193;;;:::o;77549:88::-;19601:13;:11;:13::i;:::-;77616:7:::1;:13;77626:3:::0;77616:7;:13:::1;:::i;41970:152::-:0;42042:7;42085:27;42104:7;42085:18;:27::i;75349:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;77857:110::-;19601:13;:11;:13::i;:::-;77933:16:::1;:26:::0;77857:110::o;37494:242::-;37566:7;-1:-1:-1;;;;;37590:19:0;;37586:69;;37611:44;-1:-1:-1;;;37611:7:0;:44::i;:::-;-1:-1:-1;;;;;;37673:25:0;;;;;:18;:25;;;;;;31653:13;37673:55;;37494:242::o;20356:103::-;19601:13;:11;:13::i;:::-;20421:30:::1;20448:1;20421:18;:30::i;:::-;20356:103::o:0;77457:84::-;19601:13;:11;:13::i;:::-;77522:11:::1;::::0;;-1:-1:-1;;77507:26:0;::::1;77522:11;::::0;;::::1;77521:12;77507:26;::::0;;77457:84::o;77645:92::-;19601:13;:11;:13::i;:::-;77712:5:::1;:17:::0;77645:92::o;40744:104::-;40800:13;40833:7;40826:14;;;;;:::i;48169:234::-;72828:10;48264:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;48264:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;48264:60:0;;;;;;;;;;48340:55;;540:41:1;;;48264:49:0;;72828:10;48340:55;;513:18:1;48340:55:0;;;;;;;48169:234;;:::o;55746:416::-;55921:31;55934:4;55940:2;55944:7;55921:12;:31::i;:::-;-1:-1:-1;;;;;55967:14:0;;;:19;55963:192;;56006:56;56037:4;56043:2;56047:7;56056:5;56006:30;:56::i;:::-;56001:154;;56083:56;-1:-1:-1;;;56083:7:0;:56::i;77133:316::-;77222:13;77270:16;77278:7;77270;:16::i;:::-;77248:113;;;;-1:-1:-1;;;77248:113:0;;12055:2:1;77248:113:0;;;12037:21:1;12094:2;12074:18;;;12067:30;12133:34;12113:18;;;12106:62;-1:-1:-1;;;12184:18:1;;;12177:45;12239:19;;77248:113:0;11853:411:1;77248:113:0;77403:7;77412:18;:7;:16;:18::i;:::-;77386:54;;;;;;;;;:::i;:::-;;;;;;;;;;;;;77372:69;;77133:316;;;:::o;20614:201::-;19601:13;:11;:13::i;:::-;-1:-1:-1;;;;;20703:22:0;::::1;20695:73;;;::::0;-1:-1:-1;;;20695:73:0;;13663:2:1;20695:73:0::1;::::0;::::1;13645:21:1::0;13702:2;13682:18;;;13675:30;13741:34;13721:18;;;13714:62;-1:-1:-1;;;13792:18:1;;;13785:36;13838:19;;20695:73:0::1;13461:402:1::0;20695:73:0::1;20779:28;20798:8;20779:18;:28::i;48982:368::-:0;49047:11;49132:13;;49122:7;:23;49118:214;;;49166:14;49199:60;-1:-1:-1;49216:26:0;;;;:17;:26;;;;;;;49206:42;;;49199:60;;49250:9;;;:::i;:::-;;;49199:60;;;-1:-1:-1;;;49287:24:0;:29;;-1:-1:-1;49118:214:0;48982:368;;;:::o;74760:165::-;74861:13;74855:4;74848:27;74902:4;74896;74889:18;66193:474;66322:13;66338:16;66346:7;66338;:16::i;:::-;66322:32;;66371:13;:45;;;;-1:-1:-1;72828:10:0;-1:-1:-1;;;;;66388:28:0;;;;66371:45;66367:201;;;-1:-1:-1;;;;;48681:25:0;;48657:4;48681:25;;;:18;:25;;;;;;;;72828:10;48681:35;;;;;;;;;;66431:137;;66501:51;-1:-1:-1;;;66501:7:0;:51::i;:::-;66580:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;66580:35:0;-1:-1:-1;;;;;66580:35:0;;;;;;;;;66631:28;;66580:24;;66631:28;;;;;;;66311:356;66193:474;;;:::o;19880:132::-;19788:6;;-1:-1:-1;;;;;19788:6:0;72828:10;19944:23;19936:68;;;;-1:-1:-1;;;19936:68:0;;14211:2:1;19936:68:0;;;14193:21:1;;;14230:18;;;14223:30;14289:34;14269:18;;;14262:62;14341:18;;19936:68:0;14009:356:1;65275:112:0;65352:27;65362:2;65366:8;65352:27;;;;;;;;;;;;:9;:27::i;43450:2012::-;43600:26;;;;:17;:26;;;;;;;43726:11;;;43722:1292;;43773:13;;43762:7;:24;43758:77;;43788:47;-1:-1:-1;;;43788:7:0;:47::i;:::-;44392:607;-1:-1:-1;;;44488:9:0;44470:28;;;;:17;:28;;;;;;44544:25;;44392:607;44544:25;-1:-1:-1;;;44596:6:0;:24;44624:1;44596:29;44592:48;;43450:2012;;;:::o;44592:48::-;44932:47;-1:-1:-1;;;44932:7:0;:47::i;:::-;44392:607;;43722:1292;-1:-1:-1;;;45341:6:0;:24;45369:1;45341:29;45337:48;;43450:2012;;;:::o;45337:48::-;45407:47;-1:-1:-1;;;45407:7:0;:47::i;20975:191::-;21068:6;;;-1:-1:-1;;;;;21085:17:0;;;-1:-1:-1;;;;;;21085:17:0;;;;;;;21118:40;;21068:6;;;21085:17;21068:6;;21118:40;;21049:16;;21118:40;21038:128;20975:191;:::o;58246:691::-;58430:88;;-1:-1:-1;;;58430:88:0;;58409:4;;-1:-1:-1;;;;;58430:45:0;;;;;:88;;72828:10;;58497:4;;58503:7;;58512:5;;58430:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;58430:88:0;;;;;;;;-1:-1:-1;;58430:88:0;;;;;;;;;;;;:::i;:::-;;;58426:504;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58713:6;:13;58730:1;58713:18;58709:115;;58752:56;-1:-1:-1;;;58752:7:0;:56::i;:::-;58896:6;58890:13;58881:6;58877:2;58873:15;58866:38;58426:504;-1:-1:-1;;;;;;58589:64:0;-1:-1:-1;;;58589:64:0;;-1:-1:-1;58426:504:0;58246:691;;;;;;:::o;15079:716::-;15135:13;15186:14;15203:17;15214:5;15203:10;:17::i;:::-;15223:1;15203:21;15186:38;;15239:20;15273:6;15262:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;15262:18:0;-1:-1:-1;15239:41:0;-1:-1:-1;15404:28:0;;;15420:2;15404:28;15461:288;-1:-1:-1;;15493:5:0;-1:-1:-1;;;15630:2:0;15619:14;;15614:30;15493:5;15601:44;15691:2;15682:11;;;-1:-1:-1;15712:21:0;15461:288;15712:21;-1:-1:-1;15770:6:0;15079:716;-1:-1:-1;;;15079:716:0:o;64483:708::-;64614:19;64620:2;64624:8;64614:5;:19::i;:::-;-1:-1:-1;;;;;64675:14:0;;;:19;64671:502;;64715:11;64729:13;64777:14;;;64810:242;64841:62;64880:1;64884:2;64888:7;;;;;;64897:5;64841:30;:62::i;:::-;64836:176;;64932:56;-1:-1:-1;;;64932:7:0;:56::i;:::-;65047:3;65039:5;:11;64810:242;;65134:3;65117:13;;:20;65113:44;;65139:18;65154:1;65139:7;:18::i;:::-;64696:477;;64483:708;;;:::o;11860:948::-;11913:7;;-1:-1:-1;;;11991:17:0;;11987:106;;-1:-1:-1;;;12029:17:0;;;-1:-1:-1;12075:2:0;12065:12;11987:106;12120:8;12111:5;:17;12107:106;;12158:8;12149:17;;;-1:-1:-1;12195:2:0;12185:12;12107:106;12240:8;12231:5;:17;12227:106;;12278:8;12269:17;;;-1:-1:-1;12315:2:0;12305:12;12227:106;12360:7;12351:5;:16;12347:103;;12397:7;12388:16;;;-1:-1:-1;12433:1:0;12423:11;12347:103;12477:7;12468:5;:16;12464:103;;12514:7;12505:16;;;-1:-1:-1;12550:1:0;12540:11;12464:103;12594:7;12585:5;:16;12581:103;;12631:7;12622:16;;;-1:-1:-1;12667:1:0;12657:11;12581:103;12711:7;12702:5;:16;12698:68;;12749:1;12739:11;12794:6;11860:948;-1:-1:-1;;11860:948:0:o;59399:2305::-;59472:20;59495:13;;;59523;;;59519:53;;59538:34;-1:-1:-1;;;59538:7:0;:34::i;:::-;60085:31;;;;:17;:31;;;;;;;;-1:-1:-1;;;;;46247:28:0;;46421:11;46396:23;46392:41;46865:1;46852:15;;46826:24;46822:46;46389:52;46379:63;;60085:173;;;60476:22;;;:18;:22;;;;;:71;;60514:32;60502:45;;60476:71;;;46247:28;60737:13;;;60733:54;;60752:35;-1:-1:-1;;;60752:7:0;:35::i;:::-;60818:23;;;:12;60903:676;61322:7;61278:8;61233:1;61167:25;61104:1;61039;61008:358;61574:3;61561:9;;;;;;:16;60903:676;;-1:-1:-1;61595:13:0;:19;-1:-1:-1;54955:193:0;;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;:::-;384:5;150:245;-1:-1:-1;;;150:245:1:o;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1764:196::-;1832:20;;-1:-1:-1;;;;;1881:54:1;;1871:65;;1861:93;;1950:1;1947;1940:12;1965:254;2033:6;2041;2094:2;2082:9;2073:7;2069:23;2065:32;2062:52;;;2110:1;2107;2100:12;2062:52;2133:29;2152:9;2133:29;:::i;:::-;2123:39;2209:2;2194:18;;;;2181:32;;-1:-1:-1;;;1965:254:1:o;2224:683::-;2319:6;2327;2335;2388:2;2376:9;2367:7;2363:23;2359:32;2356:52;;;2404:1;2401;2394:12;2356:52;2440:9;2427:23;2417:33;;2501:2;2490:9;2486:18;2473:32;2524:18;2565:2;2557:6;2554:14;2551:34;;;2581:1;2578;2571:12;2551:34;2619:6;2608:9;2604:22;2594:32;;2664:7;2657:4;2653:2;2649:13;2645:27;2635:55;;2686:1;2683;2676:12;2635:55;2726:2;2713:16;2752:2;2744:6;2741:14;2738:34;;;2768:1;2765;2758:12;2738:34;2821:7;2816:2;2806:6;2803:1;2799:14;2795:2;2791:23;2787:32;2784:45;2781:65;;;2842:1;2839;2832:12;2781:65;2873:2;2869;2865:11;2855:21;;2895:6;2885:16;;;;;2224:683;;;;;:::o;3094:328::-;3171:6;3179;3187;3240:2;3228:9;3219:7;3215:23;3211:32;3208:52;;;3256:1;3253;3246:12;3208:52;3279:29;3298:9;3279:29;:::i;:::-;3269:39;;3327:38;3361:2;3350:9;3346:18;3327:38;:::i;:::-;3317:48;;3412:2;3401:9;3397:18;3384:32;3374:42;;3094:328;;;;;:::o;3427:127::-;3488:10;3483:3;3479:20;3476:1;3469:31;3519:4;3516:1;3509:15;3543:4;3540:1;3533:15;3559:632;3624:5;3654:18;3695:2;3687:6;3684:14;3681:40;;;3701:18;;:::i;:::-;3776:2;3770:9;3744:2;3830:15;;-1:-1:-1;;3826:24:1;;;3852:2;3822:33;3818:42;3806:55;;;3876:18;;;3896:22;;;3873:46;3870:72;;;3922:18;;:::i;:::-;3962:10;3958:2;3951:22;3991:6;3982:15;;4021:6;4013;4006:22;4061:3;4052:6;4047:3;4043:16;4040:25;4037:45;;;4078:1;4075;4068:12;4037:45;4128:6;4123:3;4116:4;4108:6;4104:17;4091:44;4183:1;4176:4;4167:6;4159;4155:19;4151:30;4144:41;;;;3559:632;;;;;:::o;4196:451::-;4265:6;4318:2;4306:9;4297:7;4293:23;4289:32;4286:52;;;4334:1;4331;4324:12;4286:52;4374:9;4361:23;4407:18;4399:6;4396:30;4393:50;;;4439:1;4436;4429:12;4393:50;4462:22;;4515:4;4507:13;;4503:27;-1:-1:-1;4493:55:1;;4544:1;4541;4534:12;4493:55;4567:74;4633:7;4628:2;4615:16;4610:2;4606;4602:11;4567:74;:::i;4652:186::-;4711:6;4764:2;4752:9;4743:7;4739:23;4735:32;4732:52;;;4780:1;4777;4770:12;4732:52;4803:29;4822:9;4803:29;:::i;4843:347::-;4908:6;4916;4969:2;4957:9;4948:7;4944:23;4940:32;4937:52;;;4985:1;4982;4975:12;4937:52;5008:29;5027:9;5008:29;:::i;:::-;4998:39;;5087:2;5076:9;5072:18;5059:32;5134:5;5127:13;5120:21;5113:5;5110:32;5100:60;;5156:1;5153;5146:12;5100:60;5179:5;5169:15;;;4843:347;;;;;:::o;5195:667::-;5290:6;5298;5306;5314;5367:3;5355:9;5346:7;5342:23;5338:33;5335:53;;;5384:1;5381;5374:12;5335:53;5407:29;5426:9;5407:29;:::i;:::-;5397:39;;5455:38;5489:2;5478:9;5474:18;5455:38;:::i;:::-;5445:48;;5540:2;5529:9;5525:18;5512:32;5502:42;;5595:2;5584:9;5580:18;5567:32;5622:18;5614:6;5611:30;5608:50;;;5654:1;5651;5644:12;5608:50;5677:22;;5730:4;5722:13;;5718:27;-1:-1:-1;5708:55:1;;5759:1;5756;5749:12;5708:55;5782:74;5848:7;5843:2;5830:16;5825:2;5821;5817:11;5782:74;:::i;:::-;5772:84;;;5195:667;;;;;;;:::o;5867:260::-;5935:6;5943;5996:2;5984:9;5975:7;5971:23;5967:32;5964:52;;;6012:1;6009;6002:12;5964:52;6035:29;6054:9;6035:29;:::i;:::-;6025:39;;6083:38;6117:2;6106:9;6102:18;6083:38;:::i;:::-;6073:48;;5867:260;;;;;:::o;6132:380::-;6211:1;6207:12;;;;6254;;;6275:61;;6329:4;6321:6;6317:17;6307:27;;6275:61;6382:2;6374:6;6371:14;6351:18;6348:38;6345:161;;6428:10;6423:3;6419:20;6416:1;6409:31;6463:4;6460:1;6453:15;6491:4;6488:1;6481:15;6345:161;;6132:380;;;:::o;6517:127::-;6578:10;6573:3;6569:20;6566:1;6559:31;6609:4;6606:1;6599:15;6633:4;6630:1;6623:15;6649:168;6722:9;;;6753;;6770:15;;;6764:22;;6750:37;6740:71;;6791:18;;:::i;6822:125::-;6887:9;;;6908:10;;;6905:36;;;6921:18;;:::i;7300:127::-;7361:10;7356:3;7352:20;7349:1;7342:31;7392:4;7389:1;7382:15;7416:4;7413:1;7406:15;7432:135;7471:3;7492:17;;;7489:43;;7512:18;;:::i;:::-;-1:-1:-1;7559:1:1;7548:13;;7432:135::o;8603:128::-;8670:9;;;8691:11;;;8688:37;;;8705:18;;:::i;9775:545::-;9877:2;9872:3;9869:11;9866:448;;;9913:1;9938:5;9934:2;9927:17;9983:4;9979:2;9969:19;10053:2;10041:10;10037:19;10034:1;10030:27;10024:4;10020:38;10089:4;10077:10;10074:20;10071:47;;;-1:-1:-1;10112:4:1;10071:47;10167:2;10162:3;10158:12;10155:1;10151:20;10145:4;10141:31;10131:41;;10222:82;10240:2;10233:5;10230:13;10222:82;;;10285:17;;;10266:1;10255:13;10222:82;;10496:1352;10622:3;10616:10;10649:18;10641:6;10638:30;10635:56;;;10671:18;;:::i;:::-;10700:97;10790:6;10750:38;10782:4;10776:11;10750:38;:::i;:::-;10744:4;10700:97;:::i;:::-;10852:4;;10916:2;10905:14;;10933:1;10928:663;;;;11635:1;11652:6;11649:89;;;-1:-1:-1;11704:19:1;;;11698:26;11649:89;-1:-1:-1;;10453:1:1;10449:11;;;10445:24;10441:29;10431:40;10477:1;10473:11;;;10428:57;11751:81;;10898:944;;10928:663;9722:1;9715:14;;;9759:4;9746:18;;-1:-1:-1;;10964:20:1;;;11082:236;11096:7;11093:1;11090:14;11082:236;;;11185:19;;;11179:26;11164:42;;11277:27;;;;11245:1;11233:14;;;;11112:19;;11082:236;;;11086:3;11346:6;11337:7;11334:19;11331:201;;;11407:19;;;11401:26;-1:-1:-1;;11490:1:1;11486:14;;;11502:3;11482:24;11478:37;11474:42;11459:58;11444:74;;11331:201;-1:-1:-1;;;;;11578:1:1;11562:14;;;11558:22;11545:36;;-1:-1:-1;10496:1352:1:o;12269:1187::-;12546:3;12575:1;12608:6;12602:13;12638:36;12664:9;12638:36;:::i;:::-;12693:1;12710:18;;;12737:133;;;;12884:1;12879:356;;;;12703:532;;12737:133;-1:-1:-1;;12770:24:1;;12758:37;;12843:14;;12836:22;12824:35;;12815:45;;;-1:-1:-1;12737:133:1;;12879:356;12910:6;12907:1;12900:17;12940:4;12985:2;12982:1;12972:16;13010:1;13024:165;13038:6;13035:1;13032:13;13024:165;;;13116:14;;13103:11;;;13096:35;13159:16;;;;13053:10;;13024:165;;;13028:3;;;13218:6;13213:3;13209:16;13202:23;;12703:532;;;;;13266:6;13260:13;13282:68;13341:8;13336:3;13329:4;13321:6;13317:17;13282:68;:::i;:::-;-1:-1:-1;;;13372:18:1;;13399:22;;;13448:1;13437:13;;12269:1187;-1:-1:-1;;;;12269:1187:1:o;13868:136::-;13907:3;13935:5;13925:39;;13944:18;;:::i;:::-;-1:-1:-1;;;13980:18:1;;13868:136::o;14370:512::-;14564:4;-1:-1:-1;;;;;14674:2:1;14666:6;14662:15;14651:9;14644:34;14726:2;14718:6;14714:15;14709:2;14698:9;14694:18;14687:43;;14766:6;14761:2;14750:9;14746:18;14739:34;14809:3;14804:2;14793:9;14789:18;14782:31;14830:46;14871:3;14860:9;14856:19;14848:6;14830:46;:::i;:::-;14822:54;14370:512;-1:-1:-1;;;;;;14370:512:1:o;14887:249::-;14956:6;15009:2;14997:9;14988:7;14984:23;14980:32;14977:52;;;15025:1;15022;15015:12;14977:52;15057:9;15051:16;15076:30;15100:5;15076:30;:::i
Swarm Source
ipfs://f43d12a91478c519ff93ca276efa393b0957d1954be2b4b8d6d8dd3b45231daa
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.