Documentation ¶
Index ¶
- 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 Transaction
- type TransactionReceipt
- type TransactionTrace
- type TransactionTraceArray
- type TransactionTraceV0
Constants ¶
This section is empty.
Variables ¶
View Source
var ActionReceiptVariant = zsw.NewVariantDefinition([]zsw.VariantType{ {"action_receipt_v0", (*ActionReceiptV0)(nil)}, })
ActionReceipt
View Source
var ActionTraceVariant = zsw.NewVariantDefinition([]zsw.VariantType{ {"action_trace_v0", (*ActionTraceV0)(nil)}, })
ActionTrace
View Source
var PartialTransactionVariant = zsw.NewVariantDefinition([]zsw.VariantType{ {"partial_transaction_v0", (*PartialTransactionV0)(nil)}, })
PartialTransaction
View Source
var RequestVariant = zsw.NewVariantDefinition([]zsw.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 = zsw.NewVariantDefinition([]zsw.VariantType{ {"get_status_result_v0", (*GetStatusResultV0)(nil)}, {"get_blocks_result_v0", (*GetBlocksResultV0)(nil)}, })
Result
View Source
var TableDeltaVariant = zsw.NewVariantDefinition([]zsw.VariantType{ {"table_delta_v0", (*TableDeltaV0)(nil)}, })
TableDelta
View Source
var TransactionTraceVariant = zsw.NewVariantDefinition([]zsw.VariantType{ {"transaction_trace_v0", (*TransactionTraceV0)(nil)}, })
TransactionTrace
View Source
var TransactionVariant = zsw.NewVariantDefinition([]zsw.VariantType{ {"transaction_id", (*zsw.Checksum256)(nil)}, {"packed_transaction", (*zsw.PackedTransaction)(nil)}, })
Transaction
Functions ¶
func NewGetBlocksAck ¶
func NewRequest ¶
func NewRequest(req *GetBlocksRequestV0) []byte
Types ¶
type AccountAuthSequence ¶
type AccountAuthSequence struct { Account zsw.Name Sequence uint64 }
type Action ¶
type Action struct { Account zsw.AccountName Name zsw.ActionName Authorization []zsw.PermissionLevel Data []byte }
type ActionReceipt ¶
type ActionReceipt struct {
zsw.BaseVariant
}
func (*ActionReceipt) UnmarshalBinary ¶
func (r *ActionReceipt) UnmarshalBinary(decoder *zsw.Decoder) error
type ActionReceiptV0 ¶
type ActionReceiptV0 struct { Receiver zsw.Name ActDigest zsw.Checksum256 GlobalSequence uint64 RecvSequence uint64 AuthSequence []AccountAuthSequence CodeSequence zsw.Varuint32 ABISequence zsw.Varuint32 }
type ActionTrace ¶
type ActionTrace struct {
zsw.BaseVariant
}
func (*ActionTrace) UnmarshalBinary ¶
func (r *ActionTrace) UnmarshalBinary(decoder *zsw.Decoder) error
type ActionTraceV0 ¶
type ActionTraceV0 struct { ActionOrdinal zsw.Varuint32 CreatorActionOrdinal zsw.Varuint32 Receipt *ActionReceipt `eos:"optional"` Receiver zsw.Name Act *Action ContextFree bool Elapsed int64 Console zsw.SafeString AccountRamDeltas []*zsw.AccountRAMDelta Except string `eos:"optional"` ErrorCode uint64 `eos:"optional"` }
type BlockPosition ¶
type BlockPosition struct { BlockNum uint32 BlockID zsw.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 {
zsw.BaseVariant
}
func (*PartialTransaction) UnmarshalBinary ¶
func (r *PartialTransaction) UnmarshalBinary(decoder *zsw.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 *zsw.Decoder) error
type SignedBlockHeader ¶
type TableDelta ¶
type TableDelta struct {
zsw.BaseVariant
}
func (*TableDelta) UnmarshalBinary ¶
func (d *TableDelta) UnmarshalBinary(decoder *zsw.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 *zsw.Decoder) error
type TableDeltaV0 ¶
type Transaction ¶
type Transaction struct {
zsw.BaseVariant
}
func (*Transaction) UnmarshalBinary ¶
func (d *Transaction) UnmarshalBinary(decoder *zsw.Decoder) error
type TransactionReceipt ¶
type TransactionReceipt struct { zsw.TransactionReceiptHeader Trx *Transaction }
type TransactionTrace ¶
type TransactionTrace struct {
zsw.BaseVariant
}
func (*TransactionTrace) UnmarshalBinary ¶
func (r *TransactionTrace) UnmarshalBinary(decoder *zsw.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 *zsw.Decoder) error
type TransactionTraceV0 ¶
type TransactionTraceV0 struct { ID zsw.Checksum256 `json:"id"` Status zsw.TransactionStatus CPUUsageUS uint32 `json:"cpu_usage_us"` NetUsageWords zsw.Varuint32 `json:"net_usage_words"` Elapsed zsw.Int64 `json:"elapsed"` NetUsage uint64 `json:"net_usage"` Scheduled bool `json:"scheduled"` ActionTraces []*ActionTrace `json:"action_traces"` AccountDelta *zsw.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"` }
Click to show internal directories.
Click to hide internal directories.