Documentation ¶
Overview ¶
Package multicall provides a wrapper client around the SimpleMultiCall contract
Index ¶
- type Multicall
- func (m *Multicall) Close()
- func (m *Multicall) GetBalances(block uint64, pool string, tokens []string) ([]common.Address, []*big.Int, error)
- func (m *Multicall) GetBundle(block uint64, pool string, tokens []string) (bindings.SimpleMultiCallBundle, error)
- func (m *Multicall) GetBundles(block uint64, pools map[string][]string) ([]bindings.SimpleMultiCallBundle, error)
- func (m *Multicall) GetDenormalizedWeights(block uint64, pool string, tokens []string) ([]common.Address, []*big.Int, error)
- func (m *Multicall) GetSpotPrices(block uint64, pool string, tokensIn []string, tokensOut []string) ([]common.Address, []common.Address, []*big.Int, error)
- func (m *Multicall) GetTotalSupplies(block uint64, tokens []string) ([]common.Address, []*big.Int, error)
- func (m *Multicall) GetUsedBalances(block uint64, pool string, tokens []string) ([]common.Address, []*big.Int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Multicall ¶
type Multicall struct {
// contains filtered or unexported fields
}
Multicall exposes utility functions around the multicall contract
func (*Multicall) GetBalances ¶
func (m *Multicall) GetBalances( block uint64, pool string, tokens []string, ) ([]common.Address, []*big.Int, error)
GetBalances returns the balances of various tokens
func (*Multicall) GetBundles ¶ added in v1.0.0
func (*Multicall) GetDenormalizedWeights ¶
func (m *Multicall) GetDenormalizedWeights( block uint64, pool string, tokens []string, ) ([]common.Address, []*big.Int, error)
GetDenormalizedWeights returns the denormalized weights of all given tokens
func (*Multicall) GetSpotPrices ¶
func (m *Multicall) GetSpotPrices( block uint64, pool string, tokensIn []string, tokensOut []string, ) ([]common.Address, []common.Address, []*big.Int, error)
GetSpotPrices returns the spot prices of various in/out pairs
Click to show internal directories.
Click to hide internal directories.