opyn

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Osqth             = "0xf1B99e3E573A1a9C5E6B2Ce818b617F0E664E86B" // Squeeth token address 0squth=Opyn Squeeth
	ControllerAddress = "0x64187ae08781B09368e6253F9E94951243A493D5" // controller address
	InfuraRPC         = "https://mainnet.infura.io/v3/c1b94bff90754066a81d195ddc337ff3"
)

Variables

View Source
var ControllerABI = ControllerMetaData.ABI

ControllerABI is the input ABI used to generate the binding from. Deprecated: Use ControllerMetaData.ABI instead.

View Source
var ControllerMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_oracle\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_shortPowerPerp\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_wPowerPerp\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_weth\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_quoteCurrency\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_ethQuoteCurrencyPool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_wPowerPerpPool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_uniPositionManager\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"_feeTier\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"vaultId\",\"type\":\"uint256\"}],\"name\":\"BurnShort\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"vaultId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"DepositCollateral\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"vaultId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"DepositUniPositionToken\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldFee\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newFee\",\"type\":\"uint256\"}],\"name\":\"FeeRateUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldFeeRecipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newFeeRecipient\",\"type\":\"address\"}],\"name\":\"FeeRecipientUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"liquidator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"vaultId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"debtAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"collateralPaid\",\"type\":\"uint256\"}],\"name\":\"Liquidate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"vaultId\",\"type\":\"uint256\"}],\"name\":\"MintShort\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldNormFactor\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newNormFactor\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"lastModificationTimestamp\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"NormalizationFactorUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"vaultId\",\"type\":\"uint256\"}],\"name\":\"OpenVault\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"pausesLeft\",\"type\":\"uint256\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"wPowerPerpAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"payoutAmount\",\"type\":\"uint256\"}],\"name\":\"RedeemLong\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"vauldId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"}],\"name\":\"RedeemShort\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"vaultId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"ethRedeemed\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"wPowerPerpRedeemed\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"wPowerPerpBurned\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"wPowerPerpExcess\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"bounty\",\"type\":\"uint256\"}],\"name\":\"ReduceDebt\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"indexForSettlement\",\"type\":\"uint256\"}],\"name\":\"Shutdown\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"unpauser\",\"type\":\"address\"}],\"name\":\"UnPaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"vaultId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"UpdateOperator\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"vaultId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"WithdrawCollateral\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"vaultId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"WithdrawUniPositionToken\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"FUNDING_PERIOD\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TWAP_PERIOD\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"applyFunding\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_vaultId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_powerPerpAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_withdrawAmount\",\"type\":\"uint256\"}],\"name\":\"burnPowerPerpAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_vaultId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_wPowerPerpAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_withdrawAmount\",\"type\":\"uint256\"}],\"name\":\"burnWPowerPerpAmount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_vaultId\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_vaultId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_uniTokenId\",\"type\":\"uint256\"}],\"name\":\"depositUniPositionToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"donate\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ethQuoteCurrencyPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeRecipient\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeTier\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_period\",\"type\":\"uint32\"}],\"name\":\"getDenormalizedMark\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_period\",\"type\":\"uint32\"}],\"name\":\"getDenormalizedMarkForFunding\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getExpectedNormalizationFactor\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_period\",\"type\":\"uint32\"}],\"name\":\"getIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_period\",\"type\":\"uint32\"}],\"name\":\"getUnscaledIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"indexForSettlement\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isShutDown\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isSystemPaused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_vaultId\",\"type\":\"uint256\"}],\"name\":\"isVaultSafe\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastFundingUpdateTimestamp\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastPauseTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_vaultId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_maxDebtAmount\",\"type\":\"uint256\"}],\"name\":\"liquidate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_vaultId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_powerPerpAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_uniTokenId\",\"type\":\"uint256\"}],\"name\":\"mintPowerPerpAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_vaultId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_wPowerPerpAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_uniTokenId\",\"type\":\"uint256\"}],\"name\":\"mintWPowerPerpAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"normalizationFactor\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"onERC721Received\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"oracle\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pausesLeft\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"quoteCurrency\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_wPerpAmount\",\"type\":\"uint256\"}],\"name\":\"redeemLong\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_vaultId\",\"type\":\"uint256\"}],\"name\":\"redeemShort\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_vaultId\",\"type\":\"uint256\"}],\"name\":\"reduceDebt\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_vaultId\",\"type\":\"uint256\"}],\"name\":\"reduceDebtShutdown\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_newFeeRate\",\"type\":\"uint256\"}],\"name\":\"setFeeRate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newFeeRecipient\",\"type\":\"address\"}],\"name\":\"setFeeRecipient\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"shortPowerPerp\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"shutDown\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unPauseAnyone\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unPauseOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_vaultId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_operator\",\"type\":\"address\"}],\"name\":\"updateOperator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"vaults\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"NftCollateralId\",\"type\":\"uint32\"},{\"internalType\":\"uint96\",\"name\":\"collateralAmount\",\"type\":\"uint96\"},{\"internalType\":\"uint128\",\"name\":\"shortAmount\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"wPowerPerp\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"wPowerPerpPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"weth\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_vaultId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_vaultId\",\"type\":\"uint256\"}],\"name\":\"withdrawUniPositionToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}

ControllerMetaData contains all meta data concerning the Controller contract.

Functions

func GetClient

func GetClient() (*ethclient.Client, error)

GetClient returns a rpc client for mainnet

func Twap

func Twap(controller *Controller) float64

Twap: returns the Time Weighted Average Price of ETH for the last 420 blocks This is the period used for liquidation

Types

type Controller

type Controller struct {
	ControllerCaller     // Read-only binding to the contract
	ControllerTransactor // Write-only binding to the contract
	ControllerFilterer   // Log filterer for contract events
}

Controller is an auto generated Go binding around an Ethereum contract.

func NewController

func NewController(address common.Address, backend bind.ContractBackend) (*Controller, error)

NewController creates a new instance of Controller, bound to a specific deployed contract.

type ControllerBurnShort

type ControllerBurnShort struct {
	Sender  common.Address
	Amount  *big.Int
	VaultId *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

ControllerBurnShort represents a BurnShort event raised by the Controller contract.

type ControllerBurnShortIterator

type ControllerBurnShortIterator struct {
	Event *ControllerBurnShort // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ControllerBurnShortIterator is returned from FilterBurnShort and is used to iterate over the raw logs and unpacked data for BurnShort events raised by the Controller contract.

func (*ControllerBurnShortIterator) Close

func (it *ControllerBurnShortIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ControllerBurnShortIterator) Error

func (it *ControllerBurnShortIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerBurnShortIterator) Next

func (it *ControllerBurnShortIterator) 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 ControllerCaller

type ControllerCaller struct {
	// contains filtered or unexported fields
}

ControllerCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewControllerCaller

func NewControllerCaller(address common.Address, caller bind.ContractCaller) (*ControllerCaller, error)

NewControllerCaller creates a new read-only instance of Controller, bound to a specific deployed contract.

func (*ControllerCaller) EthQuoteCurrencyPool

func (_Controller *ControllerCaller) EthQuoteCurrencyPool(opts *bind.CallOpts) (common.Address, error)

EthQuoteCurrencyPool is a free data retrieval call binding the contract method 0x4468c022.

Solidity: function ethQuoteCurrencyPool() view returns(address)

func (*ControllerCaller) FUNDINGPERIOD

func (_Controller *ControllerCaller) FUNDINGPERIOD(opts *bind.CallOpts) (*big.Int, error)

FUNDINGPERIOD is a free data retrieval call binding the contract method 0xf90c3f27.

Solidity: function FUNDING_PERIOD() view returns(uint256)

func (*ControllerCaller) FeeRate

func (_Controller *ControllerCaller) FeeRate(opts *bind.CallOpts) (*big.Int, error)

FeeRate is a free data retrieval call binding the contract method 0x978bbdb9.

Solidity: function feeRate() view returns(uint256)

func (*ControllerCaller) FeeRecipient

func (_Controller *ControllerCaller) FeeRecipient(opts *bind.CallOpts) (common.Address, error)

FeeRecipient is a free data retrieval call binding the contract method 0x46904840.

Solidity: function feeRecipient() view returns(address)

func (*ControllerCaller) FeeTier

func (_Controller *ControllerCaller) FeeTier(opts *bind.CallOpts) (*big.Int, error)

FeeTier is a free data retrieval call binding the contract method 0x72f5d98a.

Solidity: function feeTier() view returns(uint24)

func (*ControllerCaller) GetDenormalizedMark

func (_Controller *ControllerCaller) GetDenormalizedMark(opts *bind.CallOpts, _period uint32) (*big.Int, error)

GetDenormalizedMark is a free data retrieval call binding the contract method 0xee3189ff.

Solidity: function getDenormalizedMark(uint32 _period) view returns(uint256)

func (*ControllerCaller) GetDenormalizedMarkForFunding

func (_Controller *ControllerCaller) GetDenormalizedMarkForFunding(opts *bind.CallOpts, _period uint32) (*big.Int, error)

GetDenormalizedMarkForFunding is a free data retrieval call binding the contract method 0x377a1936.

Solidity: function getDenormalizedMarkForFunding(uint32 _period) view returns(uint256)

func (*ControllerCaller) GetExpectedNormalizationFactor

func (_Controller *ControllerCaller) GetExpectedNormalizationFactor(opts *bind.CallOpts) (*big.Int, error)

GetExpectedNormalizationFactor is a free data retrieval call binding the contract method 0x24f5f531.

Solidity: function getExpectedNormalizationFactor() view returns(uint256)

func (*ControllerCaller) GetIndex

func (_Controller *ControllerCaller) GetIndex(opts *bind.CallOpts, _period uint32) (*big.Int, error)

GetIndex is a free data retrieval call binding the contract method 0x8cd21d7c.

Solidity: function getIndex(uint32 _period) view returns(uint256)

func (*ControllerCaller) GetUnscaledIndex

func (_Controller *ControllerCaller) GetUnscaledIndex(opts *bind.CallOpts, _period uint32) (*big.Int, error)

GetUnscaledIndex is a free data retrieval call binding the contract method 0x15aded83.

Solidity: function getUnscaledIndex(uint32 _period) view returns(uint256)

func (*ControllerCaller) IndexForSettlement

func (_Controller *ControllerCaller) IndexForSettlement(opts *bind.CallOpts) (*big.Int, error)

IndexForSettlement is a free data retrieval call binding the contract method 0xde4a427a.

Solidity: function indexForSettlement() view returns(uint256)

func (*ControllerCaller) IsShutDown

func (_Controller *ControllerCaller) IsShutDown(opts *bind.CallOpts) (bool, error)

IsShutDown is a free data retrieval call binding the contract method 0xff947525.

Solidity: function isShutDown() view returns(bool)

func (*ControllerCaller) IsSystemPaused

func (_Controller *ControllerCaller) IsSystemPaused(opts *bind.CallOpts) (bool, error)

IsSystemPaused is a free data retrieval call binding the contract method 0x7691c4ac.

Solidity: function isSystemPaused() view returns(bool)

func (*ControllerCaller) IsVaultSafe

func (_Controller *ControllerCaller) IsVaultSafe(opts *bind.CallOpts, _vaultId *big.Int) (bool, error)

IsVaultSafe is a free data retrieval call binding the contract method 0xa847e674.

Solidity: function isVaultSafe(uint256 _vaultId) view returns(bool)

func (*ControllerCaller) LastFundingUpdateTimestamp

func (_Controller *ControllerCaller) LastFundingUpdateTimestamp(opts *bind.CallOpts) (*big.Int, error)

LastFundingUpdateTimestamp is a free data retrieval call binding the contract method 0x4be2822c.

Solidity: function lastFundingUpdateTimestamp() view returns(uint128)

func (*ControllerCaller) LastPauseTime

func (_Controller *ControllerCaller) LastPauseTime(opts *bind.CallOpts) (*big.Int, error)

LastPauseTime is a free data retrieval call binding the contract method 0x91b4ded9.

Solidity: function lastPauseTime() view returns(uint256)

func (*ControllerCaller) NormalizationFactor

func (_Controller *ControllerCaller) NormalizationFactor(opts *bind.CallOpts) (*big.Int, error)

NormalizationFactor is a free data retrieval call binding the contract method 0xd5272584.

Solidity: function normalizationFactor() view returns(uint128)

func (*ControllerCaller) Oracle

func (_Controller *ControllerCaller) Oracle(opts *bind.CallOpts) (common.Address, error)

Oracle is a free data retrieval call binding the contract method 0x7dc0d1d0.

Solidity: function oracle() view returns(address)

func (*ControllerCaller) Owner

func (_Controller *ControllerCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*ControllerCaller) PausesLeft

func (_Controller *ControllerCaller) PausesLeft(opts *bind.CallOpts) (*big.Int, error)

PausesLeft is a free data retrieval call binding the contract method 0x63b38ae4.

Solidity: function pausesLeft() view returns(uint256)

func (*ControllerCaller) QuoteCurrency

func (_Controller *ControllerCaller) QuoteCurrency(opts *bind.CallOpts) (common.Address, error)

QuoteCurrency is a free data retrieval call binding the contract method 0x82564bca.

Solidity: function quoteCurrency() view returns(address)

func (*ControllerCaller) ShortPowerPerp

func (_Controller *ControllerCaller) ShortPowerPerp(opts *bind.CallOpts) (common.Address, error)

ShortPowerPerp is a free data retrieval call binding the contract method 0x9d4c9442.

Solidity: function shortPowerPerp() view returns(address)

func (*ControllerCaller) TWAPPERIOD

func (_Controller *ControllerCaller) TWAPPERIOD(opts *bind.CallOpts) (uint32, error)

TWAPPERIOD is a free data retrieval call binding the contract method 0x7ca25184.

Solidity: function TWAP_PERIOD() view returns(uint32)

func (*ControllerCaller) Vaults

func (_Controller *ControllerCaller) Vaults(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Operator         common.Address
	NftCollateralId  uint32
	CollateralAmount *big.Int
	ShortAmount      *big.Int
}, error)

Vaults is a free data retrieval call binding the contract method 0x8c64ea4a.

Solidity: function vaults(uint256 ) view returns(address operator, uint32 NftCollateralId, uint96 collateralAmount, uint128 shortAmount)

func (*ControllerCaller) WPowerPerp

func (_Controller *ControllerCaller) WPowerPerp(opts *bind.CallOpts) (common.Address, error)

WPowerPerp is a free data retrieval call binding the contract method 0x7f07b130.

Solidity: function wPowerPerp() view returns(address)

func (*ControllerCaller) WPowerPerpPool

func (_Controller *ControllerCaller) WPowerPerpPool(opts *bind.CallOpts) (common.Address, error)

WPowerPerpPool is a free data retrieval call binding the contract method 0xb707ab99.

Solidity: function wPowerPerpPool() view returns(address)

func (*ControllerCaller) Weth

func (_Controller *ControllerCaller) Weth(opts *bind.CallOpts) (common.Address, error)

Weth is a free data retrieval call binding the contract method 0x3fc8cef3.

Solidity: function weth() view returns(address)

type ControllerCallerRaw

type ControllerCallerRaw struct {
	Contract *ControllerCaller // Generic read-only contract binding to access the raw methods on
}

ControllerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*ControllerCallerRaw) Call

