client

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagCompilerAddr    = "compiler"
	DefaultCompilerAddr = "127.0.0.1:50053"
)

Variables

This section is empty.

Functions

func Compile

func Compile(addr string, sourceFile *vm_grpc.MvIrSourceFile) ([]byte, error)

Compile script via grpc compiler.

func CreateConnection

func CreateConnection(addr string) (*grpc.ClientConn, error)

Create connection to vm.

func ExtractArguments

func ExtractArguments(addr string, bytecode []byte) ([]vm_grpc.VMTypeTag, error)

Extract arguments from bytecode with compiler.

Types

type MVFile

type MVFile struct {
	Code string `json:"code"`
}

MVFile struct contains code from file in hex.

Directories

Path Synopsis
Genesis block related commands for VM module.
Genesis block related commands for VM module.

Jump to

Keyboard shortcuts

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