Skip to content

wentokay/native-to-anchor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Native Solana To Anchor IDL

Autogenerate Anchor IDL from programs written in Native Solana.

Disclaimer

The instructions must follow strict set of rules in order for the autogeneration to work.

For example: InitializeAccount instruction requires initialize_account function. The program will panic in the case of a mismatch. This is especially the case with Serum and Mango.

How to generate?

  1. Clone the repo:
git clone https://github.com/acheroncrypto/native-to-anchor.git
cd native-to-anchor
  1. Put instructions file inside instructions/ directory.
  2. Run the program.
cargo run
  • Anchor dummy programs will be generated in anchor/.
  • IDLs will be generated in idl/.

License

Licensed under MIT.

About

Generate Anchor IDL for Native Solana Programs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%