Documentation ¶
Index ¶
- Variables
- type PoolDataTypesPoolActionInput
- type PoolDataTypesPoolParams
- type StapleController
- type StapleControllerCaller
- func (_StapleController *StapleControllerCaller) DefaultImpl(opts *bind.CallOpts) (common.Address, error)
- func (_StapleController *StapleControllerCaller) EstimateAllocationFee(opts *bind.CallOpts, input VtpDataTypesAllocateInput) (*big.Int, error)
- func (_StapleController *StapleControllerCaller) EstimateDeallocationFee(opts *bind.CallOpts, input VtpDataTypesDeallocateInput) (*big.Int, error)
- func (_StapleController *StapleControllerCaller) EstimateSwapSingleOut(opts *bind.CallOpts, input SwapDataTypesSwapSingleInput) (SwapDataTypesSwapSingleProcess, error)
- func (_StapleController *StapleControllerCaller) GetCreditCostOfVtp(opts *bind.CallOpts, vtpID *big.Int) (*big.Int, error)
- func (_StapleController *StapleControllerCaller) GetCreditTotalLimit(opts *bind.CallOpts) (*big.Int, error)
- func (_StapleController *StapleControllerCaller) GetPairedToken(opts *bind.CallOpts, underlying common.Address, vtpID *big.Int) (common.Address, error)
- func (_StapleController *StapleControllerCaller) GetPoolParams(opts *bind.CallOpts, underlying common.Address) (PoolDataTypesPoolParams, error)
- func (_StapleController *StapleControllerCaller) GetVtp(opts *bind.CallOpts, vtpID *big.Int) (VtpDataTypesVtp, error)
- func (_StapleController *StapleControllerCaller) GetVtpToken(opts *bind.CallOpts, underlying common.Address, vtpID *big.Int) (VtpDataTypesVtpToken, error)
- func (_StapleController *StapleControllerCaller) Id2underlying(opts *bind.CallOpts, id *big.Int) (common.Address, error)
- func (_StapleController *StapleControllerCaller) IncentivesController(opts *bind.CallOpts) (common.Address, error)
- func (_StapleController *StapleControllerCaller) ProxyAdmin(opts *bind.CallOpts) (common.Address, error)
- func (_StapleController *StapleControllerCaller) Router(opts *bind.CallOpts) (common.Address, error)
- func (_StapleController *StapleControllerCaller) TokenCount(opts *bind.CallOpts) (*big.Int, error)
- func (_StapleController *StapleControllerCaller) UserAllocatedVtps(opts *bind.CallOpts, user common.Address, underlying common.Address) ([]*big.Int, error)
- func (_StapleController *StapleControllerCaller) UserAllocation(opts *bind.CallOpts, user common.Address, underlying common.Address, ...) (struct{ ... }, error)
- func (_StapleController *StapleControllerCaller) UserDeposition(opts *bind.CallOpts, user common.Address, underlying common.Address) (*big.Int, error)
- func (_StapleController *StapleControllerCaller) UserDiscount(opts *bind.CallOpts, user common.Address) (*big.Int, error)
- func (_StapleController *StapleControllerCaller) UserMaxAllocation(opts *bind.CallOpts, _user common.Address, _underlying common.Address, ...) (*big.Int, error)
- func (_StapleController *StapleControllerCaller) UserMaxDeallocation(opts *bind.CallOpts, _user common.Address, _underlying common.Address, ...) (*big.Int, error)
- func (_StapleController *StapleControllerCaller) UserRewards(opts *bind.CallOpts, user common.Address, underlying common.Address, ...) (*big.Int, error)
- func (_StapleController *StapleControllerCaller) UserUnchargedFee(opts *bind.CallOpts, user common.Address, underlying common.Address, ...) (*big.Int, error)
- func (_StapleController *StapleControllerCaller) UserUnlockedUnderlying(opts *bind.CallOpts, user common.Address, underlying common.Address) (*big.Int, error)
- func (_StapleController *StapleControllerCaller) VtpCount(opts *bind.CallOpts) (*big.Int, error)
- type StapleControllerCallerRaw
- type StapleControllerCallerSession
- func (_StapleController *StapleControllerCallerSession) DefaultImpl() (common.Address, error)
- func (_StapleController *StapleControllerCallerSession) EstimateAllocationFee(input VtpDataTypesAllocateInput) (*big.Int, error)
- func (_StapleController *StapleControllerCallerSession) EstimateDeallocationFee(input VtpDataTypesDeallocateInput) (*big.Int, error)
- func (_StapleController *StapleControllerCallerSession) EstimateSwapSingleOut(input SwapDataTypesSwapSingleInput) (SwapDataTypesSwapSingleProcess, error)
- func (_StapleController *StapleControllerCallerSession) GetCreditCostOfVtp(vtpID *big.Int) (*big.Int, error)
- func (_StapleController *StapleControllerCallerSession) GetCreditTotalLimit() (*big.Int, error)
- func (_StapleController *StapleControllerCallerSession) GetPairedToken(underlying common.Address, vtpID *big.Int) (common.Address, error)
- func (_StapleController *StapleControllerCallerSession) GetPoolParams(underlying common.Address) (PoolDataTypesPoolParams, error)
- func (_StapleController *StapleControllerCallerSession) GetVtp(vtpID *big.Int) (VtpDataTypesVtp, error)
- func (_StapleController *StapleControllerCallerSession) GetVtpToken(underlying common.Address, vtpID *big.Int) (VtpDataTypesVtpToken, error)
- func (_StapleController *StapleControllerCallerSession) Id2underlying(id *big.Int) (common.Address, error)
- func (_StapleController *StapleControllerCallerSession) IncentivesController() (common.Address, error)
- func (_StapleController *StapleControllerCallerSession) ProxyAdmin() (common.Address, error)
- func (_StapleController *StapleControllerCallerSession) Router() (common.Address, error)
- func (_StapleController *StapleControllerCallerSession) TokenCount() (*big.Int, error)
- func (_StapleController *StapleControllerCallerSession) UserAllocatedVtps(user common.Address, underlying common.Address) ([]*big.Int, error)
- func (_StapleController *StapleControllerCallerSession) UserAllocation(user common.Address, underlying common.Address, vtpID *big.Int) (struct{ ... }, error)
- func (_StapleController *StapleControllerCallerSession) UserDeposition(user common.Address, underlying common.Address) (*big.Int, error)
- func (_StapleController *StapleControllerCallerSession) UserDiscount(user common.Address) (*big.Int, error)
- func (_StapleController *StapleControllerCallerSession) UserMaxAllocation(_user common.Address, _underlying common.Address, _vtpID *big.Int) (*big.Int, error)
- func (_StapleController *StapleControllerCallerSession) UserMaxDeallocation(_user common.Address, _underlying common.Address, _vtpID *big.Int) (*big.Int, error)
- func (_StapleController *StapleControllerCallerSession) UserRewards(user common.Address, underlying common.Address, vtpID *big.Int) (*big.Int, error)
- func (_StapleController *StapleControllerCallerSession) UserUnchargedFee(user common.Address, underlying common.Address, vtpID *big.Int) (*big.Int, error)
- func (_StapleController *StapleControllerCallerSession) UserUnlockedUnderlying(user common.Address, underlying common.Address) (*big.Int, error)
- func (_StapleController *StapleControllerCallerSession) VtpCount() (*big.Int, error)
- type StapleControllerFilterer
- func (_StapleController *StapleControllerFilterer) FilterUpdateAlrLowerBound(opts *bind.FilterOpts, underlying []common.Address, vtpID []*big.Int) (*StapleControllerUpdateAlrLowerBoundIterator, error)
- func (_StapleController *StapleControllerFilterer) FilterUpdateDefaultTokenImplementation(opts *bind.FilterOpts) (*StapleControllerUpdateDefaultTokenImplementationIterator, error)
- func (_StapleController *StapleControllerFilterer) FilterUpdateIncentivesController(opts *bind.FilterOpts) (*StapleControllerUpdateIncentivesControllerIterator, error)
- func (_StapleController *StapleControllerFilterer) FilterUpdateMaxAllocateRate(opts *bind.FilterOpts, underlying []common.Address, vtpID []*big.Int) (*StapleControllerUpdateMaxAllocateRateIterator, error)
- func (_StapleController *StapleControllerFilterer) FilterUpdatePauseStatus(opts *bind.FilterOpts, underlying []common.Address, vtpID []*big.Int) (*StapleControllerUpdatePauseStatusIterator, error)
- func (_StapleController *StapleControllerFilterer) FilterUpdateProtocolFeeRate(opts *bind.FilterOpts, underlying []common.Address, vtpID []*big.Int) (*StapleControllerUpdateProtocolFeeRateIterator, error)
- func (_StapleController *StapleControllerFilterer) FilterUpdateProxyAdmin(opts *bind.FilterOpts) (*StapleControllerUpdateProxyAdminIterator, error)
- func (_StapleController *StapleControllerFilterer) FilterUpdateRiskInfo(opts *bind.FilterOpts) (*StapleControllerUpdateRiskInfoIterator, error)
- func (_StapleController *StapleControllerFilterer) FilterUpdateRouter(opts *bind.FilterOpts) (*StapleControllerUpdateRouterIterator, error)
- func (_StapleController *StapleControllerFilterer) FilterUpdateSwapFee(opts *bind.FilterOpts, underlying []common.Address, vtpID []*big.Int) (*StapleControllerUpdateSwapFeeIterator, error)
- func (_StapleController *StapleControllerFilterer) FilterUpdateTL(opts *bind.FilterOpts, underlying []common.Address) (*StapleControllerUpdateTLIterator, error)
- func (_StapleController *StapleControllerFilterer) FilterUpdateWhiteList(opts *bind.FilterOpts) (*StapleControllerUpdateWhiteListIterator, error)
- func (_StapleController *StapleControllerFilterer) ParseUpdateAlrLowerBound(log types.Log) (*StapleControllerUpdateAlrLowerBound, error)
- func (_StapleController *StapleControllerFilterer) ParseUpdateDefaultTokenImplementation(log types.Log) (*StapleControllerUpdateDefaultTokenImplementation, error)
- func (_StapleController *StapleControllerFilterer) ParseUpdateIncentivesController(log types.Log) (*StapleControllerUpdateIncentivesController, error)
- func (_StapleController *StapleControllerFilterer) ParseUpdateMaxAllocateRate(log types.Log) (*StapleControllerUpdateMaxAllocateRate, error)
- func (_StapleController *StapleControllerFilterer) ParseUpdatePauseStatus(log types.Log) (*StapleControllerUpdatePauseStatus, error)
- func (_StapleController *StapleControllerFilterer) ParseUpdateProtocolFeeRate(log types.Log) (*StapleControllerUpdateProtocolFeeRate, error)
- func (_StapleController *StapleControllerFilterer) ParseUpdateProxyAdmin(log types.Log) (*StapleControllerUpdateProxyAdmin, error)
- func (_StapleController *StapleControllerFilterer) ParseUpdateRiskInfo(log types.Log) (*StapleControllerUpdateRiskInfo, error)
- func (_StapleController *StapleControllerFilterer) ParseUpdateRouter(log types.Log) (*StapleControllerUpdateRouter, error)
- func (_StapleController *StapleControllerFilterer) ParseUpdateSwapFee(log types.Log) (*StapleControllerUpdateSwapFee, error)
- func (_StapleController *StapleControllerFilterer) ParseUpdateTL(log types.Log) (*StapleControllerUpdateTL, error)
- func (_StapleController *StapleControllerFilterer) ParseUpdateWhiteList(log types.Log) (*StapleControllerUpdateWhiteList, error)
- func (_StapleController *StapleControllerFilterer) WatchUpdateAlrLowerBound(opts *bind.WatchOpts, sink chan<- *StapleControllerUpdateAlrLowerBound, ...) (event.Subscription, error)
- func (_StapleController *StapleControllerFilterer) WatchUpdateDefaultTokenImplementation(opts *bind.WatchOpts, ...) (event.Subscription, error)
- func (_StapleController *StapleControllerFilterer) WatchUpdateIncentivesController(opts *bind.WatchOpts, sink chan<- *StapleControllerUpdateIncentivesController) (event.Subscription, error)
- func (_StapleController *StapleControllerFilterer) WatchUpdateMaxAllocateRate(opts *bind.WatchOpts, sink chan<- *StapleControllerUpdateMaxAllocateRate, ...) (event.Subscription, error)
- func (_StapleController *StapleControllerFilterer) WatchUpdatePauseStatus(opts *bind.WatchOpts, sink chan<- *StapleControllerUpdatePauseStatus, ...) (event.Subscription, error)
- func (_StapleController *StapleControllerFilterer) WatchUpdateProtocolFeeRate(opts *bind.WatchOpts, sink chan<- *StapleControllerUpdateProtocolFeeRate, ...) (event.Subscription, error)
- func (_StapleController *StapleControllerFilterer) WatchUpdateProxyAdmin(opts *bind.WatchOpts, sink chan<- *StapleControllerUpdateProxyAdmin) (event.Subscription, error)
- func (_StapleController *StapleControllerFilterer) WatchUpdateRiskInfo(opts *bind.WatchOpts, sink chan<- *StapleControllerUpdateRiskInfo) (event.Subscription, error)
- func (_StapleController *StapleControllerFilterer) WatchUpdateRouter(opts *bind.WatchOpts, sink chan<- *StapleControllerUpdateRouter) (event.Subscription, error)
- func (_StapleController *StapleControllerFilterer) WatchUpdateSwapFee(opts *bind.WatchOpts, sink chan<- *StapleControllerUpdateSwapFee, ...) (event.Subscription, error)
- func (_StapleController *StapleControllerFilterer) WatchUpdateTL(opts *bind.WatchOpts, sink chan<- *StapleControllerUpdateTL, ...) (event.Subscription, error)
- func (_StapleController *StapleControllerFilterer) WatchUpdateWhiteList(opts *bind.WatchOpts, sink chan<- *StapleControllerUpdateWhiteList) (event.Subscription, error)
- type StapleControllerRaw
- func (_StapleController *StapleControllerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_StapleController *StapleControllerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_StapleController *StapleControllerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type StapleControllerSession
- func (_StapleController *StapleControllerSession) Allocate(input VtpDataTypesAllocateInput) (*types.Transaction, error)
- func (_StapleController *StapleControllerSession) Deallocate(input VtpDataTypesDeallocateInput) (*types.Transaction, error)
- func (_StapleController *StapleControllerSession) DefaultImpl() (common.Address, error)
- func (_StapleController *StapleControllerSession) Deposit(input PoolDataTypesPoolActionInput) (*types.Transaction, error)
- func (_StapleController *StapleControllerSession) EstimateAllocationFee(input VtpDataTypesAllocateInput) (*big.Int, error)
- func (_StapleController *StapleControllerSession) EstimateDeallocationFee(input VtpDataTypesDeallocateInput) (*big.Int, error)
- func (_StapleController *StapleControllerSession) EstimateSwapSingleOut(input SwapDataTypesSwapSingleInput) (SwapDataTypesSwapSingleProcess, error)
- func (_StapleController *StapleControllerSession) GetCreditCostOfVtp(vtpID *big.Int) (*big.Int, error)
- func (_StapleController *StapleControllerSession) GetCreditTotalLimit() (*big.Int, error)
- func (_StapleController *StapleControllerSession) GetPairedToken(underlying common.Address, vtpID *big.Int) (common.Address, error)
- func (_StapleController *StapleControllerSession) GetPoolParams(underlying common.Address) (PoolDataTypesPoolParams, error)
- func (_StapleController *StapleControllerSession) GetVtp(vtpID *big.Int) (VtpDataTypesVtp, error)
- func (_StapleController *StapleControllerSession) GetVtpToken(underlying common.Address, vtpID *big.Int) (VtpDataTypesVtpToken, error)
- func (_StapleController *StapleControllerSession) Id2underlying(id *big.Int) (common.Address, error)
- func (_StapleController *StapleControllerSession) IncentivesController() (common.Address, error)
- func (_StapleController *StapleControllerSession) ProxyAdmin() (common.Address, error)
- func (_StapleController *StapleControllerSession) Router() (common.Address, error)
- func (_StapleController *StapleControllerSession) Swap(input SwapDataTypesSwapSingleInput) (*types.Transaction, error)
- func (_StapleController *StapleControllerSession) TokenCount() (*big.Int, error)
- func (_StapleController *StapleControllerSession) UserAllocatedVtps(user common.Address, underlying common.Address) ([]*big.Int, error)
- func (_StapleController *StapleControllerSession) UserAllocation(user common.Address, underlying common.Address, vtpID *big.Int) (struct{ ... }, error)
- func (_StapleController *StapleControllerSession) UserDeposition(user common.Address, underlying common.Address) (*big.Int, error)
- func (_StapleController *StapleControllerSession) UserDiscount(user common.Address) (*big.Int, error)
- func (_StapleController *StapleControllerSession) UserMaxAllocation(_user common.Address, _underlying common.Address, _vtpID *big.Int) (*big.Int, error)
- func (_StapleController *StapleControllerSession) UserMaxDeallocation(_user common.Address, _underlying common.Address, _vtpID *big.Int) (*big.Int, error)
- func (_StapleController *StapleControllerSession) UserRewards(user common.Address, underlying common.Address, vtpID *big.Int) (*big.Int, error)
- func (_StapleController *StapleControllerSession) UserUnchargedFee(user common.Address, underlying common.Address, vtpID *big.Int) (*big.Int, error)
- func (_StapleController *StapleControllerSession) UserUnlockedUnderlying(user common.Address, underlying common.Address) (*big.Int, error)
- func (_StapleController *StapleControllerSession) VtpCount() (*big.Int, error)
- func (_StapleController *StapleControllerSession) Withdraw(input PoolDataTypesPoolActionInput) (*types.Transaction, error)
- type StapleControllerTransactor
- func (_StapleController *StapleControllerTransactor) Allocate(opts *bind.TransactOpts, input VtpDataTypesAllocateInput) (*types.Transaction, error)
- func (_StapleController *StapleControllerTransactor) Deallocate(opts *bind.TransactOpts, input VtpDataTypesDeallocateInput) (*types.Transaction, error)
- func (_StapleController *StapleControllerTransactor) Deposit(opts *bind.TransactOpts, input PoolDataTypesPoolActionInput) (*types.Transaction, error)
- func (_StapleController *StapleControllerTransactor) Swap(opts *bind.TransactOpts, input SwapDataTypesSwapSingleInput) (*types.Transaction, error)
- func (_StapleController *StapleControllerTransactor) Withdraw(opts *bind.TransactOpts, input PoolDataTypesPoolActionInput) (*types.Transaction, error)
- type StapleControllerTransactorRaw
- type StapleControllerTransactorSession
- func (_StapleController *StapleControllerTransactorSession) Allocate(input VtpDataTypesAllocateInput) (*types.Transaction, error)
- func (_StapleController *StapleControllerTransactorSession) Deallocate(input VtpDataTypesDeallocateInput) (*types.Transaction, error)
- func (_StapleController *StapleControllerTransactorSession) Deposit(input PoolDataTypesPoolActionInput) (*types.Transaction, error)
- func (_StapleController *StapleControllerTransactorSession) Swap(input SwapDataTypesSwapSingleInput) (*types.Transaction, error)
- func (_StapleController *StapleControllerTransactorSession) Withdraw(input PoolDataTypesPoolActionInput) (*types.Transaction, error)
- type StapleControllerUpdateAlrLowerBound
- type StapleControllerUpdateAlrLowerBoundIterator
- type StapleControllerUpdateDefaultTokenImplementation
- type StapleControllerUpdateDefaultTokenImplementationIterator
- type StapleControllerUpdateIncentivesController
- type StapleControllerUpdateIncentivesControllerIterator
- type StapleControllerUpdateMaxAllocateRate
- type StapleControllerUpdateMaxAllocateRateIterator
- type StapleControllerUpdatePauseStatus
- type StapleControllerUpdatePauseStatusIterator
- type StapleControllerUpdateProtocolFeeRate
- type StapleControllerUpdateProtocolFeeRateIterator
- type StapleControllerUpdateProxyAdmin
- type StapleControllerUpdateProxyAdminIterator
- type StapleControllerUpdateRiskInfo
- type StapleControllerUpdateRiskInfoIterator
- type StapleControllerUpdateRouter
- type StapleControllerUpdateRouterIterator
- type StapleControllerUpdateSwapFee
- type StapleControllerUpdateSwapFeeIterator
- type StapleControllerUpdateTL
- type StapleControllerUpdateTLIterator
- type StapleControllerUpdateWhiteList
- type StapleControllerUpdateWhiteListIterator
- type SwapDataTypesSwapSingleInput
- type SwapDataTypesSwapSingleProcess
- type VtpDataTypesAllocateInput
- type VtpDataTypesDeallocateInput
- type VtpDataTypesVtp
- type VtpDataTypesVtpParams
- type VtpDataTypesVtpStatus
- type VtpDataTypesVtpToken
- type VtpDataTypesVtpTokenParams
- type VtpDataTypesVtpTokenStatus
Constants ¶
This section is empty.
Variables ¶
var StapleControllerABI = StapleControllerMetaData.ABI
StapleControllerABI is the input ABI used to generate the binding from. Deprecated: Use StapleControllerMetaData.ABI instead.
var StapleControllerMetaData = &bind.MetaData{
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newBound\",\"type\":\"uint256\"}],\"name\":\"UpdateAlrLowerBound\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"}],\"name\":\"UpdateDefaultTokenImplementation\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"}],\"name\":\"UpdateIncentivesController\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newRate\",\"type\":\"uint256\"}],\"name\":\"UpdateMaxAllocateRate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"newStatus\",\"type\":\"bool\"}],\"name\":\"UpdatePauseStatus\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newRate\",\"type\":\"uint256\"}],\"name\":\"UpdateProtocolFeeRate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"}],\"name\":\"UpdateProxyAdmin\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"creditLimit\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"vls\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"credits\",\"type\":\"uint256[]\"}],\"name\":\"UpdateRiskInfo\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"}],\"name\":\"UpdateRouter\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newOut\",\"type\":\"uint256\"}],\"name\":\"UpdateSwapFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"newTL\",\"type\":\"uint8\"}],\"name\":\"UpdateTL\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"addresses\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"discounts\",\"type\":\"uint256[]\"}],\"name\":\"UpdateWhiteList\",\"type\":\"event\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFeeRate\",\"type\":\"uint256\"}],\"internalType\":\"structVtpDataTypes.AllocateInput\",\"name\":\"input\",\"type\":\"tuple\"}],\"name\":\"allocate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFeeRate\",\"type\":\"uint256\"}],\"internalType\":\"structVtpDataTypes.DeallocateInput\",\"name\":\"input\",\"type\":\"tuple\"}],\"name\":\"deallocate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultImpl\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"internalType\":\"structPoolDataTypes.PoolActionInput\",\"name\":\"input\",\"type\":\"tuple\"}],\"name\":\"deposit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFeeRate\",\"type\":\"uint256\"}],\"internalType\":\"structVtpDataTypes.AllocateInput\",\"name\":\"input\",\"type\":\"tuple\"}],\"name\":\"estimateAllocationFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFeeRate\",\"type\":\"uint256\"}],\"internalType\":\"structVtpDataTypes.DeallocateInput\",\"name\":\"input\",\"type\":\"tuple\"}],\"name\":\"estimateDeallocationFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceRate\",\"type\":\"uint256\"}],\"internalType\":\"structSwapDataTypes.SwapSingleInput\",\"name\":\"input\",\"type\":\"tuple\"}],\"name\":\"estimateSwapSingleOut\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"realIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"pav\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"swapGet\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"estiOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"punishment\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isPunishment\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"realOut\",\"type\":\"uint256\"}],\"internalType\":\"structSwapDataTypes.SwapSingleProcess\",\"name\":\"process\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"}],\"name\":\"getCreditCostOfVtp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCreditTotalLimit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"}],\"name\":\"getPairedToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"}],\"name\":\"getPoolParams\",\"outputs\":[{\"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\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"}],\"name\":\"getVtp\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"uint8\",\"name\":\"vl\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"n\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"p\",\"type\":\"uint256\"}],\"internalType\":\"structVtpDataTypes.VtpParams\",\"name\":\"params\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"po\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"pa\",\"type\":\"uint256\"}],\"internalType\":\"structVtpDataTypes.VtpStatus\",\"name\":\"status\",\"type\":\"tuple\"},{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"lpAddr\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"tl\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxAllocateRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"swapFeeIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"swapFeeOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolFeeRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"alrLowerBound\",\"type\":\"uint256\"}],\"internalType\":\"structVtpDataTypes.VtpTokenParams\",\"name\":\"params\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"allocated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liability\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"asset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"alr\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalFeeCollected\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeCollected\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeCollectedProtocol\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalShares\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"}],\"internalType\":\"structVtpDataTypes.VtpTokenStatus\",\"name\":\"status\",\"type\":\"tuple\"}],\"internalType\":\"structVtpDataTypes.VtpToken\",\"name\":\"token0\",\"type\":\"tuple\"},{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"lpAddr\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"tl\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxAllocateRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"swapFeeIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"swapFeeOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolFeeRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"alrLowerBound\",\"type\":\"uint256\"}],\"internalType\":\"structVtpDataTypes.VtpTokenParams\",\"name\":\"params\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"allocated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liability\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"asset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"alr\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalFeeCollected\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeCollected\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeCollectedProtocol\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalShares\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"}],\"internalType\":\"structVtpDataTypes.VtpTokenStatus\",\"name\":\"status\",\"type\":\"tuple\"}],\"internalType\":\"structVtpDataTypes.VtpToken\",\"name\":\"token1\",\"type\":\"tuple\"}],\"internalType\":\"structVtpDataTypes.Vtp\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"}],\"name\":\"getVtpToken\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"lpAddr\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"tl\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxAllocateRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"swapFeeIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"swapFeeOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolFeeRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"alrLowerBound\",\"type\":\"uint256\"}],\"internalType\":\"structVtpDataTypes.VtpTokenParams\",\"name\":\"params\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"allocated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liability\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"asset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"alr\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalFeeCollected\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeCollected\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeCollectedProtocol\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalShares\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"}],\"internalType\":\"structVtpDataTypes.VtpTokenStatus\",\"name\":\"status\",\"type\":\"tuple\"}],\"internalType\":\"structVtpDataTypes.VtpToken\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"id2underlying\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"incentivesController\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxyAdmin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"router\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceRate\",\"type\":\"uint256\"}],\"internalType\":\"structSwapDataTypes.SwapSingleInput\",\"name\":\"input\",\"type\":\"tuple\"}],\"name\":\"swap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"realOut\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"}],\"name\":\"userAllocatedVtps\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"vtpIDs\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"}],\"name\":\"userAllocation\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"allocation\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"}],\"name\":\"userDeposition\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"userDiscount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"discount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_underlying\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_vtpID\",\"type\":\"uint256\"}],\"name\":\"userMaxAllocation\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"maxAllocation_\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_underlying\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_vtpID\",\"type\":\"uint256\"}],\"name\":\"userMaxDeallocation\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"maxDeallocation_\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"}],\"name\":\"userRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"rewards\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"vtpID\",\"type\":\"uint256\"}],\"name\":\"userUnchargedFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"}],\"name\":\"userUnlockedUnderlying\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"unlocked\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vtpCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"internalType\":\"structPoolDataTypes.PoolActionInput\",\"name\":\"input\",\"type\":\"tuple\"}],\"name\":\"withdraw\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
StapleControllerMetaData contains all meta data concerning the StapleController contract.
Functions ¶
This section is empty.
Types ¶
type PoolDataTypesPoolActionInput ¶
type PoolDataTypesPoolActionInput struct { Underlying common.Address Amount *big.Int Receiver common.Address Owner common.Address }
PoolDataTypesPoolActionInput is an auto generated low-level Go binding around an user-defined struct.
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 StapleController ¶
type StapleController struct { StapleControllerCaller // Read-only binding to the contract StapleControllerTransactor // Write-only binding to the contract StapleControllerFilterer // Log filterer for contract events }
StapleController is an auto generated Go binding around an Ethereum contract.
func NewStapleController ¶
func NewStapleController(address common.Address, backend bind.ContractBackend) (*StapleController, error)
NewStapleController creates a new instance of StapleController, bound to a specific deployed contract.
type StapleControllerCaller ¶
type StapleControllerCaller struct {
// contains filtered or unexported fields
}
StapleControllerCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewStapleControllerCaller ¶
func NewStapleControllerCaller(address common.Address, caller bind.ContractCaller) (*StapleControllerCaller, error)
NewStapleControllerCaller creates a new read-only instance of StapleController, bound to a specific deployed contract.
func (*StapleControllerCaller) DefaultImpl ¶
func (_StapleController *StapleControllerCaller) DefaultImpl(opts *bind.CallOpts) (common.Address, error)
DefaultImpl is a free data retrieval call binding the contract method 0x631ffbf3.
Solidity: function defaultImpl() view returns(address)
func (*StapleControllerCaller) EstimateAllocationFee ¶
func (_StapleController *StapleControllerCaller) EstimateAllocationFee(opts *bind.CallOpts, input VtpDataTypesAllocateInput) (*big.Int, error)
EstimateAllocationFee is a free data retrieval call binding the contract method 0x6805d640.
Solidity: function estimateAllocationFee((address,address,uint256,uint256,uint256,uint256) input) view returns(uint256 fee)
func (*StapleControllerCaller) EstimateDeallocationFee ¶
func (_StapleController *StapleControllerCaller) EstimateDeallocationFee(opts *bind.CallOpts, input VtpDataTypesDeallocateInput) (*big.Int, error)
EstimateDeallocationFee is a free data retrieval call binding the contract method 0x258fc746.
Solidity: function estimateDeallocationFee((address,address,uint256,uint256,uint256,uint256) input) view returns(uint256 fee)
func (*StapleControllerCaller) EstimateSwapSingleOut ¶
func (_StapleController *StapleControllerCaller) EstimateSwapSingleOut(opts *bind.CallOpts, input SwapDataTypesSwapSingleInput) (SwapDataTypesSwapSingleProcess, error)
EstimateSwapSingleOut is a free data retrieval call binding the contract method 0x1f5a7298.
Solidity: function estimateSwapSingleOut((address,address,address,uint256,uint256,uint256) input) view returns((uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool,uint256) process)
func (*StapleControllerCaller) GetCreditCostOfVtp ¶
func (_StapleController *StapleControllerCaller) GetCreditCostOfVtp(opts *bind.CallOpts, vtpID *big.Int) (*big.Int, error)
GetCreditCostOfVtp is a free data retrieval call binding the contract method 0x586a6d06.
Solidity: function getCreditCostOfVtp(uint256 vtpID) view returns(uint256)
func (*StapleControllerCaller) GetCreditTotalLimit ¶
func (_StapleController *StapleControllerCaller) GetCreditTotalLimit(opts *bind.CallOpts) (*big.Int, error)
GetCreditTotalLimit is a free data retrieval call binding the contract method 0x7ed605dc.
Solidity: function getCreditTotalLimit() view returns(uint256)
func (*StapleControllerCaller) GetPairedToken ¶
func (_StapleController *StapleControllerCaller) GetPairedToken(opts *bind.CallOpts, underlying common.Address, vtpID *big.Int) (common.Address, error)
GetPairedToken is a free data retrieval call binding the contract method 0xcb760918.
Solidity: function getPairedToken(address underlying, uint256 vtpID) view returns(address)
func (*StapleControllerCaller) GetPoolParams ¶
func (_StapleController *StapleControllerCaller) GetPoolParams(opts *bind.CallOpts, underlying common.Address) (PoolDataTypesPoolParams, error)
GetPoolParams is a free data retrieval call binding the contract method 0xa2b78ff4.
Solidity: function getPoolParams(address underlying) view returns((uint256,address,address,uint8,uint8,uint256[]))
func (*StapleControllerCaller) GetVtp ¶
func (_StapleController *StapleControllerCaller) GetVtp(opts *bind.CallOpts, vtpID *big.Int) (VtpDataTypesVtp, error)
GetVtp is a free data retrieval call binding the contract method 0xa01bdbef.
Solidity: function getVtp(uint256 vtpID) view returns(((uint8,uint256,uint256,uint256),(uint256,uint256),((address,address,uint8,uint8,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool)),((address,address,uint8,uint8,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool))))
func (*StapleControllerCaller) GetVtpToken ¶
func (_StapleController *StapleControllerCaller) GetVtpToken(opts *bind.CallOpts, underlying common.Address, vtpID *big.Int) (VtpDataTypesVtpToken, error)
GetVtpToken is a free data retrieval call binding the contract method 0x533f927c.
Solidity: function getVtpToken(address underlying, uint256 vtpID) view returns(((address,address,uint8,uint8,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool)))
func (*StapleControllerCaller) Id2underlying ¶
func (_StapleController *StapleControllerCaller) Id2underlying(opts *bind.CallOpts, id *big.Int) (common.Address, error)
Id2underlying is a free data retrieval call binding the contract method 0x9dfd9826.
Solidity: function id2underlying(uint256 id) view returns(address underlying)
func (*StapleControllerCaller) IncentivesController ¶
func (_StapleController *StapleControllerCaller) 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 (*StapleControllerCaller) ProxyAdmin ¶
func (_StapleController *StapleControllerCaller) ProxyAdmin(opts *bind.CallOpts) (common.Address, error)
ProxyAdmin is a free data retrieval call binding the contract method 0x3e47158c.
Solidity: function proxyAdmin() view returns(address)
func (*StapleControllerCaller) Router ¶
func (_StapleController *StapleControllerCaller) Router(opts *bind.CallOpts) (common.Address, error)
Router is a free data retrieval call binding the contract method 0xf887ea40.
Solidity: function router() view returns(address)
func (*StapleControllerCaller) TokenCount ¶
TokenCount is a free data retrieval call binding the contract method 0x9f181b5e.
Solidity: function tokenCount() view returns(uint256)
func (*StapleControllerCaller) UserAllocatedVtps ¶
func (_StapleController *StapleControllerCaller) UserAllocatedVtps(opts *bind.CallOpts, user common.Address, underlying common.Address) ([]*big.Int, error)
UserAllocatedVtps is a free data retrieval call binding the contract method 0xd0366519.
Solidity: function userAllocatedVtps(address user, address underlying) view returns(uint256[] vtpIDs)
func (*StapleControllerCaller) UserAllocation ¶
func (_StapleController *StapleControllerCaller) UserAllocation(opts *bind.CallOpts, user common.Address, underlying common.Address, vtpID *big.Int) (struct { Allocation *big.Int Shares *big.Int }, error)
UserAllocation is a free data retrieval call binding the contract method 0xe7ea0458.
Solidity: function userAllocation(address user, address underlying, uint256 vtpID) view returns(uint256 allocation, uint256 shares)
func (*StapleControllerCaller) UserDeposition ¶
func (_StapleController *StapleControllerCaller) UserDeposition(opts *bind.CallOpts, user common.Address, underlying common.Address) (*big.Int, error)
UserDeposition is a free data retrieval call binding the contract method 0x37a70556.
Solidity: function userDeposition(address user, address underlying) view returns(uint256 amount)
func (*StapleControllerCaller) UserDiscount ¶
func (_StapleController *StapleControllerCaller) UserDiscount(opts *bind.CallOpts, user common.Address) (*big.Int, error)
UserDiscount is a free data retrieval call binding the contract method 0x2ceb46e2.
Solidity: function userDiscount(address user) view returns(uint256 discount)
func (*StapleControllerCaller) UserMaxAllocation ¶
func (_StapleController *StapleControllerCaller) UserMaxAllocation(opts *bind.CallOpts, _user common.Address, _underlying common.Address, _vtpID *big.Int) (*big.Int, error)
UserMaxAllocation is a free data retrieval call binding the contract method 0x90602940.
Solidity: function userMaxAllocation(address _user, address _underlying, uint256 _vtpID) view returns(uint256 maxAllocation_)
func (*StapleControllerCaller) UserMaxDeallocation ¶
func (_StapleController *StapleControllerCaller) UserMaxDeallocation(opts *bind.CallOpts, _user common.Address, _underlying common.Address, _vtpID *big.Int) (*big.Int, error)
UserMaxDeallocation is a free data retrieval call binding the contract method 0x51ca8936.
Solidity: function userMaxDeallocation(address _user, address _underlying, uint256 _vtpID) view returns(uint256 maxDeallocation_)
func (*StapleControllerCaller) UserRewards ¶
func (_StapleController *StapleControllerCaller) UserRewards(opts *bind.CallOpts, user common.Address, underlying common.Address, vtpID *big.Int) (*big.Int, error)
UserRewards is a free data retrieval call binding the contract method 0xc6e18b28.
Solidity: function userRewards(address user, address underlying, uint256 vtpID) view returns(uint256 rewards)
func (*StapleControllerCaller) UserUnchargedFee ¶
func (_StapleController *StapleControllerCaller) UserUnchargedFee(opts *bind.CallOpts, user common.Address, underlying common.Address, vtpID *big.Int) (*big.Int, error)
UserUnchargedFee is a free data retrieval call binding the contract method 0xc5495459.
Solidity: function userUnchargedFee(address user, address underlying, uint256 vtpID) view returns(uint256)
func (*StapleControllerCaller) UserUnlockedUnderlying ¶
func (_StapleController *StapleControllerCaller) UserUnlockedUnderlying(opts *bind.CallOpts, user common.Address, underlying common.Address) (*big.Int, error)
UserUnlockedUnderlying is a free data retrieval call binding the contract method 0x4969f69f.
Solidity: function userUnlockedUnderlying(address user, address underlying) view returns(uint256 unlocked)
type StapleControllerCallerRaw ¶
type StapleControllerCallerRaw struct {
Contract *StapleControllerCaller // Generic read-only contract binding to access the raw methods on
}
StapleControllerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*StapleControllerCallerRaw) Call ¶
func (_StapleController *StapleControllerCallerRaw) 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 StapleControllerCallerSession ¶
type StapleControllerCallerSession struct { Contract *StapleControllerCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
StapleControllerCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*StapleControllerCallerSession) DefaultImpl ¶
func (_StapleController *StapleControllerCallerSession) DefaultImpl() (common.Address, error)
DefaultImpl is a free data retrieval call binding the contract method 0x631ffbf3.
Solidity: function defaultImpl() view returns(address)
func (*StapleControllerCallerSession) EstimateAllocationFee ¶
func (_StapleController *StapleControllerCallerSession) EstimateAllocationFee(input VtpDataTypesAllocateInput) (*big.Int, error)
EstimateAllocationFee is a free data retrieval call binding the contract method 0x6805d640.
Solidity: function estimateAllocationFee((address,address,uint256,uint256,uint256,uint256) input) view returns(uint256 fee)
func (*StapleControllerCallerSession) EstimateDeallocationFee ¶
func (_StapleController *StapleControllerCallerSession) EstimateDeallocationFee(input VtpDataTypesDeallocateInput) (*big.Int, error)
EstimateDeallocationFee is a free data retrieval call binding the contract method 0x258fc746.
Solidity: function estimateDeallocationFee((address,address,uint256,uint256,uint256,uint256) input) view returns(uint256 fee)
func (*StapleControllerCallerSession) EstimateSwapSingleOut ¶
func (_StapleController *StapleControllerCallerSession) EstimateSwapSingleOut(input SwapDataTypesSwapSingleInput) (SwapDataTypesSwapSingleProcess, error)
EstimateSwapSingleOut is a free data retrieval call binding the contract method 0x1f5a7298.
Solidity: function estimateSwapSingleOut((address,address,address,uint256,uint256,uint256) input) view returns((uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool,uint256) process)
func (*StapleControllerCallerSession) GetCreditCostOfVtp ¶
func (_StapleController *StapleControllerCallerSession) GetCreditCostOfVtp(vtpID *big.Int) (*big.Int, error)
GetCreditCostOfVtp is a free data retrieval call binding the contract method 0x586a6d06.
Solidity: function getCreditCostOfVtp(uint256 vtpID) view returns(uint256)
func (*StapleControllerCallerSession) GetCreditTotalLimit ¶
func (_StapleController *StapleControllerCallerSession) GetCreditTotalLimit() (*big.Int, error)
GetCreditTotalLimit is a free data retrieval call binding the contract method 0x7ed605dc.
Solidity: function getCreditTotalLimit() view returns(uint256)
func (*StapleControllerCallerSession) GetPairedToken ¶
func (_StapleController *StapleControllerCallerSession) GetPairedToken(underlying common.Address, vtpID *big.Int) (common.Address, error)
GetPairedToken is a free data retrieval call binding the contract method 0xcb760918.
Solidity: function getPairedToken(address underlying, uint256 vtpID) view returns(address)
func (*StapleControllerCallerSession) GetPoolParams ¶
func (_StapleController *StapleControllerCallerSession) GetPoolParams(underlying common.Address) (PoolDataTypesPoolParams, error)
GetPoolParams is a free data retrieval call binding the contract method 0xa2b78ff4.
Solidity: function getPoolParams(address underlying) view returns((uint256,address,address,uint8,uint8,uint256[]))
func (*StapleControllerCallerSession) GetVtp ¶
func (_StapleController *StapleControllerCallerSession) GetVtp(vtpID *big.Int) (VtpDataTypesVtp, error)
GetVtp is a free data retrieval call binding the contract method 0xa01bdbef.
Solidity: function getVtp(uint256 vtpID) view returns(((uint8,uint256,uint256,uint256),(uint256,uint256),((address,address,uint8,uint8,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool)),((address,address,uint8,uint8,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool))))
func (*StapleControllerCallerSession) GetVtpToken ¶
func (_StapleController *StapleControllerCallerSession) GetVtpToken(underlying common.Address, vtpID *big.Int) (VtpDataTypesVtpToken, error)
GetVtpToken is a free data retrieval call binding the contract method 0x533f927c.
Solidity: function getVtpToken(address underlying, uint256 vtpID) view returns(((address,address,uint8,uint8,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool)))
func (*StapleControllerCallerSession) Id2underlying ¶
func (_StapleController *StapleControllerCallerSession) Id2underlying(id *big.Int) (common.Address, error)
Id2underlying is a free data retrieval call binding the contract method 0x9dfd9826.
Solidity: function id2underlying(uint256 id) view returns(address underlying)
func (*StapleControllerCallerSession) IncentivesController ¶
func (_StapleController *StapleControllerCallerSession) IncentivesController() (common.Address, error)
IncentivesController is a free data retrieval call binding the contract method 0xaf1df255.
Solidity: function incentivesController() view returns(address)
func (*StapleControllerCallerSession) ProxyAdmin ¶
func (_StapleController *StapleControllerCallerSession) ProxyAdmin() (common.Address, error)
ProxyAdmin is a free data retrieval call binding the contract method 0x3e47158c.
Solidity: function proxyAdmin() view returns(address)
func (*StapleControllerCallerSession) Router ¶
func (_StapleController *StapleControllerCallerSession) Router() (common.Address, error)
Router is a free data retrieval call binding the contract method 0xf887ea40.
Solidity: function router() view returns(address)
func (*StapleControllerCallerSession) TokenCount ¶
func (_StapleController *StapleControllerCallerSession) TokenCount() (*big.Int, error)
TokenCount is a free data retrieval call binding the contract method 0x9f181b5e.
Solidity: function tokenCount() view returns(uint256)
func (*StapleControllerCallerSession) UserAllocatedVtps ¶
func (_StapleController *StapleControllerCallerSession) UserAllocatedVtps(user common.Address, underlying common.Address) ([]*big.Int, error)
UserAllocatedVtps is a free data retrieval call binding the contract method 0xd0366519.
Solidity: function userAllocatedVtps(address user, address underlying) view returns(uint256[] vtpIDs)
func (*StapleControllerCallerSession) UserAllocation ¶
func (_StapleController *StapleControllerCallerSession) UserAllocation(user common.Address, underlying common.Address, vtpID *big.Int) (struct { Allocation *big.Int Shares *big.Int }, error)
UserAllocation is a free data retrieval call binding the contract method 0xe7ea0458.
Solidity: function userAllocation(address user, address underlying, uint256 vtpID) view returns(uint256 allocation, uint256 shares)
func (*StapleControllerCallerSession) UserDeposition ¶
func (_StapleController *StapleControllerCallerSession) UserDeposition(user common.Address, underlying common.Address) (*big.Int, error)
UserDeposition is a free data retrieval call binding the contract method 0x37a70556.
Solidity: function userDeposition(address user, address underlying) view returns(uint256 amount)
func (*StapleControllerCallerSession) UserDiscount ¶
func (_StapleController *StapleControllerCallerSession) UserDiscount(user common.Address) (*big.Int, error)
UserDiscount is a free data retrieval call binding the contract method 0x2ceb46e2.
Solidity: function userDiscount(address user) view returns(uint256 discount)
func (*StapleControllerCallerSession) UserMaxAllocation ¶
func (_StapleController *StapleControllerCallerSession) UserMaxAllocation(_user common.Address, _underlying common.Address, _vtpID *big.Int) (*big.Int, error)
UserMaxAllocation is a free data retrieval call binding the contract method 0x90602940.
Solidity: function userMaxAllocation(address _user, address _underlying, uint256 _vtpID) view returns(uint256 maxAllocation_)
func (*StapleControllerCallerSession) UserMaxDeallocation ¶
func (_StapleController *StapleControllerCallerSession) UserMaxDeallocation(_user common.Address, _underlying common.Address, _vtpID *big.Int) (*big.Int, error)
UserMaxDeallocation is a free data retrieval call binding the contract method 0x51ca8936.
Solidity: function userMaxDeallocation(address _user, address _underlying, uint256 _vtpID) view returns(uint256 maxDeallocation_)
func (*StapleControllerCallerSession) UserRewards ¶
func (_StapleController *StapleControllerCallerSession) UserRewards(user common.Address, underlying common.Address, vtpID *big.Int) (*big.Int, error)
UserRewards is a free data retrieval call binding the contract method 0xc6e18b28.
Solidity: function userRewards(address user, address underlying, uint256 vtpID) view returns(uint256 rewards)
func (*StapleControllerCallerSession) UserUnchargedFee ¶
func (_StapleController *StapleControllerCallerSession) UserUnchargedFee(user common.Address, underlying common.Address, vtpID *big.Int) (*big.Int, error)
UserUnchargedFee is a free data retrieval call binding the contract method 0xc5495459.
Solidity: function userUnchargedFee(address user, address underlying, uint256 vtpID) view returns(uint256)
func (*StapleControllerCallerSession) UserUnlockedUnderlying ¶
func (_StapleController *StapleControllerCallerSession) UserUnlockedUnderlying(user common.Address, underlying common.Address) (*big.Int, error)
UserUnlockedUnderlying is a free data retrieval call binding the contract method 0x4969f69f.
Solidity: function userUnlockedUnderlying(address user, address underlying) view returns(uint256 unlocked)
type StapleControllerFilterer ¶
type StapleControllerFilterer struct {
// contains filtered or unexported fields
}
StapleControllerFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewStapleControllerFilterer ¶
func NewStapleControllerFilterer(address common.Address, filterer bind.ContractFilterer) (*StapleControllerFilterer, error)
NewStapleControllerFilterer creates a new log filterer instance of StapleController, bound to a specific deployed contract.
func (*StapleControllerFilterer) FilterUpdateAlrLowerBound ¶
func (_StapleController *StapleControllerFilterer) FilterUpdateAlrLowerBound(opts *bind.FilterOpts, underlying []common.Address, vtpID []*big.Int) (*StapleControllerUpdateAlrLowerBoundIterator, error)
FilterUpdateAlrLowerBound is a free log retrieval operation binding the contract event 0x22231b437df11c3f9fa00a0987b876c1008026f0f0a2a8799ef8fc33aa4da170.
Solidity: event UpdateAlrLowerBound(address indexed underlying, uint256 indexed vtpID, uint256 newBound)
func (*StapleControllerFilterer) FilterUpdateDefaultTokenImplementation ¶
func (_StapleController *StapleControllerFilterer) FilterUpdateDefaultTokenImplementation(opts *bind.FilterOpts) (*StapleControllerUpdateDefaultTokenImplementationIterator, error)
FilterUpdateDefaultTokenImplementation is a free log retrieval operation binding the contract event 0x6d9b42355f02ed2247346532854e06c51ce3d30394c073147c736d9b6f1a3d37.
Solidity: event UpdateDefaultTokenImplementation(address newAddress)
func (*StapleControllerFilterer) FilterUpdateIncentivesController ¶
func (_StapleController *StapleControllerFilterer) FilterUpdateIncentivesController(opts *bind.FilterOpts) (*StapleControllerUpdateIncentivesControllerIterator, error)
FilterUpdateIncentivesController is a free log retrieval operation binding the contract event 0x5a1dc234bd6cbfeb202293a0c793a2418ed708afd888dae2dfe67b518fa31c2a.
Solidity: event UpdateIncentivesController(address newAddress)
func (*StapleControllerFilterer) FilterUpdateMaxAllocateRate ¶
func (_StapleController *StapleControllerFilterer) FilterUpdateMaxAllocateRate(opts *bind.FilterOpts, underlying []common.Address, vtpID []*big.Int) (*StapleControllerUpdateMaxAllocateRateIterator, error)
FilterUpdateMaxAllocateRate is a free log retrieval operation binding the contract event 0xb4071e4c644e32b4e5ea39e374b1e446646e1ce8d713d64bb14a0e0d6b49e875.
Solidity: event UpdateMaxAllocateRate(address indexed underlying, uint256 indexed vtpID, uint256 newRate)
func (*StapleControllerFilterer) FilterUpdatePauseStatus ¶
func (_StapleController *StapleControllerFilterer) FilterUpdatePauseStatus(opts *bind.FilterOpts, underlying []common.Address, vtpID []*big.Int) (*StapleControllerUpdatePauseStatusIterator, error)
FilterUpdatePauseStatus is a free log retrieval operation binding the contract event 0x7d19969ff682d20681fd82ea5b58ce7338ad651b6373bd81a3e91e1bfdca3c38.
Solidity: event UpdatePauseStatus(address indexed underlying, uint256 indexed vtpID, bool newStatus)
func (*StapleControllerFilterer) FilterUpdateProtocolFeeRate ¶
func (_StapleController *StapleControllerFilterer) FilterUpdateProtocolFeeRate(opts *bind.FilterOpts, underlying []common.Address, vtpID []*big.Int) (*StapleControllerUpdateProtocolFeeRateIterator, error)
FilterUpdateProtocolFeeRate is a free log retrieval operation binding the contract event 0x624d54423f9f0e4b4e50ed18d6a5e38c8d75cd8dc58fe041d4e71ea323830d31.
Solidity: event UpdateProtocolFeeRate(address indexed underlying, uint256 indexed vtpID, uint256 newRate)
func (*StapleControllerFilterer) FilterUpdateProxyAdmin ¶
func (_StapleController *StapleControllerFilterer) FilterUpdateProxyAdmin(opts *bind.FilterOpts) (*StapleControllerUpdateProxyAdminIterator, error)
FilterUpdateProxyAdmin is a free log retrieval operation binding the contract event 0x8cb0f1efb2fb9a441d1759cb883b073bfdcb20b9abae9ca276d2e73b4fed27b0.
Solidity: event UpdateProxyAdmin(address newAddress)
func (*StapleControllerFilterer) FilterUpdateRiskInfo ¶
func (_StapleController *StapleControllerFilterer) FilterUpdateRiskInfo(opts *bind.FilterOpts) (*StapleControllerUpdateRiskInfoIterator, error)
FilterUpdateRiskInfo is a free log retrieval operation binding the contract event 0xcf4dfb38125a89162de306f2291d59baf39b3fd7c9b92de80dff22839bbdeb7b.
Solidity: event UpdateRiskInfo(uint256 creditLimit, uint256[] vls, uint256[] credits)
func (*StapleControllerFilterer) FilterUpdateRouter ¶
func (_StapleController *StapleControllerFilterer) FilterUpdateRouter(opts *bind.FilterOpts) (*StapleControllerUpdateRouterIterator, error)
FilterUpdateRouter is a free log retrieval operation binding the contract event 0xd5f5b4d616f94f5e10b2955392470790b3fdde7c0c0b68bd1f3ea635e2caa8d7.
Solidity: event UpdateRouter(address newAddress)
func (*StapleControllerFilterer) FilterUpdateSwapFee ¶
func (_StapleController *StapleControllerFilterer) FilterUpdateSwapFee(opts *bind.FilterOpts, underlying []common.Address, vtpID []*big.Int) (*StapleControllerUpdateSwapFeeIterator, error)
FilterUpdateSwapFee is a free log retrieval operation binding the contract event 0x6a7f6d6b57893e857c5d30e0d3629ea5501650ace6705647d6cd740005c19a34.
Solidity: event UpdateSwapFee(address indexed underlying, uint256 indexed vtpID, uint256 newIn, uint256 newOut)
func (*StapleControllerFilterer) FilterUpdateTL ¶
func (_StapleController *StapleControllerFilterer) FilterUpdateTL(opts *bind.FilterOpts, underlying []common.Address) (*StapleControllerUpdateTLIterator, error)
FilterUpdateTL is a free log retrieval operation binding the contract event 0xac065ae6ed4bd1cc5125544fea35e4011f475af7fe8dabf8a300e1b23af793da.
Solidity: event UpdateTL(address indexed underlying, uint8 newTL)
func (*StapleControllerFilterer) FilterUpdateWhiteList ¶
func (_StapleController *StapleControllerFilterer) FilterUpdateWhiteList(opts *bind.FilterOpts) (*StapleControllerUpdateWhiteListIterator, error)
FilterUpdateWhiteList is a free log retrieval operation binding the contract event 0xa13b10df67b8060b0016082524a0b6dba104b23bcb9e34397dda989972efc7fd.
Solidity: event UpdateWhiteList(address[] addresses, uint256[] discounts)
func (*StapleControllerFilterer) ParseUpdateAlrLowerBound ¶
func (_StapleController *StapleControllerFilterer) ParseUpdateAlrLowerBound(log types.Log) (*StapleControllerUpdateAlrLowerBound, error)
ParseUpdateAlrLowerBound is a log parse operation binding the contract event 0x22231b437df11c3f9fa00a0987b876c1008026f0f0a2a8799ef8fc33aa4da170.
Solidity: event UpdateAlrLowerBound(address indexed underlying, uint256 indexed vtpID, uint256 newBound)
func (*StapleControllerFilterer) ParseUpdateDefaultTokenImplementation ¶
func (_StapleController *StapleControllerFilterer) ParseUpdateDefaultTokenImplementation(log types.Log) (*StapleControllerUpdateDefaultTokenImplementation, error)
ParseUpdateDefaultTokenImplementation is a log parse operation binding the contract event 0x6d9b42355f02ed2247346532854e06c51ce3d30394c073147c736d9b6f1a3d37.
Solidity: event UpdateDefaultTokenImplementation(address newAddress)
func (*StapleControllerFilterer) ParseUpdateIncentivesController ¶
func (_StapleController *StapleControllerFilterer) ParseUpdateIncentivesController(log types.Log) (*StapleControllerUpdateIncentivesController, error)
ParseUpdateIncentivesController is a log parse operation binding the contract event 0x5a1dc234bd6cbfeb202293a0c793a2418ed708afd888dae2dfe67b518fa31c2a.
Solidity: event UpdateIncentivesController(address newAddress)
func (*StapleControllerFilterer) ParseUpdateMaxAllocateRate ¶
func (_StapleController *StapleControllerFilterer) ParseUpdateMaxAllocateRate(log types.Log) (*StapleControllerUpdateMaxAllocateRate, error)
ParseUpdateMaxAllocateRate is a log parse operation binding the contract event 0xb4071e4c644e32b4e5ea39e374b1e446646e1ce8d713d64bb14a0e0d6b49e875.
Solidity: event UpdateMaxAllocateRate(address indexed underlying, uint256 indexed vtpID, uint256 newRate)
func (*StapleControllerFilterer) ParseUpdatePauseStatus ¶
func (_StapleController *StapleControllerFilterer) ParseUpdatePauseStatus(log types.Log) (*StapleControllerUpdatePauseStatus, error)
ParseUpdatePauseStatus is a log parse operation binding the contract event 0x7d19969ff682d20681fd82ea5b58ce7338ad651b6373bd81a3e91e1bfdca3c38.
Solidity: event UpdatePauseStatus(address indexed underlying, uint256 indexed vtpID, bool newStatus)
func (*StapleControllerFilterer) ParseUpdateProtocolFeeRate ¶
func (_StapleController *StapleControllerFilterer) ParseUpdateProtocolFeeRate(log types.Log) (*StapleControllerUpdateProtocolFeeRate, error)
ParseUpdateProtocolFeeRate is a log parse operation binding the contract event 0x624d54423f9f0e4b4e50ed18d6a5e38c8d75cd8dc58fe041d4e71ea323830d31.
Solidity: event UpdateProtocolFeeRate(address indexed underlying, uint256 indexed vtpID, uint256 newRate)
func (*StapleControllerFilterer) ParseUpdateProxyAdmin ¶
func (_StapleController *StapleControllerFilterer) ParseUpdateProxyAdmin(log types.Log) (*StapleControllerUpdateProxyAdmin, error)
ParseUpdateProxyAdmin is a log parse operation binding the contract event 0x8cb0f1efb2fb9a441d1759cb883b073bfdcb20b9abae9ca276d2e73b4fed27b0.
Solidity: event UpdateProxyAdmin(address newAddress)
func (*StapleControllerFilterer) ParseUpdateRiskInfo ¶
func (_StapleController *StapleControllerFilterer) ParseUpdateRiskInfo(log types.Log) (*StapleControllerUpdateRiskInfo, error)
ParseUpdateRiskInfo is a log parse operation binding the contract event 0xcf4dfb38125a89162de306f2291d59baf39b3fd7c9b92de80dff22839bbdeb7b.
Solidity: event UpdateRiskInfo(uint256 creditLimit, uint256[] vls, uint256[] credits)
func (*StapleControllerFilterer) ParseUpdateRouter ¶
func (_StapleController *StapleControllerFilterer) ParseUpdateRouter(log types.Log) (*StapleControllerUpdateRouter, error)
ParseUpdateRouter is a log parse operation binding the contract event 0xd5f5b4d616f94f5e10b2955392470790b3fdde7c0c0b68bd1f3ea635e2caa8d7.
Solidity: event UpdateRouter(address newAddress)
func (*StapleControllerFilterer) ParseUpdateSwapFee ¶
func (_StapleController *StapleControllerFilterer) ParseUpdateSwapFee(log types.Log) (*StapleControllerUpdateSwapFee, error)
ParseUpdateSwapFee is a log parse operation binding the contract event 0x6a7f6d6b57893e857c5d30e0d3629ea5501650ace6705647d6cd740005c19a34.
Solidity: event UpdateSwapFee(address indexed underlying, uint256 indexed vtpID, uint256 newIn, uint256 newOut)
func (*StapleControllerFilterer) ParseUpdateTL ¶
func (_StapleController *StapleControllerFilterer) ParseUpdateTL(log types.Log) (*StapleControllerUpdateTL, error)
ParseUpdateTL is a log parse operation binding the contract event 0xac065ae6ed4bd1cc5125544fea35e4011f475af7fe8dabf8a300e1b23af793da.
Solidity: event UpdateTL(address indexed underlying, uint8 newTL)
func (*StapleControllerFilterer) ParseUpdateWhiteList ¶
func (_StapleController *StapleControllerFilterer) ParseUpdateWhiteList(log types.Log) (*StapleControllerUpdateWhiteList, error)
ParseUpdateWhiteList is a log parse operation binding the contract event 0xa13b10df67b8060b0016082524a0b6dba104b23bcb9e34397dda989972efc7fd.
Solidity: event UpdateWhiteList(address[] addresses, uint256[] discounts)
func (*StapleControllerFilterer) WatchUpdateAlrLowerBound ¶
func (_StapleController *StapleControllerFilterer) WatchUpdateAlrLowerBound(opts *bind.WatchOpts, sink chan<- *StapleControllerUpdateAlrLowerBound, underlying []common.Address, vtpID []*big.Int) (event.Subscription, error)
WatchUpdateAlrLowerBound is a free log subscription operation binding the contract event 0x22231b437df11c3f9fa00a0987b876c1008026f0f0a2a8799ef8fc33aa4da170.
Solidity: event UpdateAlrLowerBound(address indexed underlying, uint256 indexed vtpID, uint256 newBound)
func (*StapleControllerFilterer) WatchUpdateDefaultTokenImplementation ¶
func (_StapleController *StapleControllerFilterer) WatchUpdateDefaultTokenImplementation(opts *bind.WatchOpts, sink chan<- *StapleControllerUpdateDefaultTokenImplementation) (event.Subscription, error)
WatchUpdateDefaultTokenImplementation is a free log subscription operation binding the contract event 0x6d9b42355f02ed2247346532854e06c51ce3d30394c073147c736d9b6f1a3d37.
Solidity: event UpdateDefaultTokenImplementation(address newAddress)
func (*StapleControllerFilterer) WatchUpdateIncentivesController ¶
func (_StapleController *StapleControllerFilterer) WatchUpdateIncentivesController(opts *bind.WatchOpts, sink chan<- *StapleControllerUpdateIncentivesController) (event.Subscription, error)
WatchUpdateIncentivesController is a free log subscription operation binding the contract event 0x5a1dc234bd6cbfeb202293a0c793a2418ed708afd888dae2dfe67b518fa31c2a.
Solidity: event UpdateIncentivesController(address newAddress)
func (*StapleControllerFilterer) WatchUpdateMaxAllocateRate ¶
func (_StapleController *StapleControllerFilterer) WatchUpdateMaxAllocateRate(opts *bind.WatchOpts, sink chan<- *StapleControllerUpdateMaxAllocateRate, underlying []common.Address, vtpID []*big.Int) (event.Subscription, error)
WatchUpdateMaxAllocateRate is a free log subscription operation binding the contract event 0xb4071e4c644e32b4e5ea39e374b1e446646e1ce8d713d64bb14a0e0d6b49e875.
Solidity: event UpdateMaxAllocateRate(address indexed underlying, uint256 indexed vtpID, uint256 newRate)
func (*StapleControllerFilterer) WatchUpdatePauseStatus ¶
func (_StapleController *StapleControllerFilterer) WatchUpdatePauseStatus(opts *bind.WatchOpts, sink chan<- *StapleControllerUpdatePauseStatus, underlying []common.Address, vtpID []*big.Int) (event.Subscription, error)
WatchUpdatePauseStatus is a free log subscription operation binding the contract event 0x7d19969ff682d20681fd82ea5b58ce7338ad651b6373bd81a3e91e1bfdca3c38.
Solidity: event UpdatePauseStatus(address indexed underlying, uint256 indexed vtpID, bool newStatus)
func (*StapleControllerFilterer) WatchUpdateProtocolFeeRate ¶
func (_StapleController *StapleControllerFilterer) WatchUpdateProtocolFeeRate(opts *bind.WatchOpts, sink chan<- *StapleControllerUpdateProtocolFeeRate, underlying []common.Address, vtpID []*big.Int) (event.Subscription, error)
WatchUpdateProtocolFeeRate is a free log subscription operation binding the contract event 0x624d54423f9f0e4b4e50ed18d6a5e38c8d75cd8dc58fe041d4e71ea323830d31.
Solidity: event UpdateProtocolFeeRate(address indexed underlying, uint256 indexed vtpID, uint256 newRate)
func (*StapleControllerFilterer) WatchUpdateProxyAdmin ¶
func (_StapleController *StapleControllerFilterer) WatchUpdateProxyAdmin(opts *bind.WatchOpts, sink chan<- *StapleControllerUpdateProxyAdmin) (event.Subscription, error)
WatchUpdateProxyAdmin is a free log subscription operation binding the contract event 0x8cb0f1efb2fb9a441d1759cb883b073bfdcb20b9abae9ca276d2e73b4fed27b0.
Solidity: event UpdateProxyAdmin(address newAddress)
func (*StapleControllerFilterer) WatchUpdateRiskInfo ¶
func (_StapleController *StapleControllerFilterer) WatchUpdateRiskInfo(opts *bind.WatchOpts, sink chan<- *StapleControllerUpdateRiskInfo) (event.Subscription, error)
WatchUpdateRiskInfo is a free log subscription operation binding the contract event 0xcf4dfb38125a89162de306f2291d59baf39b3fd7c9b92de80dff22839bbdeb7b.
Solidity: event UpdateRiskInfo(uint256 creditLimit, uint256[] vls, uint256[] credits)
func (*StapleControllerFilterer) WatchUpdateRouter ¶
func (_StapleController *StapleControllerFilterer) WatchUpdateRouter(opts *bind.WatchOpts, sink chan<- *StapleControllerUpdateRouter) (event.Subscription, error)
WatchUpdateRouter is a free log subscription operation binding the contract event 0xd5f5b4d616f94f5e10b2955392470790b3fdde7c0c0b68bd1f3ea635e2caa8d7.
Solidity: event UpdateRouter(address newAddress)
func (*StapleControllerFilterer) WatchUpdateSwapFee ¶
func (_StapleController *StapleControllerFilterer) WatchUpdateSwapFee(opts *bind.WatchOpts, sink chan<- *StapleControllerUpdateSwapFee, underlying []common.Address, vtpID []*big.Int) (event.Subscription, error)
WatchUpdateSwapFee is a free log subscription operation binding the contract event 0x6a7f6d6b57893e857c5d30e0d3629ea5501650ace6705647d6cd740005c19a34.
Solidity: event UpdateSwapFee(address indexed underlying, uint256 indexed vtpID, uint256 newIn, uint256 newOut)
func (*StapleControllerFilterer) WatchUpdateTL ¶
func (_StapleController *StapleControllerFilterer) WatchUpdateTL(opts *bind.WatchOpts, sink chan<- *StapleControllerUpdateTL, underlying []common.Address) (event.Subscription, error)
WatchUpdateTL is a free log subscription operation binding the contract event 0xac065ae6ed4bd1cc5125544fea35e4011f475af7fe8dabf8a300e1b23af793da.
Solidity: event UpdateTL(address indexed underlying, uint8 newTL)
func (*StapleControllerFilterer) WatchUpdateWhiteList ¶
func (_StapleController *StapleControllerFilterer) WatchUpdateWhiteList(opts *bind.WatchOpts, sink chan<- *StapleControllerUpdateWhiteList) (event.Subscription, error)
WatchUpdateWhiteList is a free log subscription operation binding the contract event 0xa13b10df67b8060b0016082524a0b6dba104b23bcb9e34397dda989972efc7fd.
Solidity: event UpdateWhiteList(address[] addresses, uint256[] discounts)
type StapleControllerRaw ¶
type StapleControllerRaw struct {
Contract *StapleController // Generic contract binding to access the raw methods on
}
StapleControllerRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*StapleControllerRaw) Call ¶
func (_StapleController *StapleControllerRaw) 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 (*StapleControllerRaw) Transact ¶
func (_StapleController *StapleControllerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StapleControllerRaw) Transfer ¶
func (_StapleController *StapleControllerRaw) 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 StapleControllerSession ¶
type StapleControllerSession struct { Contract *StapleController // 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 }
StapleControllerSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*StapleControllerSession) Allocate ¶
func (_StapleController *StapleControllerSession) Allocate(input VtpDataTypesAllocateInput) (*types.Transaction, error)
Allocate is a paid mutator transaction binding the contract method 0x45948e47.
Solidity: function allocate((address,address,uint256,uint256,uint256,uint256) input) returns()
func (*StapleControllerSession) Deallocate ¶
func (_StapleController *StapleControllerSession) Deallocate(input VtpDataTypesDeallocateInput) (*types.Transaction, error)
Deallocate is a paid mutator transaction binding the contract method 0xffeca21a.
Solidity: function deallocate((address,address,uint256,uint256,uint256,uint256) input) returns()
func (*StapleControllerSession) DefaultImpl ¶
func (_StapleController *StapleControllerSession) DefaultImpl() (common.Address, error)
DefaultImpl is a free data retrieval call binding the contract method 0x631ffbf3.
Solidity: function defaultImpl() view returns(address)
func (*StapleControllerSession) Deposit ¶
func (_StapleController *StapleControllerSession) Deposit(input PoolDataTypesPoolActionInput) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xe3b08e79.
Solidity: function deposit((address,uint256,address,address) input) returns(uint256 shares)
func (*StapleControllerSession) EstimateAllocationFee ¶
func (_StapleController *StapleControllerSession) EstimateAllocationFee(input VtpDataTypesAllocateInput) (*big.Int, error)
EstimateAllocationFee is a free data retrieval call binding the contract method 0x6805d640.
Solidity: function estimateAllocationFee((address,address,uint256,uint256,uint256,uint256) input) view returns(uint256 fee)
func (*StapleControllerSession) EstimateDeallocationFee ¶
func (_StapleController *StapleControllerSession) EstimateDeallocationFee(input VtpDataTypesDeallocateInput) (*big.Int, error)
EstimateDeallocationFee is a free data retrieval call binding the contract method 0x258fc746.
Solidity: function estimateDeallocationFee((address,address,uint256,uint256,uint256,uint256) input) view returns(uint256 fee)
func (*StapleControllerSession) EstimateSwapSingleOut ¶
func (_StapleController *StapleControllerSession) EstimateSwapSingleOut(input SwapDataTypesSwapSingleInput) (SwapDataTypesSwapSingleProcess, error)
EstimateSwapSingleOut is a free data retrieval call binding the contract method 0x1f5a7298.
Solidity: function estimateSwapSingleOut((address,address,address,uint256,uint256,uint256) input) view returns((uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool,uint256) process)
func (*StapleControllerSession) GetCreditCostOfVtp ¶
func (_StapleController *StapleControllerSession) GetCreditCostOfVtp(vtpID *big.Int) (*big.Int, error)
GetCreditCostOfVtp is a free data retrieval call binding the contract method 0x586a6d06.
Solidity: function getCreditCostOfVtp(uint256 vtpID) view returns(uint256)
func (*StapleControllerSession) GetCreditTotalLimit ¶
func (_StapleController *StapleControllerSession) GetCreditTotalLimit() (*big.Int, error)
GetCreditTotalLimit is a free data retrieval call binding the contract method 0x7ed605dc.
Solidity: function getCreditTotalLimit() view returns(uint256)
func (*StapleControllerSession) GetPairedToken ¶
func (_StapleController *StapleControllerSession) GetPairedToken(underlying common.Address, vtpID *big.Int) (common.Address, error)
GetPairedToken is a free data retrieval call binding the contract method 0xcb760918.
Solidity: function getPairedToken(address underlying, uint256 vtpID) view returns(address)
func (*StapleControllerSession) GetPoolParams ¶
func (_StapleController *StapleControllerSession) GetPoolParams(underlying common.Address) (PoolDataTypesPoolParams, error)
GetPoolParams is a free data retrieval call binding the contract method 0xa2b78ff4.
Solidity: function getPoolParams(address underlying) view returns((uint256,address,address,uint8,uint8,uint256[]))
func (*StapleControllerSession) GetVtp ¶
func (_StapleController *StapleControllerSession) GetVtp(vtpID *big.Int) (VtpDataTypesVtp, error)
GetVtp is a free data retrieval call binding the contract method 0xa01bdbef.
Solidity: function getVtp(uint256 vtpID) view returns(((uint8,uint256,uint256,uint256),(uint256,uint256),((address,address,uint8,uint8,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool)),((address,address,uint8,uint8,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool))))
func (*StapleControllerSession) GetVtpToken ¶
func (_StapleController *StapleControllerSession) GetVtpToken(underlying common.Address, vtpID *big.Int) (VtpDataTypesVtpToken, error)
GetVtpToken is a free data retrieval call binding the contract method 0x533f927c.
Solidity: function getVtpToken(address underlying, uint256 vtpID) view returns(((address,address,uint8,uint8,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool)))
func (*StapleControllerSession) Id2underlying ¶
func (_StapleController *StapleControllerSession) Id2underlying(id *big.Int) (common.Address, error)
Id2underlying is a free data retrieval call binding the contract method 0x9dfd9826.
Solidity: function id2underlying(uint256 id) view returns(address underlying)
func (*StapleControllerSession) IncentivesController ¶
func (_StapleController *StapleControllerSession) IncentivesController() (common.Address, error)
IncentivesController is a free data retrieval call binding the contract method 0xaf1df255.
Solidity: function incentivesController() view returns(address)
func (*StapleControllerSession) ProxyAdmin ¶
func (_StapleController *StapleControllerSession) ProxyAdmin() (common.Address, error)
ProxyAdmin is a free data retrieval call binding the contract method 0x3e47158c.
Solidity: function proxyAdmin() view returns(address)
func (*StapleControllerSession) Router ¶
func (_StapleController *StapleControllerSession) Router() (common.Address, error)
Router is a free data retrieval call binding the contract method 0xf887ea40.
Solidity: function router() view returns(address)
func (*StapleControllerSession) Swap ¶
func (_StapleController *StapleControllerSession) Swap(input SwapDataTypesSwapSingleInput) (*types.Transaction, error)
Swap is a paid mutator transaction binding the contract method 0x441a12de.
Solidity: function swap((address,address,address,uint256,uint256,uint256) input) returns(uint256 realOut)
func (*StapleControllerSession) TokenCount ¶
func (_StapleController *StapleControllerSession) TokenCount() (*big.Int, error)
TokenCount is a free data retrieval call binding the contract method 0x9f181b5e.
Solidity: function tokenCount() view returns(uint256)
func (*StapleControllerSession) UserAllocatedVtps ¶
func (_StapleController *StapleControllerSession) UserAllocatedVtps(user common.Address, underlying common.Address) ([]*big.Int, error)
UserAllocatedVtps is a free data retrieval call binding the contract method 0xd0366519.
Solidity: function userAllocatedVtps(address user, address underlying) view returns(uint256[] vtpIDs)
func (*StapleControllerSession) UserAllocation ¶
func (_StapleController *StapleControllerSession) UserAllocation(user common.Address, underlying common.Address, vtpID *big.Int) (struct { Allocation *big.Int Shares *big.Int }, error)
UserAllocation is a free data retrieval call binding the contract method 0xe7ea0458.
Solidity: function userAllocation(address user, address underlying, uint256 vtpID) view returns(uint256 allocation, uint256 shares)
func (*StapleControllerSession) UserDeposition ¶
func (_StapleController *StapleControllerSession) UserDeposition(user common.Address, underlying common.Address) (*big.Int, error)
UserDeposition is a free data retrieval call binding the contract method 0x37a70556.
Solidity: function userDeposition(address user, address underlying) view returns(uint256 amount)
func (*StapleControllerSession) UserDiscount ¶
func (_StapleController *StapleControllerSession) UserDiscount(user common.Address) (*big.Int, error)
UserDiscount is a free data retrieval call binding the contract method 0x2ceb46e2.
Solidity: function userDiscount(address user) view returns(uint256 discount)
func (*StapleControllerSession) UserMaxAllocation ¶
func (_StapleController *StapleControllerSession) UserMaxAllocation(_user common.Address, _underlying common.Address, _vtpID *big.Int) (*big.Int, error)
UserMaxAllocation is a free data retrieval call binding the contract method 0x90602940.
Solidity: function userMaxAllocation(address _user, address _underlying, uint256 _vtpID) view returns(uint256 maxAllocation_)
func (*StapleControllerSession) UserMaxDeallocation ¶
func (_StapleController *StapleControllerSession) UserMaxDeallocation(_user common.Address, _underlying common.Address, _vtpID *big.Int) (*big.Int, error)
UserMaxDeallocation is a free data retrieval call binding the contract method 0x51ca8936.
Solidity: function userMaxDeallocation(address _user, address _underlying, uint256 _vtpID) view returns(uint256 maxDeallocation_)
func (*StapleControllerSession) UserRewards ¶
func (_StapleController *StapleControllerSession) UserRewards(user common.Address, underlying common.Address, vtpID *big.Int) (*big.Int, error)
UserRewards is a free data retrieval call binding the contract method 0xc6e18b28.
Solidity: function userRewards(address user, address underlying, uint256 vtpID) view returns(uint256 rewards)
func (*StapleControllerSession) UserUnchargedFee ¶
func (_StapleController *StapleControllerSession) UserUnchargedFee(user common.Address, underlying common.Address, vtpID *big.Int) (*big.Int, error)
UserUnchargedFee is a free data retrieval call binding the contract method 0xc5495459.
Solidity: function userUnchargedFee(address user, address underlying, uint256 vtpID) view returns(uint256)
func (*StapleControllerSession) UserUnlockedUnderlying ¶
func (_StapleController *StapleControllerSession) UserUnlockedUnderlying(user common.Address, underlying common.Address) (*big.Int, error)
UserUnlockedUnderlying is a free data retrieval call binding the contract method 0x4969f69f.
Solidity: function userUnlockedUnderlying(address user, address underlying) view returns(uint256 unlocked)
func (*StapleControllerSession) VtpCount ¶
func (_StapleController *StapleControllerSession) VtpCount() (*big.Int, error)
VtpCount is a free data retrieval call binding the contract method 0xdd4402ca.
Solidity: function vtpCount() view returns(uint256)
func (*StapleControllerSession) Withdraw ¶
func (_StapleController *StapleControllerSession) Withdraw(input PoolDataTypesPoolActionInput) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x175b87d1.
Solidity: function withdraw((address,uint256,address,address) input) returns(uint256 shares)
type StapleControllerTransactor ¶
type StapleControllerTransactor struct {
// contains filtered or unexported fields
}
StapleControllerTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewStapleControllerTransactor ¶
func NewStapleControllerTransactor(address common.Address, transactor bind.ContractTransactor) (*StapleControllerTransactor, error)
NewStapleControllerTransactor creates a new write-only instance of StapleController, bound to a specific deployed contract.
func (*StapleControllerTransactor) Allocate ¶
func (_StapleController *StapleControllerTransactor) Allocate(opts *bind.TransactOpts, input VtpDataTypesAllocateInput) (*types.Transaction, error)
Allocate is a paid mutator transaction binding the contract method 0x45948e47.
Solidity: function allocate((address,address,uint256,uint256,uint256,uint256) input) returns()
func (*StapleControllerTransactor) Deallocate ¶
func (_StapleController *StapleControllerTransactor) Deallocate(opts *bind.TransactOpts, input VtpDataTypesDeallocateInput) (*types.Transaction, error)
Deallocate is a paid mutator transaction binding the contract method 0xffeca21a.
Solidity: function deallocate((address,address,uint256,uint256,uint256,uint256) input) returns()
func (*StapleControllerTransactor) Deposit ¶
func (_StapleController *StapleControllerTransactor) Deposit(opts *bind.TransactOpts, input PoolDataTypesPoolActionInput) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xe3b08e79.
Solidity: function deposit((address,uint256,address,address) input) returns(uint256 shares)
func (*StapleControllerTransactor) Swap ¶
func (_StapleController *StapleControllerTransactor) Swap(opts *bind.TransactOpts, input SwapDataTypesSwapSingleInput) (*types.Transaction, error)
Swap is a paid mutator transaction binding the contract method 0x441a12de.
Solidity: function swap((address,address,address,uint256,uint256,uint256) input) returns(uint256 realOut)
func (*StapleControllerTransactor) Withdraw ¶
func (_StapleController *StapleControllerTransactor) Withdraw(opts *bind.TransactOpts, input PoolDataTypesPoolActionInput) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x175b87d1.
Solidity: function withdraw((address,uint256,address,address) input) returns(uint256 shares)
type StapleControllerTransactorRaw ¶
type StapleControllerTransactorRaw struct {
Contract *StapleControllerTransactor // Generic write-only contract binding to access the raw methods on
}
StapleControllerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*StapleControllerTransactorRaw) Transact ¶
func (_StapleController *StapleControllerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StapleControllerTransactorRaw) Transfer ¶
func (_StapleController *StapleControllerTransactorRaw) 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 StapleControllerTransactorSession ¶
type StapleControllerTransactorSession struct { Contract *StapleControllerTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
StapleControllerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*StapleControllerTransactorSession) Allocate ¶
func (_StapleController *StapleControllerTransactorSession) Allocate(input VtpDataTypesAllocateInput) (*types.Transaction, error)
Allocate is a paid mutator transaction binding the contract method 0x45948e47.
Solidity: function allocate((address,address,uint256,uint256,uint256,uint256) input) returns()
func (*StapleControllerTransactorSession) Deallocate ¶
func (_StapleController *StapleControllerTransactorSession) Deallocate(input VtpDataTypesDeallocateInput) (*types.Transaction, error)
Deallocate is a paid mutator transaction binding the contract method 0xffeca21a.
Solidity: function deallocate((address,address,uint256,uint256,uint256,uint256) input) returns()
func (*StapleControllerTransactorSession) Deposit ¶
func (_StapleController *StapleControllerTransactorSession) Deposit(input PoolDataTypesPoolActionInput) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xe3b08e79.
Solidity: function deposit((address,uint256,address,address) input) returns(uint256 shares)
func (*StapleControllerTransactorSession) Swap ¶
func (_StapleController *StapleControllerTransactorSession) Swap(input SwapDataTypesSwapSingleInput) (*types.Transaction, error)
Swap is a paid mutator transaction binding the contract method 0x441a12de.
Solidity: function swap((address,address,address,uint256,uint256,uint256) input) returns(uint256 realOut)
func (*StapleControllerTransactorSession) Withdraw ¶
func (_StapleController *StapleControllerTransactorSession) Withdraw(input PoolDataTypesPoolActionInput) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x175b87d1.
Solidity: function withdraw((address,uint256,address,address) input) returns(uint256 shares)
type StapleControllerUpdateAlrLowerBound ¶
type StapleControllerUpdateAlrLowerBound struct { Underlying common.Address VtpID *big.Int NewBound *big.Int Raw types.Log // Blockchain specific contextual infos }
StapleControllerUpdateAlrLowerBound represents a UpdateAlrLowerBound event raised by the StapleController contract.
type StapleControllerUpdateAlrLowerBoundIterator ¶
type StapleControllerUpdateAlrLowerBoundIterator struct { Event *StapleControllerUpdateAlrLowerBound // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StapleControllerUpdateAlrLowerBoundIterator is returned from FilterUpdateAlrLowerBound and is used to iterate over the raw logs and unpacked data for UpdateAlrLowerBound events raised by the StapleController contract.
func (*StapleControllerUpdateAlrLowerBoundIterator) Close ¶
func (it *StapleControllerUpdateAlrLowerBoundIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StapleControllerUpdateAlrLowerBoundIterator) Error ¶
func (it *StapleControllerUpdateAlrLowerBoundIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StapleControllerUpdateAlrLowerBoundIterator) Next ¶
func (it *StapleControllerUpdateAlrLowerBoundIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type StapleControllerUpdateDefaultTokenImplementation ¶
type StapleControllerUpdateDefaultTokenImplementation struct { NewAddress common.Address Raw types.Log // Blockchain specific contextual infos }
StapleControllerUpdateDefaultTokenImplementation represents a UpdateDefaultTokenImplementation event raised by the StapleController contract.
type StapleControllerUpdateDefaultTokenImplementationIterator ¶
type StapleControllerUpdateDefaultTokenImplementationIterator struct { Event *StapleControllerUpdateDefaultTokenImplementation // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StapleControllerUpdateDefaultTokenImplementationIterator is returned from FilterUpdateDefaultTokenImplementation and is used to iterate over the raw logs and unpacked data for UpdateDefaultTokenImplementation events raised by the StapleController contract.
func (*StapleControllerUpdateDefaultTokenImplementationIterator) Close ¶
func (it *StapleControllerUpdateDefaultTokenImplementationIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StapleControllerUpdateDefaultTokenImplementationIterator) Error ¶
func (it *StapleControllerUpdateDefaultTokenImplementationIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StapleControllerUpdateDefaultTokenImplementationIterator) Next ¶
func (it *StapleControllerUpdateDefaultTokenImplementationIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type StapleControllerUpdateIncentivesController ¶
type StapleControllerUpdateIncentivesController struct { NewAddress common.Address Raw types.Log // Blockchain specific contextual infos }
StapleControllerUpdateIncentivesController represents a UpdateIncentivesController event raised by the StapleController contract.
type StapleControllerUpdateIncentivesControllerIterator ¶
type StapleControllerUpdateIncentivesControllerIterator struct { Event *StapleControllerUpdateIncentivesController // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StapleControllerUpdateIncentivesControllerIterator is returned from FilterUpdateIncentivesController and is used to iterate over the raw logs and unpacked data for UpdateIncentivesController events raised by the StapleController contract.
func (*StapleControllerUpdateIncentivesControllerIterator) Close ¶
func (it *StapleControllerUpdateIncentivesControllerIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StapleControllerUpdateIncentivesControllerIterator) Error ¶
func (it *StapleControllerUpdateIncentivesControllerIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StapleControllerUpdateIncentivesControllerIterator) Next ¶
func (it *StapleControllerUpdateIncentivesControllerIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type StapleControllerUpdateMaxAllocateRate ¶
type StapleControllerUpdateMaxAllocateRate struct { Underlying common.Address VtpID *big.Int NewRate *big.Int Raw types.Log // Blockchain specific contextual infos }
StapleControllerUpdateMaxAllocateRate represents a UpdateMaxAllocateRate event raised by the StapleController contract.
type StapleControllerUpdateMaxAllocateRateIterator ¶
type StapleControllerUpdateMaxAllocateRateIterator struct { Event *StapleControllerUpdateMaxAllocateRate // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StapleControllerUpdateMaxAllocateRateIterator is returned from FilterUpdateMaxAllocateRate and is used to iterate over the raw logs and unpacked data for UpdateMaxAllocateRate events raised by the StapleController contract.
func (*StapleControllerUpdateMaxAllocateRateIterator) Close ¶
func (it *StapleControllerUpdateMaxAllocateRateIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StapleControllerUpdateMaxAllocateRateIterator) Error ¶
func (it *StapleControllerUpdateMaxAllocateRateIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StapleControllerUpdateMaxAllocateRateIterator) Next ¶
func (it *StapleControllerUpdateMaxAllocateRateIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type StapleControllerUpdatePauseStatus ¶
type StapleControllerUpdatePauseStatus struct { Underlying common.Address VtpID *big.Int NewStatus bool Raw types.Log // Blockchain specific contextual infos }
StapleControllerUpdatePauseStatus represents a UpdatePauseStatus event raised by the StapleController contract.
type StapleControllerUpdatePauseStatusIterator ¶
type StapleControllerUpdatePauseStatusIterator struct { Event *StapleControllerUpdatePauseStatus // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StapleControllerUpdatePauseStatusIterator is returned from FilterUpdatePauseStatus and is used to iterate over the raw logs and unpacked data for UpdatePauseStatus events raised by the StapleController contract.
func (*StapleControllerUpdatePauseStatusIterator) Close ¶
func (it *StapleControllerUpdatePauseStatusIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StapleControllerUpdatePauseStatusIterator) Error ¶
func (it *StapleControllerUpdatePauseStatusIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StapleControllerUpdatePauseStatusIterator) Next ¶
func (it *StapleControllerUpdatePauseStatusIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type StapleControllerUpdateProtocolFeeRate ¶
type StapleControllerUpdateProtocolFeeRate struct { Underlying common.Address VtpID *big.Int NewRate *big.Int Raw types.Log // Blockchain specific contextual infos }
StapleControllerUpdateProtocolFeeRate represents a UpdateProtocolFeeRate event raised by the StapleController contract.
type StapleControllerUpdateProtocolFeeRateIterator ¶
type StapleControllerUpdateProtocolFeeRateIterator struct { Event *StapleControllerUpdateProtocolFeeRate // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StapleControllerUpdateProtocolFeeRateIterator is returned from FilterUpdateProtocolFeeRate and is used to iterate over the raw logs and unpacked data for UpdateProtocolFeeRate events raised by the StapleController contract.
func (*StapleControllerUpdateProtocolFeeRateIterator) Close ¶
func (it *StapleControllerUpdateProtocolFeeRateIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StapleControllerUpdateProtocolFeeRateIterator) Error ¶
func (it *StapleControllerUpdateProtocolFeeRateIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StapleControllerUpdateProtocolFeeRateIterator) Next ¶
func (it *StapleControllerUpdateProtocolFeeRateIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type StapleControllerUpdateProxyAdmin ¶
type StapleControllerUpdateProxyAdmin struct { NewAddress common.Address Raw types.Log // Blockchain specific contextual infos }
StapleControllerUpdateProxyAdmin represents a UpdateProxyAdmin event raised by the StapleController contract.
type StapleControllerUpdateProxyAdminIterator ¶
type StapleControllerUpdateProxyAdminIterator struct { Event *StapleControllerUpdateProxyAdmin // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StapleControllerUpdateProxyAdminIterator is returned from FilterUpdateProxyAdmin and is used to iterate over the raw logs and unpacked data for UpdateProxyAdmin events raised by the StapleController contract.
func (*StapleControllerUpdateProxyAdminIterator) Close ¶
func (it *StapleControllerUpdateProxyAdminIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StapleControllerUpdateProxyAdminIterator) Error ¶
func (it *StapleControllerUpdateProxyAdminIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StapleControllerUpdateProxyAdminIterator) Next ¶
func (it *StapleControllerUpdateProxyAdminIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type StapleControllerUpdateRiskInfo ¶
type StapleControllerUpdateRiskInfo struct { CreditLimit *big.Int Vls []*big.Int Credits []*big.Int Raw types.Log // Blockchain specific contextual infos }
StapleControllerUpdateRiskInfo represents a UpdateRiskInfo event raised by the StapleController contract.
type StapleControllerUpdateRiskInfoIterator ¶
type StapleControllerUpdateRiskInfoIterator struct { Event *StapleControllerUpdateRiskInfo // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StapleControllerUpdateRiskInfoIterator is returned from FilterUpdateRiskInfo and is used to iterate over the raw logs and unpacked data for UpdateRiskInfo events raised by the StapleController contract.
func (*StapleControllerUpdateRiskInfoIterator) Close ¶
func (it *StapleControllerUpdateRiskInfoIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StapleControllerUpdateRiskInfoIterator) Error ¶
func (it *StapleControllerUpdateRiskInfoIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StapleControllerUpdateRiskInfoIterator) Next ¶
func (it *StapleControllerUpdateRiskInfoIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type StapleControllerUpdateRouter ¶
type StapleControllerUpdateRouter struct { NewAddress common.Address Raw types.Log // Blockchain specific contextual infos }
StapleControllerUpdateRouter represents a UpdateRouter event raised by the StapleController contract.
type StapleControllerUpdateRouterIterator ¶
type StapleControllerUpdateRouterIterator struct { Event *StapleControllerUpdateRouter // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StapleControllerUpdateRouterIterator is returned from FilterUpdateRouter and is used to iterate over the raw logs and unpacked data for UpdateRouter events raised by the StapleController contract.
func (*StapleControllerUpdateRouterIterator) Close ¶
func (it *StapleControllerUpdateRouterIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StapleControllerUpdateRouterIterator) Error ¶
func (it *StapleControllerUpdateRouterIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StapleControllerUpdateRouterIterator) Next ¶
func (it *StapleControllerUpdateRouterIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type StapleControllerUpdateSwapFee ¶
type StapleControllerUpdateSwapFee struct { Underlying common.Address VtpID *big.Int NewIn *big.Int NewOut *big.Int Raw types.Log // Blockchain specific contextual infos }
StapleControllerUpdateSwapFee represents a UpdateSwapFee event raised by the StapleController contract.
type StapleControllerUpdateSwapFeeIterator ¶
type StapleControllerUpdateSwapFeeIterator struct { Event *StapleControllerUpdateSwapFee // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StapleControllerUpdateSwapFeeIterator is returned from FilterUpdateSwapFee and is used to iterate over the raw logs and unpacked data for UpdateSwapFee events raised by the StapleController contract.
func (*StapleControllerUpdateSwapFeeIterator) Close ¶
func (it *StapleControllerUpdateSwapFeeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StapleControllerUpdateSwapFeeIterator) Error ¶
func (it *StapleControllerUpdateSwapFeeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StapleControllerUpdateSwapFeeIterator) Next ¶
func (it *StapleControllerUpdateSwapFeeIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type StapleControllerUpdateTL ¶
type StapleControllerUpdateTL struct { Underlying common.Address NewTL uint8 Raw types.Log // Blockchain specific contextual infos }
StapleControllerUpdateTL represents a UpdateTL event raised by the StapleController contract.
type StapleControllerUpdateTLIterator ¶
type StapleControllerUpdateTLIterator struct { Event *StapleControllerUpdateTL // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StapleControllerUpdateTLIterator is returned from FilterUpdateTL and is used to iterate over the raw logs and unpacked data for UpdateTL events raised by the StapleController contract.
func (*StapleControllerUpdateTLIterator) Close ¶
func (it *StapleControllerUpdateTLIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StapleControllerUpdateTLIterator) Error ¶
func (it *StapleControllerUpdateTLIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StapleControllerUpdateTLIterator) Next ¶
func (it *StapleControllerUpdateTLIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type StapleControllerUpdateWhiteList ¶
type StapleControllerUpdateWhiteList struct { Addresses []common.Address Discounts []*big.Int Raw types.Log // Blockchain specific contextual infos }
StapleControllerUpdateWhiteList represents a UpdateWhiteList event raised by the StapleController contract.
type StapleControllerUpdateWhiteListIterator ¶
type StapleControllerUpdateWhiteListIterator struct { Event *StapleControllerUpdateWhiteList // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StapleControllerUpdateWhiteListIterator is returned from FilterUpdateWhiteList and is used to iterate over the raw logs and unpacked data for UpdateWhiteList events raised by the StapleController contract.
func (*StapleControllerUpdateWhiteListIterator) Close ¶
func (it *StapleControllerUpdateWhiteListIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StapleControllerUpdateWhiteListIterator) Error ¶
func (it *StapleControllerUpdateWhiteListIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StapleControllerUpdateWhiteListIterator) Next ¶
func (it *StapleControllerUpdateWhiteListIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type SwapDataTypesSwapSingleInput ¶
type SwapDataTypesSwapSingleInput struct { User common.Address TokenIn common.Address TokenOut common.Address VtpID *big.Int AmountIn *big.Int PriceRate *big.Int }
SwapDataTypesSwapSingleInput is an auto generated low-level Go binding around an user-defined struct.
type SwapDataTypesSwapSingleProcess ¶
type SwapDataTypesSwapSingleProcess struct { AmountIn *big.Int FeeIn *big.Int RealIn *big.Int Pav *big.Int SwapGet *big.Int FeeOut *big.Int EstiOut *big.Int Punishment *big.Int IsPunishment bool RealOut *big.Int }
SwapDataTypesSwapSingleProcess is an auto generated low-level Go binding around an user-defined struct.
type VtpDataTypesAllocateInput ¶
type VtpDataTypesAllocateInput struct { User common.Address Underlying common.Address VtpID *big.Int Amount *big.Int PriceRate *big.Int MaxFeeRate *big.Int }
VtpDataTypesAllocateInput is an auto generated low-level Go binding around an user-defined struct.
type VtpDataTypesDeallocateInput ¶
type VtpDataTypesDeallocateInput struct { User common.Address Underlying common.Address VtpID *big.Int Amount *big.Int PriceRate *big.Int MaxFeeRate *big.Int }
VtpDataTypesDeallocateInput is an auto generated low-level Go binding around an user-defined struct.
type VtpDataTypesVtp ¶
type VtpDataTypesVtp struct { Params VtpDataTypesVtpParams Status VtpDataTypesVtpStatus Token0 VtpDataTypesVtpToken Token1 VtpDataTypesVtpToken }
VtpDataTypesVtp is an auto generated low-level Go binding around an user-defined struct.
type VtpDataTypesVtpParams ¶
VtpDataTypesVtpParams is an auto generated low-level Go binding around an user-defined struct.
type VtpDataTypesVtpStatus ¶
VtpDataTypesVtpStatus is an auto generated low-level Go binding around an user-defined struct.
type VtpDataTypesVtpToken ¶
type VtpDataTypesVtpToken struct { Params VtpDataTypesVtpTokenParams Status VtpDataTypesVtpTokenStatus }
VtpDataTypesVtpToken is an auto generated low-level Go binding around an user-defined struct.
type VtpDataTypesVtpTokenParams ¶
type VtpDataTypesVtpTokenParams struct { Addr common.Address LpAddr common.Address Decimals uint8 Tl uint8 Id *big.Int MaxAllocateRate *big.Int SwapFeeIn *big.Int SwapFeeOut *big.Int ProtocolFeeRate *big.Int AlrLowerBound *big.Int }
VtpDataTypesVtpTokenParams is an auto generated low-level Go binding around an user-defined struct.
type VtpDataTypesVtpTokenStatus ¶
type VtpDataTypesVtpTokenStatus struct { Allocated *big.Int Liability *big.Int Asset *big.Int Alr *big.Int TotalFeeCollected *big.Int FeeCollected *big.Int FeeCollectedProtocol *big.Int Paused bool }
VtpDataTypesVtpTokenStatus is an auto generated low-level Go binding around an user-defined struct.