Documentation ¶
Index ¶
- type Emulator
- func (e *Emulator) RunSmcMethod(ctx context.Context, accountId tongo.AccountID, method string, ...) (uint32, tlb.VmStack, error)
- func (e *Emulator) RunSmcMethodByID(ctx context.Context, accountId tongo.AccountID, methodID int, ...) (uint32, tlb.VmStack, error)
- func (e *Emulator) SetBalance(balance int64)
- func (e *Emulator) SetGasLimit(gasLimit int64) error
- func (e *Emulator) SetLibs(libs *boc.Cell) error
- func (e *Emulator) SetVerbosityLevel(level int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Emulator ¶
type Emulator struct {
// contains filtered or unexported fields
}
func NewEmulator ¶
func NewEmulator(code, data, config *boc.Cell, balance int64, verbosityLevel txemulator.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 NewEmulatorFromBOCsBase64 ¶
func NewEmulatorFromBOCsBase64(code, data, config string, balance int64, verbosityLevel txemulator.VerbosityLevel) (*Emulator, error)
NewEmulatorFromBOCsBase64 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) RunSmcMethod ¶ added in v1.0.1
func (*Emulator) RunSmcMethodByID ¶ added in v1.0.1
func (*Emulator) SetBalance ¶
func (*Emulator) SetGasLimit ¶
func (*Emulator) SetVerbosityLevel ¶
SetVerbosityLevel verbosity level (0 - never, 1 - error, 2 - warning, 3 - info, 4 - debug)
Click to show internal directories.
Click to hide internal directories.