Skip to content

base/loader-v3-go-bindings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Loader v3 Go Bindings

Go bindings for Solana's BPF Loader v3 program.

Installation

go get github.com/base/loader-v3-go-bindings/bindings

Usage

import "github.com/base/loader-v3-go-bindings/bindings"

// Example: Create an initialize buffer instruction
instruction, err := bindings.NewInitializeBufferInstruction(
    sourceAccount,
    bufferAuthority,
)

Generating Bindings

The bindings are generated from the IDL using the anchor-go tool.

IDL Source

The IDL (loader-v3.json) is sourced from the solana-program/loader-v3 repository and converted to be parsable by anchor-go using:

anchor convert idl <path-to-original-idl> loader-v3.json

Regenerating Bindings

To regenerate the bindings after updating the IDL:

bash scripts/generate-bindings.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages