evm

package
v0.0.0-...-3b47f62 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeDriver

type CodeDriver struct {
	// contains filtered or unexported fields
}

func NewCodeDriver

func NewCodeDriver(codeDir string) *CodeDriver

func (CodeDriver) GetInstance

func (drv CodeDriver) GetInstance(codeID []byte) (common.Chaincode, error)

func (CodeDriver) Install

func (drv CodeDriver) Install(codeID, data []byte) error

type Input

type Input struct {
	Method string        `json:"method"`
	Params []interface{} `json:"params"`
	Types  []string      `json:"types"`
}

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(jsonABI, hexCode string, store storage.PersistStore, ctx common.CallContext) *Runner

func (*Runner) Init

func (r *Runner) Init(ctx common.CallContext) error

Init deploys the solidity contract and binds the eth address.

func (*Runner) Invoke

func (r *Runner) Invoke(ctx common.CallContext) error

func (*Runner) Query

func (r *Runner) Query(ctx common.CallContext) ([]byte, error)

Jump to

Keyboard shortcuts

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