Versions in this module Expand all Collapse all v0 v0.7.0 Oct 25, 2023 Changes in this version + const ControllerAddress + const InfuraRPC + const Osqth + var B *bind.CallOpts = &bind.CallOpts + var ControllerABI = ControllerMetaData.ABI + var ControllerMetaData = &bind.MetaData + func GetClient() (*ethclient.Client, error) + func Twap(controller *Controller) float64 + type Controller struct + func NewController(address common.Address, backend bind.ContractBackend) (*Controller, error) + type ControllerBurnShort struct + Amount *big.Int + Raw types.Log + Sender common.Address + VaultId *big.Int + type ControllerBurnShortIterator struct + Event *ControllerBurnShort + func (it *ControllerBurnShortIterator) Close() error + func (it *ControllerBurnShortIterator) Error() error + func (it *ControllerBurnShortIterator) Next() bool + type ControllerCaller struct + func NewControllerCaller(address common.Address, caller bind.ContractCaller) (*ControllerCaller, error) + func (_Controller *ControllerCaller) EthQuoteCurrencyPool(opts *bind.CallOpts) (common.Address, error) + func (_Controller *ControllerCaller) FUNDINGPERIOD(opts *bind.CallOpts) (*big.Int, error) + func (_Controller *ControllerCaller) FeeRate(opts *bind.CallOpts) (*big.Int, error) + func (_Controller *ControllerCaller) FeeRecipient(opts *bind.CallOpts) (common.Address, error) + func (_Controller *ControllerCaller) FeeTier(opts *bind.CallOpts) (*big.Int, error) + func (_Controller *ControllerCaller) GetDenormalizedMark(opts *bind.CallOpts, _period uint32) (*big.Int, error) + func (_Controller *ControllerCaller) GetDenormalizedMarkForFunding(opts *bind.CallOpts, _period uint32) (*big.Int, error) + func (_Controller *ControllerCaller) GetExpectedNormalizationFactor(opts *bind.CallOpts) (*big.Int, error) + func (_Controller *ControllerCaller) GetIndex(opts *bind.CallOpts, _period uint32) (*big.Int, error) + func (_Controller *ControllerCaller) GetUnscaledIndex(opts *bind.CallOpts, _period uint32) (*big.Int, error) + func (_Controller *ControllerCaller) IndexForSettlement(opts *bind.CallOpts) (*big.Int, error) + func (_Controller *ControllerCaller) IsShutDown(opts *bind.CallOpts) (bool, error) + func (_Controller *ControllerCaller) IsSystemPaused(opts *bind.CallOpts) (bool, error) + func (_Controller *ControllerCaller) IsVaultSafe(opts *bind.CallOpts, _vaultId *big.Int) (bool, error) + func (_Controller *ControllerCaller) LastFundingUpdateTimestamp(opts *bind.CallOpts) (*big.Int, error) + func (_Controller *ControllerCaller) LastPauseTime(opts *bind.CallOpts) (*big.Int, error) + func (_Controller *ControllerCaller) NormalizationFactor(opts *bind.CallOpts) (*big.Int, error) + func (_Controller *ControllerCaller) Oracle(opts *bind.CallOpts) (common.Address, error) + func (_Controller *ControllerCaller) Owner(opts *bind.CallOpts) (common.Address, error) + func (_Controller *ControllerCaller) PausesLeft(opts *bind.CallOpts) (*big.Int, error) + func (_Controller *ControllerCaller) QuoteCurrency(opts *bind.CallOpts) (common.Address, error) + func (_Controller *ControllerCaller) ShortPowerPerp(opts *bind.CallOpts) (common.Address, error) + func (_Controller *ControllerCaller) TWAPPERIOD(opts *bind.CallOpts) (uint32, error) + func (_Controller *ControllerCaller) Vaults(opts *bind.CallOpts, arg0 *big.Int) (struct{ ... }, error) + func (_Controller *ControllerCaller) WPowerPerp(opts *bind.CallOpts) (common.Address, error) + func (_Controller *ControllerCaller) WPowerPerpPool(opts *bind.CallOpts) (common.Address, error) + func (_Controller *ControllerCaller) Weth(opts *bind.CallOpts) (common.Address, error) + type ControllerCallerRaw struct + Contract *ControllerCaller + func (_Controller *ControllerCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + type ControllerCallerSession struct + CallOpts bind.CallOpts + Contract *ControllerCaller + func (_Controller *ControllerCallerSession) EthQuoteCurrencyPool() (common.Address, error) + func (_Controller *ControllerCallerSession) FUNDINGPERIOD() (*big.Int, error) + func (_Controller *ControllerCallerSession) FeeRate() (*big.Int, error) + func (_Controller *ControllerCallerSession) FeeRecipient() (common.Address, error) + func (_Controller *ControllerCallerSession) FeeTier() (*big.Int, error) + func (_Controller *ControllerCallerSession) GetDenormalizedMark(_period uint32) (*big.Int, error) + func (_Controller *ControllerCallerSession) GetDenormalizedMarkForFunding(_period uint32) (*big.Int, error) + func (_Controller *ControllerCallerSession) GetExpectedNormalizationFactor() (*big.Int, error) + func (_Controller *ControllerCallerSession) GetIndex(_period uint32) (*big.Int, error) + func (_Controller *ControllerCallerSession) GetUnscaledIndex(_period uint32) (*big.Int, error) + func (_Controller *ControllerCallerSession) IndexForSettlement() (*big.Int, error) + func (_Controller *ControllerCallerSession) IsShutDown() (bool, error) + func (_Controller *ControllerCallerSession) IsSystemPaused() (bool, error) + func (_Controller *ControllerCallerSession) IsVaultSafe(_vaultId *big.Int) (bool, error) + func (_Controller *ControllerCallerSession) LastFundingUpdateTimestamp() (*big.Int, error) + func (_Controller *ControllerCallerSession) LastPauseTime() (*big.Int, error) + func (_Controller *ControllerCallerSession) NormalizationFactor() (*big.Int, error) + func (_Controller *ControllerCallerSession) Oracle() (common.Address, error) + func (_Controller *ControllerCallerSession) Owner() (common.Address, error) + func (_Controller *ControllerCallerSession) PausesLeft() (*big.Int, error) + func (_Controller *ControllerCallerSession) QuoteCurrency() (common.Address, error) + func (_Controller *ControllerCallerSession) ShortPowerPerp() (common.Address, error) + func (_Controller *ControllerCallerSession) TWAPPERIOD() (uint32, error) + func (_Controller *ControllerCallerSession) Vaults(arg0 *big.Int) (struct{ ... }, error) + func (_Controller *ControllerCallerSession) WPowerPerp() (common.Address, error) + func (_Controller *ControllerCallerSession) WPowerPerpPool() (common.Address, error) + func (_Controller *ControllerCallerSession) Weth() (common.Address, error) + type ControllerDepositCollateral struct + Amount *big.Int + Raw types.Log + Sender common.Address + VaultId *big.Int + type ControllerDepositCollateralIterator struct + Event *ControllerDepositCollateral + func (it *ControllerDepositCollateralIterator) Close() error + func (it *ControllerDepositCollateralIterator) Error() error + func (it *ControllerDepositCollateralIterator) Next() bool + type ControllerDepositUniPositionToken struct + Raw types.Log + Sender common.Address + TokenId *big.Int + VaultId *big.Int + type ControllerDepositUniPositionTokenIterator struct + Event *ControllerDepositUniPositionToken + func (it *ControllerDepositUniPositionTokenIterator) Close() error + func (it *ControllerDepositUniPositionTokenIterator) Error() error + func (it *ControllerDepositUniPositionTokenIterator) Next() bool + type ControllerFeeRateUpdated struct + NewFee *big.Int + OldFee *big.Int + Raw types.Log + type ControllerFeeRateUpdatedIterator struct + Event *ControllerFeeRateUpdated + func (it *ControllerFeeRateUpdatedIterator) Close() error + func (it *ControllerFeeRateUpdatedIterator) Error() error + func (it *ControllerFeeRateUpdatedIterator) Next() bool + type ControllerFeeRecipientUpdated struct + NewFeeRecipient common.Address + OldFeeRecipient common.Address + Raw types.Log + type ControllerFeeRecipientUpdatedIterator struct + Event *ControllerFeeRecipientUpdated + func (it *ControllerFeeRecipientUpdatedIterator) Close() error + func (it *ControllerFeeRecipientUpdatedIterator) Error() error + func (it *ControllerFeeRecipientUpdatedIterator) Next() bool + type ControllerFilterer struct + func NewControllerFilterer(address common.Address, filterer bind.ContractFilterer) (*ControllerFilterer, error) + func (_Controller *ControllerFilterer) FilterBurnShort(opts *bind.FilterOpts) (*ControllerBurnShortIterator, error) + func (_Controller *ControllerFilterer) FilterDepositCollateral(opts *bind.FilterOpts) (*ControllerDepositCollateralIterator, error) + func (_Controller *ControllerFilterer) FilterDepositUniPositionToken(opts *bind.FilterOpts) (*ControllerDepositUniPositionTokenIterator, error) + func (_Controller *ControllerFilterer) FilterFeeRateUpdated(opts *bind.FilterOpts) (*ControllerFeeRateUpdatedIterator, error) + func (_Controller *ControllerFilterer) FilterFeeRecipientUpdated(opts *bind.FilterOpts) (*ControllerFeeRecipientUpdatedIterator, error) + func (_Controller *ControllerFilterer) FilterLiquidate(opts *bind.FilterOpts) (*ControllerLiquidateIterator, error) + func (_Controller *ControllerFilterer) FilterMintShort(opts *bind.FilterOpts) (*ControllerMintShortIterator, error) + func (_Controller *ControllerFilterer) FilterNormalizationFactorUpdated(opts *bind.FilterOpts) (*ControllerNormalizationFactorUpdatedIterator, error) + func (_Controller *ControllerFilterer) FilterOpenVault(opts *bind.FilterOpts) (*ControllerOpenVaultIterator, error) + func (_Controller *ControllerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*ControllerOwnershipTransferredIterator, error) + func (_Controller *ControllerFilterer) FilterPaused(opts *bind.FilterOpts) (*ControllerPausedIterator, error) + func (_Controller *ControllerFilterer) FilterRedeemLong(opts *bind.FilterOpts) (*ControllerRedeemLongIterator, error) + func (_Controller *ControllerFilterer) FilterRedeemShort(opts *bind.FilterOpts) (*ControllerRedeemShortIterator, error) + func (_Controller *ControllerFilterer) FilterReduceDebt(opts *bind.FilterOpts) (*ControllerReduceDebtIterator, error) + func (_Controller *ControllerFilterer) FilterShutdown(opts *bind.FilterOpts) (*ControllerShutdownIterator, error) + func (_Controller *ControllerFilterer) FilterUnPaused(opts *bind.FilterOpts) (*ControllerUnPausedIterator, error) + func (_Controller *ControllerFilterer) FilterUpdateOperator(opts *bind.FilterOpts) (*ControllerUpdateOperatorIterator, error) + func (_Controller *ControllerFilterer) FilterWithdrawCollateral(opts *bind.FilterOpts) (*ControllerWithdrawCollateralIterator, error) + func (_Controller *ControllerFilterer) FilterWithdrawUniPositionToken(opts *bind.FilterOpts) (*ControllerWithdrawUniPositionTokenIterator, error) + func (_Controller *ControllerFilterer) ParseBurnShort(log types.Log) (*ControllerBurnShort, error) + func (_Controller *ControllerFilterer) ParseDepositCollateral(log types.Log) (*ControllerDepositCollateral, error) + func (_Controller *ControllerFilterer) ParseDepositUniPositionToken(log types.Log) (*ControllerDepositUniPositionToken, error) + func (_Controller *ControllerFilterer) ParseFeeRateUpdated(log types.Log) (*ControllerFeeRateUpdated, error) + func (_Controller *ControllerFilterer) ParseFeeRecipientUpdated(log types.Log) (*ControllerFeeRecipientUpdated, error) + func (_Controller *ControllerFilterer) ParseLiquidate(log types.Log) (*ControllerLiquidate, error) + func (_Controller *ControllerFilterer) ParseMintShort(log types.Log) (*ControllerMintShort, error) + func (_Controller *ControllerFilterer) ParseNormalizationFactorUpdated(log types.Log) (*ControllerNormalizationFactorUpdated, error) + func (_Controller *ControllerFilterer) ParseOpenVault(log types.Log) (*ControllerOpenVault, error) + func (_Controller *ControllerFilterer) ParseOwnershipTransferred(log types.Log) (*ControllerOwnershipTransferred, error) + func (_Controller *ControllerFilterer) ParsePaused(log types.Log) (*ControllerPaused, error) + func (_Controller *ControllerFilterer) ParseRedeemLong(log types.Log) (*ControllerRedeemLong, error) + func (_Controller *ControllerFilterer) ParseRedeemShort(log types.Log) (*ControllerRedeemShort, error) + func (_Controller *ControllerFilterer) ParseReduceDebt(log types.Log) (*ControllerReduceDebt, error) + func (_Controller *ControllerFilterer) ParseShutdown(log types.Log) (*ControllerShutdown, error) + func (_Controller *ControllerFilterer) ParseUnPaused(log types.Log) (*ControllerUnPaused, error) + func (_Controller *ControllerFilterer) ParseUpdateOperator(log types.Log) (*ControllerUpdateOperator, error) + func (_Controller *ControllerFilterer) ParseWithdrawCollateral(log types.Log) (*ControllerWithdrawCollateral, error) + func (_Controller *ControllerFilterer) ParseWithdrawUniPositionToken(log types.Log) (*ControllerWithdrawUniPositionToken, error) + func (_Controller *ControllerFilterer) WatchBurnShort(opts *bind.WatchOpts, sink chan<- *ControllerBurnShort) (event.Subscription, error) + func (_Controller *ControllerFilterer) WatchDepositCollateral(opts *bind.WatchOpts, sink chan<- *ControllerDepositCollateral) (event.Subscription, error) + func (_Controller *ControllerFilterer) WatchDepositUniPositionToken(opts *bind.WatchOpts, sink chan<- *ControllerDepositUniPositionToken) (event.Subscription, error) + func (_Controller *ControllerFilterer) WatchFeeRateUpdated(opts *bind.WatchOpts, sink chan<- *ControllerFeeRateUpdated) (event.Subscription, error) + func (_Controller *ControllerFilterer) WatchFeeRecipientUpdated(opts *bind.WatchOpts, sink chan<- *ControllerFeeRecipientUpdated) (event.Subscription, error) + func (_Controller *ControllerFilterer) WatchLiquidate(opts *bind.WatchOpts, sink chan<- *ControllerLiquidate) (event.Subscription, error) + func (_Controller *ControllerFilterer) WatchMintShort(opts *bind.WatchOpts, sink chan<- *ControllerMintShort) (event.Subscription, error) + func (_Controller *ControllerFilterer) WatchNormalizationFactorUpdated(opts *bind.WatchOpts, sink chan<- *ControllerNormalizationFactorUpdated) (event.Subscription, error) + func (_Controller *ControllerFilterer) WatchOpenVault(opts *bind.WatchOpts, sink chan<- *ControllerOpenVault) (event.Subscription, error) + func (_Controller *ControllerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ControllerOwnershipTransferred, ...) (event.Subscription, error) + func (_Controller *ControllerFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *ControllerPaused) (event.Subscription, error) + func (_Controller *ControllerFilterer) WatchRedeemLong(opts *bind.WatchOpts, sink chan<- *ControllerRedeemLong) (event.Subscription, error) + func (_Controller *ControllerFilterer) WatchRedeemShort(opts *bind.WatchOpts, sink chan<- *ControllerRedeemShort) (event.Subscription, error) + func (_Controller *ControllerFilterer) WatchReduceDebt(opts *bind.WatchOpts, sink chan<- *ControllerReduceDebt) (event.Subscription, error) + func (_Controller *ControllerFilterer) WatchShutdown(opts *bind.WatchOpts, sink chan<- *ControllerShutdown) (event.Subscription, error) + func (_Controller *ControllerFilterer) WatchUnPaused(opts *bind.WatchOpts, sink chan<- *ControllerUnPaused) (event.Subscription, error) + func (_Controller *ControllerFilterer) WatchUpdateOperator(opts *bind.WatchOpts, sink chan<- *ControllerUpdateOperator) (event.Subscription, error) + func (_Controller *ControllerFilterer) WatchWithdrawCollateral(opts *bind.WatchOpts, sink chan<- *ControllerWithdrawCollateral) (event.Subscription, error) + func (_Controller *ControllerFilterer) WatchWithdrawUniPositionToken(opts *bind.WatchOpts, sink chan<- *ControllerWithdrawUniPositionToken) (event.Subscription, error) + type ControllerLiquidate struct + CollateralPaid *big.Int + DebtAmount *big.Int + Liquidator common.Address + Raw types.Log + VaultId *big.Int + type ControllerLiquidateIterator struct + Event *ControllerLiquidate + func (it *ControllerLiquidateIterator) Close() error + func (it *ControllerLiquidateIterator) Error() error + func (it *ControllerLiquidateIterator) Next() bool + type ControllerMintShort struct + Amount *big.Int + Raw types.Log + Sender common.Address + VaultId *big.Int + type ControllerMintShortIterator struct + Event *ControllerMintShort + func (it *ControllerMintShortIterator) Close() error + func (it *ControllerMintShortIterator) Error() error + func (it *ControllerMintShortIterator) Next() bool + type ControllerNormalizationFactorUpdated struct + LastModificationTimestamp *big.Int + NewNormFactor *big.Int + OldNormFactor *big.Int + Raw types.Log + Timestamp *big.Int + type ControllerNormalizationFactorUpdatedIterator struct + Event *ControllerNormalizationFactorUpdated + func (it *ControllerNormalizationFactorUpdatedIterator) Close() error + func (it *ControllerNormalizationFactorUpdatedIterator) Error() error + func (it *ControllerNormalizationFactorUpdatedIterator) Next() bool + type ControllerOpenVault struct + Raw types.Log + Sender common.Address + VaultId *big.Int + type ControllerOpenVaultIterator struct + Event *ControllerOpenVault + func (it *ControllerOpenVaultIterator) Close() error + func (it *ControllerOpenVaultIterator) Error() error + func (it *ControllerOpenVaultIterator) Next() bool + type ControllerOwnershipTransferred struct + NewOwner common.Address + PreviousOwner common.Address + Raw types.Log + type ControllerOwnershipTransferredIterator struct + Event *ControllerOwnershipTransferred + func (it *ControllerOwnershipTransferredIterator) Close() error + func (it *ControllerOwnershipTransferredIterator) Error() error + func (it *ControllerOwnershipTransferredIterator) Next() bool + type ControllerPaused struct + PausesLeft *big.Int + Raw types.Log + type ControllerPausedIterator struct + Event *ControllerPaused + func (it *ControllerPausedIterator) Close() error + func (it *ControllerPausedIterator) Error() error + func (it *ControllerPausedIterator) Next() bool + type ControllerRaw struct + Contract *Controller + func (_Controller *ControllerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + func (_Controller *ControllerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Controller *ControllerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type ControllerRedeemLong struct + PayoutAmount *big.Int + Raw types.Log + Sender common.Address + WPowerPerpAmount *big.Int + type ControllerRedeemLongIterator struct + Event *ControllerRedeemLong + func (it *ControllerRedeemLongIterator) Close() error + func (it *ControllerRedeemLongIterator) Error() error + func (it *ControllerRedeemLongIterator) Next() bool + type ControllerRedeemShort struct + CollateralAmount *big.Int + Raw types.Log + Sender common.Address + VauldId *big.Int + type ControllerRedeemShortIterator struct + Event *ControllerRedeemShort + func (it *ControllerRedeemShortIterator) Close() error + func (it *ControllerRedeemShortIterator) Error() error + func (it *ControllerRedeemShortIterator) Next() bool + type ControllerReduceDebt struct + Bounty *big.Int + EthRedeemed *big.Int + Raw types.Log + Sender common.Address + VaultId *big.Int + WPowerPerpBurned *big.Int + WPowerPerpExcess *big.Int + WPowerPerpRedeemed *big.Int + type ControllerReduceDebtIterator struct + Event *ControllerReduceDebt + func (it *ControllerReduceDebtIterator) Close() error + func (it *ControllerReduceDebtIterator) Error() error + func (it *ControllerReduceDebtIterator) Next() bool + type ControllerSession struct + CallOpts bind.CallOpts + Contract *Controller + TransactOpts bind.TransactOpts + func (_Controller *ControllerSession) ApplyFunding() (*types.Transaction, error) + func (_Controller *ControllerSession) BurnPowerPerpAmount(_vaultId *big.Int, _powerPerpAmount *big.Int, _withdrawAmount *big.Int) (*types.Transaction, error) + func (_Controller *ControllerSession) BurnWPowerPerpAmount(_vaultId *big.Int, _wPowerPerpAmount *big.Int, _withdrawAmount *big.Int) (*types.Transaction, error) + func (_Controller *ControllerSession) Deposit(_vaultId *big.Int) (*types.Transaction, error) + func (_Controller *ControllerSession) DepositUniPositionToken(_vaultId *big.Int, _uniTokenId *big.Int) (*types.Transaction, error) + func (_Controller *ControllerSession) Donate() (*types.Transaction, error) + func (_Controller *ControllerSession) EthQuoteCurrencyPool() (common.Address, error) + func (_Controller *ControllerSession) FUNDINGPERIOD() (*big.Int, error) + func (_Controller *ControllerSession) FeeRate() (*big.Int, error) + func (_Controller *ControllerSession) FeeRecipient() (common.Address, error) + func (_Controller *ControllerSession) FeeTier() (*big.Int, error) + func (_Controller *ControllerSession) GetDenormalizedMark(_period uint32) (*big.Int, error) + func (_Controller *ControllerSession) GetDenormalizedMarkForFunding(_period uint32) (*big.Int, error) + func (_Controller *ControllerSession) GetExpectedNormalizationFactor() (*big.Int, error) + func (_Controller *ControllerSession) GetIndex(_period uint32) (*big.Int, error) + func (_Controller *ControllerSession) GetUnscaledIndex(_period uint32) (*big.Int, error) + func (_Controller *ControllerSession) IndexForSettlement() (*big.Int, error) + func (_Controller *ControllerSession) IsShutDown() (bool, error) + func (_Controller *ControllerSession) IsSystemPaused() (bool, error) + func (_Controller *ControllerSession) IsVaultSafe(_vaultId *big.Int) (bool, error) + func (_Controller *ControllerSession) LastFundingUpdateTimestamp() (*big.Int, error) + func (_Controller *ControllerSession) LastPauseTime() (*big.Int, error) + func (_Controller *ControllerSession) Liquidate(_vaultId *big.Int, _maxDebtAmount *big.Int) (*types.Transaction, error) + func (_Controller *ControllerSession) MintPowerPerpAmount(_vaultId *big.Int, _powerPerpAmount *big.Int, _uniTokenId *big.Int) (*types.Transaction, error) + func (_Controller *ControllerSession) MintWPowerPerpAmount(_vaultId *big.Int, _wPowerPerpAmount *big.Int, _uniTokenId *big.Int) (*types.Transaction, error) + func (_Controller *ControllerSession) NormalizationFactor() (*big.Int, error) + func (_Controller *ControllerSession) OnERC721Received(arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 []byte) (*types.Transaction, error) + func (_Controller *ControllerSession) Oracle() (common.Address, error) + func (_Controller *ControllerSession) Owner() (common.Address, error) + func (_Controller *ControllerSession) Pause() (*types.Transaction, error) + func (_Controller *ControllerSession) PausesLeft() (*big.Int, error) + func (_Controller *ControllerSession) QuoteCurrency() (common.Address, error) + func (_Controller *ControllerSession) Receive() (*types.Transaction, error) + func (_Controller *ControllerSession) RedeemLong(_wPerpAmount *big.Int) (*types.Transaction, error) + func (_Controller *ControllerSession) RedeemShort(_vaultId *big.Int) (*types.Transaction, error) + func (_Controller *ControllerSession) ReduceDebt(_vaultId *big.Int) (*types.Transaction, error) + func (_Controller *ControllerSession) ReduceDebtShutdown(_vaultId *big.Int) (*types.Transaction, error) + func (_Controller *ControllerSession) RenounceOwnership() (*types.Transaction, error) + func (_Controller *ControllerSession) SetFeeRate(_newFeeRate *big.Int) (*types.Transaction, error) + func (_Controller *ControllerSession) SetFeeRecipient(_newFeeRecipient common.Address) (*types.Transaction, error) + func (_Controller *ControllerSession) ShortPowerPerp() (common.Address, error) + func (_Controller *ControllerSession) ShutDown() (*types.Transaction, error) + func (_Controller *ControllerSession) TWAPPERIOD() (uint32, error) + func (_Controller *ControllerSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) + func (_Controller *ControllerSession) UnPauseAnyone() (*types.Transaction, error) + func (_Controller *ControllerSession) UnPauseOwner() (*types.Transaction, error) + func (_Controller *ControllerSession) UpdateOperator(_vaultId *big.Int, _operator common.Address) (*types.Transaction, error) + func (_Controller *ControllerSession) Vaults(arg0 *big.Int) (struct{ ... }, error) + func (_Controller *ControllerSession) WPowerPerp() (common.Address, error) + func (_Controller *ControllerSession) WPowerPerpPool() (common.Address, error) + func (_Controller *ControllerSession) Weth() (common.Address, error) + func (_Controller *ControllerSession) Withdraw(_vaultId *big.Int, _amount *big.Int) (*types.Transaction, error) + func (_Controller *ControllerSession) WithdrawUniPositionToken(_vaultId *big.Int) (*types.Transaction, error) + type ControllerShutdown struct + IndexForSettlement *big.Int + Raw types.Log + type ControllerShutdownIterator struct + Event *ControllerShutdown + func (it *ControllerShutdownIterator) Close() error + func (it *ControllerShutdownIterator) Error() error + func (it *ControllerShutdownIterator) Next() bool + type ControllerTransactor struct + func NewControllerTransactor(address common.Address, transactor bind.ContractTransactor) (*ControllerTransactor, error) + func (_Controller *ControllerTransactor) ApplyFunding(opts *bind.TransactOpts) (*types.Transaction, error) + func (_Controller *ControllerTransactor) BurnPowerPerpAmount(opts *bind.TransactOpts, _vaultId *big.Int, _powerPerpAmount *big.Int, ...) (*types.Transaction, error) + func (_Controller *ControllerTransactor) BurnWPowerPerpAmount(opts *bind.TransactOpts, _vaultId *big.Int, _wPowerPerpAmount *big.Int, ...) (*types.Transaction, error) + func (_Controller *ControllerTransactor) Deposit(opts *bind.TransactOpts, _vaultId *big.Int) (*types.Transaction, error) + func (_Controller *ControllerTransactor) DepositUniPositionToken(opts *bind.TransactOpts, _vaultId *big.Int, _uniTokenId *big.Int) (*types.Transaction, error) + func (_Controller *ControllerTransactor) Donate(opts *bind.TransactOpts) (*types.Transaction, error) + func (_Controller *ControllerTransactor) Liquidate(opts *bind.TransactOpts, _vaultId *big.Int, _maxDebtAmount *big.Int) (*types.Transaction, error) + func (_Controller *ControllerTransactor) MintPowerPerpAmount(opts *bind.TransactOpts, _vaultId *big.Int, _powerPerpAmount *big.Int, ...) (*types.Transaction, error) + func (_Controller *ControllerTransactor) MintWPowerPerpAmount(opts *bind.TransactOpts, _vaultId *big.Int, _wPowerPerpAmount *big.Int, ...) (*types.Transaction, error) + func (_Controller *ControllerTransactor) OnERC721Received(opts *bind.TransactOpts, arg0 common.Address, arg1 common.Address, ...) (*types.Transaction, error) + func (_Controller *ControllerTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error) + func (_Controller *ControllerTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) + func (_Controller *ControllerTransactor) RedeemLong(opts *bind.TransactOpts, _wPerpAmount *big.Int) (*types.Transaction, error) + func (_Controller *ControllerTransactor) RedeemShort(opts *bind.TransactOpts, _vaultId *big.Int) (*types.Transaction, error) + func (_Controller *ControllerTransactor) ReduceDebt(opts *bind.TransactOpts, _vaultId *big.Int) (*types.Transaction, error) + func (_Controller *ControllerTransactor) ReduceDebtShutdown(opts *bind.TransactOpts, _vaultId *big.Int) (*types.Transaction, error) + func (_Controller *ControllerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) + func (_Controller *ControllerTransactor) SetFeeRate(opts *bind.TransactOpts, _newFeeRate *big.Int) (*types.Transaction, error) + func (_Controller *ControllerTransactor) SetFeeRecipient(opts *bind.TransactOpts, _newFeeRecipient common.Address) (*types.Transaction, error) + func (_Controller *ControllerTransactor) ShutDown(opts *bind.TransactOpts) (*types.Transaction, error) + func (_Controller *ControllerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) + func (_Controller *ControllerTransactor) UnPauseAnyone(opts *bind.TransactOpts) (*types.Transaction, error) + func (_Controller *ControllerTransactor) UnPauseOwner(opts *bind.TransactOpts) (*types.Transaction, error) + func (_Controller *ControllerTransactor) UpdateOperator(opts *bind.TransactOpts, _vaultId *big.Int, _operator common.Address) (*types.Transaction, error) + func (_Controller *ControllerTransactor) Withdraw(opts *bind.TransactOpts, _vaultId *big.Int, _amount *big.Int) (*types.Transaction, error) + func (_Controller *ControllerTransactor) WithdrawUniPositionToken(opts *bind.TransactOpts, _vaultId *big.Int) (*types.Transaction, error) + type ControllerTransactorRaw struct + Contract *ControllerTransactor + func (_Controller *ControllerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Controller *ControllerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type ControllerTransactorSession struct + Contract *ControllerTransactor + TransactOpts bind.TransactOpts + func (_Controller *ControllerTransactorSession) ApplyFunding() (*types.Transaction, error) + func (_Controller *ControllerTransactorSession) BurnPowerPerpAmount(_vaultId *big.Int, _powerPerpAmount *big.Int, _withdrawAmount *big.Int) (*types.Transaction, error) + func (_Controller *ControllerTransactorSession) BurnWPowerPerpAmount(_vaultId *big.Int, _wPowerPerpAmount *big.Int, _withdrawAmount *big.Int) (*types.Transaction, error) + func (_Controller *ControllerTransactorSession) Deposit(_vaultId *big.Int) (*types.Transaction, error) + func (_Controller *ControllerTransactorSession) DepositUniPositionToken(_vaultId *big.Int, _uniTokenId *big.Int) (*types.Transaction, error) + func (_Controller *ControllerTransactorSession) Donate() (*types.Transaction, error) + func (_Controller *ControllerTransactorSession) Liquidate(_vaultId *big.Int, _maxDebtAmount *big.Int) (*types.Transaction, error) + func (_Controller *ControllerTransactorSession) MintPowerPerpAmount(_vaultId *big.Int, _powerPerpAmount *big.Int, _uniTokenId *big.Int) (*types.Transaction, error) + func (_Controller *ControllerTransactorSession) MintWPowerPerpAmount(_vaultId *big.Int, _wPowerPerpAmount *big.Int, _uniTokenId *big.Int) (*types.Transaction, error) + func (_Controller *ControllerTransactorSession) OnERC721Received(arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 []byte) (*types.Transaction, error) + func (_Controller *ControllerTransactorSession) Pause() (*types.Transaction, error) + func (_Controller *ControllerTransactorSession) Receive() (*types.Transaction, error) + func (_Controller *ControllerTransactorSession) RedeemLong(_wPerpAmount *big.Int) (*types.Transaction, error) + func (_Controller *ControllerTransactorSession) RedeemShort(_vaultId *big.Int) (*types.Transaction, error) + func (_Controller *ControllerTransactorSession) ReduceDebt(_vaultId *big.Int) (*types.Transaction, error) + func (_Controller *ControllerTransactorSession) ReduceDebtShutdown(_vaultId *big.Int) (*types.Transaction, error) + func (_Controller *ControllerTransactorSession) RenounceOwnership() (*types.Transaction, error) + func (_Controller *ControllerTransactorSession) SetFeeRate(_newFeeRate *big.Int) (*types.Transaction, error) + func (_Controller *ControllerTransactorSession) SetFeeRecipient(_newFeeRecipient common.Address) (*types.Transaction, error) + func (_Controller *ControllerTransactorSession) ShutDown() (*types.Transaction, error) + func (_Controller *ControllerTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) + func (_Controller *ControllerTransactorSession) UnPauseAnyone() (*types.Transaction, error) + func (_Controller *ControllerTransactorSession) UnPauseOwner() (*types.Transaction, error) + func (_Controller *ControllerTransactorSession) UpdateOperator(_vaultId *big.Int, _operator common.Address) (*types.Transaction, error) + func (_Controller *ControllerTransactorSession) Withdraw(_vaultId *big.Int, _amount *big.Int) (*types.Transaction, error) + func (_Controller *ControllerTransactorSession) WithdrawUniPositionToken(_vaultId *big.Int) (*types.Transaction, error) + type ControllerUnPaused struct + Raw types.Log + Unpauser common.Address + type ControllerUnPausedIterator struct + Event *ControllerUnPaused + func (it *ControllerUnPausedIterator) Close() error + func (it *ControllerUnPausedIterator) Error() error + func (it *ControllerUnPausedIterator) Next() bool + type ControllerUpdateOperator struct + Operator common.Address + Raw types.Log + Sender common.Address + VaultId *big.Int + type ControllerUpdateOperatorIterator struct + Event *ControllerUpdateOperator + func (it *ControllerUpdateOperatorIterator) Close() error + func (it *ControllerUpdateOperatorIterator) Error() error + func (it *ControllerUpdateOperatorIterator) Next() bool + type ControllerWithdrawCollateral struct + Amount *big.Int + Raw types.Log + Sender common.Address + VaultId *big.Int + type ControllerWithdrawCollateralIterator struct + Event *ControllerWithdrawCollateral + func (it *ControllerWithdrawCollateralIterator) Close() error + func (it *ControllerWithdrawCollateralIterator) Error() error + func (it *ControllerWithdrawCollateralIterator) Next() bool + type ControllerWithdrawUniPositionToken struct + Raw types.Log + Sender common.Address + TokenId *big.Int + VaultId *big.Int + type ControllerWithdrawUniPositionTokenIterator struct + Event *ControllerWithdrawUniPositionToken + func (it *ControllerWithdrawUniPositionTokenIterator) Close() error + func (it *ControllerWithdrawUniPositionTokenIterator) Error() error + func (it *ControllerWithdrawUniPositionTokenIterator) Next() bool + type Vault struct + CollateralAmount *big.Int + NftCollateralId uint32 + Operator common.Address + ShortAmount *big.Int + func GetVault(v int64, client *ethclient.Client) (Vault, error) + func (v Vault) HasNFT() bool + type VaultsProvider struct + func (VaultsProvider) Name() string