ERC-1155
Overview
Max Total Supply
69 MEM
Holders
37
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MemswapAlphaNFT
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract MemswapAlphaNFT is ERC1155, Ownable { using Strings for uint256; // --- Errors --- error Unauthorized(); // --- Fields --- // Public string public name; string public symbol; string public contractURI; mapping(address => bool) public isAllowedToMint; // Private uint256 private constant TOKEN_ID = 0; // --- Constructor --- constructor( address _owner, string memory _tokenURI, string memory _contractURI ) ERC1155(_tokenURI) { name = "Memswap Alpha NFT"; symbol = "MEM"; contractURI = _contractURI; _transferOwnership(_owner); } // --- Public methods --- function mint(address recipient) external { if (!isAllowedToMint[msg.sender]) { revert Unauthorized(); } _mint(recipient, TOKEN_ID, 1, ""); } // --- View methods --- function uri( uint256 tokenId ) public view virtual override returns (string memory) { return string(abi.encodePacked(super.uri(tokenId), tokenId.toString())); } // --- Owner methods --- function updateTokenURI(string memory newTokenURI) external onlyOwner { _setURI(newTokenURI); } function updateContractURI( string memory newContractURI ) external onlyOwner { contractURI = newContractURI; } function setIsAllowedToMint( address[] calldata minters, bool[] calldata allowed ) external onlyOwner { unchecked { for (uint256 i; i < minters.length; i++) { isAllowedToMint[minters[i]] = allowed[i]; } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: address zero is not a valid owner"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch( address[] memory accounts, uint256[] memory ids ) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not token owner or approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not token owner or approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, to, ids, amounts, data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint(address to, uint256 id, uint256 amount, bytes memory data) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Emits a {TransferSingle} event. * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn(address from, uint256 id, uint256 amount) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch(address from, uint256[] memory ids, uint256[] memory amounts) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `ids` and `amounts` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non-ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non-ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch( address[] calldata accounts, uint256[] calldata ids ) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [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://consensys.net/diligence/blog/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.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.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; } }
// 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; import "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } }
{ "viaIR": true, "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"string","name":"_tokenURI","type":"string"},{"internalType":"string","name":"_contractURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"Unauthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isAllowedToMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"mint","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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","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":"address[]","name":"minters","type":"address[]"},{"internalType":"bool[]","name":"allowed","type":"bool[]"}],"name":"setIsAllowedToMint","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":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newContractURI","type":"string"}],"name":"updateContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newTokenURI","type":"string"}],"name":"updateTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234620003725762002167803803806200001d8162000377565b92833981019060608183031262000372578051906001600160a01b0382168203620003725760208181015190916001600160401b0391828111620003725785620000699183016200039d565b94604082015183811162000372576200008392016200039d565b9380518281116200025f57806200009c6002546200040f565b92601f9384811162000334575b508590848311600114620002c757600092620002bb575b50508160011b916000199060031b1c1916176002555b620000e13362000465565b620000ee6004546200040f565b81811162000297575b5060227013595b5cddd85c08105b1c1a1848139195607a1b016004556005926200012284546200040f565b82811162000275575b506006624d454d60e81b0184558551600694909384116200025f576200015285546200040f565b83811162000222575b505080918311600114620001b0575081906200019495600092620001a4575b50508160011b916000199060031b1c191617905562000465565b604051611cb89081620004af8239f35b0151905038806200017a565b9194601f1986168460005283600020936000905b8282106200020957505091600193918762000194989410620001ef575b505050811b01905562000465565b015160001960f88460031b161c19169055388080620001e1565b80600186978294978701518155019601940190620001c4565b6200024d9186600052836000209085808801821c83019386891062000255575b01901c01906200044c565b38806200015b565b9350829362000242565b634e487b7160e01b600052604160045260246000fd5b62000290908560005283836000209101861c8101906200044c565b386200012b565b620002b49060046000528285600020910160051c8101906200044c565b38620000f7565b015190503880620000c0565b600260009081528781209350601f198516905b888282106200031d57505090846001959493921062000303575b505050811b01600255620000d6565b015160001960f88460031b161c19169055388080620002f4565b6001859682939686015181550195019301620002da565b62000361906002600052876000208680860160051c8201928a871062000368575b0160051c01906200044c565b38620000a9565b9250819262000355565b600080fd5b6040519190601f01601f191682016001600160401b038111838210176200025f57604052565b919080601f84011215620003725782516001600160401b0381116200025f57602090620003d3601f8201601f1916830162000377565b92818452828287010111620003725760005b818110620003fb57508260009394955001015290565b8581018301518482018401528201620003e5565b90600182811c9216801562000441575b60208310146200042b57565b634e487b7160e01b600052602260045260246000fd5b91607f16916200041f565b81811062000458575050565b600081556001016200044c565b600380546001600160a01b039283166001600160a01b0319821681179092559091167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a356fe6040608081526004908136101561001557600080fd5b600091823560e01c8062fdd58e1461168657806301ffc9a71461161957806306fdde03146115455780630e89341c146112c85780632eb2c2d614610fbe5780634813d8a614610f805780634e1273f414610dec5780636a62784214610bae578063715018a614610b515780637e5b1e24146109f15780638cb368871461092c5780638da5cb5b1461090357806395d89b411461085957806398cd6153146106e3578063a22cb465146105f9578063e8a3d48514610510578063e985e9c5146104be578063f242432a146101bf5763f2fde38b146100f157600080fd5b346101bb5760203660031901126101bb5761010a6116b6565b9061011361193f565b6001600160a01b03918216928315610169575050600354826bffffffffffffffffffffffff60a01b821617600355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152fd5b8280fd5b5090346101bb5760a03660031901126101bb576101da6116b6565b836101e36116d1565b91604435906064356084356001600160401b0381116104ba576102099036908901611882565b926001600160a01b0392831692338414801561049b575b61022990611a78565b861690610237821515611adb565b61024081611c4d565b5061024a83611c4d565b508086526020968688528887208588528852838988205461026d82821015611b35565b838952888a528a8920878a528a520389882055818752868852888720838852885288872061029c858254611b94565b905582858a51848152868b8201527fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628c3392a43b6102d8578580f35b889587946103198a519788968795869463f23a6e6160e01b9c8d8752339087015260248601526044850152606484015260a0608484015260a4830190611796565b03925af186918161046c575b506103f7575050600190610337611bc1565b6308c379a0146103c4575b506103575750505b3880808381808080808580f35b5162461bcd60e51b8152915081906103c090820160809060208152603460208201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356040820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60608201520190565b0390fd5b6103cc611bdf565b806103d75750610342565b6103c08591855193849362461bcd60e51b85528401526024830190611796565b6001600160e01b03191603905061040f57505061034a565b5162461bcd60e51b8152915081906103c090820160809060208152602860208201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b60608201520190565b61048d919250843d8611610494575b6104858183611752565b810190611ba1565b9038610325565b503d61047b565b508386526001602090815288872033885290528786205460ff16610220565b8480fd5b50503461050c578060031936011261050c5760ff816020936104de6116b6565b6104e66116d1565b6001600160a01b0391821683526001875283832091168252855220549151911615158152f35b5080fd5b50503461050c578160031936011261050c5780519082600654610532816116e7565b808552916001918083169081156105d15750600114610574575b50505061055e82610570940383611752565b51918291602083526020830190611796565b0390f35b9450600685527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f5b8286106105b95750505061055e826020610570958201019461054c565b8054602087870181019190915290950194810161059c565b61057097508693506020925061055e94915060ff191682840152151560051b8201019461054c565b5090346101bb57806003193601126101bb576106136116b6565b90602435801515928382036106df576001600160a01b03169333851461068a575061065d9033865260016020528286208587526020528286209060ff801983541691151516179055565b519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b608490602084519162461bcd60e51b8352820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152fd5b8580fd5b508234610856576106f3366118d4565b916106fc61193f565b8251906001600160401b03821161084357506107196002546116e7565b601f81116107e0575b50602080601f831160011461075f57508293829392610754575b50508160011b916000199060031b1c19161760025580f35b01519050838061073c565b60028452601f198316947f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace929185905b8782106107c85750508360019596106107af575b505050811b0160025580f35b015160001960f88460031b161c191690558380806107a3565b8060018596829496860151815501950193019061078f565b600283527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace601f830160051c81019160208410610839575b601f0160051c01905b81811061082e5750610722565b838155600101610821565b9091508190610818565b634e487b7160e01b835260419052602482fd5b80fd5b50503461050c578160031936011261050c578051908260055461087b816116e7565b808552916001918083169081156105d157506001146108a65750505061055e82610570940383611752565b9450600585527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db05b8286106108eb5750505061055e826020610570958201019461054c565b805460208787018101919091529095019481016108ce565b50503461050c578160031936011261050c5760035490516001600160a01b039091168152602090f35b50346101bb57816003193601126101bb576001600160401b039181358381116104ba5761095c903690840161190f565b9390926024359182116106df576109759136910161190f565b61098094919461193f565b855b82811061098d578680f35b610998818388611c72565b359081151582036109ed576109ae818588611c72565b356001600160a01b038116908190036109e9576001926109e3918a526007602052868a209060ff801983541691151516179055565b01610982565b8880fd5b8780fd5b50823461085657610a01366118d4565b91610a0a61193f565b8251906001600160401b0382116108435750610a276006546116e7565b601f8111610aee575b50602080601f8311600114610a6d57508293829392610a62575b50508160011b916000199060031b1c19161760065580f35b015190508380610a4a565b60068452601f198316947ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f929185905b878210610ad6575050836001959610610abd575b505050811b0160065580f35b015160001960f88460031b161c19169055838080610ab1565b80600185968294968601518155019501930190610a9d565b600683527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f601f830160051c81019160208410610b47575b601f0160051c01905b818110610b3c5750610a30565b838155600101610b2f565b9091508190610b26565b8334610856578060031936011261085657610b6a61193f565b600380546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b5090346101bb57602080600319360112610de857610bca6116b6565b3385526007825260ff838620541615610dda5782518281018181106001600160401b03821117610dc75784528581526001600160a01b0382168015610d7a57845192610c1584611721565b87610c2a600195868152873681830137611a41565b5283610c488751610c3a81611721565b828152873681830137611a41565b528780528785528588208289528552858820805490858201809211610d6757558188875181815286888201527fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62893392a43b610ca2578680f35b8385518092818a81610ce263f23a6e6160e01b988983528d33908401528360248401528360448401528a606484015260a0608484015260a4830190611796565b03925af1879181610d48575b50610d2e57505090610cfe611bc1565b6308c379a014610d1b575b506103575750505b3880808080808680f35b610d23611bdf565b806103d75750610d09565b6001600160e01b03191603915061040f9050575050610d11565b610d60919250853d8711610494576104858183611752565b9038610cee565b634e487b7160e01b8a526011895260248afd5b845162461bcd60e51b8152808701859052602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b634e487b7160e01b875260418652602487fd5b5050516282b42960e81b8152fd5b8380fd5b50346101bb57816003193601126101bb5780356001600160401b038082116104ba57366023830112156104ba578183013590610e27826117bb565b92610e3486519485611752565b82845260209260248486019160051b830101913683116109e957602401905b828210610f5d575050506024359081116106df57610e7490369085016117d2565b928251845103610f0a5750815194610e8b866117bb565b95610e9886519788611752565b808752610ea7601f19916117bb565b0136838801375b8251811015610ef857610ef390610ee36001600160a01b03610ed08387611a64565b5116610edc8388611a64565b5190611997565b610eed8289611a64565b52611a1c565b610eae565b845182815280610570818501896118a0565b60849185519162461bcd60e51b8352820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152fd5b81356001600160a01b0381168103610f7c578152908401908401610e53565b8980fd5b50503461050c57602036600319011261050c5760209160ff9082906001600160a01b03610fab6116b6565b1681526007855220541690519015158152f35b50346101bb576003199160a036840112610de857610fda6116b6565b92610fe36116d1565b936001600160401b03936044358581116109ed5761100490369083016117d2565b906064358681116109e95761101c90369083016117d2565b956084359081116109e9576110349036908301611882565b936001600160a01b039384169333851480156112a9575b61105490611a78565b83518851036112555788169461106b861515611adb565b895b8a85518210156110f15790896110e58a6110ec946110968561108f818d611a64565b5195611a64565b51938082526020908282528383208d84528252858d85852054906110bc83831015611b35565b838652858552868620908652845203848420558252818152828220908d83525220918254611b94565b9055611a1c565b61106d565b50509094939596929197848789518a81527f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb61112f8c8301886118a0565b9180830360208201528061114433948b6118a0565b0390a43b611150578880f35b8651948593849363bc197c8160e01b98898652338c87015260248601526044850160a0905260a48501611182916118a0565b82858203016064860152611195916118a0565b908382030160848401526111a891611796565b0381885a94602095f1859181611235575b5061121f57505060016111ca611bc1565b6308c379a0146111e8575b6103575750505b38808080808080808880f35b6111f0611bdf565b806111fb57506111d5565b90506103c091602094505193849362461bcd60e51b85528401526024830190611796565b6001600160e01b0319160361040f5750506111dc565b61124e91925060203d8111610494576104858183611752565b90386111b9565b865162461bcd60e51b8152602081850152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608490fd5b50848a5260016020908152878b20338c529052868a205460ff1661104b565b5091903461050c576020918260031936011261085657833582519482906002546112f1816116e7565b80895288888101946001938a858216918260001461152a5750506001146114d0575b61131f92500389611752565b8390849286957a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000090818110156114c3575b5050886d04ee2d6d415b85acef8100000000808610156114b5575b5050662386f26fc10000808510156114a6575b506305f5e10080851015611497575b5061271080851015611489575b50506064831015611479575b600a80931015611470575b90816021818701966113d56113c089611830565b986113cd8c519a8b611752565b808a52611830565b888c019990601f1901368b3750870101905b61143a575b611410896105708a61142b838f8d8d61141f8e87519a8b9551809288880190611773565b84019151809386840190611773565b01038087520185611752565b51928284938452830190611796565b600019019083906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a83530491821561146b579190826113e7565b6113ec565b809401936113ac565b93916064600291049201936113a1565b950194909204913880611395565b60089196940493019438611388565b60109196940493019438611379565b960195909304928838611366565b899750049350388061134b565b505060028652888887847f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b85831061151257505061131f9350820101611313565b90919383858354920101520191018990848c936114fc565b60ff1916885261131f94151560051b84010191506113139050565b5090346101bb57826003193601126101bb5780519183815490611567826116e7565b808652926001928084169081156115ee5750600114611592575b610570868661055e828b0383611752565b815294507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b8286106115d65750505061055e826020610570958201019438611581565b805460208787018101919091529095019481016115b8565b905061057097508693506020925061055e94915060ff191682840152151560051b8201019438611581565b50346101bb5760203660031901126101bb57359063ffffffff60e01b82168092036101bb5760209250636cdb3d1360e11b8214918215611675575b8215611664575b50519015158152f35b6301ffc9a760e01b1491503861165b565b6303a24d0760e21b81149250611654565b50503461050c578060031936011261050c576020906116af6116a66116b6565b60243590611997565b9051908152f35b600435906001600160a01b03821682036116cc57565b600080fd5b602435906001600160a01b03821682036116cc57565b90600182811c92168015611717575b602083101461170157565b634e487b7160e01b600052602260045260246000fd5b91607f16916116f6565b604081019081106001600160401b0382111761173c57604052565b634e487b7160e01b600052604160045260246000fd5b90601f801991011681019081106001600160401b0382111761173c57604052565b60005b8381106117865750506000910152565b8181015183820152602001611776565b906020916117af81518092818552858086019101611773565b601f01601f1916010190565b6001600160401b03811161173c5760051b60200190565b81601f820112156116cc578035916117e9836117bb565b926117f76040519485611752565b808452602092838086019260051b8201019283116116cc578301905b828210611821575050505090565b81358152908301908301611813565b6001600160401b03811161173c57601f01601f191660200190565b92919261185782611830565b916118656040519384611752565b8294818452818301116116cc578281602093846000960137010152565b9080601f830112156116cc5781602061189d9335910161184b565b90565b90815180825260208080930193019160005b8281106118c0575050505090565b8351855293810193928101926001016118b2565b60206003198201126116cc57600435906001600160401b0382116116cc57806023830112156116cc5781602461189d9360040135910161184b565b9181601f840112156116cc578235916001600160401b0383116116cc576020808501948460051b0101116116cc57565b6003546001600160a01b0316330361195357565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6001600160a01b03169081156119c457600052600060205260406000209060005260205260406000205490565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b6064820152608490fd5b6000198114611a2b5760010190565b634e487b7160e01b600052601160045260246000fd5b805115611a4e5760200190565b634e487b7160e01b600052603260045260246000fd5b8051821015611a4e5760209160051b010190565b15611a7f57565b60405162461bcd60e51b815260206004820152602e60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201526d195c881bdc88185c1c1c9bdd995960921b6064820152608490fd5b15611ae257565b60405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b15611b3c57565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608490fd5b91908201809211611a2b57565b908160209103126116cc57516001600160e01b0319811681036116cc5790565b60009060033d11611bce57565b905060046000803e60005160e01c90565b600060443d1061189d57604051600319913d83016004833e81516001600160401b03918282113d602484011117611c3c57818401948551938411611c44573d85010160208487010111611c3c575061189d92910160200190611752565b949350505050565b50949350505050565b60405190611c5a82611721565b6001825260203681840137611c6e82611a41565b5290565b9190811015611a4e5760051b019056fea2646970667358221220db77d37aee5b5fa2ce6bdc3ea4140ce475333d35f75c6378da9bdb3a3c8e9f8264736f6c63430008130033000000000000000000000000f3d63166f0ca56c3c1a3508fce03ff0cf3fb691e000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000003a68747470733a2f2f746573742d746f6b656e732d6d657461646174612e76657263656c2e6170702f6170692f6d656d737761702d616c7068612f000000000000000000000000000000000000000000000000000000000000000000000000004268747470733a2f2f746573742d746f6b656e732d6d657461646174612e76657263656c2e6170702f6170692f6d656d737761702d616c7068612f636f6e7472616374000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6040608081526004908136101561001557600080fd5b600091823560e01c8062fdd58e1461168657806301ffc9a71461161957806306fdde03146115455780630e89341c146112c85780632eb2c2d614610fbe5780634813d8a614610f805780634e1273f414610dec5780636a62784214610bae578063715018a614610b515780637e5b1e24146109f15780638cb368871461092c5780638da5cb5b1461090357806395d89b411461085957806398cd6153146106e3578063a22cb465146105f9578063e8a3d48514610510578063e985e9c5146104be578063f242432a146101bf5763f2fde38b146100f157600080fd5b346101bb5760203660031901126101bb5761010a6116b6565b9061011361193f565b6001600160a01b03918216928315610169575050600354826bffffffffffffffffffffffff60a01b821617600355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152fd5b8280fd5b5090346101bb5760a03660031901126101bb576101da6116b6565b836101e36116d1565b91604435906064356084356001600160401b0381116104ba576102099036908901611882565b926001600160a01b0392831692338414801561049b575b61022990611a78565b861690610237821515611adb565b61024081611c4d565b5061024a83611c4d565b508086526020968688528887208588528852838988205461026d82821015611b35565b838952888a528a8920878a528a520389882055818752868852888720838852885288872061029c858254611b94565b905582858a51848152868b8201527fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628c3392a43b6102d8578580f35b889587946103198a519788968795869463f23a6e6160e01b9c8d8752339087015260248601526044850152606484015260a0608484015260a4830190611796565b03925af186918161046c575b506103f7575050600190610337611bc1565b6308c379a0146103c4575b506103575750505b3880808381808080808580f35b5162461bcd60e51b8152915081906103c090820160809060208152603460208201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356040820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60608201520190565b0390fd5b6103cc611bdf565b806103d75750610342565b6103c08591855193849362461bcd60e51b85528401526024830190611796565b6001600160e01b03191603905061040f57505061034a565b5162461bcd60e51b8152915081906103c090820160809060208152602860208201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b60608201520190565b61048d919250843d8611610494575b6104858183611752565b810190611ba1565b9038610325565b503d61047b565b508386526001602090815288872033885290528786205460ff16610220565b8480fd5b50503461050c578060031936011261050c5760ff816020936104de6116b6565b6104e66116d1565b6001600160a01b0391821683526001875283832091168252855220549151911615158152f35b5080fd5b50503461050c578160031936011261050c5780519082600654610532816116e7565b808552916001918083169081156105d15750600114610574575b50505061055e82610570940383611752565b51918291602083526020830190611796565b0390f35b9450600685527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f5b8286106105b95750505061055e826020610570958201019461054c565b8054602087870181019190915290950194810161059c565b61057097508693506020925061055e94915060ff191682840152151560051b8201019461054c565b5090346101bb57806003193601126101bb576106136116b6565b90602435801515928382036106df576001600160a01b03169333851461068a575061065d9033865260016020528286208587526020528286209060ff801983541691151516179055565b519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b608490602084519162461bcd60e51b8352820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152fd5b8580fd5b508234610856576106f3366118d4565b916106fc61193f565b8251906001600160401b03821161084357506107196002546116e7565b601f81116107e0575b50602080601f831160011461075f57508293829392610754575b50508160011b916000199060031b1c19161760025580f35b01519050838061073c565b60028452601f198316947f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace929185905b8782106107c85750508360019596106107af575b505050811b0160025580f35b015160001960f88460031b161c191690558380806107a3565b8060018596829496860151815501950193019061078f565b600283527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace601f830160051c81019160208410610839575b601f0160051c01905b81811061082e5750610722565b838155600101610821565b9091508190610818565b634e487b7160e01b835260419052602482fd5b80fd5b50503461050c578160031936011261050c578051908260055461087b816116e7565b808552916001918083169081156105d157506001146108a65750505061055e82610570940383611752565b9450600585527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db05b8286106108eb5750505061055e826020610570958201019461054c565b805460208787018101919091529095019481016108ce565b50503461050c578160031936011261050c5760035490516001600160a01b039091168152602090f35b50346101bb57816003193601126101bb576001600160401b039181358381116104ba5761095c903690840161190f565b9390926024359182116106df576109759136910161190f565b61098094919461193f565b855b82811061098d578680f35b610998818388611c72565b359081151582036109ed576109ae818588611c72565b356001600160a01b038116908190036109e9576001926109e3918a526007602052868a209060ff801983541691151516179055565b01610982565b8880fd5b8780fd5b50823461085657610a01366118d4565b91610a0a61193f565b8251906001600160401b0382116108435750610a276006546116e7565b601f8111610aee575b50602080601f8311600114610a6d57508293829392610a62575b50508160011b916000199060031b1c19161760065580f35b015190508380610a4a565b60068452601f198316947ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f929185905b878210610ad6575050836001959610610abd575b505050811b0160065580f35b015160001960f88460031b161c19169055838080610ab1565b80600185968294968601518155019501930190610a9d565b600683527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f601f830160051c81019160208410610b47575b601f0160051c01905b818110610b3c5750610a30565b838155600101610b2f565b9091508190610b26565b8334610856578060031936011261085657610b6a61193f565b600380546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b5090346101bb57602080600319360112610de857610bca6116b6565b3385526007825260ff838620541615610dda5782518281018181106001600160401b03821117610dc75784528581526001600160a01b0382168015610d7a57845192610c1584611721565b87610c2a600195868152873681830137611a41565b5283610c488751610c3a81611721565b828152873681830137611a41565b528780528785528588208289528552858820805490858201809211610d6757558188875181815286888201527fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62893392a43b610ca2578680f35b8385518092818a81610ce263f23a6e6160e01b988983528d33908401528360248401528360448401528a606484015260a0608484015260a4830190611796565b03925af1879181610d48575b50610d2e57505090610cfe611bc1565b6308c379a014610d1b575b506103575750505b3880808080808680f35b610d23611bdf565b806103d75750610d09565b6001600160e01b03191603915061040f9050575050610d11565b610d60919250853d8711610494576104858183611752565b9038610cee565b634e487b7160e01b8a526011895260248afd5b845162461bcd60e51b8152808701859052602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b634e487b7160e01b875260418652602487fd5b5050516282b42960e81b8152fd5b8380fd5b50346101bb57816003193601126101bb5780356001600160401b038082116104ba57366023830112156104ba578183013590610e27826117bb565b92610e3486519485611752565b82845260209260248486019160051b830101913683116109e957602401905b828210610f5d575050506024359081116106df57610e7490369085016117d2565b928251845103610f0a5750815194610e8b866117bb565b95610e9886519788611752565b808752610ea7601f19916117bb565b0136838801375b8251811015610ef857610ef390610ee36001600160a01b03610ed08387611a64565b5116610edc8388611a64565b5190611997565b610eed8289611a64565b52611a1c565b610eae565b845182815280610570818501896118a0565b60849185519162461bcd60e51b8352820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152fd5b81356001600160a01b0381168103610f7c578152908401908401610e53565b8980fd5b50503461050c57602036600319011261050c5760209160ff9082906001600160a01b03610fab6116b6565b1681526007855220541690519015158152f35b50346101bb576003199160a036840112610de857610fda6116b6565b92610fe36116d1565b936001600160401b03936044358581116109ed5761100490369083016117d2565b906064358681116109e95761101c90369083016117d2565b956084359081116109e9576110349036908301611882565b936001600160a01b039384169333851480156112a9575b61105490611a78565b83518851036112555788169461106b861515611adb565b895b8a85518210156110f15790896110e58a6110ec946110968561108f818d611a64565b5195611a64565b51938082526020908282528383208d84528252858d85852054906110bc83831015611b35565b838652858552868620908652845203848420558252818152828220908d83525220918254611b94565b9055611a1c565b61106d565b50509094939596929197848789518a81527f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb61112f8c8301886118a0565b9180830360208201528061114433948b6118a0565b0390a43b611150578880f35b8651948593849363bc197c8160e01b98898652338c87015260248601526044850160a0905260a48501611182916118a0565b82858203016064860152611195916118a0565b908382030160848401526111a891611796565b0381885a94602095f1859181611235575b5061121f57505060016111ca611bc1565b6308c379a0146111e8575b6103575750505b38808080808080808880f35b6111f0611bdf565b806111fb57506111d5565b90506103c091602094505193849362461bcd60e51b85528401526024830190611796565b6001600160e01b0319160361040f5750506111dc565b61124e91925060203d8111610494576104858183611752565b90386111b9565b865162461bcd60e51b8152602081850152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608490fd5b50848a5260016020908152878b20338c529052868a205460ff1661104b565b5091903461050c576020918260031936011261085657833582519482906002546112f1816116e7565b80895288888101946001938a858216918260001461152a5750506001146114d0575b61131f92500389611752565b8390849286957a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000090818110156114c3575b5050886d04ee2d6d415b85acef8100000000808610156114b5575b5050662386f26fc10000808510156114a6575b506305f5e10080851015611497575b5061271080851015611489575b50506064831015611479575b600a80931015611470575b90816021818701966113d56113c089611830565b986113cd8c519a8b611752565b808a52611830565b888c019990601f1901368b3750870101905b61143a575b611410896105708a61142b838f8d8d61141f8e87519a8b9551809288880190611773565b84019151809386840190611773565b01038087520185611752565b51928284938452830190611796565b600019019083906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a83530491821561146b579190826113e7565b6113ec565b809401936113ac565b93916064600291049201936113a1565b950194909204913880611395565b60089196940493019438611388565b60109196940493019438611379565b960195909304928838611366565b899750049350388061134b565b505060028652888887847f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b85831061151257505061131f9350820101611313565b90919383858354920101520191018990848c936114fc565b60ff1916885261131f94151560051b84010191506113139050565b5090346101bb57826003193601126101bb5780519183815490611567826116e7565b808652926001928084169081156115ee5750600114611592575b610570868661055e828b0383611752565b815294507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b8286106115d65750505061055e826020610570958201019438611581565b805460208787018101919091529095019481016115b8565b905061057097508693506020925061055e94915060ff191682840152151560051b8201019438611581565b50346101bb5760203660031901126101bb57359063ffffffff60e01b82168092036101bb5760209250636cdb3d1360e11b8214918215611675575b8215611664575b50519015158152f35b6301ffc9a760e01b1491503861165b565b6303a24d0760e21b81149250611654565b50503461050c578060031936011261050c576020906116af6116a66116b6565b60243590611997565b9051908152f35b600435906001600160a01b03821682036116cc57565b600080fd5b602435906001600160a01b03821682036116cc57565b90600182811c92168015611717575b602083101461170157565b634e487b7160e01b600052602260045260246000fd5b91607f16916116f6565b604081019081106001600160401b0382111761173c57604052565b634e487b7160e01b600052604160045260246000fd5b90601f801991011681019081106001600160401b0382111761173c57604052565b60005b8381106117865750506000910152565b8181015183820152602001611776565b906020916117af81518092818552858086019101611773565b601f01601f1916010190565b6001600160401b03811161173c5760051b60200190565b81601f820112156116cc578035916117e9836117bb565b926117f76040519485611752565b808452602092838086019260051b8201019283116116cc578301905b828210611821575050505090565b81358152908301908301611813565b6001600160401b03811161173c57601f01601f191660200190565b92919261185782611830565b916118656040519384611752565b8294818452818301116116cc578281602093846000960137010152565b9080601f830112156116cc5781602061189d9335910161184b565b90565b90815180825260208080930193019160005b8281106118c0575050505090565b8351855293810193928101926001016118b2565b60206003198201126116cc57600435906001600160401b0382116116cc57806023830112156116cc5781602461189d9360040135910161184b565b9181601f840112156116cc578235916001600160401b0383116116cc576020808501948460051b0101116116cc57565b6003546001600160a01b0316330361195357565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6001600160a01b03169081156119c457600052600060205260406000209060005260205260406000205490565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b6064820152608490fd5b6000198114611a2b5760010190565b634e487b7160e01b600052601160045260246000fd5b805115611a4e5760200190565b634e487b7160e01b600052603260045260246000fd5b8051821015611a4e5760209160051b010190565b15611a7f57565b60405162461bcd60e51b815260206004820152602e60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201526d195c881bdc88185c1c1c9bdd995960921b6064820152608490fd5b15611ae257565b60405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b15611b3c57565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608490fd5b91908201809211611a2b57565b908160209103126116cc57516001600160e01b0319811681036116cc5790565b60009060033d11611bce57565b905060046000803e60005160e01c90565b600060443d1061189d57604051600319913d83016004833e81516001600160401b03918282113d602484011117611c3c57818401948551938411611c44573d85010160208487010111611c3c575061189d92910160200190611752565b949350505050565b50949350505050565b60405190611c5a82611721565b6001825260203681840137611c6e82611a41565b5290565b9190811015611a4e5760051b019056fea2646970667358221220db77d37aee5b5fa2ce6bdc3ea4140ce475333d35f75c6378da9bdb3a3c8e9f8264736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f3d63166f0ca56c3c1a3508fce03ff0cf3fb691e000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000003a68747470733a2f2f746573742d746f6b656e732d6d657461646174612e76657263656c2e6170702f6170692f6d656d737761702d616c7068612f000000000000000000000000000000000000000000000000000000000000000000000000004268747470733a2f2f746573742d746f6b656e732d6d657461646174612e76657263656c2e6170702f6170692f6d656d737761702d616c7068612f636f6e7472616374000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _owner (address): 0xf3d63166F0Ca56C3c1A3508FcE03Ff0Cf3Fb691e
Arg [1] : _tokenURI (string): https://test-tokens-metadata.vercel.app/api/memswap-alpha/
Arg [2] : _contractURI (string): https://test-tokens-metadata.vercel.app/api/memswap-alpha/contract
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 000000000000000000000000f3d63166f0ca56c3c1a3508fce03ff0cf3fb691e
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000003a
Arg [4] : 68747470733a2f2f746573742d746f6b656e732d6d657461646174612e766572
Arg [5] : 63656c2e6170702f6170692f6d656d737761702d616c7068612f000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [7] : 68747470733a2f2f746573742d746f6b656e732d6d657461646174612e766572
Arg [8] : 63656c2e6170702f6170692f6d656d737761702d616c7068612f636f6e747261
Arg [9] : 6374000000000000000000000000000000000000000000000000000000000000
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.