func (_Controller *ControllerCallerRaw) 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 ControllerCallerSession

type ControllerCallerSession struct {
	Contract *ControllerCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts     // Call options to use throughout this session
}

ControllerCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*ControllerCallerSession) EthQuoteCurrencyPool

func (_Controller *ControllerCallerSession) EthQuoteCurrencyPool() (common.Address, error)

EthQuoteCurrencyPool is a free data retrieval call binding the contract method 0x4468c022.

Solidity: function ethQuoteCurrencyPool() view returns(address)

func (*ControllerCallerSession) FUNDINGPERIOD

func (_Controller *ControllerCallerSession) FUNDINGPERIOD() (*big.Int, error)

FUNDINGPERIOD is a free data retrieval call binding the contract method 0xf90c3f27.

Solidity: function FUNDING_PERIOD() view returns(uint256)

func (*ControllerCallerSession) FeeRate

func (_Controller *ControllerCallerSession) FeeRate() (*big.Int, error)

FeeRate is a free data retrieval call binding the contract method 0x978bbdb9.

Solidity: function feeRate() view returns(uint256)

func (*ControllerCallerSession) FeeRecipient

func (_Controller *ControllerCallerSession) FeeRecipient() (common.Address, error)

FeeRecipient is a free data retrieval call binding the contract method 0x46904840.

Solidity: function feeRecipient() view returns(address)

func (*ControllerCallerSession) FeeTier

func (_Controller *ControllerCallerSession) FeeTier() (*big.Int, error)

FeeTier is a free data retrieval call binding the contract method 0x72f5d98a.

Solidity: function feeTier() view returns(uint24)

func (*ControllerCallerSession) GetDenormalizedMark

func (_Controller *ControllerCallerSession) GetDenormalizedMark(_period uint32) (*big.Int, error)

GetDenormalizedMark is a free data retrieval call binding the contract method 0xee3189ff.

Solidity: function getDenormalizedMark(uint32 _period) view returns(uint256)

func (*ControllerCallerSession) GetDenormalizedMarkForFunding

func (_Controller *ControllerCallerSession) GetDenormalizedMarkForFunding(_period uint32) (*big.Int, error)

GetDenormalizedMarkForFunding is a free data retrieval call binding the contract method 0x377a1936.

Solidity: function getDenormalizedMarkForFunding(uint32 _period) view returns(uint256)

func (*ControllerCallerSession) GetExpectedNormalizationFactor

func (_Controller *ControllerCallerSession) GetExpectedNormalizationFactor() (*big.Int, error)

GetExpectedNormalizationFactor is a free data retrieval call binding the contract method 0x24f5f531.

Solidity: function getExpectedNormalizationFactor() view returns(uint256)

func (*ControllerCallerSession) GetIndex

func (_Controller *ControllerCallerSession) GetIndex(_period uint32) (*big.Int, error)

GetIndex is a free data retrieval call binding the contract method 0x8cd21d7c.

Solidity: function getIndex(uint32 _period) view returns(uint256)

func (*ControllerCallerSession) GetUnscaledIndex

func (_Controller *ControllerCallerSession) GetUnscaledIndex(_period uint32) (*big.Int, error)

GetUnscaledIndex is a free data retrieval call binding the contract method 0x15aded83.

Solidity: function getUnscaledIndex(uint32 _period) view returns(uint256)

func (*ControllerCallerSession) IndexForSettlement

func (_Controller *ControllerCallerSession) IndexForSettlement() (*big.Int, error)

IndexForSettlement is a free data retrieval call binding the contract method 0xde4a427a.

Solidity: function indexForSettlement() view returns(uint256)

func (*ControllerCallerSession) IsShutDown

func (_Controller *ControllerCallerSession) IsShutDown() (bool, error)

IsShutDown is a free data retrieval call binding the contract method 0xff947525.

Solidity: function isShutDown() view returns(bool)

func (*ControllerCallerSession) IsSystemPaused

func (_Controller *ControllerCallerSession) IsSystemPaused() (bool, error)

IsSystemPaused is a free data retrieval call binding the contract method 0x7691c4ac.

Solidity: function isSystemPaused() view returns(bool)

func (*ControllerCallerSession) IsVaultSafe

func (_Controller *ControllerCallerSession) IsVaultSafe(_vaultId *big.Int) (bool, error)

IsVaultSafe is a free data retrieval call binding the contract method 0xa847e674.

Solidity: function isVaultSafe(uint256 _vaultId) view returns(bool)

func (*ControllerCallerSession) LastFundingUpdateTimestamp

func (_Controller *ControllerCallerSession) LastFundingUpdateTimestamp() (*big.Int, error)

LastFundingUpdateTimestamp is a free data retrieval call binding the contract method 0x4be2822c.

Solidity: function lastFundingUpdateTimestamp() view returns(uint128)

func (*ControllerCallerSession) LastPauseTime

func (_Controller *ControllerCallerSession) LastPauseTime() (*big.Int, error)

LastPauseTime is a free data retrieval call binding the contract method 0x91b4ded9.

Solidity: function lastPauseTime() view returns(uint256)

func (*ControllerCallerSession) NormalizationFactor

func (_Controller *ControllerCallerSession) NormalizationFactor() (*big.Int, error)

NormalizationFactor is a free data retrieval call binding the contract method 0xd5272584.

Solidity: function normalizationFactor() view returns(uint128)

func (*ControllerCallerSession) Oracle

func (_Controller *ControllerCallerSession) Oracle() (common.Address, error)

Oracle is a free data retrieval call binding the contract method 0x7dc0d1d0.

Solidity: function oracle() view returns(address)

func (*ControllerCallerSession) Owner

func (_Controller *ControllerCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*ControllerCallerSession) PausesLeft

func (_Controller *ControllerCallerSession) PausesLeft() (*big.Int, error)

PausesLeft is a free data retrieval call binding the contract method 0x63b38ae4.

Solidity: function pausesLeft() view returns(uint256)

func (*ControllerCallerSession) QuoteCurrency

func (_Controller *ControllerCallerSession) QuoteCurrency() (common.Address, error)

QuoteCurrency is a free data retrieval call binding the contract method 0x82564bca.

Solidity: function quoteCurrency() view returns(address)

func (*ControllerCallerSession) ShortPowerPerp

func (_Controller *ControllerCallerSession) ShortPowerPerp() (common.Address, error)

ShortPowerPerp is a free data retrieval call binding the contract method 0x9d4c9442.

Solidity: function shortPowerPerp() view returns(address)

func (*ControllerCallerSession) TWAPPERIOD

func (_Controller *ControllerCallerSession) TWAPPERIOD() (uint32, error)

TWAPPERIOD is a free data retrieval call binding the contract method 0x7ca25184.

Solidity: function TWAP_PERIOD() view returns(uint32)

func (*ControllerCallerSession) Vaults

func (_Controller *ControllerCallerSession) Vaults(arg0 *big.Int) (struct {
	Operator         common.Address
	NftCollateralId  uint32
	CollateralAmount *big.Int
	ShortAmount      *big.Int
}, error)

Vaults is a free data retrieval call binding the contract method 0x8c64ea4a.

Solidity: function vaults(uint256 ) view returns(address operator, uint32 NftCollateralId, uint96 collateralAmount, uint128 shortAmount)

func (*ControllerCallerSession) WPowerPerp

func (_Controller *ControllerCallerSession) WPowerPerp() (common.Address, error)

WPowerPerp is a free data retrieval call binding the contract method 0x7f07b130.

Solidity: function wPowerPerp() view returns(address)

func (*ControllerCallerSession) WPowerPerpPool

func (_Controller *ControllerCallerSession) WPowerPerpPool() (common.Address, error)

WPowerPerpPool is a free data retrieval call binding the contract method 0xb707ab99.

Solidity: function wPowerPerpPool() view returns(address)

func (*ControllerCallerSession) Weth

func (_Controller *ControllerCallerSession) Weth() (common.Address, error)

Weth is a free data retrieval call binding the contract method 0x3fc8cef3.

Solidity: function weth() view returns(address)

type ControllerDepositCollateral

