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: 0

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