tvm

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: 15 Imported by: 4

README

Go binding for C++ TVM library.

This library implements bindings for interacting with C++ tvm library.

TVM description you can find here:

Usage

Example

Documentation

Index

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 (e *Emulator) RunSmcMethod(ctx context.Context, accountId tongo.AccountID, method string, params tlb.VmStack) (uint32, tlb.VmStack, error)

func (*Emulator) RunSmcMethodByID added in v1.0.1

func (e *Emulator) RunSmcMethodByID(ctx context.Context, accountId tongo.AccountID, methodID int, params tlb.VmStack) (uint32, tlb.VmStack, error)

func (*Emulator) SetBalance

func (e *Emulator) SetBalance(balance int64)

func (*Emulator) SetGasLimit

func (e *Emulator) SetGasLimit(gasLimit int64) error

func (*Emulator) SetLibs

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

func (*Emulator) SetVerbosityLevel

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

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

Jump to

Keyboard shortcuts

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