Overview
ETH Balance
0.42 ETH
Eth Value
$1,372.14 (@ $3,266.99/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 23 from a total of 23 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 21619083 | 5 days ago | IN | 0 ETH | 0.00020064 | ||||
Set Approval For... | 21505415 | 21 days ago | IN | 0 ETH | 0.00017814 | ||||
Complete Mint | 21505363 | 21 days ago | IN | 0 ETH | 0.03617115 | ||||
Transfer From | 21490734 | 23 days ago | IN | 0 ETH | 0.00032197 | ||||
Mint | 21418302 | 33 days ago | IN | 0.02 ETH | 0.00110297 | ||||
Set Approval For... | 21410913 | 34 days ago | IN | 0 ETH | 0.00049204 | ||||
Mint | 21410655 | 34 days ago | IN | 0.4 ETH | 0.00724012 | ||||
Add To Whitelist | 21406067 | 35 days ago | IN | 0 ETH | 0.00051027 | ||||
Transfer From | 21389631 | 37 days ago | IN | 0 ETH | 0.00069578 | ||||
Transfer From | 21389627 | 37 days ago | IN | 0 ETH | 0.00069842 | ||||
Transfer From | 21389624 | 37 days ago | IN | 0 ETH | 0.00065318 | ||||
Transfer From | 21389609 | 37 days ago | IN | 0 ETH | 0.0006998 | ||||
Transfer From | 21389583 | 37 days ago | IN | 0 ETH | 0.00088432 | ||||
Set Sale State | 21387486 | 37 days ago | IN | 0 ETH | 0.00486401 | ||||
Transfer From | 21345588 | 43 days ago | IN | 0 ETH | 0.00167035 | ||||
Mint | 21341036 | 44 days ago | IN | 0 ETH | 0.00160329 | ||||
Mint | 21340271 | 44 days ago | IN | 0 ETH | 0.00228819 | ||||
Add To Whitelist | 21340163 | 44 days ago | IN | 0 ETH | 0.00103215 | ||||
Add To Whitelist | 21338963 | 44 days ago | IN | 0 ETH | 0.00102715 | ||||
Add To Whitelist | 21334836 | 44 days ago | IN | 0 ETH | 0.0013656 | ||||
Set Base URI | 21332537 | 45 days ago | IN | 0 ETH | 0.00138739 | ||||
Set Base URI | 21327688 | 45 days ago | IN | 0 ETH | 0.00144986 | ||||
Add To Whitelist | 21327670 | 45 days ago | IN | 0 ETH | 0.00072701 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
BT_47_Token
Compiler Version
v0.8.28+commit.7893614a
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-12-04 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.28; /** * @dev Interface of the ERC-165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[ERC]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts/token/ERC721/IERC721.sol // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.20; /** * @dev Required interface of an ERC-721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC-721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or * {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the address zero. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.20; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.20; /** * @title ERC-721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC-721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be * reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/contracts/interfaces/draft-IERC6093.sol // OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC-20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC-721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC-1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); } // File: @openzeppelin/contracts/token/ERC721/utils/ERC721Utils.sol // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/utils/ERC721Utils.sol) pragma solidity ^0.8.20; /** * @dev Library that provide common ERC-721 utility functions. * * See https://eips.ethereum.org/EIPS/eip-721[ERC-721]. * * _Available since v5.1._ */ library ERC721Utils { /** * @dev Performs an acceptance check for the provided `operator` by calling {IERC721-onERC721Received} * on the `to` address. The `operator` is generally the address that initiated the token transfer (i.e. `msg.sender`). * * The acceptance call is not executed and treated as a no-op if the target address doesn't contain code (i.e. an EOA). * Otherwise, the recipient must implement {IERC721Receiver-onERC721Received} and return the acceptance magic value to accept * the transfer. */ function checkOnERC721Received( address operator, address from, address to, uint256 tokenId, bytes memory data ) internal { if (to.code.length > 0) { try IERC721Receiver(to).onERC721Received(operator, from, tokenId, data) returns (bytes4 retval) { if (retval != IERC721Receiver.onERC721Received.selector) { // Token rejected revert IERC721Errors.ERC721InvalidReceiver(to); } } catch (bytes memory reason) { if (reason.length == 0) { // non-IERC721Receiver implementer revert IERC721Errors.ERC721InvalidReceiver(to); } else { assembly ("memory-safe") { revert(add(32, reason), mload(reason)) } } } } } } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } } // File: @openzeppelin/contracts/utils/Panic.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol) pragma solidity ^0.8.20; /** * @dev Helper library for emitting standardized panic codes. * * ```solidity * contract Example { * using Panic for uint256; * * // Use any of the declared internal constants * function foo() { Panic.GENERIC.panic(); } * * // Alternatively * function foo() { Panic.panic(Panic.GENERIC); } * } * ``` * * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil]. * * _Available since v5.1._ */ // slither-disable-next-line unused-state library Panic { /// @dev generic / unspecified error uint256 internal constant GENERIC = 0x00; /// @dev used by the assert() builtin uint256 internal constant ASSERT = 0x01; /// @dev arithmetic underflow or overflow uint256 internal constant UNDER_OVERFLOW = 0x11; /// @dev division or modulo by zero uint256 internal constant DIVISION_BY_ZERO = 0x12; /// @dev enum conversion error uint256 internal constant ENUM_CONVERSION_ERROR = 0x21; /// @dev invalid encoding in storage uint256 internal constant STORAGE_ENCODING_ERROR = 0x22; /// @dev empty array pop uint256 internal constant EMPTY_ARRAY_POP = 0x31; /// @dev array out of bounds access uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32; /// @dev resource error (too large allocation or too large array) uint256 internal constant RESOURCE_ERROR = 0x41; /// @dev calling invalid internal function uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51; /// @dev Reverts with a panic code. Recommended to use with /// the internal constants with predefined codes. function panic(uint256 code) internal pure { assembly ("memory-safe") { mstore(0x00, 0x4e487b71) mstore(0x20, code) revert(0x1c, 0x24) } } } // File: @openzeppelin/contracts/utils/math/SafeCast.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol) // This file was procedurally generated from scripts/generate/templates/SafeCast.js. pragma solidity ^0.8.20; /** * @dev Wrappers over Solidity's uintXX/intXX/bool casting operators with added overflow * checks. * * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can * easily result in undesired exploitation or bugs, since developers usually * assume that overflows raise errors. `SafeCast` restores this intuition by * reverting the transaction when such an operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeCast { /** * @dev Value doesn't fit in an uint of `bits` size. */ error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value); /** * @dev An int value doesn't fit in an uint of `bits` size. */ error SafeCastOverflowedIntToUint(int256 value); /** * @dev Value doesn't fit in an int of `bits` size. */ error SafeCastOverflowedIntDowncast(uint8 bits, int256 value); /** * @dev An uint value doesn't fit in an int of `bits` size. */ error SafeCastOverflowedUintToInt(uint256 value); /** * @dev Returns the downcasted uint248 from uint256, reverting on * overflow (when the input is greater than largest uint248). * * Counterpart to Solidity's `uint248` operator. * * Requirements: * * - input must fit into 248 bits */ function toUint248(uint256 value) internal pure returns (uint248) { if (value > type(uint248).max) { revert SafeCastOverflowedUintDowncast(248, value); } return uint248(value); } /** * @dev Returns the downcasted uint240 from uint256, reverting on * overflow (when the input is greater than largest uint240). * * Counterpart to Solidity's `uint240` operator. * * Requirements: * * - input must fit into 240 bits */ function toUint240(uint256 value) internal pure returns (uint240) { if (value > type(uint240).max) { revert SafeCastOverflowedUintDowncast(240, value); } return uint240(value); } /** * @dev Returns the downcasted uint232 from uint256, reverting on * overflow (when the input is greater than largest uint232). * * Counterpart to Solidity's `uint232` operator. * * Requirements: * * - input must fit into 232 bits */ function toUint232(uint256 value) internal pure returns (uint232) { if (value > type(uint232).max) { revert SafeCastOverflowedUintDowncast(232, value); } return uint232(value); } /** * @dev Returns the downcasted uint224 from uint256, reverting on * overflow (when the input is greater than largest uint224). * * Counterpart to Solidity's `uint224` operator. * * Requirements: * * - input must fit into 224 bits */ function toUint224(uint256 value) internal pure returns (uint224) { if (value > type(uint224).max) { revert SafeCastOverflowedUintDowncast(224, value); } return uint224(value); } /** * @dev Returns the downcasted uint216 from uint256, reverting on * overflow (when the input is greater than largest uint216). * * Counterpart to Solidity's `uint216` operator. * * Requirements: * * - input must fit into 216 bits */ function toUint216(uint256 value) internal pure returns (uint216) { if (value > type(uint216).max) { revert SafeCastOverflowedUintDowncast(216, value); } return uint216(value); } /** * @dev Returns the downcasted uint208 from uint256, reverting on * overflow (when the input is greater than largest uint208). * * Counterpart to Solidity's `uint208` operator. * * Requirements: * * - input must fit into 208 bits */ function toUint208(uint256 value) internal pure returns (uint208) { if (value > type(uint208).max) { revert SafeCastOverflowedUintDowncast(208, value); } return uint208(value); } /** * @dev Returns the downcasted uint200 from uint256, reverting on * overflow (when the input is greater than largest uint200). * * Counterpart to Solidity's `uint200` operator. * * Requirements: * * - input must fit into 200 bits */ function toUint200(uint256 value) internal pure returns (uint200) { if (value > type(uint200).max) { revert SafeCastOverflowedUintDowncast(200, value); } return uint200(value); } /** * @dev Returns the downcasted uint192 from uint256, reverting on * overflow (when the input is greater than largest uint192). * * Counterpart to Solidity's `uint192` operator. * * Requirements: * * - input must fit into 192 bits */ function toUint192(uint256 value) internal pure returns (uint192) { if (value > type(uint192).max) { revert SafeCastOverflowedUintDowncast(192, value); } return uint192(value); } /** * @dev Returns the downcasted uint184 from uint256, reverting on * overflow (when the input is greater than largest uint184). * * Counterpart to Solidity's `uint184` operator. * * Requirements: * * - input must fit into 184 bits */ function toUint184(uint256 value) internal pure returns (uint184) { if (value > type(uint184).max) { revert SafeCastOverflowedUintDowncast(184, value); } return uint184(value); } /** * @dev Returns the downcasted uint176 from uint256, reverting on * overflow (when the input is greater than largest uint176). * * Counterpart to Solidity's `uint176` operator. * * Requirements: * * - input must fit into 176 bits */ function toUint176(uint256 value) internal pure returns (uint176) { if (value > type(uint176).max) { revert SafeCastOverflowedUintDowncast(176, value); } return uint176(value); } /** * @dev Returns the downcasted uint168 from uint256, reverting on * overflow (when the input is greater than largest uint168). * * Counterpart to Solidity's `uint168` operator. * * Requirements: * * - input must fit into 168 bits */ function toUint168(uint256 value) internal pure returns (uint168) { if (value > type(uint168).max) { revert SafeCastOverflowedUintDowncast(168, value); } return uint168(value); } /** * @dev Returns the downcasted uint160 from uint256, reverting on * overflow (when the input is greater than largest uint160). * * Counterpart to Solidity's `uint160` operator. * * Requirements: * * - input must fit into 160 bits */ function toUint160(uint256 value) internal pure returns (uint160) { if (value > type(uint160).max) { revert SafeCastOverflowedUintDowncast(160, value); } return uint160(value); } /** * @dev Returns the downcasted uint152 from uint256, reverting on * overflow (when the input is greater than largest uint152). * * Counterpart to Solidity's `uint152` operator. * * Requirements: * * - input must fit into 152 bits */ function toUint152(uint256 value) internal pure returns (uint152) { if (value > type(uint152).max) { revert SafeCastOverflowedUintDowncast(152, value); } return uint152(value); } /** * @dev Returns the downcasted uint144 from uint256, reverting on * overflow (when the input is greater than largest uint144). * * Counterpart to Solidity's `uint144` operator. * * Requirements: * * - input must fit into 144 bits */ function toUint144(uint256 value) internal pure returns (uint144) { if (value > type(uint144).max) { revert SafeCastOverflowedUintDowncast(144, value); } return uint144(value); } /** * @dev Returns the downcasted uint136 from uint256, reverting on * overflow (when the input is greater than largest uint136). * * Counterpart to Solidity's `uint136` operator. * * Requirements: * * - input must fit into 136 bits */ function toUint136(uint256 value) internal pure returns (uint136) { if (value > type(uint136).max) { revert SafeCastOverflowedUintDowncast(136, value); } return uint136(value); } /** * @dev Returns the downcasted uint128 from uint256, reverting on * overflow (when the input is greater than largest uint128). * * Counterpart to Solidity's `uint128` operator. * * Requirements: * * - input must fit into 128 bits */ function toUint128(uint256 value) internal pure returns (uint128) { if (value > type(uint128).max) { revert SafeCastOverflowedUintDowncast(128, value); } return uint128(value); } /** * @dev Returns the downcasted uint120 from uint256, reverting on * overflow (when the input is greater than largest uint120). * * Counterpart to Solidity's `uint120` operator. * * Requirements: * * - input must fit into 120 bits */ function toUint120(uint256 value) internal pure returns (uint120) { if (value > type(uint120).max) { revert SafeCastOverflowedUintDowncast(120, value); } return uint120(value); } /** * @dev Returns the downcasted uint112 from uint256, reverting on * overflow (when the input is greater than largest uint112). * * Counterpart to Solidity's `uint112` operator. * * Requirements: * * - input must fit into 112 bits */ function toUint112(uint256 value) internal pure returns (uint112) { if (value > type(uint112).max) { revert SafeCastOverflowedUintDowncast(112, value); } return uint112(value); } /** * @dev Returns the downcasted uint104 from uint256, reverting on * overflow (when the input is greater than largest uint104). * * Counterpart to Solidity's `uint104` operator. * * Requirements: * * - input must fit into 104 bits */ function toUint104(uint256 value) internal pure returns (uint104) { if (value > type(uint104).max) { revert SafeCastOverflowedUintDowncast(104, value); } return uint104(value); } /** * @dev Returns the downcasted uint96 from uint256, reverting on * overflow (when the input is greater than largest uint96). * * Counterpart to Solidity's `uint96` operator. * * Requirements: * * - input must fit into 96 bits */ function toUint96(uint256 value) internal pure returns (uint96) { if (value > type(uint96).max) { revert SafeCastOverflowedUintDowncast(96, value); } return uint96(value); } /** * @dev Returns the downcasted uint88 from uint256, reverting on * overflow (when the input is greater than largest uint88). * * Counterpart to Solidity's `uint88` operator. * * Requirements: * * - input must fit into 88 bits */ function toUint88(uint256 value) internal pure returns (uint88) { if (value > type(uint88).max) { revert SafeCastOverflowedUintDowncast(88, value); } return uint88(value); } /** * @dev Returns the downcasted uint80 from uint256, reverting on * overflow (when the input is greater than largest uint80). * * Counterpart to Solidity's `uint80` operator. * * Requirements: * * - input must fit into 80 bits */ function toUint80(uint256 value) internal pure returns (uint80) { if (value > type(uint80).max) { revert SafeCastOverflowedUintDowncast(80, value); } return uint80(value); } /** * @dev Returns the downcasted uint72 from uint256, reverting on * overflow (when the input is greater than largest uint72). * * Counterpart to Solidity's `uint72` operator. * * Requirements: * * - input must fit into 72 bits */ function toUint72(uint256 value) internal pure returns (uint72) { if (value > type(uint72).max) { revert SafeCastOverflowedUintDowncast(72, value); } return uint72(value); } /** * @dev Returns the downcasted uint64 from uint256, reverting on * overflow (when the input is greater than largest uint64). * * Counterpart to Solidity's `uint64` operator. * * Requirements: * * - input must fit into 64 bits */ function toUint64(uint256 value) internal pure returns (uint64) { if (value > type(uint64).max) { revert SafeCastOverflowedUintDowncast(64, value); } return uint64(value); } /** * @dev Returns the downcasted uint56 from uint256, reverting on * overflow (when the input is greater than largest uint56). * * Counterpart to Solidity's `uint56` operator. * * Requirements: * * - input must fit into 56 bits */ function toUint56(uint256 value) internal pure returns (uint56) { if (value > type(uint56).max) { revert SafeCastOverflowedUintDowncast(56, value); } return uint56(value); } /** * @dev Returns the downcasted uint48 from uint256, reverting on * overflow (when the input is greater than largest uint48). * * Counterpart to Solidity's `uint48` operator. * * Requirements: * * - input must fit into 48 bits */ function toUint48(uint256 value) internal pure returns (uint48) { if (value > type(uint48).max) { revert SafeCastOverflowedUintDowncast(48, value); } return uint48(value); } /** * @dev Returns the downcasted uint40 from uint256, reverting on * overflow (when the input is greater than largest uint40). * * Counterpart to Solidity's `uint40` operator. * * Requirements: * * - input must fit into 40 bits */ function toUint40(uint256 value) internal pure returns (uint40) { if (value > type(uint40).max) { revert SafeCastOverflowedUintDowncast(40, value); } return uint40(value); } /** * @dev Returns the downcasted uint32 from uint256, reverting on * overflow (when the input is greater than largest uint32). * * Counterpart to Solidity's `uint32` operator. * * Requirements: * * - input must fit into 32 bits */ function toUint32(uint256 value) internal pure returns (uint32) { if (value > type(uint32).max) { revert SafeCastOverflowedUintDowncast(32, value); } return uint32(value); } /** * @dev Returns the downcasted uint24 from uint256, reverting on * overflow (when the input is greater than largest uint24). * * Counterpart to Solidity's `uint24` operator. * * Requirements: * * - input must fit into 24 bits */ function toUint24(uint256 value) internal pure returns (uint24) { if (value > type(uint24).max) { revert SafeCastOverflowedUintDowncast(24, value); } return uint24(value); } /** * @dev Returns the downcasted uint16 from uint256, reverting on * overflow (when the input is greater than largest uint16). * * Counterpart to Solidity's `uint16` operator. * * Requirements: * * - input must fit into 16 bits */ function toUint16(uint256 value) internal pure returns (uint16) { if (value > type(uint16).max) { revert SafeCastOverflowedUintDowncast(16, value); } return uint16(value); } /** * @dev Returns the downcasted uint8 from uint256, reverting on * overflow (when the input is greater than largest uint8). * * Counterpart to Solidity's `uint8` operator. * * Requirements: * * - input must fit into 8 bits */ function toUint8(uint256 value) internal pure returns (uint8) { if (value > type(uint8).max) { revert SafeCastOverflowedUintDowncast(8, value); } return uint8(value); } /** * @dev Converts a signed int256 into an unsigned uint256. * * Requirements: * * - input must be greater than or equal to 0. */ function toUint256(int256 value) internal pure returns (uint256) { if (value < 0) { revert SafeCastOverflowedIntToUint(value); } return uint256(value); } /** * @dev Returns the downcasted int248 from int256, reverting on * overflow (when the input is less than smallest int248 or * greater than largest int248). * * Counterpart to Solidity's `int248` operator. * * Requirements: * * - input must fit into 248 bits */ function toInt248(int256 value) internal pure returns (int248 downcasted) { downcasted = int248(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(248, value); } } /** * @dev Returns the downcasted int240 from int256, reverting on * overflow (when the input is less than smallest int240 or * greater than largest int240). * * Counterpart to Solidity's `int240` operator. * * Requirements: * * - input must fit into 240 bits */ function toInt240(int256 value) internal pure returns (int240 downcasted) { downcasted = int240(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(240, value); } } /** * @dev Returns the downcasted int232 from int256, reverting on * overflow (when the input is less than smallest int232 or * greater than largest int232). * * Counterpart to Solidity's `int232` operator. * * Requirements: * * - input must fit into 232 bits */ function toInt232(int256 value) internal pure returns (int232 downcasted) { downcasted = int232(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(232, value); } } /** * @dev Returns the downcasted int224 from int256, reverting on * overflow (when the input is less than smallest int224 or * greater than largest int224). * * Counterpart to Solidity's `int224` operator. * * Requirements: * * - input must fit into 224 bits */ function toInt224(int256 value) internal pure returns (int224 downcasted) { downcasted = int224(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(224, value); } } /** * @dev Returns the downcasted int216 from int256, reverting on * overflow (when the input is less than smallest int216 or * greater than largest int216). * * Counterpart to Solidity's `int216` operator. * * Requirements: * * - input must fit into 216 bits */ function toInt216(int256 value) internal pure returns (int216 downcasted) { downcasted = int216(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(216, value); } } /** * @dev Returns the downcasted int208 from int256, reverting on * overflow (when the input is less than smallest int208 or * greater than largest int208). * * Counterpart to Solidity's `int208` operator. * * Requirements: * * - input must fit into 208 bits */ function toInt208(int256 value) internal pure returns (int208 downcasted) { downcasted = int208(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(208, value); } } /** * @dev Returns the downcasted int200 from int256, reverting on * overflow (when the input is less than smallest int200 or * greater than largest int200). * * Counterpart to Solidity's `int200` operator. * * Requirements: * * - input must fit into 200 bits */ function toInt200(int256 value) internal pure returns (int200 downcasted) { downcasted = int200(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(200, value); } } /** * @dev Returns the downcasted int192 from int256, reverting on * overflow (when the input is less than smallest int192 or * greater than largest int192). * * Counterpart to Solidity's `int192` operator. * * Requirements: * * - input must fit into 192 bits */ function toInt192(int256 value) internal pure returns (int192 downcasted) { downcasted = int192(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(192, value); } } /** * @dev Returns the downcasted int184 from int256, reverting on * overflow (when the input is less than smallest int184 or * greater than largest int184). * * Counterpart to Solidity's `int184` operator. * * Requirements: * * - input must fit into 184 bits */ function toInt184(int256 value) internal pure returns (int184 downcasted) { downcasted = int184(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(184, value); } } /** * @dev Returns the downcasted int176 from int256, reverting on * overflow (when the input is less than smallest int176 or * greater than largest int176). * * Counterpart to Solidity's `int176` operator. * * Requirements: * * - input must fit into 176 bits */ function toInt176(int256 value) internal pure returns (int176 downcasted) { downcasted = int176(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(176, value); } } /** * @dev Returns the downcasted int168 from int256, reverting on * overflow (when the input is less than smallest int168 or * greater than largest int168). * * Counterpart to Solidity's `int168` operator. * * Requirements: * * - input must fit into 168 bits */ function toInt168(int256 value) internal pure returns (int168 downcasted) { downcasted = int168(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(168, value); } } /** * @dev Returns the downcasted int160 from int256, reverting on * overflow (when the input is less than smallest int160 or * greater than largest int160). * * Counterpart to Solidity's `int160` operator. * * Requirements: * * - input must fit into 160 bits */ function toInt160(int256 value) internal pure returns (int160 downcasted) { downcasted = int160(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(160, value); } } /** * @dev Returns the downcasted int152 from int256, reverting on * overflow (when the input is less than smallest int152 or * greater than largest int152). * * Counterpart to Solidity's `int152` operator. * * Requirements: * * - input must fit into 152 bits */ function toInt152(int256 value) internal pure returns (int152 downcasted) { downcasted = int152(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(152, value); } } /** * @dev Returns the downcasted int144 from int256, reverting on * overflow (when the input is less than smallest int144 or * greater than largest int144). * * Counterpart to Solidity's `int144` operator. * * Requirements: * * - input must fit into 144 bits */ function toInt144(int256 value) internal pure returns (int144 downcasted) { downcasted = int144(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(144, value); } } /** * @dev Returns the downcasted int136 from int256, reverting on * overflow (when the input is less than smallest int136 or * greater than largest int136). * * Counterpart to Solidity's `int136` operator. * * Requirements: * * - input must fit into 136 bits */ function toInt136(int256 value) internal pure returns (int136 downcasted) { downcasted = int136(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(136, value); } } /** * @dev Returns the downcasted int128 from int256, reverting on * overflow (when the input is less than smallest int128 or * greater than largest int128). * * Counterpart to Solidity's `int128` operator. * * Requirements: * * - input must fit into 128 bits */ function toInt128(int256 value) internal pure returns (int128 downcasted) { downcasted = int128(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(128, value); } } /** * @dev Returns the downcasted int120 from int256, reverting on * overflow (when the input is less than smallest int120 or * greater than largest int120). * * Counterpart to Solidity's `int120` operator. * * Requirements: * * - input must fit into 120 bits */ function toInt120(int256 value) internal pure returns (int120 downcasted) { downcasted = int120(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(120, value); } } /** * @dev Returns the downcasted int112 from int256, reverting on * overflow (when the input is less than smallest int112 or * greater than largest int112). * * Counterpart to Solidity's `int112` operator. * * Requirements: * * - input must fit into 112 bits */ function toInt112(int256 value) internal pure returns (int112 downcasted) { downcasted = int112(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(112, value); } } /** * @dev Returns the downcasted int104 from int256, reverting on * overflow (when the input is less than smallest int104 or * greater than largest int104). * * Counterpart to Solidity's `int104` operator. * * Requirements: * * - input must fit into 104 bits */ function toInt104(int256 value) internal pure returns (int104 downcasted) { downcasted = int104(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(104, value); } } /** * @dev Returns the downcasted int96 from int256, reverting on * overflow (when the input is less than smallest int96 or * greater than largest int96). * * Counterpart to Solidity's `int96` operator. * * Requirements: * * - input must fit into 96 bits */ function toInt96(int256 value) internal pure returns (int96 downcasted) { downcasted = int96(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(96, value); } } /** * @dev Returns the downcasted int88 from int256, reverting on * overflow (when the input is less than smallest int88 or * greater than largest int88). * * Counterpart to Solidity's `int88` operator. * * Requirements: * * - input must fit into 88 bits */ function toInt88(int256 value) internal pure returns (int88 downcasted) { downcasted = int88(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(88, value); } } /** * @dev Returns the downcasted int80 from int256, reverting on * overflow (when the input is less than smallest int80 or * greater than largest int80). * * Counterpart to Solidity's `int80` operator. * * Requirements: * * - input must fit into 80 bits */ function toInt80(int256 value) internal pure returns (int80 downcasted) { downcasted = int80(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(80, value); } } /** * @dev Returns the downcasted int72 from int256, reverting on * overflow (when the input is less than smallest int72 or * greater than largest int72). * * Counterpart to Solidity's `int72` operator. * * Requirements: * * - input must fit into 72 bits */ function toInt72(int256 value) internal pure returns (int72 downcasted) { downcasted = int72(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(72, value); } } /** * @dev Returns the downcasted int64 from int256, reverting on * overflow (when the input is less than smallest int64 or * greater than largest int64). * * Counterpart to Solidity's `int64` operator. * * Requirements: * * - input must fit into 64 bits */ function toInt64(int256 value) internal pure returns (int64 downcasted) { downcasted = int64(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(64, value); } } /** * @dev Returns the downcasted int56 from int256, reverting on * overflow (when the input is less than smallest int56 or * greater than largest int56). * * Counterpart to Solidity's `int56` operator. * * Requirements: * * - input must fit into 56 bits */ function toInt56(int256 value) internal pure returns (int56 downcasted) { downcasted = int56(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(56, value); } } /** * @dev Returns the downcasted int48 from int256, reverting on * overflow (when the input is less than smallest int48 or * greater than largest int48). * * Counterpart to Solidity's `int48` operator. * * Requirements: * * - input must fit into 48 bits */ function toInt48(int256 value) internal pure returns (int48 downcasted) { downcasted = int48(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(48, value); } } /** * @dev Returns the downcasted int40 from int256, reverting on * overflow (when the input is less than smallest int40 or * greater than largest int40). * * Counterpart to Solidity's `int40` operator. * * Requirements: * * - input must fit into 40 bits */ function toInt40(int256 value) internal pure returns (int40 downcasted) { downcasted = int40(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(40, value); } } /** * @dev Returns the downcasted int32 from int256, reverting on * overflow (when the input is less than smallest int32 or * greater than largest int32). * * Counterpart to Solidity's `int32` operator. * * Requirements: * * - input must fit into 32 bits */ function toInt32(int256 value) internal pure returns (int32 downcasted) { downcasted = int32(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(32, value); } } /** * @dev Returns the downcasted int24 from int256, reverting on * overflow (when the input is less than smallest int24 or * greater than largest int24). * * Counterpart to Solidity's `int24` operator. * * Requirements: * * - input must fit into 24 bits */ function toInt24(int256 value) internal pure returns (int24 downcasted) { downcasted = int24(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(24, value); } } /** * @dev Returns the downcasted int16 from int256, reverting on * overflow (when the input is less than smallest int16 or * greater than largest int16). * * Counterpart to Solidity's `int16` operator. * * Requirements: * * - input must fit into 16 bits */ function toInt16(int256 value) internal pure returns (int16 downcasted) { downcasted = int16(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(16, value); } } /** * @dev Returns the downcasted int8 from int256, reverting on * overflow (when the input is less than smallest int8 or * greater than largest int8). * * Counterpart to Solidity's `int8` operator. * * Requirements: * * - input must fit into 8 bits */ function toInt8(int256 value) internal pure returns (int8 downcasted) { downcasted = int8(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(8, value); } } /** * @dev Converts an unsigned uint256 into a signed int256. * * Requirements: * * - input must be less than or equal to maxInt256. */ function toInt256(uint256 value) internal pure returns (int256) { // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive if (value > uint256(type(int256).max)) { revert SafeCastOverflowedUintToInt(value); } return int256(value); } /** * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump. */ function toUint(bool b) internal pure returns (uint256 u) { assembly ("memory-safe") { u := iszero(iszero(b)) } } } // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an success flag (no overflow). */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an success flag (no overflow). */ function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an success flag (no overflow). */ function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a success flag (no division by zero). */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero). */ function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant. * * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone. * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute * one branch when needed, making this function more expensive. */ function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) { unchecked { // branchless ternary works because: // b ^ (a ^ b) == a // b ^ 0 == b return b ^ ((a ^ b) * SafeCast.toUint(condition)); } } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return ternary(a > b, a, b); } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return ternary(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 towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. Panic.panic(Panic.DIVISION_BY_ZERO); } // The following calculation ensures accurate ceiling division without overflow. // Since a is non-zero, (a - 1) / b will not overflow. // The largest possible result occurs when (a - 1) / b is type(uint256).max, // but the largest value we can obtain is type(uint256).max - 1, which happens // when a = type(uint256).max and b = 1. unchecked { return SafeCast.toUint(a > 0) * ((a - 1) / b + 1); } } /** * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or * denominator == 0. * * 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²⁵⁶ and mod 2²⁵⁶ - 1, then use // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2²⁵⁶ + prod0. uint256 prod0 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) 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²⁵⁶. Also prevents denominator == 0. if (denominator <= prod1) { Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_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. uint256 twos = denominator & (0 - denominator); 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²⁵⁶ / 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²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv ≡ 1 mod 2⁴. 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⁸ inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶ inverse *= 2 - denominator * inverse; // inverse mod 2³² inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴ inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸ inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶ // 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²⁵⁶. Since the preconditions guarantee that the outcome is // less than 2²⁵⁶, 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; } } /** * @dev 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) { return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0); } /** * @dev Calculate the modular multiplicative inverse of a number in Z/nZ. * * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0. * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible. * * If the input value is not inversible, 0 is returned. * * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}. */ function invMod(uint256 a, uint256 n) internal pure returns (uint256) { unchecked { if (n == 0) return 0; // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version) // Used to compute integers x and y such that: ax + ny = gcd(a, n). // When the gcd is 1, then the inverse of a modulo n exists and it's x. // ax + ny = 1 // ax = 1 + (-y)n // ax ≡ 1 (mod n) # x is the inverse of a modulo n // If the remainder is 0 the gcd is n right away. uint256 remainder = a % n; uint256 gcd = n; // Therefore the initial coefficients are: // ax + ny = gcd(a, n) = n // 0a + 1n = n int256 x = 0; int256 y = 1; while (remainder != 0) { uint256 quotient = gcd / remainder; (gcd, remainder) = ( // The old remainder is the next gcd to try. remainder, // Compute the next remainder. // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd // where gcd is at most n (capped to type(uint256).max) gcd - remainder * quotient ); (x, y) = ( // Increment the coefficient of a. y, // Decrement the coefficient of n. // Can overflow, but the result is casted to uint256 so that the // next value of y is "wrapped around" to a value between 0 and n - 1. x - y * int256(quotient) ); } if (gcd != 1) return 0; // No inverse exists. return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative. } } /** * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`. * * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that * `a**(p-2)` is the modular multiplicative inverse of a in Fp. * * NOTE: this function does NOT check that `p` is a prime greater than `2`. */ function invModPrime(uint256 a, uint256 p) internal view returns (uint256) { unchecked { return Math.modExp(a, p - 2, p); } } /** * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m) * * Requirements: * - modulus can't be zero * - underlying staticcall to precompile must succeed * * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make * sure the chain you're using it on supports the precompiled contract for modular exponentiation * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, * the underlying function will succeed given the lack of a revert, but the result may be incorrectly * interpreted as 0. */ function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) { (bool success, uint256 result) = tryModExp(b, e, m); if (!success) { Panic.panic(Panic.DIVISION_BY_ZERO); } return result; } /** * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m). * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying * to operate modulo 0 or if the underlying precompile reverted. * * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack * of a revert, but the result may be incorrectly interpreted as 0. */ function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) { if (m == 0) return (false, 0); assembly ("memory-safe") { let ptr := mload(0x40) // | Offset | Content | Content (Hex) | // |-----------|------------|--------------------------------------------------------------------| // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 | // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 | // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 | // | 0x60:0x7f | value of b | 0x<.............................................................b> | // | 0x80:0x9f | value of e | 0x<.............................................................e> | // | 0xa0:0xbf | value of m | 0x<.............................................................m> | mstore(ptr, 0x20) mstore(add(ptr, 0x20), 0x20) mstore(add(ptr, 0x40), 0x20) mstore(add(ptr, 0x60), b) mstore(add(ptr, 0x80), e) mstore(add(ptr, 0xa0), m) // Given the result < m, it's guaranteed to fit in 32 bytes, // so we can use the memory scratch space located at offset 0. success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20) result := mload(0x00) } } /** * @dev Variant of {modExp} that supports inputs of arbitrary length. */ function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) { (bool success, bytes memory result) = tryModExp(b, e, m); if (!success) { Panic.panic(Panic.DIVISION_BY_ZERO); } return result; } /** * @dev Variant of {tryModExp} that supports inputs of arbitrary length. */ function tryModExp( bytes memory b, bytes memory e, bytes memory m ) internal view returns (bool success, bytes memory result) { if (_zeroBytes(m)) return (false, new bytes(0)); uint256 mLen = m.length; // Encode call args in result and move the free memory pointer result = abi.encodePacked(b.length, e.length, mLen, b, e, m); assembly ("memory-safe") { let dataPtr := add(result, 0x20) // Write result on top of args to avoid allocating extra memory. success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen) // Overwrite the length. // result.length > returndatasize() is guaranteed because returndatasize() == m.length mstore(result, mLen) // Set the memory pointer after the returned data. mstore(0x40, add(dataPtr, mLen)) } } /** * @dev Returns whether the provided byte array is zero. */ function _zeroBytes(bytes memory byteArray) private pure returns (bool) { for (uint256 i = 0; i < byteArray.length; ++i) { if (byteArray[i] != 0) { return false; } } return true; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded * towards zero. * * This method is based on Newton's method for computing square roots; the algorithm is restricted to only * using integer operations. */ function sqrt(uint256 a) internal pure returns (uint256) { unchecked { // Take care of easy edge cases when a == 0 or a == 1 if (a <= 1) { return a; } // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between // the current value as `ε_n = | x_n - sqrt(a) |`. // // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is // bigger than any uint256. // // By noticing that // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)` // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar // to the msb function. uint256 aa = a; uint256 xn = 1; if (aa >= (1 << 128)) { aa >>= 128; xn <<= 64; } if (aa >= (1 << 64)) { aa >>= 64; xn <<= 32; } if (aa >= (1 << 32)) { aa >>= 32; xn <<= 16; } if (aa >= (1 << 16)) { aa >>= 16; xn <<= 8; } if (aa >= (1 << 8)) { aa >>= 8; xn <<= 4; } if (aa >= (1 << 4)) { aa >>= 4; xn <<= 2; } if (aa >= (1 << 2)) { xn <<= 1; } // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1). // // We can refine our estimation by noticing that the middle of that interval minimizes the error. // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2). // This is going to be our x_0 (and ε_0) xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2) // From here, Newton's method give us: // x_{n+1} = (x_n + a / x_n) / 2 // // One should note that: // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a // = ((x_n² + a) / (2 * x_n))² - a // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²) // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²) // = (x_n² - a)² / (2 * x_n)² // = ((x_n² - a) / (2 * x_n))² // ≥ 0 // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n // // This gives us the proof of quadratic convergence of the sequence: // ε_{n+1} = | x_{n+1} - sqrt(a) | // = | (x_n + a / x_n) / 2 - sqrt(a) | // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) | // = | (x_n - sqrt(a))² / (2 * x_n) | // = | ε_n² / (2 * x_n) | // = ε_n² / | (2 * x_n) | // // For the first iteration, we have a special case where x_0 is known: // ε_1 = ε_0² / | (2 * x_0) | // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2))) // ≤ 2**(2*e-4) / (3 * 2**(e-1)) // ≤ 2**(e-3) / 3 // ≤ 2**(e-3-log2(3)) // ≤ 2**(e-4.5) // // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n: // ε_{n+1} = ε_n² / | (2 * x_n) | // ≤ (2**(e-k))² / (2 * 2**(e-1)) // ≤ 2**(2*e-2*k) / 2**e // ≤ 2**(e-2*k) xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5 xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9 xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18 xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36 xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72 // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either // sqrt(a) or sqrt(a) + 1. return xn - SafeCast.toUint(xn > a / xn); } } /** * @dev 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 + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; uint256 exp; unchecked { exp = 128 * SafeCast.toUint(value > (1 << 128) - 1); value >>= exp; result += exp; exp = 64 * SafeCast.toUint(value > (1 << 64) - 1); value >>= exp; result += exp; exp = 32 * SafeCast.toUint(value > (1 << 32) - 1); value >>= exp; result += exp; exp = 16 * SafeCast.toUint(value > (1 << 16) - 1); value >>= exp; result += exp; exp = 8 * SafeCast.toUint(value > (1 << 8) - 1); value >>= exp; result += exp; exp = 4 * SafeCast.toUint(value > (1 << 4) - 1); value >>= exp; result += exp; exp = 2 * SafeCast.toUint(value > (1 << 2) - 1); value >>= exp; result += exp; result += SafeCast.toUint(value > 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 + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * 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 + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * 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; uint256 isGt; unchecked { isGt = SafeCast.toUint(value > (1 << 128) - 1); value >>= isGt * 128; result += isGt * 16; isGt = SafeCast.toUint(value > (1 << 64) - 1); value >>= isGt * 64; result += isGt * 8; isGt = SafeCast.toUint(value > (1 << 32) - 1); value >>= isGt * 32; result += isGt * 4; isGt = SafeCast.toUint(value > (1 << 16) - 1); value >>= isGt * 16; result += isGt * 2; result += SafeCast.toUint(value > (1 << 8) - 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 + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } } // File: @openzeppelin/contracts/utils/math/SignedMath.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.20; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant. * * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone. * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute * one branch when needed, making this function more expensive. */ function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) { unchecked { // branchless ternary works because: // b ^ (a ^ b) == a // b ^ 0 == b return b ^ ((a ^ b) * int256(SafeCast.toUint(condition))); } } /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return ternary(a > b, a, b); } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return ternary(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 { // Formula from the "Bit Twiddling Hacks" by Sean Eron Anderson. // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift, // taking advantage of the most significant (or "sign" bit) in two's complement representation. // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result, // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative). int256 mask = n >> 255; // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it. return uint256((n + mask) ^ mask); } } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/Strings.sol) pragma solidity ^0.8.20; /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @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; assembly ("memory-safe") { ptr := add(buffer, add(32, length)) } while (true) { ptr--; assembly ("memory-safe") { mstore8(ptr, byte(mod(value, 10), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(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) { uint256 localValue = value; 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] = HEX_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } 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 Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal * representation, according to EIP-55. */ function toChecksumHexString(address addr) internal pure returns (string memory) { bytes memory buffer = bytes(toHexString(addr)); // hash the hex part of buffer (skip length + 2 bytes, length 40) uint256 hashValue; assembly ("memory-safe") { hashValue := shr(96, keccak256(add(buffer, 0x22), 40)) } for (uint256 i = 41; i > 1; --i) { // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f) if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) { // case shift by xoring with 0x20 buffer[i] ^= 0x20; } hashValue >>= 4; } return string(buffer); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: @openzeppelin/contracts/token/ERC721/ERC721.sol // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.20; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC-721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors { using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; mapping(uint256 tokenId => address) private _owners; mapping(address owner => uint256) private _balances; mapping(uint256 tokenId => address) private _tokenApprovals; mapping(address owner => mapping(address operator => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual returns (uint256) { if (owner == address(0)) { revert ERC721InvalidOwner(address(0)); } return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual returns (address) { return _requireOwned(tokenId); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual returns (string memory) { _requireOwned(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string.concat(baseURI, tokenId.toString()) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual { _approve(to, tokenId, _msgSender()); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual returns (address) { _requireOwned(tokenId); return _getApproved(tokenId); } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } // Setting an "auth" arguments enables the `_isAuthorized` check which verifies that the token exists // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here. address previousOwner = _update(to, tokenId, _msgSender()); if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual { transferFrom(from, to, tokenId); ERC721Utils.checkOnERC721Received(_msgSender(), from, to, tokenId, data); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist * * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the * core ERC-721 logic MUST be matched with the use of {_increaseBalance} to keep balances * consistent with ownership. The invariant to preserve is that for any address `a` the value returned by * `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`. */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted. */ function _getApproved(uint256 tokenId) internal view virtual returns (address) { return _tokenApprovals[tokenId]; } /** * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in * particular (ignoring whether it is owned by `owner`). * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) { return spender != address(0) && (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender); } /** * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner. * Reverts if: * - `spender` does not have approval from `owner` for `tokenId`. * - `spender` does not have approval to manage all of `owner`'s assets. * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual { if (!_isAuthorized(owner, spender, tokenId)) { if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } else { revert ERC721InsufficientApproval(spender, tokenId); } } } /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that * a uint256 would ever overflow from increments when these increments are bounded to uint128 values. * * WARNING: Increasing an account's balance using this function tends to be paired with an override of the * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership * remain consistent with one another. */ function _increaseBalance(address account, uint128 value) internal virtual { unchecked { _balances[account] += value; } } /** * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update. * * The `auth` argument is optional. If the value passed is non 0, then this function will check that * `auth` is either the owner of the token, or approved to operate on the token (by the owner). * * Emits a {Transfer} event. * * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}. */ function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) { address from = _ownerOf(tokenId); // Perform (optional) operator check if (auth != address(0)) { _checkAuthorized(from, auth, tokenId); } // Execute the update if (from != address(0)) { // Clear approval. No need to re-authorize or emit the Approval event _approve(address(0), tokenId, address(0), false); unchecked { _balances[from] -= 1; } } if (to != address(0)) { unchecked { _balances[to] += 1; } } _owners[tokenId] = to; emit Transfer(from, to, tokenId); return from; } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner != address(0)) { revert ERC721InvalidSender(address(0)); } } /** * @dev Mints `tokenId`, transfers it to `to` and checks for `to` acceptance. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual { _mint(to, tokenId); ERC721Utils.checkOnERC721Received(_msgSender(), address(0), to, tokenId, data); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal { address previousOwner = _update(address(0), tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(tokenId); } } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(tokenId); } else if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking that contract recipients * are aware of the ERC-721 standard to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is like {safeTransferFrom} in the sense that it invokes * {IERC721Receiver-onERC721Received} on the receiver, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `tokenId` token must exist and be owned by `from`. * - `to` cannot be the zero address. * - `from` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId) internal { _safeTransfer(from, to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual { _transfer(from, to, tokenId); ERC721Utils.checkOnERC721Received(_msgSender(), from, to, tokenId, data); } /** * @dev Approve `to` to operate on `tokenId` * * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is * either the owner of the token, or approved to operate on all tokens held by this owner. * * Emits an {Approval} event. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address to, uint256 tokenId, address auth) internal { _approve(to, tokenId, auth, true); } /** * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not * emitted in the context of transfers. */ function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual { // Avoid reading the owner unless necessary if (emitEvent || auth != address(0)) { address owner = _requireOwned(tokenId); // We do not use _isAuthorized because single-token approvals should not be able to call approve if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) { revert ERC721InvalidApprover(auth); } if (emitEvent) { emit Approval(owner, to, tokenId); } } _tokenApprovals[tokenId] = to; } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Requirements: * - operator can't be the address zero. * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { if (operator == address(0)) { revert ERC721InvalidOperator(operator); } _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned). * Returns the owner. * * Overrides to ownership logic should be done to {_ownerOf}. */ function _requireOwned(uint256 tokenId) internal view returns (address) { address owner = _ownerOf(tokenId); if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } return owner; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; /** * @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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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 { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: @openzeppelin/contracts/interfaces/IERC2981.sol // OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.20; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. * * NOTE: ERC-2981 allows setting the royalty to 100% of the price. In that case all the price would be sent to the * royalty receiver and 0 tokens to the seller. Contracts dealing with royalty should consider empty transfers. */ function royaltyInfo( uint256 tokenId, uint256 salePrice ) external view returns (address receiver, uint256 royaltyAmount); } // File: BT_47_Token.sol pragma solidity ^0.8.28; contract BT_47_Token is ERC721, Ownable, IERC2981 { using Strings for uint256; uint256 public maxSupply; // Maximum supply of NFTs uint256 public currentSupply; // Current number of minted NFTs bool public saleIsActive = false; // Sale state string private baseURI; // Base URI for metadata uint256 public constant PRICE_PER_NFT = 0.02 ether; // Price per NFT uint256 public constant MAX_MINT_PER_TRANSACTION = 20; // Limit mints per transaction mapping(address => bool) private whitelist; // Whitelist mapping mapping(address => bool) private hasMintedFree; // Track free minting // Royalty information uint256 private royaltyBasisPoints = 1000; // 10% royalty (1000 basis points) constructor( string memory name_, string memory symbol_, uint256 _maxSupply, address initialOwner, uint256 initialMintAmount ) ERC721(name_, symbol_) Ownable(initialOwner) { maxSupply = _maxSupply; currentSupply = 0; // Mint initial NFTs to the owner's wallet for (uint256 i = 0; i < initialMintAmount; i++) { currentSupply += 1; _safeMint(initialOwner, currentSupply); } } function mint(uint256 quantity) external payable { require(quantity > 0 && quantity <= MAX_MINT_PER_TRANSACTION, "Invalid mint quantity"); require(currentSupply + quantity <= maxSupply, "Max supply reached"); uint256 totalPrice = PRICE_PER_NFT * quantity; // Allow whitelisted users to mint for free even if the public sale is not active if (whitelist[msg.sender] && !hasMintedFree[msg.sender] && quantity == 1) { hasMintedFree[msg.sender] = true; // Mark as having minted free } else { require(saleIsActive || msg.sender == owner(), "Sale is not active"); require(msg.value == totalPrice, "Incorrect ETH amount sent"); } for (uint256 i = 0; i < quantity; i++) { currentSupply += 1; _safeMint(msg.sender, currentSupply); } } function addToWhitelist(address[] calldata addresses) external onlyOwner { for (uint256 i = 0; i < addresses.length; i++) { whitelist[addresses[i]] = true; } } function setSaleState(bool _saleIsActive) external onlyOwner { saleIsActive = _saleIsActive; } function setBaseURI(string memory _baseURI) external onlyOwner { baseURI = _baseURI; } function withdraw() external onlyOwner { uint256 balance = address(this).balance; payable(owner()).transfer(balance); } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(tokenId > 0 && tokenId <= currentSupply, "ERC721Metadata: URI query for nonexistent token"); return string(abi.encodePacked(baseURI, tokenId.toString(), ".json")); } function supply() public view returns (uint256) { return currentSupply; } function totalSupply() public view returns (uint256) { return maxSupply; } // Implementing the ERC-2981 royalty info function function royaltyInfo(uint256 /* tokenId */, uint256 salePrice) external view override returns (address receiver, uint256 royaltyAmount) { return (owner(), (salePrice * royaltyBasisPoints) / 10000); // 10% royalty } // Function to check if an address is whitelisted function isWhitelisted(address user) external view returns (bool) { return whitelist[user]; } // Function to check how many free mints a whitelisted address has left function freeMintsLeft(address user) external view returns (uint256) { return hasMintedFree[user] ? 0 : 1; // Returns 1 if not minted free, otherwise 0 } function completeMint(uint256 quantity) external onlyOwner { require(currentSupply + quantity <= maxSupply, "Max supply reached"); for (uint256 i = 0; i < quantity; i++) { currentSupply += 1; _safeMint(msg.sender, currentSupply); } } }
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":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"address","name":"initialOwner","type":"address"},{"internalType":"uint256","name":"initialMintAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_MINT_PER_TRANSACTION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_PER_NFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"addToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"completeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"freeMintsLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_saleIsActive","type":"bool"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526009805460ff191690556103e8600d5534801561001f575f5ffd5b506040516123de3803806123de83398101604081905261003e916106cf565b8185855f61004c83826107e3565b50600161005982826107e3565b5050506001600160a01b03811661008a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610093816100e0565b5060078390555f60088190555b818110156100d557600160085f8282546100ba919061089d565b90915550506008546100cd908490610131565b6001016100a0565b505050505050610944565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b610150828260405180602001604052805f81525061015460201b60201c565b5050565b61015e8383610170565b61016b335f8585856101d1565b505050565b6001600160a01b03821661019957604051633250574960e11b81525f6004820152602401610081565b5f6101a58383836102f9565b90506001600160a01b0381161561016b576040516339e3563760e11b81525f6004820152602401610081565b6001600160a01b0383163b156102f257604051630a85bd0160e11b81526001600160a01b0384169063150b7a02906102139088908890879087906004016108bc565b6020604051808303815f875af192505050801561024d575060408051601f3d908101601f1916820190925261024a91810190610916565b60015b6102b4573d80801561027a576040519150601f19603f3d011682016040523d82523d5f602084013e61027f565b606091505b5080515f036102ac57604051633250574960e11b81526001600160a01b0385166004820152602401610081565b805181602001fd5b6001600160e01b03198116630a85bd0160e11b146102f057604051633250574960e11b81526001600160a01b0385166004820152602401610081565b505b5050505050565b5f828152600260205260408120546001600160a01b0390811690831615610325576103258184866103eb565b6001600160a01b0381161561035f576103405f85818061044f565b6001600160a01b0381165f90815260036020526040902080545f190190555b6001600160a01b0385161561038d576001600160a01b0385165f908152600360205260409020805460010190555b5f8481526002602052604080822080546001600160a01b0319166001600160a01b0389811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b6103f6838383610571565b61016b576001600160a01b03831661042457604051637e27328960e01b815260048101829052602401610081565b60405163177e802f60e01b81526001600160a01b038316600482015260248101829052604401610081565b808061046357506001600160a01b03821615155b15610542575f610472846105f4565b90506001600160a01b0383161580159061049e5750826001600160a01b0316816001600160a01b031614155b80156104cf57506001600160a01b038082165f9081526005602090815260408083209387168352929052205460ff16155b156104f85760405163a9fbf51f60e01b81526001600160a01b0384166004820152602401610081565b81156105405783856001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b50505f90815260046020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b5f6001600160a01b038316158015906105ec5750826001600160a01b0316846001600160a01b031614806105c957506001600160a01b038085165f9081526005602090815260408083209387168352929052205460ff165b806105ec57505f828152600460205260409020546001600160a01b038481169116145b949350505050565b5f818152600260205260408120546001600160a01b03168061062c57604051637e27328960e01b815260048101849052602401610081565b92915050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f830112610655575f5ffd5b81516001600160401b0381111561066e5761066e610632565b604051601f8201601f19908116603f011681016001600160401b038111828210171561069c5761069c610632565b6040528181528382016020018510156106b3575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b5f5f5f5f5f60a086880312156106e3575f5ffd5b85516001600160401b038111156106f8575f5ffd5b61070488828901610646565b602088015190965090506001600160401b03811115610721575f5ffd5b61072d88828901610646565b60408801516060890151919650945090506001600160a01b0381168114610752575f5ffd5b60809690960151949793965091949392915050565b600181811c9082168061077b57607f821691505b60208210810361079957634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561016b57805f5260205f20601f840160051c810160208510156107c45750805b601f840160051c820191505b818110156102f2575f81556001016107d0565b81516001600160401b038111156107fc576107fc610632565b6108108161080a8454610767565b8461079f565b6020601f821160018114610842575f831561082b5750848201515b5f19600385901b1c1916600184901b1784556102f2565b5f84815260208120601f198516915b828110156108715787850151825560209485019460019092019101610851565b508482101561088e57868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b8082018082111561062c57634e487b7160e01b5f52601160045260245ffd5b60018060a01b038516815260018060a01b0384166020820152826040820152608060608201525f8251806080840152806020850160a085015e5f60a0828501015260a0601f19601f83011684010191505095945050505050565b5f60208284031215610926575f5ffd5b81516001600160e01b03198116811461093d575f5ffd5b9392505050565b611a8d806109515f395ff3fe6080604052600436106101db575f3560e01c8063771282f6116100fd578063c4e3709511610092578063e985e9c511610062578063e985e9c51461054c578063eb8d24441461056b578063f2fde38b14610584578063f96cb26c146105a3575f5ffd5b8063c4e37095146104da578063c87b56dd146104f9578063d5abeb0114610518578063e7ad13fe1461052d575f5ffd5b8063a0712d68116100cd578063a0712d681461046f578063a22cb46514610482578063a4de304f146104a1578063b88d4fde146104bb575f5ffd5b8063771282f61461040a5780637f6497831461041f5780638da5cb5b1461043e57806395d89b411461045b575f5ffd5b80632a55205a1161017357806355f804b31161014357806355f804b3146103995780636352211e146103b857806370a08231146103d7578063715018a6146103f6575f5ffd5b80632a55205a146102f15780633af32abf1461032f5780633ccfd60b1461036657806342842e0e1461037a575f5ffd5b8063095ea7b3116101ae578063095ea7b31461028957806318160ddd146102aa57806323b872dd146102be57806324ef901e146102dd575f5ffd5b806301ffc9a7146101df578063047fc9aa1461021357806306fdde0314610231578063081812fc14610252575b5f5ffd5b3480156101ea575f5ffd5b506101fe6101f9366004611465565b6105c2565b60405190151581526020015b60405180910390f35b34801561021e575f5ffd5b506008545b60405190815260200161020a565b34801561023c575f5ffd5b50610245610613565b60405161020a91906114b5565b34801561025d575f5ffd5b5061027161026c3660046114c7565b6106a2565b6040516001600160a01b03909116815260200161020a565b348015610294575f5ffd5b506102a86102a33660046114f9565b6106c9565b005b3480156102b5575f5ffd5b50600754610223565b3480156102c9575f5ffd5b506102a86102d8366004611521565b6106d8565b3480156102e8575f5ffd5b50610223601481565b3480156102fc575f5ffd5b5061031061030b36600461155b565b610766565b604080516001600160a01b03909316835260208301919091520161020a565b34801561033a575f5ffd5b506101fe61034936600461157b565b6001600160a01b03165f908152600b602052604090205460ff1690565b348015610371575f5ffd5b506102a86107a0565b348015610385575f5ffd5b506102a8610394366004611521565b6107f0565b3480156103a4575f5ffd5b506102a86103b336600461161f565b61080f565b3480156103c3575f5ffd5b506102716103d23660046114c7565b610823565b3480156103e2575f5ffd5b506102236103f136600461157b565b61082d565b348015610401575f5ffd5b506102a8610872565b348015610415575f5ffd5b5061022360085481565b34801561042a575f5ffd5b506102a8610439366004611664565b610885565b348015610449575f5ffd5b506006546001600160a01b0316610271565b348015610466575f5ffd5b506102456108f2565b6102a861047d3660046114c7565b610901565b34801561048d575f5ffd5b506102a861049c3660046116e4565b610afc565b3480156104ac575f5ffd5b5061022366470de4df82000081565b3480156104c6575f5ffd5b506102a86104d5366004611715565b610b07565b3480156104e5575f5ffd5b506102a86104f436600461178c565b610b1f565b348015610504575f5ffd5b506102456105133660046114c7565b610b3a565b348015610523575f5ffd5b5061022360075481565b348015610538575f5ffd5b5061022361054736600461157b565b610be3565b348015610557575f5ffd5b506101fe6105663660046117a5565b610c14565b348015610576575f5ffd5b506009546101fe9060ff1681565b34801561058f575f5ffd5b506102a861059e36600461157b565b610c41565b3480156105ae575f5ffd5b506102a86105bd3660046114c7565b610c7e565b5f6001600160e01b031982166380ac58cd60e01b14806105f257506001600160e01b03198216635b5e139f60e01b145b8061060d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60605f8054610621906117cd565b80601f016020809104026020016040519081016040528092919081815260200182805461064d906117cd565b80156106985780601f1061066f57610100808354040283529160200191610698565b820191905f5260205f20905b81548152906001019060200180831161067b57829003601f168201915b5050505050905090565b5f6106ac82610d11565b505f828152600460205260409020546001600160a01b031661060d565b6106d4828233610d49565b5050565b6001600160a01b03821661070657604051633250574960e11b81525f60048201526024015b60405180910390fd5b5f610712838333610d56565b9050836001600160a01b0316816001600160a01b031614610760576040516364283d7b60e01b81526001600160a01b03808616600483015260248201849052821660448201526064016106fd565b50505050565b5f5f61077a6006546001600160a01b031690565b612710600d548561078b9190611819565b6107959190611830565b915091509250929050565b6107a8610e48565b476107bb6006546001600160a01b031690565b6001600160a01b03166108fc8290811502906040515f60405180830381858888f193505050501580156106d4573d5f5f3e3d5ffd5b61080a83838360405180602001604052805f815250610b07565b505050565b610817610e48565b600a6106d48282611893565b5f61060d82610d11565b5f6001600160a01b038216610857576040516322718ad960e21b81525f60048201526024016106fd565b506001600160a01b03165f9081526003602052604090205490565b61087a610e48565b6108835f610e75565b565b61088d610e48565b5f5b8181101561080a576001600b5f8585858181106108ae576108ae61194e565b90506020020160208101906108c3919061157b565b6001600160a01b0316815260208101919091526040015f20805460ff191691151591909117905560010161088f565b606060018054610621906117cd565b5f81118015610911575060148111155b6109555760405162461bcd60e51b8152602060048201526015602482015274496e76616c6964206d696e74207175616e7469747960581b60448201526064016106fd565b600754816008546109669190611962565b11156109a95760405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b60448201526064016106fd565b5f6109bb8266470de4df820000611819565b335f908152600b602052604090205490915060ff1680156109eb5750335f908152600c602052604090205460ff16155b80156109f75750816001145b15610a1a57335f908152600c60205260409020805460ff19166001179055610ac5565b60095460ff1680610a3557506006546001600160a01b031633145b610a765760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b60448201526064016106fd565b803414610ac55760405162461bcd60e51b815260206004820152601960248201527f496e636f72726563742045544820616d6f756e742073656e740000000000000060448201526064016106fd565b5f5b8281101561080a57600160085f828254610ae19190611962565b92505081905550610af433600854610ec6565b600101610ac7565b6106d4338383610edf565b610b128484846106d8565b6107603385858585610f7d565b610b27610e48565b6009805460ff1916911515919091179055565b60605f82118015610b4d57506008548211155b610bb15760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016106fd565b600a610bbc836110a5565b604051602001610bcd929190611975565b6040516020818303038152906040529050919050565b6001600160a01b0381165f908152600c602052604081205460ff16610c09576001610c0b565b5f5b60ff1692915050565b6001600160a01b039182165f90815260056020908152604080832093909416825291909152205460ff1690565b610c49610e48565b6001600160a01b038116610c7257604051631e4fbdf760e01b81525f60048201526024016106fd565b610c7b81610e75565b50565b610c86610e48565b60075481600854610c979190611962565b1115610cda5760405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b60448201526064016106fd565b5f5b818110156106d457600160085f828254610cf69190611962565b92505081905550610d0933600854610ec6565b600101610cdc565b5f818152600260205260408120546001600160a01b03168061060d57604051637e27328960e01b8152600481018490526024016106fd565b61080a8383836001611135565b5f828152600260205260408120546001600160a01b0390811690831615610d8257610d82818486611239565b6001600160a01b03811615610dbc57610d9d5f855f5f611135565b6001600160a01b0381165f90815260036020526040902080545f190190555b6001600160a01b03851615610dea576001600160a01b0385165f908152600360205260409020805460010190555b5f8481526002602052604080822080546001600160a01b0319166001600160a01b0389811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b6006546001600160a01b031633146108835760405163118cdaa760e01b81523360048201526024016106fd565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6106d4828260405180602001604052805f81525061129d565b6001600160a01b038216610f1157604051630b61174360e31b81526001600160a01b03831660048201526024016106fd565b6001600160a01b038381165f81815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383163b1561109e57604051630a85bd0160e11b81526001600160a01b0384169063150b7a0290610fbf908890889087908790600401611a00565b6020604051808303815f875af1925050508015610ff9575060408051601f3d908101601f19168201909252610ff691810190611a3c565b60015b611060573d808015611026576040519150601f19603f3d011682016040523d82523d5f602084013e61102b565b606091505b5080515f0361105857604051633250574960e11b81526001600160a01b03851660048201526024016106fd565b805181602001fd5b6001600160e01b03198116630a85bd0160e11b1461109c57604051633250574960e11b81526001600160a01b03851660048201526024016106fd565b505b5050505050565b60605f6110b1836112b4565b60010190505f8167ffffffffffffffff8111156110d0576110d0611594565b6040519080825280601f01601f1916602001820160405280156110fa576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461110457509392505050565b808061114957506001600160a01b03821615155b1561120a575f61115884610d11565b90506001600160a01b038316158015906111845750826001600160a01b0316816001600160a01b031614155b801561119757506111958184610c14565b155b156111c05760405163a9fbf51f60e01b81526001600160a01b03841660048201526024016106fd565b81156112085783856001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b50505f90815260046020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b61124483838361138b565b61080a576001600160a01b03831661127257604051637e27328960e01b8152600481018290526024016106fd565b60405163177e802f60e01b81526001600160a01b0383166004820152602481018290526044016106fd565b6112a783836113ef565b61080a335f858585610f7d565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106112f25772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061131e576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061133c57662386f26fc10000830492506010015b6305f5e1008310611354576305f5e100830492506008015b612710831061136857612710830492506004015b6064831061137a576064830492506002015b600a831061060d5760010192915050565b5f6001600160a01b038316158015906113e75750826001600160a01b0316846001600160a01b031614806113c457506113c48484610c14565b806113e757505f828152600460205260409020546001600160a01b038481169116145b949350505050565b6001600160a01b03821661141857604051633250574960e11b81525f60048201526024016106fd565b5f61142483835f610d56565b90506001600160a01b0381161561080a576040516339e3563760e11b81525f60048201526024016106fd565b6001600160e01b031981168114610c7b575f5ffd5b5f60208284031215611475575f5ffd5b813561148081611450565b9392505050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6114806020830184611487565b5f602082840312156114d7575f5ffd5b5035919050565b80356001600160a01b03811681146114f4575f5ffd5b919050565b5f5f6040838503121561150a575f5ffd5b611513836114de565b946020939093013593505050565b5f5f5f60608486031215611533575f5ffd5b61153c846114de565b925061154a602085016114de565b929592945050506040919091013590565b5f5f6040838503121561156c575f5ffd5b50508035926020909101359150565b5f6020828403121561158b575f5ffd5b611480826114de565b634e487b7160e01b5f52604160045260245ffd5b5f5f67ffffffffffffffff8411156115c2576115c2611594565b50604051601f19601f85018116603f0116810181811067ffffffffffffffff821117156115f1576115f1611594565b604052838152905080828401851015611608575f5ffd5b838360208301375f60208583010152509392505050565b5f6020828403121561162f575f5ffd5b813567ffffffffffffffff811115611645575f5ffd5b8201601f81018413611655575f5ffd5b6113e7848235602084016115a8565b5f5f60208385031215611675575f5ffd5b823567ffffffffffffffff81111561168b575f5ffd5b8301601f8101851361169b575f5ffd5b803567ffffffffffffffff8111156116b1575f5ffd5b8560208260051b84010111156116c5575f5ffd5b6020919091019590945092505050565b803580151581146114f4575f5ffd5b5f5f604083850312156116f5575f5ffd5b6116fe836114de565b915061170c602084016116d5565b90509250929050565b5f5f5f5f60808587031215611728575f5ffd5b611731856114de565b935061173f602086016114de565b925060408501359150606085013567ffffffffffffffff811115611761575f5ffd5b8501601f81018713611771575f5ffd5b611780878235602084016115a8565b91505092959194509250565b5f6020828403121561179c575f5ffd5b611480826116d5565b5f5f604083850312156117b6575f5ffd5b6117bf836114de565b915061170c602084016114de565b600181811c908216806117e157607f821691505b6020821081036117ff57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761060d5761060d611805565b5f8261184a57634e487b7160e01b5f52601260045260245ffd5b500490565b601f82111561080a57805f5260205f20601f840160051c810160208510156118745750805b601f840160051c820191505b8181101561109e575f8155600101611880565b815167ffffffffffffffff8111156118ad576118ad611594565b6118c1816118bb84546117cd565b8461184f565b6020601f8211600181146118f3575f83156118dc5750848201515b5f19600385901b1c1916600184901b17845561109e565b5f84815260208120601f198516915b828110156119225787850151825560209485019460019092019101611902565b508482101561193f57868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b634e487b7160e01b5f52603260045260245ffd5b8082018082111561060d5761060d611805565b5f5f8454611982816117cd565b60018216801561199957600181146119ae576119db565b60ff19831686528115158202860193506119db565b875f5260205f205f5b838110156119d3578154888201526001909101906020016119b7565b505081860193505b50505083518060208601835e64173539b7b760d91b9101908152600501949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f90611a3290830184611487565b9695505050505050565b5f60208284031215611a4c575f5ffd5b81516114808161145056fea2646970667358221220318f629e4f9a7485fa70b537d5315abddccedc32ae78491942032d614515974e64736f6c634300081c003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001d6000000000000000000000000f6c0d301fd8dd2d12f0154438aba67a9f612a1d30000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000002042616279205472756d70204469676974616c2054726164696e672043617264730000000000000000000000000000000000000000000000000000000000000009424142595452554d500000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101db575f3560e01c8063771282f6116100fd578063c4e3709511610092578063e985e9c511610062578063e985e9c51461054c578063eb8d24441461056b578063f2fde38b14610584578063f96cb26c146105a3575f5ffd5b8063c4e37095146104da578063c87b56dd146104f9578063d5abeb0114610518578063e7ad13fe1461052d575f5ffd5b8063a0712d68116100cd578063a0712d681461046f578063a22cb46514610482578063a4de304f146104a1578063b88d4fde146104bb575f5ffd5b8063771282f61461040a5780637f6497831461041f5780638da5cb5b1461043e57806395d89b411461045b575f5ffd5b80632a55205a1161017357806355f804b31161014357806355f804b3146103995780636352211e146103b857806370a08231146103d7578063715018a6146103f6575f5ffd5b80632a55205a146102f15780633af32abf1461032f5780633ccfd60b1461036657806342842e0e1461037a575f5ffd5b8063095ea7b3116101ae578063095ea7b31461028957806318160ddd146102aa57806323b872dd146102be57806324ef901e146102dd575f5ffd5b806301ffc9a7146101df578063047fc9aa1461021357806306fdde0314610231578063081812fc14610252575b5f5ffd5b3480156101ea575f5ffd5b506101fe6101f9366004611465565b6105c2565b60405190151581526020015b60405180910390f35b34801561021e575f5ffd5b506008545b60405190815260200161020a565b34801561023c575f5ffd5b50610245610613565b60405161020a91906114b5565b34801561025d575f5ffd5b5061027161026c3660046114c7565b6106a2565b6040516001600160a01b03909116815260200161020a565b348015610294575f5ffd5b506102a86102a33660046114f9565b6106c9565b005b3480156102b5575f5ffd5b50600754610223565b3480156102c9575f5ffd5b506102a86102d8366004611521565b6106d8565b3480156102e8575f5ffd5b50610223601481565b3480156102fc575f5ffd5b5061031061030b36600461155b565b610766565b604080516001600160a01b03909316835260208301919091520161020a565b34801561033a575f5ffd5b506101fe61034936600461157b565b6001600160a01b03165f908152600b602052604090205460ff1690565b348015610371575f5ffd5b506102a86107a0565b348015610385575f5ffd5b506102a8610394366004611521565b6107f0565b3480156103a4575f5ffd5b506102a86103b336600461161f565b61080f565b3480156103c3575f5ffd5b506102716103d23660046114c7565b610823565b3480156103e2575f5ffd5b506102236103f136600461157b565b61082d565b348015610401575f5ffd5b506102a8610872565b348015610415575f5ffd5b5061022360085481565b34801561042a575f5ffd5b506102a8610439366004611664565b610885565b348015610449575f5ffd5b506006546001600160a01b0316610271565b348015610466575f5ffd5b506102456108f2565b6102a861047d3660046114c7565b610901565b34801561048d575f5ffd5b506102a861049c3660046116e4565b610afc565b3480156104ac575f5ffd5b5061022366470de4df82000081565b3480156104c6575f5ffd5b506102a86104d5366004611715565b610b07565b3480156104e5575f5ffd5b506102a86104f436600461178c565b610b1f565b348015610504575f5ffd5b506102456105133660046114c7565b610b3a565b348015610523575f5ffd5b5061022360075481565b348015610538575f5ffd5b5061022361054736600461157b565b610be3565b348015610557575f5ffd5b506101fe6105663660046117a5565b610c14565b348015610576575f5ffd5b506009546101fe9060ff1681565b34801561058f575f5ffd5b506102a861059e36600461157b565b610c41565b3480156105ae575f5ffd5b506102a86105bd3660046114c7565b610c7e565b5f6001600160e01b031982166380ac58cd60e01b14806105f257506001600160e01b03198216635b5e139f60e01b145b8061060d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60605f8054610621906117cd565b80601f016020809104026020016040519081016040528092919081815260200182805461064d906117cd565b80156106985780601f1061066f57610100808354040283529160200191610698565b820191905f5260205f20905b81548152906001019060200180831161067b57829003601f168201915b5050505050905090565b5f6106ac82610d11565b505f828152600460205260409020546001600160a01b031661060d565b6106d4828233610d49565b5050565b6001600160a01b03821661070657604051633250574960e11b81525f60048201526024015b60405180910390fd5b5f610712838333610d56565b9050836001600160a01b0316816001600160a01b031614610760576040516364283d7b60e01b81526001600160a01b03808616600483015260248201849052821660448201526064016106fd565b50505050565b5f5f61077a6006546001600160a01b031690565b612710600d548561078b9190611819565b6107959190611830565b915091509250929050565b6107a8610e48565b476107bb6006546001600160a01b031690565b6001600160a01b03166108fc8290811502906040515f60405180830381858888f193505050501580156106d4573d5f5f3e3d5ffd5b61080a83838360405180602001604052805f815250610b07565b505050565b610817610e48565b600a6106d48282611893565b5f61060d82610d11565b5f6001600160a01b038216610857576040516322718ad960e21b81525f60048201526024016106fd565b506001600160a01b03165f9081526003602052604090205490565b61087a610e48565b6108835f610e75565b565b61088d610e48565b5f5b8181101561080a576001600b5f8585858181106108ae576108ae61194e565b90506020020160208101906108c3919061157b565b6001600160a01b0316815260208101919091526040015f20805460ff191691151591909117905560010161088f565b606060018054610621906117cd565b5f81118015610911575060148111155b6109555760405162461bcd60e51b8152602060048201526015602482015274496e76616c6964206d696e74207175616e7469747960581b60448201526064016106fd565b600754816008546109669190611962565b11156109a95760405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b60448201526064016106fd565b5f6109bb8266470de4df820000611819565b335f908152600b602052604090205490915060ff1680156109eb5750335f908152600c602052604090205460ff16155b80156109f75750816001145b15610a1a57335f908152600c60205260409020805460ff19166001179055610ac5565b60095460ff1680610a3557506006546001600160a01b031633145b610a765760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b60448201526064016106fd565b803414610ac55760405162461bcd60e51b815260206004820152601960248201527f496e636f72726563742045544820616d6f756e742073656e740000000000000060448201526064016106fd565b5f5b8281101561080a57600160085f828254610ae19190611962565b92505081905550610af433600854610ec6565b600101610ac7565b6106d4338383610edf565b610b128484846106d8565b6107603385858585610f7d565b610b27610e48565b6009805460ff1916911515919091179055565b60605f82118015610b4d57506008548211155b610bb15760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016106fd565b600a610bbc836110a5565b604051602001610bcd929190611975565b6040516020818303038152906040529050919050565b6001600160a01b0381165f908152600c602052604081205460ff16610c09576001610c0b565b5f5b60ff1692915050565b6001600160a01b039182165f90815260056020908152604080832093909416825291909152205460ff1690565b610c49610e48565b6001600160a01b038116610c7257604051631e4fbdf760e01b81525f60048201526024016106fd565b610c7b81610e75565b50565b610c86610e48565b60075481600854610c979190611962565b1115610cda5760405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b60448201526064016106fd565b5f5b818110156106d457600160085f828254610cf69190611962565b92505081905550610d0933600854610ec6565b600101610cdc565b5f818152600260205260408120546001600160a01b03168061060d57604051637e27328960e01b8152600481018490526024016106fd565b61080a8383836001611135565b5f828152600260205260408120546001600160a01b0390811690831615610d8257610d82818486611239565b6001600160a01b03811615610dbc57610d9d5f855f5f611135565b6001600160a01b0381165f90815260036020526040902080545f190190555b6001600160a01b03851615610dea576001600160a01b0385165f908152600360205260409020805460010190555b5f8481526002602052604080822080546001600160a01b0319166001600160a01b0389811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b6006546001600160a01b031633146108835760405163118cdaa760e01b81523360048201526024016106fd565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6106d4828260405180602001604052805f81525061129d565b6001600160a01b038216610f1157604051630b61174360e31b81526001600160a01b03831660048201526024016106fd565b6001600160a01b038381165f81815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383163b1561109e57604051630a85bd0160e11b81526001600160a01b0384169063150b7a0290610fbf908890889087908790600401611a00565b6020604051808303815f875af1925050508015610ff9575060408051601f3d908101601f19168201909252610ff691810190611a3c565b60015b611060573d808015611026576040519150601f19603f3d011682016040523d82523d5f602084013e61102b565b606091505b5080515f0361105857604051633250574960e11b81526001600160a01b03851660048201526024016106fd565b805181602001fd5b6001600160e01b03198116630a85bd0160e11b1461109c57604051633250574960e11b81526001600160a01b03851660048201526024016106fd565b505b5050505050565b60605f6110b1836112b4565b60010190505f8167ffffffffffffffff8111156110d0576110d0611594565b6040519080825280601f01601f1916602001820160405280156110fa576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461110457509392505050565b808061114957506001600160a01b03821615155b1561120a575f61115884610d11565b90506001600160a01b038316158015906111845750826001600160a01b0316816001600160a01b031614155b801561119757506111958184610c14565b155b156111c05760405163a9fbf51f60e01b81526001600160a01b03841660048201526024016106fd565b81156112085783856001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b50505f90815260046020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b61124483838361138b565b61080a576001600160a01b03831661127257604051637e27328960e01b8152600481018290526024016106fd565b60405163177e802f60e01b81526001600160a01b0383166004820152602481018290526044016106fd565b6112a783836113ef565b61080a335f858585610f7d565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106112f25772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061131e576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061133c57662386f26fc10000830492506010015b6305f5e1008310611354576305f5e100830492506008015b612710831061136857612710830492506004015b6064831061137a576064830492506002015b600a831061060d5760010192915050565b5f6001600160a01b038316158015906113e75750826001600160a01b0316846001600160a01b031614806113c457506113c48484610c14565b806113e757505f828152600460205260409020546001600160a01b038481169116145b949350505050565b6001600160a01b03821661141857604051633250574960e11b81525f60048201526024016106fd565b5f61142483835f610d56565b90506001600160a01b0381161561080a576040516339e3563760e11b81525f60048201526024016106fd565b6001600160e01b031981168114610c7b575f5ffd5b5f60208284031215611475575f5ffd5b813561148081611450565b9392505050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6114806020830184611487565b5f602082840312156114d7575f5ffd5b5035919050565b80356001600160a01b03811681146114f4575f5ffd5b919050565b5f5f6040838503121561150a575f5ffd5b611513836114de565b946020939093013593505050565b5f5f5f60608486031215611533575f5ffd5b61153c846114de565b925061154a602085016114de565b929592945050506040919091013590565b5f5f6040838503121561156c575f5ffd5b50508035926020909101359150565b5f6020828403121561158b575f5ffd5b611480826114de565b634e487b7160e01b5f52604160045260245ffd5b5f5f67ffffffffffffffff8411156115c2576115c2611594565b50604051601f19601f85018116603f0116810181811067ffffffffffffffff821117156115f1576115f1611594565b604052838152905080828401851015611608575f5ffd5b838360208301375f60208583010152509392505050565b5f6020828403121561162f575f5ffd5b813567ffffffffffffffff811115611645575f5ffd5b8201601f81018413611655575f5ffd5b6113e7848235602084016115a8565b5f5f60208385031215611675575f5ffd5b823567ffffffffffffffff81111561168b575f5ffd5b8301601f8101851361169b575f5ffd5b803567ffffffffffffffff8111156116b1575f5ffd5b8560208260051b84010111156116c5575f5ffd5b6020919091019590945092505050565b803580151581146114f4575f5ffd5b5f5f604083850312156116f5575f5ffd5b6116fe836114de565b915061170c602084016116d5565b90509250929050565b5f5f5f5f60808587031215611728575f5ffd5b611731856114de565b935061173f602086016114de565b925060408501359150606085013567ffffffffffffffff811115611761575f5ffd5b8501601f81018713611771575f5ffd5b611780878235602084016115a8565b91505092959194509250565b5f6020828403121561179c575f5ffd5b611480826116d5565b5f5f604083850312156117b6575f5ffd5b6117bf836114de565b915061170c602084016114de565b600181811c908216806117e157607f821691505b6020821081036117ff57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761060d5761060d611805565b5f8261184a57634e487b7160e01b5f52601260045260245ffd5b500490565b601f82111561080a57805f5260205f20601f840160051c810160208510156118745750805b601f840160051c820191505b8181101561109e575f8155600101611880565b815167ffffffffffffffff8111156118ad576118ad611594565b6118c1816118bb84546117cd565b8461184f565b6020601f8211600181146118f3575f83156118dc5750848201515b5f19600385901b1c1916600184901b17845561109e565b5f84815260208120601f198516915b828110156119225787850151825560209485019460019092019101611902565b508482101561193f57868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b634e487b7160e01b5f52603260045260245ffd5b8082018082111561060d5761060d611805565b5f5f8454611982816117cd565b60018216801561199957600181146119ae576119db565b60ff19831686528115158202860193506119db565b875f5260205f205f5b838110156119d3578154888201526001909101906020016119b7565b505081860193505b50505083518060208601835e64173539b7b760d91b9101908152600501949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f90611a3290830184611487565b9695505050505050565b5f60208284031215611a4c575f5ffd5b81516114808161145056fea2646970667358221220318f629e4f9a7485fa70b537d5315abddccedc32ae78491942032d614515974e64736f6c634300081c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001d6000000000000000000000000f6c0d301fd8dd2d12f0154438aba67a9f612a1d30000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000002042616279205472756d70204469676974616c2054726164696e672043617264730000000000000000000000000000000000000000000000000000000000000009424142595452554d500000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): Baby Trump Digital Trading Cards
Arg [1] : symbol_ (string): BABYTRUMP
Arg [2] : _maxSupply (uint256): 470
Arg [3] : initialOwner (address): 0xf6C0D301FD8DD2d12F0154438aba67a9F612a1D3
Arg [4] : initialMintAmount (uint256): 20
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001d6
Arg [3] : 000000000000000000000000f6c0d301fd8dd2d12f0154438aba67a9f612a1d3
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [6] : 42616279205472756d70204469676974616c2054726164696e67204361726473
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [8] : 424142595452554d500000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
113161:4220:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;93496:305;;;;;;;;;;-1:-1:-1;93496:305:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;93496:305:0;;;;;;;;116174:87;;;;;;;;;;-1:-1:-1;116240:13:0;;116174:87;;;738:25:1;;;726:2;711:18;116174:87:0;592:177:1;94327:91:0;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;95499:158::-;;;;;;;;;;-1:-1:-1;95499:158:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1688:32:1;;;1670:51;;1658:2;1643:18;95499:158:0;1524:203:1;95318:115:0;;;;;;;;;;-1:-1:-1;95318:115:0;;;;;:::i;:::-;;:::i;:::-;;116269:88;;;;;;;;;;-1:-1:-1;116340:9:0;;116269:88;;96168:588;;;;;;;;;;-1:-1:-1;96168:588:0;;;;;:::i;:::-;;:::i;113560:53::-;;;;;;;;;;;;113611:2;113560:53;;116421:228;;;;;;;;;;-1:-1:-1;116421:228:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3137:32:1;;;3119:51;;3201:2;3186:18;;3179:34;;;;3092:18;116421:228:0;2945:274:1;116714:107:0;;;;;;;;;;-1:-1:-1;116714:107:0;;;;;:::i;:::-;-1:-1:-1;;;;;116798:15:0;116774:4;116798:15;;;:9;:15;;;;;;;;;116714:107;115738:142;;;;;;;;;;;;;:::i;96827:134::-;;;;;;;;;;-1:-1:-1;96827:134:0;;;;;:::i;:::-;;:::i;115630:100::-;;;;;;;;;;-1:-1:-1;115630:100:0;;;;;:::i;:::-;;:::i;94140:120::-;;;;;;;;;;-1:-1:-1;94140:120:0;;;;;:::i;:::-;;:::i;93865:213::-;;;;;;;;;;-1:-1:-1;93865:213:0;;;;;:::i;:::-;;:::i;111149:103::-;;;;;;;;;;;;;:::i;113309:28::-;;;;;;;;;;;;;;;;115311:195;;;;;;;;;;-1:-1:-1;115311:195:0;;;;;:::i;:::-;;:::i;110474:87::-;;;;;;;;;;-1:-1:-1;110547:6:0;;-1:-1:-1;;;;;110547:6:0;110474:87;;94487:95;;;;;;;;;;;;;:::i;114422:881::-;;;;;;:::i;:::-;;:::i;95729:146::-;;;;;;;;;;-1:-1:-1;95729:146:0;;;;;:::i;:::-;;:::i;113486:50::-;;;;;;;;;;;;113526:10;113486:50;;97032:236;;;;;;;;;;-1:-1:-1;97032:236:0;;;;;:::i;:::-;;:::i;115514:108::-;;;;;;;;;;-1:-1:-1;115514:108:0;;;;;:::i;:::-;;:::i;115888:278::-;;;;;;;;;;-1:-1:-1;115888:278:0;;;;;:::i;:::-;;:::i;113252:24::-;;;;;;;;;;;;;;;;116906:167;;;;;;;;;;-1:-1:-1;116906:167:0;;;;;:::i;:::-;;:::i;95946:155::-;;;;;;;;;;-1:-1:-1;95946:155:0;;;;;:::i;:::-;;:::i;113377:32::-;;;;;;;;;;-1:-1:-1;113377:32:0;;;;;;;;111407:220;;;;;;;;;;-1:-1:-1;111407:220:0;;;;;:::i;:::-;;:::i;117085:293::-;;;;;;;;;;-1:-1:-1;117085:293:0;;;;;:::i;:::-;;:::i;93496:305::-;93598:4;-1:-1:-1;;;;;;93635:40:0;;-1:-1:-1;;;93635:40:0;;:105;;-1:-1:-1;;;;;;;93692:48:0;;-1:-1:-1;;;93692:48:0;93635:105;:158;;;-1:-1:-1;;;;;;;;;;92194:40:0;;;93757:36;93615:178;93496:305;-1:-1:-1;;93496:305:0:o;94327:91::-;94372:13;94405:5;94398:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;94327:91;:::o;95499:158::-;95566:7;95586:22;95600:7;95586:13;:22::i;:::-;-1:-1:-1;98101:7:0;98128:24;;;:15;:24;;;;;;-1:-1:-1;;;;;98128:24:0;95628:21;98031:129;95318:115;95390:35;95399:2;95403:7;17282:10;95390:8;:35::i;:::-;95318:115;;:::o;96168:588::-;-1:-1:-1;;;;;96263:16:0;;96259:89;;96303:33;;-1:-1:-1;;;96303:33:0;;96333:1;96303:33;;;1670:51:1;1643:18;;96303:33:0;;;;;;;;96259:89;96569:21;96593:34;96601:2;96605:7;17282:10;96593:7;:34::i;:::-;96569:58;;96659:4;-1:-1:-1;;;;;96642:21:0;:13;-1:-1:-1;;;;;96642:21:0;;96638:111;;96687:50;;-1:-1:-1;;;96687:50:0;;-1:-1:-1;;;;;7536:32:1;;;96687:50:0;;;7518:51:1;7585:18;;;7578:34;;;7648:32;;7628:18;;;7621:60;7491:18;;96687:50:0;7316:371:1;96638:111:0;96248:508;96168:588;;;:::o;116421:228::-;116516:16;116534:21;116576:7;110547:6;;-1:-1:-1;;;;;110547:6:0;;110474:87;116576:7;116620:5;116598:18;;116586:9;:30;;;;:::i;:::-;116585:40;;;;:::i;:::-;116568:58;;;;116421:228;;;;;:::o;115738:142::-;110360:13;:11;:13::i;:::-;115806:21:::1;115846:7;110547:6:::0;;-1:-1:-1;;;;;110547:6:0;;110474:87;115846:7:::1;-1:-1:-1::0;;;;;115838:25:0::1;:34;115864:7;115838:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;96827:134:::0;96914:39;96931:4;96937:2;96941:7;96914:39;;;;;;;;;;;;:16;:39::i;:::-;96827:134;;;:::o;115630:100::-;110360:13;:11;:13::i;:::-;115704:7:::1;:18;115714:8:::0;115704:7;:18:::1;:::i;94140:120::-:0;94203:7;94230:22;94244:7;94230:13;:22::i;93865:213::-;93928:7;-1:-1:-1;;;;;93952:19:0;;93948:89;;93995:30;;-1:-1:-1;;;93995:30:0;;94022:1;93995:30;;;1670:51:1;1643:18;;93995:30:0;1524:203:1;93948:89:0;-1:-1:-1;;;;;;94054:16:0;;;;;:9;:16;;;;;;;93865:213::o;111149:103::-;110360:13;:11;:13::i;:::-;111214:30:::1;111241:1;111214:18;:30::i;:::-;111149:103::o:0;115311:195::-;110360:13;:11;:13::i;:::-;115400:9:::1;115395:104;115415:20:::0;;::::1;115395:104;;;115483:4;115457:9;:23;115467:9;;115477:1;115467:12;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;115457:23:0::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;115457:23:0;:30;;-1:-1:-1;;115457:30:0::1;::::0;::::1;;::::0;;;::::1;::::0;;-1:-1:-1;115437:3:0::1;115395:104;;94487:95:::0;94534:13;94567:7;94560:14;;;;;:::i;114422:881::-;114501:1;114490:8;:12;:52;;;;;113611:2;114506:8;:36;;114490:52;114482:86;;;;-1:-1:-1;;;114482:86:0;;10809:2:1;114482:86:0;;;10791:21:1;10848:2;10828:18;;;10821:30;-1:-1:-1;;;10867:18:1;;;10860:51;10928:18;;114482:86:0;10607:345:1;114482:86:0;114615:9;;114603:8;114587:13;;:24;;;;:::i;:::-;:37;;114579:68;;;;-1:-1:-1;;;114579:68:0;;11289:2:1;114579:68:0;;;11271:21:1;11328:2;11308:18;;;11301:30;-1:-1:-1;;;11347:18:1;;;11340:48;11405:18;;114579:68:0;11087:342:1;114579:68:0;114660:18;114681:24;114697:8;113526:10;114681:24;:::i;:::-;114823:10;114813:21;;;;:9;:21;;;;;;114660:45;;-1:-1:-1;114813:21:0;;:51;;;;-1:-1:-1;114853:10:0;114839:25;;;;:13;:25;;;;;;;;114838:26;114813:51;:68;;;;;114868:8;114880:1;114868:13;114813:68;114809:340;;;114912:10;114898:25;;;;:13;:25;;;;;:32;;-1:-1:-1;;114898:32:0;114926:4;114898:32;;;114809:340;;;115001:12;;;;;:37;;-1:-1:-1;110547:6:0;;-1:-1:-1;;;;;110547:6:0;115017:10;:21;115001:37;114993:68;;;;-1:-1:-1;;;114993:68:0;;11636:2:1;114993:68:0;;;11618:21:1;11675:2;11655:18;;;11648:30;-1:-1:-1;;;11694:18:1;;;11687:48;11752:18;;114993:68:0;11434:342:1;114993:68:0;115097:10;115084:9;:23;115076:61;;;;-1:-1:-1;;;115076:61:0;;11983:2:1;115076:61:0;;;11965:21:1;12022:2;12002:18;;;11995:30;12061:27;12041:18;;;12034:55;12106:18;;115076:61:0;11781:349:1;115076:61:0;115166:9;115161:135;115185:8;115181:1;:12;115161:135;;;115232:1;115215:13;;:18;;;;;;;:::i;:::-;;;;;;;;115248:36;115258:10;115270:13;;115248:9;:36::i;:::-;115195:3;;115161:135;;95729:146;95815:52;17282:10;95848:8;95858;95815:18;:52::i;97032:236::-;97146:31;97159:4;97165:2;97169:7;97146:12;:31::i;:::-;97188:72;17282:10;97236:4;97242:2;97246:7;97255:4;97188:33;:72::i;115514:108::-;110360:13;:11;:13::i;:::-;115586:12:::1;:28:::0;;-1:-1:-1;;115586:28:0::1;::::0;::::1;;::::0;;;::::1;::::0;;115514:108::o;115888:278::-;115953:13;115997:1;115987:7;:11;:39;;;;;116013:13;;116002:7;:24;;115987:39;115979:99;;;;-1:-1:-1;;;115979:99:0;;12337:2:1;115979:99:0;;;12319:21:1;12376:2;12356:18;;;12349:30;12415:34;12395:18;;;12388:62;-1:-1:-1;;;12466:18:1;;;12459:45;12521:19;;115979:99:0;12135:411:1;115979:99:0;116120:7;116129:18;:7;:16;:18::i;:::-;116103:54;;;;;;;;;:::i;:::-;;;;;;;;;;;;;116089:69;;115888:278;;;:::o;116906:167::-;-1:-1:-1;;;;;116993:19:0;;116966:7;116993:19;;;:13;:19;;;;;;;;:27;;117019:1;116993:27;;;117015:1;116993:27;116986:34;;;116906:167;-1:-1:-1;;116906:167:0:o;95946:155::-;-1:-1:-1;;;;;96058:25:0;;;96034:4;96058:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;95946:155::o;111407:220::-;110360:13;:11;:13::i;:::-;-1:-1:-1;;;;;111492:22:0;::::1;111488:93;;111538:31;::::0;-1:-1:-1;;;111538:31:0;;111566:1:::1;111538:31;::::0;::::1;1670:51:1::0;1643:18;;111538:31:0::1;1524:203:1::0;111488:93:0::1;111591:28;111610:8;111591:18;:28::i;:::-;111407:220:::0;:::o;117085:293::-;110360:13;:11;:13::i;:::-;117191:9:::1;;117179:8;117163:13;;:24;;;;:::i;:::-;:37;;117155:68;;;::::0;-1:-1:-1;;;117155:68:0;;11289:2:1;117155:68:0::1;::::0;::::1;11271:21:1::0;11328:2;11308:18;;;11301:30;-1:-1:-1;;;11347:18:1;;;11340:48;11405:18;;117155:68:0::1;11087:342:1::0;117155:68:0::1;117241:9;117236:135;117260:8;117256:1;:12;117236:135;;;117307:1;117290:13;;:18;;;;;;;:::i;:::-;;;;;;;;117323:36;117333:10;117345:13;;117323:9;:36::i;:::-;117270:3;;117236:135;;108550:247:::0;108613:7;97886:16;;;:7;:16;;;;;;-1:-1:-1;;;;;97886:16:0;;108677:90;;108724:31;;-1:-1:-1;;;108724:31:0;;;;;738:25:1;;;711:18;;108724:31:0;592:177:1;106782:122:0;106863:33;106872:2;106876:7;106885:4;106891;106863:8;:33::i;100992:824::-;101078:7;97886:16;;;:7;:16;;;;;;-1:-1:-1;;;;;97886:16:0;;;;101193:18;;;101189:88;;101228:37;101245:4;101251;101257:7;101228:16;:37::i;:::-;-1:-1:-1;;;;;101324:18:0;;;101320:263;;101442:48;101459:1;101463:7;101480:1;101484:5;101442:8;:48::i;:::-;-1:-1:-1;;;;;101536:15:0;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;101536:20:0;;;101320:263;-1:-1:-1;;;;;101599:16:0;;;101595:111;;-1:-1:-1;;;;;101661:13:0;;;;;;:9;:13;;;;;:18;;101678:1;101661:18;;;101595:111;101718:16;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;101718:21:0;-1:-1:-1;;;;;101718:21:0;;;;;;;;;101757:27;;101718:16;;101757:27;;;;;;;101804:4;100992:824;-1:-1:-1;;;;100992:824:0:o;110639:166::-;110547:6;;-1:-1:-1;;;;;110547:6:0;17282:10;110699:23;110695:103;;110746:40;;-1:-1:-1;;;110746:40:0;;17282:10;110746:40;;;1670:51:1;1643:18;;110746:40:0;1524:203:1;111787:191:0;111880:6;;;-1:-1:-1;;;;;111897:17:0;;;-1:-1:-1;;;;;;111897:17:0;;;;;;;111930:40;;111880:6;;;111897:17;111880:6;;111930:40;;111861:16;;111930:40;111850:128;111787:191;:::o;102850:102::-;102918:26;102928:2;102932:7;102918:26;;;;;;;;;;;;:9;:26::i;107989:318::-;-1:-1:-1;;;;;108097:22:0;;108093:93;;108143:31;;-1:-1:-1;;;108143:31:0;;-1:-1:-1;;;;;1688:32:1;;108143:31:0;;;1670:51:1;1643:18;;108143:31:0;1524:203:1;108093:93:0;-1:-1:-1;;;;;108196:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;108196:46:0;;;;;;;;;;108258:41;;540::1;;;108258::0;;513:18:1;108258:41:0;;;;;;;107989:318;;;:::o;15552:948::-;-1:-1:-1;;;;;15739:14:0;;;:18;15735:758;;15778:67;;-1:-1:-1;;;15778:67:0;;-1:-1:-1;;;;;15778:36:0;;;;;:67;;15815:8;;15825:4;;15831:7;;15840:4;;15778:67;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;15778:67:0;;;;;;;;-1:-1:-1;;15778:67:0;;;;;;;;;;;;:::i;:::-;;;15774:708;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16141:6;:13;16158:1;16141:18;16137:330;;16247:39;;-1:-1:-1;;;16247:39:0;;-1:-1:-1;;;;;1688:32:1;;16247:39:0;;;1670:51:1;1643:18;;16247:39:0;1524:203:1;16137:330:0;16417:6;16411:13;16402:6;16398:2;16394:15;16387:38;15774:708;-1:-1:-1;;;;;;15893:51:0;;-1:-1:-1;;;15893:51:0;15889:185;;16015:39;;-1:-1:-1;;;16015:39:0;;-1:-1:-1;;;;;1688:32:1;;16015:39:0;;;1670:51:1;1643:18;;16015:39:0;1524:203:1;15889:185:0;15846:243;15774:708;15552:948;;;;;:::o;87922:650::-;87978:13;88029:14;88046:17;88057:5;88046:10;:17::i;:::-;88066:1;88046:21;88029:38;;88082:20;88116:6;88105:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;88105:18:0;-1:-1:-1;88082:41:0;-1:-1:-1;88215:28:0;;;88231:2;88215:28;88272:254;-1:-1:-1;;88304:5:0;-1:-1:-1;;;88405:2:0;88394:14;;88389:32;88304:5;88376:46;88468:2;88459:11;;;-1:-1:-1;88489:21:0;88272:254;88489:21;-1:-1:-1;88547:6:0;87922:650;-1:-1:-1;;;87922:650:0:o;107092:678::-;107254:9;:31;;;-1:-1:-1;;;;;;107267:18:0;;;;107254:31;107250:471;;;107302:13;107318:22;107332:7;107318:13;:22::i;:::-;107302:38;-1:-1:-1;;;;;;107471:18:0;;;;;;:35;;;107502:4;-1:-1:-1;;;;;107493:13:0;:5;-1:-1:-1;;;;;107493:13:0;;;107471:35;:69;;;;;107511:29;107528:5;107535:4;107511:16;:29::i;:::-;107510:30;107471:69;107467:144;;;107568:27;;-1:-1:-1;;;107568:27:0;;-1:-1:-1;;;;;1688:32:1;;107568:27:0;;;1670:51:1;1643:18;;107568:27:0;1524:203:1;107467:144:0;107631:9;107627:83;;;107686:7;107682:2;-1:-1:-1;;;;;107666:28:0;107675:5;-1:-1:-1;;;;;107666:28:0;;;;;;;;;;;107627:83;107287:434;107250:471;-1:-1:-1;;107733:24:0;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;107733:29:0;-1:-1:-1;;;;;107733:29:0;;;;;;;;;;107092:678::o;99199:376::-;99312:38;99326:5;99333:7;99342;99312:13;:38::i;:::-;99307:261;;-1:-1:-1;;;;;99371:19:0;;99367:190;;99418:31;;-1:-1:-1;;;99418:31:0;;;;;738:25:1;;;711:18;;99418:31:0;592:177:1;99367:190:0;99497:44;;-1:-1:-1;;;99497:44:0;;-1:-1:-1;;;;;3137:32:1;;99497:44:0;;;3119:51:1;3186:18;;;3179:34;;;3092:18;;99497:44:0;2945:274:1;103179:210:0;103274:18;103280:2;103284:7;103274:5;:18::i;:::-;103303:78;17282:10;103359:1;103363:2;103367:7;103376:4;103303:33;:78::i;81567:948::-;81620:7;;-1:-1:-1;;;81698:17:0;;81694:106;;-1:-1:-1;;;81736:17:0;;;-1:-1:-1;81782:2:0;81772:12;81694:106;81827:8;81818:5;:17;81814:106;;81865:8;81856:17;;;-1:-1:-1;81902:2:0;81892:12;81814:106;81947:8;81938:5;:17;81934:106;;81985:8;81976:17;;;-1:-1:-1;82022:2:0;82012:12;81934:106;82067:7;82058:5;:16;82054:103;;82104:7;82095:16;;;-1:-1:-1;82140:1:0;82130:11;82054:103;82184:7;82175:5;:16;82171:103;;82221:7;82212:16;;;-1:-1:-1;82257:1:0;82247:11;82171:103;82301:7;82292:5;:16;82288:103;;82338:7;82329:16;;;-1:-1:-1;82374:1:0;82364:11;82288:103;82418:7;82409:5;:16;82405:68;;82456:1;82446:11;82501:6;81567:948;-1:-1:-1;;81567:948:0:o;98480:276::-;98583:4;-1:-1:-1;;;;;98620:21:0;;;;;;:128;;;98668:7;-1:-1:-1;;;;;98659:16:0;:5;-1:-1:-1;;;;;98659:16:0;;:52;;;;98679:32;98696:5;98703:7;98679:16;:32::i;:::-;98659:88;;;-1:-1:-1;98101:7:0;98128:24;;;:15;:24;;;;;;-1:-1:-1;;;;;98715:32:0;;;98128:24;;98715:32;98659:88;98600:148;98480:276;-1:-1:-1;;;;98480:276:0:o;102152:335::-;-1:-1:-1;;;;;102220:16:0;;102216:89;;102260:33;;-1:-1:-1;;;102260:33:0;;102290:1;102260:33;;;1670:51:1;1643:18;;102260:33:0;1524:203:1;102216:89:0;102315:21;102339:32;102347:2;102351:7;102368:1;102339:7;:32::i;:::-;102315:56;-1:-1:-1;;;;;;102386:27:0;;;102382:98;;102437:31;;-1:-1:-1;;;102437:31:0;;102465:1;102437:31;;;1670:51:1;1643:18;;102437:31:0;1524:203:1;14:131;-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;774:289::-;816:3;854:5;848:12;881:6;876:3;869:19;937:6;930:4;923:5;919:16;912:4;907:3;903:14;897:47;989:1;982:4;973:6;968:3;964:16;960:27;953:38;1052:4;1045:2;1041:7;1036:2;1028:6;1024:15;1020:29;1015:3;1011:39;1007:50;1000:57;;;774:289;;;;:::o;1068:220::-;1217:2;1206:9;1199:21;1180:4;1237:45;1278:2;1267:9;1263:18;1255:6;1237:45;:::i;1293:226::-;1352:6;1405:2;1393:9;1384:7;1380:23;1376:32;1373:52;;;1421:1;1418;1411:12;1373:52;-1:-1:-1;1466:23:1;;1293:226;-1:-1:-1;1293:226:1:o;1732:173::-;1800:20;;-1:-1:-1;;;;;1849:31:1;;1839:42;;1829:70;;1895:1;1892;1885:12;1829:70;1732:173;;;:::o;1910:300::-;1978:6;1986;2039:2;2027:9;2018:7;2014:23;2010:32;2007:52;;;2055:1;2052;2045:12;2007:52;2078:29;2097:9;2078:29;:::i;:::-;2068:39;2176:2;2161:18;;;;2148:32;;-1:-1:-1;;;1910:300:1:o;2215:374::-;2292:6;2300;2308;2361:2;2349:9;2340:7;2336:23;2332:32;2329:52;;;2377:1;2374;2367:12;2329:52;2400:29;2419:9;2400:29;:::i;:::-;2390:39;;2448:38;2482:2;2471:9;2467:18;2448:38;:::i;:::-;2215:374;;2438:48;;-1:-1:-1;;;2555:2:1;2540:18;;;;2527:32;;2215:374::o;2594:346::-;2662:6;2670;2723:2;2711:9;2702:7;2698:23;2694:32;2691:52;;;2739:1;2736;2729:12;2691:52;-1:-1:-1;;2784:23:1;;;2904:2;2889:18;;;2876:32;;-1:-1:-1;2594:346:1:o;3224:186::-;3283:6;3336:2;3324:9;3315:7;3311:23;3307:32;3304:52;;;3352:1;3349;3342:12;3304:52;3375:29;3394:9;3375:29;:::i;3415:127::-;3476:10;3471:3;3467:20;3464:1;3457:31;3507:4;3504:1;3497:15;3531:4;3528:1;3521:15;3547:716;3612:5;3644:1;3668:18;3660:6;3657:30;3654:56;;;3690:18;;:::i;:::-;-1:-1:-1;3845:2:1;3839:9;-1:-1:-1;;3758:2:1;3737:15;;3733:29;;3903:2;3891:15;3887:29;3875:42;;3968:22;;;3947:18;3932:34;;3929:62;3926:88;;;3994:18;;:::i;:::-;4030:2;4023:22;4078;;;4063:6;-1:-1:-1;4063:6:1;4115:16;;;4112:25;-1:-1:-1;4109:45:1;;;4150:1;4147;4140:12;4109:45;4200:6;4195:3;4188:4;4180:6;4176:17;4163:44;4255:1;4248:4;4239:6;4231;4227:19;4223:30;4216:41;;3547:716;;;;;:::o;4268:451::-;4337:6;4390:2;4378:9;4369:7;4365:23;4361:32;4358:52;;;4406:1;4403;4396:12;4358:52;4446:9;4433:23;4479:18;4471:6;4468:30;4465:50;;;4511:1;4508;4501:12;4465:50;4534:22;;4587:4;4579:13;;4575:27;-1:-1:-1;4565:55:1;;4616:1;4613;4606:12;4565:55;4639:74;4705:7;4700:2;4687:16;4682:2;4678;4674:11;4639:74;:::i;4724:610::-;4810:6;4818;4871:2;4859:9;4850:7;4846:23;4842:32;4839:52;;;4887:1;4884;4877:12;4839:52;4927:9;4914:23;4960:18;4952:6;4949:30;4946:50;;;4992:1;4989;4982:12;4946:50;5015:22;;5068:4;5060:13;;5056:27;-1:-1:-1;5046:55:1;;5097:1;5094;5087:12;5046:55;5137:2;5124:16;5163:18;5155:6;5152:30;5149:50;;;5195:1;5192;5185:12;5149:50;5248:7;5243:2;5233:6;5230:1;5226:14;5222:2;5218:23;5214:32;5211:45;5208:65;;;5269:1;5266;5259:12;5208:65;5300:2;5292:11;;;;;5322:6;;-1:-1:-1;4724:610:1;-1:-1:-1;;;4724:610:1:o;5339:160::-;5404:20;;5460:13;;5453:21;5443:32;;5433:60;;5489:1;5486;5479:12;5504:254;5569:6;5577;5630:2;5618:9;5609:7;5605:23;5601:32;5598:52;;;5646:1;5643;5636:12;5598:52;5669:29;5688:9;5669:29;:::i;:::-;5659:39;;5717:35;5748:2;5737:9;5733:18;5717:35;:::i;:::-;5707:45;;5504:254;;;;;:::o;5763:713::-;5858:6;5866;5874;5882;5935:3;5923:9;5914:7;5910:23;5906:33;5903:53;;;5952:1;5949;5942:12;5903:53;5975:29;5994:9;5975:29;:::i;:::-;5965:39;;6023:38;6057:2;6046:9;6042:18;6023:38;:::i;:::-;6013:48;-1:-1:-1;6130:2:1;6115:18;;6102:32;;-1:-1:-1;6209:2:1;6194:18;;6181:32;6236:18;6225:30;;6222:50;;;6268:1;6265;6258:12;6222:50;6291:22;;6344:4;6336:13;;6332:27;-1:-1:-1;6322:55:1;;6373:1;6370;6363:12;6322:55;6396:74;6462:7;6457:2;6444:16;6439:2;6435;6431:11;6396:74;:::i;:::-;6386:84;;;5763:713;;;;;;;:::o;6481:180::-;6537:6;6590:2;6578:9;6569:7;6565:23;6561:32;6558:52;;;6606:1;6603;6596:12;6558:52;6629:26;6645:9;6629:26;:::i;6666:260::-;6734:6;6742;6795:2;6783:9;6774:7;6770:23;6766:32;6763:52;;;6811:1;6808;6801:12;6763:52;6834:29;6853:9;6834:29;:::i;:::-;6824:39;;6882:38;6916:2;6905:9;6901:18;6882:38;:::i;6931:380::-;7010:1;7006:12;;;;7053;;;7074:61;;7128:4;7120:6;7116:17;7106:27;;7074:61;7181:2;7173:6;7170:14;7150:18;7147:38;7144:161;;7227:10;7222:3;7218:20;7215:1;7208:31;7262:4;7259:1;7252:15;7290:4;7287:1;7280:15;7144:161;;6931:380;;;:::o;7692:127::-;7753:10;7748:3;7744:20;7741:1;7734:31;7784:4;7781:1;7774:15;7808:4;7805:1;7798:15;7824:168;7897:9;;;7928;;7945:15;;;7939:22;;7925:37;7915:71;;7966:18;;:::i;8129:217::-;8169:1;8195;8185:132;;8239:10;8234:3;8230:20;8227:1;8220:31;8274:4;8271:1;8264:15;8302:4;8299:1;8292:15;8185:132;-1:-1:-1;8331:9:1;;8129:217::o;8477:518::-;8579:2;8574:3;8571:11;8568:421;;;8615:5;8612:1;8605:16;8659:4;8656:1;8646:18;8729:2;8717:10;8713:19;8710:1;8706:27;8700:4;8696:38;8765:4;8753:10;8750:20;8747:47;;;-1:-1:-1;8788:4:1;8747:47;8843:2;8838:3;8834:12;8831:1;8827:20;8821:4;8817:31;8807:41;;8898:81;8916:2;8909:5;8906:13;8898:81;;;8975:1;8961:16;;8942:1;8931:13;8898:81;;9171:1299;9297:3;9291:10;9324:18;9316:6;9313:30;9310:56;;;9346:18;;:::i;:::-;9375:97;9465:6;9425:38;9457:4;9451:11;9425:38;:::i;:::-;9419:4;9375:97;:::i;:::-;9521:4;9552:2;9541:14;;9569:1;9564:649;;;;10257:1;10274:6;10271:89;;;-1:-1:-1;10326:19:1;;;10320:26;10271:89;-1:-1:-1;;9128:1:1;9124:11;;;9120:24;9116:29;9106:40;9152:1;9148:11;;;9103:57;10373:81;;9534:930;;9564:649;8424:1;8417:14;;;8461:4;8448:18;;-1:-1:-1;;9600:20:1;;;9718:222;9732:7;9729:1;9726:14;9718:222;;;9814:19;;;9808:26;9793:42;;9921:4;9906:20;;;;9874:1;9862:14;;;;9748:12;9718:222;;;9722:3;9968:6;9959:7;9956:19;9953:201;;;10029:19;;;10023:26;-1:-1:-1;;10112:1:1;10108:14;;;10124:3;10104:24;10100:37;10096:42;10081:58;10066:74;;9953:201;-1:-1:-1;;;;10200:1:1;10184:14;;;10180:22;10167:36;;-1:-1:-1;9171:1299:1:o;10475:127::-;10536:10;10531:3;10527:20;10524:1;10517:31;10567:4;10564:1;10557:15;10591:4;10588:1;10581:15;10957:125;11022:9;;;11043:10;;;11040:36;;;11056:18;;:::i;12551:1104::-;12828:3;12857:1;12890:6;12884:13;12920:36;12946:9;12920:36;:::i;:::-;12987:1;12972:17;;12998:133;;;;13145:1;13140:332;;;;12965:507;;12998:133;-1:-1:-1;;13031:24:1;;13019:37;;13104:14;;13097:22;13085:35;;13076:45;;;-1:-1:-1;12998:133:1;;13140:332;13171:6;13168:1;13161:17;13219:4;13216:1;13206:18;13246:1;13260:166;13274:6;13271:1;13268:13;13260:166;;;13354:14;;13341:11;;;13334:35;13410:1;13397:15;;;;13296:4;13289:12;13260:166;;;13264:3;;13455:6;13450:3;13446:16;13439:23;;12965:507;;;;13503:6;13497:13;13549:8;13542:4;13534:6;13530:17;13525:3;13519:39;-1:-1:-1;;;13577:18:1;;13604:19;;;13647:1;13639:10;;12551:1104;-1:-1:-1;;;;12551:1104:1:o;13660:485::-;-1:-1:-1;;;;;13891:32:1;;;13873:51;;13960:32;;13955:2;13940:18;;13933:60;14024:2;14009:18;;14002:34;;;14072:3;14067:2;14052:18;;14045:31;;;-1:-1:-1;;14093:46:1;;14119:19;;14111:6;14093:46;:::i;:::-;14085:54;13660:485;-1:-1:-1;;;;;;13660:485:1:o;14150:249::-;14219:6;14272:2;14260:9;14251:7;14247:23;14243:32;14240:52;;;14288:1;14285;14278:12;14240:52;14320:9;14314:16;14339:30;14363:5;14339:30;:::i
Swarm Source
ipfs://318f629e4f9a7485fa70b537d5315abddccedc32ae78491942032d614515974e
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,266.52 | 0.42 | $1,371.94 |
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.