ship

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

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

Go to latest
Published: Jun 22, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GetStatusRequestV0Type = iota
	GetBlocksRequestV0Type
	GetBlocksAckRequestV0Type
)
View Source
const (
	GetStatusResultV0Type = iota
	GetBlocksResultV0Type
)

Result

View Source
const (
	TransactionIDType = iota
	PackedTransactionType
)

TransactionVariant

View Source
const (
	ActionReceiptV0Type = iota
)

ActionReceipt

View Source
const (
	ActionTraceV0Type = iota
)

ActionTrace

View Source
const (
	PartialTransactionV0Type = iota
)

PartialTransaction

View Source
const (
	TableDeltaV0Type = iota
)

TableDelta

View Source
const (
	TransactionTraceV0Type = iota
)

TransactionTrace

Variables

View Source
var ActionReceiptVariantFactoryImplMap = map[uint32]eos.VariantImplFactory{
	ActionReceiptV0Type: func() interface{} { return new(ActionReceiptV0) },
}
View Source
var ActionTraceVariantFactoryImplMap = map[uint32]eos.VariantImplFactory{
	ActionTraceV0Type: func() interface{} { return new(ActionTraceV0) },
}
View Source
var PartialTransactionVariantFactoryImplMap = map[uint32]eos.VariantImplFactory{
	PartialTransactionV0Type: func() interface{} { return new(PartialTransactionV0) },
}
View Source
var TableDeltaVariantFactoryImplMap = map[uint32]eos.VariantImplFactory{
	TableDeltaV0Type: func() interface{} { return new(TableDeltaV0) },
}
View Source
var TransactionTraceVariantFactoryImplMap = map[uint32]eos.VariantImplFactory{
	TransactionTraceV0Type: func() interface{} { return new(TransactionTraceV0) },
}
View Source
var TransactionVariantFactoryImplMap = map[uint32]eos.VariantImplFactory{
	TransactionIDType:     func() interface{} { return new(eos.Checksum256) },
	PackedTransactionType: func() interface{} { return new(eos.PackedTransaction) },
}

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              string
	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 TransactionReceipt

type TransactionReceipt struct {
	eos.TransactionReceiptHeader
	Trx *TransactionVariant
}

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"`
}

type TransactionVariant

type TransactionVariant struct {
	eos.BaseVariant
}

func (*TransactionVariant) UnmarshalBinary

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

Jump to

Keyboard shortcuts

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