# README
anchor-go
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.
Test
Build and generate code, then run test.
$ make dummy
$ make restaking
TODO
- instructions
- accounts
- types
- events
- errors
- handle tuple types
- constants (?)
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SaveGoFile encodes to a file the provided *jen.File.
No description provided by the author
No description provided by the author
# Constants
github.com/gagliardetto/binary: NewBinEncoder, NewBinDecoder.
github.com/gagliardetto/binary: NewBorshEncoder, NewBorshDecoder.
https://docs.solana.com/developing/programming-model/transactions#compact-array-format.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Custom additions:.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
https://github.com/project-serum/anchor/blob/97e9e03fb041b8b888a9876a7c0676d9bb4736f3/ts/src/idl.ts.
No description provided by the author
IdlAccountItem is of type IdlAccountItem = IdlAccount | IdlAccounts;.
IdlAccounts is a nested/recursive version of IdlAccount.
TODO: write generator.
TODO type IdlEnumFields = IdlEnumFieldsNamed | IdlEnumFieldsTuple;.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IdlType is a Wrapper type:.
IdlTypeArray is a Wrapper type:.
No description provided by the author
User defined type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author