pbsol

package
v0.0.0-...-7eb44fb Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_sf_solana_type_v2_type_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AccountChange

type AccountChange struct {
	Pubkey        []byte `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	PrevData      []byte `protobuf:"bytes,2,opt,name=prev_data,json=prevData,proto3" json:"prev_data,omitempty"`
	NewData       []byte `protobuf:"bytes,3,opt,name=new_data,json=newData,proto3" json:"new_data,omitempty"`
	NewDataLength uint64 `protobuf:"varint,4,opt,name=new_data_length,json=newDataLength,proto3" json:"new_data_length,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountChange) Descriptor deprecated

func (*AccountChange) Descriptor() ([]byte, []int)

Deprecated: Use AccountChange.ProtoReflect.Descriptor instead.

func (*AccountChange) GetNewData

func (x *AccountChange) GetNewData() []byte

func (*AccountChange) GetNewDataLength

func (x *AccountChange) GetNewDataLength() uint64

func (*AccountChange) GetPrevData

func (x *AccountChange) GetPrevData() []byte

func (*AccountChange) GetPubkey

func (x *AccountChange) GetPubkey() []byte

func (*AccountChange) ProtoMessage

func (*AccountChange) ProtoMessage()

func (*AccountChange) ProtoReflect

func (x *AccountChange) ProtoReflect() protoreflect.Message

func (*AccountChange) Reset

func (x *AccountChange) Reset()

func (*AccountChange) String

func (x *AccountChange) String() string

type BalanceChange

type BalanceChange struct {
	Pubkey       []byte `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	PrevLamports uint64 `protobuf:"varint,2,opt,name=prev_lamports,json=prevLamports,proto3" json:"prev_lamports,omitempty"`
	NewLamports  uint64 `protobuf:"varint,3,opt,name=new_lamports,json=newLamports,proto3" json:"new_lamports,omitempty"`
	// contains filtered or unexported fields
}

func (*BalanceChange) Descriptor deprecated

func (*BalanceChange) Descriptor() ([]byte, []int)

Deprecated: Use BalanceChange.ProtoReflect.Descriptor instead.

func (*BalanceChange) GetNewLamports

func (x *BalanceChange) GetNewLamports() uint64

func (*BalanceChange) GetPrevLamports

func (x *BalanceChange) GetPrevLamports() uint64

func (*BalanceChange) GetPubkey

func (x *BalanceChange) GetPubkey() []byte

func (*BalanceChange) ProtoMessage

func (*BalanceChange) ProtoMessage()

func (*BalanceChange) ProtoReflect

func (x *BalanceChange) ProtoReflect() protoreflect.Message

func (*BalanceChange) Reset

func (x *BalanceChange) Reset()

func (*BalanceChange) String

func (x *BalanceChange) String() string

type Batch

type Batch struct {
	Transactions []*Transaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"`
	// contains filtered or unexported fields
}

func (*Batch) Descriptor deprecated

func (*Batch) Descriptor() ([]byte, []int)

Deprecated: Use Batch.ProtoReflect.Descriptor instead.

func (*Batch) GetTransactions

func (x *Batch) GetTransactions() []*Transaction

func (*Batch) ProtoMessage

func (*Batch) ProtoMessage()

func (*Batch) ProtoReflect

func (x *Batch) ProtoReflect() protoreflect.Message

func (*Batch) Reset

func (x *Batch) Reset()

func (*Batch) String

func (x *Batch) String() string

type Block

type Block struct {
	Id                     []byte         `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`          // corresponds to the Slot id (or hash)
	Number                 uint64         `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` // corresponds to the Slot number for this block
	Version                uint32         `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
	PreviousId             []byte         `protobuf:"bytes,4,opt,name=previous_id,json=previousId,proto3" json:"previous_id,omitempty"` // corresponds to the previous_blockhash, might skip some slots, so beware
	PreviousBlock          uint64         `protobuf:"varint,5,opt,name=previous_block,json=previousBlock,proto3" json:"previous_block,omitempty"`
	GenesisUnixTimestamp   uint64         `protobuf:"varint,6,opt,name=genesis_unix_timestamp,json=genesisUnixTimestamp,proto3" json:"genesis_unix_timestamp,omitempty"`
	ClockUnixTimestamp     uint64         `protobuf:"varint,7,opt,name=clock_unix_timestamp,json=clockUnixTimestamp,proto3" json:"clock_unix_timestamp,omitempty"`
	LastEntryHash          []byte         `protobuf:"bytes,8,opt,name=last_entry_hash,json=lastEntryHash,proto3" json:"last_entry_hash,omitempty"`
	Transactions           []*Transaction `protobuf:"bytes,9,rep,name=transactions,proto3" json:"transactions,omitempty"`
	TransactionCount       uint32         `protobuf:"varint,10,opt,name=transaction_count,json=transactionCount,proto3" json:"transaction_count,omitempty"`
	HasSplitAccountChanges bool           `` /* 133-byte string literal not displayed */
	AccountChangesFileRef  string         `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Block) AsRef

func (b *Block) AsRef() bstream.BlockRef

func (*Block) Descriptor deprecated

func (*Block) Descriptor() ([]byte, []int)

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetAccountChangesFileRef

func (x *Block) GetAccountChangesFileRef() string

func (*Block) GetClockUnixTimestamp

func (x *Block) GetClockUnixTimestamp() uint64

func (*Block) GetGenesisUnixTimestamp

func (x *Block) GetGenesisUnixTimestamp() uint64

func (*Block) GetHasSplitAccountChanges

func (x *Block) GetHasSplitAccountChanges() bool

func (*Block) GetId

func (x *Block) GetId() []byte

func (*Block) GetLastEntryHash

func (x *Block) GetLastEntryHash() []byte

func (*Block) GetNumber

func (x *Block) GetNumber() uint64

func (*Block) GetPreviousBlock

func (x *Block) GetPreviousBlock() uint64

func (*Block) GetPreviousId

func (x *Block) GetPreviousId() []byte

func (*Block) GetTransactionCount

func (x *Block) GetTransactionCount() uint32

func (*Block) GetTransactions

func (x *Block) GetTransactions() []*Transaction

func (*Block) GetVersion

func (x *Block) GetVersion() uint32

func (*Block) ID

func (b *Block) ID() string

func (*Block) Num

func (b *Block) Num() uint64

func (*Block) PreviousID

func (b *Block) PreviousID() string

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect

func (x *Block) ProtoReflect() protoreflect.Message

func (*Block) Reset

func (x *Block) Reset()

func (*Block) String

func (x *Block) String() string

func (*Block) Time

func (b *Block) Time() time.Time

type Instruction

type Instruction struct {
	ProgramId   []byte   `protobuf:"bytes,3,opt,name=program_id,json=programId,proto3" json:"program_id,omitempty"`
	AccountKeys [][]byte `protobuf:"bytes,4,rep,name=account_keys,json=accountKeys,proto3" json:"account_keys,omitempty"`
	Data        []byte   `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	// What follows is execution trace data, could be empty for un-executed transactions.
	Index          uint32            `protobuf:"varint,6,opt,name=index,proto3" json:"index,omitempty"`
	ParentIndex    uint32            `protobuf:"varint,7,opt,name=parent_index,json=parentIndex,proto3" json:"parent_index,omitempty"`
	Depth          uint32            `protobuf:"varint,8,opt,name=depth,proto3" json:"depth,omitempty"`
	BalanceChanges []*BalanceChange  `protobuf:"bytes,9,rep,name=balance_changes,json=balanceChanges,proto3" json:"balance_changes,omitempty"`
	AccountChanges []*AccountChange  `protobuf:"bytes,10,rep,name=account_changes,json=accountChanges,proto3" json:"account_changes,omitempty"`
	Logs           []*Log            `protobuf:"bytes,11,rep,name=logs,proto3" json:"logs,omitempty"`
	Failed         bool              `protobuf:"varint,15,opt,name=failed,proto3" json:"failed,omitempty"`
	Error          *InstructionError `protobuf:"bytes,16,opt,name=error,proto3" json:"error,omitempty"`
	BeginOrdinal   uint64            `protobuf:"varint,17,opt,name=begin_ordinal,json=beginOrdinal,proto3" json:"begin_ordinal,omitempty"`
	EndOrdinal     uint64            `protobuf:"varint,18,opt,name=end_ordinal,json=endOrdinal,proto3" json:"end_ordinal,omitempty"`
	// contains filtered or unexported fields
}

func (*Instruction) Descriptor deprecated

func (*Instruction) Descriptor() ([]byte, []int)

Deprecated: Use Instruction.ProtoReflect.Descriptor instead.

func (*Instruction) GetAccountChanges

func (x *Instruction) GetAccountChanges() []*AccountChange

func (*Instruction) GetAccountKeys

func (x *Instruction) GetAccountKeys() [][]byte

func (*Instruction) GetBalanceChanges

func (x *Instruction) GetBalanceChanges() []*BalanceChange

func (*Instruction) GetBeginOrdinal

func (x *Instruction) GetBeginOrdinal() uint64

func (*Instruction) GetData

func (x *Instruction) GetData() []byte

func (*Instruction) GetDepth

func (x *Instruction) GetDepth() uint32

func (*Instruction) GetEndOrdinal

func (x *Instruction) GetEndOrdinal() uint64

func (*Instruction) GetError

func (x *Instruction) GetError() *InstructionError

func (*Instruction) GetFailed

func (x *Instruction) GetFailed() bool

func (*Instruction) GetIndex

func (x *Instruction) GetIndex() uint32

func (*Instruction) GetLogs

func (x *Instruction) GetLogs() []*Log

func (*Instruction) GetParentIndex

func (x *Instruction) GetParentIndex() uint32

func (*Instruction) GetProgramId

func (x *Instruction) GetProgramId() []byte

func (*Instruction) ProtoMessage

func (*Instruction) ProtoMessage()

func (*Instruction) ProtoReflect

func (x *Instruction) ProtoReflect() protoreflect.Message

func (*Instruction) Reset

func (x *Instruction) Reset()

func (*Instruction) String

func (x *Instruction) String() string

type InstructionError

type InstructionError struct {
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*InstructionError) Descriptor deprecated

func (*InstructionError) Descriptor() ([]byte, []int)

Deprecated: Use InstructionError.ProtoReflect.Descriptor instead.

func (*InstructionError) GetError

func (x *InstructionError) GetError() string

func (*InstructionError) ProtoMessage

func (*InstructionError) ProtoMessage()

func (*InstructionError) ProtoReflect

func (x *InstructionError) ProtoReflect() protoreflect.Message

func (*InstructionError) Reset

func (x *InstructionError) Reset()

func (*InstructionError) String

func (x *InstructionError) String() string

type InstructionErrorCustom

type InstructionErrorCustom struct {
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*InstructionErrorCustom) Descriptor deprecated

func (*InstructionErrorCustom) Descriptor() ([]byte, []int)

Deprecated: Use InstructionErrorCustom.ProtoReflect.Descriptor instead.

func (*InstructionErrorCustom) GetError

func (x *InstructionErrorCustom) GetError() string

func (*InstructionErrorCustom) ProtoMessage

func (*InstructionErrorCustom) ProtoMessage()

func (*InstructionErrorCustom) ProtoReflect

func (x *InstructionErrorCustom) ProtoReflect() protoreflect.Message

func (*InstructionErrorCustom) Reset

func (x *InstructionErrorCustom) Reset()

func (*InstructionErrorCustom) String

func (x *InstructionErrorCustom) String() string

type Log

type Log struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Ordinal uint64 `protobuf:"varint,2,opt,name=ordinal,proto3" json:"ordinal,omitempty"`
	// contains filtered or unexported fields
}

func (*Log) Descriptor deprecated

func (*Log) Descriptor() ([]byte, []int)

Deprecated: Use Log.ProtoReflect.Descriptor instead.

func (*Log) GetMessage

func (x *Log) GetMessage() string

func (*Log) GetOrdinal

func (x *Log) GetOrdinal() uint64

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) ProtoReflect

func (x *Log) ProtoReflect() protoreflect.Message

func (*Log) Reset

func (x *Log) Reset()

func (*Log) String

func (x *Log) String() string

type MessageHeader

type MessageHeader struct {
	NumRequiredSignatures       uint32 `` /* 127-byte string literal not displayed */
	NumReadonlySignedAccounts   uint32 `` /* 141-byte string literal not displayed */
	NumReadonlyUnsignedAccounts uint32 `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*MessageHeader) Descriptor deprecated

func (*MessageHeader) Descriptor() ([]byte, []int)

Deprecated: Use MessageHeader.ProtoReflect.Descriptor instead.

func (*MessageHeader) GetNumReadonlySignedAccounts

func (x *MessageHeader) GetNumReadonlySignedAccounts() uint32

func (*MessageHeader) GetNumReadonlyUnsignedAccounts

func (x *MessageHeader) GetNumReadonlyUnsignedAccounts() uint32

func (*MessageHeader) GetNumRequiredSignatures

func (x *MessageHeader) GetNumRequiredSignatures() uint32

func (*MessageHeader) ProtoMessage

func (*MessageHeader) ProtoMessage()

func (*MessageHeader) ProtoReflect

func (x *MessageHeader) ProtoReflect() protoreflect.Message

func (*MessageHeader) Reset

func (x *MessageHeader) Reset()

func (*MessageHeader) String

func (x *MessageHeader) String() string

type Transaction

type Transaction struct {

	// The transaction ID corresponds to the _first_
	// signature. Additional signatures are in `additional_signatures`.
	Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Index from within a single Slot, deterministically ordered to the
	// best of our ability using the transaction ID as a sort key for
	// the batch of transactions executed in parallel.
	Index                uint64         `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
	AdditionalSignatures [][]byte       `protobuf:"bytes,3,rep,name=additional_signatures,json=additionalSignatures,proto3" json:"additional_signatures,omitempty"`
	Header               *MessageHeader `protobuf:"bytes,4,opt,name=header,proto3" json:"header,omitempty"`
	// From the original Message object
	AccountKeys [][]byte `protobuf:"bytes,5,rep,name=account_keys,json=accountKeys,proto3" json:"account_keys,omitempty"`
	// From the original Message object
	RecentBlockhash []byte `protobuf:"bytes,6,opt,name=recent_blockhash,json=recentBlockhash,proto3" json:"recent_blockhash,omitempty"`
	// Instructions, containing both top-level and nested transactions
	Instructions []*Instruction    `protobuf:"bytes,7,rep,name=instructions,proto3" json:"instructions,omitempty"`
	Failed       bool              `protobuf:"varint,8,opt,name=failed,proto3" json:"failed,omitempty"`
	Error        *TransactionError `protobuf:"bytes,9,opt,name=error,proto3" json:"error,omitempty"`
	BeginOrdinal uint64            `protobuf:"varint,10,opt,name=begin_ordinal,json=beginOrdinal,proto3" json:"begin_ordinal,omitempty"`
	EndOrdinal   uint64            `protobuf:"varint,11,opt,name=end_ordinal,json=endOrdinal,proto3" json:"end_ordinal,omitempty"`
	// contains filtered or unexported fields
}

func (*Transaction) AccountMetaList

func (t *Transaction) AccountMetaList() (out []*solana.AccountMeta, err error)

func (*Transaction) Descriptor deprecated

func (*Transaction) Descriptor() ([]byte, []int)

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetAccountKeys

func (x *Transaction) GetAccountKeys() [][]byte

func (*Transaction) GetAdditionalSignatures

func (x *Transaction) GetAdditionalSignatures() [][]byte

func (*Transaction) GetBeginOrdinal

func (x *Transaction) GetBeginOrdinal() uint64

func (*Transaction) GetEndOrdinal

func (x *Transaction) GetEndOrdinal() uint64

func (*Transaction) GetError

func (x *Transaction) GetError() *TransactionError

func (*Transaction) GetFailed

func (x *Transaction) GetFailed() bool

func (*Transaction) GetHeader

func (x *Transaction) GetHeader() *MessageHeader

func (*Transaction) GetId

func (x *Transaction) GetId() []byte

func (*Transaction) GetIndex

func (x *Transaction) GetIndex() uint64

func (*Transaction) GetInstructions

func (x *Transaction) GetInstructions() []*Instruction

func (*Transaction) GetRecentBlockhash

func (x *Transaction) GetRecentBlockhash() []byte

func (*Transaction) InstructionAccountMetaList

func (t *Transaction) InstructionAccountMetaList(i *Instruction) (out []*solana.AccountMeta)

func (*Transaction) IsSigner

func (t *Transaction) IsSigner(account []byte) bool

func (*Transaction) IsWritable

func (t *Transaction) IsWritable(account []byte) bool

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

func (x *Transaction) ProtoReflect() protoreflect.Message

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) ResolveProgramIDIndex

func (t *Transaction) ResolveProgramIDIndex(programIDIndex uint8) (out solana.PublicKey, err error)

func (*Transaction) String

func (x *Transaction) String() string

type TransactionError

type TransactionError struct {
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionError) Descriptor deprecated

func (*TransactionError) Descriptor() ([]byte, []int)

Deprecated: Use TransactionError.ProtoReflect.Descriptor instead.

func (*TransactionError) GetError

func (x *TransactionError) GetError() string

func (*TransactionError) ProtoMessage

func (*TransactionError) ProtoMessage()

func (*TransactionError) ProtoReflect

func (x *TransactionError) ProtoReflect() protoreflect.Message

func (*TransactionError) Reset

func (x *TransactionError) Reset()

func (*TransactionError) String

func (x *TransactionError) String() string

type TransactionInstructionError

type TransactionInstructionError struct {
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionInstructionError) Descriptor deprecated

func (*TransactionInstructionError) Descriptor() ([]byte, []int)

Deprecated: Use TransactionInstructionError.ProtoReflect.Descriptor instead.

func (*TransactionInstructionError) GetError

func (x *TransactionInstructionError) GetError() string

func (*TransactionInstructionError) ProtoMessage

func (*TransactionInstructionError) ProtoMessage()

func (*TransactionInstructionError) ProtoReflect

func (*TransactionInstructionError) Reset

func (x *TransactionInstructionError) Reset()

func (*TransactionInstructionError) String

func (x *TransactionInstructionError) String() string

Jump to

Keyboard shortcuts

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