txemulator

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmulationResult

type EmulationResult struct {
	Success   bool
	Emulation *struct {
		ShardAccount tlb.ShardAccount
		Transaction  tlb.Transaction
	}
	Logs  string
	Error *struct {
		ExitCode int
		Text     string
	}
}

type Emulator

type Emulator struct {
	// contains filtered or unexported fields
}

func NewEmulator

func NewEmulator(config *boc.Cell, verbosityLevel VerbosityLevel) (*Emulator, error)

NewEmulator Verbosity level of VM log. 0 - log truncated to last 256 characters. 1 - unlimited length log. 2 - for each command prints its cell hash and offset. 3 - for each command log prints all stack values.

func (*Emulator) Emulate

func (e *Emulator) Emulate(shardAccount tlb.ShardAccount, message tlb.Message) (EmulationResult, error)

func (*Emulator) SetConfig

func (e *Emulator) SetConfig(config *boc.Cell) error

func (*Emulator) SetIgnoreSignatureCheck

func (e *Emulator) SetIgnoreSignatureCheck(ignore bool) error

func (*Emulator) SetLT

func (e *Emulator) SetLT(lt uint64) error

func (*Emulator) SetLibs

func (e *Emulator) SetLibs(libs *boc.Cell) error

func (*Emulator) SetRandomSeed

func (e *Emulator) SetRandomSeed(seed [32]byte) error

func (*Emulator) SetUnixtime

func (e *Emulator) SetUnixtime(utime uint32) error

func (*Emulator) SetVerbosityLevel

func (e *Emulator) SetVerbosityLevel(level int) error

SetVerbosityLevel verbosity level (0 - never, 1 - error, 2 - warning, 3 - info, 4 - debug)

type VerbosityLevel

type VerbosityLevel int
const (
	LogTruncated VerbosityLevel = iota
	LogUnlimited
	CellHashAndOffsetForCommand
	PrintsAllStackValuesForCommand
)

Jump to

Keyboard shortcuts

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