simple-anchor-idl-ts

Crates.iosimple-anchor-idl-ts
lib.rssimple-anchor-idl-ts
version0.1.2
sourcesrc
created_at2024-01-03 12:04:36.89602
updated_at2024-06-23 22:19:30.765723
descriptionA tool for generating a typescript file from an Anchor IDL json file.
homepage
repositoryhttps://github.com/nicholas-ewasiuk/simple-anchor-idl-ts
max_upload_size
id1087322
size17,573
Nick (nicholas-ewasiuk)

documentation

README

simple-anchor-idl-ts

A tool for generating a TS file from a lone Anchor IDL JSON file.

Creates a type and an object for the IDL. Lower camel cases the account names.

Usually this TS file is generated when building an Anchor repo. https://github.com/coral-xyz/anchor/blob/master/cli/src/rust_template.rs#L222

Sometimes you just have another project's JSON file and want a TS file for your client.

Commit count: 7

cargo fmt