evmtypes

package
v0.5.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultGasRatio = util.Ratio32{A: 1, B: 1}

<ISC gas> = <EVM Gas> * <A> / <B>

Functions

func DecodeBlock

func DecodeBlock(b []byte) (*types.Block, error)

func DecodeCallMsg

func DecodeCallMsg(callArgsBytes []byte) (ret ethereum.CallMsg, err error)

func DecodeChainID added in v0.3.0

func DecodeChainID(b []byte, def ...uint16) (uint16, error)

func DecodeFilterQuery

func DecodeFilterQuery(b []byte) (*ethereum.FilterQuery, error)

func DecodeGenesisAlloc

func DecodeGenesisAlloc(b []byte) (core.GenesisAlloc, error)

func DecodeLog

func DecodeLog(b []byte, includeDerivedFields bool) (*types.Log, error)

func DecodeLogs

func DecodeLogs(b []byte) ([]*types.Log, error)

func DecodeReceipt

func DecodeReceipt(b []byte) (*types.Receipt, error)

func DecodeReceiptFull

func DecodeReceiptFull(receiptBytes []byte) (*types.Receipt, error)

func DecodeTransaction

func DecodeTransaction(b []byte) (*types.Transaction, error)

func EVMGasToISC added in v0.3.0

func EVMGasToISC(evmGas uint64, gasRatio *util.Ratio32) uint64

func EncodeBlock

func EncodeBlock(block *types.Block) []byte

func EncodeCallMsg

func EncodeCallMsg(c ethereum.CallMsg) []byte

func EncodeChainID added in v0.3.0

func EncodeChainID(chainID uint16) []byte

func EncodeFilterQuery

func EncodeFilterQuery(q *ethereum.FilterQuery) []byte

func EncodeGenesisAlloc

func EncodeGenesisAlloc(alloc core.GenesisAlloc) []byte

func EncodeLog

func EncodeLog(log *types.Log, includeDerivedFields bool) []byte

func EncodeLogs

func EncodeLogs(logs []*types.Log) []byte

func EncodeReceipt

func EncodeReceipt(receipt *types.Receipt) []byte

EncodeReceipt serializes the receipt in RLP format

func EncodeReceiptFull

func EncodeReceiptFull(r *types.Receipt) []byte

EncodeReceiptFull encodes the receipt including fields not serialized by EncodeReceipt

func EncodeTransaction

func EncodeTransaction(tx *types.Transaction) []byte

func ISCGasBudgetToEVM added in v0.3.0

func ISCGasBudgetToEVM(iscGasBudget uint64, gasRatio *util.Ratio32) uint64

func ISCGasBurnedToEVM added in v0.3.0

func ISCGasBurnedToEVM(iscGasBurned uint64, gasRatio *util.Ratio32) uint64

func MustDecodeChainID added in v0.3.0

func MustDecodeChainID(b []byte, def ...uint16) uint16

Types

This section is empty.

Jump to

Keyboard shortcuts

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