types

package
Version: v1.65.3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: BSD-3-Clause Imports: 4 Imported by: 9

Documentation

Index

Constants

View Source
const JsCreator = "js-creator"

JsCreator 配置项 创建js合约的管理员

View Source
const (
	TyLogJs = 10000
)

日志类型

Variables

View Source
var (
	ErrDupName            = errors.New("ErrDupName")
	ErrJsReturnNotObject  = errors.New("ErrJsReturnNotObject")
	ErrJsReturnKVSFormat  = errors.New("ErrJsReturnKVSFormat")
	ErrJsReturnLogsFormat = errors.New("ErrJsReturnLogsFormat")
	//ErrInvalidFuncFormat 错误的函数调用格式(没有_)
	ErrInvalidFuncFormat = errors.New("chain33.js: invalid function name format")
	//ErrInvalidFuncPrefix not exec_ execloal_ query_
	ErrInvalidFuncPrefix = errors.New("chain33.js: invalid function prefix format")
	//ErrFuncNotFound 函数没有找到
	ErrFuncNotFound = errors.New("chain33.js: invalid function name not found")
	ErrSymbolName   = errors.New("chain33.js: ErrSymbolName")
	ErrExecerName   = errors.New("chain33.js: ErrExecerName")
	ErrDBType       = errors.New("chain33.js: ErrDBType")
	// ErrJsCreator
	ErrJsCreator = errors.New("ErrJsCreator")
)

错误常量

View Source
var JsX = "jsvm"

JsX 插件名字

Functions

func InitExecutor

func InitExecutor(cfg *types.Chain33Config)

InitExecutor ...

func InitFork

func InitFork(cfg *types.Chain33Config)

InitFork ...

Types

type JsType

type JsType struct {
	types.ExecTypeBase
}

JsType 类型

func NewType

func NewType(cfg *types.Chain33Config) *JsType

NewType 新建一个plugin 类型

func (*JsType) GetLogMap

func (t *JsType) GetLogMap() map[int64]*types.LogInfo

GetLogMap 获取日志映射

func (*JsType) GetPayload

func (t *JsType) GetPayload() types.Message

GetPayload 获取 交易构造

func (*JsType) GetTypeMap

func (t *JsType) GetTypeMap() map[string]int32

GetTypeMap 获取类型映射

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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