Documentation ¶
Index ¶
- Constants
- Variables
- type Multicall
- type MulticallCaller
- func (_Multicall *MulticallCaller) GetBalances(opts *bind.CallOpts, poolAddress common.Address, tokens []common.Address) ([]common.Address, []*big.Int, error)
- func (_Multicall *MulticallCaller) GetDecimals(opts *bind.CallOpts, tokens []common.Address) ([]common.Address, []uint8, error)
- func (_Multicall *MulticallCaller) GetDenormalizedWeights(opts *bind.CallOpts, poolAddress common.Address, tokens []common.Address) ([]common.Address, []*big.Int, error)
- func (_Multicall *MulticallCaller) GetSpotPrices(opts *bind.CallOpts, poolAddress common.Address, inTokens []common.Address, ...) ([]common.Address, []common.Address, []*big.Int, error)
- func (_Multicall *MulticallCaller) GetTotalSupplies(opts *bind.CallOpts, tokens []common.Address) ([]common.Address, []*big.Int, error)
- func (_Multicall *MulticallCaller) GetUsedBalances(opts *bind.CallOpts, poolAddress common.Address, tokens []common.Address) ([]common.Address, []*big.Int, error)
- func (_Multicall *MulticallCaller) PoolTokensFor(opts *bind.CallOpts, poolAddress common.Address) ([]common.Address, []string, error)
- type MulticallCallerRaw
- type MulticallCallerSession
- func (_Multicall *MulticallCallerSession) GetBalances(poolAddress common.Address, tokens []common.Address) ([]common.Address, []*big.Int, error)
- func (_Multicall *MulticallCallerSession) GetDecimals(tokens []common.Address) ([]common.Address, []uint8, error)
- func (_Multicall *MulticallCallerSession) GetDenormalizedWeights(poolAddress common.Address, tokens []common.Address) ([]common.Address, []*big.Int, error)
- func (_Multicall *MulticallCallerSession) GetSpotPrices(poolAddress common.Address, inTokens []common.Address, ...) ([]common.Address, []common.Address, []*big.Int, error)
- func (_Multicall *MulticallCallerSession) GetTotalSupplies(tokens []common.Address) ([]common.Address, []*big.Int, error)
- func (_Multicall *MulticallCallerSession) GetUsedBalances(poolAddress common.Address, tokens []common.Address) ([]common.Address, []*big.Int, error)
- func (_Multicall *MulticallCallerSession) PoolTokensFor(poolAddress common.Address) ([]common.Address, []string, error)
- type MulticallFilterer
- type MulticallRaw
- func (_Multicall *MulticallRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Multicall *MulticallRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Multicall *MulticallRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type MulticallSession
- func (_Multicall *MulticallSession) GetBalances(poolAddress common.Address, tokens []common.Address) ([]common.Address, []*big.Int, error)
- func (_Multicall *MulticallSession) GetDecimals(tokens []common.Address) ([]common.Address, []uint8, error)
- func (_Multicall *MulticallSession) GetDenormalizedWeights(poolAddress common.Address, tokens []common.Address) ([]common.Address, []*big.Int, error)
- func (_Multicall *MulticallSession) GetSpotPrices(poolAddress common.Address, inTokens []common.Address, ...) ([]common.Address, []common.Address, []*big.Int, error)
- func (_Multicall *MulticallSession) GetTotalSupplies(tokens []common.Address) ([]common.Address, []*big.Int, error)
- func (_Multicall *MulticallSession) GetUsedBalances(poolAddress common.Address, tokens []common.Address) ([]common.Address, []*big.Int, error)
- func (_Multicall *MulticallSession) PoolTokensFor(poolAddress common.Address) ([]common.Address, []string, error)
- type MulticallTransactor
- type MulticallTransactorRaw
- type MulticallTransactorSession
Constants ¶
const MulticallABI = "" /* 2726-byte string literal not displayed */
MulticallABI is the input ABI used to generate the binding from.
Variables ¶
var MulticallBin = "" /* 13492-byte string literal not displayed */
MulticallBin is the compiled bytecode used for deploying new contracts.
Functions ¶
This section is empty.
Types ¶
type Multicall ¶
type Multicall struct { MulticallCaller // Read-only binding to the contract MulticallTransactor // Write-only binding to the contract MulticallFilterer // Log filterer for contract events }
Multicall is an auto generated Go binding around an Ethereum contract.
func DeployMulticall ¶
func DeployMulticall(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Multicall, error)
DeployMulticall deploys a new Ethereum contract, binding an instance of Multicall to it.
func NewMulticall ¶
NewMulticall creates a new instance of Multicall, bound to a specific deployed contract.
type MulticallCaller ¶
type MulticallCaller struct {
// contains filtered or unexported fields
}
MulticallCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewMulticallCaller ¶
func NewMulticallCaller(address common.Address, caller bind.ContractCaller) (*MulticallCaller, error)
NewMulticallCaller creates a new read-only instance of Multicall, bound to a specific deployed contract.
func (*MulticallCaller) GetBalances ¶
func (_Multicall *MulticallCaller) GetBalances(opts *bind.CallOpts, poolAddress common.Address, tokens []common.Address) ([]common.Address, []*big.Int, error)
GetBalances is a free data retrieval call binding the contract method 0x6a385ae9.
Solidity: function getBalances(address poolAddress, address[] tokens) view returns(address[], uint256[])
func (*MulticallCaller) GetDecimals ¶
func (_Multicall *MulticallCaller) GetDecimals(opts *bind.CallOpts, tokens []common.Address) ([]common.Address, []uint8, error)
GetDecimals is a free data retrieval call binding the contract method 0xa826c114.
Solidity: function getDecimals(address[] tokens) view returns(address[], uint8[])
func (*MulticallCaller) GetDenormalizedWeights ¶
func (_Multicall *MulticallCaller) GetDenormalizedWeights(opts *bind.CallOpts, poolAddress common.Address, tokens []common.Address) ([]common.Address, []*big.Int, error)
GetDenormalizedWeights is a free data retrieval call binding the contract method 0xdb16d8ac.
Solidity: function getDenormalizedWeights(address poolAddress, address[] tokens) view returns(address[], uint256[])
func (*MulticallCaller) GetSpotPrices ¶
func (_Multicall *MulticallCaller) GetSpotPrices(opts *bind.CallOpts, poolAddress common.Address, inTokens []common.Address, outTokens []common.Address) ([]common.Address, []common.Address, []*big.Int, error)
GetSpotPrices is a free data retrieval call binding the contract method 0xf7a6b6b6.
Solidity: function getSpotPrices(address poolAddress, address[] inTokens, address[] outTokens) view returns(address[], address[], uint256[])
func (*MulticallCaller) GetTotalSupplies ¶
func (_Multicall *MulticallCaller) GetTotalSupplies(opts *bind.CallOpts, tokens []common.Address) ([]common.Address, []*big.Int, error)
GetTotalSupplies is a free data retrieval call binding the contract method 0x2dd43d89.
Solidity: function getTotalSupplies(address[] tokens) view returns(address[], uint256[])
func (*MulticallCaller) GetUsedBalances ¶
func (_Multicall *MulticallCaller) GetUsedBalances(opts *bind.CallOpts, poolAddress common.Address, tokens []common.Address) ([]common.Address, []*big.Int, error)
GetUsedBalances is a free data retrieval call binding the contract method 0x95d7710e.
Solidity: function getUsedBalances(address poolAddress, address[] tokens) view returns(address[], uint256[])
func (*MulticallCaller) PoolTokensFor ¶
func (_Multicall *MulticallCaller) PoolTokensFor(opts *bind.CallOpts, poolAddress common.Address) ([]common.Address, []string, error)
PoolTokensFor is a free data retrieval call binding the contract method 0xf8504f57.
Solidity: function poolTokensFor(address poolAddress) view returns(address[], string[])
type MulticallCallerRaw ¶
type MulticallCallerRaw struct {
Contract *MulticallCaller // Generic read-only contract binding to access the raw methods on
}
MulticallCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*MulticallCallerRaw) Call ¶
func (_Multicall *MulticallCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
type MulticallCallerSession ¶
type MulticallCallerSession struct { Contract *MulticallCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
MulticallCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*MulticallCallerSession) GetBalances ¶
func (_Multicall *MulticallCallerSession) GetBalances(poolAddress common.Address, tokens []common.Address) ([]common.Address, []*big.Int, error)
GetBalances is a free data retrieval call binding the contract method 0x6a385ae9.
Solidity: function getBalances(address poolAddress, address[] tokens) view returns(address[], uint256[])
func (*MulticallCallerSession) GetDecimals ¶
func (_Multicall *MulticallCallerSession) GetDecimals(tokens []common.Address) ([]common.Address, []uint8, error)
GetDecimals is a free data retrieval call binding the contract method 0xa826c114.
Solidity: function getDecimals(address[] tokens) view returns(address[], uint8[])
func (*MulticallCallerSession) GetDenormalizedWeights ¶
func (_Multicall *MulticallCallerSession) GetDenormalizedWeights(poolAddress common.Address, tokens []common.Address) ([]common.Address, []*big.Int, error)
GetDenormalizedWeights is a free data retrieval call binding the contract method 0xdb16d8ac.
Solidity: function getDenormalizedWeights(address poolAddress, address[] tokens) view returns(address[], uint256[])
func (*MulticallCallerSession) GetSpotPrices ¶
func (_Multicall *MulticallCallerSession) GetSpotPrices(poolAddress common.Address, inTokens []common.Address, outTokens []common.Address) ([]common.Address, []common.Address, []*big.Int, error)
GetSpotPrices is a free data retrieval call binding the contract method 0xf7a6b6b6.
Solidity: function getSpotPrices(address poolAddress, address[] inTokens, address[] outTokens) view returns(address[], address[], uint256[])
func (*MulticallCallerSession) GetTotalSupplies ¶
func (_Multicall *MulticallCallerSession) GetTotalSupplies(tokens []common.Address) ([]common.Address, []*big.Int, error)
GetTotalSupplies is a free data retrieval call binding the contract method 0x2dd43d89.
Solidity: function getTotalSupplies(address[] tokens) view returns(address[], uint256[])
func (*MulticallCallerSession) GetUsedBalances ¶
func (_Multicall *MulticallCallerSession) GetUsedBalances(poolAddress common.Address, tokens []common.Address) ([]common.Address, []*big.Int, error)
GetUsedBalances is a free data retrieval call binding the contract method 0x95d7710e.
Solidity: function getUsedBalances(address poolAddress, address[] tokens) view returns(address[], uint256[])
func (*MulticallCallerSession) PoolTokensFor ¶
func (_Multicall *MulticallCallerSession) PoolTokensFor(poolAddress common.Address) ([]common.Address, []string, error)
PoolTokensFor is a free data retrieval call binding the contract method 0xf8504f57.
Solidity: function poolTokensFor(address poolAddress) view returns(address[], string[])
type MulticallFilterer ¶
type MulticallFilterer struct {
// contains filtered or unexported fields
}
MulticallFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewMulticallFilterer ¶
func NewMulticallFilterer(address common.Address, filterer bind.ContractFilterer) (*MulticallFilterer, error)
NewMulticallFilterer creates a new log filterer instance of Multicall, bound to a specific deployed contract.
type MulticallRaw ¶
type MulticallRaw struct {
Contract *Multicall // Generic contract binding to access the raw methods on
}
MulticallRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*MulticallRaw) Call ¶
func (_Multicall *MulticallRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
func (*MulticallRaw) Transact ¶
func (_Multicall *MulticallRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*MulticallRaw) Transfer ¶
func (_Multicall *MulticallRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type MulticallSession ¶
type MulticallSession struct { Contract *Multicall // Generic contract binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
MulticallSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*MulticallSession) GetBalances ¶
func (_Multicall *MulticallSession) GetBalances(poolAddress common.Address, tokens []common.Address) ([]common.Address, []*big.Int, error)
GetBalances is a free data retrieval call binding the contract method 0x6a385ae9.
Solidity: function getBalances(address poolAddress, address[] tokens) view returns(address[], uint256[])
func (*MulticallSession) GetDecimals ¶
func (_Multicall *MulticallSession) GetDecimals(tokens []common.Address) ([]common.Address, []uint8, error)
GetDecimals is a free data retrieval call binding the contract method 0xa826c114.
Solidity: function getDecimals(address[] tokens) view returns(address[], uint8[])
func (*MulticallSession) GetDenormalizedWeights ¶
func (_Multicall *MulticallSession) GetDenormalizedWeights(poolAddress common.Address, tokens []common.Address) ([]common.Address, []*big.Int, error)
GetDenormalizedWeights is a free data retrieval call binding the contract method 0xdb16d8ac.
Solidity: function getDenormalizedWeights(address poolAddress, address[] tokens) view returns(address[], uint256[])
func (*MulticallSession) GetSpotPrices ¶
func (_Multicall *MulticallSession) GetSpotPrices(poolAddress common.Address, inTokens []common.Address, outTokens []common.Address) ([]common.Address, []common.Address, []*big.Int, error)
GetSpotPrices is a free data retrieval call binding the contract method 0xf7a6b6b6.
Solidity: function getSpotPrices(address poolAddress, address[] inTokens, address[] outTokens) view returns(address[], address[], uint256[])
func (*MulticallSession) GetTotalSupplies ¶
func (_Multicall *MulticallSession) GetTotalSupplies(tokens []common.Address) ([]common.Address, []*big.Int, error)
GetTotalSupplies is a free data retrieval call binding the contract method 0x2dd43d89.
Solidity: function getTotalSupplies(address[] tokens) view returns(address[], uint256[])
func (*MulticallSession) GetUsedBalances ¶
func (_Multicall *MulticallSession) GetUsedBalances(poolAddress common.Address, tokens []common.Address) ([]common.Address, []*big.Int, error)
GetUsedBalances is a free data retrieval call binding the contract method 0x95d7710e.
Solidity: function getUsedBalances(address poolAddress, address[] tokens) view returns(address[], uint256[])
func (*MulticallSession) PoolTokensFor ¶
func (_Multicall *MulticallSession) PoolTokensFor(poolAddress common.Address) ([]common.Address, []string, error)
PoolTokensFor is a free data retrieval call binding the contract method 0xf8504f57.
Solidity: function poolTokensFor(address poolAddress) view returns(address[], string[])
type MulticallTransactor ¶
type MulticallTransactor struct {
// contains filtered or unexported fields
}
MulticallTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewMulticallTransactor ¶
func NewMulticallTransactor(address common.Address, transactor bind.ContractTransactor) (*MulticallTransactor, error)
NewMulticallTransactor creates a new write-only instance of Multicall, bound to a specific deployed contract.
type MulticallTransactorRaw ¶
type MulticallTransactorRaw struct {
Contract *MulticallTransactor // Generic write-only contract binding to access the raw methods on
}
MulticallTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*MulticallTransactorRaw) Transact ¶
func (_Multicall *MulticallTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*MulticallTransactorRaw) Transfer ¶
func (_Multicall *MulticallTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type MulticallTransactorSession ¶
type MulticallTransactorSession struct { Contract *MulticallTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
MulticallTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.