Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) GetFactory(pool common.Address) (common.Address, error)
- func (c *Client) GetFee(pool common.Address) (*big.Int, error)
- func (c *Client) GetLiquidityFromPool(pool common.Address) (*big.Int, error)
- func (c *Client) GetLiquidityInBlockFromPool(pool common.Address, bn int64) (*big.Int, error)
- func (c *Client) GetTokens(pool common.Address) ([]common.Address, error)
Constants ¶
View Source
const ( Ethereum = iota Base BSC Unsupported )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client allows to do operations on uniswap smart contracts.
func NewClient ¶
func NewClient(bc utils.Blockchain, chain int) *Client
NewClient returns a new instance of uniswap client.
func (*Client) GetFactory ¶
GetFactory returns the factory address for a given pool
func (*Client) GetLiquidityFromPool ¶
GetLiquidityFromPool returns the liquidity of the pool.
func (*Client) GetLiquidityInBlockFromPool ¶
GetLiquidityInBlockFromPool returns the liquidity of the pool in a given block.
Click to show internal directories.
Click to hide internal directories.