Versions in this module Expand all Collapse all v0 v0.1.1 Jul 4, 2026 Changes in this version + const Uint24Max + const Uint24Size + var FactoryAddress = common.HexToAddress("0x1F98431c8aD98523631AE4a59f267346ea31F984") + var PoolInitCodeHash = common.HexToHash("0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54") + func AppendUint24(b []byte, v uint32) []byte + func ComputePoolAddress(key PoolKey) common.Address + func ReadUint24(b []byte) uint32 + func WriteUint24(dst []byte, v uint32) + type PoolKey [common.AddressLength*2 + Uint24Size]byte + func NewPoolKey(token0, token1 common.Address, fee uint32) PoolKey + func (p PoolKey) Fee() uint32 + func (p PoolKey) String() string + func (p PoolKey) Token0() common.Address + func (p PoolKey) Token1() common.Address + type SwapPath []byte + func (s SwapPath) DecodeFirstPool() (tokenIn common.Address, tokenOut common.Address, fee uint32) + func (s SwapPath) FeeAt(pos int) uint32 + func (s SwapPath) HasMultiplePools() bool + func (s SwapPath) NumPools() int + func (s SwapPath) Pools() []PoolKey + func (s SwapPath) SkipToken() SwapPath + func (s SwapPath) String() string + func (s SwapPath) TokenAt(pos int) common.Address + type SwapPathBuilder interface + From func(common.Address) SwapPathBuilderSetFee + func NewPathBuilder() SwapPathBuilder + type SwapPathBuilderSetFee interface + Fee func(uint32) SwapPathBuilderSetNext + type SwapPathBuilderSetNext interface + Hop func(common.Address) SwapPathBuilderSetFee + To func(common.Address) SwapPath v0.1.0 Jul 4, 2026