mdl

package
v0.0.0-...-79e627e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2023 License: MIT Imports: 5 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountRAMDelta

type AccountRAMDelta struct {
	Account eos.AccountName `json:"account"`
	Delta   int64           `json:"delta"`
}

AccountRAMDelta corresponds to an `account_delta` from `chain/trace.hpp`

type ActionReceipt

type ActionReceipt struct {
	Receiver       string            `json:"receiver"`
	Digest         string            `json:"act_digest"`
	GlobalSequence eos.Uint64        `json:"global_sequence"`
	RecvSequence   eos.Uint64        `json:"recv_sequence"`
	AuthSequence   []json.RawMessage `json:"auth_sequence"`
	CodeSequence   eos.Uint64        `json:"code_sequence"`
	ABISequence    eos.Uint64        `json:"abi_sequence"`
}

ActionReceipt corresponds to an `action_receipt` from `chain/action_receipt.hpp`

type ActionRef

type ActionRef struct {
	BlockID     string `json:"block_id"`
	TrxIndex    int    `json:"trx_index"`
	TrxID       string `json:"trx_id"`
	ActionIndex int    `json:"action_index"`
}

type ActionTrace

type ActionTrace struct {
	ActionOrdinal                          uint32 `json:"action_ordinal"`
	CreatorActionOrdinal                   uint32 `json:"creator_action_ordinal"`
	ClosestUnnotifiedAncestorActionOrdinal uint32 `json:"closest_unnotified_ancestor_action_ordinal"`
	BaseActionTrace
	Receiver     eos.AccountName `json:"receiver,omitempty"`
	InlineTraces []*ActionTrace  `json:"inline_traces"`
}

ActionTrace corresponds to an `action_trace` from `chain/trace.hpp`

type BaseActionTrace

type BaseActionTrace struct {
	Receipt          ActionReceipt      `json:"receipt"`
	Action           eos.Action         `json:"act"`
	ContextFree      bool               `json:"context_free"`
	Elapsed          int64              `json:"elapsed"`
	Console          string             `json:"console"`
	TransactionID    string             `json:"trx_id"`
	BlockNum         uint32             `json:"block_num"`
	BlockTime        eos.BlockTimestamp `json:"block_time"`
	ProducerBlockID  *string            `json:"producer_block_id,omitempty"`
	AccountRAMDeltas []*AccountRAMDelta `json:"account_ram_deltas"`
	Except           json.RawMessage    `json:"except"`
}

BaseActionTrace corresponds to a `base_action_trace` from `chain/trace.hpp`

type CreationFlatNode

type CreationFlatNode = [3]int

type CreationFlatTree

type CreationFlatTree = []CreationFlatNode

type DBOp

type DBOp struct {
	Op          string `json:"op,omitempty"`
	ActionIndex int    `json:"action_idx"`
	Account     string `json:"account,omitempty"`
	Table       string `json:"table,omitempty"`
	Scope       string `json:"scope,omitempty"`
	Key         string `json:"key,omitempty"`
	Old         *DBRow `json:"old,omitempty"`
	New         *DBRow `json:"new,omitempty"`
}

type DBRow

type DBRow struct {
	Payer string      `json:"payer,omitempty"`
	Hex   string      `json:"hex,omitempty"`
	JSON  interface{} `json:"json,omitempty"`
	Error string      `json:"error,omitempty"`
}

type DTrxOp

type DTrxOp struct {
	Operation    string          `json:"op"`
	ActionIndex  int             `json:"action_idx"`
	Sender       string          `json:"sender"`
	SenderID     string          `json:"sender_id"`
	Payer        string          `json:"payer"`
	PublishedAt  string          `json:"published_at"`
	DelayUntil   string          `json:"delay_until"`
	ExpirationAt string          `json:"expiration_at"`
	TrxID        string          `json:"trx_id"`
	Trx          json.RawMessage `json:"trx,omitempty"`
}

func (*DTrxOp) IsCancelOperation

func (d *DTrxOp) IsCancelOperation() bool

func (*DTrxOp) IsCreateOperation

func (d *DTrxOp) IsCreateOperation() bool

func (*DTrxOp) SignedTransaction

func (d *DTrxOp) SignedTransaction() (transaction *eos.SignedTransaction, err error)

type ExtDTrxOp

type ExtDTrxOp struct {
	SourceTransactionID string             `json:"src_trx_id"`
	BlockNum            uint32             `json:"block_num"`
	BlockID             string             `json:"block_id"`
	BlockTime           eos.BlockTimestamp `json:"block_time"`

	DTrxOp
}

type PermissionLevel

type PermissionLevel struct {
	Actor      string `json:"actor"`
	Permission string `json:"permission"`
}

type RAMOp

type RAMOp struct {
	Operation   string `json:"op"`
	Family      string `json:"family"`
	Action      string `json:"action"`
	ActionIndex int    `json:"action_idx"`
	Payer       string `json:"payer"`
	Delta       int64  `json:"delta"`
	Usage       uint64 `json:"usage"` // new usage
}

type TableOp

type TableOp struct {
	Operation   string `json:"op"`
	ActionIndex int    `json:"action_idx"`
	Payer       string `json:"payer"`
	Path        string `json:"path"`
	// contains filtered or unexported fields
}

type TransactionLifecycle

type TransactionLifecycle struct {
	TransactionStatus           string                 `json:"transaction_status"`
	ID                          string                 `json:"id"`
	Transaction                 *eos.SignedTransaction `json:"transaction"`
	ExecutionTrace              *TransactionTrace      `json:"execution_trace"`
	ExecutionBlockHeader        *eos.BlockHeader       `json:"execution_block_header"`
	DTrxOps                     []*DTrxOp              `json:"dtrxops"`
	CreationTree                CreationFlatTree       `json:"creation_tree"`
	DBOps                       []*DBOp                `json:"dbops"`
	RAMOps                      []*RAMOp               `json:"ramops"`
	TableOps                    []*TableOp             `json:"tableops"`
	PubKeys                     []*ecc.PublicKey       `json:"pub_keys"`
	CreatedBy                   *ExtDTrxOp             `json:"created_by"`
	CanceledBy                  *ExtDTrxOp             `json:"canceled_by"`
	ExecutionIrreversible       bool                   `json:"execution_irreversible"`
	DTrxCreationIrreversible    bool                   `json:"dtrx_creation_irreversible"`
	DTrxCancelationIrreversible bool                   `json:"dtrx_cancelation_irreversible"`
}

type TransactionTrace

type TransactionTrace struct {
	ID              string                       `json:"id,omitempty"`
	BlockNum        uint32                       `json:"block_num"`
	BlockTime       eos.BlockTimestamp           `json:"block_time"`
	ProducerBlockID string                       `json:"producer_block_id"`
	Receipt         eos.TransactionReceiptHeader `json:"receipt"`
	Elapsed         int64                        `json:"elapsed"`
	NetUsage        uint64                       `json:"net_usage"`
	Scheduled       bool                         `json:"scheduled"`
	ActionTraces    []*ActionTrace               `json:"action_traces"`
	FailedDTrxTrace *TransactionTrace            `json:"failed_dtrx_trace"`
	Except          json.RawMessage              `json:"except"`
}

TransactionTrace maps to a `transaction_trace` in `chain/trace.hpp`

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL