uniswap

package
v0.0.0-...-da9fee4 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPoolAddress

func GetPoolAddress(tokenIn, tokenOut common.Address, nodeUrl string) common.Address

Types

type PairHandlerWrapper

type PairHandlerWrapper struct {
	pairs.PairHandler
}

PairHandlerWrapper wraps pairs.PairHandler to allow method definitions

type QuoteResponse

type QuoteResponse struct {
	ID        string `json:"id"`
	TokenIn   string `json:"tokenIn"`
	TokenOut  string `json:"tokenOut"`
	AmountIn  string `json:"amountIn"`
	AmountOut string `json:"amountOut"`
}

func Quote

func Quote(tokenA, tokenB common.Address, amount big.Int, nodeUrl string) []QuoteResponse

Jump to

Keyboard shortcuts

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