debugger

package module
v0.0.0-...-412c607 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Execution Debugger

Created from: https://github.com/janezpodhostnik/flow-transaction-info

Flow script and transaction execution debugger

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomTransaction

type CustomTransaction struct {
	Tx     *flow.TransactionBody
	Height uint64
}

CustomTransaction implements transaction resolver that returns a transaction that was provided on the initialization, used for custom transactions you manually build.

func (*CustomTransaction) BlockHeight

func (c *CustomTransaction) BlockHeight() (uint64, error)

func (*CustomTransaction) TransactionBody

func (c *CustomTransaction) TransactionBody() (*flow.TransactionBody, error)

type NetworkTransactions

type NetworkTransactions struct {
	Client dps.APIClient
	ID     flow.Identifier
}

NetworkTransactions implements transaction resolver that fetches existing transaction from the Flow network using the archive node client.

func (*NetworkTransactions) BlockHeight

func (n *NetworkTransactions) BlockHeight() (uint64, error)

func (*NetworkTransactions) TransactionBody

func (n *NetworkTransactions) TransactionBody() (*flow.TransactionBody, error)

type RemoteView

type RemoteView struct {
	Parent *RemoteView
	Delta  map[string]flow.RegisterValue
	// contains filtered or unexported fields
}

func NewRemoteView

func NewRemoteView(reader registers.RegisterGetRegisterFunc) *RemoteView

func (*RemoteView) AllRegisters

func (v *RemoteView) AllRegisters() []flow.RegisterID

returns all the registers that has been touched

func (*RemoteView) Delete

func (v *RemoteView) Delete(owner, key string) error

func (*RemoteView) DropDelta

func (v *RemoteView) DropDelta()

func (*RemoteView) Get

func (v *RemoteView) Get(owner, key string) (flow.RegisterValue, error)

func (*RemoteView) MergeView

func (v *RemoteView) MergeView(o state.View) error

func (*RemoteView) NewChild

func (v *RemoteView) NewChild() state.View

func (*RemoteView) RegisterUpdates

func (v *RemoteView) RegisterUpdates() ([]flow.RegisterID, []flow.RegisterValue)

func (*RemoteView) Set

func (v *RemoteView) Set(owner, key string, value flow.RegisterValue) error

func (*RemoteView) Touch

func (v *RemoteView) Touch(owner, key string) error

type TransactionResolver

type TransactionResolver interface {
	TransactionBody() (*flow.TransactionBody, error)
	BlockHeight() (uint64, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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