Documentation ¶
Index ¶
- Constants
- Variables
- func NewGetBlocksAck(num uint32) []byte
- func NewRequest(req *GetBlocksRequestV0) []byte
- type AccountAuthSequence
- type Action
- type ActionReceipt
- type ActionReceiptV0
- type ActionTrace
- type ActionTraceV0
- type BlockPosition
- type Extension
- type GetBlocksAckRequestV0
- type GetBlocksRequestV0
- type GetBlocksResultV0
- type GetStatusRequestV0
- type GetStatusResultV0
- type PartialTransaction
- type PartialTransactionV0
- type Request
- type Result
- type Row
- type SignedBlock
- type SignedBlockBytes
- type SignedBlockHeader
- type TableDelta
- type TableDeltaArray
- type TableDeltaV0
- type TransactionReceipt
- type TransactionTrace
- type TransactionTraceArray
- type TransactionTraceV0
- type TransactionVariant
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 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 GetBlocksAckRequestV0 ¶
type GetBlocksAckRequestV0 struct {
NumMessages uint32
}
type GetBlocksRequestV0 ¶
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 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 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 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
Click to show internal directories.
Click to hide internal directories.