olvm

package
v0.18.15 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const HandlerName = "olvm"

Variables

This section is empty.

Functions

func EnableOLVM

func EnableOLVM(r action.Router) error

func ResponseFailed

func ResponseFailed(tags kv.Pairs, err error, gasUsed int64) (bool, action.Response)

func ResponseSuccess

func ResponseSuccess(events []types.Event, gasUsed int64) (bool, action.Response)

Types

type Transaction

type Transaction struct {
	Nonce   uint64          `json:"nonce"`
	From    action.Address  `json:"from"`
	To      *action.Address `json:"to"`
	Amount  action.Amount   `json:"amount"`
	Data    []byte          `json:"data"`
	ChainID *big.Int        `json:"chainID"`
	// for future
	TxType     int64                `json:"type"`
	AccessList *ethtypes.AccessList `json:"accessList"`
}

func (Transaction) Marshal

func (tx Transaction) Marshal() ([]byte, error)

func (Transaction) Signers

func (tx Transaction) Signers() []action.Address

func (Transaction) Tags

func (tx Transaction) Tags() kv.Pairs

func (Transaction) Type

func (tx Transaction) Type() action.Type

func (*Transaction) Unmarshal

func (tx *Transaction) Unmarshal(data []byte) error

Jump to

Keyboard shortcuts

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