Documentation ¶
Index ¶
- Variables
- type Pool
- type PoolOpts
- type PoolState
- type UniswapV3
- func (v3 *UniswapV3) GetPool(ctx context.Context, token0, token1 string, fee int64) (*Pool, error)
- func (v3 *UniswapV3) GetPoolAddress(ctx context.Context, token0, token1 string, fee int64) (common.Address, error)
- func (v3 *UniswapV3) GetPrice(ctx context.Context, token0, token1 string, fee int64) (float64, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrPoolNotFound = errors.New("uniswap v3 factory: pool not found")
)
View Source
var (
ErrWrongToken = errors.New("uniswap v3 pool: PriceOf: token not in pool")
)
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct { Name string Address common.Address Immutables PoolOpts State PoolState // contains filtered or unexported fields }
type UniswapV3 ¶
type UniswapV3 struct { Client *ethclient.Client Factory *univ3factory.Univ3factoryCaller // contains filtered or unexported fields }
func (*UniswapV3) GetPoolAddress ¶
Click to show internal directories.
Click to hide internal directories.