mdl

package
v0.9.0-beta9 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToV0DBOp

func ToV0DBOp(in *pbcodec.DBOp) *v0.DBOp

func ToV0DBOps

func ToV0DBOps(in []*pbcodec.DBOp) (out []*v0.DBOp)

func ToV0DTrxOp

func ToV0DTrxOp(in *pbcodec.DTrxOp) *v0.DTrxOp

func ToV0DTrxOps

func ToV0DTrxOps(in []*pbcodec.DTrxOp) (out []*v0.DTrxOp)

func ToV0RAMOp

func ToV0RAMOp(in *pbcodec.RAMOp) *v0.RAMOp

func ToV0RAMOps

func ToV0RAMOps(in []*pbcodec.RAMOp) (out []*v0.RAMOp)

func ToV0TableOps

func ToV0TableOps(in []*pbcodec.TableOp) []*v0.TableOp

func ToV1AccountRAMDelta

func ToV1AccountRAMDelta(in *pbcodec.AccountRAMDelta) *v1.AccountRAMDelta

func ToV1AccountRAMDeltas

func ToV1AccountRAMDeltas(in []*pbcodec.AccountRAMDelta) (out []*v1.AccountRAMDelta)

func ToV1ActionReceipt

func ToV1ActionReceipt(receiver string, in *pbcodec.ActionReceipt) v1.ActionReceipt

func ToV1ActionTrace

func ToV1ActionTrace(in *pbcodec.ActionTrace) (*v1.ActionTrace, error)

func ToV1ActionTraceRaw

func ToV1ActionTraceRaw(parentAction *pbcodec.ActionTrace, actions []*pbcodec.ActionTrace, withInlines bool) (json.RawMessage, error)

ToV1ActionTraceRaw converts betwen `pbcodec.ActionWrap` format to the old v1 action traces format containing `inline_traces` object.

**Warning** The `actions` parameter is expected to be sorted by execution order (the default) for the algorithm to work correctly.

func ToV1ActionTraces

func ToV1ActionTraces(in []*pbcodec.ActionTrace) (out []*v1.ActionTrace, err error)

func ToV1CreationTree

func ToV1CreationTree(in []*pbcodec.CreationFlatNode) v1.CreationFlatTree

func ToV1DBOp

func ToV1DBOp(in *pbcodec.DBOp) *v1.DBOp

func ToV1DBOps

func ToV1DBOps(in []*pbcodec.DBOp) (out []*v1.DBOp)

func ToV1DBRow

func ToV1DBRow(data []byte, payer string) *v1.DBRow

func ToV1DTrxOp

func ToV1DTrxOp(in *pbcodec.DTrxOp) (*v1.DTrxOp, error)

func ToV1DTrxOps

func ToV1DTrxOps(in []*pbcodec.DTrxOp) (out []*v1.DTrxOp, err error)

func ToV1ExtDTrxOp

func ToV1ExtDTrxOp(in *pbcodec.ExtDTrxOp) (*v1.ExtDTrxOp, error)

func ToV1RAMOp

func ToV1RAMOp(in *pbcodec.RAMOp) *v1.RAMOp

func ToV1RAMOps

func ToV1RAMOps(in []*pbcodec.RAMOp) (out []*v1.RAMOp)

func ToV1TableOps

func ToV1TableOps(in []*pbcodec.TableOp) []*v1.TableOp

func ToV1TransactionTrace

func ToV1TransactionTrace(in *pbcodec.TransactionTrace) (*v1.TransactionTrace, error)

Types

type Account

type Account struct {
	Creator *AccountCreator `json:"creator"`
	*eos.AccountResp
	LinkedPermissions    []*LinkedPermission   `json:"linked_permissions"`
	AccountVerifications *AccountVerifications `json:"account_verifications"`
	HasContract          bool                  `json:"has_contract"`
}

func ToV1Account

func ToV1Account(in *pbcodec.AccountCreationRef) *Account

type AccountCreator

type AccountCreator struct {
	Created   string    `json:"created"`
	Creator   string    `json:"creator"`
	BlockID   string    `json:"block_id"`
	BlockNum  uint32    `json:"block_num"`
	BlockTime time.Time `json:"block_time"`
	TrxID     string    `json:"trx_id"`
}

type AccountResponse

type AccountResponse struct {
	Name        eos.Name
	CreatorName eos.Name
	Creator     *AccountCreator

	// TODO: trash these two, LinkedPermissions are never updated
	// except on creation, we have a lot better in the State DB, with
	// that info at each block height.  And zero process reads that
	// information across the `dfuse` product base.
	LinkedPermissions []*LinkedPermission
	// TODO: trash this, was never implemented anyway.. was just an idea.. We'll have that
	// somewhere else in the future, if ever..
	AccountVerifications *AccountVerifications
}

type AccountVerifications

type AccountVerifications struct {
	Email    *Verifiable `json:"email"`
	Website  *Verifiable `json:"website"`
	Twitter  *Verifiable `json:"twitter"`
	Github   *Verifiable `json:"github"`
	Telegram *Verifiable `json:"telegram"`
	Facebook *Verifiable `json:"facebook"`
	Reddit   *Verifiable `json:"reddit"`
}

type BlockSummary

type BlockSummary struct {
	ID               string                `json:"id"`
	BlockNum         uint32                `json:"block_num"`
	Irreversible     bool                  `json:"irreversible"`
	Header           *eos.BlockHeader      `json:"header"`
	ActiveSchedule   *eos.ProducerSchedule `json:"active_schedule"`
	TransactionCount int                   `json:"transaction_count"`
	SiblingBlocks    []*BlockSummary       `json:"sibling_blocks"`
	DPoSLIBNum       uint32                `json:"dpos_lib_num"`
}

BlockSummary is the dfuse summary information for a given block Candidate for a move in eosws-go directly once the related REST API are made public.

func ToV1BlockSummary

func ToV1BlockSummary(in *pbcodec.BlockWithRefs) (*BlockSummary, error)

type ExtendedStack

type ExtendedStack struct {
	stack.Stack
}

func (*ExtendedStack) MustPeek

func (s *ExtendedStack) MustPeek() interface{}

func (*ExtendedStack) MustPop

func (s *ExtendedStack) MustPop() interface{}

type LinkedPermission

type LinkedPermission struct {
	ActionKey      string `json:"action_key"`
	PermissionName string `json:"permission_name"`
}

type Proposition

type Proposition struct {
	Title string        `json:"title"`
	Hash  string        `json:"hash"`
	Votes []*forum.Vote `json:"votes"`
}

func NewProposition

func NewProposition(vote *forum.Vote) *Proposition

type Suggestion

type Suggestion struct {
	Label   string `json:"label"`
	Key     string `json:"key"`
	Summary string `json:"summary,omitempty"`
}

type SuggestionSection

type SuggestionSection struct {
	ID          string        `json:"id"`
	Suggestions []*Suggestion `json:"suggestions"`
}

type TransactionList

type TransactionList struct {
	Cursor       string                     `json:"cursor"`
	Transactions []*v1.TransactionLifecycle `json:"transactions"`
}

TransactionList represents a list of TransactionLifecycle with some cursor information for pagination. Candidate for a move in eosws-go once the related REST API are made public.

type Verifiable

type Verifiable struct {
	Handle    string `json:"handle"`
	Claim     string `json:"claim"`
	Verified  bool   `json:"verified"`
	LastCheck string `json:"last_check"`
}

Jump to

Keyboard shortcuts

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