Documentation ¶
Index ¶
- Variables
- func AccountDeltasToDEOS(deltas []AccountDelta) (out []*pbantelope.AccountDelta)
- func AccountRAMDeltasToDEOS(deltas []AccountDelta) (out []*pbantelope.AccountRAMDelta)
- func ActionTraceToDEOS(in *ActionTrace, execIndex uint32, opts ...antelope.ConversionOption) (out *pbantelope.ActionTrace, consoleTruncated bool)
- func ActionTracesToDEOS(actionTraces []*ActionTrace, opts ...antelope.ConversionOption) (out []*pbantelope.ActionTrace, someConsoleTruncated bool)
- func PackedTransactionToDEOS(in *PackedTransaction) *pbantelope.PackedTransaction
- func SignaturesToDEOS(in []ecc.Signature) (out []string)
- func TransactionReceiptToDEOS(txReceipt *TransactionReceipt) *pbantelope.TransactionReceipt
- func TransactionStatusToDEOS(in eos.TransactionStatus) pbantelope.TransactionStatus
- func TransactionTraceToDEOS(logger *zap.Logger, in *TransactionTrace, opts ...antelope.ConversionOption) *pbantelope.TransactionTrace
- type AccountDelta
- type ActionTrace
- type BlockState
- type FinalityData
- type FinalizerAuthority
- type FinalizerPolicy
- type Hydrator
- func (h *Hydrator) DecodeFinalityData(_ []byte) (*pbantelope.FinalityData, error)
- func (h *Hydrator) DecodeFinalizerPolicy(_ []byte) (*pbantelope.FinalizerPolicy, error)
- func (h *Hydrator) DecodeProposerPolicy(_ []byte) (*pbantelope.ProposerPolicy, error)
- func (h *Hydrator) DecodeTransactionTrace(input []byte, opts ...antelope.ConversionOption) (*pbantelope.TransactionTrace, error)
- func (h *Hydrator) HydrateBlock(block *pbantelope.Block, input []byte, version string) error
- type PackedTransaction
- type PackedTransactionPrunableFull
- type PackedTransactionPrunableFullLegacy
- type PackedTransactionPrunableNone
- type PackedTransactionPrunablePartial
- type PrunableData
- type Segment
- type SignedBlock
- type Transaction
- type TransactionReceipt
- type TransactionTrace
Constants ¶
This section is empty.
Variables ¶
View Source
var PrunableDataVariant = eos.NewVariantDefinition([]eos.VariantType{ {Name: "full_legacy", Type: (*PackedTransactionPrunableFullLegacy)(nil)}, {Name: "none", Type: (*PackedTransactionPrunableNone)(nil)}, {Name: "partial", Type: (*PackedTransactionPrunablePartial)(nil)}, {Name: "full", Type: (*PackedTransactionPrunableFull)(nil)}, })
View Source
var SegmentVariant = eos.NewVariantDefinition([]eos.VariantType{
{Name: "digest", Type: eos.Checksum256{}},
{Name: "bytes", Type: eos.HexBytes{}},
})
View Source
var TransactionVariant = eos.NewVariantDefinition([]eos.VariantType{ {Name: "transaction_id", Type: eos.Checksum256{}}, {Name: "packed_transaction", Type: (*PackedTransaction)(nil)}, })
Functions ¶
func AccountDeltasToDEOS ¶
func AccountDeltasToDEOS(deltas []AccountDelta) (out []*pbantelope.AccountDelta)
func AccountRAMDeltasToDEOS ¶
func AccountRAMDeltasToDEOS(deltas []AccountDelta) (out []*pbantelope.AccountRAMDelta)
func ActionTraceToDEOS ¶
func ActionTraceToDEOS(in *ActionTrace, execIndex uint32, opts ...antelope.ConversionOption) (out *pbantelope.ActionTrace, consoleTruncated bool)
func ActionTracesToDEOS ¶
func ActionTracesToDEOS(actionTraces []*ActionTrace, opts ...antelope.ConversionOption) (out []*pbantelope.ActionTrace, someConsoleTruncated bool)
func PackedTransactionToDEOS ¶
func PackedTransactionToDEOS(in *PackedTransaction) *pbantelope.PackedTransaction
func SignaturesToDEOS ¶
func TransactionReceiptToDEOS ¶
func TransactionReceiptToDEOS(txReceipt *TransactionReceipt) *pbantelope.TransactionReceipt
func TransactionStatusToDEOS ¶
func TransactionStatusToDEOS(in eos.TransactionStatus) pbantelope.TransactionStatus
func TransactionTraceToDEOS ¶
func TransactionTraceToDEOS(logger *zap.Logger, in *TransactionTrace, opts ...antelope.ConversionOption) *pbantelope.TransactionTrace
Types ¶
type AccountDelta ¶
type AccountDelta struct { Account eos.AccountName `json:"account"` Delta eos.Int64 `json:"delta"` }
type ActionTrace ¶
type ActionTrace struct { ActionOrdinal eos.Varuint32 `json:"action_ordinal"` CreatorActionOrdinal eos.Varuint32 `json:"creator_action_ordinal"` ClosestUnnotifiedAncestorActionOrdinal eos.Varuint32 `json:"closest_unnotified_ancestor_action_ordinal"` Receipt *eos.ActionTraceReceipt `json:"receipt,omitempty" eos:"optional"` Receiver eos.AccountName `json:"receiver"` Action *eos.Action `json:"act"` ContextFree bool `json:"context_free"` ElapsedUs eos.Int64 `json:"elapsed"` Console eos.SafeString `json:"console"` TransactionID eos.Checksum256 `json:"trx_id"` BlockNum uint32 `json:"block_num"` BlockTime eos.BlockTimestamp `json:"block_time"` ProducerBlockID eos.Checksum256 `json:"producer_block_id" eos:"optional"` AccountRAMDeltas []AccountDelta `json:"account_ram_deltas"` // Added in 2.1.x // AccountDiskDeltas []AccountDelta `json:"account_disk_deltas"` Except *eos.Except `json:"except,omitempty" eos:"optional"` ErrorCode *eos.Uint64 `json:"error_code,omitempty" eos:"optional"` // Added in 2.1.x ReturnValue eos.HexBytes `json:"return_value"` }
TransactionTrace
File hierarchy:
type BlockState ¶
type BlockState struct { // From 'struct block_header_state_common' BlockNum uint32 `json:"block_num"` DPoSProposedIrreversibleBlockNum uint32 `json:"dpos_proposed_irreversible_blocknum"` DPoSIrreversibleBlockNum uint32 `json:"dpos_irreversible_blocknum"` ActiveSchedule *eos.ProducerAuthoritySchedule `json:"active_schedule"` BlockrootMerkle *eos.MerkleRoot `json:"blockroot_merkle,omitempty"` ProducerToLastProduced []eos.PairAccountNameBlockNum `json:"producer_to_last_produced,omitempty"` ProducerToLastImpliedIRB []eos.PairAccountNameBlockNum `json:"producer_to_last_implied_irb,omitempty"` ValidBlockSigningAuthorityV2 *eos.BlockSigningAuthority `json:"valid_block_signing_authority,omitempty"` ConfirmCount []uint8 `json:"confirm_count,omitempty"` // From 'struct block_header_state' BlockID eos.Checksum256 `json:"id"` Header *eos.SignedBlockHeader `json:"header,omitempty"` PendingSchedule *eos.PendingSchedule `json:"pending_schedule"` ActivatedProtocolFeatures *eos.ProtocolFeatureActivationSet `json:"activated_protocol_features,omitempty" eos:"optional"` AdditionalSignatures []ecc.Signature `json:"additional_signatures"` // From 'struct block_state' // Type changed in v2.1.x SignedBlock *SignedBlock `json:"block,omitempty" eos:"optional"` }
BlockState
File hierarchy:
- https://github.com/EOSIO/eos/blob/v2.1.0/libraries/chain/include/eosio/chain/block_header_state.hpp#L57
- https://github.com/EOSIO/eos/blob/v2.1.0/libraries/chain/include/eosio/chain/block_header_state.hpp#L126
- https://github.com/EOSIO/eos/blob/v2.1.0/libraries/chain/include/eosio/chain/block_state.hpp#L10
type FinalityData ¶
type FinalityData struct { MajorVersion uint32 `json:"major_version"` MinorVersion uint32 `json:"minor_version"` ActiveFinalizerPolicyGeneration uint32 `json:"active_finalizer_policy_generation"` FinalOnStrongQCBlockNum uint32 `json:"final_on_strong_qc_block_num"` ActionMroot eos.Checksum256 `json:"action_mroot"` BaseDigest eos.Checksum256 `json:"base_digest"` ProposedFinalizerPolicy *FinalizerPolicy `json:"proposed_finalizer_policy" eos:"optional"` }
FinalityData
File hierarchy:
type FinalizerAuthority ¶
type FinalizerPolicy ¶
type FinalizerPolicy struct { Generation uint32 `json:"generation"` Threshold uint64 `json:"threshold"` Finalizers []*FinalizerAuthority `json:"finalizers"` }
type Hydrator ¶
type Hydrator struct {
// contains filtered or unexported fields
}
func NewHydrator ¶
func (*Hydrator) DecodeFinalityData ¶
func (*Hydrator) DecodeFinalizerPolicy ¶ added in v1.5.0
func (*Hydrator) DecodeProposerPolicy ¶ added in v1.5.0
func (*Hydrator) DecodeTransactionTrace ¶
func (h *Hydrator) DecodeTransactionTrace(input []byte, opts ...antelope.ConversionOption) (*pbantelope.TransactionTrace, error)
type PackedTransaction ¶
type PackedTransaction struct { Compression eos.CompressionType `json:"compression"` PrunableData *PrunableData `json:"prunable_data"` PackedTransaction eos.HexBytes `json:"packed_trx"` }
type PackedTransactionPrunableNone ¶
type PackedTransactionPrunableNone struct {
Digest eos.Checksum256 `json:"digest"`
}
type PrunableData ¶
type PrunableData struct {
eos.BaseVariant
}
func (*PrunableData) UnmarshalBinary ¶
func (r *PrunableData) UnmarshalBinary(decoder *eos.Decoder) error
type SignedBlock ¶
type SignedBlock struct { eos.SignedBlockHeader // Added in v2.1.x // PruneState uint8 `json:"prune_state"` // Type changed in v2.1.x Transactions []*TransactionReceipt `json:"transactions"` BlockExtensions []*eos.Extension `json:"block_extensions"` }
BlockState
File hierarchy:
type Transaction ¶
type Transaction struct {
eos.BaseVariant
}
func (*Transaction) UnmarshalBinary ¶
func (r *Transaction) UnmarshalBinary(decoder *eos.Decoder) error
type TransactionReceipt ¶
type TransactionReceipt struct { eos.TransactionReceiptHeader Transaction eos.TransactionWithID `json:"trx"` }
type TransactionTrace ¶
type TransactionTrace struct { ID eos.Checksum256 `json:"id"` BlockNum uint32 `json:"block_num"` BlockTime eos.BlockTimestamp `json:"block_time"` ProducerBlockID eos.Checksum256 `json:"producer_block_id" eos:"optional"` Receipt *eos.TransactionReceiptHeader `json:"receipt,omitempty" eos:"optional"` Elapsed eos.Int64 `json:"elapsed"` NetUsage eos.Uint64 `json:"net_usage"` Scheduled bool `json:"scheduled"` ActionTraces []*ActionTrace `json:"action_traces"` AccountRamDelta *AccountDelta `json:"account_ram_delta" eos:"optional"` FailedDtrxTrace *TransactionTrace `json:"failed_dtrx_trace,omitempty" eos:"optional"` Except *eos.Except `json:"except,omitempty" eos:"optional"` ErrorCode *eos.Uint64 `json:"error_code,omitempty" eos:"optional"` }
TransactionTrace
File hierarchy:
Click to show internal directories.
Click to hide internal directories.