Documentation
¶
Index ¶
- Constants
- func AdvanceNonceAccount(noncePubkey, authPubkey common.PublicKey) types.Instruction
- func Allocate(accountPubkey common.PublicKey, space uint64) types.Instruction
- func AllocateWithSeed(accountPubkey, basePubkey, programID common.PublicKey, seed string, ...) types.Instruction
- func Assign(accountPubkey, assignToProgramID common.PublicKey) types.Instruction
- func AssignWithSeed(accountPubkey, assignToProgramID, basePubkey common.PublicKey, seed string) types.Instruction
- func AuthorizeNonceAccount(noncePubkey, oriAuthPubkey, newAuthPubkey common.PublicKey) types.Instruction
- func CreateAccount(fromAccount, newAccount, owner common.PublicKey, ...) types.Instruction
- func CreateAccountWithSeed(fromPubkey, newAccountPubkey, basePubkey, programID common.PublicKey, ...) types.Instruction
- func InitializeNonceAccount(noncePubkey, authPubkey common.PublicKey) types.Instruction
- func Transfer(from, to common.PublicKey, lamports uint64) types.Instruction
- func TransferWithSeed(from, to, base, programID common.PublicKey, seed string, lamports uint64) types.Instruction
- func WithdrawNonceAccount(noncePubkey, authPubkey, toPubkey common.PublicKey, lamports uint64) types.Instruction
- type FeeCalculator
- type Instruction
- type NonceAccount
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 AllocateWithSeed ¶
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 InitializeNonceAccount ¶
func InitializeNonceAccount(noncePubkey, authPubkey common.PublicKey) types.Instruction
func TransferWithSeed ¶
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)
Click to show internal directories.
Click to hide internal directories.