Overview
WEMIX Balance
0 WEMIX
WEMIX Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 4,675,922 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Mint Batch | 66895113 | 47 hrs ago | IN | 0 WEMIX | 0.0050616 | ||||
Mint Batch | 66895113 | 47 hrs ago | IN | 0 WEMIX | 0.0050616 | ||||
Mint Batch | 66895112 | 47 hrs ago | IN | 0 WEMIX | 0.0050616 | ||||
Mint Batch | 66895112 | 47 hrs ago | IN | 0 WEMIX | 0.0097699 | ||||
Mint Batch | 66895109 | 47 hrs ago | IN | 0 WEMIX | 0.0050604 | ||||
Mint Batch | 66895108 | 47 hrs ago | IN | 0 WEMIX | 0.0050604 | ||||
Mint Batch | 66895107 | 47 hrs ago | IN | 0 WEMIX | 0.0050604 | ||||
Mint Batch | 66895107 | 47 hrs ago | IN | 0 WEMIX | 0.0050616 | ||||
Mint Batch | 66895107 | 47 hrs ago | IN | 0 WEMIX | 0.012124 | ||||
Mint Batch | 66895101 | 47 hrs ago | IN | 0 WEMIX | 0.0050604 | ||||
Mint Batch | 66895100 | 47 hrs ago | IN | 0 WEMIX | 0.0050616 | ||||
Mint Batch | 66895096 | 47 hrs ago | IN | 0 WEMIX | 0.0050616 | ||||
Mint Batch | 66895094 | 47 hrs ago | IN | 0 WEMIX | 0.0050616 | ||||
Mint Batch | 66895090 | 47 hrs ago | IN | 0 WEMIX | 0.0074157 | ||||
Mint Batch | 66895086 | 47 hrs ago | IN | 0 WEMIX | 0.0050616 | ||||
Mint Batch | 66895086 | 47 hrs ago | IN | 0 WEMIX | 0.0050616 | ||||
Mint Batch | 66895085 | 47 hrs ago | IN | 0 WEMIX | 0.0074157 | ||||
Mint Batch | 66895083 | 47 hrs ago | IN | 0 WEMIX | 0.0050616 | ||||
Mint Batch | 66895082 | 47 hrs ago | IN | 0 WEMIX | 0.0050616 | ||||
Mint Batch | 66895076 | 47 hrs ago | IN | 0 WEMIX | 0.0050604 | ||||
Mint Batch | 66895074 | 47 hrs ago | IN | 0 WEMIX | 0.0050616 | ||||
Mint Batch | 66895072 | 47 hrs ago | IN | 0 WEMIX | 0.0121228 | ||||
Mint Batch | 66895070 | 47 hrs ago | IN | 0 WEMIX | 0.0050616 | ||||
Mint Batch | 66895069 | 47 hrs ago | IN | 0 WEMIX | 0.0050604 | ||||
Mint Batch | 66895063 | 47 hrs ago | IN | 0 WEMIX | 0.0050616 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
SBT
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 1 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT /** * @notice Reference implementation of the eip-5516 interface. * Note: this implementation only allows for each user to own only 1 token type for each `id`. * @author Faisal Naveed <[email protected]> * */ pragma solidity ^0.8.23; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; contract SBT is ERC1155 { string public name; string public symbol; constructor(string memory _uri, string memory _name, string memory _symbol) ERC1155(_uri){ name = _name; symbol = _symbol; } function mint(uint256 id) public payable { _mint(msg.sender, id, 1, ""); } function mintBatch(address to, uint256[] memory ids, bytes memory data) public { uint256[] memory amounts = new uint256[](ids.length); for (uint256 i = 0; i < ids.length; i++) { amounts[i] = 1; } _mintBatch(to, ids, amounts, data); } }
// 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 (last updated v4.9.4) (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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// 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); }
{ "optimizer": { "enabled": true, "runs": 1 }, "viaIR": true, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_uri","type":"string"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"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":[{"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":"uint256","name":"id","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052346200046d5762001a7c803803806200001d8162000472565b92833981016060828203126200046d5781516001600160401b03908181116200046d57826200004e91850162000498565b91602093848101518381116200046d57826200006c91830162000498565b9160408201518481116200046d5762000086920162000498565b8351908382116200029557600254916001958684811c9416801562000462575b8885101462000374578190601f948581116200040b575b508890858311600114620003a15760009262000395575b5050600019600383901b1c191690861b176002555b825184811162000295576003938454908782811c921680156200038a575b89831014620003745781858493116200031e575b508890858311600114620002b757600092620002ab575b505060001982861b1c191690861b1783555b8051938411620002955760049586548681811c911680156200028a575b8282101462000275578381116200022a575b5080928511600114620001bc5750938394918492600095620001b0575b50501b92600019911b1c19161790555b60405161157190816200050b8239f35b01519350388062000190565b92919084601f1981168860005285600020956000905b898383106200020f5750505010620001f4575b50505050811b019055620001a0565b01519060f884600019921b161c1916905538808080620001e5565b858701518955909701969485019488935090810190620001d2565b87600052816000208480880160051c8201928489106200026b575b0160051c019087905b8281106200025e57505062000173565b600081550187906200024e565b9250819262000245565b602288634e487b7160e01b6000525260246000fd5b90607f169062000161565b634e487b7160e01b600052604160045260246000fd5b01519050388062000132565b90889350601f19831691876000528a6000209260005b8c828210620003075750508411620002ee575b505050811b01835562000144565b015160001983881b60f8161c19169055388080620002e0565b8385015186558c97909501949384019301620002cd565b90915085600052886000208580850160051c8201928b86106200036a575b918a91869594930160051c01915b8281106200035a5750506200011b565b600081558594508a91016200034a565b925081926200033c565b634e487b7160e01b600052602260045260246000fd5b91607f169162000107565b015190503880620000d4565b90889350601f1983169160026000528a6000209260005b8c828210620003f45750508411620003da575b505050811b01600255620000e9565b015160001960f88460031b161c19169055388080620003cb565b8385015186558c97909501949384019301620003b8565b9091506002600052886000208580850160051c8201928b861062000458575b918a91869594930160051c01915b82811062000448575050620000bd565b600081558594508a910162000438565b925081926200042a565b93607f1693620000a6565b600080fd5b6040519190601f01601f191682016001600160401b038111838210176200029557604052565b919080601f840112156200046d5782516001600160401b0381116200029557602090620004ce601f8201601f1916830162000472565b928184528282870101116200046d5760005b818110620004f657508260009394955001015290565b8581018301518482018401528201620004e056fe6040608081526004908136101561001557600080fd5b600091823560e01c8062fdd58e14610ed757806301ffc9a714610e6a57806306fdde0314610db95780630e89341c14610cdf5780632286248214610af75780632eb2c2d61461085d5780634e1273f4146106e957806395d89b41146105e6578063a0712d6814610470578063a22cb4651461038f578063e985e9c51461033d5763f242432a146100a457600080fd5b346103395760a0366003190112610339576100bd610f07565b916100c6610f22565b9260443590606435906084356001600160401b038111610335576100ed9036908701611043565b926001600160a01b03918216913383148015610316575b61010d906111bb565b87169161011b83151561131c565b610124826114d6565b5061012e846114d6565b50818952602097898952868a20828b52895284878b205461015182821015611376565b848c528b8b52888c20848d528b5203878b2055828a52898952868a20848b528952868a206101808682546112d1565b905583828851858152878c82015260008051602061151c8339815191528a3392a43b6101aa578880f35b918697989596949391868a946101f38a519788968795869463f23a6e6160e01b9c8d8752339087015260248601526044850152606484015260a0608484015260a4830190610f8c565b03925af18391816102e7575b506102685750505061020f6113f5565b6308c379a014610237575b5162461bcd60e51b815291508190610233908201611481565b0390fd5b61023f611413565b8061024a575061021a565b610233915193849362461bcd60e51b85528401526024830190610f8c565b9194506001600160e01b03199091160361028a57505038808080808080808880f35b5162461bcd60e51b81529150819061023390820160809060208152602860208201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b60608201520190565b610308919250873d891161030f575b6103008183610f69565b8101906113d5565b90386101ff565b503d6102f6565b5082895260016020908152868a20338b5290528589205460ff16610104565b8780fd5b8280fd5b50503461038b578060031936011261038b5760ff8160209361035d610f07565b610365610f22565b6001600160a01b0391821683526001875283832091168252855220549151911615158152f35b5080fd5b5090346103395780600319360112610339576103a9610f07565b906024359182151580930361046c576001600160a01b0316923384146104185750338452600160205280842083855260205280842060ff1981541660ff8416179055519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b6020608492519162461bcd60e51b8352820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152fd5b8480fd5b50602091826003193601126105e25780518235908481016001600160401b038111828210176105cf5783528581526104a933151561121e565b6104b2826114d6565b5060016104d184516104c381610f38565b828152873681830137611184565b528186528585528286203387528552828620805490600182018092116105bc5755825182815260018682015286339160008051602061151c833981519152863392a4333b61051d578580f35b84610560918495969794518093819263f23a6e6160e01b96878452338b85015288602485015260448401526001606484015260a0608484015260a4830190610f8c565b038186335af183918161059d575b5061057e5750505061020f6113f5565b9194506001600160e01b03199091160361028a57505038808080808580f35b6105b5919250873d891161030f576103008183610f69565b903861056e565b634e487b7160e01b885260118652602488fd5b634e487b7160e01b875260418552602487fd5b8380fd5b5091346106e657806003193601126106e6578151918184549260018460011c91600186169586156106dc575b60209687851081146106c9579087899a92868b999a9b52918260001461069f575050600114610661575b858861065d8961064e848a0385610f69565b51928284938452830190610f8c565b0390f35b87945081939291528383205b828410610687575050508201018161064e61065d3861063c565b8054848a01860152889550879490930192810161066d565b60ff19168882015294151560051b8701909401945085935061064e925061065d915038905061063c565b634e487b7160e01b835260228a52602483fd5b92607f1692610612565b80fd5b503461033957816003193601126103395780356001600160401b0380821161046c573660238301121561046c57818301359061072482610fcc565b9261073186519485610f69565b82845260209260248486019160051b8301019136831161085957602401905b82821061083657505050602435908111610832576107719036908501610fe3565b9282518451036107df57506107868251611152565b945b82518110156107cd576001906107bc6001600160a01b036107a983876111a7565b51166107b583886111a7565b51906110cd565b6107c682896111a7565b5201610788565b84518281528061065d81850189611099565b60849185519162461bcd60e51b8352820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152fd5b8580fd5b81356001600160a01b0381168103610855578152908401908401610750565b8980fd5b8880fd5b5082346106e6576003199260a03685011261038b5761087a610f07565b91610883610f22565b946001600160401b03936044358581116105e2576108a49036908801610fe3565b60643586811161046c576108bb9036908901610fe3565b9560843590811161046c576108d39036908901611043565b966001600160a01b03928316923384148015610ad8575b6108f3906111bb565b6109008351895114611274565b89169361090e85151561131c565b855b835181101561098d5780610926600192866111a7565b51610931828c6111a7565b5190808a526020908a82528b8b20898c528252828c8c8b828220549261095985851015611376565b858352828752822091528452038c8c20558a528981528a8a2090898b52526109858a8a209182546112d1565b905501610910565b50949897909692959784878a516000805160206114fc8339815191523391806109b78a8a836112f4565b0390a43b6109c3578880f35b8798969751948593849363bc197c8160e01b98898652338c87015260248601526044850160a0905260a485016109f891611099565b82858203016064860152610a0b91611099565b90838203016084840152610a1e91610f8c565b0381865a94602095f1839181610ab7575b50610a9757505050610a3f6113f5565b6308c379a014610a63575b905162461bcd60e51b8152908190610233908201611481565b610a6b611413565b80610a765750610a4a565b610233906020935193849362461bcd60e51b85528401526024830190610f8c565b9193916001600160e01b0319160361028a57505081808080808080808880f35b610ad191925060203d60201161030f576103008183610f69565b9086610a2f565b508386526001602090815287872033885290528686205460ff166108ea565b5091346106e6576003199160603684011261038b57610b14610f07565b906001600160401b039060243582811161046c57610b359036908801610fe3565b9160443590811161046c57610b4d9036908801611043565b610b578351611152565b96855b8451811015610b7857806001610b7181938c6111a7565b5201610b5a565b506001600160a01b038516918891908890610b9485151561121e565b610ba18751855114611274565b885b8751811015610bea5780610bb9600192876111a7565b51610bc4828b6111a7565b518c528b6020818152898b8320925252610be2898d209182546112d1565b905501610ba3565b50909195929496848989516000805160206114fc833981519152339180610c128c8b836112f4565b0390a43b610c1e578780f35b92610c6488602094610c83899a9b999895610c74988d51998a988997889663bc197c8160e01b9e8f8952339089015288602489015260a0604489015260a4880190611099565b9084878303016064880152611099565b91848303016084850152610f8c565b03925af1839181610cbe575b50610c9f57505050610a3f6113f5565b9193916001600160e01b0319160361028a575050818080808080808780f35b610cd891925060203d60201161030f576103008183610f69565b9086610c8f565b5091903461038b57602090816003193601126103395780519280600254906001908260011c92600181168015610daf575b87851081146106c9578899509688969785829a529182600014610d88575050600114610d4a575b50505061065d929161064e910385610f69565b9190869350600283528383205b828410610d70575050508201018161064e61065d610d37565b8054848a018601528895508794909301928101610d57565b60ff19168782015293151560051b8601909301935084925061064e915061065d9050610d37565b93607f1693610d10565b5091346106e657806003193601126106e657815191816003549260018460011c9160018616958615610e60575b60209687851081146106c9578899509688969785829a529182600014610d88575050600114610e225750505061065d929161064e910385610f69565b9190869350600383528383205b828410610e48575050508201018161064e61065d610d37565b8054848a018601528895508794909301928101610e2f565b92607f1692610de6565b503461033957602036600319011261033957359063ffffffff60e01b82168092036103395760209250636cdb3d1360e11b8214918215610ec6575b8215610eb5575b50519015158152f35b6301ffc9a760e01b14915038610eac565b6303a24d0760e21b81149250610ea5565b50503461038b578060031936011261038b57602090610f00610ef7610f07565b602435906110cd565b9051908152f35b600435906001600160a01b0382168203610f1d57565b600080fd5b602435906001600160a01b0382168203610f1d57565b604081019081106001600160401b03821117610f5357604052565b634e487b7160e01b600052604160045260246000fd5b601f909101601f19168101906001600160401b03821190821017610f5357604052565b919082519283825260005b848110610fb8575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201610f97565b6001600160401b038111610f535760051b60200190565b9080601f83011215610f1d576020908235610ffd81610fcc565b9361100b6040519586610f69565b81855260208086019260051b820101928311610f1d57602001905b828210611034575050505090565b81358152908301908301611026565b81601f82011215610f1d578035906001600160401b038211610f535760405192611077601f8401601f191660200185610f69565b82845260208383010111610f1d57816000926020809301838601378301015290565b90815180825260208080930193019160005b8281106110b9575050505090565b8351855293810193928101926001016110ab565b6001600160a01b03169081156110fa57600052600060205260406000209060005260205260406000205490565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b6064820152608490fd5b9061115c82610fcc565b6111696040519182610f69565b828152809261117a601f1991610fcc565b0190602036910137565b8051156111915760200190565b634e487b7160e01b600052603260045260246000fd5b80518210156111915760209160051b010190565b156111c257565b60405162461bcd60e51b815260206004820152602e60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201526d195c881bdc88185c1c1c9bdd995960921b6064820152608490fd5b1561122557565b60405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b1561127b57565b60405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608490fd5b919082018092116112de57565b634e487b7160e01b600052601160045260246000fd5b909161130b61131993604084526040840190611099565b916020818403910152611099565b90565b1561132357565b60405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b1561137d57565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608490fd5b90816020910312610f1d57516001600160e01b031981168103610f1d5790565b60009060033d1161140257565b905060046000803e60005160e01c90565b600060443d1061131957604051600319913d83016004833e81516001600160401b03918282113d60248401111761147057818401948551938411611478573d85010160208487010111611470575061131992910160200190610f69565b949350505050565b50949350505050565b60809060208152603460208201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356040820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60608201520190565b604051906114e382610f38565b60018252602036818401376114f782611184565b529056fe4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fbc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62a26469706673582212203d6bf6372531dcd67a715ea3e7d84fd5a294efa438bebd0e5d5d9d7619f6aef464736f6c63430008170033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000001f68747470733a2f2f697066732e696f2f697066732f746f6b656e2e64617461000000000000000000000000000000000000000000000000000000000000000011536f756c20426f6e64656420546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035342540000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6040608081526004908136101561001557600080fd5b600091823560e01c8062fdd58e14610ed757806301ffc9a714610e6a57806306fdde0314610db95780630e89341c14610cdf5780632286248214610af75780632eb2c2d61461085d5780634e1273f4146106e957806395d89b41146105e6578063a0712d6814610470578063a22cb4651461038f578063e985e9c51461033d5763f242432a146100a457600080fd5b346103395760a0366003190112610339576100bd610f07565b916100c6610f22565b9260443590606435906084356001600160401b038111610335576100ed9036908701611043565b926001600160a01b03918216913383148015610316575b61010d906111bb565b87169161011b83151561131c565b610124826114d6565b5061012e846114d6565b50818952602097898952868a20828b52895284878b205461015182821015611376565b848c528b8b52888c20848d528b5203878b2055828a52898952868a20848b528952868a206101808682546112d1565b905583828851858152878c82015260008051602061151c8339815191528a3392a43b6101aa578880f35b918697989596949391868a946101f38a519788968795869463f23a6e6160e01b9c8d8752339087015260248601526044850152606484015260a0608484015260a4830190610f8c565b03925af18391816102e7575b506102685750505061020f6113f5565b6308c379a014610237575b5162461bcd60e51b815291508190610233908201611481565b0390fd5b61023f611413565b8061024a575061021a565b610233915193849362461bcd60e51b85528401526024830190610f8c565b9194506001600160e01b03199091160361028a57505038808080808080808880f35b5162461bcd60e51b81529150819061023390820160809060208152602860208201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b60608201520190565b610308919250873d891161030f575b6103008183610f69565b8101906113d5565b90386101ff565b503d6102f6565b5082895260016020908152868a20338b5290528589205460ff16610104565b8780fd5b8280fd5b50503461038b578060031936011261038b5760ff8160209361035d610f07565b610365610f22565b6001600160a01b0391821683526001875283832091168252855220549151911615158152f35b5080fd5b5090346103395780600319360112610339576103a9610f07565b906024359182151580930361046c576001600160a01b0316923384146104185750338452600160205280842083855260205280842060ff1981541660ff8416179055519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b6020608492519162461bcd60e51b8352820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152fd5b8480fd5b50602091826003193601126105e25780518235908481016001600160401b038111828210176105cf5783528581526104a933151561121e565b6104b2826114d6565b5060016104d184516104c381610f38565b828152873681830137611184565b528186528585528286203387528552828620805490600182018092116105bc5755825182815260018682015286339160008051602061151c833981519152863392a4333b61051d578580f35b84610560918495969794518093819263f23a6e6160e01b96878452338b85015288602485015260448401526001606484015260a0608484015260a4830190610f8c565b038186335af183918161059d575b5061057e5750505061020f6113f5565b9194506001600160e01b03199091160361028a57505038808080808580f35b6105b5919250873d891161030f576103008183610f69565b903861056e565b634e487b7160e01b885260118652602488fd5b634e487b7160e01b875260418552602487fd5b8380fd5b5091346106e657806003193601126106e6578151918184549260018460011c91600186169586156106dc575b60209687851081146106c9579087899a92868b999a9b52918260001461069f575050600114610661575b858861065d8961064e848a0385610f69565b51928284938452830190610f8c565b0390f35b87945081939291528383205b828410610687575050508201018161064e61065d3861063c565b8054848a01860152889550879490930192810161066d565b60ff19168882015294151560051b8701909401945085935061064e925061065d915038905061063c565b634e487b7160e01b835260228a52602483fd5b92607f1692610612565b80fd5b503461033957816003193601126103395780356001600160401b0380821161046c573660238301121561046c57818301359061072482610fcc565b9261073186519485610f69565b82845260209260248486019160051b8301019136831161085957602401905b82821061083657505050602435908111610832576107719036908501610fe3565b9282518451036107df57506107868251611152565b945b82518110156107cd576001906107bc6001600160a01b036107a983876111a7565b51166107b583886111a7565b51906110cd565b6107c682896111a7565b5201610788565b84518281528061065d81850189611099565b60849185519162461bcd60e51b8352820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152fd5b8580fd5b81356001600160a01b0381168103610855578152908401908401610750565b8980fd5b8880fd5b5082346106e6576003199260a03685011261038b5761087a610f07565b91610883610f22565b946001600160401b03936044358581116105e2576108a49036908801610fe3565b60643586811161046c576108bb9036908901610fe3565b9560843590811161046c576108d39036908901611043565b966001600160a01b03928316923384148015610ad8575b6108f3906111bb565b6109008351895114611274565b89169361090e85151561131c565b855b835181101561098d5780610926600192866111a7565b51610931828c6111a7565b5190808a526020908a82528b8b20898c528252828c8c8b828220549261095985851015611376565b858352828752822091528452038c8c20558a528981528a8a2090898b52526109858a8a209182546112d1565b905501610910565b50949897909692959784878a516000805160206114fc8339815191523391806109b78a8a836112f4565b0390a43b6109c3578880f35b8798969751948593849363bc197c8160e01b98898652338c87015260248601526044850160a0905260a485016109f891611099565b82858203016064860152610a0b91611099565b90838203016084840152610a1e91610f8c565b0381865a94602095f1839181610ab7575b50610a9757505050610a3f6113f5565b6308c379a014610a63575b905162461bcd60e51b8152908190610233908201611481565b610a6b611413565b80610a765750610a4a565b610233906020935193849362461bcd60e51b85528401526024830190610f8c565b9193916001600160e01b0319160361028a57505081808080808080808880f35b610ad191925060203d60201161030f576103008183610f69565b9086610a2f565b508386526001602090815287872033885290528686205460ff166108ea565b5091346106e6576003199160603684011261038b57610b14610f07565b906001600160401b039060243582811161046c57610b359036908801610fe3565b9160443590811161046c57610b4d9036908801611043565b610b578351611152565b96855b8451811015610b7857806001610b7181938c6111a7565b5201610b5a565b506001600160a01b038516918891908890610b9485151561121e565b610ba18751855114611274565b885b8751811015610bea5780610bb9600192876111a7565b51610bc4828b6111a7565b518c528b6020818152898b8320925252610be2898d209182546112d1565b905501610ba3565b50909195929496848989516000805160206114fc833981519152339180610c128c8b836112f4565b0390a43b610c1e578780f35b92610c6488602094610c83899a9b999895610c74988d51998a988997889663bc197c8160e01b9e8f8952339089015288602489015260a0604489015260a4880190611099565b9084878303016064880152611099565b91848303016084850152610f8c565b03925af1839181610cbe575b50610c9f57505050610a3f6113f5565b9193916001600160e01b0319160361028a575050818080808080808780f35b610cd891925060203d60201161030f576103008183610f69565b9086610c8f565b5091903461038b57602090816003193601126103395780519280600254906001908260011c92600181168015610daf575b87851081146106c9578899509688969785829a529182600014610d88575050600114610d4a575b50505061065d929161064e910385610f69565b9190869350600283528383205b828410610d70575050508201018161064e61065d610d37565b8054848a018601528895508794909301928101610d57565b60ff19168782015293151560051b8601909301935084925061064e915061065d9050610d37565b93607f1693610d10565b5091346106e657806003193601126106e657815191816003549260018460011c9160018616958615610e60575b60209687851081146106c9578899509688969785829a529182600014610d88575050600114610e225750505061065d929161064e910385610f69565b9190869350600383528383205b828410610e48575050508201018161064e61065d610d37565b8054848a018601528895508794909301928101610e2f565b92607f1692610de6565b503461033957602036600319011261033957359063ffffffff60e01b82168092036103395760209250636cdb3d1360e11b8214918215610ec6575b8215610eb5575b50519015158152f35b6301ffc9a760e01b14915038610eac565b6303a24d0760e21b81149250610ea5565b50503461038b578060031936011261038b57602090610f00610ef7610f07565b602435906110cd565b9051908152f35b600435906001600160a01b0382168203610f1d57565b600080fd5b602435906001600160a01b0382168203610f1d57565b604081019081106001600160401b03821117610f5357604052565b634e487b7160e01b600052604160045260246000fd5b601f909101601f19168101906001600160401b03821190821017610f5357604052565b919082519283825260005b848110610fb8575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201610f97565b6001600160401b038111610f535760051b60200190565b9080601f83011215610f1d576020908235610ffd81610fcc565b9361100b6040519586610f69565b81855260208086019260051b820101928311610f1d57602001905b828210611034575050505090565b81358152908301908301611026565b81601f82011215610f1d578035906001600160401b038211610f535760405192611077601f8401601f191660200185610f69565b82845260208383010111610f1d57816000926020809301838601378301015290565b90815180825260208080930193019160005b8281106110b9575050505090565b8351855293810193928101926001016110ab565b6001600160a01b03169081156110fa57600052600060205260406000209060005260205260406000205490565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b6064820152608490fd5b9061115c82610fcc565b6111696040519182610f69565b828152809261117a601f1991610fcc565b0190602036910137565b8051156111915760200190565b634e487b7160e01b600052603260045260246000fd5b80518210156111915760209160051b010190565b156111c257565b60405162461bcd60e51b815260206004820152602e60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201526d195c881bdc88185c1c1c9bdd995960921b6064820152608490fd5b1561122557565b60405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b1561127b57565b60405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608490fd5b919082018092116112de57565b634e487b7160e01b600052601160045260246000fd5b909161130b61131993604084526040840190611099565b916020818403910152611099565b90565b1561132357565b60405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b1561137d57565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608490fd5b90816020910312610f1d57516001600160e01b031981168103610f1d5790565b60009060033d1161140257565b905060046000803e60005160e01c90565b600060443d1061131957604051600319913d83016004833e81516001600160401b03918282113d60248401111761147057818401948551938411611478573d85010160208487010111611470575061131992910160200190610f69565b949350505050565b50949350505050565b60809060208152603460208201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356040820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60608201520190565b604051906114e382610f38565b60018252602036818401376114f782611184565b529056fe4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fbc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62a26469706673582212203d6bf6372531dcd67a715ea3e7d84fd5a294efa438bebd0e5d5d9d7619f6aef464736f6c63430008170033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000001f68747470733a2f2f697066732e696f2f697066732f746f6b656e2e64617461000000000000000000000000000000000000000000000000000000000000000011536f756c20426f6e64656420546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035342540000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _uri (string): https://ipfs.io/ipfs/token.data
Arg [1] : _name (string): Soul Bonded Token
Arg [2] : _symbol (string): SBT
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000001f
Arg [4] : 68747470733a2f2f697066732e696f2f697066732f746f6b656e2e6461746100
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [6] : 536f756c20426f6e64656420546f6b656e000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : 5342540000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 29 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.