common

package
v0.0.0-...-fac452d Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func As

func As(pubkey PublicKey) solana.PublicKey

func FormatMeta

func FormatMeta(name string, meta *AccountMeta) string

func IsZero

func IsZero(pubkey PublicKey) bool

func Meta

func Meta(
	pubKey PublicKey,
) *web3.AccountMeta

Types

type AccountMeta

type AccountMeta = web3.AccountMeta

func ConvertMeta

func ConvertMeta(input []*solana.AccountMeta) []*AccountMeta

func NewAccountMeta

func NewAccountMeta(
	pubKey PublicKey,
	WRITE bool,
	SIGNER bool,
) *AccountMeta

type AccountMetaSlice

type AccountMetaSlice []*web3.AccountMeta

func (*AccountMetaSlice) Append

func (slice *AccountMetaSlice) Append(account *AccountMeta)

func (AccountMetaSlice) Get

func (slice AccountMetaSlice) Get(index int) *AccountMeta

func (AccountMetaSlice) GetAccounts

func (slice AccountMetaSlice) GetAccounts() []*AccountMeta

func (*AccountMetaSlice) SetAccounts

func (slice *AccountMetaSlice) SetAccounts(accounts []*AccountMeta) error

type AccountsGettable

type AccountsGettable interface {
	GetAccounts() (accounts []*AccountMeta)
}

type AccountsSettable

type AccountsSettable interface {
	SetAccounts(accounts []*AccountMeta) error
}

type PublicKey

type PublicKey = web3.PublicKey

func MustPublicKeyFromBase58

func MustPublicKeyFromBase58(input string) PublicKey

Jump to

Keyboard shortcuts

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