Documentation ¶
Index ¶
- Variables
- type PoolDataTypesPoolParams
- type StapleProvider
- type StapleProviderCaller
- func (_StapleProvider *StapleProviderCaller) Controller(opts *bind.CallOpts) (common.Address, error)
- func (_StapleProvider *StapleProviderCaller) GetAllPools(opts *bind.CallOpts) ([]UIDataTypesPool, error)
- func (_StapleProvider *StapleProviderCaller) GetAllUnderlyings(opts *bind.CallOpts) ([]common.Address, error)
- func (_StapleProvider *StapleProviderCaller) GetDz(opts *bind.CallOpts, user common.Address, tokenIn common.Address, ...) (*big.Int, error)
- func (_StapleProvider *StapleProviderCaller) GetDzWithoutPrices(opts *bind.CallOpts, user common.Address, tokenIn common.Address, ...) (*big.Int, error)
- func (_StapleProvider *StapleProviderCaller) GetPool(opts *bind.CallOpts, poolID *big.Int) (UIDataTypesPool, error)
- func (_StapleProvider *StapleProviderCaller) GetPools(opts *bind.CallOpts, idList []*big.Int) ([]UIDataTypesPool, error)
- func (_StapleProvider *StapleProviderCaller) GetTokensByPath(opts *bind.CallOpts, tokenIn common.Address, path []*big.Int) ([]common.Address, error)
- func (_StapleProvider *StapleProviderCaller) GetVtpIDsByUnderlying(opts *bind.CallOpts, token0 common.Address, token1 common.Address) ([]*big.Int, error)
- func (_StapleProvider *StapleProviderCaller) IncentivesController(opts *bind.CallOpts) (common.Address, error)
- func (_StapleProvider *StapleProviderCaller) UserInfo(opts *bind.CallOpts, user common.Address) ([]UIDataTypesUserPoolInfo, error)
- func (_StapleProvider *StapleProviderCaller) UserPoolInfo(opts *bind.CallOpts, user common.Address, underlying common.Address) (UIDataTypesUserPoolInfo, error)
- func (_StapleProvider *StapleProviderCaller) UserVtpTokenIncentives(opts *bind.CallOpts, user common.Address, underlying common.Address, ...) ([]UIDataTypesUserIncentivesInfo, error)
- type StapleProviderCallerRaw
- type StapleProviderCallerSession
- func (_StapleProvider *StapleProviderCallerSession) Controller() (common.Address, error)
- func (_StapleProvider *StapleProviderCallerSession) GetAllPools() ([]UIDataTypesPool, error)
- func (_StapleProvider *StapleProviderCallerSession) GetAllUnderlyings() ([]common.Address, error)
- func (_StapleProvider *StapleProviderCallerSession) GetDz(user common.Address, tokenIn common.Address, path []*big.Int, amount *big.Int, ...) (*big.Int, error)
- func (_StapleProvider *StapleProviderCallerSession) GetDzWithoutPrices(user common.Address, tokenIn common.Address, path []*big.Int, amount *big.Int) (*big.Int, error)
- func (_StapleProvider *StapleProviderCallerSession) GetPool(poolID *big.Int) (UIDataTypesPool, error)
- func (_StapleProvider *StapleProviderCallerSession) GetPools(idList []*big.Int) ([]UIDataTypesPool, error)
- func (_StapleProvider *StapleProviderCallerSession) GetTokensByPath(tokenIn common.Address, path []*big.Int) ([]common.Address, error)
- func (_StapleProvider *StapleProviderCallerSession) GetVtpIDsByUnderlying(token0 common.Address, token1 common.Address) ([]*big.Int, error)
- func (_StapleProvider *StapleProviderCallerSession) IncentivesController() (common.Address, error)
- func (_StapleProvider *StapleProviderCallerSession) UserInfo(user common.Address) ([]UIDataTypesUserPoolInfo, error)
- func (_StapleProvider *StapleProviderCallerSession) UserPoolInfo(user common.Address, underlying common.Address) (UIDataTypesUserPoolInfo, error)
- func (_StapleProvider *StapleProviderCallerSession) UserVtpTokenIncentives(user common.Address, underlying common.Address, vtpID *big.Int) ([]UIDataTypesUserIncentivesInfo, error)
- type StapleProviderFilterer
- type StapleProviderRaw
- func (_StapleProvider *StapleProviderRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_StapleProvider *StapleProviderRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_StapleProvider *StapleProviderRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type StapleProviderSession
- func (_StapleProvider *StapleProviderSession) Controller() (common.Address, error)
- func (_StapleProvider *StapleProviderSession) GetAllPools() ([]UIDataTypesPool, error)
- func (_StapleProvider *StapleProviderSession) GetAllUnderlyings() ([]common.Address, error)
- func (_StapleProvider *StapleProviderSession) GetDz(user common.Address, tokenIn common.Address, path []*big.Int, amount *big.Int, ...) (*big.Int, error)
- func (_StapleProvider *StapleProviderSession) GetDzWithoutPrices(user common.Address, tokenIn common.Address, path []*big.Int, amount *big.Int) (*big.Int, error)
- func (_StapleProvider *StapleProviderSession) GetPool(poolID *big.Int) (UIDataTypesPool, error)
- func (_StapleProvider *StapleProviderSession) GetPools(idList []*big.Int) ([]UIDataTypesPool, error)
- func (_StapleProvider *StapleProviderSession) GetTokensByPath(tokenIn common.Address, path []*big.Int) ([]common.Address, error)
- func (_StapleProvider *StapleProviderSession) GetVtpIDsByUnderlying(token0 common.Address, token1 common.Address) ([]*big.Int, error)
- func (_StapleProvider *StapleProviderSession) IncentivesController() (common.Address, error)
- func (_StapleProvider *StapleProviderSession) UserInfo(user common.Address) ([]UIDataTypesUserPoolInfo, error)
- func (_StapleProvider *StapleProviderSession) UserPoolInfo(user common.Address, underlying common.Address) (UIDataTypesUserPoolInfo, error)
- func (_StapleProvider *StapleProviderSession) UserVtpTokenIncentives(user common.Address, underlying common.Address, vtpID *big.Int) ([]UIDataTypesUserIncentivesInfo, error)
- type StapleProviderTransactor
- type StapleProviderTransactorRaw
- type StapleProviderTransactorSession
- type UIDataTypesPool
- type UIDataTypesPoolStatus
- type UIDataTypesUserIncentivesInfo
- type UIDataTypesUserPoolInfo
- type UIDataTypesUserVtpTokenInfo
Constants ¶
This section is empty.
Variables ¶
var StapleProviderABI = StapleProviderMetaData.ABI
StapleProviderABI is the input ABI used to generate the binding from. Deprecated: Use StapleProviderMetaData.ABI instead.
var StapleProviderMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"name\":\"controller\",\"outputs\":[{\"internalType\":\"contractIControllerEx\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAllPools\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"lpAddr\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"underlyingDecimals\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"tl\",\"type\":\"uint8\"},{\"internalType\":\"uint256[]\",\"name\":\"relatedVtps\",\"type\":\"uint256[]\"}],\"internalType\":\"structPoolDataTypes.PoolParams\",\"name\":\"params\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"asset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liability\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"invested\",\"type\":\"uint256\"}],\"internalType\":\"structUIDataTypes.PoolStatus\",\"name\":\"status\",\"type\":\"tuple\"}],\"internalType\":\"structUIDataTypes.Pool[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAllUnderlyings\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"path\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"prices\",\"type\":\"uint256[]\"}],\"name\":\"getDz\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"path\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"getDzWithoutPrices\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"poolID\",\"type\":\"uint256\"}],\"name\":\"getPool\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"lpAddr\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"underlyingDecimals\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"tl\",\"type\":\"uint8\"},{\"internalType\":\"uint256[]\",\"name\":\"relatedVtps\",\"type\":\"uint256[]\"}],\"internalType\":\"structPoolDataTypes.PoolParams\",\"name\":\"params\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"asset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liability\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"invested\",\"type\":\"uint256\"}],\"internalType\":\"structUIDataTypes.PoolStatus\",\"name\":\"status\",\"type\":\"tuple\"}],\"internalType\":\"structUIDataTypes.Pool\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"idList\",\"type\":\"uint256[]\"}],\"name\":\"getPools\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"lpAddr\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"underlyingDecimals\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"tl\",\"type\":\"uint8\"},{\"internalType\":\"uint256[]\",\"name\":\"relatedVtps\",\"type\":\"uint256[]\"}],\"internalType\":\"structPoolDataTypes.PoolParams\",\"name\":\"params\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"asset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liability\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"invested\",\"type\":\"uint256\"}],\"internalType\":\"structUIDataTypes.PoolStatus\",\"name\":\"status\",\"type\":\"tuple\"}],\"internalType\":\"structUIDataTypes.Pool[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"path\",\"type\":\"uint256[]\"}],\"name\":\"getTokensByPath\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"tokens\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"}],\"name\":\"getVtpIDsByUnderlying\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"incentivesController\",\"outputs\":[{\"internalType\":\"contractIIncentivesController\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"userInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deposition\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liability\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"unlockedLp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"unlockedUnderlying\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalCredits\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"creditUsed\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"allocatedVtps\",\"type\":\"uint256[]\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"alloction\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"alloctedRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxDeallocateRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewards\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"decimals\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"startTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"emissionPerTick\",\"type\":\"uint256\"}],\"internalType\":\"structUIDataTypes.UserIncentivesInfo[]\",\"name\":\"incentives\",\"type\":\"tuple[]\"}],\"internalType\":\"structUIDataTypes.UserVtpTokenInfo[]\",\"name\":\"userVtps\",\"type\":\"tuple[]\"},{\"internalType\":\"uint256\",\"name\":\"allRewards\",\"type\":\"uint256\"}],\"internalType\":\"structUIDataTypes.UserPoolInfo[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"}],\"name\":\"userPoolInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deposition\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liability\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"unlockedLp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"unlockedUnderlying\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalCredits\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"creditUsed\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"allocatedVtps\",\"type\":\"uint256[]\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"alloction\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"alloctedRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxDeallocateRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewards\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"decimals\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"startTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"emissionPerTick\",\"type\":\"uint256\"}],\"internalType\":\"structUIDataTypes.UserIncentivesInfo[]\",\"name\":\"incentives\",\"type\":\"tuple[]\"}],\"internalType\":\"structUIDataTypes.UserVtpTokenInfo[]\",\"name\":\"userVtps\",\"type\":\"tuple[]\"},{\"internalType\":\"uint256\",\"name\":\"allRewards\",\"type\":\"uint256\"}],\"internalType\":\"structUIDataTypes.UserPoolInfo\",\"name\":\"userPoolInfo\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"}],\"name\":\"userVtpTokenIncentives\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"decimals\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"startTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"emissionPerTick\",\"type\":\"uint256\"}],\"internalType\":\"structUIDataTypes.UserIncentivesInfo[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
StapleProviderMetaData contains all meta data concerning the StapleProvider contract.
Functions ¶
This section is empty.
Types ¶
type PoolDataTypesPoolParams ¶
type PoolDataTypesPoolParams struct { Id *big.Int Underlying common.Address LpAddr common.Address UnderlyingDecimals uint8 Tl uint8 RelatedVtps []*big.Int }
PoolDataTypesPoolParams is an auto generated low-level Go binding around an user-defined struct.
type StapleProvider ¶
type StapleProvider struct { StapleProviderCaller // Read-only binding to the contract StapleProviderTransactor // Write-only binding to the contract StapleProviderFilterer // Log filterer for contract events }
StapleProvider is an auto generated Go binding around an Ethereum contract.
func NewStapleProvider ¶
func NewStapleProvider(address common.Address, backend bind.ContractBackend) (*StapleProvider, error)
NewStapleProvider creates a new instance of StapleProvider, bound to a specific deployed contract.
type StapleProviderCaller ¶
type StapleProviderCaller struct {
// contains filtered or unexported fields
}
StapleProviderCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewStapleProviderCaller ¶
func NewStapleProviderCaller(address common.Address, caller bind.ContractCaller) (*StapleProviderCaller, error)
NewStapleProviderCaller creates a new read-only instance of StapleProvider, bound to a specific deployed contract.
func (*StapleProviderCaller) Controller ¶
func (_StapleProvider *StapleProviderCaller) Controller(opts *bind.CallOpts) (common.Address, error)
Controller is a free data retrieval call binding the contract method 0xf77c4791.
Solidity: function controller() view returns(address)
func (*StapleProviderCaller) GetAllPools ¶
func (_StapleProvider *StapleProviderCaller) GetAllPools(opts *bind.CallOpts) ([]UIDataTypesPool, error)
GetAllPools is a free data retrieval call binding the contract method 0xd88ff1f4.
Solidity: function getAllPools() view returns(((uint256,address,address,uint8,uint8,uint256[]),(uint256,uint256,uint256))[])
func (*StapleProviderCaller) GetAllUnderlyings ¶
func (_StapleProvider *StapleProviderCaller) GetAllUnderlyings(opts *bind.CallOpts) ([]common.Address, error)
GetAllUnderlyings is a free data retrieval call binding the contract method 0xc3f80bc4.
Solidity: function getAllUnderlyings() view returns(address[])
func (*StapleProviderCaller) GetDz ¶
func (_StapleProvider *StapleProviderCaller) GetDz(opts *bind.CallOpts, user common.Address, tokenIn common.Address, path []*big.Int, amount *big.Int, prices []*big.Int) (*big.Int, error)
GetDz is a free data retrieval call binding the contract method 0x579eda78.
Solidity: function getDz(address user, address tokenIn, uint256[] path, uint256 amount, uint256[] prices) view returns(uint256)
func (*StapleProviderCaller) GetDzWithoutPrices ¶
func (_StapleProvider *StapleProviderCaller) GetDzWithoutPrices(opts *bind.CallOpts, user common.Address, tokenIn common.Address, path []*big.Int, amount *big.Int) (*big.Int, error)
GetDzWithoutPrices is a free data retrieval call binding the contract method 0x5e7d1a9f.
Solidity: function getDzWithoutPrices(address user, address tokenIn, uint256[] path, uint256 amount) view returns(uint256)
func (*StapleProviderCaller) GetPool ¶
func (_StapleProvider *StapleProviderCaller) GetPool(opts *bind.CallOpts, poolID *big.Int) (UIDataTypesPool, error)
GetPool is a free data retrieval call binding the contract method 0x068bcd8d.
Solidity: function getPool(uint256 poolID) view returns(((uint256,address,address,uint8,uint8,uint256[]),(uint256,uint256,uint256)))
func (*StapleProviderCaller) GetPools ¶
func (_StapleProvider *StapleProviderCaller) GetPools(opts *bind.CallOpts, idList []*big.Int) ([]UIDataTypesPool, error)
GetPools is a free data retrieval call binding the contract method 0x2952dde8.
Solidity: function getPools(uint256[] idList) view returns(((uint256,address,address,uint8,uint8,uint256[]),(uint256,uint256,uint256))[])
func (*StapleProviderCaller) GetTokensByPath ¶
func (_StapleProvider *StapleProviderCaller) GetTokensByPath(opts *bind.CallOpts, tokenIn common.Address, path []*big.Int) ([]common.Address, error)
GetTokensByPath is a free data retrieval call binding the contract method 0x01ae405a.
Solidity: function getTokensByPath(address tokenIn, uint256[] path) view returns(address[] tokens)
func (*StapleProviderCaller) GetVtpIDsByUnderlying ¶
func (_StapleProvider *StapleProviderCaller) GetVtpIDsByUnderlying(opts *bind.CallOpts, token0 common.Address, token1 common.Address) ([]*big.Int, error)
GetVtpIDsByUnderlying is a free data retrieval call binding the contract method 0xb29eaf44.
Solidity: function getVtpIDsByUnderlying(address token0, address token1) view returns(uint256[])
func (*StapleProviderCaller) IncentivesController ¶
func (_StapleProvider *StapleProviderCaller) IncentivesController(opts *bind.CallOpts) (common.Address, error)
IncentivesController is a free data retrieval call binding the contract method 0xaf1df255.
Solidity: function incentivesController() view returns(address)
func (*StapleProviderCaller) UserInfo ¶
func (_StapleProvider *StapleProviderCaller) UserInfo(opts *bind.CallOpts, user common.Address) ([]UIDataTypesUserPoolInfo, error)
UserInfo is a free data retrieval call binding the contract method 0x1959a002.
Solidity: function userInfo(address user) view returns((address,uint256,uint256,uint256,uint256,uint256,uint256,uint256[],(uint256,uint256,uint256,uint256,uint256,uint256,(address,string,uint256,uint256,uint256,uint256,uint256)[])[],uint256)[])
func (*StapleProviderCaller) UserPoolInfo ¶
func (_StapleProvider *StapleProviderCaller) UserPoolInfo(opts *bind.CallOpts, user common.Address, underlying common.Address) (UIDataTypesUserPoolInfo, error)
UserPoolInfo is a free data retrieval call binding the contract method 0x81a48cbd.
Solidity: function userPoolInfo(address user, address underlying) view returns((address,uint256,uint256,uint256,uint256,uint256,uint256,uint256[],(uint256,uint256,uint256,uint256,uint256,uint256,(address,string,uint256,uint256,uint256,uint256,uint256)[])[],uint256) userPoolInfo)
func (*StapleProviderCaller) UserVtpTokenIncentives ¶
func (_StapleProvider *StapleProviderCaller) UserVtpTokenIncentives(opts *bind.CallOpts, user common.Address, underlying common.Address, vtpID *big.Int) ([]UIDataTypesUserIncentivesInfo, error)
UserVtpTokenIncentives is a free data retrieval call binding the contract method 0x31499fc8.
Solidity: function userVtpTokenIncentives(address user, address underlying, uint256 vtpID) view returns((address,string,uint256,uint256,uint256,uint256,uint256)[])
type StapleProviderCallerRaw ¶
type StapleProviderCallerRaw struct {
Contract *StapleProviderCaller // Generic read-only contract binding to access the raw methods on
}
StapleProviderCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*StapleProviderCallerRaw) Call ¶
func (_StapleProvider *StapleProviderCallerRaw) 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 StapleProviderCallerSession ¶
type StapleProviderCallerSession struct { Contract *StapleProviderCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
StapleProviderCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*StapleProviderCallerSession) Controller ¶
func (_StapleProvider *StapleProviderCallerSession) Controller() (common.Address, error)
Controller is a free data retrieval call binding the contract method 0xf77c4791.
Solidity: function controller() view returns(address)
func (*StapleProviderCallerSession) GetAllPools ¶
func (_StapleProvider *StapleProviderCallerSession) GetAllPools() ([]UIDataTypesPool, error)
GetAllPools is a free data retrieval call binding the contract method 0xd88ff1f4.
Solidity: function getAllPools() view returns(((uint256,address,address,uint8,uint8,uint256[]),(uint256,uint256,uint256))[])
func (*StapleProviderCallerSession) GetAllUnderlyings ¶
func (_StapleProvider *StapleProviderCallerSession) GetAllUnderlyings() ([]common.Address, error)
GetAllUnderlyings is a free data retrieval call binding the contract method 0xc3f80bc4.
Solidity: function getAllUnderlyings() view returns(address[])
func (*StapleProviderCallerSession) GetDz ¶
func (_StapleProvider *StapleProviderCallerSession) GetDz(user common.Address, tokenIn common.Address, path []*big.Int, amount *big.Int, prices []*big.Int) (*big.Int, error)
GetDz is a free data retrieval call binding the contract method 0x579eda78.
Solidity: function getDz(address user, address tokenIn, uint256[] path, uint256 amount, uint256[] prices) view returns(uint256)
func (*StapleProviderCallerSession) GetDzWithoutPrices ¶
func (_StapleProvider *StapleProviderCallerSession) GetDzWithoutPrices(user common.Address, tokenIn common.Address, path []*big.Int, amount *big.Int) (*big.Int, error)
GetDzWithoutPrices is a free data retrieval call binding the contract method 0x5e7d1a9f.
Solidity: function getDzWithoutPrices(address user, address tokenIn, uint256[] path, uint256 amount) view returns(uint256)
func (*StapleProviderCallerSession) GetPool ¶
func (_StapleProvider *StapleProviderCallerSession) GetPool(poolID *big.Int) (UIDataTypesPool, error)
GetPool is a free data retrieval call binding the contract method 0x068bcd8d.
Solidity: function getPool(uint256 poolID) view returns(((uint256,address,address,uint8,uint8,uint256[]),(uint256,uint256,uint256)))
func (*StapleProviderCallerSession) GetPools ¶
func (_StapleProvider *StapleProviderCallerSession) GetPools(idList []*big.Int) ([]UIDataTypesPool, error)
GetPools is a free data retrieval call binding the contract method 0x2952dde8.
Solidity: function getPools(uint256[] idList) view returns(((uint256,address,address,uint8,uint8,uint256[]),(uint256,uint256,uint256))[])
func (*StapleProviderCallerSession) GetTokensByPath ¶
func (_StapleProvider *StapleProviderCallerSession) GetTokensByPath(tokenIn common.Address, path []*big.Int) ([]common.Address, error)
GetTokensByPath is a free data retrieval call binding the contract method 0x01ae405a.
Solidity: function getTokensByPath(address tokenIn, uint256[] path) view returns(address[] tokens)
func (*StapleProviderCallerSession) GetVtpIDsByUnderlying ¶
func (_StapleProvider *StapleProviderCallerSession) GetVtpIDsByUnderlying(token0 common.Address, token1 common.Address) ([]*big.Int, error)
GetVtpIDsByUnderlying is a free data retrieval call binding the contract method 0xb29eaf44.
Solidity: function getVtpIDsByUnderlying(address token0, address token1) view returns(uint256[])
func (*StapleProviderCallerSession) IncentivesController ¶
func (_StapleProvider *StapleProviderCallerSession) IncentivesController() (common.Address, error)
IncentivesController is a free data retrieval call binding the contract method 0xaf1df255.
Solidity: function incentivesController() view returns(address)
func (*StapleProviderCallerSession) UserInfo ¶
func (_StapleProvider *StapleProviderCallerSession) UserInfo(user common.Address) ([]UIDataTypesUserPoolInfo, error)
UserInfo is a free data retrieval call binding the contract method 0x1959a002.
Solidity: function userInfo(address user) view returns((address,uint256,uint256,uint256,uint256,uint256,uint256,uint256[],(uint256,uint256,uint256,uint256,uint256,uint256,(address,string,uint256,uint256,uint256,uint256,uint256)[])[],uint256)[])
func (*StapleProviderCallerSession) UserPoolInfo ¶
func (_StapleProvider *StapleProviderCallerSession) UserPoolInfo(user common.Address, underlying common.Address) (UIDataTypesUserPoolInfo, error)
UserPoolInfo is a free data retrieval call binding the contract method 0x81a48cbd.
Solidity: function userPoolInfo(address user, address underlying) view returns((address,uint256,uint256,uint256,uint256,uint256,uint256,uint256[],(uint256,uint256,uint256,uint256,uint256,uint256,(address,string,uint256,uint256,uint256,uint256,uint256)[])[],uint256) userPoolInfo)
func (*StapleProviderCallerSession) UserVtpTokenIncentives ¶
func (_StapleProvider *StapleProviderCallerSession) UserVtpTokenIncentives(user common.Address, underlying common.Address, vtpID *big.Int) ([]UIDataTypesUserIncentivesInfo, error)
UserVtpTokenIncentives is a free data retrieval call binding the contract method 0x31499fc8.
Solidity: function userVtpTokenIncentives(address user, address underlying, uint256 vtpID) view returns((address,string,uint256,uint256,uint256,uint256,uint256)[])
type StapleProviderFilterer ¶
type StapleProviderFilterer struct {
// contains filtered or unexported fields
}
StapleProviderFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewStapleProviderFilterer ¶
func NewStapleProviderFilterer(address common.Address, filterer bind.ContractFilterer) (*StapleProviderFilterer, error)
NewStapleProviderFilterer creates a new log filterer instance of StapleProvider, bound to a specific deployed contract.
type StapleProviderRaw ¶
type StapleProviderRaw struct {
Contract *StapleProvider // Generic contract binding to access the raw methods on
}
StapleProviderRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*StapleProviderRaw) Call ¶
func (_StapleProvider *StapleProviderRaw) 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 (*StapleProviderRaw) Transact ¶
func (_StapleProvider *StapleProviderRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StapleProviderRaw) Transfer ¶
func (_StapleProvider *StapleProviderRaw) 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 StapleProviderSession ¶
type StapleProviderSession struct { Contract *StapleProvider // 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 }
StapleProviderSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*StapleProviderSession) Controller ¶
func (_StapleProvider *StapleProviderSession) Controller() (common.Address, error)
Controller is a free data retrieval call binding the contract method 0xf77c4791.
Solidity: function controller() view returns(address)
func (*StapleProviderSession) GetAllPools ¶
func (_StapleProvider *StapleProviderSession) GetAllPools() ([]UIDataTypesPool, error)
GetAllPools is a free data retrieval call binding the contract method 0xd88ff1f4.
Solidity: function getAllPools() view returns(((uint256,address,address,uint8,uint8,uint256[]),(uint256,uint256,uint256))[])
func (*StapleProviderSession) GetAllUnderlyings ¶
func (_StapleProvider *StapleProviderSession) GetAllUnderlyings() ([]common.Address, error)
GetAllUnderlyings is a free data retrieval call binding the contract method 0xc3f80bc4.
Solidity: function getAllUnderlyings() view returns(address[])
func (*StapleProviderSession) GetDz ¶
func (_StapleProvider *StapleProviderSession) GetDz(user common.Address, tokenIn common.Address, path []*big.Int, amount *big.Int, prices []*big.Int) (*big.Int, error)
GetDz is a free data retrieval call binding the contract method 0x579eda78.
Solidity: function getDz(address user, address tokenIn, uint256[] path, uint256 amount, uint256[] prices) view returns(uint256)
func (*StapleProviderSession) GetDzWithoutPrices ¶
func (_StapleProvider *StapleProviderSession) GetDzWithoutPrices(user common.Address, tokenIn common.Address, path []*big.Int, amount *big.Int) (*big.Int, error)
GetDzWithoutPrices is a free data retrieval call binding the contract method 0x5e7d1a9f.
Solidity: function getDzWithoutPrices(address user, address tokenIn, uint256[] path, uint256 amount) view returns(uint256)
func (*StapleProviderSession) GetPool ¶
func (_StapleProvider *StapleProviderSession) GetPool(poolID *big.Int) (UIDataTypesPool, error)
GetPool is a free data retrieval call binding the contract method 0x068bcd8d.
Solidity: function getPool(uint256 poolID) view returns(((uint256,address,address,uint8,uint8,uint256[]),(uint256,uint256,uint256)))
func (*StapleProviderSession) GetPools ¶
func (_StapleProvider *StapleProviderSession) GetPools(idList []*big.Int) ([]UIDataTypesPool, error)
GetPools is a free data retrieval call binding the contract method 0x2952dde8.
Solidity: function getPools(uint256[] idList) view returns(((uint256,address,address,uint8,uint8,uint256[]),(uint256,uint256,uint256))[])
func (*StapleProviderSession) GetTokensByPath ¶
func (_StapleProvider *StapleProviderSession) GetTokensByPath(tokenIn common.Address, path []*big.Int) ([]common.Address, error)
GetTokensByPath is a free data retrieval call binding the contract method 0x01ae405a.
Solidity: function getTokensByPath(address tokenIn, uint256[] path) view returns(address[] tokens)
func (*StapleProviderSession) GetVtpIDsByUnderlying ¶
func (_StapleProvider *StapleProviderSession) GetVtpIDsByUnderlying(token0 common.Address, token1 common.Address) ([]*big.Int, error)
GetVtpIDsByUnderlying is a free data retrieval call binding the contract method 0xb29eaf44.
Solidity: function getVtpIDsByUnderlying(address token0, address token1) view returns(uint256[])
func (*StapleProviderSession) IncentivesController ¶
func (_StapleProvider *StapleProviderSession) IncentivesController() (common.Address, error)
IncentivesController is a free data retrieval call binding the contract method 0xaf1df255.
Solidity: function incentivesController() view returns(address)
func (*StapleProviderSession) UserInfo ¶
func (_StapleProvider *StapleProviderSession) UserInfo(user common.Address) ([]UIDataTypesUserPoolInfo, error)
UserInfo is a free data retrieval call binding the contract method 0x1959a002.
Solidity: function userInfo(address user) view returns((address,uint256,uint256,uint256,uint256,uint256,uint256,uint256[],(uint256,uint256,uint256,uint256,uint256,uint256,(address,string,uint256,uint256,uint256,uint256,uint256)[])[],uint256)[])
func (*StapleProviderSession) UserPoolInfo ¶
func (_StapleProvider *StapleProviderSession) UserPoolInfo(user common.Address, underlying common.Address) (UIDataTypesUserPoolInfo, error)
UserPoolInfo is a free data retrieval call binding the contract method 0x81a48cbd.
Solidity: function userPoolInfo(address user, address underlying) view returns((address,uint256,uint256,uint256,uint256,uint256,uint256,uint256[],(uint256,uint256,uint256,uint256,uint256,uint256,(address,string,uint256,uint256,uint256,uint256,uint256)[])[],uint256) userPoolInfo)
func (*StapleProviderSession) UserVtpTokenIncentives ¶
func (_StapleProvider *StapleProviderSession) UserVtpTokenIncentives(user common.Address, underlying common.Address, vtpID *big.Int) ([]UIDataTypesUserIncentivesInfo, error)
UserVtpTokenIncentives is a free data retrieval call binding the contract method 0x31499fc8.
Solidity: function userVtpTokenIncentives(address user, address underlying, uint256 vtpID) view returns((address,string,uint256,uint256,uint256,uint256,uint256)[])
type StapleProviderTransactor ¶
type StapleProviderTransactor struct {
// contains filtered or unexported fields
}
StapleProviderTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewStapleProviderTransactor ¶
func NewStapleProviderTransactor(address common.Address, transactor bind.ContractTransactor) (*StapleProviderTransactor, error)
NewStapleProviderTransactor creates a new write-only instance of StapleProvider, bound to a specific deployed contract.
type StapleProviderTransactorRaw ¶
type StapleProviderTransactorRaw struct {
Contract *StapleProviderTransactor // Generic write-only contract binding to access the raw methods on
}
StapleProviderTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*StapleProviderTransactorRaw) Transact ¶
func (_StapleProvider *StapleProviderTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StapleProviderTransactorRaw) Transfer ¶
func (_StapleProvider *StapleProviderTransactorRaw) 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 StapleProviderTransactorSession ¶
type StapleProviderTransactorSession struct { Contract *StapleProviderTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
StapleProviderTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
type UIDataTypesPool ¶
type UIDataTypesPool struct { Params PoolDataTypesPoolParams Status UIDataTypesPoolStatus }
UIDataTypesPool is an auto generated low-level Go binding around an user-defined struct.
type UIDataTypesPoolStatus ¶
UIDataTypesPoolStatus is an auto generated low-level Go binding around an user-defined struct.
type UIDataTypesUserIncentivesInfo ¶
type UIDataTypesUserIncentivesInfo struct { Token common.Address Symbol string Decimals *big.Int Amount *big.Int StartTime *big.Int EndTime *big.Int EmissionPerTick *big.Int }
UIDataTypesUserIncentivesInfo is an auto generated low-level Go binding around an user-defined struct.
type UIDataTypesUserPoolInfo ¶
type UIDataTypesUserPoolInfo struct { Underlying common.Address Deposition *big.Int Liability *big.Int UnlockedLp *big.Int UnlockedUnderlying *big.Int TotalCredits *big.Int CreditUsed *big.Int AllocatedVtps []*big.Int UserVtps []UIDataTypesUserVtpTokenInfo AllRewards *big.Int }
UIDataTypesUserPoolInfo is an auto generated low-level Go binding around an user-defined struct.
type UIDataTypesUserVtpTokenInfo ¶
type UIDataTypesUserVtpTokenInfo struct { Id *big.Int Alloction *big.Int AlloctedRate *big.Int MaxDeallocateRate *big.Int Rewards *big.Int Incentives []UIDataTypesUserIncentivesInfo }
UIDataTypesUserVtpTokenInfo is an auto generated low-level Go binding around an user-defined struct.