Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/viandwi24/anchor-idl-converter
- Owner: viandwi24
- Created: 2024-09-06T22:24:15.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-06T23:01:37.000Z (2 months ago)
- Last Synced: 2024-10-07T03:17:35.016Z (about 1 month ago)
- Language: TypeScript
- Size: 11.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```