Documentation ¶
Index ¶
- func ActionToDEOS(action *eos.Action) *pbantelope.Action
- func ActionTraceReceiptToDEOS(in *eos.ActionTraceReceipt) *pbantelope.ActionReceipt
- func ActivatedProtocolFeaturesToDEOS(in *eos.ProtocolFeatureActivationSet) *pbantelope.ActivatedProtocolFeatures
- func AuthSequenceToDEOS(in eos.TransactionTraceAuthSequence) *pbantelope.AuthSequence
- func AuthoritiesToDEOS(authority *eos.Authority) *pbantelope.Authority
- func AuthorizationToDEOS(authorization []eos.PermissionLevel) (out []*pbantelope.PermissionLevel)
- func BlockHeaderToDEOS(blockHeader *eos.BlockHeader) *pbantelope.BlockHeader
- func BlockSigningAuthorityToDEOS(authority *eos.BlockSigningAuthority) *pbantelope.BlockSigningAuthority
- func BlockrootMerkleToDEOS(merkle *eos.MerkleRoot) *pbantelope.BlockRootMerkle
- func CreationTreeToDEOS(tree CreationFlatTree) []*pbantelope.CreationFlatNode
- func ErrorCodeToDEOS(in *eos.Uint64) uint64
- func ExceptionToDEOS(in *eos.Except) *pbantelope.Exception
- func ExtensionsToDEOS(in []*eos.Extension) (out []*pbantelope.Extension)
- func GetPublicKeysFromSignedTransaction(chainID eos.Checksum256, signedTransaction *eos.SignedTransaction) []string
- func KeyWeightsPToDEOS(keys []*eos.KeyWeight) (out []*pbantelope.KeyWeight)
- func KeyWeightsToDEOS(keys []eos.KeyWeight) (out []*pbantelope.KeyWeight)
- func LogContextToDEOS(in eos.ExceptLogContext) *pbantelope.Exception_LogContext
- func PendingScheduleToDEOS(in *eos.PendingSchedule) *pbantelope.PendingProducerSchedule
- func PermissionLevelToDEOS(perm eos.PermissionLevel) *pbantelope.PermissionLevel
- func PermissionLevelWeightsToDEOS(weights []eos.PermissionLevelWeight) (out []*pbantelope.PermissionLevelWeight)
- func PermissionToDEOS(perm *eos.Permission) *pbantelope.Permission
- func ProducerAuthoritiesToDEOS(producerAuthorities []*eos.ProducerAuthority) (out []*pbantelope.ProducerAuthority)
- func ProducerAuthorityScheduleToDEOS(e *eos.ProducerAuthoritySchedule) *pbantelope.ProducerAuthoritySchedule
- func ProducerKeysToDEOS(in []eos.ProducerKey) (out []*pbantelope.ProducerKey)
- func ProducerScheduleToDEOS(e *eos.ProducerSchedule) *pbantelope.ProducerSchedule
- func ProducerToLastImpliedIrbToDEOS(in []eos.PairAccountNameBlockNum) []*pbantelope.ProducerToLastImpliedIRB
- func ProducerToLastProducedToDEOS(in []eos.PairAccountNameBlockNum) []*pbantelope.ProducerToLastProduced
- func SignaturesToDEOS(in []ecc.Signature) (out []string)
- func SignedTransactionToDEOS(trx *eos.SignedTransaction) *pbantelope.SignedTransaction
- func TransactionHeaderToDEOS(trx *eos.TransactionHeader) *pbantelope.TransactionHeader
- func TransactionReceiptHeaderToDEOS(in *eos.TransactionReceiptHeader) *pbantelope.TransactionReceiptHeader
- func TransactionReceiptToDEOS(txReceipt *eos.TransactionReceipt) *pbantelope.TransactionReceipt
- func TransactionStatusToDEOS(in eos.TransactionStatus) pbantelope.TransactionStatus
- func TransactionToDEOS(trx *eos.Transaction) *pbantelope.Transaction
- func WaitWeightsToDEOS(waits []eos.WaitWeight) (out []*pbantelope.WaitWeight)
- type ActionConversionOption
- type ConversionOption
- type CreationFlatNode
- type CreationFlatTree
- type Hydrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActionToDEOS ¶
func ActionToDEOS(action *eos.Action) *pbantelope.Action
func ActionTraceReceiptToDEOS ¶
func ActionTraceReceiptToDEOS(in *eos.ActionTraceReceipt) *pbantelope.ActionReceipt
func ActivatedProtocolFeaturesToDEOS ¶
func ActivatedProtocolFeaturesToDEOS(in *eos.ProtocolFeatureActivationSet) *pbantelope.ActivatedProtocolFeatures
func AuthSequenceToDEOS ¶
func AuthSequenceToDEOS(in eos.TransactionTraceAuthSequence) *pbantelope.AuthSequence
func AuthoritiesToDEOS ¶
func AuthoritiesToDEOS(authority *eos.Authority) *pbantelope.Authority
func AuthorizationToDEOS ¶
func AuthorizationToDEOS(authorization []eos.PermissionLevel) (out []*pbantelope.PermissionLevel)
func BlockHeaderToDEOS ¶
func BlockHeaderToDEOS(blockHeader *eos.BlockHeader) *pbantelope.BlockHeader
func BlockSigningAuthorityToDEOS ¶
func BlockSigningAuthorityToDEOS(authority *eos.BlockSigningAuthority) *pbantelope.BlockSigningAuthority
func BlockrootMerkleToDEOS ¶
func BlockrootMerkleToDEOS(merkle *eos.MerkleRoot) *pbantelope.BlockRootMerkle
func CreationTreeToDEOS ¶
func CreationTreeToDEOS(tree CreationFlatTree) []*pbantelope.CreationFlatNode
func ErrorCodeToDEOS ¶
func ErrorCodeToDEOS(in *eos.Uint64) uint64
func ExceptionToDEOS ¶
func ExceptionToDEOS(in *eos.Except) *pbantelope.Exception
func ExtensionsToDEOS ¶
func ExtensionsToDEOS(in []*eos.Extension) (out []*pbantelope.Extension)
func GetPublicKeysFromSignedTransaction ¶
func GetPublicKeysFromSignedTransaction(chainID eos.Checksum256, signedTransaction *eos.SignedTransaction) []string
Best effort to extract public keys from a signed transaction
func KeyWeightsPToDEOS ¶
func KeyWeightsPToDEOS(keys []*eos.KeyWeight) (out []*pbantelope.KeyWeight)
func KeyWeightsToDEOS ¶
func KeyWeightsToDEOS(keys []eos.KeyWeight) (out []*pbantelope.KeyWeight)
func LogContextToDEOS ¶
func LogContextToDEOS(in eos.ExceptLogContext) *pbantelope.Exception_LogContext
func PendingScheduleToDEOS ¶
func PendingScheduleToDEOS(in *eos.PendingSchedule) *pbantelope.PendingProducerSchedule
func PermissionLevelToDEOS ¶
func PermissionLevelToDEOS(perm eos.PermissionLevel) *pbantelope.PermissionLevel
func PermissionLevelWeightsToDEOS ¶
func PermissionLevelWeightsToDEOS(weights []eos.PermissionLevelWeight) (out []*pbantelope.PermissionLevelWeight)
func PermissionToDEOS ¶
func PermissionToDEOS(perm *eos.Permission) *pbantelope.Permission
func ProducerAuthoritiesToDEOS ¶
func ProducerAuthoritiesToDEOS(producerAuthorities []*eos.ProducerAuthority) (out []*pbantelope.ProducerAuthority)
func ProducerAuthorityScheduleToDEOS ¶
func ProducerAuthorityScheduleToDEOS(e *eos.ProducerAuthoritySchedule) *pbantelope.ProducerAuthoritySchedule
func ProducerKeysToDEOS ¶
func ProducerKeysToDEOS(in []eos.ProducerKey) (out []*pbantelope.ProducerKey)
func ProducerScheduleToDEOS ¶
func ProducerScheduleToDEOS(e *eos.ProducerSchedule) *pbantelope.ProducerSchedule
func ProducerToLastImpliedIrbToDEOS ¶
func ProducerToLastImpliedIrbToDEOS(in []eos.PairAccountNameBlockNum) []*pbantelope.ProducerToLastImpliedIRB
func ProducerToLastProducedToDEOS ¶
func ProducerToLastProducedToDEOS(in []eos.PairAccountNameBlockNum) []*pbantelope.ProducerToLastProduced
func SignaturesToDEOS ¶
func SignedTransactionToDEOS ¶
func SignedTransactionToDEOS(trx *eos.SignedTransaction) *pbantelope.SignedTransaction
func TransactionHeaderToDEOS ¶
func TransactionHeaderToDEOS(trx *eos.TransactionHeader) *pbantelope.TransactionHeader
func TransactionReceiptHeaderToDEOS ¶
func TransactionReceiptHeaderToDEOS(in *eos.TransactionReceiptHeader) *pbantelope.TransactionReceiptHeader
func TransactionReceiptToDEOS ¶
func TransactionReceiptToDEOS(txReceipt *eos.TransactionReceipt) *pbantelope.TransactionReceipt
func TransactionStatusToDEOS ¶
func TransactionStatusToDEOS(in eos.TransactionStatus) pbantelope.TransactionStatus
func TransactionToDEOS ¶
func TransactionToDEOS(trx *eos.Transaction) *pbantelope.Transaction
func WaitWeightsToDEOS ¶
func WaitWeightsToDEOS(waits []eos.WaitWeight) (out []*pbantelope.WaitWeight)
Types ¶
type ActionConversionOption ¶
type ActionConversionOption interface {
Apply(actionTrace *pbantelope.ActionTrace)
}
type ConversionOption ¶
type ConversionOption interface{}
func LimitConsoleLengthConversionOption ¶
func LimitConsoleLengthConversionOption(maxByteCount int) ConversionOption
type CreationFlatNode ¶
type CreationFlatNode = [3]int
CreationFlatNode represents a flat node in a flat tree. It's a triplet slice where elements reprensents the following values, assuming `(<depthFirstWalkIndex>, <parentDepthFirstWalkIndex>, <executionActionIndex>)`:
The first value of the node is it's id, derived by doing a depth-first walk of the creation tree and incrementing an index at each node visited.
The second value is the parent index of the current node, the index is the index of the initial element of the `CreationFlatNode` slice.
The third value is the execution action index to get the actual execution traces from the actual execution tree (deep-first walking index in the execution tree).
type CreationFlatTree ¶
type CreationFlatTree = []CreationFlatNode
CreationFlatTree represents the creation order tree in a flatten manners. The flat list is built by doing a deep-first walk of the creational tree, outputting at each traversal the `CreationNode` triplet `(index, creatorParentIndex, executionIndex)` where a parent of `-1` represents a root node.
For example, assuming a `CreationFlatTree` of the form:
[
[0, -1, 0], [1, 0, 1], [2, 0, 2], [3, 2, 3],
]
Represents the following creational tree:
```
0 ├── 1 └── 2 └── 3
```
The tree can be reconstructed using the following quick Python.
type Hydrator ¶
type Hydrator interface { // HydrateBlock decodes the received Deep Mind AcceptedBlock data structure against the // correct struct for this version of EOSIO supported by this hydrator. HydrateBlock(block *pbantelope.Block, input []byte, version string) error // DecodeTransactionTrace decodes the received Deep Mind AppliedTransaction data structure against the // correct struct for this version of EOSIO supported by this hydrator. DecodeTransactionTrace(input []byte, opts ...ConversionOption) (*pbantelope.TransactionTrace, error) DecodeFinalityData(input []byte) (*pbantelope.FinalityData, error) DecodeProposerPolicy(input []byte) (*pbantelope.ProposerPolicy, error) DecodeFinalizerPolicy(input []byte) (*pbantelope.FinalizerPolicy, error) }