ERC-721
NFT
Overview
Max Total Supply
1,111 JETPACK
Holders
677
Market
Volume (24H)
0.4209 ETH
Min Price (24H)
$422.66 @ 0.122000 ETH
Max Price (24H)
$1,035.70 @ 0.298949 ETH
Other Info
Token Contract
Balance
1 JETPACKLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
JetPack
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/* JetPack token contract SPDX-License-Identifier: MIT */ pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { 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 division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: node_modules\@openzeppelin\contracts\token\ERC721\IERC721.sol /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns 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); /** * @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; } // File: node_modules\@openzeppelin\contracts\token\ERC721\IERC721Receiver.sol /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: node_modules\@openzeppelin\contracts\token\ERC721\extensions\IERC721Metadata.sol /** * @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: node_modules\@openzeppelin\contracts\utils\Address.sol /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: node_modules\@openzeppelin\contracts\utils\Context.sol /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: node_modules\@openzeppelin\contracts\utils\Strings.sol /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } // File: node_modules\@openzeppelin\contracts\utils\introspection\ERC165.sol /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: node_modules\@openzeppelin\contracts\token\ERC721\ERC721.sol /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Base URI string _baseURIextended; /** * @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 override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return _baseURIextended; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - 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, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * 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 virtual { _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); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @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 virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), 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 virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} } // File: @openzeppelin\contracts\token\ERC721\extensions\ERC721URIStorage.sol /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } } // File: node_modules\@openzeppelin\contracts\token\ERC721\extensions\IERC721Enumerable.sol /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // File: @openzeppelin\contracts\token\ERC721\extensions\ERC721Enumerable.sol /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } // File: @openzeppelin\contracts\utils\Counters.sol /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } } // File: node_modules\@openzeppelin\contracts\access\IAccessControl.sol /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; } // File: @openzeppelin\contracts\access\AccessControl.sol /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } contract JetPack is ERC721URIStorage, AccessControl, ERC721Enumerable, Ownable { using Counters for Counters.Counter; Counters.Counter private _tokenIds; using SafeMath for uint256; uint256 public constant MINT_NFT_FEE = 110000000000000000; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); uint256 public MAXIMUM_TOTAL_SUPPLY; uint256 public PRE_SALE_TIME_START; uint256 public PRE_SALE_TIME_END; uint256 public PUBLIC_SALE_TIME_START; mapping(uint256 => uint256) internal tokenIds_attributes; mapping (address => bool) public preSaleAddressesMint; mapping (address => bool) public preSaleWhiteListAddresses; address public JETPACK_ADMIN_WALLET = 0x85F2D9C49Da205C089Bb96fD6171064c5f1c02C6; bool public isAdminJetPackMinted = false; constructor() ERC721("Jadu Jetpack", "JETPACK") { _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(MINTER_ROLE, msg.sender); setBaseURI("https://us-east1-jadu-e23c4.cloudfunctions.net/getJetPack?tokenId="); MAXIMUM_TOTAL_SUPPLY = 1111; PRE_SALE_TIME_START = 1631815200; // 6 PM UTC Time PRE_SALE_TIME_END = 1631826000; // 9 PM UTC Time PUBLIC_SALE_TIME_START = 1631827800; // 9:30 PM UTC TIME } function mintAdminJetPack() public onlyOwner { require(!isAdminJetPackMinted, "JETPACK: Already Admin Tokens Minted"); for(uint i = 0; i< 150; i++) { _tokenIds.increment(); uint256 newItemId = _tokenIds.current(); _mint(JETPACK_ADMIN_WALLET, newItemId); } isAdminJetPackMinted = true; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, AccessControl, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, amount); } function _burn(uint256 tokenId) internal virtual override(ERC721, ERC721URIStorage) { super._burn(tokenId); } function tokenURI(uint256 tokenId) public view virtual override(ERC721, ERC721URIStorage) returns (string memory) { return super.tokenURI(tokenId); } function setPreSaleWhiteListAddress(address[] memory addresses, bool[] memory statuses) public onlyOwner() { for (uint i = 0; i < addresses.length; i++) { preSaleWhiteListAddresses[addresses[i]] = statuses[i]; } } function setBaseURI(string memory baseURI_) public onlyOwner() { _baseURIextended = baseURI_; } function getCurrentTokenId() public view returns (uint256) { return _tokenIds.current(); } function preSaleMint( address _mintTo , string memory _tokenURI ) external payable returns (bool) { require(preSaleWhiteListAddresses[msg.sender], "JETPACK, You are not whitelisted to mint pre sale token"); require(!preSaleAddressesMint[msg.sender], "JETPACK, You have already minted pre sale token"); require(block.timestamp >= PRE_SALE_TIME_START && block.timestamp <= PRE_SALE_TIME_END, "JETPACK: This is not pre sale time for minting"); require(totalSupply() + 1 <= MAXIMUM_TOTAL_SUPPLY, "JETPACK: Maximum Supply Minted"); require(msg.value == MINT_NFT_FEE, "JETPACK: Invalid Minting Fee"); payable(JETPACK_ADMIN_WALLET).transfer(msg.value); _tokenIds.increment(); uint256 newItemId = _tokenIds.current(); _mint(_mintTo, newItemId); _setTokenURI(newItemId, _tokenURI ); preSaleAddressesMint[msg.sender] = true; return true; } function bachMint( address _mintTo , uint256 _maxMintCount , string memory _tokenURI ) external payable returns (bool) { require(block.timestamp >= PUBLIC_SALE_TIME_START, "JETPACK: Public Sale not yet started"); require(_maxMintCount >= 0 && _maxMintCount <= 6, "JETPACK: Invalid Max Mint Count"); require(totalSupply() + _maxMintCount <= MAXIMUM_TOTAL_SUPPLY, "JETPACK: Maximum Supply Minted"); require(msg.value == MINT_NFT_FEE.mul(_maxMintCount), "JETPACK: Invalid Minting Fee"); payable(JETPACK_ADMIN_WALLET).transfer(msg.value); for(uint i = 0; i < _maxMintCount; i++ ) { _tokenIds.increment(); uint256 newItemId = _tokenIds.current(); _mint(_mintTo, newItemId); _setTokenURI(newItemId, _tokenURI ); } return true; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"JETPACK_ADMIN_WALLET","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_NFT_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRE_SALE_TIME_END","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRE_SALE_TIME_START","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_SALE_TIME_START","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_mintTo","type":"address"},{"internalType":"uint256","name":"_maxMintCount","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"bachMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","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":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isAdminJetPackMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintAdminJetPack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"preSaleAddressesMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_mintTo","type":"address"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"preSaleMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"preSaleWhiteListAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"bool[]","name":"statuses","type":"bool[]"}],"name":"setPreSaleWhiteListAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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"}]
Contract Creation Code
60806040526016805460ff60a01b196001600160a01b03199091167385f2d9c49da205c089bb96fd6171064c5f1c02c6171690553480156200004057600080fd5b50604080518082018252600c81526b4a616475204a65747061636b60a01b6020808301918252835180850190945260078452664a45545041434b60c81b9084015281519192916200009491600091620002d8565b508051620000aa906001906020840190620002d8565b505050620000c7620000c16200014860201b60201c565b6200014c565b620000d46000336200019e565b620001007f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336200019e565b62000124604051806080016040528060428152602001620034ca60429139620001ae565b610457600f556361438620601055636143b050601155636143b758601255620003f0565b3390565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620001aa828262000212565b5050565b620001b862000148565b6001600160a01b0316620001cb6200029e565b6001600160a01b031614620001fd5760405162461bcd60e51b8152600401620001f4906200037e565b60405180910390fd5b8051620001aa906006906020840190620002d8565b6200021e8282620002ad565b620001aa5760008281526008602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200025a62000148565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600d546001600160a01b031690565b60009182526008602090815260408084206001600160a01b0393909316845291905290205460ff1690565b828054620002e690620003b3565b90600052602060002090601f0160209004810192826200030a576000855562000355565b82601f106200032557805160ff191683800117855562000355565b8280016001018555821562000355579182015b828111156200035557825182559160200191906001019062000338565b506200036392915062000367565b5090565b5b8082111562000363576000815560010162000368565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600281046001821680620003c857607f821691505b60208210811415620003ea57634e487b7160e01b600052602260045260246000fd5b50919050565b6130ca80620004006000396000f3fe6080604052600436106102465760003560e01c80636352211e11610139578063a217fddf116100b6578063d53913931161007a578063d539139314610641578063d547741f14610656578063da41f33814610676578063e985e9c51461068b578063f0ad71cb146106ab578063f2fde38b146106c057610246565b8063a217fddf146105b7578063a22cb465146105cc578063b0aa593d146105ec578063b88d4fde14610601578063c87b56dd1461062157610246565b80638bc6e0da116100fd5780638bc6e0da146105455780638da5cb5b1461055a57806391d148541461056f57806395d89b411461058f578063a17a4741146105a457610246565b80636352211e146104c65780636f0a2ebc146104e657806370a08231146104fb578063715018a61461051b5780637f9165561461053057610246565b80632c965171116101c757806342842e0e1161018b57806342842e0e1461043e578063487b5a391461045e5780634f6ccce71461047157806355f804b31461049157806356189236146104b157610246565b80632c965171146103a95780632f2ff15d146103be5780632f745c59146103de57806336568abe146103fe5780633bff26881461041e57610246565b806313b521411161020e57806313b521411461031457806318160ddd1461033457806323b872dd14610349578063248a9ca3146103695780632721ba591461038957610246565b806301ffc9a71461024b578063050f5aa21461028157806306fdde03146102a3578063081812fc146102c5578063095ea7b3146102f2575b600080fd5b34801561025757600080fd5b5061026b6102663660046124e5565b6106e0565b6040516102789190612671565b60405180910390f35b34801561028d57600080fd5b506102966106f3565b604051610278919061267c565b3480156102af57600080fd5b506102b86106f9565b6040516102789190612685565b3480156102d157600080fd5b506102e56102e03660046124ab565b61078b565b6040516102789190612620565b3480156102fe57600080fd5b5061031261030d366004612379565b6107d7565b005b34801561032057600080fd5b5061026b61032f366004612204565b61086f565b34801561034057600080fd5b50610296610884565b34801561035557600080fd5b50610312610364366004612250565b61088a565b34801561037557600080fd5b506102966103843660046124ab565b6108c2565b34801561039557600080fd5b506103126103a43660046123f7565b6108d7565b3480156103b557600080fd5b506102966109b2565b3480156103ca57600080fd5b506103126103d93660046124c3565b6109b8565b3480156103ea57600080fd5b506102966103f9366004612379565b6109dc565b34801561040a57600080fd5b506103126104193660046124c3565b610a2e565b34801561042a57600080fd5b5061026b610439366004612204565b610a74565b34801561044a57600080fd5b50610312610459366004612250565b610a89565b61026b61046c3660046123a2565b610aa4565b34801561047d57600080fd5b5061029661048c3660046124ab565b610bdc565b34801561049d57600080fd5b506103126104ac36600461251d565b610c37565b3480156104bd57600080fd5b50610296610c89565b3480156104d257600080fd5b506102e56104e13660046124ab565b610c9a565b3480156104f257600080fd5b50610312610ccf565b34801561050757600080fd5b50610296610516366004612204565b610d9c565b34801561052757600080fd5b50610312610de0565b34801561053c57600080fd5b506102e5610e2b565b34801561055157600080fd5b50610296610e3a565b34801561056657600080fd5b506102e5610e40565b34801561057b57600080fd5b5061026b61058a3660046124c3565b610e4f565b34801561059b57600080fd5b506102b8610e7a565b61026b6105b236600461232d565b610e89565b3480156105c357600080fd5b50610296610ffe565b3480156105d857600080fd5b506103126105e7366004612304565b611003565b3480156105f857600080fd5b506102966110d1565b34801561060d57600080fd5b5061031261061c36600461228b565b6110d7565b34801561062d57600080fd5b506102b861063c3660046124ab565b611116565b34801561064d57600080fd5b50610296611121565b34801561066257600080fd5b506103126106713660046124c3565b611145565b34801561068257600080fd5b50610296611164565b34801561069757600080fd5b5061026b6106a636600461221e565b611170565b3480156106b757600080fd5b5061026b61119e565b3480156106cc57600080fd5b506103126106db366004612204565b6111ae565b60006106eb8261121f565b90505b919050565b60105481565b60606000805461070890612fd2565b80601f016020809104026020016040519081016040528092919081815260200182805461073490612fd2565b80156107815780601f1061075657610100808354040283529160200191610781565b820191906000526020600020905b81548152906001019060200180831161076457829003601f168201915b5050505050905090565b600061079682611244565b6107bb5760405162461bcd60e51b81526004016107b290612b7f565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006107e282610c9a565b9050806001600160a01b0316836001600160a01b031614156108165760405162461bcd60e51b81526004016107b290612c98565b806001600160a01b0316610828611261565b6001600160a01b031614806108445750610844816106a6611261565b6108605760405162461bcd60e51b81526004016107b2906129bb565b61086a8383611265565b505050565b60146020526000908152604090205460ff1681565b600b5490565b61089b610895611261565b826112d3565b6108b75760405162461bcd60e51b81526004016107b290612d47565b61086a838383611358565b60009081526008602052604090206001015490565b6108df611261565b6001600160a01b03166108f0610e40565b6001600160a01b0316146109165760405162461bcd60e51b81526004016107b290612bcb565b60005b825181101561086a5781818151811061094257634e487b7160e01b600052603260045260246000fd5b60200260200101516015600085848151811061096e57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806109aa8161300d565b915050610919565b60125481565b6109c1826108c2565b6109d2816109cd611261565b611485565b61086a83836114e9565b60006109e783610d9c565b8210610a055760405162461bcd60e51b81526004016107b290612755565b506001600160a01b03919091166000908152600960209081526040808320938352929052205490565b610a36611261565b6001600160a01b0316816001600160a01b031614610a665760405162461bcd60e51b81526004016107b290612e90565b610a708282611570565b5050565b60156020526000908152604090205460ff1681565b61086a838383604051806020016040528060008152506110d7565b6000601254421015610ac85760405162461bcd60e51b81526004016107b290612698565b6006831115610ae95760405162461bcd60e51b81526004016107b29061286f565b600f5483610af5610884565b610aff9190612f2d565b1115610b1d5760405162461bcd60e51b81526004016107b290612cd9565b610b2f670186cc6acd4b0000846115f5565b3414610b4d5760405162461bcd60e51b81526004016107b290612d10565b6016546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610b86573d6000803e3d6000fd5b5060005b83811015610bd157610b9c600e611608565b6000610ba8600e611611565b9050610bb48682611615565b610bbe81856116f4565b5080610bc98161300d565b915050610b8a565b506001949350505050565b6000610be6610884565b8210610c045760405162461bcd60e51b81526004016107b290612de7565b600b8281548110610c2557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b610c3f611261565b6001600160a01b0316610c50610e40565b6001600160a01b031614610c765760405162461bcd60e51b81526004016107b290612bcb565b8051610a7090600690602084019061205a565b6000610c95600e611611565b905090565b6000818152600260205260408120546001600160a01b0316806106eb5760405162461bcd60e51b81526004016107b290612a62565b610cd7611261565b6001600160a01b0316610ce8610e40565b6001600160a01b031614610d0e5760405162461bcd60e51b81526004016107b290612bcb565b601654600160a01b900460ff1615610d385760405162461bcd60e51b81526004016107b290612711565b60005b6096811015610d8657610d4e600e611608565b6000610d5a600e611611565b601654909150610d73906001600160a01b031682611615565b5080610d7e8161300d565b915050610d3b565b506016805460ff60a01b1916600160a01b179055565b60006001600160a01b038216610dc45760405162461bcd60e51b81526004016107b290612a18565b506001600160a01b031660009081526003602052604090205490565b610de8611261565b6001600160a01b0316610df9610e40565b6001600160a01b031614610e1f5760405162461bcd60e51b81526004016107b290612bcb565b610e296000611738565b565b6016546001600160a01b031681565b60115481565b600d546001600160a01b031690565b60009182526008602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606001805461070890612fd2565b3360009081526015602052604081205460ff16610eb85760405162461bcd60e51b81526004016107b290612e33565b3360009081526014602052604090205460ff1615610ee85760405162461bcd60e51b81526004016107b290612d98565b6010544210158015610efc57506011544211155b610f185760405162461bcd60e51b81526004016107b29061296d565b600f54610f23610884565b610f2e906001612f2d565b1115610f4c5760405162461bcd60e51b81526004016107b290612cd9565b670186cc6acd4b00003414610f735760405162461bcd60e51b81526004016107b290612d10565b6016546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610fac573d6000803e3d6000fd5b50610fb7600e611608565b6000610fc3600e611611565b9050610fcf8482611615565b610fd981846116f4565b5050336000908152601460205260409020805460ff1916600190811790915592915050565b600081565b61100b611261565b6001600160a01b0316826001600160a01b0316141561103c5760405162461bcd60e51b81526004016107b2906128ea565b8060056000611049611261565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561108d611261565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516110c59190612671565b60405180910390a35050565b600f5481565b6110e86110e2611261565b836112d3565b6111045760405162461bcd60e51b81526004016107b290612d47565b6111108484848461178a565b50505050565b60606106eb826117bd565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61114e826108c2565b61115a816109cd611261565b61086a8383611570565b670186cc6acd4b000081565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b601654600160a01b900460ff1681565b6111b6611261565b6001600160a01b03166111c7610e40565b6001600160a01b0316146111ed5760405162461bcd60e51b81526004016107b290612bcb565b6001600160a01b0381166112135760405162461bcd60e51b81526004016107b2906127f2565b61121c81611738565b50565b60006001600160e01b0319821663780e9d6360e01b14806106eb57506106eb826118d6565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061129a82610c9a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006112de82611244565b6112fa5760405162461bcd60e51b81526004016107b290612921565b600061130583610c9a565b9050806001600160a01b0316846001600160a01b031614806113405750836001600160a01b03166113358461078b565b6001600160a01b0316145b8061135057506113508185611170565b949350505050565b826001600160a01b031661136b82610c9a565b6001600160a01b0316146113915760405162461bcd60e51b81526004016107b290612c00565b6001600160a01b0382166113b75760405162461bcd60e51b81526004016107b2906128a6565b6113c28383836118fb565b6113cd600082611265565b6001600160a01b03831660009081526003602052604081208054600192906113f6908490612f78565b90915550506001600160a01b0382166000908152600360205260408120805460019290611424908490612f2d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61148f8282610e4f565b610a70576114a7816001600160a01b03166014611906565b6114b2836020611906565b6040516020016114c39291906125ab565b60408051601f198184030181529082905262461bcd60e51b82526107b291600401612685565b6114f38282610e4f565b610a705760008281526008602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561152c611261565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61157a8282610e4f565b15610a705760008281526008602090815260408083206001600160a01b03851684529091529020805460ff191690556115b1611261565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60006116018284612f59565b9392505050565b80546001019055565b5490565b6001600160a01b03821661163b5760405162461bcd60e51b81526004016107b290612af9565b61164481611244565b156116615760405162461bcd60e51b81526004016107b290612838565b61166d600083836118fb565b6001600160a01b0382166000908152600360205260408120805460019290611696908490612f2d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6116fd82611244565b6117195760405162461bcd60e51b81526004016107b290612aab565b6000828152600760209081526040909120825161086a9284019061205a565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611795848484611358565b6117a184848484611ab8565b6111105760405162461bcd60e51b81526004016107b2906127a0565b60606117c882611244565b6117e45760405162461bcd60e51b81526004016107b290612b2e565b600082815260076020526040812080546117fd90612fd2565b80601f016020809104026020016040519081016040528092919081815260200182805461182990612fd2565b80156118765780601f1061184b57610100808354040283529160200191611876565b820191906000526020600020905b81548152906001019060200180831161185957829003601f168201915b505050505090506000611887611bc8565b905080516000141561189b575090506106ee565b8151156118cd5780826040516020016118b592919061257c565b604051602081830303815290604052925050506106ee565b61135084611bd7565b60006001600160e01b03198216637965db0b60e01b14806106eb57506106eb82611c59565b61086a838383611c99565b60606000611915836002612f59565b611920906002612f2d565b67ffffffffffffffff81111561194657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611970576020820181803683370190505b509050600360fc1b8160008151811061199957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106119d657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006119fa846002612f59565b611a05906001612f2d565b90505b6001811115611a99576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611a4757634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110611a6b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93611a9281612fbb565b9050611a08565b5083156116015760405162461bcd60e51b81526004016107b2906126dc565b6000611acc846001600160a01b0316611d22565b15610bd157836001600160a01b031663150b7a02611ae8611261565b8786866040518563ffffffff1660e01b8152600401611b0a9493929190612634565b602060405180830381600087803b158015611b2457600080fd5b505af1925050508015611b54575060408051601f3d908101601f19168201909252611b5191810190612501565b60015b611bae573d808015611b82576040519150601f19603f3d011682016040523d82523d6000602084013e611b87565b606091505b508051611ba65760405162461bcd60e51b81526004016107b2906127a0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611350565b60606006805461070890612fd2565b6060611be282611244565b611bfe5760405162461bcd60e51b81526004016107b290612c49565b6000611c08611bc8565b90506000815111611c285760405180602001604052806000815250611601565b80611c3284611d28565b604051602001611c4392919061257c565b6040516020818303038152906040529392505050565b60006001600160e01b031982166380ac58cd60e01b1480611c8a57506001600160e01b03198216635b5e139f60e01b145b806106eb57506106eb82611e43565b611ca483838361086a565b6001600160a01b038316611cc057611cbb81611e5c565b611ce3565b816001600160a01b0316836001600160a01b031614611ce357611ce38382611ea0565b6001600160a01b038216611cff57611cfa81611f3d565b61086a565b826001600160a01b0316826001600160a01b03161461086a5761086a8282612016565b3b151590565b606081611d4d57506040805180820190915260018152600360fc1b60208201526106ee565b8160005b8115611d775780611d618161300d565b9150611d709050600a83612f45565b9150611d51565b60008167ffffffffffffffff811115611da057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611dca576020820181803683370190505b5090505b841561135057611ddf600183612f78565b9150611dec600a86613028565b611df7906030612f2d565b60f81b818381518110611e1a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611e3c600a86612f45565b9450611dce565b6001600160e01b031981166301ffc9a760e01b14919050565b600b80546000838152600c60205260408120829055600182018355919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90155565b60006001611ead84610d9c565b611eb79190612f78565b6000838152600a6020526040902054909150808214611f0a576001600160a01b03841660009081526009602090815260408083208584528252808320548484528184208190558352600a90915290208190555b506000918252600a602090815260408084208490556001600160a01b039094168352600981528383209183525290812055565b600b54600090611f4f90600190612f78565b6000838152600c6020526040812054600b8054939450909284908110611f8557634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600b8381548110611fb457634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600c9091526040808220849055858252812055600b805480611ffa57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061202183610d9c565b6001600160a01b0390931660009081526009602090815260408083208684528252808320859055938252600a9052919091209190915550565b82805461206690612fd2565b90600052602060002090601f01602090048101928261208857600085556120ce565b82601f106120a157805160ff19168380011785556120ce565b828001600101855582156120ce579182015b828111156120ce5782518255916020019190600101906120b3565b506120da9291506120de565b5090565b5b808211156120da57600081556001016120df565b600067ffffffffffffffff83111561210d5761210d613068565b612120601f8401601f1916602001612edf565b905082815283838301111561213457600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b03811681146106ee57600080fd5b600082601f830112612172578081fd5b8135602061218761218283612f09565b612edf565b82815281810190858301838502870184018810156121a3578586fd5b855b858110156121c8576121b6826121d5565b845292840192908401906001016121a5565b5090979650505050505050565b803580151581146106ee57600080fd5b600082601f8301126121f5578081fd5b611601838335602085016120f3565b600060208284031215612215578081fd5b6116018261214b565b60008060408385031215612230578081fd5b6122398361214b565b91506122476020840161214b565b90509250929050565b600080600060608486031215612264578081fd5b61226d8461214b565b925061227b6020850161214b565b9150604084013590509250925092565b600080600080608085870312156122a0578081fd5b6122a98561214b565b93506122b76020860161214b565b925060408501359150606085013567ffffffffffffffff8111156122d9578182fd5b8501601f810187136122e9578182fd5b6122f8878235602084016120f3565b91505092959194509250565b60008060408385031215612316578182fd5b61231f8361214b565b9150612247602084016121d5565b6000806040838503121561233f578182fd5b6123488361214b565b9150602083013567ffffffffffffffff811115612363578182fd5b61236f858286016121e5565b9150509250929050565b6000806040838503121561238b578182fd5b6123948361214b565b946020939093013593505050565b6000806000606084860312156123b6578283fd5b6123bf8461214b565b925060208401359150604084013567ffffffffffffffff8111156123e1578182fd5b6123ed868287016121e5565b9150509250925092565b60008060408385031215612409578182fd5b823567ffffffffffffffff80821115612420578384fd5b818501915085601f830112612433578384fd5b8135602061244361218283612f09565b82815281810190858301838502870184018b101561245f578889fd5b8896505b84871015612488576124748161214b565b835260019690960195918301918301612463565b509650508601359250508082111561249e578283fd5b5061236f85828601612162565b6000602082840312156124bc578081fd5b5035919050565b600080604083850312156124d5578182fd5b823591506122476020840161214b565b6000602082840312156124f6578081fd5b81356116018161307e565b600060208284031215612512578081fd5b81516116018161307e565b60006020828403121561252e578081fd5b813567ffffffffffffffff811115612544578182fd5b611350848285016121e5565b60008151808452612568816020860160208601612f8f565b601f01601f19169290920160200192915050565b6000835161258e818460208801612f8f565b8351908301906125a2818360208801612f8f565b01949350505050565b60007f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000825283516125e3816017850160208801612f8f565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612614816028840160208801612f8f565b01602801949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061266790830184612550565b9695505050505050565b901515815260200190565b90815260200190565b6000602082526116016020830184612550565b60208082526024908201527f4a45545041434b3a205075626c69632053616c65206e6f7420796574207374616040820152631c9d195960e21b606082015260800190565b6020808252818101527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604082015260600190565b60208082526024908201527f4a45545041434b3a20416c72656164792041646d696e20546f6b656e73204d696040820152631b9d195960e21b606082015260800190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252601f908201527f4a45545041434b3a20496e76616c6964204d6178204d696e7420436f756e7400604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252602e908201527f4a45545041434b3a2054686973206973206e6f74207072652073616c6520746960408201526d6d6520666f72206d696e74696e6760901b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252602e908201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60408201526d32bc34b9ba32b73a103a37b5b2b760911b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526031908201527f45524337323155524953746f726167653a2055524920717565727920666f72206040820152703737b732bc34b9ba32b73a103a37b5b2b760791b606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252601e908201527f4a45545041434b3a204d6178696d756d20537570706c79204d696e7465640000604082015260600190565b6020808252601c908201527f4a45545041434b3a20496e76616c6964204d696e74696e672046656500000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602f908201527f4a45545041434b2c20596f75206861766520616c7265616479206d696e74656460408201526e103839329039b0b632903a37b5b2b760891b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b60208082526037908201527f4a45545041434b2c20596f7520617265206e6f742077686974656c697374656460408201527f20746f206d696e74207072652073616c6520746f6b656e000000000000000000606082015260800190565b6020808252602f908201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560408201526e103937b632b9903337b91039b2b63360891b606082015260800190565b60405181810167ffffffffffffffff81118282101715612f0157612f01613068565b604052919050565b600067ffffffffffffffff821115612f2357612f23613068565b5060209081020190565b60008219821115612f4057612f4061303c565b500190565b600082612f5457612f54613052565b500490565b6000816000190483118215151615612f7357612f7361303c565b500290565b600082821015612f8a57612f8a61303c565b500390565b60005b83811015612faa578181015183820152602001612f92565b838111156111105750506000910152565b600081612fca57612fca61303c565b506000190190565b600281046001821680612fe657607f821691505b6020821081141561300757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156130215761302161303c565b5060010190565b60008261303757613037613052565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461121c57600080fdfea26469706673582212206ba34923c7a45b4ae6137fbe6bd36c96ccf34ae6f99ec8b8b96980fde7e8b1a164736f6c6343000800003368747470733a2f2f75732d65617374312d6a6164752d65323363342e636c6f756466756e6374696f6e732e6e65742f6765744a65745061636b3f746f6b656e49643d
Deployed Bytecode
0x6080604052600436106102465760003560e01c80636352211e11610139578063a217fddf116100b6578063d53913931161007a578063d539139314610641578063d547741f14610656578063da41f33814610676578063e985e9c51461068b578063f0ad71cb146106ab578063f2fde38b146106c057610246565b8063a217fddf146105b7578063a22cb465146105cc578063b0aa593d146105ec578063b88d4fde14610601578063c87b56dd1461062157610246565b80638bc6e0da116100fd5780638bc6e0da146105455780638da5cb5b1461055a57806391d148541461056f57806395d89b411461058f578063a17a4741146105a457610246565b80636352211e146104c65780636f0a2ebc146104e657806370a08231146104fb578063715018a61461051b5780637f9165561461053057610246565b80632c965171116101c757806342842e0e1161018b57806342842e0e1461043e578063487b5a391461045e5780634f6ccce71461047157806355f804b31461049157806356189236146104b157610246565b80632c965171146103a95780632f2ff15d146103be5780632f745c59146103de57806336568abe146103fe5780633bff26881461041e57610246565b806313b521411161020e57806313b521411461031457806318160ddd1461033457806323b872dd14610349578063248a9ca3146103695780632721ba591461038957610246565b806301ffc9a71461024b578063050f5aa21461028157806306fdde03146102a3578063081812fc146102c5578063095ea7b3146102f2575b600080fd5b34801561025757600080fd5b5061026b6102663660046124e5565b6106e0565b6040516102789190612671565b60405180910390f35b34801561028d57600080fd5b506102966106f3565b604051610278919061267c565b3480156102af57600080fd5b506102b86106f9565b6040516102789190612685565b3480156102d157600080fd5b506102e56102e03660046124ab565b61078b565b6040516102789190612620565b3480156102fe57600080fd5b5061031261030d366004612379565b6107d7565b005b34801561032057600080fd5b5061026b61032f366004612204565b61086f565b34801561034057600080fd5b50610296610884565b34801561035557600080fd5b50610312610364366004612250565b61088a565b34801561037557600080fd5b506102966103843660046124ab565b6108c2565b34801561039557600080fd5b506103126103a43660046123f7565b6108d7565b3480156103b557600080fd5b506102966109b2565b3480156103ca57600080fd5b506103126103d93660046124c3565b6109b8565b3480156103ea57600080fd5b506102966103f9366004612379565b6109dc565b34801561040a57600080fd5b506103126104193660046124c3565b610a2e565b34801561042a57600080fd5b5061026b610439366004612204565b610a74565b34801561044a57600080fd5b50610312610459366004612250565b610a89565b61026b61046c3660046123a2565b610aa4565b34801561047d57600080fd5b5061029661048c3660046124ab565b610bdc565b34801561049d57600080fd5b506103126104ac36600461251d565b610c37565b3480156104bd57600080fd5b50610296610c89565b3480156104d257600080fd5b506102e56104e13660046124ab565b610c9a565b3480156104f257600080fd5b50610312610ccf565b34801561050757600080fd5b50610296610516366004612204565b610d9c565b34801561052757600080fd5b50610312610de0565b34801561053c57600080fd5b506102e5610e2b565b34801561055157600080fd5b50610296610e3a565b34801561056657600080fd5b506102e5610e40565b34801561057b57600080fd5b5061026b61058a3660046124c3565b610e4f565b34801561059b57600080fd5b506102b8610e7a565b61026b6105b236600461232d565b610e89565b3480156105c357600080fd5b50610296610ffe565b3480156105d857600080fd5b506103126105e7366004612304565b611003565b3480156105f857600080fd5b506102966110d1565b34801561060d57600080fd5b5061031261061c36600461228b565b6110d7565b34801561062d57600080fd5b506102b861063c3660046124ab565b611116565b34801561064d57600080fd5b50610296611121565b34801561066257600080fd5b506103126106713660046124c3565b611145565b34801561068257600080fd5b50610296611164565b34801561069757600080fd5b5061026b6106a636600461221e565b611170565b3480156106b757600080fd5b5061026b61119e565b3480156106cc57600080fd5b506103126106db366004612204565b6111ae565b60006106eb8261121f565b90505b919050565b60105481565b60606000805461070890612fd2565b80601f016020809104026020016040519081016040528092919081815260200182805461073490612fd2565b80156107815780601f1061075657610100808354040283529160200191610781565b820191906000526020600020905b81548152906001019060200180831161076457829003601f168201915b5050505050905090565b600061079682611244565b6107bb5760405162461bcd60e51b81526004016107b290612b7f565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006107e282610c9a565b9050806001600160a01b0316836001600160a01b031614156108165760405162461bcd60e51b81526004016107b290612c98565b806001600160a01b0316610828611261565b6001600160a01b031614806108445750610844816106a6611261565b6108605760405162461bcd60e51b81526004016107b2906129bb565b61086a8383611265565b505050565b60146020526000908152604090205460ff1681565b600b5490565b61089b610895611261565b826112d3565b6108b75760405162461bcd60e51b81526004016107b290612d47565b61086a838383611358565b60009081526008602052604090206001015490565b6108df611261565b6001600160a01b03166108f0610e40565b6001600160a01b0316146109165760405162461bcd60e51b81526004016107b290612bcb565b60005b825181101561086a5781818151811061094257634e487b7160e01b600052603260045260246000fd5b60200260200101516015600085848151811061096e57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806109aa8161300d565b915050610919565b60125481565b6109c1826108c2565b6109d2816109cd611261565b611485565b61086a83836114e9565b60006109e783610d9c565b8210610a055760405162461bcd60e51b81526004016107b290612755565b506001600160a01b03919091166000908152600960209081526040808320938352929052205490565b610a36611261565b6001600160a01b0316816001600160a01b031614610a665760405162461bcd60e51b81526004016107b290612e90565b610a708282611570565b5050565b60156020526000908152604090205460ff1681565b61086a838383604051806020016040528060008152506110d7565b6000601254421015610ac85760405162461bcd60e51b81526004016107b290612698565b6006831115610ae95760405162461bcd60e51b81526004016107b29061286f565b600f5483610af5610884565b610aff9190612f2d565b1115610b1d5760405162461bcd60e51b81526004016107b290612cd9565b610b2f670186cc6acd4b0000846115f5565b3414610b4d5760405162461bcd60e51b81526004016107b290612d10565b6016546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610b86573d6000803e3d6000fd5b5060005b83811015610bd157610b9c600e611608565b6000610ba8600e611611565b9050610bb48682611615565b610bbe81856116f4565b5080610bc98161300d565b915050610b8a565b506001949350505050565b6000610be6610884565b8210610c045760405162461bcd60e51b81526004016107b290612de7565b600b8281548110610c2557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b610c3f611261565b6001600160a01b0316610c50610e40565b6001600160a01b031614610c765760405162461bcd60e51b81526004016107b290612bcb565b8051610a7090600690602084019061205a565b6000610c95600e611611565b905090565b6000818152600260205260408120546001600160a01b0316806106eb5760405162461bcd60e51b81526004016107b290612a62565b610cd7611261565b6001600160a01b0316610ce8610e40565b6001600160a01b031614610d0e5760405162461bcd60e51b81526004016107b290612bcb565b601654600160a01b900460ff1615610d385760405162461bcd60e51b81526004016107b290612711565b60005b6096811015610d8657610d4e600e611608565b6000610d5a600e611611565b601654909150610d73906001600160a01b031682611615565b5080610d7e8161300d565b915050610d3b565b506016805460ff60a01b1916600160a01b179055565b60006001600160a01b038216610dc45760405162461bcd60e51b81526004016107b290612a18565b506001600160a01b031660009081526003602052604090205490565b610de8611261565b6001600160a01b0316610df9610e40565b6001600160a01b031614610e1f5760405162461bcd60e51b81526004016107b290612bcb565b610e296000611738565b565b6016546001600160a01b031681565b60115481565b600d546001600160a01b031690565b60009182526008602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606001805461070890612fd2565b3360009081526015602052604081205460ff16610eb85760405162461bcd60e51b81526004016107b290612e33565b3360009081526014602052604090205460ff1615610ee85760405162461bcd60e51b81526004016107b290612d98565b6010544210158015610efc57506011544211155b610f185760405162461bcd60e51b81526004016107b29061296d565b600f54610f23610884565b610f2e906001612f2d565b1115610f4c5760405162461bcd60e51b81526004016107b290612cd9565b670186cc6acd4b00003414610f735760405162461bcd60e51b81526004016107b290612d10565b6016546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610fac573d6000803e3d6000fd5b50610fb7600e611608565b6000610fc3600e611611565b9050610fcf8482611615565b610fd981846116f4565b5050336000908152601460205260409020805460ff1916600190811790915592915050565b600081565b61100b611261565b6001600160a01b0316826001600160a01b0316141561103c5760405162461bcd60e51b81526004016107b2906128ea565b8060056000611049611261565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561108d611261565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516110c59190612671565b60405180910390a35050565b600f5481565b6110e86110e2611261565b836112d3565b6111045760405162461bcd60e51b81526004016107b290612d47565b6111108484848461178a565b50505050565b60606106eb826117bd565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61114e826108c2565b61115a816109cd611261565b61086a8383611570565b670186cc6acd4b000081565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b601654600160a01b900460ff1681565b6111b6611261565b6001600160a01b03166111c7610e40565b6001600160a01b0316146111ed5760405162461bcd60e51b81526004016107b290612bcb565b6001600160a01b0381166112135760405162461bcd60e51b81526004016107b2906127f2565b61121c81611738565b50565b60006001600160e01b0319821663780e9d6360e01b14806106eb57506106eb826118d6565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061129a82610c9a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006112de82611244565b6112fa5760405162461bcd60e51b81526004016107b290612921565b600061130583610c9a565b9050806001600160a01b0316846001600160a01b031614806113405750836001600160a01b03166113358461078b565b6001600160a01b0316145b8061135057506113508185611170565b949350505050565b826001600160a01b031661136b82610c9a565b6001600160a01b0316146113915760405162461bcd60e51b81526004016107b290612c00565b6001600160a01b0382166113b75760405162461bcd60e51b81526004016107b2906128a6565b6113c28383836118fb565b6113cd600082611265565b6001600160a01b03831660009081526003602052604081208054600192906113f6908490612f78565b90915550506001600160a01b0382166000908152600360205260408120805460019290611424908490612f2d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61148f8282610e4f565b610a70576114a7816001600160a01b03166014611906565b6114b2836020611906565b6040516020016114c39291906125ab565b60408051601f198184030181529082905262461bcd60e51b82526107b291600401612685565b6114f38282610e4f565b610a705760008281526008602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561152c611261565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61157a8282610e4f565b15610a705760008281526008602090815260408083206001600160a01b03851684529091529020805460ff191690556115b1611261565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60006116018284612f59565b9392505050565b80546001019055565b5490565b6001600160a01b03821661163b5760405162461bcd60e51b81526004016107b290612af9565b61164481611244565b156116615760405162461bcd60e51b81526004016107b290612838565b61166d600083836118fb565b6001600160a01b0382166000908152600360205260408120805460019290611696908490612f2d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6116fd82611244565b6117195760405162461bcd60e51b81526004016107b290612aab565b6000828152600760209081526040909120825161086a9284019061205a565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611795848484611358565b6117a184848484611ab8565b6111105760405162461bcd60e51b81526004016107b2906127a0565b60606117c882611244565b6117e45760405162461bcd60e51b81526004016107b290612b2e565b600082815260076020526040812080546117fd90612fd2565b80601f016020809104026020016040519081016040528092919081815260200182805461182990612fd2565b80156118765780601f1061184b57610100808354040283529160200191611876565b820191906000526020600020905b81548152906001019060200180831161185957829003601f168201915b505050505090506000611887611bc8565b905080516000141561189b575090506106ee565b8151156118cd5780826040516020016118b592919061257c565b604051602081830303815290604052925050506106ee565b61135084611bd7565b60006001600160e01b03198216637965db0b60e01b14806106eb57506106eb82611c59565b61086a838383611c99565b60606000611915836002612f59565b611920906002612f2d565b67ffffffffffffffff81111561194657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611970576020820181803683370190505b509050600360fc1b8160008151811061199957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106119d657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006119fa846002612f59565b611a05906001612f2d565b90505b6001811115611a99576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611a4757634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110611a6b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93611a9281612fbb565b9050611a08565b5083156116015760405162461bcd60e51b81526004016107b2906126dc565b6000611acc846001600160a01b0316611d22565b15610bd157836001600160a01b031663150b7a02611ae8611261565b8786866040518563ffffffff1660e01b8152600401611b0a9493929190612634565b602060405180830381600087803b158015611b2457600080fd5b505af1925050508015611b54575060408051601f3d908101601f19168201909252611b5191810190612501565b60015b611bae573d808015611b82576040519150601f19603f3d011682016040523d82523d6000602084013e611b87565b606091505b508051611ba65760405162461bcd60e51b81526004016107b2906127a0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611350565b60606006805461070890612fd2565b6060611be282611244565b611bfe5760405162461bcd60e51b81526004016107b290612c49565b6000611c08611bc8565b90506000815111611c285760405180602001604052806000815250611601565b80611c3284611d28565b604051602001611c4392919061257c565b6040516020818303038152906040529392505050565b60006001600160e01b031982166380ac58cd60e01b1480611c8a57506001600160e01b03198216635b5e139f60e01b145b806106eb57506106eb82611e43565b611ca483838361086a565b6001600160a01b038316611cc057611cbb81611e5c565b611ce3565b816001600160a01b0316836001600160a01b031614611ce357611ce38382611ea0565b6001600160a01b038216611cff57611cfa81611f3d565b61086a565b826001600160a01b0316826001600160a01b03161461086a5761086a8282612016565b3b151590565b606081611d4d57506040805180820190915260018152600360fc1b60208201526106ee565b8160005b8115611d775780611d618161300d565b9150611d709050600a83612f45565b9150611d51565b60008167ffffffffffffffff811115611da057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611dca576020820181803683370190505b5090505b841561135057611ddf600183612f78565b9150611dec600a86613028565b611df7906030612f2d565b60f81b818381518110611e1a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611e3c600a86612f45565b9450611dce565b6001600160e01b031981166301ffc9a760e01b14919050565b600b80546000838152600c60205260408120829055600182018355919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90155565b60006001611ead84610d9c565b611eb79190612f78565b6000838152600a6020526040902054909150808214611f0a576001600160a01b03841660009081526009602090815260408083208584528252808320548484528184208190558352600a90915290208190555b506000918252600a602090815260408084208490556001600160a01b039094168352600981528383209183525290812055565b600b54600090611f4f90600190612f78565b6000838152600c6020526040812054600b8054939450909284908110611f8557634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600b8381548110611fb457634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600c9091526040808220849055858252812055600b805480611ffa57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061202183610d9c565b6001600160a01b0390931660009081526009602090815260408083208684528252808320859055938252600a9052919091209190915550565b82805461206690612fd2565b90600052602060002090601f01602090048101928261208857600085556120ce565b82601f106120a157805160ff19168380011785556120ce565b828001600101855582156120ce579182015b828111156120ce5782518255916020019190600101906120b3565b506120da9291506120de565b5090565b5b808211156120da57600081556001016120df565b600067ffffffffffffffff83111561210d5761210d613068565b612120601f8401601f1916602001612edf565b905082815283838301111561213457600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b03811681146106ee57600080fd5b600082601f830112612172578081fd5b8135602061218761218283612f09565b612edf565b82815281810190858301838502870184018810156121a3578586fd5b855b858110156121c8576121b6826121d5565b845292840192908401906001016121a5565b5090979650505050505050565b803580151581146106ee57600080fd5b600082601f8301126121f5578081fd5b611601838335602085016120f3565b600060208284031215612215578081fd5b6116018261214b565b60008060408385031215612230578081fd5b6122398361214b565b91506122476020840161214b565b90509250929050565b600080600060608486031215612264578081fd5b61226d8461214b565b925061227b6020850161214b565b9150604084013590509250925092565b600080600080608085870312156122a0578081fd5b6122a98561214b565b93506122b76020860161214b565b925060408501359150606085013567ffffffffffffffff8111156122d9578182fd5b8501601f810187136122e9578182fd5b6122f8878235602084016120f3565b91505092959194509250565b60008060408385031215612316578182fd5b61231f8361214b565b9150612247602084016121d5565b6000806040838503121561233f578182fd5b6123488361214b565b9150602083013567ffffffffffffffff811115612363578182fd5b61236f858286016121e5565b9150509250929050565b6000806040838503121561238b578182fd5b6123948361214b565b946020939093013593505050565b6000806000606084860312156123b6578283fd5b6123bf8461214b565b925060208401359150604084013567ffffffffffffffff8111156123e1578182fd5b6123ed868287016121e5565b9150509250925092565b60008060408385031215612409578182fd5b823567ffffffffffffffff80821115612420578384fd5b818501915085601f830112612433578384fd5b8135602061244361218283612f09565b82815281810190858301838502870184018b101561245f578889fd5b8896505b84871015612488576124748161214b565b835260019690960195918301918301612463565b509650508601359250508082111561249e578283fd5b5061236f85828601612162565b6000602082840312156124bc578081fd5b5035919050565b600080604083850312156124d5578182fd5b823591506122476020840161214b565b6000602082840312156124f6578081fd5b81356116018161307e565b600060208284031215612512578081fd5b81516116018161307e565b60006020828403121561252e578081fd5b813567ffffffffffffffff811115612544578182fd5b611350848285016121e5565b60008151808452612568816020860160208601612f8f565b601f01601f19169290920160200192915050565b6000835161258e818460208801612f8f565b8351908301906125a2818360208801612f8f565b01949350505050565b60007f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000825283516125e3816017850160208801612f8f565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612614816028840160208801612f8f565b01602801949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061266790830184612550565b9695505050505050565b901515815260200190565b90815260200190565b6000602082526116016020830184612550565b60208082526024908201527f4a45545041434b3a205075626c69632053616c65206e6f7420796574207374616040820152631c9d195960e21b606082015260800190565b6020808252818101527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604082015260600190565b60208082526024908201527f4a45545041434b3a20416c72656164792041646d696e20546f6b656e73204d696040820152631b9d195960e21b606082015260800190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252601f908201527f4a45545041434b3a20496e76616c6964204d6178204d696e7420436f756e7400604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252602e908201527f4a45545041434b3a2054686973206973206e6f74207072652073616c6520746960408201526d6d6520666f72206d696e74696e6760901b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252602e908201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60408201526d32bc34b9ba32b73a103a37b5b2b760911b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526031908201527f45524337323155524953746f726167653a2055524920717565727920666f72206040820152703737b732bc34b9ba32b73a103a37b5b2b760791b606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252601e908201527f4a45545041434b3a204d6178696d756d20537570706c79204d696e7465640000604082015260600190565b6020808252601c908201527f4a45545041434b3a20496e76616c6964204d696e74696e672046656500000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602f908201527f4a45545041434b2c20596f75206861766520616c7265616479206d696e74656460408201526e103839329039b0b632903a37b5b2b760891b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b60208082526037908201527f4a45545041434b2c20596f7520617265206e6f742077686974656c697374656460408201527f20746f206d696e74207072652073616c6520746f6b656e000000000000000000606082015260800190565b6020808252602f908201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560408201526e103937b632b9903337b91039b2b63360891b606082015260800190565b60405181810167ffffffffffffffff81118282101715612f0157612f01613068565b604052919050565b600067ffffffffffffffff821115612f2357612f23613068565b5060209081020190565b60008219821115612f4057612f4061303c565b500190565b600082612f5457612f54613052565b500490565b6000816000190483118215151615612f7357612f7361303c565b500290565b600082821015612f8a57612f8a61303c565b500390565b60005b83811015612faa578181015183820152602001612f92565b838111156111105750506000910152565b600081612fca57612fca61303c565b506000190190565b600281046001821680612fe657607f821691505b6020821081141561300757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156130215761302161303c565b5060010190565b60008261303757613037613052565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461121c57600080fdfea26469706673582212206ba34923c7a45b4ae6137fbe6bd36c96ccf34ae6f99ec8b8b96980fde7e8b1a164736f6c63430008000033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.