reflection

package
Version: v0.1.39 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BytesMethod transactionMethodType = iota
	ByteConvertibleMethod
	BigIntMethod
	Uint64Method
)
View Source
const (
	TransactionNonceMethod     transactionMethod = "Nonce"
	TransactionGasPriceMethod  transactionMethod = "GasPrice"
	TransactionGasTipCapMethod transactionMethod = "GasTipCap"
	TransactionGasFeeCapMethod transactionMethod = "GasFeeCap"
	TransactionGasMethod       transactionMethod = "Gas"
	TransactionValueMethod     transactionMethod = "Value"
	TransactionDataMethod      transactionMethod = "Data"
	TransactionToAddressMethod transactionMethod = "To"
	TransactionChainMethod     transactionMethod = "ChainId"
	TransactionHashMethod      transactionMethod = "Hash"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MethodDetail

type MethodDetail interface {
	Type() transactionMethodType
	Error() errno.Error
	IsBytesMethod() bool
	IsUint64Method() bool
}

func ReflectiveTransaction

func ReflectiveTransaction(method string) (MethodDetail, error)

ReflectiveTransaction takes a method name for corresponding to a Transaction object's allowed methods. Returns method detail containing methods defining internal usage handling.

Jump to

Keyboard shortcuts

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