dbg

package
v0.0.0-...-9b912b9 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StackNames = []string{"A", "B", "C", "D", "E"}

Functions

func New

func New(r io.Reader, w io.Writer, opts ...DbgOption) (*dbg, error)

Types

type DbgAppConfig

type DbgAppConfig struct {
	Debug    *bool            `json:"debug,omitempty"`
	Args     []string         `json:"args,omitempty"`
	Accounts []string         `json:"accounts,omitempty"`
	Apps     []uint64         `json:"apps,omitempty"`
	Assets   []uint64         `json:"assets,omitempty"`
	Schema   *DbgConfigSchema `json:"schema,omitempty"`
}

type DbgConfig

type DbgConfig struct {
	Args     []string         `json:"args,omitempty"`
	Accounts []string         `json:"accounts,omitempty"`
	Apps     []uint64         `json:"apps,omitempty"`
	Assets   []uint64         `json:"assets,omitempty"`
	Schema   *DbgConfigSchema `json:"schema,omitempty"`

	Create DbgAppConfig `json:"create,omitempty"`
	Call   DbgAppConfig `json:"call,omitempty"`
}

type DbgConfigSchema

type DbgConfigSchema struct {
	Local  DbgConfigSchemaValues `json:"local,omitempty"`
	Global DbgConfigSchemaValues `json:"global,omitempty"`
}

type DbgConfigSchemaValues

type DbgConfigSchemaValues struct {
	Bytes   uint8 `json:"bytes,omitempty"`
	Uint64s uint8 `json:"uints,omitempty"`
}

type DbgOption

type DbgOption func(l *dbg) error

func WithAlgod

func WithAlgod(addr string, token string) DbgOption

func WithConfig

func WithConfig(c DbgConfig) DbgOption

func WithDebug

func WithDebug(w io.Writer) DbgOption

func WithReplay

func WithReplay(reply models.SimulateResponse) DbgOption

Jump to

Keyboard shortcuts

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