ship

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ActionReceiptVariant = eos.NewVariantDefinition([]eos.VariantType{
	{"action_receipt_v0", (*ActionReceiptV0)(nil)},
})

ActionReceipt

View Source
var ActionTraceVariant = eos.NewVariantDefinition([]eos.VariantType{
	{"action_trace_v0", (*ActionTraceV0)(nil)},
})

ActionTrace

View Source
var PartialTransactionVariant = eos.NewVariantDefinition([]eos.VariantType{
	{"partial_transaction_v0", (*PartialTransactionV0)(nil)},
})

PartialTransaction

View Source
var RequestVariant = eos.NewVariantDefinition([]eos.VariantType{
	{"get_status_request_v0", (*GetStatusRequestV0)(nil)},
	{"get_blocks_request_v0", (*GetBlocksRequestV0)(nil)},
	{"get_blocks_ack_request_v0", (*GetBlocksAckRequestV0)(nil)},
})

Request

View Source
var ResultVariant = eos.NewVariantDefinition([]eos.VariantType{
	{"get_status_result_v0", (*GetStatusResultV0)(nil)},
	{"get_blocks_result_v0", (*GetBlocksResultV0)(nil)},
})

Result

View Source
var TableDeltaVariant = eos.NewVariantDefinition([]eos.VariantType{
	{"table_delta_v0", (*TableDeltaV0)(nil)},
})

TableDelta

View Source
var TransactionTraceVariant = eos.NewVariantDefinition([]eos.VariantType{
	{"transaction_trace_v0", (*TransactionTraceV0)(nil)},
})

TransactionTrace

View Source
var TransactionVariant = eos.NewVariantDefinition([]eos.VariantType{
	{"transaction_id", (*eos.Checksum256)(nil)},
	{"packed_transaction", (*eos.PackedTransaction)(nil)},
})

Transaction

Functions

func NewGetBlocksAck

func NewGetBlocksAck(num uint32) []byte

func NewRequest

func NewRequest(req *GetBlocksRequestV0) []byte

Types

type AccountAuthSequence

type AccountAuthSequence struct {
	Account  eos.Name
	Sequence uint64
}

type Action

type Action struct {
	Account       eos.AccountName
	Name          eos.ActionName
	Authorization []eos.PermissionLevel
	Data          []byte
}

type ActionReceipt

type ActionReceipt struct {
	eos.BaseVariant
}

func (*ActionReceipt) UnmarshalBinary

func (r *ActionReceipt) UnmarshalBinary(decoder *eos.Decoder) error

type ActionReceiptV0

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

type ActionTrace

type ActionTrace struct {
	eos.BaseVariant
}

func (*ActionTrace) UnmarshalBinary

func (r *ActionTrace) UnmarshalBinary(decoder *eos.Decoder) error

type ActionTraceV0

type ActionTraceV0 struct {
	ActionOrdinal        eos.Varuint32
	CreatorActionOrdinal eos.Varuint32
	Receipt              *ActionReceipt `eos:"optional"`
	Receiver             eos.Name
	Act                  *Action
	ContextFree          bool
	Elapsed              int64
	Console              eos.SafeString
	AccountRamDeltas     []*eos.AccountRAMDelta
	Except               string `eos:"optional"`
	ErrorCode            uint64 `eos:"optional"`
}

type BlockPosition

type BlockPosition struct {
	BlockNum uint32
	BlockID  eos.Checksum256
}

State History Plugin version of EOS structs

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         `eos:"optional"`
	PrevBlock        *BlockPosition         `eos:"optional"`
	Block            *SignedBlockBytes      `eos:"optional"`
	Traces           *TransactionTraceArray `eos:"optional"`
	Deltas           *TableDeltaArray       `eos:"optional"`
}

func ParseGetBlockResultV0

func ParseGetBlockResultV0(in []byte) (*GetBlocksResultV0, error)

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 {
	eos.BaseVariant
}

func (*PartialTransaction) UnmarshalBinary

func (r *PartialTransaction) UnmarshalBinary(decoder *eos.Decoder) error

type PartialTransactionV0

type PartialTransactionV0 struct {
	Expiration            uint32
	RefBlockNum           uint16
	RefBlockPrefix        uint32
	MaxNetUsageWords      eos.Varuint32
	MaxCpuUsageMs         uint8
	DelaySec              eos.Varuint32
	TransactionExtensions []*Extension
	Signatures            []ecc.Signature
	ContextFreeData       []byte
}

type Request

type Request struct {
	eos.BaseVariant
}

func (*Request) UnmarshalBinary

func (r *Request) UnmarshalBinary(decoder *eos.Decoder) error

type Result

type Result struct {
	eos.BaseVariant
}

func (*Result) UnmarshalBinary

func (r *Result) UnmarshalBinary(decoder *eos.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 SignedBlock

func (*SignedBlockBytes) AsSignedBlock

func (s *SignedBlockBytes) AsSignedBlock() *SignedBlock

func (*SignedBlockBytes) UnmarshalBinary

func (s *SignedBlockBytes) UnmarshalBinary(decoder *eos.Decoder) error

type SignedBlockHeader

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

type TableDelta

type TableDelta struct {
	eos.BaseVariant
}

func (*TableDelta) UnmarshalBinary

func (d *TableDelta) UnmarshalBinary(decoder *eos.Decoder) error

type TableDeltaArray

type TableDeltaArray struct {
	Elem []*TableDelta
}

func (*TableDeltaArray) AsTableDeltasV0

func (t *TableDeltaArray) AsTableDeltasV0() (out []*TableDeltaV0)

func (*TableDeltaArray) UnmarshalBinary

func (d *TableDeltaArray) UnmarshalBinary(decoder *eos.Decoder) error

type TableDeltaV0

type TableDeltaV0 struct {
	Name string
	Rows []Row
}

type Transaction

type Transaction struct {
	eos.BaseVariant
}

func (*Transaction) UnmarshalBinary

func (d *Transaction) UnmarshalBinary(decoder *eos.Decoder) error

type TransactionReceipt

type TransactionReceipt struct {
	eos.TransactionReceiptHeader
	Trx *Transaction
}

type TransactionTrace

type TransactionTrace struct {
	eos.BaseVariant
}

func (*TransactionTrace) UnmarshalBinary

func (r *TransactionTrace) UnmarshalBinary(decoder *eos.Decoder) error

type TransactionTraceArray

type TransactionTraceArray struct {
	Elem []*TransactionTrace
}

func (*TransactionTraceArray) AsTransactionTracesV0

func (t *TransactionTraceArray) AsTransactionTracesV0() (out []*TransactionTraceV0)

func (*TransactionTraceArray) UnmarshalBinary

func (r *TransactionTraceArray) UnmarshalBinary(decoder *eos.Decoder) error

type TransactionTraceV0

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

Jump to

Keyboard shortcuts

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