Extensions
Extensions let interact with common standards (such as ERC20, ERC721, ERC1155, etc.) in a more convenient way. You can use the built-in extensions or create your own.
Built-in extensions
Using extensions
To use an extension, you just need to import it and call it with the necessary parameters.
Example: balanceOf()
extension for ERC20 tokens
Example: transfer()
extension for ERC20 tokens
Creating your own extensions
You can create your own extensions. They are just regular functions that pre-define the behavior of a prepareContractCall()
or readContract()
function.