@ethernauta/abi
v0.0.40
Published
[](https://deno.bundlejs.com/badge?q=@ethernauta/[email protected]&treeshake=[*])
Downloads
17
Readme
Philosophy
This module aims to be an un-opinionated representation of the defined:
Modules
Table of contents
API
Generate ABI functions programmatically
This
import {
DescriptionSchema,
generate,
} from "@ethernauta/abi"
const descriptions = parse(
array(DescriptionSchema),
ERC721_ABI,
)
const functions = descriptions.filter((description) => {
return description.type === "function"
})
const OUT = "app"
generate(functions, OUT) // methods will be generated at "app/methods"Generate ABI functions with CLI
npx ethernauta generate --abi abis/IERC20.abi.json --out app