Request form
Cookbook may introduce a token in the future. Share and contribute to be eligible for future airdrops.
close icon
relevant tag icon
only
copy icon
jimchen
• version 1.0.0
...
Deployable
Audited

only

Audited

...

*Visit desktop site to download or deploy

Version

1.0.0

Creator

jimchen

Last Publish

2/10/2023
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
balanceOf(address,uint256) :
See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address.
balanceOfBatch(address[],uint256[]) :
See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length.
exists(uint256) :
Indicates whether any token exist with a given id, or not.
isApprovedForAll(address,address) :
See {IERC1155-isApprovedForAll}.
mint(address,uint256,uint256,bytes) :
A method for the owner to mint new ERC1155 tokens. - account: The account for new tokens to be sent to. - amount: The number of this token type to be minted. - data: additional data that will be used within the receiver's onERC1155Received method - id: The id of token type.
mintBatch(address,uint256[],uint256[],bytes) :
A method for the owner to mint a batch of new ERC1155 tokens. - amounts: The number of each token type to be minted. - data: additional data that will be used within the receivers' onERC1155Received method - ids: The ids of the different token types. - to: The account for new tokens to be sent to.
owner() :
Returns the address of the current owner.
renounceOwnership() :
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.
safeBatchTransferFrom(address,address,uint256[],uint256[],bytes) :
See {IERC1155-safeBatchTransferFrom}.
safeTransferFrom(address,address,uint256,uint256,bytes) :
See {IERC1155-safeTransferFrom}.
setApprovalForAll(address,bool) :
See {IERC1155-setApprovalForAll}.
setURI(string) :
Updates the base URI that will be used to retrieve metadata. - newuri: The base URI to be used.
supportsInterface(bytes4) :
See {IERC165-supportsInterface}.
totalSupply(uint256) :
Total amount of tokens in with a given id.
transferOwnership(address) :
Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.
uri(uint256) :
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.

Get Cookin'
share iconShare

copy iconNo-Code Deploy
copy iconDownload Source
copy iconnpx cookbookdev i only
copy icon

Bytecode

Download

Verification

Download

Last Publish

2/10/2023

Solidity Compiler

v0.8.17+commit.8df45f5f

Version

1.0.0

Creator

jimchen

Cookbook is free.
Any contract you deploy is yours.
Your contract is owned and controlled by you.