precompiled

package
v0.0.0-...-8f649d9 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Precompiled

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

Precompiled is the runtime for the precompiled contracts

func NewPrecompiled

func NewPrecompiled() *Precompiled

NewPrecompiled creates a new runtime for the precompiled contracts

func (*Precompiled) CanRun

func (p *Precompiled) CanRun(c *runtime.Contract, host runtime.Host, config *chain.ForksInTime) bool

CanRun implements the runtime interface

func (*Precompiled) Name

func (p *Precompiled) Name() string

Name implements the runtime interface

func (*Precompiled) Run

func (p *Precompiled) Run(c *runtime.Contract, host runtime.Host, config *chain.ForksInTime) ([]byte, uint64, error)

Run runs an execution

Jump to

Keyboard shortcuts

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