ship

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: AGPL-3.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeSignedBlockBytes

func MakeSignedBlockBytes(sb *SignedBlock, sbb *SignedBlockBytes) error

func MakeTableDeltaArray

func MakeTableDeltaArray(data []TableDelta, arr *TableDeltaArray) error

func MakeTransactionTraceArray

func MakeTransactionTraceArray(data []TransactionTrace, arr *TransactionTraceArray) error

Types

type AccountAuthSequence

type AccountAuthSequence struct {
	Account  chain.Name
	Sequence uint64
}

type AccountDelta

type AccountDelta struct {
	Account chain.Name `json:"account"`
	Delta   int64      `json:"delta"`
}

type ActionReceipt

type ActionReceipt struct {
	V0 *ActionReceiptV0
}

func (ActionReceipt) MarshalABI

func (ar ActionReceipt) MarshalABI(e *abi.Encoder) error

func (*ActionReceipt) UnmarshalABI

func (a *ActionReceipt) UnmarshalABI(d *abi.Decoder) error

type ActionReceiptV0

type ActionReceiptV0 struct {
	Receiver       chain.Name
	ActDigest      chain.Checksum256
	GlobalSequence uint64
	RecvSequence   uint64
	AuthSequence   []AccountAuthSequence
	CodeSequence   uint
	ABISequence    uint
}

type ActionTrace

type ActionTrace struct {
	V0 *ActionTraceV0
	V1 *ActionTraceV1
}

func (ActionTrace) MarshalABI

func (at ActionTrace) MarshalABI(e *abi.Encoder) error

func (*ActionTrace) UnmarshalABI

func (a *ActionTrace) UnmarshalABI(d *abi.Decoder) error

type ActionTraceV0

type ActionTraceV0 struct {
	ActionOrdinal        uint
	CreatorActionOrdinal uint
	Receipt              *ActionReceipt `eosio:"optional"`
	Receiver             chain.Name
	Act                  chain.Action
	ContextFree          bool
	Elapsed              int64
	Console              string
	AccountRamDeltas     []AccountDelta
	Except               string `eosio:"optional"`
	ErrorCode            uint64 `eosio:"optional"`
}

type ActionTraceV1

type ActionTraceV1 struct {
	ActionOrdinal        uint
	CreatorActionOrdinal uint
	Receipt              *ActionReceipt `eosio:"optional"`
	Receiver             chain.Name
	Act                  chain.Action
	ContextFree          bool
	Elapsed              int64
	Console              string
	AccountRamDeltas     []AccountDelta
	Except               string `eosio:"optional"`
	ErrorCode            uint64 `eosio:"optional"`
	ReturnValue          []byte
}

func (ActionTraceV1) MarshalABI

func (at ActionTraceV1) MarshalABI(e *abi.Encoder) error

type BlockPosition

type BlockPosition struct {
	BlockNum uint32
	BlockID  chain.Checksum256
}

type Extension

type Extension struct {
	Type uint16
	Data []byte
}

type GetBlocksAckRequestV0

type GetBlocksAckRequestV0 struct {
	NumMessages uint32
}

type GetBlocksRequestV0

type GetBlocksRequestV0 struct {
	StartBlockNum       uint32
	EndBlockNum         uint32
	MaxMessagesInFlight uint32
	HavePositions       []*BlockPosition
	IrreversibleOnly    bool
	FetchBlock          bool
	FetchTraces         bool
	FetchDeltas         bool
}

type GetBlocksResultV0

type GetBlocksResultV0 struct {
	Head             BlockPosition
	LastIrreversible BlockPosition
	ThisBlock        *BlockPosition         `eosio:"optional"`
	PrevBlock        *BlockPosition         `eosio:"optional"`
	Block            *SignedBlockBytes      `eosio:"optional"`
	Traces           *TransactionTraceArray `eosio:"optional"`
	Deltas           *TableDeltaArray       `eosio:"optional"`
}

type GetStatusRequestV0

type GetStatusRequestV0 struct{}

type GetStatusResultV0

type GetStatusResultV0 struct {
	Head                 *BlockPosition
	LastIrreversible     *BlockPosition
	TraceBeginBlock      uint32
	TraceEndBlock        uint32
	ChainStateBeginBlock uint32
	ChainStateEndBlock   uint32
}

State History Plugin Results

type PartialTransaction

type PartialTransaction struct {
	V0 *PartialTransactionV0
}

func (PartialTransaction) MarshalABI

func (pt PartialTransaction) MarshalABI(e *abi.Encoder) error

func (*PartialTransaction) UnmarshalABI

func (a *PartialTransaction) UnmarshalABI(d *abi.Decoder) error

type PartialTransactionV0

