logicrunner

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package logicrunner - infrastructure for executing smartcontracts

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

type Arguments []byte

Arguments is a dedicated type for arguments, that represented as bynary cbored blob

type LogicRunner

type LogicRunner interface {
	Start()
	Stop()
	Exec(object Object, method string, args Arguments) (ret Arguments, err error)
}

LogicRunner is a general interface of contract executor

type MachineType

type MachineType int

MachineType is a type of virtual machine

const (
	MachineTypeBuiltin MachineType = iota
	MachineTypeGoPlugin
)

Real constants of MachineType

type Object

type Object struct {
	MachineType MachineType
	Reference   Reference
	Data        []byte
}

Object is an inner representation of storage object for transfwering it over API

type Reference

type Reference string

Reference is a contract address

Directories

Path Synopsis
Package goplugin - golang plugin in docker runner
Package goplugin - golang plugin in docker runner
testplugins/foundation
Package foundation emulates foundation of types for golang contracts
Package foundation emulates foundation of types for golang contracts

Jump to

Keyboard shortcuts

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