builtin

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 7 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
	EB       core.MessageBus
	Registry map[string]Contract
}

BuiltIn is a contract runner engine

func NewBuiltIn

func NewBuiltIn(eb core.MessageBus, am core.ArtifactManager) *BuiltIn

NewBuiltIn is an constructor

func (*BuiltIn) CallConstructor

func (bi *BuiltIn) CallConstructor(ctx context.Context, callCtx *core.LogicCallContext, code core.RecordRef, name string, args core.Arguments) (objectState []byte, err error)

func (*BuiltIn) CallMethod

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

CallMethod runs a method on contract

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