type PartialTransactionV0 struct {
	Expiration            uint32
	RefBlockNum           uint16
	RefBlockPrefix        uint32
	MaxNetUsageWords      uint
	MaxCpuUsageMs         uint8
	DelaySec              uint
	TransactionExtensions []Extension
	Signatures            []chain.Signature
	ContextFreeData       []byte
}

type Request

type Request struct {
	StatusRequest    *GetStatusRequestV0
	BlocksRequest    *GetBlocksRequestV0
	BlocksAckRequest *GetBlocksAckRequestV0
}

func (Request) MarshalABI

func (r Request) MarshalABI(e *abi.Encoder) error

func (*Request) UnmarshalABI

func (r *Request) UnmarshalABI(d *abi.Decoder) error

type Result

type Result struct {
	StatusResult *GetStatusResultV0
	BlocksResult *GetBlocksResultV0
}

func (Result) MarshalABI

func (r Result) MarshalABI(e *abi.Encoder) error

func (*Result) UnmarshalABI

func (r *Result) UnmarshalABI(d *abi.Decoder) error

type Row

type Row struct {
	Present bool
	Data    []byte
}

type SignedBlock

type SignedBlock struct {
	SignedBlockHeader
	Transactions    []TransactionReceipt
	BlockExtensions []Extension
}

type SignedBlockBytes

type SignedBlockBytes []byte

func MustMakeSignedBlockBytes

func MustMakeSignedBlockBytes(sb *SignedBlock) *SignedBlockBytes

func (*SignedBlockBytes) Unpack

func (sbb *SignedBlockBytes) Unpack(sb *SignedBlock) error

Unpack decodes the SignedBlockBytes into a SignedBlock

type SignedBlockHeader

type SignedBlockHeader struct {
	chain.BlockHeader
	ProducerSignature chain.Signature // no pointer!!
}

type TableDelta

type TableDelta struct {
	V0 *TableDeltaV0
}

func (TableDelta) MarshalABI

func (t TableDelta) MarshalABI(e *abi.Encoder) error

func (*TableDelta) UnmarshalABI

func (a *TableDelta) UnmarshalABI(d *abi.Decoder) error

type TableDeltaArray

type TableDeltaArray []byte

func MustMakeTableDeltaArray

func MustMakeTableDeltaArray(data []TableDelta) *TableDeltaArray

func (*TableDeltaArray) Unpack

func (a *TableDeltaArray) Unpack(deltas *[]TableDelta) error

type TableDeltaV0

type TableDeltaV0 struct {
	Name string
	Rows []Row
}

type Transaction

type Transaction struct {
	TxId   *chain.Checksum256
	Packed *chain.PackedTransaction
}

func (Transaction) MarshalABI

func (t Transaction) MarshalABI(e *abi.Encoder) error

func (*Transaction) UnmarshalABI

func (tx *Transaction) UnmarshalABI(d *abi.Decoder) error

type TransactionReceipt

type TransactionReceipt struct {
	chain.TransactionReceiptHeader
	Trx Transaction
}

type TransactionTrace

type TransactionTrace struct {
	V0 *TransactionTraceV0
}

func (TransactionTrace) MarshalABI

func (t TransactionTrace) MarshalABI(e *abi.Encoder) error

func (*TransactionTrace) UnmarshalABI

func (a *TransactionTrace) UnmarshalABI(d *abi.Decoder) error

type TransactionTraceArray

type TransactionTraceArray []byte

func MustMakeTransactionTraceArray

func MustMakeTransactionTraceArray(data []TransactionTrace) *TransactionTraceArray

func (*TransactionTraceArray) Unpack

func (a *TransactionTraceArray) Unpack(traces *[]TransactionTrace) error

type TransactionTraceV0

type TransactionTraceV0 struct {
	ID              chain.Checksum256       `json:"id"`
	Status          chain.TransactionStatus `json:"status"`
	CPUUsageUS      uint32                  `json:"cpu_usage_us"`
	NetUsageWords   uint                    `json:"net_usage_words"`
	Elapsed         int64                   `json:"elapsed"`
	NetUsage        uint64                  `json:"net_usage"`
	Scheduled       bool                    `json:"scheduled"`
	ActionTraces    []*ActionTrace          `json:"action_traces"`
	AccountDelta    *AccountDelta           `json:"account_delta" eosio:"optional"`
	Except          string                  `json:"except" eosio:"optional"`
	ErrorCode       uint64                  `json:"error_code" eosio:"optional"`
	FailedDtrxTrace *TransactionTrace       `json:"failed_dtrx_trace" eosio:"optional"`
	Partial         *PartialTransaction     `json:"partial" eosio:"optional"`
}

Jump to

Keyboard shortcuts

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