sysprog

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const FeeCalculatorSize = 8
View Source
const NonceAccountSize = 80

Variables

This section is empty.

Functions

func AdvanceNonceAccount

func AdvanceNonceAccount(noncePubkey, authPubkey common.PublicKey) types.Instruction

func Allocate

func Allocate(accountPubkey common.PublicKey, space uint64) types.Instruction

func AllocateWithSeed

func AllocateWithSeed(accountPubkey, basePubkey, programID common.PublicKey, seed string, space uint64) types.Instruction

func Assign

func Assign(accountPubkey, assignToProgramID common.PublicKey) types.Instruction

func AssignWithSeed

func AssignWithSeed(accountPubkey, assignToProgramID, basePubkey common.PublicKey, seed string) types.Instruction

func AuthorizeNonceAccount

func AuthorizeNonceAccount(noncePubkey, oriAuthPubkey, newAuthPubkey common.PublicKey) types.Instruction

func CreateAccount

func CreateAccount(fromAccount, newAccount, owner common.PublicKey, initLamports, accountSpace uint64) types.Instruction

func CreateAccountWithSeed

func CreateAccountWithSeed(fromPubkey, newAccountPubkey, basePubkey, programID common.PublicKey, seed string, lamports, space uint64) types.Instruction

func InitializeNonceAccount

func InitializeNonceAccount(noncePubkey, authPubkey common.PublicKey) types.Instruction

func Transfer

func Transfer(from, to common.PublicKey, lamports uint64) types.Instruction

func TransferWithSeed

func TransferWithSeed(from, to, base, programID common.PublicKey, seed string, lamports uint64) types.Instruction

func WithdrawNonceAccount

func WithdrawNonceAccount(noncePubkey, authPubkey, toPubkey common.PublicKey, lamports uint64) types.Instruction

Types

type FeeCalculator

type FeeCalculator struct {
	LamportsPerSignature uint64
}

func FeeCalculatorDeserialize

func FeeCalculatorDeserialize(data []byte) (FeeCalculator, error)

type Instruction

type Instruction uint32
const (
	InstructionCreateAccount Instruction = iota
	InstructionAssign
	InstructionTransfer
	InstructionCreateAccountWithSeed
	InstructionAdvanceNonceAccount
	InstructionWithdrawNonceAccount
	InstructionInitializeNonceAccount
	InstructionAuthorizeNonceAccount
	InstructionAllocate
	InstructionAllocateWithSeed
	InstructionAssignWithSeed
	InstructionTransferWithSeed
)

type NonceAccount

type NonceAccount struct {
	Version          uint32
	State            uint32
	AuthorizedPubkey common.PublicKey
	Nonce            common.PublicKey
	FeeCalculator    FeeCalculator
}

func NonceAccountDeserialize

func NonceAccountDeserialize(data []byte) (NonceAccount, error)

Jump to

Keyboard shortcuts

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