type ControllerDepositCollateral struct {
	Sender  common.Address
	VaultId *big.Int
	Amount  *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

ControllerDepositCollateral represents a DepositCollateral event raised by the Controller contract.

type ControllerDepositCollateralIterator

type ControllerDepositCollateralIterator struct {
	Event *ControllerDepositCollateral // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ControllerDepositCollateralIterator is returned from FilterDepositCollateral and is used to iterate over the raw logs and unpacked data for DepositCollateral events raised by the Controller contract.

func (*ControllerDepositCollateralIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ControllerDepositCollateralIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerDepositCollateralIterator) Next

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 ControllerDepositUniPositionToken

type ControllerDepositUniPositionToken struct {
	Sender  common.Address
	VaultId *big.Int
	TokenId *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

ControllerDepositUniPositionToken represents a DepositUniPositionToken event raised by the Controller contract.

type ControllerDepositUniPositionTokenIterator

type ControllerDepositUniPositionTokenIterator struct {
	Event *ControllerDepositUniPositionToken // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ControllerDepositUniPositionTokenIterator is returned from FilterDepositUniPositionToken and is used to iterate over the raw logs and unpacked data for DepositUniPositionToken events raised by the Controller contract.

func (*ControllerDepositUniPositionTokenIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ControllerDepositUniPositionTokenIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerDepositUniPositionTokenIterator) Next

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 ControllerFeeRateUpdated

type ControllerFeeRateUpdated struct {
	OldFee *big.Int
	NewFee *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

ControllerFeeRateUpdated represents a FeeRateUpdated event raised by the Controller contract.

type ControllerFeeRateUpdatedIterator

type ControllerFeeRateUpdatedIterator struct {
	Event *ControllerFeeRateUpdated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ControllerFeeRateUpdatedIterator is returned from FilterFeeRateUpdated and is used to iterate over the raw logs and unpacked data for FeeRateUpdated events raised by the Controller contract.

func (*ControllerFeeRateUpdatedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ControllerFeeRateUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerFeeRateUpdatedIterator) Next

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 ControllerFeeRecipientUpdated

type ControllerFeeRecipientUpdated struct {
	OldFeeRecipient common.Address
	NewFeeRecipient common.Address
	Raw             types.Log // Blockchain specific contextual infos
}

ControllerFeeRecipientUpdated represents a FeeRecipientUpdated event raised by the Controller contract.

type ControllerFeeRecipientUpdatedIterator

type ControllerFeeRecipientUpdatedIterator struct {
	Event *ControllerFeeRecipientUpdated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ControllerFeeRecipientUpdatedIterator is returned from FilterFeeRecipientUpdated and is used to iterate over the raw logs and unpacked data for FeeRecipientUpdated events raised by the Controller contract.

func (*ControllerFeeRecipientUpdatedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ControllerFeeRecipientUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerFeeRecipientUpdatedIterator) Next

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 ControllerFilterer

type ControllerFilterer struct {
	// contains filtered or unexported fields
}

ControllerFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewControllerFilterer

func NewControllerFilterer(address common.Address, filterer bind.ContractFilterer) (*ControllerFilterer, error)

NewControllerFilterer creates a new log filterer instance of Controller, bound to a specific deployed contract.

func (*ControllerFilterer) FilterBurnShort

func (_Controller *ControllerFilterer) FilterBurnShort(opts *bind.FilterOpts) (*ControllerBurnShortIterator, error)

FilterBurnShort is a free log retrieval operation binding the contract event 0xea19ffc45b48de6d95594aacff7214dd24595fdb0c60e98c8f0b269058c2f792.

Solidity: event BurnShort(address sender, uint256 amount, uint256 vaultId)

func (*ControllerFilterer) FilterDepositCollateral

func (_Controller *ControllerFilterer) FilterDepositCollateral(opts *bind.FilterOpts) (*ControllerDepositCollateralIterator, error)

FilterDepositCollateral is a free log retrieval operation binding the contract event 0x3ca13b7aab12bad7472691fe558faa6b25e99099824a0070a88bd5aa84be610f.

Solidity: event DepositCollateral(address sender, uint256 vaultId, uint256 amount)

func (*ControllerFilterer) FilterDepositUniPositionToken

func (_Controller *ControllerFilterer) FilterDepositUniPositionToken(opts *bind.FilterOpts) (*ControllerDepositUniPositionTokenIterator, error)

FilterDepositUniPositionToken is a free log retrieval operation binding the contract event 0x3917c2f26ce18614e3aedd1289da672ef6563c5c295f49e9b1697ae0ad315562.

Solidity: event DepositUniPositionToken(address sender, uint256 vaultId, uint256 tokenId)

func (*ControllerFilterer) FilterFeeRateUpdated

func (_Controller *ControllerFilterer) FilterFeeRateUpdated(opts *bind.FilterOpts) (*ControllerFeeRateUpdatedIterator, error)

FilterFeeRateUpdated is a free log retrieval operation binding the contract event 0x14914da2bf76024616fbe1859783fcd4dbddcb179b1f3a854949fbf920dcb957.

Solidity: event FeeRateUpdated(uint256 oldFee, uint256 newFee)

func (*ControllerFilterer) FilterFeeRecipientUpdated

func (_Controller *ControllerFilterer) FilterFeeRecipientUpdated(opts *bind.FilterOpts) (*ControllerFeeRecipientUpdatedIterator, error)

FilterFeeRecipientUpdated is a free log retrieval operation binding the contract event 0xaaebcf1bfa00580e41d966056b48521fa9f202645c86d4ddf28113e617c1b1d3.

Solidity: event FeeRecipientUpdated(address oldFeeRecipient, address newFeeRecipient)

func (*ControllerFilterer) FilterLiquidate

func (_Controller *ControllerFilterer) FilterLiquidate(opts *bind.FilterOpts) (*ControllerLiquidateIterator, error)

FilterLiquidate is a free log retrieval operation binding the contract event 0x158ba9ab7bbbd08eeffa4753bad41f4d450e24831d293427308badf3eadd8c76.

Solidity: event Liquidate(address liquidator, uint256 vaultId, uint256 debtAmount, uint256 collateralPaid)

func (*ControllerFilterer) FilterMintShort

func (_Controller *ControllerFilterer) FilterMintShort(opts *bind.FilterOpts) (*ControllerMintShortIterator, error)

FilterMintShort is a free log retrieval operation binding the contract event 0xb19fa182730a088464dad0e9e0badeb470d0d8d937d854f5caf15c6ad1992c36.

Solidity: event MintShort(address sender, uint256 amount, uint256 vaultId)

func (*ControllerFilterer) FilterNormalizationFactorUpdated

func (_Controller *ControllerFilterer) FilterNormalizationFactorUpdated(opts *bind.FilterOpts) (*ControllerNormalizationFactorUpdatedIterator, error)

FilterNormalizationFactorUpdated is a free log retrieval operation binding the contract event 0x339e53729b0447795ff69e70a74fed98fc7fef6fe94b7521099b32f0f8de4822.

Solidity: event NormalizationFactorUpdated(uint256 oldNormFactor, uint256 newNormFactor, uint256 lastModificationTimestamp, uint256 timestamp)

func (*ControllerFilterer) FilterOpenVault

func (_Controller *ControllerFilterer) FilterOpenVault(opts *bind.FilterOpts) (*ControllerOpenVaultIterator, error)

FilterOpenVault is a free log retrieval operation binding the contract event 0x25ff1e0131762176a9084e92880f880f39d6d0e62134607f37e631efe1bad871.

Solidity: event OpenVault(address sender, uint256 vaultId)

func (*ControllerFilterer) FilterOwnershipTransferred

func (_Controller *ControllerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ControllerOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*ControllerFilterer) FilterPaused

func (_Controller *ControllerFilterer) FilterPaused(opts *bind.FilterOpts) (*ControllerPausedIterator, error)

FilterPaused is a free log retrieval operation binding the contract event 0x32fb7c9891bc4f963c7de9f1186d2a7755c7d6e9f4604dabe1d8bb3027c2f49e.

Solidity: event Paused(uint256 pausesLeft)

func (*ControllerFilterer) FilterRedeemLong

func (_Controller *ControllerFilterer) FilterRedeemLong(opts *bind.FilterOpts) (*ControllerRedeemLongIterator, error)

FilterRedeemLong is a free log retrieval operation binding the contract event 0x2131ef4f2f82ca75fe7d2e646ebfa45b6be25e53510c829629c76b641500ec67.

Solidity: event RedeemLong(address sender, uint256 wPowerPerpAmount, uint256 payoutAmount)

func (*ControllerFilterer) FilterRedeemShort

func (_Controller *ControllerFilterer) FilterRedeemShort(opts *bind.FilterOpts) (*ControllerRedeemShortIterator, error)

FilterRedeemShort is a free log retrieval operation binding the contract event 0x7dff8cdaec6a8d4d1ad32d3c947ed0f0281c3d6456621ef928defae96ec6cddb.

Solidity: event RedeemShort(address sender, uint256 vauldId, uint256 collateralAmount)

func (*ControllerFilterer) FilterReduceDebt

func (_Controller *ControllerFilterer) FilterReduceDebt(opts *bind.FilterOpts) (*ControllerReduceDebtIterator, error)

FilterReduceDebt is a free log retrieval operation binding the contract event 0xfd0ae2fd36bd955810ae42615bc5ff277c0d0dfcb930f06c9f1777c0ef0752e3.

Solidity: event ReduceDebt(address sender, uint256 vaultId, uint256 ethRedeemed, uint256 wPowerPerpRedeemed, uint256 wPowerPerpBurned, uint256 wPowerPerpExcess, uint256 bounty)

func (*ControllerFilterer) FilterShutdown

func (_Controller *ControllerFilterer) FilterShutdown(opts *bind.FilterOpts) (*ControllerShutdownIterator, error)

FilterShutdown is a free log retrieval operation binding the contract event 0x574214b195bf5273a95bb4498e35cf1fde0ce327c727a95ec2ab359f7ba4e11a.

Solidity: event Shutdown(uint256 indexForSettlement)

func (*ControllerFilterer) FilterUnPaused

func (_Controller *ControllerFilterer) FilterUnPaused(opts *bind.FilterOpts) (*ControllerUnPausedIterator, error)

FilterUnPaused is a free log retrieval operation binding the contract event 0xff2b959f2bcdb44c7ecb4b16dae055431019d7350607125cfc2b74a06632c90e.

Solidity: event UnPaused(address unpauser)

func (*ControllerFilterer) FilterUpdateOperator

func (_Controller *ControllerFilterer) FilterUpdateOperator(opts *bind.FilterOpts) (*ControllerUpdateOperatorIterator, error)

FilterUpdateOperator is a free log retrieval operation binding the contract event 0x3137fc9cd2e33c34f86e29c24d81f3c75b0bce639d3c4ed0d31eeff1160a7ff5.

Solidity: event UpdateOperator(address sender, uint256 vaultId, address operator)

func (*ControllerFilterer) FilterWithdrawCollateral

func (_Controller *ControllerFilterer) FilterWithdrawCollateral(opts *bind.FilterOpts) (*ControllerWithdrawCollateralIterator, error)

FilterWithdrawCollateral is a free log retrieval operation binding the contract event 0x627a692d5a03ab34732c0d2aa319f3ecdebdc4528f383eabcb25441dc0a70cfb.

Solidity: event WithdrawCollateral(address sender, uint256 vaultId, uint256 amount)

func (*ControllerFilterer) FilterWithdrawUniPositionToken

func (_Controller *ControllerFilterer) FilterWithdrawUniPositionToken(opts *bind.FilterOpts) (*ControllerWithdrawUniPositionTokenIterator, error)

FilterWithdrawUniPositionToken is a free log retrieval operation binding the contract event 0xe59f38fa1264fc25c9f0185eee136eaf810d90b8e7293b342e4037c68720177a.

Solidity: event WithdrawUniPositionToken(address sender, uint256 vaultId, uint256 tokenId)

func (*ControllerFilterer) ParseBurnShort

func (_Controller *ControllerFilterer) ParseBurnShort(log types.Log) (*ControllerBurnShort, error)

ParseBurnShort is a log parse operation binding the contract event 0xea19ffc45b48de6d95594aacff7214dd24595fdb0c60e98c8f0b269058c2f792.

Solidity: event BurnShort(address sender, uint256 amount, uint256 vaultId)

func (*ControllerFilterer) ParseDepositCollateral

func (_Controller *ControllerFilterer) ParseDepositCollateral(log types.Log) (*ControllerDepositCollateral, error)

ParseDepositCollateral is a log parse operation binding the contract event 0x3ca13b7aab12bad7472691fe558faa6b25e99099824a0070a88bd5aa84be610f.

Solidity: event DepositCollateral(address sender, uint256 vaultId, uint256 amount)

func (*ControllerFilterer) ParseDepositUniPositionToken

func (_Controller *ControllerFilterer) ParseDepositUniPositionToken(log types.Log) (*ControllerDepositUniPositionToken, error)

ParseDepositUniPositionToken is a log parse operation binding the contract event 0x3917c2f26ce18614e3aedd1289da672ef6563c5c295f49e9b1697ae0ad315562.

Solidity: event DepositUniPositionToken(address sender, uint256 vaultId, uint256 tokenId)

func (*ControllerFilterer) ParseFeeRateUpdated

func (_Controller *ControllerFilterer) ParseFeeRateUpdated(log types.Log) (*ControllerFeeRateUpdated, error)

ParseFeeRateUpdated is a log parse operation binding the contract event 0x14914da2bf76024616fbe1859783fcd4dbddcb179b1f3a854949fbf920dcb957.

Solidity: event FeeRateUpdated(uint256 oldFee, uint256 newFee)

func (*ControllerFilterer) ParseFeeRecipientUpdated

func (_Controller *ControllerFilterer) ParseFeeRecipientUpdated(log types.Log) (*ControllerFeeRecipientUpdated, error)

ParseFeeRecipientUpdated is a log parse operation binding the contract event 0xaaebcf1bfa00580e41d966056b48521fa9f202645c86d4ddf28113e617c1b1d3.

Solidity: event FeeRecipientUpdated(address oldFeeRecipient, address newFeeRecipient)

func (*ControllerFilterer) ParseLiquidate

func (_Controller *ControllerFilterer) ParseLiquidate(log types.Log) (*ControllerLiquidate, error)

ParseLiquidate is a log parse operation binding the contract event 0x158ba9ab7bbbd08eeffa4753bad41f4d450e24831d293427308badf3eadd8c76.

Solidity: event Liquidate(address liquidator, uint256 vaultId, uint256 debtAmount, uint256 collateralPaid)

func (*ControllerFilterer) ParseMintShort

func (_Controller *ControllerFilterer) ParseMintShort(log types.Log) (*ControllerMintShort, error)

ParseMintShort is a log parse operation binding the contract event 0xb19fa182730a088464dad0e9e0badeb470d0d8d937d854f5caf15c6ad1992c36.

Solidity: event MintShort(address sender, uint256 amount, uint256 vaultId)

func (*ControllerFilterer) ParseNormalizationFactorUpdated

func (_Controller *ControllerFilterer) ParseNormalizationFactorUpdated(log types.Log) (*ControllerNormalizationFactorUpdated, error)

ParseNormalizationFactorUpdated is a log parse operation binding the contract event 0x339e53729b0447795ff69e70a74fed98fc7fef6fe94b7521099b32f0f8de4822.

Solidity: event NormalizationFactorUpdated(uint256 oldNormFactor, uint256 newNormFactor, uint256 lastModificationTimestamp, uint256 timestamp)

func (*ControllerFilterer) ParseOpenVault

func (_Controller *ControllerFilterer) ParseOpenVault(log types.Log) (*ControllerOpenVault, error)

ParseOpenVault is a log parse operation binding the contract event 0x25ff1e0131762176a9084e92880f880f39d6d0e62134607f37e631efe1bad871.

Solidity: event OpenVault(address sender, uint256 vaultId)

func (*ControllerFilterer) ParseOwnershipTransferred

func (_Controller *ControllerFilterer) ParseOwnershipTransferred(log types.Log) (*ControllerOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*ControllerFilterer) ParsePaused

func (_Controller *ControllerFilterer) ParsePaused(log types.Log) (*ControllerPaused, error)

ParsePaused is a log parse operation binding the contract event 0x32fb7c9891bc4f963c7de9f1186d2a7755c7d6e9f4604dabe1d8bb3027c2f49e.

Solidity: event Paused(uint256 pausesLeft)

func (*ControllerFilterer) ParseRedeemLong

func (_Controller *ControllerFilterer) ParseRedeemLong(log types.Log) (*ControllerRedeemLong, error)

ParseRedeemLong is a log parse operation binding the contract event 0x2131ef4f2f82ca75fe7d2e646ebfa45b6be25e53510c829629c76b641500ec67.

Solidity: event RedeemLong(address sender, uint256 wPowerPerpAmount, uint256 payoutAmount)

func (*ControllerFilterer) ParseRedeemShort

func (_Controller *ControllerFilterer) ParseRedeemShort(log types.Log) (*ControllerRedeemShort, error)

ParseRedeemShort is a log parse operation binding the contract event 0x7dff8cdaec6a8d4d1ad32d3c947ed0f0281c3d6456621ef928defae96ec6cddb.

Solidity: event RedeemShort(address sender, uint256 vauldId, uint256 collateralAmount)

func (*ControllerFilterer) ParseReduceDebt

func (_Controller *ControllerFilterer) ParseReduceDebt(log types.Log) (*ControllerReduceDebt, error)

ParseReduceDebt is a log parse operation binding the contract event 0xfd0ae2fd36bd955810ae42615bc5ff277c0d0dfcb930f06c9f1777c0ef0752e3.

Solidity: event ReduceDebt(address sender, uint256 vaultId, uint256 ethRedeemed, uint256 wPowerPerpRedeemed, uint256 wPowerPerpBurned, uint256 wPowerPerpExcess, uint256 bounty)

func (*ControllerFilterer) ParseShutdown

func (_Controller *ControllerFilterer) ParseShutdown(log types.Log) (*ControllerShutdown, error)

ParseShutdown is a log parse operation binding the contract event 0x574214b195bf5273a95bb4498e35cf1fde0ce327c727a95ec2ab359f7ba4e11a.

Solidity: event Shutdown(uint256 indexForSettlement)

func (*ControllerFilterer) ParseUnPaused

func (_Controller *ControllerFilterer) ParseUnPaused(log types.Log) (*ControllerUnPaused, error)

ParseUnPaused is a log parse operation binding the contract event 0xff2b959f2bcdb44c7ecb4b16dae055431019d7350607125cfc2b74a06632c90e.

Solidity: event UnPaused(address unpauser)

func (*ControllerFilterer) ParseUpdateOperator

func (_Controller *ControllerFilterer) ParseUpdateOperator(log types.Log) (*ControllerUpdateOperator, error)

ParseUpdateOperator is a log parse operation binding the contract event 0x3137fc9cd2e33c34f86e29c24d81f3c75b0bce639d3c4ed0d31eeff1160a7ff5.

Solidity: event UpdateOperator(address sender, uint256 vaultId, address operator)

func (*ControllerFilterer) ParseWithdrawCollateral

func (_Controller *ControllerFilterer) ParseWithdrawCollateral(log types.Log) (*ControllerWithdrawCollateral, error)

ParseWithdrawCollateral is a log parse operation binding the contract event 0x627a692d5a03ab34732c0d2aa319f3ecdebdc4528f383eabcb25441dc0a70cfb.

Solidity: event WithdrawCollateral(address sender, uint256 vaultId, uint256 amount)

func (*ControllerFilterer) ParseWithdrawUniPositionToken

func (_Controller *ControllerFilterer) ParseWithdrawUniPositionToken(log types.Log) (*ControllerWithdrawUniPositionToken, error)

ParseWithdrawUniPositionToken is a log parse operation binding the contract event 0xe59f38fa1264fc25c9f0185eee136eaf810d90b8e7293b342e4037c68720177a.

Solidity: event WithdrawUniPositionToken(address sender, uint256 vaultId, uint256 tokenId)

func (*ControllerFilterer) WatchBurnShort

func (_Controller *ControllerFilterer) WatchBurnShort(opts *bind.WatchOpts, sink chan<- *ControllerBurnShort) (event.Subscription, error)

WatchBurnShort is a free log subscription operation binding the contract event 0xea19ffc45b48de6d95594aacff7214dd24595fdb0c60e98c8f0b269058c2f792.

Solidity: event BurnShort(address sender, uint256 amount, uint256 vaultId)

func (*ControllerFilterer) WatchDepositCollateral

func (_Controller *ControllerFilterer) WatchDepositCollateral(opts *bind.WatchOpts, sink chan<- *ControllerDepositCollateral) (event.Subscription, error)

WatchDepositCollateral is a free log subscription operation binding the contract event 0x3ca13b7aab12bad7472691fe558faa6b25e99099824a0070a88bd5aa84be610f.

Solidity: event DepositCollateral(address sender, uint256 vaultId, uint256 amount)

func (*ControllerFilterer) WatchDepositUniPositionToken

func (_Controller *ControllerFilterer) WatchDepositUniPositionToken(opts *bind.WatchOpts, sink chan<- *ControllerDepositUniPositionToken) (event.Subscription, error)

WatchDepositUniPositionToken is a free log subscription operation binding the contract event 0x3917c2f26ce18614e3aedd1289da672ef6563c5c295f49e9b1697ae0ad315562.

Solidity: event DepositUniPositionToken(address sender, uint256 vaultId, uint256 tokenId)

func (*ControllerFilterer) WatchFeeRateUpdated

func (_Controller *ControllerFilterer) WatchFeeRateUpdated(opts *bind.WatchOpts, sink chan<- *ControllerFeeRateUpdated) (event.Subscription, error)

WatchFeeRateUpdated is a free log subscription operation binding the contract event 0x14914da2bf76024616fbe1859783fcd4dbddcb179b1f3a854949fbf920dcb957.

Solidity: event FeeRateUpdated(uint256 oldFee, uint256 newFee)

func (*ControllerFilterer) WatchFeeRecipientUpdated

func (_Controller *ControllerFilterer) WatchFeeRecipientUpdated(opts *bind.WatchOpts, sink chan<- *ControllerFeeRecipientUpdated) (event.Subscription, error)

WatchFeeRecipientUpdated is a free log subscription operation binding the contract event 0xaaebcf1bfa00580e41d966056b48521fa9f202645c86d4ddf28113e617c1b1d3.

Solidity: event FeeRecipientUpdated(address oldFeeRecipient, address newFeeRecipient)

func (*ControllerFilterer) WatchLiquidate

func (_Controller *ControllerFilterer) WatchLiquidate(opts *bind.WatchOpts, sink chan<- *ControllerLiquidate) (event.Subscription, error)

WatchLiquidate is a free log subscription operation binding the contract event 0x158ba9ab7bbbd08eeffa4753bad41f4d450e24831d293427308badf3eadd8c76.

Solidity: event Liquidate(address liquidator, uint256 vaultId, uint256 debtAmount, uint256 collateralPaid)

func (*ControllerFilterer) WatchMintShort

func (_Controller *ControllerFilterer) WatchMintShort(opts *bind.WatchOpts, sink chan<- *ControllerMintShort) (event.Subscription, error)

WatchMintShort is a free log subscription operation binding the contract event 0xb19fa182730a088464dad0e9e0badeb470d0d8d937d854f5caf15c6ad1992c36.

Solidity: event MintShort(address sender, uint256 amount, uint256 vaultId)

func (*ControllerFilterer) WatchNormalizationFactorUpdated

func (_Controller *ControllerFilterer) WatchNormalizationFactorUpdated(opts *bind.WatchOpts, sink chan<- *ControllerNormalizationFactorUpdated) (event.Subscription, error)

WatchNormalizationFactorUpdated is a free log subscription operation binding the contract event 0x339e53729b0447795ff69e70a74fed98fc7fef6fe94b7521099b32f0f8de4822.

Solidity: event NormalizationFactorUpdated(uint256 oldNormFactor, uint256 newNormFactor, uint256 lastModificationTimestamp, uint256 timestamp)

func (*ControllerFilterer) WatchOpenVault

func (_Controller *ControllerFilterer) WatchOpenVault(opts *bind.WatchOpts, sink chan<- *ControllerOpenVault) (event.Subscription, error)

WatchOpenVault is a free log subscription operation binding the contract event 0x25ff1e0131762176a9084e92880f880f39d6d0e62134607f37e631efe1bad871.

Solidity: event OpenVault(address sender, uint256 vaultId)

func (*ControllerFilterer) WatchOwnershipTransferred

func (_Controller *ControllerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ControllerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*ControllerFilterer) WatchPaused

func (_Controller *ControllerFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *ControllerPaused) (event.Subscription, error)

WatchPaused is a free log subscription operation binding the contract event 0x32fb7c9891bc4f963c7de9f1186d2a7755c7d6e9f4604dabe1d8bb3027c2f49e.

Solidity: event Paused(uint256 pausesLeft)

func (*ControllerFilterer) WatchRedeemLong

func (_Controller *ControllerFilterer) WatchRedeemLong(opts *bind.WatchOpts, sink chan<- *ControllerRedeemLong) (event.Subscription, error)

WatchRedeemLong is a free log subscription operation binding the contract event 0x2131ef4f2f82ca75fe7d2e646ebfa45b6be25e53510c829629c76b641500ec67.

Solidity: event RedeemLong(address sender, uint256 wPowerPerpAmount, uint256 payoutAmount)

func (*ControllerFilterer) WatchRedeemShort

func (_Controller *ControllerFilterer) WatchRedeemShort(opts *bind.WatchOpts, sink chan<- *ControllerRedeemShort) (event.Subscription, error)

WatchRedeemShort is a free log subscription operation binding the contract event 0x7dff8cdaec6a8d4d1ad32d3c947ed0f0281c3d6456621ef928defae96ec6cddb.

Solidity: event RedeemShort(address sender, uint256 vauldId, uint256 collateralAmount)

func (*ControllerFilterer) WatchReduceDebt

func (_Controller *ControllerFilterer) WatchReduceDebt(opts *bind.WatchOpts, sink chan<- *ControllerReduceDebt) (event.Subscription, error)

WatchReduceDebt is a free log subscription operation binding the contract event 0xfd0ae2fd36bd955810ae42615bc5ff277c0d0dfcb930f06c9f1777c0ef0752e3.

Solidity: event ReduceDebt(address sender, uint256 vaultId, uint256 ethRedeemed, uint256 wPowerPerpRedeemed, uint256 wPowerPerpBurned, uint256 wPowerPerpExcess, uint256 bounty)

func (*ControllerFilterer) WatchShutdown

func (_Controller *ControllerFilterer) WatchShutdown(opts *bind.WatchOpts, sink chan<- *ControllerShutdown) (event.Subscription, error)

WatchShutdown is a free log subscription operation binding the contract event 0x574214b195bf5273a95bb4498e35cf1fde0ce327c727a95ec2ab359f7ba4e11a.

Solidity: event Shutdown(uint256 indexForSettlement)

func (*ControllerFilterer) WatchUnPaused

func (_Controller *ControllerFilterer) WatchUnPaused(opts *bind.WatchOpts, sink chan<- *ControllerUnPaused) (event.Subscription, error)

WatchUnPaused is a free log subscription operation binding the contract event 0xff2b959f2bcdb44c7ecb4b16dae055431019d7350607125cfc2b74a06632c90e.

Solidity: event UnPaused(address unpauser)

func (*ControllerFilterer) WatchUpdateOperator

func (_Controller *ControllerFilterer) WatchUpdateOperator(opts *bind.WatchOpts, sink chan<- *ControllerUpdateOperator) (event.Subscription, error)

WatchUpdateOperator is a free log subscription operation binding the contract event 0x3137fc9cd2e33c34f86e29c24d81f3c75b0bce639d3c4ed0d31eeff1160a7ff5.

Solidity: event UpdateOperator(address sender, uint256 vaultId, address operator)

func (*ControllerFilterer) WatchWithdrawCollateral

func (_Controller *ControllerFilterer) WatchWithdrawCollateral(opts *bind.WatchOpts, sink chan<- *ControllerWithdrawCollateral) (event.Subscription, error)

WatchWithdrawCollateral is a free log subscription operation binding the contract event 0x627a692d5a03ab34732c0d2aa319f3ecdebdc4528f383eabcb25441dc0a70cfb.

Solidity: event WithdrawCollateral(address sender, uint256 vaultId, uint256 amount)

func (*ControllerFilterer) WatchWithdrawUniPositionToken

func (_Controller *ControllerFilterer) WatchWithdrawUniPositionToken(opts *bind.WatchOpts, sink chan<- *ControllerWithdrawUniPositionToken) (event.Subscription, error)

WatchWithdrawUniPositionToken is a free log subscription operation binding the contract event 0xe59f38fa1264fc25c9f0185eee136eaf810d90b8e7293b342e4037c68720177a.

Solidity: event WithdrawUniPositionToken(address sender, uint256 vaultId, uint256 tokenId)

type ControllerLiquidate

type ControllerLiquidate struct {
	Liquidator     common.Address
	VaultId        *big.Int
	DebtAmount     *big.Int
	CollateralPaid *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

ControllerLiquidate represents a Liquidate event raised by the Controller contract.

type ControllerLiquidateIterator

type ControllerLiquidateIterator struct {
	Event *ControllerLiquidate // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ControllerLiquidateIterator is returned from FilterLiquidate and is used to iterate over the raw logs and unpacked data for Liquidate events raised by the Controller contract.

func (*ControllerLiquidateIterator) Close

func (it *ControllerLiquidateIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ControllerLiquidateIterator) Error

func (it *ControllerLiquidateIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerLiquidateIterator) Next

func (it *ControllerLiquidateIterator) 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 ControllerMintShort

type ControllerMintShort struct {
	Sender  common.Address
	Amount  *big.Int
	VaultId *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

ControllerMintShort represents a MintShort event raised by the Controller contract.

type ControllerMintShortIterator

type ControllerMintShortIterator struct {
	Event *ControllerMintShort // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ControllerMintShortIterator is returned from FilterMintShort and is used to iterate over the raw logs and unpacked data for MintShort events raised by the Controller contract.

func (*ControllerMintShortIterator) Close

func (it *ControllerMintShortIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ControllerMintShortIterator) Error

func (it *ControllerMintShortIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerMintShortIterator) Next

func (it *ControllerMintShortIterator) 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 ControllerNormalizationFactorUpdated

type ControllerNormalizationFactorUpdated struct {
	OldNormFactor             *big.Int
	NewNormFactor             *big.Int
	LastModificationTimestamp *big.Int
	Timestamp                 *big.Int
	Raw                       types.Log // Blockchain specific contextual infos
}

ControllerNormalizationFactorUpdated represents a NormalizationFactorUpdated event raised by the Controller contract.

type ControllerNormalizationFactorUpdatedIterator

type ControllerNormalizationFactorUpdatedIterator struct {
	Event *ControllerNormalizationFactorUpdated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ControllerNormalizationFactorUpdatedIterator is returned from FilterNormalizationFactorUpdated and is used to iterate over the raw logs and unpacked data for NormalizationFactorUpdated events raised by the Controller contract.

func (*ControllerNormalizationFactorUpdatedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ControllerNormalizationFactorUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerNormalizationFactorUpdatedIterator) Next

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 ControllerOpenVault

type ControllerOpenVault struct {
	Sender  common.Address
	VaultId *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

ControllerOpenVault represents a OpenVault event raised by the Controller contract.

type ControllerOpenVaultIterator

type ControllerOpenVaultIterator struct {
	Event *ControllerOpenVault // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ControllerOpenVaultIterator is returned from FilterOpenVault and is used to iterate over the raw logs and unpacked data for OpenVault events raised by the Controller contract.

func (*ControllerOpenVaultIterator) Close

func (it *ControllerOpenVaultIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ControllerOpenVaultIterator) Error

func (it *ControllerOpenVaultIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerOpenVaultIterator) Next

func (it *ControllerOpenVaultIterator) 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 ControllerOwnershipTransferred

type ControllerOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

ControllerOwnershipTransferred represents a OwnershipTransferred event raised by the Controller contract.

type ControllerOwnershipTransferredIterator

type ControllerOwnershipTransferredIterator struct {
	Event *ControllerOwnershipTransferred // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ControllerOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Controller contract.

func (*ControllerOwnershipTransferredIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ControllerOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerOwnershipTransferredIterator) Next

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 ControllerPaused

type ControllerPaused struct {
	PausesLeft *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

ControllerPaused represents a Paused event raised by the Controller contract.

type ControllerPausedIterator

type ControllerPausedIterator struct {
	Event *ControllerPaused // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ControllerPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the Controller contract.

func (*ControllerPausedIterator) Close

func (it *ControllerPausedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ControllerPausedIterator) Error

func (it *ControllerPausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerPausedIterator) Next

func (it *ControllerPausedIterator) 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 ControllerRaw

type ControllerRaw struct {
	Contract *Controller // Generic contract binding to access the raw methods on
}

ControllerRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*ControllerRaw) Call

func (_Controller *ControllerRaw) 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 (*ControllerRaw) Transact

func (_Controller *ControllerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ControllerRaw) Transfer

func (_Controller *ControllerRaw) 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 ControllerRedeemLong

type ControllerRedeemLong struct {
	Sender           common.Address
	WPowerPerpAmount *big.Int
	PayoutAmount     *big.Int
	Raw              types.Log // Blockchain specific contextual infos
}

ControllerRedeemLong represents a RedeemLong event raised by the Controller contract.

type ControllerRedeemLongIterator

type ControllerRedeemLongIterator struct {
	Event *ControllerRedeemLong // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ControllerRedeemLongIterator is returned from FilterRedeemLong and is used to iterate over the raw logs and unpacked data for RedeemLong events raised by the Controller contract.

func (*ControllerRedeemLongIterator) Close

func (it *ControllerRedeemLongIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ControllerRedeemLongIterator) Error

func (it *ControllerRedeemLongIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerRedeemLongIterator) Next

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 ControllerRedeemShort

type ControllerRedeemShort struct {
	Sender           common.Address
	VauldId          *big.Int
	CollateralAmount *big.Int
	Raw              types.Log // Blockchain specific contextual infos
}

ControllerRedeemShort represents a RedeemShort event raised by the Controller contract.

type ControllerRedeemShortIterator

type ControllerRedeemShortIterator struct {
	Event *ControllerRedeemShort // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ControllerRedeemShortIterator is returned from FilterRedeemShort and is used to iterate over the raw logs and unpacked data for RedeemShort events raised by the Controller contract.

func (*ControllerRedeemShortIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ControllerRedeemShortIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerRedeemShortIterator) Next

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 ControllerReduceDebt

type ControllerReduceDebt struct {
	Sender             common.Address
	VaultId            *big.Int
	EthRedeemed        *big.Int
	WPowerPerpRedeemed *big.Int
	WPowerPerpBurned   *big.Int
	WPowerPerpExcess   *big.Int
	Bounty             *big.Int
	Raw                types.Log // Blockchain specific contextual infos
}

ControllerReduceDebt represents a ReduceDebt event raised by the Controller contract.

type ControllerReduceDebtIterator

type ControllerReduceDebtIterator struct {
	Event *ControllerReduceDebt // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ControllerReduceDebtIterator is returned from FilterReduceDebt and is used to iterate over the raw logs and unpacked data for ReduceDebt events raised by the Controller contract.

func (*ControllerReduceDebtIterator) Close

func (it *ControllerReduceDebtIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ControllerReduceDebtIterator) Error

func (it *ControllerReduceDebtIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerReduceDebtIterator) Next

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 ControllerSession

type ControllerSession struct {
	Contract     *Controller       // 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
}

ControllerSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*ControllerSession) ApplyFunding

func (_Controller *ControllerSession) ApplyFunding() (*types.Transaction, error)

ApplyFunding is a paid mutator transaction binding the contract method 0x200f4b8d.

Solidity: function applyFunding() returns()

func (*ControllerSession) BurnPowerPerpAmount

func (_Controller *ControllerSession) BurnPowerPerpAmount(_vaultId *big.Int, _powerPerpAmount *big.Int, _withdrawAmount *big.Int) (*types.Transaction, error)

BurnPowerPerpAmount is a paid mutator transaction binding the contract method 0x4394318d.

Solidity: function burnPowerPerpAmount(uint256 _vaultId, uint256 _powerPerpAmount, uint256 _withdrawAmount) returns(uint256)

func (*ControllerSession) BurnWPowerPerpAmount

func (_Controller *ControllerSession) BurnWPowerPerpAmount(_vaultId *big.Int, _wPowerPerpAmount *big.Int, _withdrawAmount *big.Int) (*types.Transaction, error)

BurnWPowerPerpAmount is a paid mutator transaction binding the contract method 0x8632cb03.

Solidity: function burnWPowerPerpAmount(uint256 _vaultId, uint256 _wPowerPerpAmount, uint256 _withdrawAmount) returns()

func (*ControllerSession) Deposit

func (_Controller *ControllerSession) Deposit(_vaultId *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xb6b55f25.

Solidity: function deposit(uint256 _vaultId) payable returns()

func (*ControllerSession) DepositUniPositionToken

func (_Controller *ControllerSession) DepositUniPositionToken(_vaultId *big.Int, _uniTokenId *big.Int) (*types.Transaction, error)

DepositUniPositionToken is a paid mutator transaction binding the contract method 0x91b8d34a.

Solidity: function depositUniPositionToken(uint256 _vaultId, uint256 _uniTokenId) returns()

func (*ControllerSession) Donate

func (_Controller *ControllerSession) Donate() (*types.Transaction, error)

Donate is a paid mutator transaction binding the contract method 0xed88c68e.

Solidity: function donate() payable returns()

func (*ControllerSession) EthQuoteCurrencyPool

func (_Controller *ControllerSession) EthQuoteCurrencyPool() (common.Address, error)

EthQuoteCurrencyPool is a free data retrieval call binding the contract method 0x4468c022.

Solidity: function ethQuoteCurrencyPool() view returns(address)

func (*ControllerSession) FUNDINGPERIOD

func (_Controller *ControllerSession) FUNDINGPERIOD() (*big.Int, error)

FUNDINGPERIOD is a free data retrieval call binding the contract method 0xf90c3f27.

Solidity: function FUNDING_PERIOD() view returns(uint256)

func (*ControllerSession) FeeRate

func (_Controller *ControllerSession) FeeRate() (*big.Int, error)

FeeRate is a free data retrieval call binding the contract method 0x978bbdb9.

Solidity: function feeRate() view returns(uint256)

func (*ControllerSession) FeeRecipient

func (_Controller *ControllerSession) FeeRecipient() (common.Address, error)

FeeRecipient is a free data retrieval call binding the contract method 0x46904840.

Solidity: function feeRecipient() view returns(address)

func (*ControllerSession) FeeTier

func (_Controller *ControllerSession) FeeTier() (*big.Int, error)

FeeTier is a free data retrieval call binding the contract method 0x72f5d98a.

Solidity: function feeTier() view returns(uint24)

func (*ControllerSession) GetDenormalizedMark

func (_Controller *ControllerSession) GetDenormalizedMark(_period uint32) (*big.Int, error)

GetDenormalizedMark is a free data retrieval call binding the contract method 0xee3189ff.

Solidity: function getDenormalizedMark(uint32 _period) view returns(uint256)

func (*ControllerSession) GetDenormalizedMarkForFunding

func (_Controller *ControllerSession) GetDenormalizedMarkForFunding(_period uint32) (*big.Int, error)

GetDenormalizedMarkForFunding is a free data retrieval call binding the contract method 0x377a1936.

Solidity: function getDenormalizedMarkForFunding(uint32 _period) view returns(uint256)

func (*ControllerSession) GetExpectedNormalizationFactor

func (_Controller *ControllerSession) GetExpectedNormalizationFactor() (*big.Int, error)

GetExpectedNormalizationFactor is a free data retrieval call binding the contract method 0x24f5f531.

Solidity: function getExpectedNormalizationFactor() view returns(uint256)

func (*ControllerSession) GetIndex

func (_Controller *ControllerSession) GetIndex(_period uint32) (*big.Int, error)

GetIndex is a free data retrieval call binding the contract method 0x8cd21d7c.

Solidity: function getIndex(uint32 _period) view returns(uint256)

func (*ControllerSession) GetUnscaledIndex

func (_Controller *ControllerSession) GetUnscaledIndex(_period uint32) (*big.Int, error)

GetUnscaledIndex is a free data retrieval call binding the contract method 0x15aded83.

Solidity: function getUnscaledIndex(uint32 _period) view returns(uint256)

func (*ControllerSession) IndexForSettlement

func (_Controller *ControllerSession) IndexForSettlement() (*big.Int, error)

IndexForSettlement is a free data retrieval call binding the contract method 0xde4a427a.

Solidity: function indexForSettlement() view returns(uint256)

func (*ControllerSession) IsShutDown

func (_Controller *ControllerSession) IsShutDown() (bool, error)

IsShutDown is a free data retrieval call binding the contract method 0xff947525.

Solidity: function isShutDown() view returns(bool)

func (*ControllerSession) IsSystemPaused

func (_Controller *ControllerSession) IsSystemPaused() (bool, error)

IsSystemPaused is a free data retrieval call binding the contract method 0x7691c4ac.

Solidity: function isSystemPaused() view returns(bool)

func (*ControllerSession) IsVaultSafe

func (_Controller *ControllerSession) IsVaultSafe(_vaultId *big.Int) (bool, error)

IsVaultSafe is a free data retrieval call binding the contract method 0xa847e674.

Solidity: function isVaultSafe(uint256 _vaultId) view returns(bool)

func (*ControllerSession) LastFundingUpdateTimestamp

func (_Controller *ControllerSession) LastFundingUpdateTimestamp() (*big.Int, error)

LastFundingUpdateTimestamp is a free data retrieval call binding the contract method 0x4be2822c.

Solidity: function lastFundingUpdateTimestamp() view returns(uint128)

func (*ControllerSession) LastPauseTime

func (_Controller *ControllerSession) LastPauseTime() (*big.Int, error)

LastPauseTime is a free data retrieval call binding the contract method 0x91b4ded9.

Solidity: function lastPauseTime() view returns(uint256)

func (*ControllerSession) Liquidate

func (_Controller *ControllerSession) Liquidate(_vaultId *big.Int, _maxDebtAmount *big.Int) (*types.Transaction, error)

Liquidate is a paid mutator transaction binding the contract method 0xd296d1f1.

Solidity: function liquidate(uint256 _vaultId, uint256 _maxDebtAmount) returns(uint256)

func (*ControllerSession) MintPowerPerpAmount

func (_Controller *ControllerSession) MintPowerPerpAmount(_vaultId *big.Int, _powerPerpAmount *big.Int, _uniTokenId *big.Int) (*types.Transaction, error)

MintPowerPerpAmount is a paid mutator transaction binding the contract method 0x1bf7bf6c.

Solidity: function mintPowerPerpAmount(uint256 _vaultId, uint256 _powerPerpAmount, uint256 _uniTokenId) payable returns(uint256, uint256)

func (*ControllerSession) MintWPowerPerpAmount

func (_Controller *ControllerSession) MintWPowerPerpAmount(_vaultId *big.Int, _wPowerPerpAmount *big.Int, _uniTokenId *big.Int) (*types.Transaction, error)

MintWPowerPerpAmount is a paid mutator transaction binding the contract method 0x39467918.

Solidity: function mintWPowerPerpAmount(uint256 _vaultId, uint256 _wPowerPerpAmount, uint256 _uniTokenId) payable returns(uint256)

func (*ControllerSession) NormalizationFactor

func (_Controller *ControllerSession) NormalizationFactor() (*big.Int, error)

NormalizationFactor is a free data retrieval call binding the contract method 0xd5272584.

Solidity: function normalizationFactor() view returns(uint128)

func (*ControllerSession) OnERC721Received

func (_Controller *ControllerSession) OnERC721Received(arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 []byte) (*types.Transaction, error)

OnERC721Received is a paid mutator transaction binding the contract method 0x150b7a02.

Solidity: function onERC721Received(address , address , uint256 , bytes ) returns(bytes4)

func (*ControllerSession) Oracle

func (_Controller *ControllerSession) Oracle() (common.Address, error)

Oracle is a free data retrieval call binding the contract method 0x7dc0d1d0.

Solidity: function oracle() view returns(address)

func (*ControllerSession) Owner

func (_Controller *ControllerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*ControllerSession) Pause

func (_Controller *ControllerSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*ControllerSession) PausesLeft

func (_Controller *ControllerSession) PausesLeft() (*big.Int, error)

PausesLeft is a free data retrieval call binding the contract method 0x63b38ae4.

Solidity: function pausesLeft() view returns(uint256)

func (*ControllerSession) QuoteCurrency

func (_Controller *ControllerSession) QuoteCurrency() (common.Address, error)

QuoteCurrency is a free data retrieval call binding the contract method 0x82564bca.

Solidity: function quoteCurrency() view returns(address)

func (*ControllerSession) Receive

func (_Controller *ControllerSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*ControllerSession) RedeemLong

func (_Controller *ControllerSession) RedeemLong(_wPerpAmount *big.Int) (*types.Transaction, error)

RedeemLong is a paid mutator transaction binding the contract method 0xac6cd5ef.

Solidity: function redeemLong(uint256 _wPerpAmount) returns()

func (*ControllerSession) RedeemShort

func (_Controller *ControllerSession) RedeemShort(_vaultId *big.Int) (*types.Transaction, error)

RedeemShort is a paid mutator transaction binding the contract method 0x97efa942.

Solidity: function redeemShort(uint256 _vaultId) returns()

func (*ControllerSession) ReduceDebt

func (_Controller *ControllerSession) ReduceDebt(_vaultId *big.Int) (*types.Transaction, error)

ReduceDebt is a paid mutator transaction binding the contract method 0xc9e77ee8.

Solidity: function reduceDebt(uint256 _vaultId) returns()

func (*ControllerSession) ReduceDebtShutdown

func (_Controller *ControllerSession) ReduceDebtShutdown(_vaultId *big.Int) (*types.Transaction, error)

ReduceDebtShutdown is a paid mutator transaction binding the contract method 0xfbfc6bc0.

Solidity: function reduceDebtShutdown(uint256 _vaultId) returns()

func (*ControllerSession) RenounceOwnership

func (_Controller *ControllerSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*ControllerSession) SetFeeRate

func (_Controller *ControllerSession) SetFeeRate(_newFeeRate *big.Int) (*types.Transaction, error)

SetFeeRate is a paid mutator transaction binding the contract method 0x45596e2e.

Solidity: function setFeeRate(uint256 _newFeeRate) returns()

func (*ControllerSession) SetFeeRecipient

func (_Controller *ControllerSession) SetFeeRecipient(_newFeeRecipient common.Address) (*types.Transaction, error)

SetFeeRecipient is a paid mutator transaction binding the contract method 0xe74b981b.

Solidity: function setFeeRecipient(address _newFeeRecipient) returns()

func (*ControllerSession) ShortPowerPerp

func (_Controller *ControllerSession) ShortPowerPerp() (common.Address, error)

ShortPowerPerp is a free data retrieval call binding the contract method 0x9d4c9442.

Solidity: function shortPowerPerp() view returns(address)

func (*ControllerSession) ShutDown

func (_Controller *ControllerSession) ShutDown() (*types.Transaction, error)

ShutDown is a paid mutator transaction binding the contract method 0x10b9e583.

Solidity: function shutDown() returns()

func (*ControllerSession) TWAPPERIOD

func (_Controller *ControllerSession) TWAPPERIOD() (uint32, error)

TWAPPERIOD is a free data retrieval call binding the contract method 0x7ca25184.

Solidity: function TWAP_PERIOD() view returns(uint32)

func (*ControllerSession) TransferOwnership

func (_Controller *ControllerSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*ControllerSession) UnPauseAnyone

func (_Controller *ControllerSession) UnPauseAnyone() (*types.Transaction, error)

UnPauseAnyone is a paid mutator transaction binding the contract method 0x8146b09f.

Solidity: function unPauseAnyone() returns()

func (*ControllerSession) UnPauseOwner

func (_Controller *ControllerSession) UnPauseOwner() (*types.Transaction, error)

UnPauseOwner is a paid mutator transaction binding the contract method 0x07633669.

Solidity: function unPauseOwner() returns()

func (*ControllerSession) UpdateOperator

func (_Controller *ControllerSession) UpdateOperator(_vaultId *big.Int, _operator common.Address) (*types.Transaction, error)

UpdateOperator is a paid mutator transaction binding the contract method 0xc65a391d.

Solidity: function updateOperator(uint256 _vaultId, address _operator) returns()

func (*ControllerSession) Vaults

func (_Controller *ControllerSession) Vaults(arg0 *big.Int) (struct {
	Operator         common.Address
	NftCollateralId  uint32
	CollateralAmount *big.Int
	ShortAmount      *big.Int
}, error)

Vaults is a free data retrieval call binding the contract method 0x8c64ea4a.

Solidity: function vaults(uint256 ) view returns(address operator, uint32 NftCollateralId, uint96 collateralAmount, uint128 shortAmount)

func (*ControllerSession) WPowerPerp

func (_Controller *ControllerSession) WPowerPerp() (common.Address, error)

WPowerPerp is a free data retrieval call binding the contract method 0x7f07b130.

Solidity: function wPowerPerp() view returns(address)

func (*ControllerSession) WPowerPerpPool

func (_Controller *ControllerSession) WPowerPerpPool() (common.Address, error)

WPowerPerpPool is a free data retrieval call binding the contract method 0xb707ab99.

Solidity: function wPowerPerpPool() view returns(address)

func (*ControllerSession) Weth

func (_Controller *ControllerSession) Weth() (common.Address, error)

Weth is a free data retrieval call binding the contract method 0x3fc8cef3.

Solidity: function weth() view returns(address)

func (*ControllerSession) Withdraw

func (_Controller *ControllerSession) Withdraw(_vaultId *big.Int, _amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x441a3e70.

Solidity: function withdraw(uint256 _vaultId, uint256 _amount) returns()

func (*ControllerSession) WithdrawUniPositionToken

func (_Controller *ControllerSession) WithdrawUniPositionToken(_vaultId *big.Int) (*types.Transaction, error)

WithdrawUniPositionToken is a paid mutator transaction binding the contract method 0x713d517f.

Solidity: function withdrawUniPositionToken(uint256 _vaultId) returns()

type ControllerShutdown

type ControllerShutdown struct {
	IndexForSettlement *big.Int
	Raw                types.Log // Blockchain specific contextual infos
}

ControllerShutdown represents a Shutdown event raised by the Controller contract.

type ControllerShutdownIterator

type ControllerShutdownIterator struct {
	Event *ControllerShutdown // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ControllerShutdownIterator is returned from FilterShutdown and is used to iterate over the raw logs and unpacked data for Shutdown events raised by the Controller contract.

func (*ControllerShutdownIterator) Close

func (it *ControllerShutdownIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ControllerShutdownIterator) Error

func (it *ControllerShutdownIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerShutdownIterator) Next

func (it *ControllerShutdownIterator) 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 ControllerTransactor

type ControllerTransactor struct {
	// contains filtered or unexported fields
}

ControllerTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewControllerTransactor

func NewControllerTransactor(address common.Address, transactor bind.ContractTransactor) (*ControllerTransactor, error)

NewControllerTransactor creates a new write-only instance of Controller, bound to a specific deployed contract.

func (*ControllerTransactor) ApplyFunding

func (_Controller *ControllerTransactor) ApplyFunding(opts *bind.TransactOpts) (*types.Transaction, error)

ApplyFunding is a paid mutator transaction binding the contract method 0x200f4b8d.

Solidity: function applyFunding() returns()

func (*ControllerTransactor) BurnPowerPerpAmount

func (_Controller *ControllerTransactor) BurnPowerPerpAmount(opts *bind.TransactOpts, _vaultId *big.Int, _powerPerpAmount *big.Int, _withdrawAmount *big.Int) (*types.Transaction, error)

BurnPowerPerpAmount is a paid mutator transaction binding the contract method 0x4394318d.

Solidity: function burnPowerPerpAmount(uint256 _vaultId, uint256 _powerPerpAmount, uint256 _withdrawAmount) returns(uint256)

func (*ControllerTransactor) BurnWPowerPerpAmount

func (_Controller *ControllerTransactor) BurnWPowerPerpAmount(opts *bind.TransactOpts, _vaultId *big.Int, _wPowerPerpAmount *big.Int, _withdrawAmount *big.Int) (*types.Transaction, error)

BurnWPowerPerpAmount is a paid mutator transaction binding the contract method 0x8632cb03.

Solidity: function burnWPowerPerpAmount(uint256 _vaultId, uint256 _wPowerPerpAmount, uint256 _withdrawAmount) returns()

func (*ControllerTransactor) Deposit

func (_Controller *ControllerTransactor) Deposit(opts *bind.TransactOpts, _vaultId *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xb6b55f25.

Solidity: function deposit(uint256 _vaultId) payable returns()

func (*ControllerTransactor) DepositUniPositionToken

func (_Controller *ControllerTransactor) DepositUniPositionToken(opts *bind.TransactOpts, _vaultId *big.Int, _uniTokenId *big.Int) (*types.Transaction, error)

DepositUniPositionToken is a paid mutator transaction binding the contract method 0x91b8d34a.

Solidity: function depositUniPositionToken(uint256 _vaultId, uint256 _uniTokenId) returns()

func (*ControllerTransactor) Donate

func (_Controller *ControllerTransactor) Donate(opts *bind.TransactOpts) (*types.Transaction, error)

Donate is a paid mutator transaction binding the contract method 0xed88c68e.

Solidity: function donate() payable returns()

func (*ControllerTransactor) Liquidate

func (_Controller *ControllerTransactor) Liquidate(opts *bind.TransactOpts, _vaultId *big.Int, _maxDebtAmount *big.Int) (*types.Transaction, error)

Liquidate is a paid mutator transaction binding the contract method 0xd296d1f1.

Solidity: function liquidate(uint256 _vaultId, uint256 _maxDebtAmount) returns(uint256)

func (*ControllerTransactor) MintPowerPerpAmount

func (_Controller *ControllerTransactor) MintPowerPerpAmount(opts *bind.TransactOpts, _vaultId *big.Int, _powerPerpAmount *big.Int, _uniTokenId *big.Int) (*types.Transaction, error)

MintPowerPerpAmount is a paid mutator transaction binding the contract method 0x1bf7bf6c.

Solidity: function mintPowerPerpAmount(uint256 _vaultId, uint256 _powerPerpAmount, uint256 _uniTokenId) payable returns(uint256, uint256)

func (*ControllerTransactor) MintWPowerPerpAmount

func (_Controller *ControllerTransactor) MintWPowerPerpAmount(opts *bind.TransactOpts, _vaultId *big.Int, _wPowerPerpAmount *big.Int, _uniTokenId *big.Int) (*types.Transaction, error)

MintWPowerPerpAmount is a paid mutator transaction binding the contract method 0x39467918.

Solidity: function mintWPowerPerpAmount(uint256 _vaultId, uint256 _wPowerPerpAmount, uint256 _uniTokenId) payable returns(uint256)

func (*ControllerTransactor) OnERC721Received

func (_Controller *ControllerTransactor) OnERC721Received(opts *bind.TransactOpts, arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 []byte) (*types.Transaction, error)

OnERC721Received is a paid mutator transaction binding the contract method 0x150b7a02.

Solidity: function onERC721Received(address , address , uint256 , bytes ) returns(bytes4)

func (*ControllerTransactor) Pause

func (_Controller *ControllerTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*ControllerTransactor) Receive

func (_Controller *ControllerTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*ControllerTransactor) RedeemLong

func (_Controller *ControllerTransactor) RedeemLong(opts *bind.TransactOpts, _wPerpAmount *big.Int) (*types.Transaction, error)

RedeemLong is a paid mutator transaction binding the contract method 0xac6cd5ef.

Solidity: function redeemLong(uint256 _wPerpAmount) returns()

func (*ControllerTransactor) RedeemShort

func (_Controller *ControllerTransactor) RedeemShort(opts *bind.TransactOpts, _vaultId *big.Int) (*types.Transaction, error)

RedeemShort is a paid mutator transaction binding the contract method 0x97efa942.

Solidity: function redeemShort(uint256 _vaultId) returns()

func (*ControllerTransactor) ReduceDebt

func (_Controller *ControllerTransactor) ReduceDebt(opts *bind.TransactOpts, _vaultId *big.Int) (*types.Transaction, error)

ReduceDebt is a paid mutator transaction binding the contract method 0xc9e77ee8.

Solidity: function reduceDebt(uint256 _vaultId) returns()

func (*ControllerTransactor) ReduceDebtShutdown

func (_Controller *ControllerTransactor) ReduceDebtShutdown(opts *bind.TransactOpts, _vaultId *big.Int) (*types.Transaction, error)

ReduceDebtShutdown is a paid mutator transaction binding the contract method 0xfbfc6bc0.

Solidity: function reduceDebtShutdown(uint256 _vaultId) returns()

func (*ControllerTransactor) RenounceOwnership

func (_Controller *ControllerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*ControllerTransactor) SetFeeRate

func (_Controller *ControllerTransactor) SetFeeRate(opts *bind.TransactOpts, _newFeeRate *big.Int) (*types.Transaction, error)

SetFeeRate is a paid mutator transaction binding the contract method 0x45596e2e.

Solidity: function setFeeRate(uint256 _newFeeRate) returns()

func (*ControllerTransactor) SetFeeRecipient

func (_Controller *ControllerTransactor) SetFeeRecipient(opts *bind.TransactOpts, _newFeeRecipient common.Address) (*types.Transaction, error)

SetFeeRecipient is a paid mutator transaction binding the contract method 0xe74b981b.

Solidity: function setFeeRecipient(address _newFeeRecipient) returns()

func (*ControllerTransactor) ShutDown

func (_Controller *ControllerTransactor) ShutDown(opts *bind.TransactOpts) (*types.Transaction, error)

ShutDown is a paid mutator transaction binding the contract method 0x10b9e583.

Solidity: function shutDown() returns()

func (*ControllerTransactor) TransferOwnership

func (_Controller *ControllerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*ControllerTransactor) UnPauseAnyone

func (_Controller *ControllerTransactor) UnPauseAnyone(opts *bind.TransactOpts) (*types.Transaction, error)

UnPauseAnyone is a paid mutator transaction binding the contract method 0x8146b09f.

Solidity: function unPauseAnyone() returns()

func (*ControllerTransactor) UnPauseOwner

func (_Controller *ControllerTransactor) UnPauseOwner(opts *bind.TransactOpts) (*types.Transaction, error)

UnPauseOwner is a paid mutator transaction binding the contract method 0x07633669.

Solidity: function unPauseOwner() returns()

func (*ControllerTransactor) UpdateOperator

func (_Controller *ControllerTransactor) UpdateOperator(opts *bind.TransactOpts, _vaultId *big.Int, _operator common.Address) (*types.Transaction, error)

UpdateOperator is a paid mutator transaction binding the contract method 0xc65a391d.

Solidity: function updateOperator(uint256 _vaultId, address _operator) returns()

func (*ControllerTransactor) Withdraw

func (_Controller *ControllerTransactor) Withdraw(opts *bind.TransactOpts, _vaultId *big.Int, _amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x441a3e70.

Solidity: function withdraw(uint256 _vaultId, uint256 _amount) returns()

func (*ControllerTransactor) WithdrawUniPositionToken

func (_Controller *ControllerTransactor) WithdrawUniPositionToken(opts *bind.TransactOpts, _vaultId *big.Int) (*types.Transaction, error)

WithdrawUniPositionToken is a paid mutator transaction binding the contract method 0x713d517f.

Solidity: function withdrawUniPositionToken(uint256 _vaultId) returns()

type ControllerTransactorRaw

type ControllerTransactorRaw struct {
	Contract *ControllerTransactor // Generic write-only contract binding to access the raw methods on
}

ControllerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*ControllerTransactorRaw) Transact

func (_Controller *ControllerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ControllerTransactorRaw) Transfer

func (_Controller *ControllerTransactorRaw) 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 ControllerTransactorSession

type ControllerTransactorSession struct {
	Contract     *ControllerTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts     // Transaction auth options to use throughout this session
}

ControllerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*ControllerTransactorSession) ApplyFunding

func (_Controller *ControllerTransactorSession) ApplyFunding() (*types.Transaction, error)

ApplyFunding is a paid mutator transaction binding the contract method 0x200f4b8d.

Solidity: function applyFunding() returns()

func (*ControllerTransactorSession) BurnPowerPerpAmount

func (_Controller *ControllerTransactorSession) BurnPowerPerpAmount(_vaultId *big.Int, _powerPerpAmount *big.Int, _withdrawAmount *big.Int) (*types.Transaction, error)

BurnPowerPerpAmount is a paid mutator transaction binding the contract method 0x4394318d.

Solidity: function burnPowerPerpAmount(uint256 _vaultId, uint256 _powerPerpAmount, uint256 _withdrawAmount) returns(uint256)

func (*ControllerTransactorSession) BurnWPowerPerpAmount

func (_Controller *ControllerTransactorSession) BurnWPowerPerpAmount(_vaultId *big.Int, _wPowerPerpAmount *big.Int, _withdrawAmount *big.Int) (*types.Transaction, error)

BurnWPowerPerpAmount is a paid mutator transaction binding the contract method 0x8632cb03.

Solidity: function burnWPowerPerpAmount(uint256 _vaultId, uint256 _wPowerPerpAmount, uint256 _withdrawAmount) returns()

func (*ControllerTransactorSession) Deposit

func (_Controller *ControllerTransactorSession) Deposit(_vaultId *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xb6b55f25.

Solidity: function deposit(uint256 _vaultId) payable returns()

func (*ControllerTransactorSession) DepositUniPositionToken

func (_Controller *ControllerTransactorSession) DepositUniPositionToken(_vaultId *big.Int, _uniTokenId *big.Int) (*types.Transaction, error)

DepositUniPositionToken is a paid mutator transaction binding the contract method 0x91b8d34a.

Solidity: function depositUniPositionToken(uint256 _vaultId, uint256 _uniTokenId) returns()

func (*ControllerTransactorSession) Donate

func (_Controller *ControllerTransactorSession) Donate() (*types.Transaction, error)

Donate is a paid mutator transaction binding the contract method 0xed88c68e.

Solidity: function donate() payable returns()

func (*ControllerTransactorSession) Liquidate

func (_Controller *ControllerTransactorSession) Liquidate(_vaultId *big.Int, _maxDebtAmount *big.Int) (*types.Transaction, error)

Liquidate is a paid mutator transaction binding the contract method 0xd296d1f1.

Solidity: function liquidate(uint256 _vaultId, uint256 _maxDebtAmount) returns(uint256)

func (*ControllerTransactorSession) MintPowerPerpAmount

func (_Controller *ControllerTransactorSession) MintPowerPerpAmount(_vaultId *big.Int, _powerPerpAmount *big.Int, _uniTokenId *big.Int) (*types.Transaction, error)

MintPowerPerpAmount is a paid mutator transaction binding the contract method 0x1bf7bf6c.

Solidity: function mintPowerPerpAmount(uint256 _vaultId, uint256 _powerPerpAmount, uint256 _uniTokenId) payable returns(uint256, uint256)

func (*ControllerTransactorSession) MintWPowerPerpAmount

func (_Controller *ControllerTransactorSession) MintWPowerPerpAmount(_vaultId *big.Int, _wPowerPerpAmount *big.Int, _uniTokenId *big.Int) (*types.Transaction, error)

MintWPowerPerpAmount is a paid mutator transaction binding the contract method 0x39467918.

Solidity: function mintWPowerPerpAmount(uint256 _vaultId, uint256 _wPowerPerpAmount, uint256 _uniTokenId) payable returns(uint256)

func (*ControllerTransactorSession) OnERC721Received

func (_Controller *ControllerTransactorSession) OnERC721Received(arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 []byte) (*types.Transaction, error)

OnERC721Received is a paid mutator transaction binding the contract method 0x150b7a02.

Solidity: function onERC721Received(address , address , uint256 , bytes ) returns(bytes4)

func (*ControllerTransactorSession) Pause

func (_Controller *ControllerTransactorSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*ControllerTransactorSession) Receive

func (_Controller *ControllerTransactorSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*ControllerTransactorSession) RedeemLong

func (_Controller *ControllerTransactorSession) RedeemLong(_wPerpAmount *big.Int) (*types.Transaction, error)

RedeemLong is a paid mutator transaction binding the contract method 0xac6cd5ef.

Solidity: function redeemLong(uint256 _wPerpAmount) returns()

func (*ControllerTransactorSession) RedeemShort

func (_Controller *ControllerTransactorSession) RedeemShort(_vaultId *big.Int) (*types.Transaction, error)

RedeemShort is a paid mutator transaction binding the contract method 0x97efa942.

Solidity: function redeemShort(uint256 _vaultId) returns()

func (*ControllerTransactorSession) ReduceDebt

func (_Controller *ControllerTransactorSession) ReduceDebt(_vaultId *big.Int) (*types.Transaction, error)

ReduceDebt is a paid mutator transaction binding the contract method 0xc9e77ee8.

Solidity: function reduceDebt(uint256 _vaultId) returns()

func (*ControllerTransactorSession) ReduceDebtShutdown

func (_Controller *ControllerTransactorSession) ReduceDebtShutdown(_vaultId *big.Int) (*types.Transaction, error)

ReduceDebtShutdown is a paid mutator transaction binding the contract method 0xfbfc6bc0.

Solidity: function reduceDebtShutdown(uint256 _vaultId) returns()

func (*ControllerTransactorSession) RenounceOwnership

func (_Controller *ControllerTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*ControllerTransactorSession) SetFeeRate

func (_Controller *ControllerTransactorSession) SetFeeRate(_newFeeRate *big.Int) (*types.Transaction, error)

SetFeeRate is a paid mutator transaction binding the contract method 0x45596e2e.

Solidity: function setFeeRate(uint256 _newFeeRate) returns()

func (*ControllerTransactorSession) SetFeeRecipient

func (_Controller *ControllerTransactorSession) SetFeeRecipient(_newFeeRecipient common.Address) (*types.Transaction, error)

SetFeeRecipient is a paid mutator transaction binding the contract method 0xe74b981b.

Solidity: function setFeeRecipient(address _newFeeRecipient) returns()

func (*ControllerTransactorSession) ShutDown

func (_Controller *ControllerTransactorSession) ShutDown() (*types.Transaction, error)

ShutDown is a paid mutator transaction binding the contract method 0x10b9e583.

Solidity: function shutDown() returns()

func (*ControllerTransactorSession) TransferOwnership

func (_Controller *ControllerTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*ControllerTransactorSession) UnPauseAnyone

func (_Controller *ControllerTransactorSession) UnPauseAnyone() (*types.Transaction, error)

UnPauseAnyone is a paid mutator transaction binding the contract method 0x8146b09f.

Solidity: function unPauseAnyone() returns()

func (*ControllerTransactorSession) UnPauseOwner

func (_Controller *ControllerTransactorSession) UnPauseOwner() (*types.Transaction, error)

UnPauseOwner is a paid mutator transaction binding the contract method 0x07633669.

Solidity: function unPauseOwner() returns()

func (*ControllerTransactorSession) UpdateOperator

func (_Controller *ControllerTransactorSession) UpdateOperator(_vaultId *big.Int, _operator common.Address) (*types.Transaction, error)

UpdateOperator is a paid mutator transaction binding the contract method 0xc65a391d.

Solidity: function updateOperator(uint256 _vaultId, address _operator) returns()

func (*ControllerTransactorSession) Withdraw

func (_Controller *ControllerTransactorSession) Withdraw(_vaultId *big.Int, _amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x441a3e70.

Solidity: function withdraw(uint256 _vaultId, uint256 _amount) returns()

func (*ControllerTransactorSession) WithdrawUniPositionToken

func (_Controller *ControllerTransactorSession) WithdrawUniPositionToken(_vaultId *big.Int) (*types.Transaction, error)

WithdrawUniPositionToken is a paid mutator transaction binding the contract method 0x713d517f.

Solidity: function withdrawUniPositionToken(uint256 _vaultId) returns()

type ControllerUnPaused

type ControllerUnPaused struct {
	Unpauser common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

ControllerUnPaused represents a UnPaused event raised by the Controller contract.

type ControllerUnPausedIterator

type ControllerUnPausedIterator struct {
	Event *ControllerUnPaused // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ControllerUnPausedIterator is returned from FilterUnPaused and is used to iterate over the raw logs and unpacked data for UnPaused events raised by the Controller contract.

func (*ControllerUnPausedIterator) Close

func (it *ControllerUnPausedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ControllerUnPausedIterator) Error

func (it *ControllerUnPausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerUnPausedIterator) Next

func (it *ControllerUnPausedIterator) 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 ControllerUpdateOperator

type ControllerUpdateOperator struct {
	Sender   common.Address
	VaultId  *big.Int
	Operator common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

ControllerUpdateOperator represents a UpdateOperator event raised by the Controller contract.

type ControllerUpdateOperatorIterator

type ControllerUpdateOperatorIterator struct {
	Event *ControllerUpdateOperator // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ControllerUpdateOperatorIterator is returned from FilterUpdateOperator and is used to iterate over the raw logs and unpacked data for UpdateOperator events raised by the Controller contract.

func (*ControllerUpdateOperatorIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ControllerUpdateOperatorIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerUpdateOperatorIterator) Next

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 ControllerWithdrawCollateral

type ControllerWithdrawCollateral struct {
	Sender  common.Address
	VaultId *big.Int
	Amount  *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

ControllerWithdrawCollateral represents a WithdrawCollateral event raised by the Controller contract.

type ControllerWithdrawCollateralIterator

type ControllerWithdrawCollateralIterator struct {
	Event *ControllerWithdrawCollateral // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ControllerWithdrawCollateralIterator is returned from FilterWithdrawCollateral and is used to iterate over the raw logs and unpacked data for WithdrawCollateral events raised by the Controller contract.

func (*ControllerWithdrawCollateralIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ControllerWithdrawCollateralIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerWithdrawCollateralIterator) Next

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 ControllerWithdrawUniPositionToken

type ControllerWithdrawUniPositionToken struct {
	Sender  common.Address
	VaultId *big.Int
	TokenId *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

ControllerWithdrawUniPositionToken represents a WithdrawUniPositionToken event raised by the Controller contract.

type ControllerWithdrawUniPositionTokenIterator

type ControllerWithdrawUniPositionTokenIterator struct {
	Event *ControllerWithdrawUniPositionToken // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ControllerWithdrawUniPositionTokenIterator is returned from FilterWithdrawUniPositionToken and is used to iterate over the raw logs and unpacked data for WithdrawUniPositionToken events raised by the Controller contract.

func (*ControllerWithdrawUniPositionTokenIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ControllerWithdrawUniPositionTokenIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerWithdrawUniPositionTokenIterator) Next

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 Vault

type Vault struct {
	Operator         common.Address
	NftCollateralId  uint32
	CollateralAmount *big.Int
	ShortAmount      *big.Int
}

func GetVault

func GetVault(v int64, client *ethclient.Client) (Vault, error)

func (Vault) HasNFT

func (v Vault) HasNFT() bool

HasNFT if the vault has a Uniswap LP NFT (!=0)

type VaultsProvider

type VaultsProvider struct{}

func (VaultsProvider) Name

func (VaultsProvider) Name() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL