Transactions
Token Transfers
Tokens
Internal Transactions
Coin Balance History
Logs
Code
Read Contract
Write Contract
- Contract name:
- PhantzNFTV2
- Optimization enabled
- true
- Compiler version
- v0.8.7+commit.e28d00a7
- Optimization runs
- 200
- EVM Version
- default
- Verified at
- 2022-03-23 04:09:29.571487Z
Constructor Arguments
0000000000000000000000004e3679fe16e91507e5c75e8ff8e55caa034074300000000000000000000000000dec73b5c65f6aac8f95aa908291627e490c1ef8000000000000000000000000fadd24491afe8582fdd83bcddb71e4875358f87d000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000044016ed8638f5b517a5bec7a722a56d1debefef7000000000000000000000000020c7303664bc88ae92ce3d380bf361e03b78b8100000000000000000000000000000000000000000000000000000000000002b2
Arg [0] (address) : 0x4e3679fe16e91507e5c75e8ff8e55caa03407430
Arg [1] (address) : 0x0dec73b5c65f6aac8f95aa908291627e490c1ef8
Arg [2] (address) : 0xfadd24491afe8582fdd83bcddb71e4875358f87d
Arg [3] (uint256) : 100000000000000000
Arg [4] (address) : 0x44016ed8638f5b517a5bec7a722a56d1debefef7
Arg [5] (address) : 0x020c7303664bc88ae92ce3d380bf361e03b78b81
Arg [6] (uint256) : 690
Contract source code
// Sources flattened with hardhat v2.8.4 https://hardhat.org
// File @openzeppelin/contracts/utils/introspection/[email protected]
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
// File @openzeppelin/contracts/token/ERC721/[email protected]
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, 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 @openzeppelin/contracts/token/ERC721/[email protected]
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
// File @openzeppelin/contracts/token/ERC721/extensions/[email protected]
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}
// File @openzeppelin/contracts/utils/[email protected]
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, 'Address: insufficient balance');
(bool success, ) = recipient.call{value: amount}('');
require(success, 'Address: unable to send value, recipient may have reverted');
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return 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 @openzeppelin/contracts/utils/[email protected]
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
// File @openzeppelin/contracts/utils/[email protected]
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @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 @openzeppelin/contracts/utils/introspection/[email protected]
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}
// File @openzeppelin/contracts/token/ERC721/[email protected]
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
/**
* @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;
/**
* @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 '';
}
/**
* @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 {
_setApprovalForAll(_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);
_afterTokenTransfer(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);
_afterTokenTransfer(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 from incorrect owner');
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);
_afterTokenTransfer(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 Approve `operator` to operate on all of `owner` tokens
*
* Emits a {ApprovalForAll} event.
*/
function _setApprovalForAll(
address owner,
address operator,
bool approved
) internal virtual {
require(owner != operator, 'ERC721: approve to caller');
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
/**
* @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 {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}
// File @openzeppelin/contracts/token/ERC1155/[email protected]
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)
pragma solidity ^0.8.0;
/**
* @dev _Available since v3.1._
*/
interface IERC1155Receiver is IERC165 {
/**
* @dev Handles the receipt of a single ERC1155 token type. This function is
* called at the end of a `safeTransferFrom` after the balance has been updated.
*
* NOTE: To accept the transfer, this must return
* `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
* (i.e. 0xf23a6e61, or its own function selector).
*
* @param operator The address which initiated the transfer (i.e. msg.sender)
* @param from The address which previously owned the token
* @param id The ID of the token being transferred
* @param value The amount of tokens being transferred
* @param data Additional data with no specified format
* @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
*/
function onERC1155Received(
address operator,
address from,
uint256 id,
uint256 value,
bytes calldata data
) external returns (bytes4);
/**
* @dev Handles the receipt of a multiple ERC1155 token types. This function
* is called at the end of a `safeBatchTransferFrom` after the balances have
* been updated.
*
* NOTE: To accept the transfer(s), this must return
* `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
* (i.e. 0xbc197c81, or its own function selector).
*
* @param operator The address which initiated the batch transfer (i.e. msg.sender)
* @param from The address which previously owned the token
* @param ids An array containing ids of each token being transferred (order and length must match values array)
* @param values An array containing amounts of each token being transferred (order and length must match ids array)
* @param data Additional data with no specified format
* @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
*/
function onERC1155BatchReceived(
address operator,
address from,
uint256[] calldata ids,
uint256[] calldata values,
bytes calldata data
) external returns (bytes4);
}
// File @openzeppelin/contracts/access/[email protected]
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev 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 {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), 'Ownable: new owner is the zero address');
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
// File contracts/interfaces/IFeedsNFTSticker.sol
pragma solidity ^0.8.0;
interface IFeedsNFTSticker {
function isApprovedForAll(address _owner, address _operator) external returns (bool);
function safeTransferFromWithMemo(
address _from,
address _to,
uint256 _id,
uint256 _value,
string memory _memo
) external;
function setApprovalForAll(address _operator, bool _approved) external;
function balanceOf(address _owner, uint256 _id) external returns (uint256);
}
// File contracts/PhantzNFTV2.sol
pragma solidity ^0.8.0;
/**
* @title PhantzNFTV2
*/
contract PhantzNFTV2 is IERC721Receiver, IERC1155Receiver, ERC721, Ownable {
using Strings for uint256;
event PreMinted(uint256[] _oldTokenIds, uint256 _currentTokenId);
event Minted(uint256 _tokenId, address _beneficiary, string _tokenUri, address _minter);
event UpdatePlatformFee(uint256 _platformFee);
event UpdateFeeRecipient(address payable _feeRecipient);
event Swapped(address _user, uint256 _oldTokenId, uint256 _newTokenId, uint256 _blockTime);
address auction;
address marketplace;
address bundleMarketplace;
uint256 private _currentTokenId = 0;
bool public readyToMint;
/// @dev max supply
uint256 public constant maxSupply = 2822;
/// @dev lock time to controller unswapped NFTs
uint256 internal immutable unlockTimeForUnSwappedNFTs;
/// @dev Platform fee
uint256 public platformFee;
/// @dev Platform fee receipient
address payable public feeReceipient;
/// @dev Feeds NFT Sticker(FSTK), FeedsContractProxy
IFeedsNFTSticker public feedsNFTSticker;
/// @dev old tokenId => new tokenId
mapping(uint256 => uint256) private _oldToNewTokenIds;
/// @dev token amounts to be swapped
uint256 private immutable swapCount;
constructor(
address _auction,
address _marketplace,
address _bundleMarketplace,
uint256 _platformFee,
address payable _feeReceipient,
address _feedsNFTSticker,
uint256 _swapCount
) ERC721('Phantz', 'PH') {
auction = _auction;
marketplace = _marketplace;
bundleMarketplace = _bundleMarketplace;
platformFee = _platformFee;
feeReceipient = _feeReceipient;
feedsNFTSticker = IFeedsNFTSticker(_feedsNFTSticker);
unlockTimeForUnSwappedNFTs = block.timestamp + 365 days;
swapCount = _swapCount;
}
modifier afterPreminted() {
require(readyToMint, 'Not pre-mint swap NFTs yet');
_;
}
/**
* @dev transfer unswapped NFTs
*/
function transferUnSwappedNFTs(address _user, uint256[] memory _tokenIds)
external
onlyOwner
afterPreminted
{
require(block.timestamp > unlockTimeForUnSwappedNFTs, 'Not available');
require(_user != address(0) && _tokenIds.length > 0, 'Invalid Params');
for (uint256 i = 0; i < _tokenIds.length; i++) {
require(_tokenIds[i] < swapCount, 'Not swappable Token');
_safeTransfer(address(this), _user, _tokenIds[i], '');
}
}
/**
@dev Method for updating platform fee
@dev Only admin
@param _platformFee uint256 the platform fee to set
*/
function updatePlatformFee(uint256 _platformFee) external onlyOwner {
platformFee = _platformFee;
emit UpdatePlatformFee(_platformFee);
}
/**
@dev Method for updating platform fee address
@dev Only admin
@param _feeReceipient payable address the address to sends the funds to
*/
function updateFeeRecipient(address payable _feeReceipient) external onlyOwner {
feeReceipient = _feeReceipient;
emit UpdateFeeRecipient(_feeReceipient);
}
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) public pure override returns (bytes4) {
return IERC721Receiver.onERC721Received.selector;
}
function onERC1155Received(
address operator,
address from,
uint256 id,
uint256 value,
bytes calldata data
) public pure override returns (bytes4) {
return IERC1155Receiver.onERC1155Received.selector;
}
function onERC1155BatchReceived(
address operator,
address from,
uint256[] calldata ids,
uint256[] calldata values,
bytes calldata data
) public pure override returns (bytes4) {
return IERC1155Receiver.onERC1155BatchReceived.selector;
}
function tokenURI(uint256 tokenId) public view override returns (string memory) {
require(_exists(tokenId), 'ERC721Metadata: URI query for nonexistent token');
return
string(
abi.encodePacked(
'ipfs://QmUaG9DJMQprYoSWXp3X1V1YMS5E37pjt4MkQGpQtgZkeK/', // baseURI
tokenId.toString(),
'.json'
)
);
}
/**
* @dev calculates the next token ID based on value of _currentTokenId
* @return uint256 for the next token ID
*/
function getNextTokenId() public view returns (uint256) {
return _currentTokenId + 1;
}
/**
* @dev increments the value of _currentTokenId
*/
function _incrementTokenId() private {
_currentTokenId++;
}
/**
* Override _isApprovedOrOwner to whitelist Fantom contracts to enable gas-less listings.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId)
internal
view
override
returns (bool)
{
require(_exists(tokenId), 'ERC721: operator query for nonexistent token');
address owner = ERC721.ownerOf(tokenId);
if (isApprovedForAll(owner, spender)) return true;
return super._isApprovedOrOwner(spender, tokenId);
}
/**
* @dev Mints a token to an address with a tokenURI.
* @param _to address of the future owner of the token
*/
function mint(address _to) external payable afterPreminted {
require(msg.value >= platformFee, 'Insufficient funds to mint.');
uint256 newTokenId = getNextTokenId();
require(newTokenId <= maxSupply, 'Override Max Supply');
_safeMint(_to, newTokenId);
_incrementTokenId();
// Send FTM fee to fee recipient
(bool success, ) = feeReceipient.call{value: msg.value}('');
require(success, 'Transfer failed');
emit Minted(newTokenId, _to, tokenURI(newTokenId), _msgSender());
}
/**
@dev Burns a DigitalaxGarmentNFT, releasing any composed 1155 tokens held by the token itself
@dev Only the owner or an approved sender can call this method
@param _tokenId the token ID to burn
*/
function burn(uint256 _tokenId) external {
address operator = _msgSender();
require(
ownerOf(_tokenId) == operator || isApproved(_tokenId, operator),
'Only garment owner or approved'
);
// Destroy token mappings
_burn(_tokenId);
}
/**
* @dev checks the given token ID is approved either for all or the single token ID
*/
function isApproved(uint256 _tokenId, address _operator) public view returns (bool) {
return isApprovedForAll(ownerOf(_tokenId), _operator) || getApproved(_tokenId) == _operator;
}
/**
* @dev Override isApprovedForAll to whitelist Fantom contracts to enable gas-less listings.
*/
function isApprovedForAll(address owner, address operator) public view override returns (bool) {
// Whitelist Fantom auction, marketplace, bundle marketplace contracts for easy trading.
if (auction == operator || marketplace == operator || bundleMarketplace == operator) {
return true;
}
return super.isApprovedForAll(owner, operator);
}
/**
* @dev will mint swapCount NFTs for swap
*/
function premint(uint256[] memory oldTokenIds) external onlyOwner {
require(_currentTokenId <= swapCount, 'No more tokens to swap');
require(oldTokenIds.length > 0, 'Invalid TokenIds');
for (uint256 i = 0; i < oldTokenIds.length; i++) {
require(_oldToNewTokenIds[oldTokenIds[i]] == 0, 'Already minted to swap');
// pre-mint NFT
uint256 newTokenId = getNextTokenId();
_safeMint(address(this), newTokenId);
_incrementTokenId();
// mapping new & old Phantz tokenID
_oldToNewTokenIds[oldTokenIds[i]] = newTokenId;
}
if (_currentTokenId == swapCount) {
readyToMint = true;
}
emit PreMinted(oldTokenIds, _currentTokenId);
}
/**
* @dev swap old swapCount NFTs with new
*/
function swap(uint256 _oldTokenId) external afterPreminted {
uint256 newTokenId = _oldToNewTokenIds[_oldTokenId];
require(newTokenId > 0 && newTokenId <= swapCount, 'Not swappable tokenID');
address user = _msgSender();
require(feedsNFTSticker.balanceOf(user, _oldTokenId) > 0, 'No NFT to swap');
require(
feedsNFTSticker.isApprovedForAll(user, address(this)),
'Should approve contract first'
);
// transfer old NFT to this contract to lock
feedsNFTSticker.safeTransferFromWithMemo(
user,
address(this),
_oldTokenId,
1,
'Transfered to locked after swap'
);
// transfer new NFT
_safeTransfer(address(this), user, newTokenId, '');
emit Swapped(user, _oldTokenId, newTokenId, block.timestamp);
}
}
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_auction","internalType":"address"},{"type":"address","name":"_marketplace","internalType":"address"},{"type":"address","name":"_bundleMarketplace","internalType":"address"},{"type":"uint256","name":"_platformFee","internalType":"uint256"},{"type":"address","name":"_feeReceipient","internalType":"address payable"},{"type":"address","name":"_feedsNFTSticker","internalType":"address"},{"type":"uint256","name":"_swapCount","internalType":"uint256"}]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"approved","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"ApprovalForAll","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"operator","internalType":"address","indexed":true},{"type":"bool","name":"approved","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"Minted","inputs":[{"type":"uint256","name":"_tokenId","internalType":"uint256","indexed":false},{"type":"address","name":"_beneficiary","internalType":"address","indexed":false},{"type":"string","name":"_tokenUri","internalType":"string","indexed":false},{"type":"address","name":"_minter","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"PreMinted","inputs":[{"type":"uint256[]","name":"_oldTokenIds","internalType":"uint256[]","indexed":false},{"type":"uint256","name":"_currentTokenId","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Swapped","inputs":[{"type":"address","name":"_user","internalType":"address","indexed":false},{"type":"uint256","name":"_oldTokenId","internalType":"uint256","indexed":false},{"type":"uint256","name":"_newTokenId","internalType":"uint256","indexed":false},{"type":"uint256","name":"_blockTime","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"UpdateFeeRecipient","inputs":[{"type":"address","name":"_feeRecipient","internalType":"address payable","indexed":false}],"anonymous":false},{"type":"event","name":"UpdatePlatformFee","inputs":[{"type":"uint256","name":"_platformFee","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"approve","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"burn","inputs":[{"type":"uint256","name":"_tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address payable"}],"name":"feeReceipient","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IFeedsNFTSticker"}],"name":"feedsNFTSticker","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getApproved","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getNextTokenId","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isApproved","inputs":[{"type":"uint256","name":"_tokenId","internalType":"uint256"},{"type":"address","name":"_operator","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isApprovedForAll","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"operator","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maxSupply","inputs":[]},{"type":"function","stateMutability":"payable","outputs":[],"name":"mint","inputs":[{"type":"address","name":"_to","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"pure","outputs":[{"type":"bytes4","name":"","internalType":"bytes4"}],"name":"onERC1155BatchReceived","inputs":[{"type":"address","name":"operator","internalType":"address"},{"type":"address","name":"from","internalType":"address"},{"type":"uint256[]","name":"ids","internalType":"uint256[]"},{"type":"uint256[]","name":"values","internalType":"uint256[]"},{"type":"bytes","name":"data","internalType":"bytes"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"bytes4","name":"","internalType":"bytes4"}],"name":"onERC1155Received","inputs":[{"type":"address","name":"operator","internalType":"address"},{"type":"address","name":"from","internalType":"address"},{"type":"uint256","name":"id","internalType":"uint256"},{"type":"uint256","name":"value","internalType":"uint256"},{"type":"bytes","name":"data","internalType":"bytes"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"bytes4","name":"","internalType":"bytes4"}],"name":"onERC721Received","inputs":[{"type":"address","name":"operator","internalType":"address"},{"type":"address","name":"from","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"bytes","name":"data","internalType":"bytes"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"ownerOf","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"platformFee","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"premint","inputs":[{"type":"uint256[]","name":"oldTokenIds","internalType":"uint256[]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"readyToMint","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"bytes","name":"_data","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setApprovalForAll","inputs":[{"type":"address","name":"operator","internalType":"address"},{"type":"bool","name":"approved","internalType":"bool"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"swap","inputs":[{"type":"uint256","name":"_oldTokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"tokenURI","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferUnSwappedNFTs","inputs":[{"type":"address","name":"_user","internalType":"address"},{"type":"uint256[]","name":"_tokenIds","internalType":"uint256[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateFeeRecipient","inputs":[{"type":"address","name":"_feeReceipient","internalType":"address payable"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updatePlatformFee","inputs":[{"type":"uint256","name":"_platformFee","internalType":"uint256"}]}]
Deployed ByteCode
0x6080604052600436106101ee5760003560e01c80637d87b9431161010d578063bc197c81116100a0578063ddf9ce241161006f578063ddf9ce24146105a2578063e985e9c5146105bc578063f160d369146105dc578063f23a6e61146105fc578063f2fde38b1461062957600080fd5b8063bc197c8114610528578063c87b56dd14610557578063caa0f92a14610577578063d5abeb011461058c57600080fd5b8063a22cb465116100dc578063a22cb465146104a8578063aa0b5988146104c8578063b88d4fde146104e8578063bbebb81c1461050857600080fd5b80637d87b943146104355780638da5cb5b1461045557806394b918de1461047357806395d89b411461049357600080fd5b80633740ebb3116101855780636352211e116101545780636352211e146103cd5780636a627842146103ed57806370a0823114610400578063715018a61461042057600080fd5b80633740ebb31461034d57806342842e0e1461036d57806342966c681461038d57806356c31637146103ad57600080fd5b8063095ea7b3116101c1578063095ea7b3146102a4578063150b7a02146102c457806323b872dd1461030957806326232a2e1461032957600080fd5b806301ffc9a7146101f357806306fdde0314610228578063071bf7cb1461024a578063081812fc1461026c575b600080fd5b3480156101ff57600080fd5b5061021361020e3660046124eb565b610649565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d61069b565b60405161021f91906126a0565b34801561025657600080fd5b5061026a610265366004612499565b61072d565b005b34801561027857600080fd5b5061028c610287366004612525565b61096a565b6040516001600160a01b03909116815260200161021f565b3480156102b057600080fd5b5061026a6102bf36600461246d565b6109ff565b3480156102d057600080fd5b506102f06102df36600461223c565b630a85bd0160e11b95945050505050565b6040516001600160e01b0319909116815260200161021f565b34801561031557600080fd5b5061026a6103243660046121fb565b610b15565b34801561033557600080fd5b5061033f600c5481565b60405190815260200161021f565b34801561035957600080fd5b50600d5461028c906001600160a01b031681565b34801561037957600080fd5b5061026a6103883660046121fb565b610b46565b34801561039957600080fd5b5061026a6103a8366004612525565b610b61565b3480156103b957600080fd5b506102136103c8366004612557565b610bdf565b3480156103d957600080fd5b5061028c6103e8366004612525565b610c1e565b61026a6103fb3660046120e6565b610c95565b34801561040c57600080fd5b5061033f61041b3660046120e6565b610e4e565b34801561042c57600080fd5b5061026a610ed5565b34801561044157600080fd5b5061026a6104503660046123ef565b610f0b565b34801561046157600080fd5b506006546001600160a01b031661028c565b34801561047f57600080fd5b5061026a61048e366004612525565b6110dc565b34801561049f57600080fd5b5061023d61142b565b3480156104b457600080fd5b5061026a6104c336600461243f565b61143a565b3480156104d457600080fd5b5061026a6104e3366004612525565b611445565b3480156104f457600080fd5b5061026a6105033660046122af565b6114a4565b34801561051457600080fd5b50600e5461028c906001600160a01b031681565b34801561053457600080fd5b506102f061054336600461213c565b63bc197c8160e01b98975050505050505050565b34801561056357600080fd5b5061023d610572366004612525565b6114dc565b34801561058357600080fd5b5061033f61158a565b34801561059857600080fd5b5061033f610b0681565b3480156105ae57600080fd5b50600b546102139060ff1681565b3480156105c857600080fd5b506102136105d7366004612103565b6115a0565b3480156105e857600080fd5b5061026a6105f73660046120e6565b61161f565b34801561060857600080fd5b506102f0610617366004612373565b63f23a6e6160e01b9695505050505050565b34801561063557600080fd5b5061026a6106443660046120e6565b611697565b60006001600160e01b031982166380ac58cd60e01b148061067a57506001600160e01b03198216635b5e139f60e01b145b8061069557506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546106aa906128ea565b80601f01602080910402602001604051908101604052809291908181526020018280546106d6906128ea565b80156107235780601f106106f857610100808354040283529160200191610723565b820191906000526020600020905b81548152906001019060200180831161070657829003601f168201915b5050505050905090565b6006546001600160a01b031633146107605760405162461bcd60e51b815260040161075790612751565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000002b2600a5411156107cb5760405162461bcd60e51b815260206004820152601660248201527504e6f206d6f726520746f6b656e7320746f20737761760541b6044820152606401610757565b600081511161080f5760405162461bcd60e51b815260206004820152601060248201526f496e76616c696420546f6b656e49647360801b6044820152606401610757565b60005b81518110156108f357600f600083838151811061083157610831612980565b60200260200101518152602001908152602001600020546000146108905760405162461bcd60e51b81526020600482015260166024820152750416c7265616479206d696e74656420746f20737761760541b6044820152606401610757565b600061089a61158a565b90506108a63082611732565b6108ae61174c565b80600f60008585815181106108c5576108c5612980565b60200260200101518152602001908152602001600020819055505080806108eb90612925565b915050610812565b507f00000000000000000000000000000000000000000000000000000000000002b2600a54141561092c57600b805460ff191660011790555b7f4011e671f96f8562d5b5341a0cb17ed3607f87ef9ff907d09ac10fbdb251df2a81600a5460405161095f929190612658565b60405180910390a150565b6000818152600260205260408120546001600160a01b03166109e35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610757565b506000908152600460205260409020546001600160a01b031690565b6000610a0a82610c1e565b9050806001600160a01b0316836001600160a01b03161415610a785760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610757565b336001600160a01b0382161480610a945750610a9481336115a0565b610b065760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610757565b610b108383611763565b505050565b610b1f33826117d1565b610b3b5760405162461bcd60e51b815260040161075790612786565b610b1083838361183d565b610b10838383604051806020016040528060008152506114a4565b3380610b6c83610c1e565b6001600160a01b03161480610b865750610b868282610bdf565b610bd25760405162461bcd60e51b815260206004820152601e60248201527f4f6e6c79206761726d656e74206f776e6572206f7220617070726f76656400006044820152606401610757565b610bdb826119d9565b5050565b6000610bf3610bed84610c1e565b836115a0565b80610c175750816001600160a01b0316610c0c8461096a565b6001600160a01b0316145b9392505050565b6000818152600260205260408120546001600160a01b0316806106955760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610757565b600b5460ff16610cb75760405162461bcd60e51b8152600401610757906127d7565b600c54341015610d095760405162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e742066756e647320746f206d696e742e00000000006044820152606401610757565b6000610d1361158a565b9050610b06811115610d5d5760405162461bcd60e51b81526020600482015260136024820152724f76657272696465204d617820537570706c7960681b6044820152606401610757565b610d678282611732565b610d6f61174c565b600d546040516000916001600160a01b03169034908381818185875af1925050503d8060008114610dbc576040519150601f19603f3d011682016040523d82523d6000602084013e610dc1565b606091505b5050905080610e045760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606401610757565b7f997115af5924f5e38964c6d65c804d4cb85129b65e62eb20a8ca6329dbe57e188284610e30856114dc565b33604051610e41949392919061280e565b60405180910390a1505050565b60006001600160a01b038216610eb95760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610757565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610eff5760405162461bcd60e51b815260040161075790612751565b610f096000611a74565b565b6006546001600160a01b03163314610f355760405162461bcd60e51b815260040161075790612751565b600b5460ff16610f575760405162461bcd60e51b8152600401610757906127d7565b7f00000000000000000000000000000000000000000000000000000000641bc0ce4211610fb65760405162461bcd60e51b815260206004820152600d60248201526c4e6f7420617661696c61626c6560981b6044820152606401610757565b6001600160a01b03821615801590610fcf575060008151115b61100c5760405162461bcd60e51b815260206004820152600e60248201526d496e76616c696420506172616d7360901b6044820152606401610757565b60005b8151811015610b10577f00000000000000000000000000000000000000000000000000000000000002b282828151811061104b5761104b612980565b6020026020010151106110965760405162461bcd60e51b81526020600482015260136024820152722737ba1039bbb0b83830b13632902a37b5b2b760691b6044820152606401610757565b6110ca30848484815181106110ad576110ad612980565b602002602001015160405180602001604052806000815250611ac6565b806110d481612925565b91505061100f565b600b5460ff166110fe5760405162461bcd60e51b8152600401610757906127d7565b6000818152600f6020526040902054801580159061113c57507f00000000000000000000000000000000000000000000000000000000000002b28111155b6111805760405162461bcd60e51b8152602060048201526015602482015274139bdd081cddd85c1c18589b19481d1bdad95b9251605a1b6044820152606401610757565b600033600e54604051627eeac760e11b81526001600160a01b038084166004830152602482018790529293506000929091169062fdd58e90604401602060405180830381600087803b1580156111d557600080fd5b505af11580156111e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061120d919061253e565b1161124b5760405162461bcd60e51b815260206004820152600e60248201526d04e6f204e465420746f20737761760941b6044820152606401610757565b600e5460405163e985e9c560e01b81526001600160a01b0383811660048301523060248301529091169063e985e9c590604401602060405180830381600087803b15801561129857600080fd5b505af11580156112ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112d091906124ce565b61131c5760405162461bcd60e51b815260206004820152601d60248201527f53686f756c6420617070726f766520636f6e74726163742066697273740000006044820152606401610757565b600e546040516362024d1960e11b81526001600160a01b038381166004830152306024830152604482018690526001606483015260a06084830152601f60a48301527f5472616e73666572656420746f206c6f636b656420616674657220737761700060c48301529091169063c4049a329060e401600060405180830381600087803b1580156113ab57600080fd5b505af11580156113bf573d6000803e3d6000fd5b505050506113de30828460405180602001604052806000815250611ac6565b604080516001600160a01b0383168152602081018590529081018390524260608201527f36a39cf3f9b8206db312650e7d954482535a2e33fb0b54e1030f149ed213823a90608001610e41565b6060600180546106aa906128ea565b610bdb338383611af9565b6006546001600160a01b0316331461146f5760405162461bcd60e51b815260040161075790612751565b600c8190556040518181527f2644fd26359c107ff7991b6dfc36ce902b334ce4e3891bbecacc5922aa620efa9060200161095f565b6114ae33836117d1565b6114ca5760405162461bcd60e51b815260040161075790612786565b6114d684848484611ac6565b50505050565b6000818152600260205260409020546060906001600160a01b031661155b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610757565b61156482611bc8565b60405160200161157491906125a8565b6040516020818303038152906040529050919050565b6000600a54600161159b919061287b565b905090565b6007546000906001600160a01b03838116911614806115cc57506008546001600160a01b038381169116145b806115e457506009546001600160a01b038381169116145b156115f157506001610695565b6001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff16610c17565b6006546001600160a01b031633146116495760405162461bcd60e51b815260040161075790612751565b600d80546001600160a01b0319166001600160a01b0383169081179091556040519081527f6632de8ab33c46549f7bb29f647ea0d751157b25fe6a14b1bcc7527cdfbeb79c9060200161095f565b6006546001600160a01b031633146116c15760405162461bcd60e51b815260040161075790612751565b6001600160a01b0381166117265760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610757565b61172f81611a74565b50565b610bdb828260405180602001604052806000815250611cc6565b600a805490600061175c83612925565b9190505550565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061179882610c1e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166118055760405162461bcd60e51b815260040161075790612705565b600061181083610c1e565b905061181c81856115a0565b1561182b576001915050610695565b6118358484611cf9565b949350505050565b826001600160a01b031661185082610c1e565b6001600160a01b0316146118b45760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610757565b6001600160a01b0382166119165760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610757565b611921600082611763565b6001600160a01b038316600090815260036020526040812080546001929061194a9084906128a7565b90915550506001600160a01b038216600090815260036020526040812080546001929061197890849061287b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006119e482610c1e565b90506119f1600083611763565b6001600160a01b0381166000908152600360205260408120805460019290611a1a9084906128a7565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611ad184848461183d565b611add84848484611d83565b6114d65760405162461bcd60e51b8152600401610757906126b3565b816001600160a01b0316836001600160a01b03161415611b5b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610757565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b606081611bec5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611c165780611c0081612925565b9150611c0f9050600a83612893565b9150611bf0565b60008167ffffffffffffffff811115611c3157611c31612996565b6040519080825280601f01601f191660200182016040528015611c5b576020820181803683370190505b5090505b841561183557611c706001836128a7565b9150611c7d600a86612940565b611c8890603061287b565b60f81b818381518110611c9d57611c9d612980565b60200101906001600160f81b031916908160001a905350611cbf600a86612893565b9450611c5f565b611cd08383611e90565b611cdd6000848484611d83565b610b105760405162461bcd60e51b8152600401610757906126b3565b6000818152600260205260408120546001600160a01b0316611d2d5760405162461bcd60e51b815260040161075790612705565b6000611d3883610c1e565b9050806001600160a01b0316846001600160a01b03161480611d735750836001600160a01b0316611d688461096a565b6001600160a01b0316145b80611835575061183581856115a0565b60006001600160a01b0384163b15611e8557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611dc790339089908890889060040161261b565b602060405180830381600087803b158015611de157600080fd5b505af1925050508015611e11575060408051601f3d908101601f19168201909252611e0e91810190612508565b60015b611e6b573d808015611e3f576040519150601f19603f3d011682016040523d82523d6000602084013e611e44565b606091505b508051611e635760405162461bcd60e51b8152600401610757906126b3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611835565b506001949350505050565b6001600160a01b038216611ee65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610757565b6000818152600260205260409020546001600160a01b031615611f4b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610757565b6001600160a01b0382166000908152600360205260408120805460019290611f7490849061287b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008083601f840112611fe457600080fd5b50813567ffffffffffffffff811115611ffc57600080fd5b6020830191508360208260051b850101111561201757600080fd5b9250929050565b600082601f83011261202f57600080fd5b8135602067ffffffffffffffff82111561204b5761204b612996565b8160051b61205a82820161284a565b83815282810190868401838801850189101561207557600080fd5b600093505b8584101561209857803583526001939093019291840191840161207a565b50979650505050505050565b60008083601f8401126120b657600080fd5b50813567ffffffffffffffff8111156120ce57600080fd5b60208301915083602082850101111561201757600080fd5b6000602082840312156120f857600080fd5b8135610c17816129ac565b6000806040838503121561211657600080fd5b8235612121816129ac565b91506020830135612131816129ac565b809150509250929050565b60008060008060008060008060a0898b03121561215857600080fd5b8835612163816129ac565b97506020890135612173816129ac565b9650604089013567ffffffffffffffff8082111561219057600080fd5b61219c8c838d01611fd2565b909850965060608b01359150808211156121b557600080fd5b6121c18c838d01611fd2565b909650945060808b01359150808211156121da57600080fd5b506121e78b828c016120a4565b999c989b5096995094979396929594505050565b60008060006060848603121561221057600080fd5b833561221b816129ac565b9250602084013561222b816129ac565b929592945050506040919091013590565b60008060008060006080868803121561225457600080fd5b853561225f816129ac565b9450602086013561226f816129ac565b935060408601359250606086013567ffffffffffffffff81111561229257600080fd5b61229e888289016120a4565b969995985093965092949392505050565b600080600080608085870312156122c557600080fd5b84356122d0816129ac565b93506020858101356122e1816129ac565b935060408601359250606086013567ffffffffffffffff8082111561230557600080fd5b818801915088601f83011261231957600080fd5b81358181111561232b5761232b612996565b61233d601f8201601f1916850161284a565b9150808252898482850101111561235357600080fd5b808484018584013760008482840101525080935050505092959194509250565b60008060008060008060a0878903121561238c57600080fd5b8635612397816129ac565b955060208701356123a7816129ac565b94506040870135935060608701359250608087013567ffffffffffffffff8111156123d157600080fd5b6123dd89828a016120a4565b979a9699509497509295939492505050565b6000806040838503121561240257600080fd5b823561240d816129ac565b9150602083013567ffffffffffffffff81111561242957600080fd5b6124358582860161201e565b9150509250929050565b6000806040838503121561245257600080fd5b823561245d816129ac565b91506020830135612131816129c1565b6000806040838503121561248057600080fd5b823561248b816129ac565b946020939093013593505050565b6000602082840312156124ab57600080fd5b813567ffffffffffffffff8111156124c257600080fd5b6118358482850161201e565b6000602082840312156124e057600080fd5b8151610c17816129c1565b6000602082840312156124fd57600080fd5b8135610c17816129cf565b60006020828403121561251a57600080fd5b8151610c17816129cf565b60006020828403121561253757600080fd5b5035919050565b60006020828403121561255057600080fd5b5051919050565b6000806040838503121561256a57600080fd5b823591506020830135612131816129ac565b600081518084526125948160208601602086016128be565b601f01601f19169290920160200192915050565b7f697066733a2f2f516d55614739444a4d517072596f535758703358315631594d8152755335453337706a74344d6b5147705174675a6b654b2f60501b6020820152600082516125ff8160368501602087016128be565b64173539b7b760d91b6036939091019283015250603b01919050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061264e9083018461257c565b9695505050505050565b604080825283519082018190526000906020906060840190828701845b8281101561269157815184529284019290840190600101612675565b50505092019290925292915050565b602081526000610c17602083018461257c565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601a908201527f4e6f74207072652d6d696e742073776170204e46547320796574000000000000604082015260600190565b848152600060018060a01b03808616602084015260806040840152612836608084018661257c565b915080841660608401525095945050505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561287357612873612996565b604052919050565b6000821982111561288e5761288e612954565b500190565b6000826128a2576128a261296a565b500490565b6000828210156128b9576128b9612954565b500390565b60005b838110156128d95781810151838201526020016128c1565b838111156114d65750506000910152565b600181811c908216806128fe57607f821691505b6020821081141561291f57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561293957612939612954565b5060010190565b60008261294f5761294f61296a565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461172f57600080fd5b801515811461172f57600080fd5b6001600160e01b03198116811461172f57600080fdfea2646970667358221220fc4bd8380e276c5005bbdf92a1291a0fb7e2ea311f4434117d6c73974753b7ae64736f6c63430008070033