Crates.io | simple-anchor-idl-ts |
lib.rs | simple-anchor-idl-ts |
version | 0.1.2 |
source | src |
created_at | 2024-01-03 12:04:36.89602 |
updated_at | 2024-06-23 22:19:30.765723 |
description | A tool for generating a typescript file from an Anchor IDL json file. |
homepage | |
repository | https://github.com/nicholas-ewasiuk/simple-anchor-idl-ts |
max_upload_size | |
id | 1087322 |
size | 17,573 |
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.