Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/viandwi24/anchor-idl-converter

Converter for Anchor IDL, convert your IDL from anchor new version to old version
https://github.com/viandwi24/anchor-idl-converter

Last synced: about 1 month ago
JSON representation

Converter for Anchor IDL, convert your IDL from anchor new version to old version

Awesome Lists containing this project

README

        

# anchor-idl-converter
Converter for Anchor IDL, convert your IDL from anchor new version to old version.

This is a simple tool i made to convert new Anchor IDL (anchor v0.30.0+) to old Anchor IDL (anchor v0.29.0-). Im using this tool because some another tools like SolanaFM Local IDL until now still not support the new Anchor IDL.

> [!WARNING]
> This tools is only hacky solution, and may not work for all cases.

## How to use
```bash
# use with bun
bunx anchor-idl-converter@latest to-old -i contract-idl.json -o converted-idl.json
# or with npm
npx anchor-idl-converter@latest to-old -i contract-idl.json -o converted-idl.json
# or install it globally
npm install -g anchor-idl-converter
anchor-idl-converter to-old -i contract-idl.json -o converted-idl.json
```