Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 539 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 539 Bytes

solana-anchor-go

Generate go bindings for Anchor IDLs.

Usage

$ go build
$ ./solana-anchor-go -src=./example/dummy_idl.json -pkg=dummy -dst=./generated/dummy

Generated Code will be generated and saved to ./generated/. And check ./example/dummy_test.go for generated code usage.

TODO

  • instructions
  • accounts
  • types
  • events
  • errors
  • handle all possible seed inputs ([32]u8, const, PublicKey handled as single nested input fields)
  • handle tuple types
  • constants (?)