ERC-20
MEME
Overview
Max Total Supply
8,050,126,520 NPC
Holders
10,424 ( 0.125%)
Market
Price
$0.02 @ 0.000006 ETH (-4.63%)
Onchain Market Cap
$136,277,930.20
Circulating Supply Market Cap
$122,204,110.19
Other Info
Token Contract (WITH 18 Decimals)
Balance
131,409.607172710096421065 NPCValue
$2,224.59 ( ~0.854062587410929 Eth) [0.0016%]Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
NPC
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-07-29 */ // nonplayablecoin.xyz // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: @openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/contracts/token/ERC1155/utils/ERC1155Receiver.sol // OpenZeppelin Contracts v4.4.1 (token/ERC1155/utils/ERC1155Receiver.sol) pragma solidity ^0.8.0; /** * @dev _Available since v3.1._ */ abstract contract ERC1155Receiver is ERC165, IERC1155Receiver { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId); } } // File: @openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/utils/ERC1155Holder.sol) pragma solidity ^0.8.0; /** * Simple implementation of `ERC1155Receiver` that will allow a contract to hold ERC1155 tokens. * * IMPORTANT: When inheriting this contract, you must include a way to use the received tokens, otherwise they will be * stuck. * * @dev _Available since v3.1._ */ contract ERC1155Holder is ERC1155Receiver { function onERC1155Received( address, address, uint256, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155Received.selector; } function onERC1155BatchReceived( address, address, uint256[] memory, uint256[] memory, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155BatchReceived.selector; } } // File: @openzeppelin/contracts/token/ERC1155/IERC1155.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; /** * @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; } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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); } } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } // File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } // File: NPC.sol pragma solidity ^0.8.9; contract NPC is ERC20, ERC1155Holder, Ownable { IERC1155 public erc1155Contract; uint256 public erc1155TokenId; uint256 public tokenSupply = 8050126520; constructor(address _erc1155Contract, uint256 _tokenId) ERC20("Non-Playable Coin", "NPC") { erc1155Contract = IERC1155(_erc1155Contract); erc1155TokenId = _tokenId; _mint(address(this), tokenSupply * (10 ** 18)); } function Transform(uint256 amount) external { require(amount >= 1, "Amount must be greater than 1"); erc1155Contract.safeTransferFrom(msg.sender, address(this), erc1155TokenId, amount, ""); _transfer(address(this), msg.sender, amount * (10 ** 18)); } function Respawn(uint256 amount) external { require(amount >= 1, "Amount must be greater than 1"); _transfer(msg.sender, address(this), amount * (10 ** 18)); erc1155Contract.safeTransferFrom(address(this), msg.sender, erc1155TokenId, amount, ""); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_erc1155Contract","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Respawn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transform","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"erc1155Contract","outputs":[{"internalType":"contract IERC1155","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc1155TokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","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":"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":[],"name":"tokenSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526401dfd32eb86008553480156200001a57600080fd5b5060405162001411380380620014118339810160408190526200003d916200022d565b604051806040016040528060118152602001702737b716a83630bcb0b136329021b7b4b760791b815250604051806040016040528060038152602001624e504360e81b81525081600390816200009491906200030d565b506004620000a382826200030d565b505050620000c0620000ba6200010c60201b60201c565b62000110565b600680546001600160a01b0319166001600160a01b038416179055600781905560085462000104903090620000fe90670de0b6b3a7640000620003ef565b62000162565b505062000425565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620001bd5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254620001d191906200040f565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b600080604083850312156200024157600080fd5b82516001600160a01b03811681146200025957600080fd5b6020939093015192949293505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200029457607f821691505b602082108103620002b557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200022857600081815260208120601f850160051c81016020861015620002e45750805b601f850160051c820191505b818110156200030557828155600101620002f0565b505050505050565b81516001600160401b0381111562000329576200032962000269565b62000341816200033a84546200027f565b84620002bb565b602080601f831160018114620003795760008415620003605750858301515b600019600386901b1c1916600185901b17855562000305565b600085815260208120601f198616915b82811015620003aa5788860151825594840194600190910190840162000389565b5085821015620003c95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417620004095762000409620003d9565b92915050565b80820180821115620004095762000409620003d9565b610fdc80620004356000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c80637a564970116100b8578063a9059cbb1161007c578063a9059cbb1461028d578063bc197c81146102a0578063bd8933ba146102d8578063dd62ed3e146102eb578063f23a6e61146102fe578063f2fde38b1461031d57600080fd5b80637a564970146102235780637e6a000a1461024e5780638da5cb5b1461026157806395d89b4114610272578063a457c2d71461027a57600080fd5b8063313ce5671161010a578063313ce567146101bc57806339509351146101cb578063637a6687146101de57806370a08231146101e7578063715018a6146102105780637824407f1461021a57600080fd5b806301ffc9a71461014757806306fdde031461016f578063095ea7b31461018457806318160ddd1461019757806323b872dd146101a9575b600080fd5b61015a610155366004610b46565b610330565b60405190151581526020015b60405180910390f35b610177610367565b6040516101669190610b77565b61015a610192366004610be1565b6103f9565b6002545b604051908152602001610166565b61015a6101b7366004610c0b565b610411565b60405160128152602001610166565b61015a6101d9366004610be1565b610435565b61019b60075481565b61019b6101f5366004610c47565b6001600160a01b031660009081526020819052604090205490565b610218610457565b005b61019b60085481565b600654610236906001600160a01b031681565b6040516001600160a01b039091168152602001610166565b61021861025c366004610c62565b61046b565b6005546001600160a01b0316610236565b61017761054b565b61015a610288366004610be1565b61055a565b61015a61029b366004610be1565b6105d5565b6102bf6102ae366004610db2565b63bc197c8160e01b95945050505050565b6040516001600160e01b03199091168152602001610166565b6102186102e6366004610c62565b6105e3565b61019b6102f9366004610e5c565b6106b7565b6102bf61030c366004610e8f565b63f23a6e6160e01b95945050505050565b61021861032b366004610c47565b6106e2565b60006001600160e01b03198216630271189760e51b148061036157506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606003805461037690610ef4565b80601f01602080910402602001604051908101604052809291908181526020018280546103a290610ef4565b80156103ef5780601f106103c4576101008083540402835291602001916103ef565b820191906000526020600020905b8154815290600101906020018083116103d257829003601f168201915b5050505050905090565b600033610407818585610758565b5060019392505050565b60003361041f85828561087c565b61042a8585856108f6565b506001949350505050565b60003361040781858561044883836106b7565b6104529190610f44565b610758565b61045f610a9a565b6104696000610af4565b565b60018110156104c15760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e203100000060448201526064015b60405180910390fd5b600654600754604051637921219560e11b81526001600160a01b039092169163f242432a916104f891339130918790600401610f57565b600060405180830381600087803b15801561051257600080fd5b505af1158015610526573d6000803e3d6000fd5b50505050610548303383670de0b6b3a76400006105439190610f8f565b6108f6565b50565b60606004805461037690610ef4565b6000338161056882866106b7565b9050838110156105c85760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016104b8565b61042a8286868403610758565b6000336104078185856108f6565b60018110156106345760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e203100000060448201526064016104b8565b61064b333061054384670de0b6b3a7640000610f8f565b600654600754604051637921219560e11b81526001600160a01b039092169163f242432a9161068291309133918790600401610f57565b600060405180830381600087803b15801561069c57600080fd5b505af11580156106b0573d6000803e3d6000fd5b5050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6106ea610a9a565b6001600160a01b03811661074f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104b8565b61054881610af4565b6001600160a01b0383166107ba5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104b8565b6001600160a01b03821661081b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104b8565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061088884846106b7565b905060001981146108f057818110156108e35760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016104b8565b6108f08484848403610758565b50505050565b6001600160a01b03831661095a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104b8565b6001600160a01b0382166109bc5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104b8565b6001600160a01b03831660009081526020819052604090205481811015610a345760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016104b8565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36108f0565b6005546001600160a01b031633146104695760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104b8565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060208284031215610b5857600080fd5b81356001600160e01b031981168114610b7057600080fd5b9392505050565b600060208083528351808285015260005b81811015610ba457858101830151858201604001528201610b88565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610bdc57600080fd5b919050565b60008060408385031215610bf457600080fd5b610bfd83610bc5565b946020939093013593505050565b600080600060608486031215610c2057600080fd5b610c2984610bc5565b9250610c3760208501610bc5565b9150604084013590509250925092565b600060208284031215610c5957600080fd5b610b7082610bc5565b600060208284031215610c7457600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610cba57610cba610c7b565b604052919050565b600082601f830112610cd357600080fd5b8135602067ffffffffffffffff821115610cef57610cef610c7b565b8160051b610cfe828201610c91565b9283528481018201928281019087851115610d1857600080fd5b83870192505b84831015610d3757823582529183019190830190610d1e565b979650505050505050565b600082601f830112610d5357600080fd5b813567ffffffffffffffff811115610d6d57610d6d610c7b565b610d80601f8201601f1916602001610c91565b818152846020838601011115610d9557600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215610dca57600080fd5b610dd386610bc5565b9450610de160208701610bc5565b9350604086013567ffffffffffffffff80821115610dfe57600080fd5b610e0a89838a01610cc2565b94506060880135915080821115610e2057600080fd5b610e2c89838a01610cc2565b93506080880135915080821115610e4257600080fd5b50610e4f88828901610d42565b9150509295509295909350565b60008060408385031215610e6f57600080fd5b610e7883610bc5565b9150610e8660208401610bc5565b90509250929050565b600080600080600060a08688031215610ea757600080fd5b610eb086610bc5565b9450610ebe60208701610bc5565b93506040860135925060608601359150608086013567ffffffffffffffff811115610ee857600080fd5b610e4f88828901610d42565b600181811c90821680610f0857607f821691505b602082108103610f2857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561036157610361610f2e565b6001600160a01b0394851681529290931660208301526040820152606081019190915260a06080820181905260009082015260c00190565b808202811582820484141761036157610361610f2e56fea26469706673582212206ed75449b1c4689fb654c849323a3f0c74a97844b6021a9d8db56479ae2b4e6164736f6c6343000811003300000000000000000000000031b73666ca5874950e94babc0c5f93419facc82b0000000000000000000000000000000000000000000000000000000000000001
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101425760003560e01c80637a564970116100b8578063a9059cbb1161007c578063a9059cbb1461028d578063bc197c81146102a0578063bd8933ba146102d8578063dd62ed3e146102eb578063f23a6e61146102fe578063f2fde38b1461031d57600080fd5b80637a564970146102235780637e6a000a1461024e5780638da5cb5b1461026157806395d89b4114610272578063a457c2d71461027a57600080fd5b8063313ce5671161010a578063313ce567146101bc57806339509351146101cb578063637a6687146101de57806370a08231146101e7578063715018a6146102105780637824407f1461021a57600080fd5b806301ffc9a71461014757806306fdde031461016f578063095ea7b31461018457806318160ddd1461019757806323b872dd146101a9575b600080fd5b61015a610155366004610b46565b610330565b60405190151581526020015b60405180910390f35b610177610367565b6040516101669190610b77565b61015a610192366004610be1565b6103f9565b6002545b604051908152602001610166565b61015a6101b7366004610c0b565b610411565b60405160128152602001610166565b61015a6101d9366004610be1565b610435565b61019b60075481565b61019b6101f5366004610c47565b6001600160a01b031660009081526020819052604090205490565b610218610457565b005b61019b60085481565b600654610236906001600160a01b031681565b6040516001600160a01b039091168152602001610166565b61021861025c366004610c62565b61046b565b6005546001600160a01b0316610236565b61017761054b565b61015a610288366004610be1565b61055a565b61015a61029b366004610be1565b6105d5565b6102bf6102ae366004610db2565b63bc197c8160e01b95945050505050565b6040516001600160e01b03199091168152602001610166565b6102186102e6366004610c62565b6105e3565b61019b6102f9366004610e5c565b6106b7565b6102bf61030c366004610e8f565b63f23a6e6160e01b95945050505050565b61021861032b366004610c47565b6106e2565b60006001600160e01b03198216630271189760e51b148061036157506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606003805461037690610ef4565b80601f01602080910402602001604051908101604052809291908181526020018280546103a290610ef4565b80156103ef5780601f106103c4576101008083540402835291602001916103ef565b820191906000526020600020905b8154815290600101906020018083116103d257829003601f168201915b5050505050905090565b600033610407818585610758565b5060019392505050565b60003361041f85828561087c565b61042a8585856108f6565b506001949350505050565b60003361040781858561044883836106b7565b6104529190610f44565b610758565b61045f610a9a565b6104696000610af4565b565b60018110156104c15760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e203100000060448201526064015b60405180910390fd5b600654600754604051637921219560e11b81526001600160a01b039092169163f242432a916104f891339130918790600401610f57565b600060405180830381600087803b15801561051257600080fd5b505af1158015610526573d6000803e3d6000fd5b50505050610548303383670de0b6b3a76400006105439190610f8f565b6108f6565b50565b60606004805461037690610ef4565b6000338161056882866106b7565b9050838110156105c85760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016104b8565b61042a8286868403610758565b6000336104078185856108f6565b60018110156106345760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e203100000060448201526064016104b8565b61064b333061054384670de0b6b3a7640000610f8f565b600654600754604051637921219560e11b81526001600160a01b039092169163f242432a9161068291309133918790600401610f57565b600060405180830381600087803b15801561069c57600080fd5b505af11580156106b0573d6000803e3d6000fd5b5050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6106ea610a9a565b6001600160a01b03811661074f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104b8565b61054881610af4565b6001600160a01b0383166107ba5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104b8565b6001600160a01b03821661081b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104b8565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061088884846106b7565b905060001981146108f057818110156108e35760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016104b8565b6108f08484848403610758565b50505050565b6001600160a01b03831661095a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104b8565b6001600160a01b0382166109bc5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104b8565b6001600160a01b03831660009081526020819052604090205481811015610a345760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016104b8565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36108f0565b6005546001600160a01b031633146104695760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104b8565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060208284031215610b5857600080fd5b81356001600160e01b031981168114610b7057600080fd5b9392505050565b600060208083528351808285015260005b81811015610ba457858101830151858201604001528201610b88565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610bdc57600080fd5b919050565b60008060408385031215610bf457600080fd5b610bfd83610bc5565b946020939093013593505050565b600080600060608486031215610c2057600080fd5b610c2984610bc5565b9250610c3760208501610bc5565b9150604084013590509250925092565b600060208284031215610c5957600080fd5b610b7082610bc5565b600060208284031215610c7457600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610cba57610cba610c7b565b604052919050565b600082601f830112610cd357600080fd5b8135602067ffffffffffffffff821115610cef57610cef610c7b565b8160051b610cfe828201610c91565b9283528481018201928281019087851115610d1857600080fd5b83870192505b84831015610d3757823582529183019190830190610d1e565b979650505050505050565b600082601f830112610d5357600080fd5b813567ffffffffffffffff811115610d6d57610d6d610c7b565b610d80601f8201601f1916602001610c91565b818152846020838601011115610d9557600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215610dca57600080fd5b610dd386610bc5565b9450610de160208701610bc5565b9350604086013567ffffffffffffffff80821115610dfe57600080fd5b610e0a89838a01610cc2565b94506060880135915080821115610e2057600080fd5b610e2c89838a01610cc2565b93506080880135915080821115610e4257600080fd5b50610e4f88828901610d42565b9150509295509295909350565b60008060408385031215610e6f57600080fd5b610e7883610bc5565b9150610e8660208401610bc5565b90509250929050565b600080600080600060a08688031215610ea757600080fd5b610eb086610bc5565b9450610ebe60208701610bc5565b93506040860135925060608601359150608086013567ffffffffffffffff811115610ee857600080fd5b610e4f88828901610d42565b600181811c90821680610f0857607f821691505b602082108103610f2857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561036157610361610f2e565b6001600160a01b0394851681529290931660208301526040820152606081019190915260a06080820181905260009082015260c00190565b808202811582820484141761036157610361610f2e56fea26469706673582212206ed75449b1c4689fb654c849323a3f0c74a97844b6021a9d8db56479ae2b4e6164736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000031b73666ca5874950e94babc0c5f93419facc82b0000000000000000000000000000000000000000000000000000000000000001
-----Decoded View---------------
Arg [0] : _erc1155Contract (address): 0x31B73666cA5874950e94baBc0c5f93419faCc82b
Arg [1] : _tokenId (uint256): 1
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000031b73666ca5874950e94babc0c5f93419facc82b
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000001
Deployed Bytecode Sourcemap
30910:1022:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4886:223;;;;;;:::i;:::-;;:::i;:::-;;;470:14:1;;463:22;445:41;;433:2;418:18;4886:223:0;;;;;;;;19673:100;;;:::i;:::-;;;;;;;:::i;22024:201::-;;;;;;:::i;:::-;;:::i;20793:108::-;20881:12;;20793:108;;;1633:25:1;;;1621:2;1606:18;20793:108:0;1487:177:1;22805:295:0;;;;;;:::i;:::-;;:::i;20635:93::-;;;20718:2;2144:36:1;;2132:2;2117:18;20635:93:0;2002:184:1;23509:238:0;;;;;;:::i;:::-;;:::i;31001:29::-;;;;;;20964:127;;;;;;:::i;:::-;-1:-1:-1;;;;;21065:18:0;21038:7;21065:18;;;;;;;;;;;;20964:127;13098:103;;;:::i;:::-;;31037:39;;;;;;30963:31;;;;;-1:-1:-1;;;;;30963:31:0;;;;;;-1:-1:-1;;;;;2562:32:1;;;2544:51;;2532:2;2517:18;30963:31:0;2382:219:1;31339:296:0;;;;;;:::i;:::-;;:::i;12450:87::-;12523:6;;-1:-1:-1;;;;;12523:6:0;12450:87;;19892:104;;;:::i;24250:436::-;;;;;;:::i;:::-;;:::i;21297:193::-;;;;;;:::i;:::-;;:::i;5876:255::-;;;;;;:::i;:::-;-1:-1:-1;;;5876:255:0;;;;;;;;;;;-1:-1:-1;;;;;;5773:33:1;;;5755:52;;5743:2;5728:18;5876:255:0;5611:202:1;31643:286:0;;;;;;:::i;:::-;;:::i;21553:151::-;;;;;;:::i;:::-;;:::i;5641:227::-;;;;;;:::i;:::-;-1:-1:-1;;;5641:227:0;;;;;;;;13356:201;;;;;;:::i;:::-;;:::i;4886:223::-;4988:4;-1:-1:-1;;;;;;5012:49:0;;-1:-1:-1;;;5012:49:0;;:89;;-1:-1:-1;;;;;;;;;;1915:40:0;;;5065:36;5005:96;4886:223;-1:-1:-1;;4886:223:0:o;19673:100::-;19727:13;19760:5;19753:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19673:100;:::o;22024:201::-;22107:4;11081:10;22163:32;11081:10;22179:7;22188:6;22163:8;:32::i;:::-;-1:-1:-1;22213:4:0;;22024:201;-1:-1:-1;;;22024:201:0:o;22805:295::-;22936:4;11081:10;22994:38;23010:4;11081:10;23025:6;22994:15;:38::i;:::-;23043:27;23053:4;23059:2;23063:6;23043:9;:27::i;:::-;-1:-1:-1;23088:4:0;;22805:295;-1:-1:-1;;;;22805:295:0:o;23509:238::-;23597:4;11081:10;23653:64;11081:10;23669:7;23706:10;23678:25;11081:10;23669:7;23678:9;:25::i;:::-;:38;;;;:::i;:::-;23653:8;:64::i;13098:103::-;12336:13;:11;:13::i;:::-;13163:30:::1;13190:1;13163:18;:30::i;:::-;13098:103::o:0;31339:296::-;31412:1;31402:6;:11;;31394:53;;;;-1:-1:-1;;;31394:53:0;;7543:2:1;31394:53:0;;;7525:21:1;7582:2;7562:18;;;7555:30;7621:31;7601:18;;;7594:59;7670:18;;31394:53:0;;;;;;;;;31468:15;;31528:14;;31468:87;;-1:-1:-1;;;31468:87:0;;-1:-1:-1;;;;;31468:15:0;;;;:32;;:87;;31501:10;;31521:4;;31544:6;;31468:87;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31568:57;31586:4;31593:10;31605:6;31615:8;31605:19;;;;:::i;:::-;31568:9;:57::i;:::-;31339:296;:::o;19892:104::-;19948:13;19981:7;19974:14;;;;;:::i;24250:436::-;24343:4;11081:10;24343:4;24426:25;11081:10;24443:7;24426:9;:25::i;:::-;24399:52;;24490:15;24470:16;:35;;24462:85;;;;-1:-1:-1;;;24462:85:0;;8706:2:1;24462:85:0;;;8688:21:1;8745:2;8725:18;;;8718:30;8784:34;8764:18;;;8757:62;-1:-1:-1;;;8835:18:1;;;8828:35;8880:19;;24462:85:0;8504:401:1;24462:85:0;24583:60;24592:5;24599:7;24627:15;24608:16;:34;24583:8;:60::i;21297:193::-;21376:4;11081:10;21432:28;11081:10;21449:2;21453:6;21432:9;:28::i;31643:286::-;31714:1;31704:6;:11;;31696:53;;;;-1:-1:-1;;;31696:53:0;;7543:2:1;31696:53:0;;;7525:21:1;7582:2;7562:18;;;7555:30;7621:31;7601:18;;;7594:59;7670:18;;31696:53:0;7341:353:1;31696:53:0;31762:57;31772:10;31792:4;31799:19;:6;31809:8;31799:19;:::i;31762:57::-;31832:15;;31892:14;;31832:87;;-1:-1:-1;;;31832:87:0;;-1:-1:-1;;;;;31832:15:0;;;;:32;;:87;;31873:4;;31880:10;;31908:6;;31832:87;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31643:286;:::o;21553:151::-;-1:-1:-1;;;;;21669:18:0;;;21642:7;21669:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;21553:151::o;13356:201::-;12336:13;:11;:13::i;:::-;-1:-1:-1;;;;;13445:22:0;::::1;13437:73;;;::::0;-1:-1:-1;;;13437:73:0;;9112:2:1;13437:73:0::1;::::0;::::1;9094:21:1::0;9151:2;9131:18;;;9124:30;9190:34;9170:18;;;9163:62;-1:-1:-1;;;9241:18:1;;;9234:36;9287:19;;13437:73:0::1;8910:402:1::0;13437:73:0::1;13521:28;13540:8;13521:18;:28::i;28277:380::-:0;-1:-1:-1;;;;;28413:19:0;;28405:68;;;;-1:-1:-1;;;28405:68:0;;9519:2:1;28405:68:0;;;9501:21:1;9558:2;9538:18;;;9531:30;9597:34;9577:18;;;9570:62;-1:-1:-1;;;9648:18:1;;;9641:34;9692:19;;28405:68:0;9317:400:1;28405:68:0;-1:-1:-1;;;;;28492:21:0;;28484:68;;;;-1:-1:-1;;;28484:68:0;;9924:2:1;28484:68:0;;;9906:21:1;9963:2;9943:18;;;9936:30;10002:34;9982:18;;;9975:62;-1:-1:-1;;;10053:18:1;;;10046:32;10095:19;;28484:68:0;9722:398:1;28484:68:0;-1:-1:-1;;;;;28565:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;28617:32;;1633:25:1;;;28617:32:0;;1606:18:1;28617:32:0;;;;;;;28277:380;;;:::o;28948:453::-;29083:24;29110:25;29120:5;29127:7;29110:9;:25::i;:::-;29083:52;;-1:-1:-1;;29150:16:0;:37;29146:248;;29232:6;29212:16;:26;;29204:68;;;;-1:-1:-1;;;29204:68:0;;10327:2:1;29204:68:0;;;10309:21:1;10366:2;10346:18;;;10339:30;10405:31;10385:18;;;10378:59;10454:18;;29204:68:0;10125:353:1;29204:68:0;29316:51;29325:5;29332:7;29360:6;29341:16;:25;29316:8;:51::i;:::-;29072:329;28948:453;;;:::o;25156:840::-;-1:-1:-1;;;;;25287:18:0;;25279:68;;;;-1:-1:-1;;;25279:68:0;;10685:2:1;25279:68:0;;;10667:21:1;10724:2;10704:18;;;10697:30;10763:34;10743:18;;;10736:62;-1:-1:-1;;;10814:18:1;;;10807:35;10859:19;;25279:68:0;10483:401:1;25279:68:0;-1:-1:-1;;;;;25366:16:0;;25358:64;;;;-1:-1:-1;;;25358:64:0;;11091:2:1;25358:64:0;;;11073:21:1;11130:2;11110:18;;;11103:30;11169:34;11149:18;;;11142:62;-1:-1:-1;;;11220:18:1;;;11213:33;11263:19;;25358:64:0;10889:399:1;25358:64:0;-1:-1:-1;;;;;25508:15:0;;25486:19;25508:15;;;;;;;;;;;25542:21;;;;25534:72;;;;-1:-1:-1;;;25534:72:0;;11495:2:1;25534:72:0;;;11477:21:1;11534:2;11514:18;;;11507:30;11573:34;11553:18;;;11546:62;-1:-1:-1;;;11624:18:1;;;11617:36;11670:19;;25534:72:0;11293:402:1;25534:72:0;-1:-1:-1;;;;;25642:15:0;;;:9;:15;;;;;;;;;;;25660:20;;;25642:38;;25860:13;;;;;;;;;;:23;;;;;;25912:26;;1633:25:1;;;25860:13:0;;25912:26;;1606:18:1;25912:26:0;;;;;;;25951:37;30001:125;12615:132;12523:6;;-1:-1:-1;;;;;12523:6:0;11081:10;12679:23;12671:68;;;;-1:-1:-1;;;12671:68:0;;11902:2:1;12671:68:0;;;11884:21:1;;;11921:18;;;11914:30;11980:34;11960:18;;;11953:62;12032:18;;12671:68:0;11700:356:1;13717:191:0;13810:6;;;-1:-1:-1;;;;;13827:17:0;;;-1:-1:-1;;;;;;13827:17:0;;;;;;;13860:40;;13810:6;;;13827:17;13810:6;;13860:40;;13791:16;;13860:40;13780:128;13717:191;:::o;14:286:1:-;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;167:23;;-1:-1:-1;;;;;;219:32:1;;209:43;;199:71;;266:1;263;256:12;199:71;289:5;14:286;-1:-1:-1;;;14:286:1:o;497:548::-;609:4;638:2;667;656:9;649:21;699:6;693:13;742:6;737:2;726:9;722:18;715:34;767:1;777:140;791:6;788:1;785:13;777:140;;;886:14;;;882:23;;876:30;852:17;;;871:2;848:26;841:66;806:10;;777:140;;;781:3;966:1;961:2;952:6;941:9;937:22;933:31;926:42;1036:2;1029;1025:7;1020:2;1012:6;1008:15;1004:29;993:9;989:45;985:54;977:62;;;;497:548;;;;:::o;1050:173::-;1118:20;;-1:-1:-1;;;;;1167:31:1;;1157:42;;1147:70;;1213:1;1210;1203:12;1147:70;1050:173;;;:::o;1228:254::-;1296:6;1304;1357:2;1345:9;1336:7;1332:23;1328:32;1325:52;;;1373:1;1370;1363:12;1325:52;1396:29;1415:9;1396:29;:::i;:::-;1386:39;1472:2;1457:18;;;;1444:32;;-1:-1:-1;;;1228:254:1:o;1669:328::-;1746:6;1754;1762;1815:2;1803:9;1794:7;1790:23;1786:32;1783:52;;;1831:1;1828;1821:12;1783:52;1854:29;1873:9;1854:29;:::i;:::-;1844:39;;1902:38;1936:2;1925:9;1921:18;1902:38;:::i;:::-;1892:48;;1987:2;1976:9;1972:18;1959:32;1949:42;;1669:328;;;;;:::o;2191:186::-;2250:6;2303:2;2291:9;2282:7;2278:23;2274:32;2271:52;;;2319:1;2316;2309:12;2271:52;2342:29;2361:9;2342:29;:::i;2606:180::-;2665:6;2718:2;2706:9;2697:7;2693:23;2689:32;2686:52;;;2734:1;2731;2724:12;2686:52;-1:-1:-1;2757:23:1;;2606:180;-1:-1:-1;2606:180:1:o;2999:127::-;3060:10;3055:3;3051:20;3048:1;3041:31;3091:4;3088:1;3081:15;3115:4;3112:1;3105:15;3131:275;3202:2;3196:9;3267:2;3248:13;;-1:-1:-1;;3244:27:1;3232:40;;3302:18;3287:34;;3323:22;;;3284:62;3281:88;;;3349:18;;:::i;:::-;3385:2;3378:22;3131:275;;-1:-1:-1;3131:275:1:o;3411:712::-;3465:5;3518:3;3511:4;3503:6;3499:17;3495:27;3485:55;;3536:1;3533;3526:12;3485:55;3572:6;3559:20;3598:4;3621:18;3617:2;3614:26;3611:52;;;3643:18;;:::i;:::-;3689:2;3686:1;3682:10;3712:28;3736:2;3732;3728:11;3712:28;:::i;:::-;3774:15;;;3844;;;3840:24;;;3805:12;;;;3876:15;;;3873:35;;;3904:1;3901;3894:12;3873:35;3940:2;3932:6;3928:15;3917:26;;3952:142;3968:6;3963:3;3960:15;3952:142;;;4034:17;;4022:30;;3985:12;;;;4072;;;;3952:142;;;4112:5;3411:712;-1:-1:-1;;;;;;;3411:712:1:o;4128:530::-;4170:5;4223:3;4216:4;4208:6;4204:17;4200:27;4190:55;;4241:1;4238;4231:12;4190:55;4277:6;4264:20;4303:18;4299:2;4296:26;4293:52;;;4325:18;;:::i;:::-;4369:55;4412:2;4393:13;;-1:-1:-1;;4389:27:1;4418:4;4385:38;4369:55;:::i;:::-;4449:2;4440:7;4433:19;4495:3;4488:4;4483:2;4475:6;4471:15;4467:26;4464:35;4461:55;;;4512:1;4509;4502:12;4461:55;4577:2;4570:4;4562:6;4558:17;4551:4;4542:7;4538:18;4525:55;4625:1;4600:16;;;4618:4;4596:27;4589:38;;;;4604:7;4128:530;-1:-1:-1;;;4128:530:1:o;4663:943::-;4817:6;4825;4833;4841;4849;4902:3;4890:9;4881:7;4877:23;4873:33;4870:53;;;4919:1;4916;4909:12;4870:53;4942:29;4961:9;4942:29;:::i;:::-;4932:39;;4990:38;5024:2;5013:9;5009:18;4990:38;:::i;:::-;4980:48;;5079:2;5068:9;5064:18;5051:32;5102:18;5143:2;5135:6;5132:14;5129:34;;;5159:1;5156;5149:12;5129:34;5182:61;5235:7;5226:6;5215:9;5211:22;5182:61;:::i;:::-;5172:71;;5296:2;5285:9;5281:18;5268:32;5252:48;;5325:2;5315:8;5312:16;5309:36;;;5341:1;5338;5331:12;5309:36;5364:63;5419:7;5408:8;5397:9;5393:24;5364:63;:::i;:::-;5354:73;;5480:3;5469:9;5465:19;5452:33;5436:49;;5510:2;5500:8;5497:16;5494:36;;;5526:1;5523;5516:12;5494:36;;5549:51;5592:7;5581:8;5570:9;5566:24;5549:51;:::i;:::-;5539:61;;;4663:943;;;;;;;;:::o;5818:260::-;5886:6;5894;5947:2;5935:9;5926:7;5922:23;5918:32;5915:52;;;5963:1;5960;5953:12;5915:52;5986:29;6005:9;5986:29;:::i;:::-;5976:39;;6034:38;6068:2;6057:9;6053:18;6034:38;:::i;:::-;6024:48;;5818:260;;;;;:::o;6083:606::-;6187:6;6195;6203;6211;6219;6272:3;6260:9;6251:7;6247:23;6243:33;6240:53;;;6289:1;6286;6279:12;6240:53;6312:29;6331:9;6312:29;:::i;:::-;6302:39;;6360:38;6394:2;6383:9;6379:18;6360:38;:::i;:::-;6350:48;;6445:2;6434:9;6430:18;6417:32;6407:42;;6496:2;6485:9;6481:18;6468:32;6458:42;;6551:3;6540:9;6536:19;6523:33;6579:18;6571:6;6568:30;6565:50;;;6611:1;6608;6601:12;6565:50;6634:49;6675:7;6666:6;6655:9;6651:22;6634:49;:::i;6694:380::-;6773:1;6769:12;;;;6816;;;6837:61;;6891:4;6883:6;6879:17;6869:27;;6837:61;6944:2;6936:6;6933:14;6913:18;6910:38;6907:161;;6990:10;6985:3;6981:20;6978:1;6971:31;7025:4;7022:1;7015:15;7053:4;7050:1;7043:15;6907:161;;6694:380;;;:::o;7079:127::-;7140:10;7135:3;7131:20;7128:1;7121:31;7171:4;7168:1;7161:15;7195:4;7192:1;7185:15;7211:125;7276:9;;;7297:10;;;7294:36;;;7310:18;;:::i;7699:627::-;-1:-1:-1;;;;;8050:15:1;;;8032:34;;8102:15;;;;8097:2;8082:18;;8075:43;8149:2;8134:18;;8127:34;8192:2;8177:18;;8170:34;;;;8012:3;8235;8220:19;;8213:32;;;7975:4;8261:19;;;8254:30;8316:3;8301:19;;7699:627::o;8331:168::-;8404:9;;;8435;;8452:15;;;8446:22;;8432:37;8422:71;;8473:18;;:::i
Swarm Source
ipfs://6ed75449b1c4689fb654c849323a3f0c74a97844b6021a9d8db56479ae2b4e61
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.