Documentation
¶
Index ¶
- type EmulationResult
- type Emulator
- func (e *Emulator) Emulate(shardAccount tlb.ShardAccount, message tlb.Message) (EmulationResult, error)
- func (e *Emulator) SetConfig(config *boc.Cell) error
- func (e *Emulator) SetIgnoreSignatureCheck(ignore bool) error
- func (e *Emulator) SetLT(lt uint64) error
- func (e *Emulator) SetLibs(libs *boc.Cell) error
- func (e *Emulator) SetRandomSeed(seed [32]byte) error
- func (e *Emulator) SetUnixtime(utime uint32) error
- func (e *Emulator) SetVerbosityLevel(level int) error
- type VerbosityLevel
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) SetIgnoreSignatureCheck ¶
func (*Emulator) SetRandomSeed ¶
func (*Emulator) SetUnixtime ¶
func (*Emulator) SetVerbosityLevel ¶
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 )
Click to show internal directories.
Click to hide internal directories.