program

package
v0.0.0-...-fc5df57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IdlProgramAccountDiscriminator = [8]byte{24, 70, 98, 191, 58, 144, 123, 158}

Functions

func FetchIDL

func FetchIDL(ctx context.Context, rpc *rpc.Client, address solana.PublicKey) ([]byte, error)

func IDLAddress

func IDLAddress(programId solana.PublicKey) (solana.PublicKey, error)

IDLAddress Deterministic IDL address as a function of the program id.

Types

type IdlProgramAccount

type IdlProgramAccount struct {
	Authority solana.PublicKey `json:"authority"`
	Data      []byte           `json:"data"`
}

func (IdlProgramAccount) MarshalWithEncoder

func (obj IdlProgramAccount) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*IdlProgramAccount) UnmarshalWithDecoder

func (obj *IdlProgramAccount) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL