ERC-1155
Overview
Max Total Supply
56
Holders
26
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:
HATHackersNFT
Compiler Version
v0.8.16+commit.07a7930e
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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 anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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 (last updated v4.7.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.6.0) (token/ERC1155/extensions/ERC1155Supply.sol) pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of ERC1155 that adds tracking of total supply per id. * * Useful for scenarios where Fungible and Non-fungible tokens have to be * clearly identified. Note: While a totalSupply of 1 might mean the * corresponding is an NFT, there is no guarantees that no other token with the * same id are not going to be minted. */ abstract contract ERC1155Supply is ERC1155 { mapping(uint256 => uint256) private _totalSupply; /** * @dev Total amount of tokens in with a given id. */ function totalSupply(uint256 id) public view virtual returns (uint256) { return _totalSupply[id]; } /** * @dev Indicates whether any token exist with a given id, or not. */ function exists(uint256 id) public view virtual returns (bool) { return ERC1155Supply.totalSupply(id) > 0; } /** * @dev See {ERC1155-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); if (from == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] += amounts[i]; } } if (to == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 supply = _totalSupply[id]; require(supply >= amount, "ERC1155: burn amount exceeds totalSupply"); unchecked { _totalSupply[id] = supply - amount; } } } } }
// 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.8.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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return 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 (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.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 `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); } }
// 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.8.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) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 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 10, 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 * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.16; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract HATHackersNFT is ERC1155Supply, Ownable { error MintArrayLengthMismatch(); error TokenDoesNotExist(); error MintingAlreadyStopped(); error MintingOfTokenStopped(); event MintingStopped(uint256 indexed _tokenId); mapping(uint256 => string) public uris; mapping(uint256 => bool) public mintingStopped; constructor(address _hatsGovernance) ERC1155("") { _transferOwnership(_hatsGovernance); } function mint(address _recipient, string calldata _ipfsHash, uint256 _amount) public onlyOwner { uint256 tokenId = getTokenId(_ipfsHash); if (bytes(uris[tokenId]).length == 0) { uris[tokenId] = _ipfsHash; } if (mintingStopped[tokenId]) { revert MintingOfTokenStopped(); } _mint(_recipient, tokenId, _amount, ""); } function stopMint(uint256 _tokenId) public onlyOwner { if (mintingStopped[_tokenId]) { revert MintingAlreadyStopped(); } mintingStopped[_tokenId] = true; emit MintingStopped(_tokenId); } function mintMultiple(address[] calldata _recipients, string[] calldata _ipfsHashes, uint256[] calldata _amounts) external onlyOwner { if (_ipfsHashes.length != _recipients.length || _ipfsHashes.length != _amounts.length) { revert MintArrayLengthMismatch(); } for (uint256 i = 0; i < _ipfsHashes.length;) { mint(_recipients[i], _ipfsHashes[i], _amounts[i]); unchecked { ++i; } } } function stopMintMultiple(uint256[] calldata _tokenIds) external onlyOwner { for (uint256 i = 0; i < _tokenIds.length;) { stopMint(_tokenIds[i]); unchecked { ++i; } } } function getTokenId(string calldata _ipfsHash) public pure returns(uint256) { return uint256(keccak256(abi.encodePacked(_ipfsHash))); } function uri(uint256 _tokenId) public view override returns (string memory) { return uris[_tokenId]; } }
{ "evmVersion": "london", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [], "viaIR": true, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_hatsGovernance","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"MintArrayLengthMismatch","type":"error"},{"inputs":[],"name":"MintingAlreadyStopped","type":"error"},{"inputs":[],"name":"MintingOfTokenStopped","type":"error"},{"inputs":[],"name":"TokenDoesNotExist","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":"uint256","name":"_tokenId","type":"uint256"}],"name":"MintingStopped","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":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_ipfsHash","type":"string"}],"name":"getTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","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"},{"internalType":"string","name":"_ipfsHash","type":"string"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"string[]","name":"_ipfsHashes","type":"string[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"mintMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintingStopped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"uint256","name":"_tokenId","type":"uint256"}],"name":"stopMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"stopMintMultiple","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":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uris","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60803462000144576001600160401b0390601f620020a938819003918201601f1916830191848311848410176200012e578084926020946040528339810103126200014457516001600160a01b038116810362000144576040519160208301908111838210176200012e576040526000809252600254916001928381811c9116801562000123575b60208210146200010f57601f8111620000c5575b620000b58383600255620000af3362000149565b62000149565b604051611f119081620001988239f35b60028252601f0160051c7f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace908101905b8181106200010457506200009b565b8281558401620000f5565b634e487b7160e01b82526022600452602482fd5b90607f169062000087565b634e487b7160e01b600052604160045260246000fd5b600080fd5b600480546001600160a01b039283166001600160a01b031982168117909255604051919216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a356fe6080604052600436101561001257600080fd5b60003560e01c8062fdd58e1461172057806301ffc9a7146116b25780630e89341c146116725780631253c546146116725780631e7663bc1461162f5780632eb2c2d6146111e45780634e1273f4146110425780634f558e79146110145780636bbca04614610f5e578063715018a614610efc5780638da5cb5b14610ed3578063a22cb46514610def578063af5691f614610dbe578063b2c112f9146109e1578063b6eb549d1461095b578063ba7aef4314610660578063bd85b03914610634578063e985e9c5146105de578063f242432a146101cc5763f2fde38b146100f757600080fd5b346101c75760203660031901126101c757610110611747565b610118611a2b565b6001600160a01b039081169081156101735760009160045491816bffffffffffffffffffffffff60a01b84161760045560405192167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08484a3f35b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b600080fd5b346101c75760a03660031901126101c7576101e5611747565b6101ed61175d565b90608480356001600160401b0381116101c75761020e903690600401611971565b6001600160a01b039190838316331480156105b3575b61022d90611b57565b8285161561023b8115611bba565b610246604435611e6b565b610251606435611e6b565b9185871615610553575b610493575b50506044356000526020946000865260406000208486166000528652604060002054610290606435821015611c14565b60443560005260008752604060002085871660005287526064359003604060002055604435600052600086526040600020848216600052865260406000206102db6064358254611c73565b905560405160443581526064358782015284821690858716907fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6260403392a4803b610323575b005b60a0600061036d958895604051978896879586938563f23a6e6160e01b9d8e87523360048801521660248601526044356044860152606435606486015284015260a4830190611773565b0393165af160009181610464575b5061043a57505060019061038d611ce9565b6308c379a014610405575b5061039f57005b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608490fd5b0390fd5b61040d611d07565b90816104195750610398565b61040160405192839262461bcd60e51b845260048401526024830190611773565b6001600160e01b0319161490506103215760405162461bcd60e51b81528061040160048201611ca0565b610485919250843d861161048c575b61047d8183611808565b810190611c80565b908461037b565b503d610473565b92959194909360005b8451811015610544576104af8186611b2d565b51906104bb8188611b2d565b518260005260036020526040600020548181106104ef576104ea93600052600360205203604060002055611b08565b61049c565b60405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b60648201528b90fd5b50935093909491508580610260565b959260009794919592975b86518110156105a557806105756105a0928b611b2d565b51610580828a611b2d565b5160005260036020526105996040600020918254611c73565b9055611b08565b61055e565b50929596919490939661025b565b50828416600052600160205260406000203360005260205261022d60ff604060002054169050610224565b346101c75760403660031901126101c7576105f7611747565b6105ff61175d565b9060018060a01b03809116600052600160205260406000209116600052602052602060ff604060002054166040519015158152f35b346101c75760203660031901126101c75760043560005260036020526020604060002054604051908152f35b346101c75760603660031901126101c757610679611747565b6001600160401b036024358181116101c7576106999036906004016118cf565b9092604435926106a7611a2b565b6106b18386611eb0565b9283600052602095600587526106cb6040600020546117b3565b15610822575b505050816000526006845260ff60406000205416610810576040516106f5816117ed565b600081526001600160a01b0382169384156107c15761071384611e6b565b9361071d82611e6b565b9360005b8651811015610760578061073861075b9288611b2d565b51610743828a611b2d565b5160005260038b526105996040600020918254611c73565b610721565b5061032194508660008984825281815260408220838352815260408220610788878254611c73565b905585604051918683528201527fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6260403392a433611d78565b60405162461bcd60e51b815260048101879052602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b60405163021eeb9560e11b8152600490fd5b8460005260058752604060002092821161094557819061084284546117b3565b601f81116108f4575b50600090601f831160011461088a5760009261087f575b50508160011b916000199060031b1c19161790555b8480806106d1565b013590508780610862565b909150601f1983169184600052886000209260005b8a8282106108de5750509084600195949392106108c4575b505050811b019055610877565b0135600019600384901b60f8161c191690558780806108b7565b600184968293958701358155019501920161089f565b9091508360005287600020601f840160051c81019189851061093b575b90601f859493920160051c01905b81811061092c575061084b565b6000815584935060010161091f565b9091508190610911565b634e487b7160e01b600052604160045260246000fd5b346101c75760203660031901126101c757600435610977611a2b565b80600052600660205260ff604060002054166109d057600081815260066020526040808220805460ff191660011790555190917ff6745a2db3ab942587bd3204ce8dd5f4cec119b9495758e1c39591eca58fe4718383a2f35b60405162d234a760e51b8152600490fd5b346101c75760603660031901126101c7576004356001600160401b0381116101c757610a119036906004016119fb565b6024356001600160401b0381116101c757610a309036906004016119fb565b6044356001600160401b0381116101c757610a4f9036906004016119fb565b939094610a5a611a2b565b818314801590610db4575b610da257928591946000925b848410610a7a57005b610a85848888611ea0565b35956001600160a01b03871687036101c7578460051b84013591601e19853603018312156101c7576001600160401b0383860135116101c757828501353603602084870101136101c757610ada868583611ea0565b3593610ae4611a2b565b610af5868501803590602001611eb0565b93846000526005602052610b0d6040600020546117b3565b15610c6b575b5083600052600660205260ff604060002054166108105760405195610b37876117ed565b600087526001600160a01b038a1615610c1c57610b5385611e6b565b98610b5d87611e6b565b9b60005b8b51811015610b8a57808c8f82610b7e610b859561058093611b2d565b5192611b2d565b610b61565b5097929a610c0f949c5060019691999597929a508160005260006020526040600020878060a01b0382166000526020526040600020610bca848254611c73565b90556040518281528360208201526000888060a01b038316917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6260403392a433611d78565b0192939195949094610a71565b60405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b846000526005602052604060002090610c8482546117b3565b601f8111610d58575b506000601f828a013511600114610cda57600090828a0135610cca575b508189013560011b91600019908a013560031b1c19161790555b8a610b13565b60209150828a010101358d610caa565b8260005260206000209060005b838b80820135601f19168310610d3d5701358b850135601f1916109050610d1b575b5050600190880135811b019055610cc4565b602060001960f8858d013560031b161c1991848c010101351690558c80610d09565b01820160209081013584556001909301929182019101610ce7565b826000526020600020601f838b01350160051c81016020848c013510610d9b575b601f830160051c82018110610d8f575050610c8d565b60008155600101610d79565b5080610d79565b604051633757dfe560e01b8152600490fd5b5084831415610a65565b346101c75760203660031901126101c7576004356000526006602052602060ff604060002054166040519015158152f35b346101c75760403660031901126101c757610e08611747565b602435908115158092036101c7576001600160a01b031690338214610e7c57336000526001602052604060002082600052602052604060002060ff1981541660ff83161790556040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b60405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608490fd5b346101c75760003660031901126101c7576004546040516001600160a01b039091168152602090f35b346101c75760003660031901126101c757610f15611a2b565b600480546001600160a01b0319811690915560405160009182906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08284a3f35b346101c7576020806003193601126101c7576004356001600160401b0381116101c757610f8f9036906004016119fb565b610f97611a2b565b60005b818110610fa357005b610fae818385611ea0565b3590610fb8611a2b565b81600052600680865260ff604060002054166109d0578260005285526040600020916001928360ff198254161790557ff6745a2db3ab942587bd3204ce8dd5f4cec119b9495758e1c39591eca58fe4716000604051a201610f9a565b346101c75760203660031901126101c757600435600052600360205260206040600020541515604051908152f35b346101c75760403660031901126101c7576004356001600160401b038082116101c757366023830112156101c75781600401359061107f826118fc565b9261108d6040519485611808565b82845260209260248486019160051b830101913683116101c757602401905b8282106111c5575050506024359081116101c7576110ce903690600401611913565b825181510361116e578251926110e3846118fc565b936110f16040519586611808565b808552611100601f19916118fc565b01368486013760005b81518110156111535761114e9061113e6001600160a01b0361112b8386611b2d565b51166111378387611b2d565b5190611a83565b6111488288611b2d565b52611b08565b611109565b50505061116a6040519282849384528301906119c7565b0390f35b60405162461bcd60e51b815260048101839052602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608490fd5b81356001600160a01b03811681036101c75781529084019084016110ac565b346101c75760031960a0368201126101c7576111fe611747565b9061120761175d565b6001600160401b03906044358281116101c757611228903690600401611913565b916064358181116101c757611241903690600401611913565b9260849182359081116101c75761125c903690600401611971565b6001600160a01b03929087841633148015611604575b61127b90611b57565b82518651036115b057838516156112928115611bba565b84891615611572575b6114af575b60005b835181101561133a57806112ba6113359286611b2d565b516112c5828a611b2d565b519080600052602090600082528c89604060002091166000528252828d604060002054906112f583831015611c14565b83600052600085528b6040600020911660005284520360406000205560005260008152604060002090888a16600052526105996040600020918254611c73565b6112a3565b5090959493946040516040815261135460408201856119c7565b908082036020820152858816917f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878c16928061139233948c6119c7565b0390a4853b61139d57005b60405163bc197c8160e01b808252336004830152988516602482015260a0604482015296879586946113d39060a48701906119c7565b838682030160648701526113e6916119c7565b9184830301908401526113f891611773565b03921691815a602094600091f16000918161148f575b50611467575050600161141f611ce9565b6308c379a014611430575b61039f57005b611438611d07565b80611443575061142a565b60405162461bcd60e51b815260206004820152908190610401906024830190611773565b6001600160e01b031916146103215760405162461bcd60e51b81528061040160048201611ca0565b6114a891925060203d811161048c5761047d8183611808565b908361140e565b9591939094969260005b8551811015611565576114cc8187611b2d565b516114d7828b611b2d565b519080600052602060038152604060002054918383106115105761150b949392916003916000525203604060002055611b08565b6114b9565b60405162461bcd60e51b815260048101839052602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b60648201528b90fd5b50929694909391956112a0565b9794929693919060005b88518110156115a3578061159361159e928a611b2d565b51610580828c611b2d565b61157c565b509091939692949761129b565b5060405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152fd5b50838816600052600160205260406000203360005260205261127b60ff604060002054169050611272565b346101c75760203660031901126101c7576004356001600160401b0381116101c75761166a61166460209236906004016118cf565b90611eb0565b604051908152f35b346101c75760203660031901126101c757600435600052600560205261116a61169e6040600020611829565b604051918291602083526020830190611773565b346101c75760203660031901126101c75760043563ffffffff60e01b81168091036101c757602090636cdb3d1360e11b811490811561170f575b81156116fe575b506040519015158152f35b6301ffc9a760e01b149050826116f3565b6303a24d0760e21b811491506116ec565b346101c75760403660031901126101c757602061166a61173e611747565b60243590611a83565b600435906001600160a01b03821682036101c757565b602435906001600160a01b03821682036101c757565b919082519283825260005b84811061179f575050826000602080949584010152601f8019910116010190565b60208183018101518483018201520161177e565b90600182811c921680156117e3575b60208310146117cd57565b634e487b7160e01b600052602260045260246000fd5b91607f16916117c2565b602081019081106001600160401b0382111761094557604052565b90601f801991011681019081106001600160401b0382111761094557604052565b906040519182600082549261183d846117b3565b9081845260019485811690816000146118ac5750600114611869575b505061186792500383611808565b565b9093915060005260209081600020936000915b81831061189457505061186793508201013880611859565b8554888401850152948501948794509183019161187c565b91505061186794506020925060ff191682840152151560051b8201013880611859565b9181601f840112156101c7578235916001600160401b0383116101c757602083818601950101116101c757565b6001600160401b0381116109455760051b60200190565b81601f820112156101c75780359161192a836118fc565b926119386040519485611808565b808452602092838086019260051b8201019283116101c7578301905b828210611962575050505090565b81358152908301908301611954565b81601f820112156101c7578035906001600160401b03821161094557604051926119a5601f8401601f191660200185611808565b828452602083830101116101c757816000926020809301838601378301015290565b90815180825260208080930193019160005b8281106119e7575050505090565b8351855293810193928101926001016119d9565b9181601f840112156101c7578235916001600160401b0383116101c7576020808501948460051b0101116101c757565b6004546001600160a01b03163303611a3f57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6001600160a01b0316908115611ab057600052600060205260406000209060005260205260406000205490565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b6064820152608490fd5b6000198114611b175760010190565b634e487b7160e01b600052601160045260246000fd5b8051821015611b415760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b15611b5e57565b60405162461bcd60e51b815260206004820152602e60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201526d195c881bdc88185c1c1c9bdd995960921b6064820152608490fd5b15611bc157565b60405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b15611c1b57565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608490fd5b91908201809211611b1757565b908160209103126101c757516001600160e01b0319811681036101c75790565b60809060208152602860208201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b60608201520190565b60009060033d11611cf657565b905060046000803e60005160e01c90565b600060443d10611d6457604051600319913d83016004833e81516001600160401b03918282113d602484011117611d6757818401948551938411611d6f573d85010160208487010111611d675750611d6492910160200190611808565b90565b949350505050565b50949350505050565b919390803b611d89575b5050505050565b611dd793600060209460405180978196829563f23a6e6160e01b9b8c855260018060a01b0380961660048601528660248601526044850152606484015260a0608484015260a4830190611773565b0393165af160009181611e4b575b50611e235750506001611df6611ce9565b6308c379a014611e10575b61039f575b3880808080611d82565b611e18611d07565b806114435750611e01565b6001600160e01b03191614611e065760405162461bcd60e51b81528061040160048201611ca0565b611e6491925060203d811161048c5761047d8183611808565b9038611de5565b60405190604082018281106001600160401b038211176109455760405260018252602082016020368237825115611b41575290565b9190811015611b415760051b0190565b90611ed560206040518381948383019687378101600083820152038084520182611808565b5190209056fea2646970667358221220d5180c1ec7a454129e4376a417fb8f519060229ff20f31a903a21273f80949ee64736f6c634300081000330000000000000000000000001885b7c7a3ae1f35ba71c0392c13153a95c4914f
Deployed Bytecode
0x6080604052600436101561001257600080fd5b60003560e01c8062fdd58e1461172057806301ffc9a7146116b25780630e89341c146116725780631253c546146116725780631e7663bc1461162f5780632eb2c2d6146111e45780634e1273f4146110425780634f558e79146110145780636bbca04614610f5e578063715018a614610efc5780638da5cb5b14610ed3578063a22cb46514610def578063af5691f614610dbe578063b2c112f9146109e1578063b6eb549d1461095b578063ba7aef4314610660578063bd85b03914610634578063e985e9c5146105de578063f242432a146101cc5763f2fde38b146100f757600080fd5b346101c75760203660031901126101c757610110611747565b610118611a2b565b6001600160a01b039081169081156101735760009160045491816bffffffffffffffffffffffff60a01b84161760045560405192167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08484a3f35b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b600080fd5b346101c75760a03660031901126101c7576101e5611747565b6101ed61175d565b90608480356001600160401b0381116101c75761020e903690600401611971565b6001600160a01b039190838316331480156105b3575b61022d90611b57565b8285161561023b8115611bba565b610246604435611e6b565b610251606435611e6b565b9185871615610553575b610493575b50506044356000526020946000865260406000208486166000528652604060002054610290606435821015611c14565b60443560005260008752604060002085871660005287526064359003604060002055604435600052600086526040600020848216600052865260406000206102db6064358254611c73565b905560405160443581526064358782015284821690858716907fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6260403392a4803b610323575b005b60a0600061036d958895604051978896879586938563f23a6e6160e01b9d8e87523360048801521660248601526044356044860152606435606486015284015260a4830190611773565b0393165af160009181610464575b5061043a57505060019061038d611ce9565b6308c379a014610405575b5061039f57005b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608490fd5b0390fd5b61040d611d07565b90816104195750610398565b61040160405192839262461bcd60e51b845260048401526024830190611773565b6001600160e01b0319161490506103215760405162461bcd60e51b81528061040160048201611ca0565b610485919250843d861161048c575b61047d8183611808565b810190611c80565b908461037b565b503d610473565b92959194909360005b8451811015610544576104af8186611b2d565b51906104bb8188611b2d565b518260005260036020526040600020548181106104ef576104ea93600052600360205203604060002055611b08565b61049c565b60405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b60648201528b90fd5b50935093909491508580610260565b959260009794919592975b86518110156105a557806105756105a0928b611b2d565b51610580828a611b2d565b5160005260036020526105996040600020918254611c73565b9055611b08565b61055e565b50929596919490939661025b565b50828416600052600160205260406000203360005260205261022d60ff604060002054169050610224565b346101c75760403660031901126101c7576105f7611747565b6105ff61175d565b9060018060a01b03809116600052600160205260406000209116600052602052602060ff604060002054166040519015158152f35b346101c75760203660031901126101c75760043560005260036020526020604060002054604051908152f35b346101c75760603660031901126101c757610679611747565b6001600160401b036024358181116101c7576106999036906004016118cf565b9092604435926106a7611a2b565b6106b18386611eb0565b9283600052602095600587526106cb6040600020546117b3565b15610822575b505050816000526006845260ff60406000205416610810576040516106f5816117ed565b600081526001600160a01b0382169384156107c15761071384611e6b565b9361071d82611e6b565b9360005b8651811015610760578061073861075b9288611b2d565b51610743828a611b2d565b5160005260038b526105996040600020918254611c73565b610721565b5061032194508660008984825281815260408220838352815260408220610788878254611c73565b905585604051918683528201527fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6260403392a433611d78565b60405162461bcd60e51b815260048101879052602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b60405163021eeb9560e11b8152600490fd5b8460005260058752604060002092821161094557819061084284546117b3565b601f81116108f4575b50600090601f831160011461088a5760009261087f575b50508160011b916000199060031b1c19161790555b8480806106d1565b013590508780610862565b909150601f1983169184600052886000209260005b8a8282106108de5750509084600195949392106108c4575b505050811b019055610877565b0135600019600384901b60f8161c191690558780806108b7565b600184968293958701358155019501920161089f565b9091508360005287600020601f840160051c81019189851061093b575b90601f859493920160051c01905b81811061092c575061084b565b6000815584935060010161091f565b9091508190610911565b634e487b7160e01b600052604160045260246000fd5b346101c75760203660031901126101c757600435610977611a2b565b80600052600660205260ff604060002054166109d057600081815260066020526040808220805460ff191660011790555190917ff6745a2db3ab942587bd3204ce8dd5f4cec119b9495758e1c39591eca58fe4718383a2f35b60405162d234a760e51b8152600490fd5b346101c75760603660031901126101c7576004356001600160401b0381116101c757610a119036906004016119fb565b6024356001600160401b0381116101c757610a309036906004016119fb565b6044356001600160401b0381116101c757610a4f9036906004016119fb565b939094610a5a611a2b565b818314801590610db4575b610da257928591946000925b848410610a7a57005b610a85848888611ea0565b35956001600160a01b03871687036101c7578460051b84013591601e19853603018312156101c7576001600160401b0383860135116101c757828501353603602084870101136101c757610ada868583611ea0565b3593610ae4611a2b565b610af5868501803590602001611eb0565b93846000526005602052610b0d6040600020546117b3565b15610c6b575b5083600052600660205260ff604060002054166108105760405195610b37876117ed565b600087526001600160a01b038a1615610c1c57610b5385611e6b565b98610b5d87611e6b565b9b60005b8b51811015610b8a57808c8f82610b7e610b859561058093611b2d565b5192611b2d565b610b61565b5097929a610c0f949c5060019691999597929a508160005260006020526040600020878060a01b0382166000526020526040600020610bca848254611c73565b90556040518281528360208201526000888060a01b038316917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6260403392a433611d78565b0192939195949094610a71565b60405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b846000526005602052604060002090610c8482546117b3565b601f8111610d58575b506000601f828a013511600114610cda57600090828a0135610cca575b508189013560011b91600019908a013560031b1c19161790555b8a610b13565b60209150828a010101358d610caa565b8260005260206000209060005b838b80820135601f19168310610d3d5701358b850135601f1916109050610d1b575b5050600190880135811b019055610cc4565b602060001960f8858d013560031b161c1991848c010101351690558c80610d09565b01820160209081013584556001909301929182019101610ce7565b826000526020600020601f838b01350160051c81016020848c013510610d9b575b601f830160051c82018110610d8f575050610c8d565b60008155600101610d79565b5080610d79565b604051633757dfe560e01b8152600490fd5b5084831415610a65565b346101c75760203660031901126101c7576004356000526006602052602060ff604060002054166040519015158152f35b346101c75760403660031901126101c757610e08611747565b602435908115158092036101c7576001600160a01b031690338214610e7c57336000526001602052604060002082600052602052604060002060ff1981541660ff83161790556040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b60405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608490fd5b346101c75760003660031901126101c7576004546040516001600160a01b039091168152602090f35b346101c75760003660031901126101c757610f15611a2b565b600480546001600160a01b0319811690915560405160009182906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08284a3f35b346101c7576020806003193601126101c7576004356001600160401b0381116101c757610f8f9036906004016119fb565b610f97611a2b565b60005b818110610fa357005b610fae818385611ea0565b3590610fb8611a2b565b81600052600680865260ff604060002054166109d0578260005285526040600020916001928360ff198254161790557ff6745a2db3ab942587bd3204ce8dd5f4cec119b9495758e1c39591eca58fe4716000604051a201610f9a565b346101c75760203660031901126101c757600435600052600360205260206040600020541515604051908152f35b346101c75760403660031901126101c7576004356001600160401b038082116101c757366023830112156101c75781600401359061107f826118fc565b9261108d6040519485611808565b82845260209260248486019160051b830101913683116101c757602401905b8282106111c5575050506024359081116101c7576110ce903690600401611913565b825181510361116e578251926110e3846118fc565b936110f16040519586611808565b808552611100601f19916118fc565b01368486013760005b81518110156111535761114e9061113e6001600160a01b0361112b8386611b2d565b51166111378387611b2d565b5190611a83565b6111488288611b2d565b52611b08565b611109565b50505061116a6040519282849384528301906119c7565b0390f35b60405162461bcd60e51b815260048101839052602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608490fd5b81356001600160a01b03811681036101c75781529084019084016110ac565b346101c75760031960a0368201126101c7576111fe611747565b9061120761175d565b6001600160401b03906044358281116101c757611228903690600401611913565b916064358181116101c757611241903690600401611913565b9260849182359081116101c75761125c903690600401611971565b6001600160a01b03929087841633148015611604575b61127b90611b57565b82518651036115b057838516156112928115611bba565b84891615611572575b6114af575b60005b835181101561133a57806112ba6113359286611b2d565b516112c5828a611b2d565b519080600052602090600082528c89604060002091166000528252828d604060002054906112f583831015611c14565b83600052600085528b6040600020911660005284520360406000205560005260008152604060002090888a16600052526105996040600020918254611c73565b6112a3565b5090959493946040516040815261135460408201856119c7565b908082036020820152858816917f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878c16928061139233948c6119c7565b0390a4853b61139d57005b60405163bc197c8160e01b808252336004830152988516602482015260a0604482015296879586946113d39060a48701906119c7565b838682030160648701526113e6916119c7565b9184830301908401526113f891611773565b03921691815a602094600091f16000918161148f575b50611467575050600161141f611ce9565b6308c379a014611430575b61039f57005b611438611d07565b80611443575061142a565b60405162461bcd60e51b815260206004820152908190610401906024830190611773565b6001600160e01b031916146103215760405162461bcd60e51b81528061040160048201611ca0565b6114a891925060203d811161048c5761047d8183611808565b908361140e565b9591939094969260005b8551811015611565576114cc8187611b2d565b516114d7828b611b2d565b519080600052602060038152604060002054918383106115105761150b949392916003916000525203604060002055611b08565b6114b9565b60405162461bcd60e51b815260048101839052602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b60648201528b90fd5b50929694909391956112a0565b9794929693919060005b88518110156115a3578061159361159e928a611b2d565b51610580828c611b2d565b61157c565b509091939692949761129b565b5060405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152fd5b50838816600052600160205260406000203360005260205261127b60ff604060002054169050611272565b346101c75760203660031901126101c7576004356001600160401b0381116101c75761166a61166460209236906004016118cf565b90611eb0565b604051908152f35b346101c75760203660031901126101c757600435600052600560205261116a61169e6040600020611829565b604051918291602083526020830190611773565b346101c75760203660031901126101c75760043563ffffffff60e01b81168091036101c757602090636cdb3d1360e11b811490811561170f575b81156116fe575b506040519015158152f35b6301ffc9a760e01b149050826116f3565b6303a24d0760e21b811491506116ec565b346101c75760403660031901126101c757602061166a61173e611747565b60243590611a83565b600435906001600160a01b03821682036101c757565b602435906001600160a01b03821682036101c757565b919082519283825260005b84811061179f575050826000602080949584010152601f8019910116010190565b60208183018101518483018201520161177e565b90600182811c921680156117e3575b60208310146117cd57565b634e487b7160e01b600052602260045260246000fd5b91607f16916117c2565b602081019081106001600160401b0382111761094557604052565b90601f801991011681019081106001600160401b0382111761094557604052565b906040519182600082549261183d846117b3565b9081845260019485811690816000146118ac5750600114611869575b505061186792500383611808565b565b9093915060005260209081600020936000915b81831061189457505061186793508201013880611859565b8554888401850152948501948794509183019161187c565b91505061186794506020925060ff191682840152151560051b8201013880611859565b9181601f840112156101c7578235916001600160401b0383116101c757602083818601950101116101c757565b6001600160401b0381116109455760051b60200190565b81601f820112156101c75780359161192a836118fc565b926119386040519485611808565b808452602092838086019260051b8201019283116101c7578301905b828210611962575050505090565b81358152908301908301611954565b81601f820112156101c7578035906001600160401b03821161094557604051926119a5601f8401601f191660200185611808565b828452602083830101116101c757816000926020809301838601378301015290565b90815180825260208080930193019160005b8281106119e7575050505090565b8351855293810193928101926001016119d9565b9181601f840112156101c7578235916001600160401b0383116101c7576020808501948460051b0101116101c757565b6004546001600160a01b03163303611a3f57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6001600160a01b0316908115611ab057600052600060205260406000209060005260205260406000205490565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b6064820152608490fd5b6000198114611b175760010190565b634e487b7160e01b600052601160045260246000fd5b8051821015611b415760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b15611b5e57565b60405162461bcd60e51b815260206004820152602e60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201526d195c881bdc88185c1c1c9bdd995960921b6064820152608490fd5b15611bc157565b60405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b15611c1b57565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608490fd5b91908201809211611b1757565b908160209103126101c757516001600160e01b0319811681036101c75790565b60809060208152602860208201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b60608201520190565b60009060033d11611cf657565b905060046000803e60005160e01c90565b600060443d10611d6457604051600319913d83016004833e81516001600160401b03918282113d602484011117611d6757818401948551938411611d6f573d85010160208487010111611d675750611d6492910160200190611808565b90565b949350505050565b50949350505050565b919390803b611d89575b5050505050565b611dd793600060209460405180978196829563f23a6e6160e01b9b8c855260018060a01b0380961660048601528660248601526044850152606484015260a0608484015260a4830190611773565b0393165af160009181611e4b575b50611e235750506001611df6611ce9565b6308c379a014611e10575b61039f575b3880808080611d82565b611e18611d07565b806114435750611e01565b6001600160e01b03191614611e065760405162461bcd60e51b81528061040160048201611ca0565b611e6491925060203d811161048c5761047d8183611808565b9038611de5565b60405190604082018281106001600160401b038211176109455760405260018252602082016020368237825115611b41575290565b9190811015611b415760051b0190565b90611ed560206040518381948383019687378101600083820152038084520182611808565b5190209056fea2646970667358221220d5180c1ec7a454129e4376a417fb8f519060229ff20f31a903a21273f80949ee64736f6c63430008100033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000001885b7c7a3ae1f35ba71c0392c13153a95c4914f
-----Decoded View---------------
Arg [0] : _hatsGovernance (address): 0x1885B7c7a3AE1F35BA71C0392C13153A95c4914f
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000001885b7c7a3ae1f35ba71c0392c13153a95c4914f
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.