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 = 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 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 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 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"`
}
Click to show internal directories.
Click to hide internal directories.