builtin

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package builtin is implementation of builtin contracts engine

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuiltIn

type BuiltIn struct {
	AM core.ArtifactManager
	MR core.MessageRouter
	// contains filtered or unexported fields
}

BuiltIn is a contract runner engine

func NewBuiltIn

func NewBuiltIn(am core.ArtifactManager, mr core.MessageRouter) *BuiltIn

NewBuiltIn is an constructor

func (*BuiltIn) CallConstructor

func (bi *BuiltIn) CallConstructor(codeRef core.RecordRef, name string, args core.Arguments) (objectState []byte, err error)

func (*BuiltIn) CallMethod

func (bi *BuiltIn) CallMethod(codeRef core.RecordRef, data []byte, method string, args core.Arguments) (newObjectState []byte, methodResults core.Arguments, err error)

func (*BuiltIn) Exec

func (bi *BuiltIn) Exec(codeRef core.RecordRef, data []byte, method string, args core.Arguments) (newObjectState []byte, methodResults core.Arguments, err error)

Exec is an implementation for logicrunner Executor interface

func (*BuiltIn) Stop

func (bi *BuiltIn) Stop() error

type Contract

type Contract interface {
}

Contract is a interface for builtin contract

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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