abi

package
v0.0.0-...-04e8dd1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownMethod            = errors.New("unknown transaction method")
	ErrInsufficientInputAmount  = errors.New("insufficient input amount")
	ErrInsufficientOutputAmount = errors.New("insufficient output amount")
)
View Source
var (
	SwapExactETHForTokensID = [4]byte{0x7f, 0xf3, 0x6a, 0xb5}
	SwapETHForExactTokensID = [4]byte{0xfb, 0x3b, 0xdb, 0x41}
)

Functions

This section is empty.

Types

type TxDat

type TxDat struct {
	AmountIn  *big.Int
	AmountOut *big.Int
	TokenIn   common.Address
	TokenOut  common.Address
	Path      []common.Address
}

func Decode

func Decode(tx *types.Transaction) (TxDat, error)

Jump to

Keyboard shortcuts

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