Documentation ¶
Index ¶
- Variables
- type PositionManager
- type PositionManagerCaller
- func (_PositionManager *PositionManagerCaller) Admin(opts *bind.CallOpts) (common.Address, error)
- func (_PositionManager *PositionManagerCaller) BASISPOINTSDIVISOR(opts *bind.CallOpts) (*big.Int, error)
- func (_PositionManager *PositionManagerCaller) DepositFee(opts *bind.CallOpts) (*big.Int, error)
- func (_PositionManager *PositionManagerCaller) EthTransferGasLimit(opts *bind.CallOpts) (*big.Int, error)
- func (_PositionManager *PositionManagerCaller) FeeReserves(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_PositionManager *PositionManagerCaller) Gov(opts *bind.CallOpts) (common.Address, error)
- func (_PositionManager *PositionManagerCaller) InLegacyMode(opts *bind.CallOpts) (bool, error)
- func (_PositionManager *PositionManagerCaller) IncreasePositionBufferBps(opts *bind.CallOpts) (*big.Int, error)
- func (_PositionManager *PositionManagerCaller) IsLiquidator(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- func (_PositionManager *PositionManagerCaller) IsOrderKeeper(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- func (_PositionManager *PositionManagerCaller) IsPartner(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- func (_PositionManager *PositionManagerCaller) MaxGlobalLongSizes(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_PositionManager *PositionManagerCaller) MaxGlobalShortSizes(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_PositionManager *PositionManagerCaller) OrderBook(opts *bind.CallOpts) (common.Address, error)
- func (_PositionManager *PositionManagerCaller) ReferralStorage(opts *bind.CallOpts) (common.Address, error)
- func (_PositionManager *PositionManagerCaller) Router(opts *bind.CallOpts) (common.Address, error)
- func (_PositionManager *PositionManagerCaller) ShortsTracker(opts *bind.CallOpts) (common.Address, error)
- func (_PositionManager *PositionManagerCaller) ShouldValidateIncreaseOrder(opts *bind.CallOpts) (bool, error)
- func (_PositionManager *PositionManagerCaller) Vault(opts *bind.CallOpts) (common.Address, error)
- func (_PositionManager *PositionManagerCaller) Weth(opts *bind.CallOpts) (common.Address, error)
- type PositionManagerCallerRaw
- type PositionManagerCallerSession
- func (_PositionManager *PositionManagerCallerSession) Admin() (common.Address, error)
- func (_PositionManager *PositionManagerCallerSession) BASISPOINTSDIVISOR() (*big.Int, error)
- func (_PositionManager *PositionManagerCallerSession) DepositFee() (*big.Int, error)
- func (_PositionManager *PositionManagerCallerSession) EthTransferGasLimit() (*big.Int, error)
- func (_PositionManager *PositionManagerCallerSession) FeeReserves(arg0 common.Address) (*big.Int, error)
- func (_PositionManager *PositionManagerCallerSession) Gov() (common.Address, error)
- func (_PositionManager *PositionManagerCallerSession) InLegacyMode() (bool, error)
- func (_PositionManager *PositionManagerCallerSession) IncreasePositionBufferBps() (*big.Int, error)
- func (_PositionManager *PositionManagerCallerSession) IsLiquidator(arg0 common.Address) (bool, error)
- func (_PositionManager *PositionManagerCallerSession) IsOrderKeeper(arg0 common.Address) (bool, error)
- func (_PositionManager *PositionManagerCallerSession) IsPartner(arg0 common.Address) (bool, error)
- func (_PositionManager *PositionManagerCallerSession) MaxGlobalLongSizes(arg0 common.Address) (*big.Int, error)
- func (_PositionManager *PositionManagerCallerSession) MaxGlobalShortSizes(arg0 common.Address) (*big.Int, error)
- func (_PositionManager *PositionManagerCallerSession) OrderBook() (common.Address, error)
- func (_PositionManager *PositionManagerCallerSession) ReferralStorage() (common.Address, error)
- func (_PositionManager *PositionManagerCallerSession) Router() (common.Address, error)
- func (_PositionManager *PositionManagerCallerSession) ShortsTracker() (common.Address, error)
- func (_PositionManager *PositionManagerCallerSession) ShouldValidateIncreaseOrder() (bool, error)
- func (_PositionManager *PositionManagerCallerSession) Vault() (common.Address, error)
- func (_PositionManager *PositionManagerCallerSession) Weth() (common.Address, error)
- type PositionManagerDecreasePositionReferral
- type PositionManagerDecreasePositionReferralIterator
- type PositionManagerFilterer
- func (_PositionManager *PositionManagerFilterer) FilterDecreasePositionReferral(opts *bind.FilterOpts) (*PositionManagerDecreasePositionReferralIterator, error)
- func (_PositionManager *PositionManagerFilterer) FilterIncreasePositionReferral(opts *bind.FilterOpts) (*PositionManagerIncreasePositionReferralIterator, error)
- func (_PositionManager *PositionManagerFilterer) FilterSetAdmin(opts *bind.FilterOpts) (*PositionManagerSetAdminIterator, error)
- func (_PositionManager *PositionManagerFilterer) FilterSetDepositFee(opts *bind.FilterOpts) (*PositionManagerSetDepositFeeIterator, error)
- func (_PositionManager *PositionManagerFilterer) FilterSetEthTransferGasLimit(opts *bind.FilterOpts) (*PositionManagerSetEthTransferGasLimitIterator, error)
- func (_PositionManager *PositionManagerFilterer) FilterSetInLegacyMode(opts *bind.FilterOpts) (*PositionManagerSetInLegacyModeIterator, error)
- func (_PositionManager *PositionManagerFilterer) FilterSetIncreasePositionBufferBps(opts *bind.FilterOpts) (*PositionManagerSetIncreasePositionBufferBpsIterator, error)
- func (_PositionManager *PositionManagerFilterer) FilterSetLiquidator(opts *bind.FilterOpts, account []common.Address) (*PositionManagerSetLiquidatorIterator, error)
- func (_PositionManager *PositionManagerFilterer) FilterSetMaxGlobalSizes(opts *bind.FilterOpts) (*PositionManagerSetMaxGlobalSizesIterator, error)
- func (_PositionManager *PositionManagerFilterer) FilterSetOrderKeeper(opts *bind.FilterOpts, account []common.Address) (*PositionManagerSetOrderKeeperIterator, error)
- func (_PositionManager *PositionManagerFilterer) FilterSetPartner(opts *bind.FilterOpts) (*PositionManagerSetPartnerIterator, error)
- func (_PositionManager *PositionManagerFilterer) FilterSetReferralStorage(opts *bind.FilterOpts) (*PositionManagerSetReferralStorageIterator, error)
- func (_PositionManager *PositionManagerFilterer) FilterSetShouldValidateIncreaseOrder(opts *bind.FilterOpts) (*PositionManagerSetShouldValidateIncreaseOrderIterator, error)
- func (_PositionManager *PositionManagerFilterer) FilterWithdrawFees(opts *bind.FilterOpts) (*PositionManagerWithdrawFeesIterator, error)
- func (_PositionManager *PositionManagerFilterer) ParseDecreasePositionReferral(log types.Log) (*PositionManagerDecreasePositionReferral, error)
- func (_PositionManager *PositionManagerFilterer) ParseIncreasePositionReferral(log types.Log) (*PositionManagerIncreasePositionReferral, error)
- func (_PositionManager *PositionManagerFilterer) ParseSetAdmin(log types.Log) (*PositionManagerSetAdmin, error)
- func (_PositionManager *PositionManagerFilterer) ParseSetDepositFee(log types.Log) (*PositionManagerSetDepositFee, error)
- func (_PositionManager *PositionManagerFilterer) ParseSetEthTransferGasLimit(log types.Log) (*PositionManagerSetEthTransferGasLimit, error)
- func (_PositionManager *PositionManagerFilterer) ParseSetInLegacyMode(log types.Log) (*PositionManagerSetInLegacyMode, error)
- func (_PositionManager *PositionManagerFilterer) ParseSetIncreasePositionBufferBps(log types.Log) (*PositionManagerSetIncreasePositionBufferBps, error)
- func (_PositionManager *PositionManagerFilterer) ParseSetLiquidator(log types.Log) (*PositionManagerSetLiquidator, error)
- func (_PositionManager *PositionManagerFilterer) ParseSetMaxGlobalSizes(log types.Log) (*PositionManagerSetMaxGlobalSizes, error)
- func (_PositionManager *PositionManagerFilterer) ParseSetOrderKeeper(log types.Log) (*PositionManagerSetOrderKeeper, error)
- func (_PositionManager *PositionManagerFilterer) ParseSetPartner(log types.Log) (*PositionManagerSetPartner, error)
- func (_PositionManager *PositionManagerFilterer) ParseSetReferralStorage(log types.Log) (*PositionManagerSetReferralStorage, error)
- func (_PositionManager *PositionManagerFilterer) ParseSetShouldValidateIncreaseOrder(log types.Log) (*PositionManagerSetShouldValidateIncreaseOrder, error)
- func (_PositionManager *PositionManagerFilterer) ParseWithdrawFees(log types.Log) (*PositionManagerWithdrawFees, error)
- func (_PositionManager *PositionManagerFilterer) WatchDecreasePositionReferral(opts *bind.WatchOpts, sink chan<- *PositionManagerDecreasePositionReferral) (event.Subscription, error)
- func (_PositionManager *PositionManagerFilterer) WatchIncreasePositionReferral(opts *bind.WatchOpts, sink chan<- *PositionManagerIncreasePositionReferral) (event.Subscription, error)
- func (_PositionManager *PositionManagerFilterer) WatchSetAdmin(opts *bind.WatchOpts, sink chan<- *PositionManagerSetAdmin) (event.Subscription, error)
- func (_PositionManager *PositionManagerFilterer) WatchSetDepositFee(opts *bind.WatchOpts, sink chan<- *PositionManagerSetDepositFee) (event.Subscription, error)
- func (_PositionManager *PositionManagerFilterer) WatchSetEthTransferGasLimit(opts *bind.WatchOpts, sink chan<- *PositionManagerSetEthTransferGasLimit) (event.Subscription, error)
- func (_PositionManager *PositionManagerFilterer) WatchSetInLegacyMode(opts *bind.WatchOpts, sink chan<- *PositionManagerSetInLegacyMode) (event.Subscription, error)
- func (_PositionManager *PositionManagerFilterer) WatchSetIncreasePositionBufferBps(opts *bind.WatchOpts, sink chan<- *PositionManagerSetIncreasePositionBufferBps) (event.Subscription, error)
- func (_PositionManager *PositionManagerFilterer) WatchSetLiquidator(opts *bind.WatchOpts, sink chan<- *PositionManagerSetLiquidator, ...) (event.Subscription, error)
- func (_PositionManager *PositionManagerFilterer) WatchSetMaxGlobalSizes(opts *bind.WatchOpts, sink chan<- *PositionManagerSetMaxGlobalSizes) (event.Subscription, error)
- func (_PositionManager *PositionManagerFilterer) WatchSetOrderKeeper(opts *bind.WatchOpts, sink chan<- *PositionManagerSetOrderKeeper, ...) (event.Subscription, error)
- func (_PositionManager *PositionManagerFilterer) WatchSetPartner(opts *bind.WatchOpts, sink chan<- *PositionManagerSetPartner) (event.Subscription, error)
- func (_PositionManager *PositionManagerFilterer) WatchSetReferralStorage(opts *bind.WatchOpts, sink chan<- *PositionManagerSetReferralStorage) (event.Subscription, error)
- func (_PositionManager *PositionManagerFilterer) WatchSetShouldValidateIncreaseOrder(opts *bind.WatchOpts, ...) (event.Subscription, error)
- func (_PositionManager *PositionManagerFilterer) WatchWithdrawFees(opts *bind.WatchOpts, sink chan<- *PositionManagerWithdrawFees) (event.Subscription, error)
- type PositionManagerIncreasePositionReferral
- type PositionManagerIncreasePositionReferralIterator
- type PositionManagerRaw
- func (_PositionManager *PositionManagerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_PositionManager *PositionManagerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_PositionManager *PositionManagerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type PositionManagerSession
- func (_PositionManager *PositionManagerSession) Admin() (common.Address, error)
- func (_PositionManager *PositionManagerSession) Approve(_token common.Address, _spender common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_PositionManager *PositionManagerSession) BASISPOINTSDIVISOR() (*big.Int, error)
- func (_PositionManager *PositionManagerSession) DecreasePosition(_collateralToken common.Address, _indexToken common.Address, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerSession) DecreasePositionAndSwap(_path []common.Address, _indexToken common.Address, _collateralDelta *big.Int, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerSession) DecreasePositionAndSwapETH(_path []common.Address, _indexToken common.Address, _collateralDelta *big.Int, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerSession) DecreasePositionETH(_collateralToken common.Address, _indexToken common.Address, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerSession) DepositFee() (*big.Int, error)
- func (_PositionManager *PositionManagerSession) EthTransferGasLimit() (*big.Int, error)
- func (_PositionManager *PositionManagerSession) ExecuteDecreaseOrder(_account common.Address, _orderIndex *big.Int, _feeReceiver common.Address) (*types.Transaction, error)
- func (_PositionManager *PositionManagerSession) ExecuteIncreaseOrder(_account common.Address, _orderIndex *big.Int, _feeReceiver common.Address) (*types.Transaction, error)
- func (_PositionManager *PositionManagerSession) ExecuteSwapOrder(_account common.Address, _orderIndex *big.Int, _feeReceiver common.Address) (*types.Transaction, error)
- func (_PositionManager *PositionManagerSession) FeeReserves(arg0 common.Address) (*big.Int, error)
- func (_PositionManager *PositionManagerSession) Gov() (common.Address, error)
- func (_PositionManager *PositionManagerSession) InLegacyMode() (bool, error)
- func (_PositionManager *PositionManagerSession) IncreasePosition(_path []common.Address, _indexToken common.Address, _amountIn *big.Int, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerSession) IncreasePositionBufferBps() (*big.Int, error)
- func (_PositionManager *PositionManagerSession) IncreasePositionETH(_path []common.Address, _indexToken common.Address, _minOut *big.Int, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerSession) IsLiquidator(arg0 common.Address) (bool, error)
- func (_PositionManager *PositionManagerSession) IsOrderKeeper(arg0 common.Address) (bool, error)
- func (_PositionManager *PositionManagerSession) IsPartner(arg0 common.Address) (bool, error)
- func (_PositionManager *PositionManagerSession) LiquidatePosition(_account common.Address, _collateralToken common.Address, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerSession) MaxGlobalLongSizes(arg0 common.Address) (*big.Int, error)
- func (_PositionManager *PositionManagerSession) MaxGlobalShortSizes(arg0 common.Address) (*big.Int, error)
- func (_PositionManager *PositionManagerSession) OrderBook() (common.Address, error)
- func (_PositionManager *PositionManagerSession) Receive() (*types.Transaction, error)
- func (_PositionManager *PositionManagerSession) ReferralStorage() (common.Address, error)
- func (_PositionManager *PositionManagerSession) Router() (common.Address, error)
- func (_PositionManager *PositionManagerSession) SendValue(_receiver common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_PositionManager *PositionManagerSession) SetAdmin(_admin common.Address) (*types.Transaction, error)
- func (_PositionManager *PositionManagerSession) SetDepositFee(_depositFee *big.Int) (*types.Transaction, error)
- func (_PositionManager *PositionManagerSession) SetEthTransferGasLimit(_ethTransferGasLimit *big.Int) (*types.Transaction, error)
- func (_PositionManager *PositionManagerSession) SetGov(_gov common.Address) (*types.Transaction, error)
- func (_PositionManager *PositionManagerSession) SetInLegacyMode(_inLegacyMode bool) (*types.Transaction, error)
- func (_PositionManager *PositionManagerSession) SetIncreasePositionBufferBps(_increasePositionBufferBps *big.Int) (*types.Transaction, error)
- func (_PositionManager *PositionManagerSession) SetLiquidator(_account common.Address, _isActive bool) (*types.Transaction, error)
- func (_PositionManager *PositionManagerSession) SetMaxGlobalSizes(_tokens []common.Address, _longSizes []*big.Int, _shortSizes []*big.Int) (*types.Transaction, error)
- func (_PositionManager *PositionManagerSession) SetOrderKeeper(_account common.Address, _isActive bool) (*types.Transaction, error)
- func (_PositionManager *PositionManagerSession) SetPartner(_account common.Address, _isActive bool) (*types.Transaction, error)
- func (_PositionManager *PositionManagerSession) SetReferralStorage(_referralStorage common.Address) (*types.Transaction, error)
- func (_PositionManager *PositionManagerSession) SetShouldValidateIncreaseOrder(_shouldValidateIncreaseOrder bool) (*types.Transaction, error)
- func (_PositionManager *PositionManagerSession) ShortsTracker() (common.Address, error)
- func (_PositionManager *PositionManagerSession) ShouldValidateIncreaseOrder() (bool, error)
- func (_PositionManager *PositionManagerSession) Vault() (common.Address, error)
- func (_PositionManager *PositionManagerSession) Weth() (common.Address, error)
- func (_PositionManager *PositionManagerSession) WithdrawFees(_token common.Address, _receiver common.Address) (*types.Transaction, error)
- type PositionManagerSetAdmin
- type PositionManagerSetAdminIterator
- type PositionManagerSetDepositFee
- type PositionManagerSetDepositFeeIterator
- type PositionManagerSetEthTransferGasLimit
- type PositionManagerSetEthTransferGasLimitIterator
- type PositionManagerSetInLegacyMode
- type PositionManagerSetInLegacyModeIterator
- type PositionManagerSetIncreasePositionBufferBps
- type PositionManagerSetIncreasePositionBufferBpsIterator
- type PositionManagerSetLiquidator
- type PositionManagerSetLiquidatorIterator
- type PositionManagerSetMaxGlobalSizes
- type PositionManagerSetMaxGlobalSizesIterator
- type PositionManagerSetOrderKeeper
- type PositionManagerSetOrderKeeperIterator
- type PositionManagerSetPartner
- type PositionManagerSetPartnerIterator
- type PositionManagerSetReferralStorage
- type PositionManagerSetReferralStorageIterator
- type PositionManagerSetShouldValidateIncreaseOrder
- type PositionManagerSetShouldValidateIncreaseOrderIterator
- type PositionManagerTransactor
- func (_PositionManager *PositionManagerTransactor) Approve(opts *bind.TransactOpts, _token common.Address, _spender common.Address, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactor) DecreasePosition(opts *bind.TransactOpts, _collateralToken common.Address, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactor) DecreasePositionAndSwap(opts *bind.TransactOpts, _path []common.Address, _indexToken common.Address, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactor) DecreasePositionAndSwapETH(opts *bind.TransactOpts, _path []common.Address, _indexToken common.Address, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactor) DecreasePositionETH(opts *bind.TransactOpts, _collateralToken common.Address, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactor) ExecuteDecreaseOrder(opts *bind.TransactOpts, _account common.Address, _orderIndex *big.Int, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactor) ExecuteIncreaseOrder(opts *bind.TransactOpts, _account common.Address, _orderIndex *big.Int, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactor) ExecuteSwapOrder(opts *bind.TransactOpts, _account common.Address, _orderIndex *big.Int, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactor) IncreasePosition(opts *bind.TransactOpts, _path []common.Address, _indexToken common.Address, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactor) IncreasePositionETH(opts *bind.TransactOpts, _path []common.Address, _indexToken common.Address, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactor) LiquidatePosition(opts *bind.TransactOpts, _account common.Address, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactor) SendValue(opts *bind.TransactOpts, _receiver common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactor) SetAdmin(opts *bind.TransactOpts, _admin common.Address) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactor) SetDepositFee(opts *bind.TransactOpts, _depositFee *big.Int) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactor) SetEthTransferGasLimit(opts *bind.TransactOpts, _ethTransferGasLimit *big.Int) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactor) SetGov(opts *bind.TransactOpts, _gov common.Address) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactor) SetInLegacyMode(opts *bind.TransactOpts, _inLegacyMode bool) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactor) SetIncreasePositionBufferBps(opts *bind.TransactOpts, _increasePositionBufferBps *big.Int) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactor) SetLiquidator(opts *bind.TransactOpts, _account common.Address, _isActive bool) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactor) SetMaxGlobalSizes(opts *bind.TransactOpts, _tokens []common.Address, _longSizes []*big.Int, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactor) SetOrderKeeper(opts *bind.TransactOpts, _account common.Address, _isActive bool) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactor) SetPartner(opts *bind.TransactOpts, _account common.Address, _isActive bool) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactor) SetReferralStorage(opts *bind.TransactOpts, _referralStorage common.Address) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactor) SetShouldValidateIncreaseOrder(opts *bind.TransactOpts, _shouldValidateIncreaseOrder bool) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactor) WithdrawFees(opts *bind.TransactOpts, _token common.Address, _receiver common.Address) (*types.Transaction, error)
- type PositionManagerTransactorRaw
- type PositionManagerTransactorSession
- func (_PositionManager *PositionManagerTransactorSession) Approve(_token common.Address, _spender common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactorSession) DecreasePosition(_collateralToken common.Address, _indexToken common.Address, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactorSession) DecreasePositionAndSwap(_path []common.Address, _indexToken common.Address, _collateralDelta *big.Int, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactorSession) DecreasePositionAndSwapETH(_path []common.Address, _indexToken common.Address, _collateralDelta *big.Int, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactorSession) DecreasePositionETH(_collateralToken common.Address, _indexToken common.Address, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactorSession) ExecuteDecreaseOrder(_account common.Address, _orderIndex *big.Int, _feeReceiver common.Address) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactorSession) ExecuteIncreaseOrder(_account common.Address, _orderIndex *big.Int, _feeReceiver common.Address) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactorSession) ExecuteSwapOrder(_account common.Address, _orderIndex *big.Int, _feeReceiver common.Address) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactorSession) IncreasePosition(_path []common.Address, _indexToken common.Address, _amountIn *big.Int, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactorSession) IncreasePositionETH(_path []common.Address, _indexToken common.Address, _minOut *big.Int, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactorSession) LiquidatePosition(_account common.Address, _collateralToken common.Address, ...) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactorSession) Receive() (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactorSession) SendValue(_receiver common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactorSession) SetAdmin(_admin common.Address) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactorSession) SetDepositFee(_depositFee *big.Int) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactorSession) SetEthTransferGasLimit(_ethTransferGasLimit *big.Int) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactorSession) SetGov(_gov common.Address) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactorSession) SetInLegacyMode(_inLegacyMode bool) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactorSession) SetIncreasePositionBufferBps(_increasePositionBufferBps *big.Int) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactorSession) SetLiquidator(_account common.Address, _isActive bool) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactorSession) SetMaxGlobalSizes(_tokens []common.Address, _longSizes []*big.Int, _shortSizes []*big.Int) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactorSession) SetOrderKeeper(_account common.Address, _isActive bool) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactorSession) SetPartner(_account common.Address, _isActive bool) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactorSession) SetReferralStorage(_referralStorage common.Address) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactorSession) SetShouldValidateIncreaseOrder(_shouldValidateIncreaseOrder bool) (*types.Transaction, error)
- func (_PositionManager *PositionManagerTransactorSession) WithdrawFees(_token common.Address, _receiver common.Address) (*types.Transaction, error)
- type PositionManagerWithdrawFees
- type PositionManagerWithdrawFeesIterator
Constants ¶
This section is empty.
Variables ¶
var PositionManagerABI = PositionManagerMetaData.ABI
PositionManagerABI is the input ABI used to generate the binding from. Deprecated: Use PositionManagerMetaData.ABI instead.
var PositionManagerMetaData = &bind.MetaData{
ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_vault\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_router\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_shortsTracker\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_weth\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_depositFee\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_orderBook\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"BASIS_POINTS_DIVISOR\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"admin\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"approve\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_spender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"decreasePosition\",\"inputs\":[{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralDelta\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_sizeDelta\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_price\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"decreasePositionAndSwap\",\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralDelta\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_sizeDelta\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_price\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_minOut\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"decreasePositionAndSwapETH\",\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralDelta\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_sizeDelta\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"addresspayable\"},{\"name\":\"_price\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_minOut\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"decreasePositionETH\",\"inputs\":[{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralDelta\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_sizeDelta\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"addresspayable\"},{\"name\":\"_price\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"depositFee\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"ethTransferGasLimit\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"executeDecreaseOrder\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_orderIndex\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_feeReceiver\",\"type\":\"address\",\"internalType\":\"addresspayable\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"executeIncreaseOrder\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_orderIndex\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_feeReceiver\",\"type\":\"address\",\"internalType\":\"addresspayable\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"executeSwapOrder\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_orderIndex\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_feeReceiver\",\"type\":\"address\",\"internalType\":\"addresspayable\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"feeReserves\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"gov\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"inLegacyMode\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"increasePosition\",\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amountIn\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_minOut\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_sizeDelta\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"_price\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"increasePositionBufferBps\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"increasePositionETH\",\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_minOut\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_sizeDelta\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"_price\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"isLiquidator\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"isOrderKeeper\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"isPartner\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"liquidatePosition\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"_feeReceiver\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"maxGlobalLongSizes\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"maxGlobalShortSizes\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"orderBook\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"referralStorage\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"router\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"sendValue\",\"inputs\":[{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"addresspayable\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setAdmin\",\"inputs\":[{\"name\":\"_admin\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setDepositFee\",\"inputs\":[{\"name\":\"_depositFee\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setEthTransferGasLimit\",\"inputs\":[{\"name\":\"_ethTransferGasLimit\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setGov\",\"inputs\":[{\"name\":\"_gov\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setInLegacyMode\",\"inputs\":[{\"name\":\"_inLegacyMode\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setIncreasePositionBufferBps\",\"inputs\":[{\"name\":\"_increasePositionBufferBps\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setLiquidator\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isActive\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setMaxGlobalSizes\",\"inputs\":[{\"name\":\"_tokens\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"_longSizes\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"},{\"name\":\"_shortSizes\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setOrderKeeper\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isActive\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setPartner\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isActive\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setReferralStorage\",\"inputs\":[{\"name\":\"_referralStorage\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setShouldValidateIncreaseOrder\",\"inputs\":[{\"name\":\"_shouldValidateIncreaseOrder\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"shortsTracker\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"shouldValidateIncreaseOrder\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"vault\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"weth\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"withdrawFees\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"DecreasePositionReferral\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"sizeDelta\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"marginFeeBasisPoints\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"referralCode\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"},{\"name\":\"referrer\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"IncreasePositionReferral\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"sizeDelta\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"marginFeeBasisPoints\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"referralCode\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"},{\"name\":\"referrer\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SetAdmin\",\"inputs\":[{\"name\":\"admin\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SetDepositFee\",\"inputs\":[{\"name\":\"depositFee\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SetEthTransferGasLimit\",\"inputs\":[{\"name\":\"ethTransferGasLimit\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SetInLegacyMode\",\"inputs\":[{\"name\":\"inLegacyMode\",\"type\":\"bool\",\"indexed\":false,\"internalType\":\"bool\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SetIncreasePositionBufferBps\",\"inputs\":[{\"name\":\"increasePositionBufferBps\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SetLiquidator\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"isActive\",\"type\":\"bool\",\"indexed\":false,\"internalType\":\"bool\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SetMaxGlobalSizes\",\"inputs\":[{\"name\":\"tokens\",\"type\":\"address[]\",\"indexed\":false,\"internalType\":\"address[]\"},{\"name\":\"longSizes\",\"type\":\"uint256[]\",\"indexed\":false,\"internalType\":\"uint256[]\"},{\"name\":\"shortSizes\",\"type\":\"uint256[]\",\"indexed\":false,\"internalType\":\"uint256[]\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SetOrderKeeper\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"isActive\",\"type\":\"bool\",\"indexed\":false,\"internalType\":\"bool\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SetPartner\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"isActive\",\"type\":\"bool\",\"indexed\":false,\"internalType\":\"bool\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SetReferralStorage\",\"inputs\":[{\"name\":\"referralStorage\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SetShouldValidateIncreaseOrder\",\"inputs\":[{\"name\":\"shouldValidateIncreaseOrder\",\"type\":\"bool\",\"indexed\":false,\"internalType\":\"bool\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"WithdrawFees\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"receiver\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false}]",
}
PositionManagerMetaData contains all meta data concerning the PositionManager contract.
Functions ¶
This section is empty.
Types ¶
type PositionManager ¶
type PositionManager struct { PositionManagerCaller // Read-only binding to the contract PositionManagerTransactor // Write-only binding to the contract PositionManagerFilterer // Log filterer for contract events }
PositionManager is an auto generated Go binding around an Ethereum contract.
func NewPositionManager ¶
func NewPositionManager(address common.Address, backend bind.ContractBackend) (*PositionManager, error)
NewPositionManager creates a new instance of PositionManager, bound to a specific deployed contract.
type PositionManagerCaller ¶
type PositionManagerCaller struct {
// contains filtered or unexported fields
}
PositionManagerCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewPositionManagerCaller ¶
func NewPositionManagerCaller(address common.Address, caller bind.ContractCaller) (*PositionManagerCaller, error)
NewPositionManagerCaller creates a new read-only instance of PositionManager, bound to a specific deployed contract.
func (*PositionManagerCaller) Admin ¶
Admin is a free data retrieval call binding the contract method 0xf851a440.
Solidity: function admin() view returns(address)
func (*PositionManagerCaller) BASISPOINTSDIVISOR ¶
func (_PositionManager *PositionManagerCaller) BASISPOINTSDIVISOR(opts *bind.CallOpts) (*big.Int, error)
BASISPOINTSDIVISOR is a free data retrieval call binding the contract method 0x126082cf.
Solidity: function BASIS_POINTS_DIVISOR() view returns(uint256)
func (*PositionManagerCaller) DepositFee ¶
DepositFee is a free data retrieval call binding the contract method 0x67a52793.
Solidity: function depositFee() view returns(uint256)
func (*PositionManagerCaller) EthTransferGasLimit ¶
func (_PositionManager *PositionManagerCaller) EthTransferGasLimit(opts *bind.CallOpts) (*big.Int, error)
EthTransferGasLimit is a free data retrieval call binding the contract method 0x2d79cf42.
Solidity: function ethTransferGasLimit() view returns(uint256)
func (*PositionManagerCaller) FeeReserves ¶
func (_PositionManager *PositionManagerCaller) FeeReserves(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
FeeReserves is a free data retrieval call binding the contract method 0x1ce9cb8f.
Solidity: function feeReserves(address ) view returns(uint256)
func (*PositionManagerCaller) Gov ¶
Gov is a free data retrieval call binding the contract method 0x12d43a51.
Solidity: function gov() view returns(address)
func (*PositionManagerCaller) InLegacyMode ¶
func (_PositionManager *PositionManagerCaller) InLegacyMode(opts *bind.CallOpts) (bool, error)
InLegacyMode is a free data retrieval call binding the contract method 0xd4ca83f9.
Solidity: function inLegacyMode() view returns(bool)
func (*PositionManagerCaller) IncreasePositionBufferBps ¶
func (_PositionManager *PositionManagerCaller) IncreasePositionBufferBps(opts *bind.CallOpts) (*big.Int, error)
IncreasePositionBufferBps is a free data retrieval call binding the contract method 0x98d1e03a.
Solidity: function increasePositionBufferBps() view returns(uint256)
func (*PositionManagerCaller) IsLiquidator ¶
func (_PositionManager *PositionManagerCaller) IsLiquidator(opts *bind.CallOpts, arg0 common.Address) (bool, error)
IsLiquidator is a free data retrieval call binding the contract method 0x529a356f.
Solidity: function isLiquidator(address ) view returns(bool)
func (*PositionManagerCaller) IsOrderKeeper ¶
func (_PositionManager *PositionManagerCaller) IsOrderKeeper(opts *bind.CallOpts, arg0 common.Address) (bool, error)
IsOrderKeeper is a free data retrieval call binding the contract method 0x3833f5f5.
Solidity: function isOrderKeeper(address ) view returns(bool)
func (*PositionManagerCaller) IsPartner ¶
func (_PositionManager *PositionManagerCaller) IsPartner(opts *bind.CallOpts, arg0 common.Address) (bool, error)
IsPartner is a free data retrieval call binding the contract method 0x8c0f9aac.
Solidity: function isPartner(address ) view returns(bool)
func (*PositionManagerCaller) MaxGlobalLongSizes ¶
func (_PositionManager *PositionManagerCaller) MaxGlobalLongSizes(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
MaxGlobalLongSizes is a free data retrieval call binding the contract method 0x1045c74e.
Solidity: function maxGlobalLongSizes(address ) view returns(uint256)
func (*PositionManagerCaller) MaxGlobalShortSizes ¶
func (_PositionManager *PositionManagerCaller) MaxGlobalShortSizes(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
MaxGlobalShortSizes is a free data retrieval call binding the contract method 0x9698d25a.
Solidity: function maxGlobalShortSizes(address ) view returns(uint256)
func (*PositionManagerCaller) OrderBook ¶
func (_PositionManager *PositionManagerCaller) OrderBook(opts *bind.CallOpts) (common.Address, error)
OrderBook is a free data retrieval call binding the contract method 0x776af5ba.
Solidity: function orderBook() view returns(address)
func (*PositionManagerCaller) ReferralStorage ¶
func (_PositionManager *PositionManagerCaller) ReferralStorage(opts *bind.CallOpts) (common.Address, error)
ReferralStorage is a free data retrieval call binding the contract method 0x006cc35e.
Solidity: function referralStorage() view returns(address)
func (*PositionManagerCaller) Router ¶
Router is a free data retrieval call binding the contract method 0xf887ea40.
Solidity: function router() view returns(address)
func (*PositionManagerCaller) ShortsTracker ¶
func (_PositionManager *PositionManagerCaller) ShortsTracker(opts *bind.CallOpts) (common.Address, error)
ShortsTracker is a free data retrieval call binding the contract method 0x657bc5d0.
Solidity: function shortsTracker() view returns(address)
func (*PositionManagerCaller) ShouldValidateIncreaseOrder ¶
func (_PositionManager *PositionManagerCaller) ShouldValidateIncreaseOrder(opts *bind.CallOpts) (bool, error)
ShouldValidateIncreaseOrder is a free data retrieval call binding the contract method 0x4584bd4b.
Solidity: function shouldValidateIncreaseOrder() view returns(bool)
type PositionManagerCallerRaw ¶
type PositionManagerCallerRaw struct {
Contract *PositionManagerCaller // Generic read-only contract binding to access the raw methods on
}
PositionManagerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*PositionManagerCallerRaw) Call ¶
func (_PositionManager *PositionManagerCallerRaw) 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 PositionManagerCallerSession ¶
type PositionManagerCallerSession struct { Contract *PositionManagerCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
PositionManagerCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*PositionManagerCallerSession) Admin ¶
func (_PositionManager *PositionManagerCallerSession) Admin() (common.Address, error)
Admin is a free data retrieval call binding the contract method 0xf851a440.
Solidity: function admin() view returns(address)
func (*PositionManagerCallerSession) BASISPOINTSDIVISOR ¶
func (_PositionManager *PositionManagerCallerSession) BASISPOINTSDIVISOR() (*big.Int, error)
BASISPOINTSDIVISOR is a free data retrieval call binding the contract method 0x126082cf.
Solidity: function BASIS_POINTS_DIVISOR() view returns(uint256)
func (*PositionManagerCallerSession) DepositFee ¶
func (_PositionManager *PositionManagerCallerSession) DepositFee() (*big.Int, error)
DepositFee is a free data retrieval call binding the contract method 0x67a52793.
Solidity: function depositFee() view returns(uint256)
func (*PositionManagerCallerSession) EthTransferGasLimit ¶
func (_PositionManager *PositionManagerCallerSession) EthTransferGasLimit() (*big.Int, error)
EthTransferGasLimit is a free data retrieval call binding the contract method 0x2d79cf42.
Solidity: function ethTransferGasLimit() view returns(uint256)
func (*PositionManagerCallerSession) FeeReserves ¶
func (_PositionManager *PositionManagerCallerSession) FeeReserves(arg0 common.Address) (*big.Int, error)
FeeReserves is a free data retrieval call binding the contract method 0x1ce9cb8f.
Solidity: function feeReserves(address ) view returns(uint256)
func (*PositionManagerCallerSession) Gov ¶
func (_PositionManager *PositionManagerCallerSession) Gov() (common.Address, error)
Gov is a free data retrieval call binding the contract method 0x12d43a51.
Solidity: function gov() view returns(address)
func (*PositionManagerCallerSession) InLegacyMode ¶
func (_PositionManager *PositionManagerCallerSession) InLegacyMode() (bool, error)
InLegacyMode is a free data retrieval call binding the contract method 0xd4ca83f9.
Solidity: function inLegacyMode() view returns(bool)
func (*PositionManagerCallerSession) IncreasePositionBufferBps ¶
func (_PositionManager *PositionManagerCallerSession) IncreasePositionBufferBps() (*big.Int, error)
IncreasePositionBufferBps is a free data retrieval call binding the contract method 0x98d1e03a.
Solidity: function increasePositionBufferBps() view returns(uint256)
func (*PositionManagerCallerSession) IsLiquidator ¶
func (_PositionManager *PositionManagerCallerSession) IsLiquidator(arg0 common.Address) (bool, error)
IsLiquidator is a free data retrieval call binding the contract method 0x529a356f.
Solidity: function isLiquidator(address ) view returns(bool)
func (*PositionManagerCallerSession) IsOrderKeeper ¶
func (_PositionManager *PositionManagerCallerSession) IsOrderKeeper(arg0 common.Address) (bool, error)
IsOrderKeeper is a free data retrieval call binding the contract method 0x3833f5f5.
Solidity: function isOrderKeeper(address ) view returns(bool)
func (*PositionManagerCallerSession) IsPartner ¶
func (_PositionManager *PositionManagerCallerSession) IsPartner(arg0 common.Address) (bool, error)
IsPartner is a free data retrieval call binding the contract method 0x8c0f9aac.
Solidity: function isPartner(address ) view returns(bool)
func (*PositionManagerCallerSession) MaxGlobalLongSizes ¶
func (_PositionManager *PositionManagerCallerSession) MaxGlobalLongSizes(arg0 common.Address) (*big.Int, error)
MaxGlobalLongSizes is a free data retrieval call binding the contract method 0x1045c74e.
Solidity: function maxGlobalLongSizes(address ) view returns(uint256)
func (*PositionManagerCallerSession) MaxGlobalShortSizes ¶
func (_PositionManager *PositionManagerCallerSession) MaxGlobalShortSizes(arg0 common.Address) (*big.Int, error)
MaxGlobalShortSizes is a free data retrieval call binding the contract method 0x9698d25a.
Solidity: function maxGlobalShortSizes(address ) view returns(uint256)
func (*PositionManagerCallerSession) OrderBook ¶
func (_PositionManager *PositionManagerCallerSession) OrderBook() (common.Address, error)
OrderBook is a free data retrieval call binding the contract method 0x776af5ba.
Solidity: function orderBook() view returns(address)
func (*PositionManagerCallerSession) ReferralStorage ¶
func (_PositionManager *PositionManagerCallerSession) ReferralStorage() (common.Address, error)
ReferralStorage is a free data retrieval call binding the contract method 0x006cc35e.
Solidity: function referralStorage() view returns(address)
func (*PositionManagerCallerSession) Router ¶
func (_PositionManager *PositionManagerCallerSession) Router() (common.Address, error)
Router is a free data retrieval call binding the contract method 0xf887ea40.
Solidity: function router() view returns(address)
func (*PositionManagerCallerSession) ShortsTracker ¶
func (_PositionManager *PositionManagerCallerSession) ShortsTracker() (common.Address, error)
ShortsTracker is a free data retrieval call binding the contract method 0x657bc5d0.
Solidity: function shortsTracker() view returns(address)
func (*PositionManagerCallerSession) ShouldValidateIncreaseOrder ¶
func (_PositionManager *PositionManagerCallerSession) ShouldValidateIncreaseOrder() (bool, error)
ShouldValidateIncreaseOrder is a free data retrieval call binding the contract method 0x4584bd4b.
Solidity: function shouldValidateIncreaseOrder() view returns(bool)
type PositionManagerDecreasePositionReferral ¶
type PositionManagerDecreasePositionReferral struct { Account common.Address SizeDelta *big.Int MarginFeeBasisPoints *big.Int ReferralCode [32]byte Referrer common.Address Raw types.Log // Blockchain specific contextual infos }
PositionManagerDecreasePositionReferral represents a DecreasePositionReferral event raised by the PositionManager contract.
type PositionManagerDecreasePositionReferralIterator ¶
type PositionManagerDecreasePositionReferralIterator struct { Event *PositionManagerDecreasePositionReferral // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PositionManagerDecreasePositionReferralIterator is returned from FilterDecreasePositionReferral and is used to iterate over the raw logs and unpacked data for DecreasePositionReferral events raised by the PositionManager contract.
func (*PositionManagerDecreasePositionReferralIterator) Close ¶
func (it *PositionManagerDecreasePositionReferralIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PositionManagerDecreasePositionReferralIterator) Error ¶
func (it *PositionManagerDecreasePositionReferralIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PositionManagerDecreasePositionReferralIterator) Next ¶
func (it *PositionManagerDecreasePositionReferralIterator) 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 PositionManagerFilterer ¶
type PositionManagerFilterer struct {
// contains filtered or unexported fields
}
PositionManagerFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewPositionManagerFilterer ¶
func NewPositionManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*PositionManagerFilterer, error)
NewPositionManagerFilterer creates a new log filterer instance of PositionManager, bound to a specific deployed contract.
func (*PositionManagerFilterer) FilterDecreasePositionReferral ¶
func (_PositionManager *PositionManagerFilterer) FilterDecreasePositionReferral(opts *bind.FilterOpts) (*PositionManagerDecreasePositionReferralIterator, error)
FilterDecreasePositionReferral is a free log retrieval operation binding the contract event 0x474c763ff84bf2c2039a6d9fea955ecd0f724030e3c365b91169c6a16fe751b7.
Solidity: event DecreasePositionReferral(address account, uint256 sizeDelta, uint256 marginFeeBasisPoints, bytes32 referralCode, address referrer)
func (*PositionManagerFilterer) FilterIncreasePositionReferral ¶
func (_PositionManager *PositionManagerFilterer) FilterIncreasePositionReferral(opts *bind.FilterOpts) (*PositionManagerIncreasePositionReferralIterator, error)
FilterIncreasePositionReferral is a free log retrieval operation binding the contract event 0xc2414023ce7002ee98557d1e7be21e5559073336f2217ee5f9b2e50fd85f71ee.
Solidity: event IncreasePositionReferral(address account, uint256 sizeDelta, uint256 marginFeeBasisPoints, bytes32 referralCode, address referrer)
func (*PositionManagerFilterer) FilterSetAdmin ¶
func (_PositionManager *PositionManagerFilterer) FilterSetAdmin(opts *bind.FilterOpts) (*PositionManagerSetAdminIterator, error)
FilterSetAdmin is a free log retrieval operation binding the contract event 0x5a272403b402d892977df56625f4164ccaf70ca3863991c43ecfe76a6905b0a1.
Solidity: event SetAdmin(address admin)
func (*PositionManagerFilterer) FilterSetDepositFee ¶
func (_PositionManager *PositionManagerFilterer) FilterSetDepositFee(opts *bind.FilterOpts) (*PositionManagerSetDepositFeeIterator, error)
FilterSetDepositFee is a free log retrieval operation binding the contract event 0x974fd3c1fcb4653dfc4fb740c4c692cd212d55c28f163f310128cb64d8300675.
Solidity: event SetDepositFee(uint256 depositFee)
func (*PositionManagerFilterer) FilterSetEthTransferGasLimit ¶
func (_PositionManager *PositionManagerFilterer) FilterSetEthTransferGasLimit(opts *bind.FilterOpts) (*PositionManagerSetEthTransferGasLimitIterator, error)
FilterSetEthTransferGasLimit is a free log retrieval operation binding the contract event 0x4d371d598d3a13f99ce992a17975bbaf1e1c256e072ec7d2f93ce88e40d9ba1c.
Solidity: event SetEthTransferGasLimit(uint256 ethTransferGasLimit)
func (*PositionManagerFilterer) FilterSetInLegacyMode ¶
func (_PositionManager *PositionManagerFilterer) FilterSetInLegacyMode(opts *bind.FilterOpts) (*PositionManagerSetInLegacyModeIterator, error)
FilterSetInLegacyMode is a free log retrieval operation binding the contract event 0xeac6b3611e79ff0d8ea5daa8439f6b1ab7eea4ebf95f1dd360417f712c3fc304.
Solidity: event SetInLegacyMode(bool inLegacyMode)
func (*PositionManagerFilterer) FilterSetIncreasePositionBufferBps ¶
func (_PositionManager *PositionManagerFilterer) FilterSetIncreasePositionBufferBps(opts *bind.FilterOpts) (*PositionManagerSetIncreasePositionBufferBpsIterator, error)
FilterSetIncreasePositionBufferBps is a free log retrieval operation binding the contract event 0x21167d0d4661af93817ebce920f18986eed3d75d5e1c03f2aed05efcbafbc452.
Solidity: event SetIncreasePositionBufferBps(uint256 increasePositionBufferBps)
func (*PositionManagerFilterer) FilterSetLiquidator ¶
func (_PositionManager *PositionManagerFilterer) FilterSetLiquidator(opts *bind.FilterOpts, account []common.Address) (*PositionManagerSetLiquidatorIterator, error)
FilterSetLiquidator is a free log retrieval operation binding the contract event 0x8c0d56805c3b43d441481229dc64bee168253ffe4305f37ab7cfe63b1c4268c6.
Solidity: event SetLiquidator(address indexed account, bool isActive)
func (*PositionManagerFilterer) FilterSetMaxGlobalSizes ¶
func (_PositionManager *PositionManagerFilterer) FilterSetMaxGlobalSizes(opts *bind.FilterOpts) (*PositionManagerSetMaxGlobalSizesIterator, error)
FilterSetMaxGlobalSizes is a free log retrieval operation binding the contract event 0xae32d569b058895b9620d6552b09aaffedc9a6f396be4d595a224ad09f8b2139.
Solidity: event SetMaxGlobalSizes(address[] tokens, uint256[] longSizes, uint256[] shortSizes)
func (*PositionManagerFilterer) FilterSetOrderKeeper ¶
func (_PositionManager *PositionManagerFilterer) FilterSetOrderKeeper(opts *bind.FilterOpts, account []common.Address) (*PositionManagerSetOrderKeeperIterator, error)
FilterSetOrderKeeper is a free log retrieval operation binding the contract event 0x1d5bc0255b943d6a5b5279e8a55d74d620baccbceecb25e87a3558f14c4c118e.
Solidity: event SetOrderKeeper(address indexed account, bool isActive)
func (*PositionManagerFilterer) FilterSetPartner ¶
func (_PositionManager *PositionManagerFilterer) FilterSetPartner(opts *bind.FilterOpts) (*PositionManagerSetPartnerIterator, error)
FilterSetPartner is a free log retrieval operation binding the contract event 0xa4e46c70ff429a91de7d1716d736e877c7cca1c22ac850b23d242530dd95e474.
Solidity: event SetPartner(address account, bool isActive)
func (*PositionManagerFilterer) FilterSetReferralStorage ¶
func (_PositionManager *PositionManagerFilterer) FilterSetReferralStorage(opts *bind.FilterOpts) (*PositionManagerSetReferralStorageIterator, error)
FilterSetReferralStorage is a free log retrieval operation binding the contract event 0x828abcccea18192c21d645e575652c49e20b986dab777906fc473d056b01b6a8.
Solidity: event SetReferralStorage(address referralStorage)
func (*PositionManagerFilterer) FilterSetShouldValidateIncreaseOrder ¶
func (_PositionManager *PositionManagerFilterer) FilterSetShouldValidateIncreaseOrder(opts *bind.FilterOpts) (*PositionManagerSetShouldValidateIncreaseOrderIterator, error)
FilterSetShouldValidateIncreaseOrder is a free log retrieval operation binding the contract event 0xa956222e37fe025ff51e5440ac729a9bd417ff91e485e14dcffa2c0ba8894f40.
Solidity: event SetShouldValidateIncreaseOrder(bool shouldValidateIncreaseOrder)
func (*PositionManagerFilterer) FilterWithdrawFees ¶
func (_PositionManager *PositionManagerFilterer) FilterWithdrawFees(opts *bind.FilterOpts) (*PositionManagerWithdrawFeesIterator, error)
FilterWithdrawFees is a free log retrieval operation binding the contract event 0x4f1b51dd7a2fcb861aa2670f668be66835c4ee12b4bbbf037e4d0018f39819e4.
Solidity: event WithdrawFees(address token, address receiver, uint256 amount)
func (*PositionManagerFilterer) ParseDecreasePositionReferral ¶
func (_PositionManager *PositionManagerFilterer) ParseDecreasePositionReferral(log types.Log) (*PositionManagerDecreasePositionReferral, error)
ParseDecreasePositionReferral is a log parse operation binding the contract event 0x474c763ff84bf2c2039a6d9fea955ecd0f724030e3c365b91169c6a16fe751b7.
Solidity: event DecreasePositionReferral(address account, uint256 sizeDelta, uint256 marginFeeBasisPoints, bytes32 referralCode, address referrer)
func (*PositionManagerFilterer) ParseIncreasePositionReferral ¶
func (_PositionManager *PositionManagerFilterer) ParseIncreasePositionReferral(log types.Log) (*PositionManagerIncreasePositionReferral, error)
ParseIncreasePositionReferral is a log parse operation binding the contract event 0xc2414023ce7002ee98557d1e7be21e5559073336f2217ee5f9b2e50fd85f71ee.
Solidity: event IncreasePositionReferral(address account, uint256 sizeDelta, uint256 marginFeeBasisPoints, bytes32 referralCode, address referrer)
func (*PositionManagerFilterer) ParseSetAdmin ¶
func (_PositionManager *PositionManagerFilterer) ParseSetAdmin(log types.Log) (*PositionManagerSetAdmin, error)
ParseSetAdmin is a log parse operation binding the contract event 0x5a272403b402d892977df56625f4164ccaf70ca3863991c43ecfe76a6905b0a1.
Solidity: event SetAdmin(address admin)
func (*PositionManagerFilterer) ParseSetDepositFee ¶
func (_PositionManager *PositionManagerFilterer) ParseSetDepositFee(log types.Log) (*PositionManagerSetDepositFee, error)
ParseSetDepositFee is a log parse operation binding the contract event 0x974fd3c1fcb4653dfc4fb740c4c692cd212d55c28f163f310128cb64d8300675.
Solidity: event SetDepositFee(uint256 depositFee)
func (*PositionManagerFilterer) ParseSetEthTransferGasLimit ¶
func (_PositionManager *PositionManagerFilterer) ParseSetEthTransferGasLimit(log types.Log) (*PositionManagerSetEthTransferGasLimit, error)
ParseSetEthTransferGasLimit is a log parse operation binding the contract event 0x4d371d598d3a13f99ce992a17975bbaf1e1c256e072ec7d2f93ce88e40d9ba1c.
Solidity: event SetEthTransferGasLimit(uint256 ethTransferGasLimit)
func (*PositionManagerFilterer) ParseSetInLegacyMode ¶
func (_PositionManager *PositionManagerFilterer) ParseSetInLegacyMode(log types.Log) (*PositionManagerSetInLegacyMode, error)
ParseSetInLegacyMode is a log parse operation binding the contract event 0xeac6b3611e79ff0d8ea5daa8439f6b1ab7eea4ebf95f1dd360417f712c3fc304.
Solidity: event SetInLegacyMode(bool inLegacyMode)
func (*PositionManagerFilterer) ParseSetIncreasePositionBufferBps ¶
func (_PositionManager *PositionManagerFilterer) ParseSetIncreasePositionBufferBps(log types.Log) (*PositionManagerSetIncreasePositionBufferBps, error)
ParseSetIncreasePositionBufferBps is a log parse operation binding the contract event 0x21167d0d4661af93817ebce920f18986eed3d75d5e1c03f2aed05efcbafbc452.
Solidity: event SetIncreasePositionBufferBps(uint256 increasePositionBufferBps)
func (*PositionManagerFilterer) ParseSetLiquidator ¶
func (_PositionManager *PositionManagerFilterer) ParseSetLiquidator(log types.Log) (*PositionManagerSetLiquidator, error)
ParseSetLiquidator is a log parse operation binding the contract event 0x8c0d56805c3b43d441481229dc64bee168253ffe4305f37ab7cfe63b1c4268c6.
Solidity: event SetLiquidator(address indexed account, bool isActive)
func (*PositionManagerFilterer) ParseSetMaxGlobalSizes ¶
func (_PositionManager *PositionManagerFilterer) ParseSetMaxGlobalSizes(log types.Log) (*PositionManagerSetMaxGlobalSizes, error)
ParseSetMaxGlobalSizes is a log parse operation binding the contract event 0xae32d569b058895b9620d6552b09aaffedc9a6f396be4d595a224ad09f8b2139.
Solidity: event SetMaxGlobalSizes(address[] tokens, uint256[] longSizes, uint256[] shortSizes)
func (*PositionManagerFilterer) ParseSetOrderKeeper ¶
func (_PositionManager *PositionManagerFilterer) ParseSetOrderKeeper(log types.Log) (*PositionManagerSetOrderKeeper, error)
ParseSetOrderKeeper is a log parse operation binding the contract event 0x1d5bc0255b943d6a5b5279e8a55d74d620baccbceecb25e87a3558f14c4c118e.
Solidity: event SetOrderKeeper(address indexed account, bool isActive)
func (*PositionManagerFilterer) ParseSetPartner ¶
func (_PositionManager *PositionManagerFilterer) ParseSetPartner(log types.Log) (*PositionManagerSetPartner, error)
ParseSetPartner is a log parse operation binding the contract event 0xa4e46c70ff429a91de7d1716d736e877c7cca1c22ac850b23d242530dd95e474.
Solidity: event SetPartner(address account, bool isActive)
func (*PositionManagerFilterer) ParseSetReferralStorage ¶
func (_PositionManager *PositionManagerFilterer) ParseSetReferralStorage(log types.Log) (*PositionManagerSetReferralStorage, error)
ParseSetReferralStorage is a log parse operation binding the contract event 0x828abcccea18192c21d645e575652c49e20b986dab777906fc473d056b01b6a8.
Solidity: event SetReferralStorage(address referralStorage)
func (*PositionManagerFilterer) ParseSetShouldValidateIncreaseOrder ¶
func (_PositionManager *PositionManagerFilterer) ParseSetShouldValidateIncreaseOrder(log types.Log) (*PositionManagerSetShouldValidateIncreaseOrder, error)
ParseSetShouldValidateIncreaseOrder is a log parse operation binding the contract event 0xa956222e37fe025ff51e5440ac729a9bd417ff91e485e14dcffa2c0ba8894f40.
Solidity: event SetShouldValidateIncreaseOrder(bool shouldValidateIncreaseOrder)
func (*PositionManagerFilterer) ParseWithdrawFees ¶
func (_PositionManager *PositionManagerFilterer) ParseWithdrawFees(log types.Log) (*PositionManagerWithdrawFees, error)
ParseWithdrawFees is a log parse operation binding the contract event 0x4f1b51dd7a2fcb861aa2670f668be66835c4ee12b4bbbf037e4d0018f39819e4.
Solidity: event WithdrawFees(address token, address receiver, uint256 amount)
func (*PositionManagerFilterer) WatchDecreasePositionReferral ¶
func (_PositionManager *PositionManagerFilterer) WatchDecreasePositionReferral(opts *bind.WatchOpts, sink chan<- *PositionManagerDecreasePositionReferral) (event.Subscription, error)
WatchDecreasePositionReferral is a free log subscription operation binding the contract event 0x474c763ff84bf2c2039a6d9fea955ecd0f724030e3c365b91169c6a16fe751b7.
Solidity: event DecreasePositionReferral(address account, uint256 sizeDelta, uint256 marginFeeBasisPoints, bytes32 referralCode, address referrer)
func (*PositionManagerFilterer) WatchIncreasePositionReferral ¶
func (_PositionManager *PositionManagerFilterer) WatchIncreasePositionReferral(opts *bind.WatchOpts, sink chan<- *PositionManagerIncreasePositionReferral) (event.Subscription, error)
WatchIncreasePositionReferral is a free log subscription operation binding the contract event 0xc2414023ce7002ee98557d1e7be21e5559073336f2217ee5f9b2e50fd85f71ee.
Solidity: event IncreasePositionReferral(address account, uint256 sizeDelta, uint256 marginFeeBasisPoints, bytes32 referralCode, address referrer)
func (*PositionManagerFilterer) WatchSetAdmin ¶
func (_PositionManager *PositionManagerFilterer) WatchSetAdmin(opts *bind.WatchOpts, sink chan<- *PositionManagerSetAdmin) (event.Subscription, error)
WatchSetAdmin is a free log subscription operation binding the contract event 0x5a272403b402d892977df56625f4164ccaf70ca3863991c43ecfe76a6905b0a1.
Solidity: event SetAdmin(address admin)
func (*PositionManagerFilterer) WatchSetDepositFee ¶
func (_PositionManager *PositionManagerFilterer) WatchSetDepositFee(opts *bind.WatchOpts, sink chan<- *PositionManagerSetDepositFee) (event.Subscription, error)
WatchSetDepositFee is a free log subscription operation binding the contract event 0x974fd3c1fcb4653dfc4fb740c4c692cd212d55c28f163f310128cb64d8300675.
Solidity: event SetDepositFee(uint256 depositFee)
func (*PositionManagerFilterer) WatchSetEthTransferGasLimit ¶
func (_PositionManager *PositionManagerFilterer) WatchSetEthTransferGasLimit(opts *bind.WatchOpts, sink chan<- *PositionManagerSetEthTransferGasLimit) (event.Subscription, error)
WatchSetEthTransferGasLimit is a free log subscription operation binding the contract event 0x4d371d598d3a13f99ce992a17975bbaf1e1c256e072ec7d2f93ce88e40d9ba1c.
Solidity: event SetEthTransferGasLimit(uint256 ethTransferGasLimit)
func (*PositionManagerFilterer) WatchSetInLegacyMode ¶
func (_PositionManager *PositionManagerFilterer) WatchSetInLegacyMode(opts *bind.WatchOpts, sink chan<- *PositionManagerSetInLegacyMode) (event.Subscription, error)
WatchSetInLegacyMode is a free log subscription operation binding the contract event 0xeac6b3611e79ff0d8ea5daa8439f6b1ab7eea4ebf95f1dd360417f712c3fc304.
Solidity: event SetInLegacyMode(bool inLegacyMode)
func (*PositionManagerFilterer) WatchSetIncreasePositionBufferBps ¶
func (_PositionManager *PositionManagerFilterer) WatchSetIncreasePositionBufferBps(opts *bind.WatchOpts, sink chan<- *PositionManagerSetIncreasePositionBufferBps) (event.Subscription, error)
WatchSetIncreasePositionBufferBps is a free log subscription operation binding the contract event 0x21167d0d4661af93817ebce920f18986eed3d75d5e1c03f2aed05efcbafbc452.
Solidity: event SetIncreasePositionBufferBps(uint256 increasePositionBufferBps)
func (*PositionManagerFilterer) WatchSetLiquidator ¶
func (_PositionManager *PositionManagerFilterer) WatchSetLiquidator(opts *bind.WatchOpts, sink chan<- *PositionManagerSetLiquidator, account []common.Address) (event.Subscription, error)
WatchSetLiquidator is a free log subscription operation binding the contract event 0x8c0d56805c3b43d441481229dc64bee168253ffe4305f37ab7cfe63b1c4268c6.
Solidity: event SetLiquidator(address indexed account, bool isActive)
func (*PositionManagerFilterer) WatchSetMaxGlobalSizes ¶
func (_PositionManager *PositionManagerFilterer) WatchSetMaxGlobalSizes(opts *bind.WatchOpts, sink chan<- *PositionManagerSetMaxGlobalSizes) (event.Subscription, error)
WatchSetMaxGlobalSizes is a free log subscription operation binding the contract event 0xae32d569b058895b9620d6552b09aaffedc9a6f396be4d595a224ad09f8b2139.
Solidity: event SetMaxGlobalSizes(address[] tokens, uint256[] longSizes, uint256[] shortSizes)
func (*PositionManagerFilterer) WatchSetOrderKeeper ¶
func (_PositionManager *PositionManagerFilterer) WatchSetOrderKeeper(opts *bind.WatchOpts, sink chan<- *PositionManagerSetOrderKeeper, account []common.Address) (event.Subscription, error)
WatchSetOrderKeeper is a free log subscription operation binding the contract event 0x1d5bc0255b943d6a5b5279e8a55d74d620baccbceecb25e87a3558f14c4c118e.
Solidity: event SetOrderKeeper(address indexed account, bool isActive)
func (*PositionManagerFilterer) WatchSetPartner ¶
func (_PositionManager *PositionManagerFilterer) WatchSetPartner(opts *bind.WatchOpts, sink chan<- *PositionManagerSetPartner) (event.Subscription, error)
WatchSetPartner is a free log subscription operation binding the contract event 0xa4e46c70ff429a91de7d1716d736e877c7cca1c22ac850b23d242530dd95e474.
Solidity: event SetPartner(address account, bool isActive)
func (*PositionManagerFilterer) WatchSetReferralStorage ¶
func (_PositionManager *PositionManagerFilterer) WatchSetReferralStorage(opts *bind.WatchOpts, sink chan<- *PositionManagerSetReferralStorage) (event.Subscription, error)
WatchSetReferralStorage is a free log subscription operation binding the contract event 0x828abcccea18192c21d645e575652c49e20b986dab777906fc473d056b01b6a8.
Solidity: event SetReferralStorage(address referralStorage)
func (*PositionManagerFilterer) WatchSetShouldValidateIncreaseOrder ¶
func (_PositionManager *PositionManagerFilterer) WatchSetShouldValidateIncreaseOrder(opts *bind.WatchOpts, sink chan<- *PositionManagerSetShouldValidateIncreaseOrder) (event.Subscription, error)
WatchSetShouldValidateIncreaseOrder is a free log subscription operation binding the contract event 0xa956222e37fe025ff51e5440ac729a9bd417ff91e485e14dcffa2c0ba8894f40.
Solidity: event SetShouldValidateIncreaseOrder(bool shouldValidateIncreaseOrder)
func (*PositionManagerFilterer) WatchWithdrawFees ¶
func (_PositionManager *PositionManagerFilterer) WatchWithdrawFees(opts *bind.WatchOpts, sink chan<- *PositionManagerWithdrawFees) (event.Subscription, error)
WatchWithdrawFees is a free log subscription operation binding the contract event 0x4f1b51dd7a2fcb861aa2670f668be66835c4ee12b4bbbf037e4d0018f39819e4.
Solidity: event WithdrawFees(address token, address receiver, uint256 amount)
type PositionManagerIncreasePositionReferral ¶
type PositionManagerIncreasePositionReferral struct { Account common.Address SizeDelta *big.Int MarginFeeBasisPoints *big.Int ReferralCode [32]byte Referrer common.Address Raw types.Log // Blockchain specific contextual infos }
PositionManagerIncreasePositionReferral represents a IncreasePositionReferral event raised by the PositionManager contract.
type PositionManagerIncreasePositionReferralIterator ¶
type PositionManagerIncreasePositionReferralIterator struct { Event *PositionManagerIncreasePositionReferral // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PositionManagerIncreasePositionReferralIterator is returned from FilterIncreasePositionReferral and is used to iterate over the raw logs and unpacked data for IncreasePositionReferral events raised by the PositionManager contract.
func (*PositionManagerIncreasePositionReferralIterator) Close ¶
func (it *PositionManagerIncreasePositionReferralIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PositionManagerIncreasePositionReferralIterator) Error ¶
func (it *PositionManagerIncreasePositionReferralIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PositionManagerIncreasePositionReferralIterator) Next ¶
func (it *PositionManagerIncreasePositionReferralIterator) 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 PositionManagerRaw ¶
type PositionManagerRaw struct {
Contract *PositionManager // Generic contract binding to access the raw methods on
}
PositionManagerRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*PositionManagerRaw) Call ¶
func (_PositionManager *PositionManagerRaw) 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 (*PositionManagerRaw) Transact ¶
func (_PositionManager *PositionManagerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*PositionManagerRaw) Transfer ¶
func (_PositionManager *PositionManagerRaw) 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 PositionManagerSession ¶
type PositionManagerSession struct { Contract *PositionManager // 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 }
PositionManagerSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*PositionManagerSession) Admin ¶
func (_PositionManager *PositionManagerSession) Admin() (common.Address, error)
Admin is a free data retrieval call binding the contract method 0xf851a440.
Solidity: function admin() view returns(address)
func (*PositionManagerSession) Approve ¶
func (_PositionManager *PositionManagerSession) Approve(_token common.Address, _spender common.Address, _amount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0xe1f21c67.
Solidity: function approve(address _token, address _spender, uint256 _amount) returns()
func (*PositionManagerSession) BASISPOINTSDIVISOR ¶
func (_PositionManager *PositionManagerSession) BASISPOINTSDIVISOR() (*big.Int, error)
BASISPOINTSDIVISOR is a free data retrieval call binding the contract method 0x126082cf.
Solidity: function BASIS_POINTS_DIVISOR() view returns(uint256)
func (*PositionManagerSession) DecreasePosition ¶
func (_PositionManager *PositionManagerSession) DecreasePosition(_collateralToken common.Address, _indexToken common.Address, _collateralDelta *big.Int, _sizeDelta *big.Int, _isLong bool, _receiver common.Address, _price *big.Int) (*types.Transaction, error)
DecreasePosition is a paid mutator transaction binding the contract method 0x90205d8c.
Solidity: function decreasePosition(address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver, uint256 _price) returns()
func (*PositionManagerSession) DecreasePositionAndSwap ¶
func (_PositionManager *PositionManagerSession) DecreasePositionAndSwap(_path []common.Address, _indexToken common.Address, _collateralDelta *big.Int, _sizeDelta *big.Int, _isLong bool, _receiver common.Address, _price *big.Int, _minOut *big.Int) (*types.Transaction, error)
DecreasePositionAndSwap is a paid mutator transaction binding the contract method 0x5fc8500e.
Solidity: function decreasePositionAndSwap(address[] _path, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver, uint256 _price, uint256 _minOut) returns()
func (*PositionManagerSession) DecreasePositionAndSwapETH ¶
func (_PositionManager *PositionManagerSession) DecreasePositionAndSwapETH(_path []common.Address, _indexToken common.Address, _collateralDelta *big.Int, _sizeDelta *big.Int, _isLong bool, _receiver common.Address, _price *big.Int, _minOut *big.Int) (*types.Transaction, error)
DecreasePositionAndSwapETH is a paid mutator transaction binding the contract method 0x3039e37f.
Solidity: function decreasePositionAndSwapETH(address[] _path, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver, uint256 _price, uint256 _minOut) returns()
func (*PositionManagerSession) DecreasePositionETH ¶
func (_PositionManager *PositionManagerSession) DecreasePositionETH(_collateralToken common.Address, _indexToken common.Address, _collateralDelta *big.Int, _sizeDelta *big.Int, _isLong bool, _receiver common.Address, _price *big.Int) (*types.Transaction, error)
DecreasePositionETH is a paid mutator transaction binding the contract method 0x430ed37c.
Solidity: function decreasePositionETH(address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver, uint256 _price) returns()
func (*PositionManagerSession) DepositFee ¶
func (_PositionManager *PositionManagerSession) DepositFee() (*big.Int, error)
DepositFee is a free data retrieval call binding the contract method 0x67a52793.
Solidity: function depositFee() view returns(uint256)
func (*PositionManagerSession) EthTransferGasLimit ¶
func (_PositionManager *PositionManagerSession) EthTransferGasLimit() (*big.Int, error)
EthTransferGasLimit is a free data retrieval call binding the contract method 0x2d79cf42.
Solidity: function ethTransferGasLimit() view returns(uint256)
func (*PositionManagerSession) ExecuteDecreaseOrder ¶
func (_PositionManager *PositionManagerSession) ExecuteDecreaseOrder(_account common.Address, _orderIndex *big.Int, _feeReceiver common.Address) (*types.Transaction, error)
ExecuteDecreaseOrder is a paid mutator transaction binding the contract method 0x11d9444a.
Solidity: function executeDecreaseOrder(address _account, uint256 _orderIndex, address _feeReceiver) returns()
func (*PositionManagerSession) ExecuteIncreaseOrder ¶
func (_PositionManager *PositionManagerSession) ExecuteIncreaseOrder(_account common.Address, _orderIndex *big.Int, _feeReceiver common.Address) (*types.Transaction, error)
ExecuteIncreaseOrder is a paid mutator transaction binding the contract method 0xd38ab519.
Solidity: function executeIncreaseOrder(address _account, uint256 _orderIndex, address _feeReceiver) returns()
func (*PositionManagerSession) ExecuteSwapOrder ¶
func (_PositionManager *PositionManagerSession) ExecuteSwapOrder(_account common.Address, _orderIndex *big.Int, _feeReceiver common.Address) (*types.Transaction, error)
ExecuteSwapOrder is a paid mutator transaction binding the contract method 0x07c7edc3.
Solidity: function executeSwapOrder(address _account, uint256 _orderIndex, address _feeReceiver) returns()
func (*PositionManagerSession) FeeReserves ¶
FeeReserves is a free data retrieval call binding the contract method 0x1ce9cb8f.
Solidity: function feeReserves(address ) view returns(uint256)
func (*PositionManagerSession) Gov ¶
func (_PositionManager *PositionManagerSession) Gov() (common.Address, error)
Gov is a free data retrieval call binding the contract method 0x12d43a51.
Solidity: function gov() view returns(address)
func (*PositionManagerSession) InLegacyMode ¶
func (_PositionManager *PositionManagerSession) InLegacyMode() (bool, error)
InLegacyMode is a free data retrieval call binding the contract method 0xd4ca83f9.
Solidity: function inLegacyMode() view returns(bool)
func (*PositionManagerSession) IncreasePosition ¶
func (_PositionManager *PositionManagerSession) IncreasePosition(_path []common.Address, _indexToken common.Address, _amountIn *big.Int, _minOut *big.Int, _sizeDelta *big.Int, _isLong bool, _price *big.Int) (*types.Transaction, error)
IncreasePosition is a paid mutator transaction binding the contract method 0xb7ddc992.
Solidity: function increasePosition(address[] _path, address _indexToken, uint256 _amountIn, uint256 _minOut, uint256 _sizeDelta, bool _isLong, uint256 _price) returns()
func (*PositionManagerSession) IncreasePositionBufferBps ¶
func (_PositionManager *PositionManagerSession) IncreasePositionBufferBps() (*big.Int, error)
IncreasePositionBufferBps is a free data retrieval call binding the contract method 0x98d1e03a.
Solidity: function increasePositionBufferBps() view returns(uint256)
func (*PositionManagerSession) IncreasePositionETH ¶
func (_PositionManager *PositionManagerSession) IncreasePositionETH(_path []common.Address, _indexToken common.Address, _minOut *big.Int, _sizeDelta *big.Int, _isLong bool, _price *big.Int) (*types.Transaction, error)
IncreasePositionETH is a paid mutator transaction binding the contract method 0xb32755de.
Solidity: function increasePositionETH(address[] _path, address _indexToken, uint256 _minOut, uint256 _sizeDelta, bool _isLong, uint256 _price) payable returns()
func (*PositionManagerSession) IsLiquidator ¶
func (_PositionManager *PositionManagerSession) IsLiquidator(arg0 common.Address) (bool, error)
IsLiquidator is a free data retrieval call binding the contract method 0x529a356f.
Solidity: function isLiquidator(address ) view returns(bool)
func (*PositionManagerSession) IsOrderKeeper ¶
func (_PositionManager *PositionManagerSession) IsOrderKeeper(arg0 common.Address) (bool, error)
IsOrderKeeper is a free data retrieval call binding the contract method 0x3833f5f5.
Solidity: function isOrderKeeper(address ) view returns(bool)
func (*PositionManagerSession) IsPartner ¶
func (_PositionManager *PositionManagerSession) IsPartner(arg0 common.Address) (bool, error)
IsPartner is a free data retrieval call binding the contract method 0x8c0f9aac.
Solidity: function isPartner(address ) view returns(bool)
func (*PositionManagerSession) LiquidatePosition ¶
func (_PositionManager *PositionManagerSession) LiquidatePosition(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _feeReceiver common.Address) (*types.Transaction, error)
LiquidatePosition is a paid mutator transaction binding the contract method 0xde2ea948.
Solidity: function liquidatePosition(address _account, address _collateralToken, address _indexToken, bool _isLong, address _feeReceiver) returns()
func (*PositionManagerSession) MaxGlobalLongSizes ¶
func (_PositionManager *PositionManagerSession) MaxGlobalLongSizes(arg0 common.Address) (*big.Int, error)
MaxGlobalLongSizes is a free data retrieval call binding the contract method 0x1045c74e.
Solidity: function maxGlobalLongSizes(address ) view returns(uint256)
func (*PositionManagerSession) MaxGlobalShortSizes ¶
func (_PositionManager *PositionManagerSession) MaxGlobalShortSizes(arg0 common.Address) (*big.Int, error)
MaxGlobalShortSizes is a free data retrieval call binding the contract method 0x9698d25a.
Solidity: function maxGlobalShortSizes(address ) view returns(uint256)
func (*PositionManagerSession) OrderBook ¶
func (_PositionManager *PositionManagerSession) OrderBook() (common.Address, error)
OrderBook is a free data retrieval call binding the contract method 0x776af5ba.
Solidity: function orderBook() view returns(address)
func (*PositionManagerSession) Receive ¶
func (_PositionManager *PositionManagerSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*PositionManagerSession) ReferralStorage ¶
func (_PositionManager *PositionManagerSession) ReferralStorage() (common.Address, error)
ReferralStorage is a free data retrieval call binding the contract method 0x006cc35e.
Solidity: function referralStorage() view returns(address)
func (*PositionManagerSession) Router ¶
func (_PositionManager *PositionManagerSession) Router() (common.Address, error)
Router is a free data retrieval call binding the contract method 0xf887ea40.
Solidity: function router() view returns(address)
func (*PositionManagerSession) SendValue ¶
func (_PositionManager *PositionManagerSession) SendValue(_receiver common.Address, _amount *big.Int) (*types.Transaction, error)
SendValue is a paid mutator transaction binding the contract method 0x24a084df.
Solidity: function sendValue(address _receiver, uint256 _amount) returns()
func (*PositionManagerSession) SetAdmin ¶
func (_PositionManager *PositionManagerSession) SetAdmin(_admin common.Address) (*types.Transaction, error)
SetAdmin is a paid mutator transaction binding the contract method 0x704b6c02.
Solidity: function setAdmin(address _admin) returns()
func (*PositionManagerSession) SetDepositFee ¶
func (_PositionManager *PositionManagerSession) SetDepositFee(_depositFee *big.Int) (*types.Transaction, error)
SetDepositFee is a paid mutator transaction binding the contract method 0x490ae210.
Solidity: function setDepositFee(uint256 _depositFee) returns()
func (*PositionManagerSession) SetEthTransferGasLimit ¶
func (_PositionManager *PositionManagerSession) SetEthTransferGasLimit(_ethTransferGasLimit *big.Int) (*types.Transaction, error)
SetEthTransferGasLimit is a paid mutator transaction binding the contract method 0x3a9b52ad.
Solidity: function setEthTransferGasLimit(uint256 _ethTransferGasLimit) returns()
func (*PositionManagerSession) SetGov ¶
func (_PositionManager *PositionManagerSession) SetGov(_gov common.Address) (*types.Transaction, error)
SetGov is a paid mutator transaction binding the contract method 0xcfad57a2.
Solidity: function setGov(address _gov) returns()
func (*PositionManagerSession) SetInLegacyMode ¶
func (_PositionManager *PositionManagerSession) SetInLegacyMode(_inLegacyMode bool) (*types.Transaction, error)
SetInLegacyMode is a paid mutator transaction binding the contract method 0x9c95332f.
Solidity: function setInLegacyMode(bool _inLegacyMode) returns()
func (*PositionManagerSession) SetIncreasePositionBufferBps ¶
func (_PositionManager *PositionManagerSession) SetIncreasePositionBufferBps(_increasePositionBufferBps *big.Int) (*types.Transaction, error)
SetIncreasePositionBufferBps is a paid mutator transaction binding the contract method 0x233bfe3b.
Solidity: function setIncreasePositionBufferBps(uint256 _increasePositionBufferBps) returns()
func (*PositionManagerSession) SetLiquidator ¶
func (_PositionManager *PositionManagerSession) SetLiquidator(_account common.Address, _isActive bool) (*types.Transaction, error)
SetLiquidator is a paid mutator transaction binding the contract method 0x4453a374.
Solidity: function setLiquidator(address _account, bool _isActive) returns()
func (*PositionManagerSession) SetMaxGlobalSizes ¶
func (_PositionManager *PositionManagerSession) SetMaxGlobalSizes(_tokens []common.Address, _longSizes []*big.Int, _shortSizes []*big.Int) (*types.Transaction, error)
SetMaxGlobalSizes is a paid mutator transaction binding the contract method 0xef12c67e.
Solidity: function setMaxGlobalSizes(address[] _tokens, uint256[] _longSizes, uint256[] _shortSizes) returns()
func (*PositionManagerSession) SetOrderKeeper ¶
func (_PositionManager *PositionManagerSession) SetOrderKeeper(_account common.Address, _isActive bool) (*types.Transaction, error)
SetOrderKeeper is a paid mutator transaction binding the contract method 0x1e261538.
Solidity: function setOrderKeeper(address _account, bool _isActive) returns()
func (*PositionManagerSession) SetPartner ¶
func (_PositionManager *PositionManagerSession) SetPartner(_account common.Address, _isActive bool) (*types.Transaction, error)
SetPartner is a paid mutator transaction binding the contract method 0x21acf659.
Solidity: function setPartner(address _account, bool _isActive) returns()
func (*PositionManagerSession) SetReferralStorage ¶
func (_PositionManager *PositionManagerSession) SetReferralStorage(_referralStorage common.Address) (*types.Transaction, error)
SetReferralStorage is a paid mutator transaction binding the contract method 0xae4d7f9a.
Solidity: function setReferralStorage(address _referralStorage) returns()
func (*PositionManagerSession) SetShouldValidateIncreaseOrder ¶
func (_PositionManager *PositionManagerSession) SetShouldValidateIncreaseOrder(_shouldValidateIncreaseOrder bool) (*types.Transaction, error)
SetShouldValidateIncreaseOrder is a paid mutator transaction binding the contract method 0x1b904359.
Solidity: function setShouldValidateIncreaseOrder(bool _shouldValidateIncreaseOrder) returns()
func (*PositionManagerSession) ShortsTracker ¶
func (_PositionManager *PositionManagerSession) ShortsTracker() (common.Address, error)
ShortsTracker is a free data retrieval call binding the contract method 0x657bc5d0.
Solidity: function shortsTracker() view returns(address)
func (*PositionManagerSession) ShouldValidateIncreaseOrder ¶
func (_PositionManager *PositionManagerSession) ShouldValidateIncreaseOrder() (bool, error)
ShouldValidateIncreaseOrder is a free data retrieval call binding the contract method 0x4584bd4b.
Solidity: function shouldValidateIncreaseOrder() view returns(bool)
func (*PositionManagerSession) Vault ¶
func (_PositionManager *PositionManagerSession) Vault() (common.Address, error)
Vault is a free data retrieval call binding the contract method 0xfbfa77cf.
Solidity: function vault() view returns(address)
func (*PositionManagerSession) Weth ¶
func (_PositionManager *PositionManagerSession) Weth() (common.Address, error)
Weth is a free data retrieval call binding the contract method 0x3fc8cef3.
Solidity: function weth() view returns(address)
func (*PositionManagerSession) WithdrawFees ¶
func (_PositionManager *PositionManagerSession) WithdrawFees(_token common.Address, _receiver common.Address) (*types.Transaction, error)
WithdrawFees is a paid mutator transaction binding the contract method 0xf2555278.
Solidity: function withdrawFees(address _token, address _receiver) returns()
type PositionManagerSetAdmin ¶
type PositionManagerSetAdmin struct { Admin common.Address Raw types.Log // Blockchain specific contextual infos }
PositionManagerSetAdmin represents a SetAdmin event raised by the PositionManager contract.
type PositionManagerSetAdminIterator ¶
type PositionManagerSetAdminIterator struct { Event *PositionManagerSetAdmin // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PositionManagerSetAdminIterator is returned from FilterSetAdmin and is used to iterate over the raw logs and unpacked data for SetAdmin events raised by the PositionManager contract.
func (*PositionManagerSetAdminIterator) Close ¶
func (it *PositionManagerSetAdminIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PositionManagerSetAdminIterator) Error ¶
func (it *PositionManagerSetAdminIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PositionManagerSetAdminIterator) Next ¶
func (it *PositionManagerSetAdminIterator) 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 PositionManagerSetDepositFee ¶
type PositionManagerSetDepositFee struct { DepositFee *big.Int Raw types.Log // Blockchain specific contextual infos }
PositionManagerSetDepositFee represents a SetDepositFee event raised by the PositionManager contract.
type PositionManagerSetDepositFeeIterator ¶
type PositionManagerSetDepositFeeIterator struct { Event *PositionManagerSetDepositFee // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PositionManagerSetDepositFeeIterator is returned from FilterSetDepositFee and is used to iterate over the raw logs and unpacked data for SetDepositFee events raised by the PositionManager contract.
func (*PositionManagerSetDepositFeeIterator) Close ¶
func (it *PositionManagerSetDepositFeeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PositionManagerSetDepositFeeIterator) Error ¶
func (it *PositionManagerSetDepositFeeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PositionManagerSetDepositFeeIterator) Next ¶
func (it *PositionManagerSetDepositFeeIterator) 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 PositionManagerSetEthTransferGasLimit ¶
type PositionManagerSetEthTransferGasLimit struct { EthTransferGasLimit *big.Int Raw types.Log // Blockchain specific contextual infos }
PositionManagerSetEthTransferGasLimit represents a SetEthTransferGasLimit event raised by the PositionManager contract.
type PositionManagerSetEthTransferGasLimitIterator ¶
type PositionManagerSetEthTransferGasLimitIterator struct { Event *PositionManagerSetEthTransferGasLimit // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PositionManagerSetEthTransferGasLimitIterator is returned from FilterSetEthTransferGasLimit and is used to iterate over the raw logs and unpacked data for SetEthTransferGasLimit events raised by the PositionManager contract.
func (*PositionManagerSetEthTransferGasLimitIterator) Close ¶
func (it *PositionManagerSetEthTransferGasLimitIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PositionManagerSetEthTransferGasLimitIterator) Error ¶
func (it *PositionManagerSetEthTransferGasLimitIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PositionManagerSetEthTransferGasLimitIterator) Next ¶
func (it *PositionManagerSetEthTransferGasLimitIterator) 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 PositionManagerSetInLegacyMode ¶
type PositionManagerSetInLegacyMode struct { InLegacyMode bool Raw types.Log // Blockchain specific contextual infos }
PositionManagerSetInLegacyMode represents a SetInLegacyMode event raised by the PositionManager contract.
type PositionManagerSetInLegacyModeIterator ¶
type PositionManagerSetInLegacyModeIterator struct { Event *PositionManagerSetInLegacyMode // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PositionManagerSetInLegacyModeIterator is returned from FilterSetInLegacyMode and is used to iterate over the raw logs and unpacked data for SetInLegacyMode events raised by the PositionManager contract.
func (*PositionManagerSetInLegacyModeIterator) Close ¶
func (it *PositionManagerSetInLegacyModeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PositionManagerSetInLegacyModeIterator) Error ¶
func (it *PositionManagerSetInLegacyModeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PositionManagerSetInLegacyModeIterator) Next ¶
func (it *PositionManagerSetInLegacyModeIterator) 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 PositionManagerSetIncreasePositionBufferBps ¶
type PositionManagerSetIncreasePositionBufferBps struct { IncreasePositionBufferBps *big.Int Raw types.Log // Blockchain specific contextual infos }
PositionManagerSetIncreasePositionBufferBps represents a SetIncreasePositionBufferBps event raised by the PositionManager contract.
type PositionManagerSetIncreasePositionBufferBpsIterator ¶
type PositionManagerSetIncreasePositionBufferBpsIterator struct { Event *PositionManagerSetIncreasePositionBufferBps // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PositionManagerSetIncreasePositionBufferBpsIterator is returned from FilterSetIncreasePositionBufferBps and is used to iterate over the raw logs and unpacked data for SetIncreasePositionBufferBps events raised by the PositionManager contract.
func (*PositionManagerSetIncreasePositionBufferBpsIterator) Close ¶
func (it *PositionManagerSetIncreasePositionBufferBpsIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PositionManagerSetIncreasePositionBufferBpsIterator) Error ¶
func (it *PositionManagerSetIncreasePositionBufferBpsIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PositionManagerSetIncreasePositionBufferBpsIterator) Next ¶
func (it *PositionManagerSetIncreasePositionBufferBpsIterator) 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 PositionManagerSetLiquidator ¶
type PositionManagerSetLiquidator struct { Account common.Address IsActive bool Raw types.Log // Blockchain specific contextual infos }
PositionManagerSetLiquidator represents a SetLiquidator event raised by the PositionManager contract.
type PositionManagerSetLiquidatorIterator ¶
type PositionManagerSetLiquidatorIterator struct { Event *PositionManagerSetLiquidator // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PositionManagerSetLiquidatorIterator is returned from FilterSetLiquidator and is used to iterate over the raw logs and unpacked data for SetLiquidator events raised by the PositionManager contract.
func (*PositionManagerSetLiquidatorIterator) Close ¶
func (it *PositionManagerSetLiquidatorIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PositionManagerSetLiquidatorIterator) Error ¶
func (it *PositionManagerSetLiquidatorIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PositionManagerSetLiquidatorIterator) Next ¶
func (it *PositionManagerSetLiquidatorIterator) 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 PositionManagerSetMaxGlobalSizes ¶
type PositionManagerSetMaxGlobalSizes struct { Tokens []common.Address LongSizes []*big.Int ShortSizes []*big.Int Raw types.Log // Blockchain specific contextual infos }
PositionManagerSetMaxGlobalSizes represents a SetMaxGlobalSizes event raised by the PositionManager contract.
type PositionManagerSetMaxGlobalSizesIterator ¶
type PositionManagerSetMaxGlobalSizesIterator struct { Event *PositionManagerSetMaxGlobalSizes // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PositionManagerSetMaxGlobalSizesIterator is returned from FilterSetMaxGlobalSizes and is used to iterate over the raw logs and unpacked data for SetMaxGlobalSizes events raised by the PositionManager contract.
func (*PositionManagerSetMaxGlobalSizesIterator) Close ¶
func (it *PositionManagerSetMaxGlobalSizesIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PositionManagerSetMaxGlobalSizesIterator) Error ¶
func (it *PositionManagerSetMaxGlobalSizesIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PositionManagerSetMaxGlobalSizesIterator) Next ¶
func (it *PositionManagerSetMaxGlobalSizesIterator) 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 PositionManagerSetOrderKeeper ¶
type PositionManagerSetOrderKeeper struct { Account common.Address IsActive bool Raw types.Log // Blockchain specific contextual infos }
PositionManagerSetOrderKeeper represents a SetOrderKeeper event raised by the PositionManager contract.
type PositionManagerSetOrderKeeperIterator ¶
type PositionManagerSetOrderKeeperIterator struct { Event *PositionManagerSetOrderKeeper // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PositionManagerSetOrderKeeperIterator is returned from FilterSetOrderKeeper and is used to iterate over the raw logs and unpacked data for SetOrderKeeper events raised by the PositionManager contract.
func (*PositionManagerSetOrderKeeperIterator) Close ¶
func (it *PositionManagerSetOrderKeeperIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PositionManagerSetOrderKeeperIterator) Error ¶
func (it *PositionManagerSetOrderKeeperIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PositionManagerSetOrderKeeperIterator) Next ¶
func (it *PositionManagerSetOrderKeeperIterator) 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 PositionManagerSetPartner ¶
type PositionManagerSetPartner struct { Account common.Address IsActive bool Raw types.Log // Blockchain specific contextual infos }
PositionManagerSetPartner represents a SetPartner event raised by the PositionManager contract.
type PositionManagerSetPartnerIterator ¶
type PositionManagerSetPartnerIterator struct { Event *PositionManagerSetPartner // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PositionManagerSetPartnerIterator is returned from FilterSetPartner and is used to iterate over the raw logs and unpacked data for SetPartner events raised by the PositionManager contract.
func (*PositionManagerSetPartnerIterator) Close ¶
func (it *PositionManagerSetPartnerIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PositionManagerSetPartnerIterator) Error ¶
func (it *PositionManagerSetPartnerIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PositionManagerSetPartnerIterator) Next ¶
func (it *PositionManagerSetPartnerIterator) 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 PositionManagerSetReferralStorage ¶
type PositionManagerSetReferralStorage struct { ReferralStorage common.Address Raw types.Log // Blockchain specific contextual infos }
PositionManagerSetReferralStorage represents a SetReferralStorage event raised by the PositionManager contract.
type PositionManagerSetReferralStorageIterator ¶
type PositionManagerSetReferralStorageIterator struct { Event *PositionManagerSetReferralStorage // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PositionManagerSetReferralStorageIterator is returned from FilterSetReferralStorage and is used to iterate over the raw logs and unpacked data for SetReferralStorage events raised by the PositionManager contract.
func (*PositionManagerSetReferralStorageIterator) Close ¶
func (it *PositionManagerSetReferralStorageIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PositionManagerSetReferralStorageIterator) Error ¶
func (it *PositionManagerSetReferralStorageIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PositionManagerSetReferralStorageIterator) Next ¶
func (it *PositionManagerSetReferralStorageIterator) 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 PositionManagerSetShouldValidateIncreaseOrder ¶
type PositionManagerSetShouldValidateIncreaseOrder struct { ShouldValidateIncreaseOrder bool Raw types.Log // Blockchain specific contextual infos }
PositionManagerSetShouldValidateIncreaseOrder represents a SetShouldValidateIncreaseOrder event raised by the PositionManager contract.
type PositionManagerSetShouldValidateIncreaseOrderIterator ¶
type PositionManagerSetShouldValidateIncreaseOrderIterator struct { Event *PositionManagerSetShouldValidateIncreaseOrder // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PositionManagerSetShouldValidateIncreaseOrderIterator is returned from FilterSetShouldValidateIncreaseOrder and is used to iterate over the raw logs and unpacked data for SetShouldValidateIncreaseOrder events raised by the PositionManager contract.
func (*PositionManagerSetShouldValidateIncreaseOrderIterator) Close ¶
func (it *PositionManagerSetShouldValidateIncreaseOrderIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PositionManagerSetShouldValidateIncreaseOrderIterator) Error ¶
func (it *PositionManagerSetShouldValidateIncreaseOrderIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PositionManagerSetShouldValidateIncreaseOrderIterator) Next ¶
func (it *PositionManagerSetShouldValidateIncreaseOrderIterator) 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 PositionManagerTransactor ¶
type PositionManagerTransactor struct {
// contains filtered or unexported fields
}
PositionManagerTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewPositionManagerTransactor ¶
func NewPositionManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*PositionManagerTransactor, error)
NewPositionManagerTransactor creates a new write-only instance of PositionManager, bound to a specific deployed contract.
func (*PositionManagerTransactor) Approve ¶
func (_PositionManager *PositionManagerTransactor) Approve(opts *bind.TransactOpts, _token common.Address, _spender common.Address, _amount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0xe1f21c67.
Solidity: function approve(address _token, address _spender, uint256 _amount) returns()
func (*PositionManagerTransactor) DecreasePosition ¶
func (_PositionManager *PositionManagerTransactor) DecreasePosition(opts *bind.TransactOpts, _collateralToken common.Address, _indexToken common.Address, _collateralDelta *big.Int, _sizeDelta *big.Int, _isLong bool, _receiver common.Address, _price *big.Int) (*types.Transaction, error)
DecreasePosition is a paid mutator transaction binding the contract method 0x90205d8c.
Solidity: function decreasePosition(address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver, uint256 _price) returns()
func (*PositionManagerTransactor) DecreasePositionAndSwap ¶
func (_PositionManager *PositionManagerTransactor) DecreasePositionAndSwap(opts *bind.TransactOpts, _path []common.Address, _indexToken common.Address, _collateralDelta *big.Int, _sizeDelta *big.Int, _isLong bool, _receiver common.Address, _price *big.Int, _minOut *big.Int) (*types.Transaction, error)
DecreasePositionAndSwap is a paid mutator transaction binding the contract method 0x5fc8500e.
Solidity: function decreasePositionAndSwap(address[] _path, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver, uint256 _price, uint256 _minOut) returns()
func (*PositionManagerTransactor) DecreasePositionAndSwapETH ¶
func (_PositionManager *PositionManagerTransactor) DecreasePositionAndSwapETH(opts *bind.TransactOpts, _path []common.Address, _indexToken common.Address, _collateralDelta *big.Int, _sizeDelta *big.Int, _isLong bool, _receiver common.Address, _price *big.Int, _minOut *big.Int) (*types.Transaction, error)
DecreasePositionAndSwapETH is a paid mutator transaction binding the contract method 0x3039e37f.
Solidity: function decreasePositionAndSwapETH(address[] _path, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver, uint256 _price, uint256 _minOut) returns()
func (*PositionManagerTransactor) DecreasePositionETH ¶
func (_PositionManager *PositionManagerTransactor) DecreasePositionETH(opts *bind.TransactOpts, _collateralToken common.Address, _indexToken common.Address, _collateralDelta *big.Int, _sizeDelta *big.Int, _isLong bool, _receiver common.Address, _price *big.Int) (*types.Transaction, error)
DecreasePositionETH is a paid mutator transaction binding the contract method 0x430ed37c.
Solidity: function decreasePositionETH(address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver, uint256 _price) returns()
func (*PositionManagerTransactor) ExecuteDecreaseOrder ¶
func (_PositionManager *PositionManagerTransactor) ExecuteDecreaseOrder(opts *bind.TransactOpts, _account common.Address, _orderIndex *big.Int, _feeReceiver common.Address) (*types.Transaction, error)
ExecuteDecreaseOrder is a paid mutator transaction binding the contract method 0x11d9444a.
Solidity: function executeDecreaseOrder(address _account, uint256 _orderIndex, address _feeReceiver) returns()
func (*PositionManagerTransactor) ExecuteIncreaseOrder ¶
func (_PositionManager *PositionManagerTransactor) ExecuteIncreaseOrder(opts *bind.TransactOpts, _account common.Address, _orderIndex *big.Int, _feeReceiver common.Address) (*types.Transaction, error)
ExecuteIncreaseOrder is a paid mutator transaction binding the contract method 0xd38ab519.
Solidity: function executeIncreaseOrder(address _account, uint256 _orderIndex, address _feeReceiver) returns()
func (*PositionManagerTransactor) ExecuteSwapOrder ¶
func (_PositionManager *PositionManagerTransactor) ExecuteSwapOrder(opts *bind.TransactOpts, _account common.Address, _orderIndex *big.Int, _feeReceiver common.Address) (*types.Transaction, error)
ExecuteSwapOrder is a paid mutator transaction binding the contract method 0x07c7edc3.
Solidity: function executeSwapOrder(address _account, uint256 _orderIndex, address _feeReceiver) returns()
func (*PositionManagerTransactor) IncreasePosition ¶
func (_PositionManager *PositionManagerTransactor) IncreasePosition(opts *bind.TransactOpts, _path []common.Address, _indexToken common.Address, _amountIn *big.Int, _minOut *big.Int, _sizeDelta *big.Int, _isLong bool, _price *big.Int) (*types.Transaction, error)
IncreasePosition is a paid mutator transaction binding the contract method 0xb7ddc992.
Solidity: function increasePosition(address[] _path, address _indexToken, uint256 _amountIn, uint256 _minOut, uint256 _sizeDelta, bool _isLong, uint256 _price) returns()
func (*PositionManagerTransactor) IncreasePositionETH ¶
func (_PositionManager *PositionManagerTransactor) IncreasePositionETH(opts *bind.TransactOpts, _path []common.Address, _indexToken common.Address, _minOut *big.Int, _sizeDelta *big.Int, _isLong bool, _price *big.Int) (*types.Transaction, error)
IncreasePositionETH is a paid mutator transaction binding the contract method 0xb32755de.
Solidity: function increasePositionETH(address[] _path, address _indexToken, uint256 _minOut, uint256 _sizeDelta, bool _isLong, uint256 _price) payable returns()
func (*PositionManagerTransactor) LiquidatePosition ¶
func (_PositionManager *PositionManagerTransactor) LiquidatePosition(opts *bind.TransactOpts, _account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _feeReceiver common.Address) (*types.Transaction, error)
LiquidatePosition is a paid mutator transaction binding the contract method 0xde2ea948.
Solidity: function liquidatePosition(address _account, address _collateralToken, address _indexToken, bool _isLong, address _feeReceiver) returns()
func (*PositionManagerTransactor) Receive ¶
func (_PositionManager *PositionManagerTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*PositionManagerTransactor) SendValue ¶
func (_PositionManager *PositionManagerTransactor) SendValue(opts *bind.TransactOpts, _receiver common.Address, _amount *big.Int) (*types.Transaction, error)
SendValue is a paid mutator transaction binding the contract method 0x24a084df.
Solidity: function sendValue(address _receiver, uint256 _amount) returns()
func (*PositionManagerTransactor) SetAdmin ¶
func (_PositionManager *PositionManagerTransactor) SetAdmin(opts *bind.TransactOpts, _admin common.Address) (*types.Transaction, error)
SetAdmin is a paid mutator transaction binding the contract method 0x704b6c02.
Solidity: function setAdmin(address _admin) returns()
func (*PositionManagerTransactor) SetDepositFee ¶
func (_PositionManager *PositionManagerTransactor) SetDepositFee(opts *bind.TransactOpts, _depositFee *big.Int) (*types.Transaction, error)
SetDepositFee is a paid mutator transaction binding the contract method 0x490ae210.
Solidity: function setDepositFee(uint256 _depositFee) returns()
func (*PositionManagerTransactor) SetEthTransferGasLimit ¶
func (_PositionManager *PositionManagerTransactor) SetEthTransferGasLimit(opts *bind.TransactOpts, _ethTransferGasLimit *big.Int) (*types.Transaction, error)
SetEthTransferGasLimit is a paid mutator transaction binding the contract method 0x3a9b52ad.
Solidity: function setEthTransferGasLimit(uint256 _ethTransferGasLimit) returns()
func (*PositionManagerTransactor) SetGov ¶
func (_PositionManager *PositionManagerTransactor) SetGov(opts *bind.TransactOpts, _gov common.Address) (*types.Transaction, error)
SetGov is a paid mutator transaction binding the contract method 0xcfad57a2.
Solidity: function setGov(address _gov) returns()
func (*PositionManagerTransactor) SetInLegacyMode ¶
func (_PositionManager *PositionManagerTransactor) SetInLegacyMode(opts *bind.TransactOpts, _inLegacyMode bool) (*types.Transaction, error)
SetInLegacyMode is a paid mutator transaction binding the contract method 0x9c95332f.
Solidity: function setInLegacyMode(bool _inLegacyMode) returns()
func (*PositionManagerTransactor) SetIncreasePositionBufferBps ¶
func (_PositionManager *PositionManagerTransactor) SetIncreasePositionBufferBps(opts *bind.TransactOpts, _increasePositionBufferBps *big.Int) (*types.Transaction, error)
SetIncreasePositionBufferBps is a paid mutator transaction binding the contract method 0x233bfe3b.
Solidity: function setIncreasePositionBufferBps(uint256 _increasePositionBufferBps) returns()
func (*PositionManagerTransactor) SetLiquidator ¶
func (_PositionManager *PositionManagerTransactor) SetLiquidator(opts *bind.TransactOpts, _account common.Address, _isActive bool) (*types.Transaction, error)
SetLiquidator is a paid mutator transaction binding the contract method 0x4453a374.
Solidity: function setLiquidator(address _account, bool _isActive) returns()
func (*PositionManagerTransactor) SetMaxGlobalSizes ¶
func (_PositionManager *PositionManagerTransactor) SetMaxGlobalSizes(opts *bind.TransactOpts, _tokens []common.Address, _longSizes []*big.Int, _shortSizes []*big.Int) (*types.Transaction, error)
SetMaxGlobalSizes is a paid mutator transaction binding the contract method 0xef12c67e.
Solidity: function setMaxGlobalSizes(address[] _tokens, uint256[] _longSizes, uint256[] _shortSizes) returns()
func (*PositionManagerTransactor) SetOrderKeeper ¶
func (_PositionManager *PositionManagerTransactor) SetOrderKeeper(opts *bind.TransactOpts, _account common.Address, _isActive bool) (*types.Transaction, error)
SetOrderKeeper is a paid mutator transaction binding the contract method 0x1e261538.
Solidity: function setOrderKeeper(address _account, bool _isActive) returns()
func (*PositionManagerTransactor) SetPartner ¶
func (_PositionManager *PositionManagerTransactor) SetPartner(opts *bind.TransactOpts, _account common.Address, _isActive bool) (*types.Transaction, error)
SetPartner is a paid mutator transaction binding the contract method 0x21acf659.
Solidity: function setPartner(address _account, bool _isActive) returns()
func (*PositionManagerTransactor) SetReferralStorage ¶
func (_PositionManager *PositionManagerTransactor) SetReferralStorage(opts *bind.TransactOpts, _referralStorage common.Address) (*types.Transaction, error)
SetReferralStorage is a paid mutator transaction binding the contract method 0xae4d7f9a.
Solidity: function setReferralStorage(address _referralStorage) returns()
func (*PositionManagerTransactor) SetShouldValidateIncreaseOrder ¶
func (_PositionManager *PositionManagerTransactor) SetShouldValidateIncreaseOrder(opts *bind.TransactOpts, _shouldValidateIncreaseOrder bool) (*types.Transaction, error)
SetShouldValidateIncreaseOrder is a paid mutator transaction binding the contract method 0x1b904359.
Solidity: function setShouldValidateIncreaseOrder(bool _shouldValidateIncreaseOrder) returns()
func (*PositionManagerTransactor) WithdrawFees ¶
func (_PositionManager *PositionManagerTransactor) WithdrawFees(opts *bind.TransactOpts, _token common.Address, _receiver common.Address) (*types.Transaction, error)
WithdrawFees is a paid mutator transaction binding the contract method 0xf2555278.
Solidity: function withdrawFees(address _token, address _receiver) returns()
type PositionManagerTransactorRaw ¶
type PositionManagerTransactorRaw struct {
Contract *PositionManagerTransactor // Generic write-only contract binding to access the raw methods on
}
PositionManagerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*PositionManagerTransactorRaw) Transact ¶
func (_PositionManager *PositionManagerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*PositionManagerTransactorRaw) Transfer ¶
func (_PositionManager *PositionManagerTransactorRaw) 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 PositionManagerTransactorSession ¶
type PositionManagerTransactorSession struct { Contract *PositionManagerTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
PositionManagerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*PositionManagerTransactorSession) Approve ¶
func (_PositionManager *PositionManagerTransactorSession) Approve(_token common.Address, _spender common.Address, _amount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0xe1f21c67.
Solidity: function approve(address _token, address _spender, uint256 _amount) returns()
func (*PositionManagerTransactorSession) DecreasePosition ¶
func (_PositionManager *PositionManagerTransactorSession) DecreasePosition(_collateralToken common.Address, _indexToken common.Address, _collateralDelta *big.Int, _sizeDelta *big.Int, _isLong bool, _receiver common.Address, _price *big.Int) (*types.Transaction, error)
DecreasePosition is a paid mutator transaction binding the contract method 0x90205d8c.
Solidity: function decreasePosition(address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver, uint256 _price) returns()
func (*PositionManagerTransactorSession) DecreasePositionAndSwap ¶
func (_PositionManager *PositionManagerTransactorSession) DecreasePositionAndSwap(_path []common.Address, _indexToken common.Address, _collateralDelta *big.Int, _sizeDelta *big.Int, _isLong bool, _receiver common.Address, _price *big.Int, _minOut *big.Int) (*types.Transaction, error)
DecreasePositionAndSwap is a paid mutator transaction binding the contract method 0x5fc8500e.
Solidity: function decreasePositionAndSwap(address[] _path, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver, uint256 _price, uint256 _minOut) returns()
func (*PositionManagerTransactorSession) DecreasePositionAndSwapETH ¶
func (_PositionManager *PositionManagerTransactorSession) DecreasePositionAndSwapETH(_path []common.Address, _indexToken common.Address, _collateralDelta *big.Int, _sizeDelta *big.Int, _isLong bool, _receiver common.Address, _price *big.Int, _minOut *big.Int) (*types.Transaction, error)
DecreasePositionAndSwapETH is a paid mutator transaction binding the contract method 0x3039e37f.
Solidity: function decreasePositionAndSwapETH(address[] _path, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver, uint256 _price, uint256 _minOut) returns()
func (*PositionManagerTransactorSession) DecreasePositionETH ¶
func (_PositionManager *PositionManagerTransactorSession) DecreasePositionETH(_collateralToken common.Address, _indexToken common.Address, _collateralDelta *big.Int, _sizeDelta *big.Int, _isLong bool, _receiver common.Address, _price *big.Int) (*types.Transaction, error)
DecreasePositionETH is a paid mutator transaction binding the contract method 0x430ed37c.
Solidity: function decreasePositionETH(address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver, uint256 _price) returns()
func (*PositionManagerTransactorSession) ExecuteDecreaseOrder ¶
func (_PositionManager *PositionManagerTransactorSession) ExecuteDecreaseOrder(_account common.Address, _orderIndex *big.Int, _feeReceiver common.Address) (*types.Transaction, error)
ExecuteDecreaseOrder is a paid mutator transaction binding the contract method 0x11d9444a.
Solidity: function executeDecreaseOrder(address _account, uint256 _orderIndex, address _feeReceiver) returns()
func (*PositionManagerTransactorSession) ExecuteIncreaseOrder ¶
func (_PositionManager *PositionManagerTransactorSession) ExecuteIncreaseOrder(_account common.Address, _orderIndex *big.Int, _feeReceiver common.Address) (*types.Transaction, error)
ExecuteIncreaseOrder is a paid mutator transaction binding the contract method 0xd38ab519.
Solidity: function executeIncreaseOrder(address _account, uint256 _orderIndex, address _feeReceiver) returns()
func (*PositionManagerTransactorSession) ExecuteSwapOrder ¶
func (_PositionManager *PositionManagerTransactorSession) ExecuteSwapOrder(_account common.Address, _orderIndex *big.Int, _feeReceiver common.Address) (*types.Transaction, error)
ExecuteSwapOrder is a paid mutator transaction binding the contract method 0x07c7edc3.
Solidity: function executeSwapOrder(address _account, uint256 _orderIndex, address _feeReceiver) returns()
func (*PositionManagerTransactorSession) IncreasePosition ¶
func (_PositionManager *PositionManagerTransactorSession) IncreasePosition(_path []common.Address, _indexToken common.Address, _amountIn *big.Int, _minOut *big.Int, _sizeDelta *big.Int, _isLong bool, _price *big.Int) (*types.Transaction, error)
IncreasePosition is a paid mutator transaction binding the contract method 0xb7ddc992.
Solidity: function increasePosition(address[] _path, address _indexToken, uint256 _amountIn, uint256 _minOut, uint256 _sizeDelta, bool _isLong, uint256 _price) returns()
func (*PositionManagerTransactorSession) IncreasePositionETH ¶
func (_PositionManager *PositionManagerTransactorSession) IncreasePositionETH(_path []common.Address, _indexToken common.Address, _minOut *big.Int, _sizeDelta *big.Int, _isLong bool, _price *big.Int) (*types.Transaction, error)
IncreasePositionETH is a paid mutator transaction binding the contract method 0xb32755de.
Solidity: function increasePositionETH(address[] _path, address _indexToken, uint256 _minOut, uint256 _sizeDelta, bool _isLong, uint256 _price) payable returns()
func (*PositionManagerTransactorSession) LiquidatePosition ¶
func (_PositionManager *PositionManagerTransactorSession) LiquidatePosition(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _feeReceiver common.Address) (*types.Transaction, error)
LiquidatePosition is a paid mutator transaction binding the contract method 0xde2ea948.
Solidity: function liquidatePosition(address _account, address _collateralToken, address _indexToken, bool _isLong, address _feeReceiver) returns()
func (*PositionManagerTransactorSession) Receive ¶
func (_PositionManager *PositionManagerTransactorSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*PositionManagerTransactorSession) SendValue ¶
func (_PositionManager *PositionManagerTransactorSession) SendValue(_receiver common.Address, _amount *big.Int) (*types.Transaction, error)
SendValue is a paid mutator transaction binding the contract method 0x24a084df.
Solidity: function sendValue(address _receiver, uint256 _amount) returns()
func (*PositionManagerTransactorSession) SetAdmin ¶
func (_PositionManager *PositionManagerTransactorSession) SetAdmin(_admin common.Address) (*types.Transaction, error)
SetAdmin is a paid mutator transaction binding the contract method 0x704b6c02.
Solidity: function setAdmin(address _admin) returns()
func (*PositionManagerTransactorSession) SetDepositFee ¶
func (_PositionManager *PositionManagerTransactorSession) SetDepositFee(_depositFee *big.Int) (*types.Transaction, error)
SetDepositFee is a paid mutator transaction binding the contract method 0x490ae210.
Solidity: function setDepositFee(uint256 _depositFee) returns()
func (*PositionManagerTransactorSession) SetEthTransferGasLimit ¶
func (_PositionManager *PositionManagerTransactorSession) SetEthTransferGasLimit(_ethTransferGasLimit *big.Int) (*types.Transaction, error)
SetEthTransferGasLimit is a paid mutator transaction binding the contract method 0x3a9b52ad.
Solidity: function setEthTransferGasLimit(uint256 _ethTransferGasLimit) returns()
func (*PositionManagerTransactorSession) SetGov ¶
func (_PositionManager *PositionManagerTransactorSession) SetGov(_gov common.Address) (*types.Transaction, error)
SetGov is a paid mutator transaction binding the contract method 0xcfad57a2.
Solidity: function setGov(address _gov) returns()
func (*PositionManagerTransactorSession) SetInLegacyMode ¶
func (_PositionManager *PositionManagerTransactorSession) SetInLegacyMode(_inLegacyMode bool) (*types.Transaction, error)
SetInLegacyMode is a paid mutator transaction binding the contract method 0x9c95332f.
Solidity: function setInLegacyMode(bool _inLegacyMode) returns()
func (*PositionManagerTransactorSession) SetIncreasePositionBufferBps ¶
func (_PositionManager *PositionManagerTransactorSession) SetIncreasePositionBufferBps(_increasePositionBufferBps *big.Int) (*types.Transaction, error)
SetIncreasePositionBufferBps is a paid mutator transaction binding the contract method 0x233bfe3b.
Solidity: function setIncreasePositionBufferBps(uint256 _increasePositionBufferBps) returns()
func (*PositionManagerTransactorSession) SetLiquidator ¶
func (_PositionManager *PositionManagerTransactorSession) SetLiquidator(_account common.Address, _isActive bool) (*types.Transaction, error)
SetLiquidator is a paid mutator transaction binding the contract method 0x4453a374.
Solidity: function setLiquidator(address _account, bool _isActive) returns()
func (*PositionManagerTransactorSession) SetMaxGlobalSizes ¶
func (_PositionManager *PositionManagerTransactorSession) SetMaxGlobalSizes(_tokens []common.Address, _longSizes []*big.Int, _shortSizes []*big.Int) (*types.Transaction, error)
SetMaxGlobalSizes is a paid mutator transaction binding the contract method 0xef12c67e.
Solidity: function setMaxGlobalSizes(address[] _tokens, uint256[] _longSizes, uint256[] _shortSizes) returns()
func (*PositionManagerTransactorSession) SetOrderKeeper ¶
func (_PositionManager *PositionManagerTransactorSession) SetOrderKeeper(_account common.Address, _isActive bool) (*types.Transaction, error)
SetOrderKeeper is a paid mutator transaction binding the contract method 0x1e261538.
Solidity: function setOrderKeeper(address _account, bool _isActive) returns()
func (*PositionManagerTransactorSession) SetPartner ¶
func (_PositionManager *PositionManagerTransactorSession) SetPartner(_account common.Address, _isActive bool) (*types.Transaction, error)
SetPartner is a paid mutator transaction binding the contract method 0x21acf659.
Solidity: function setPartner(address _account, bool _isActive) returns()
func (*PositionManagerTransactorSession) SetReferralStorage ¶
func (_PositionManager *PositionManagerTransactorSession) SetReferralStorage(_referralStorage common.Address) (*types.Transaction, error)
SetReferralStorage is a paid mutator transaction binding the contract method 0xae4d7f9a.
Solidity: function setReferralStorage(address _referralStorage) returns()
func (*PositionManagerTransactorSession) SetShouldValidateIncreaseOrder ¶
func (_PositionManager *PositionManagerTransactorSession) SetShouldValidateIncreaseOrder(_shouldValidateIncreaseOrder bool) (*types.Transaction, error)
SetShouldValidateIncreaseOrder is a paid mutator transaction binding the contract method 0x1b904359.
Solidity: function setShouldValidateIncreaseOrder(bool _shouldValidateIncreaseOrder) returns()
func (*PositionManagerTransactorSession) WithdrawFees ¶
func (_PositionManager *PositionManagerTransactorSession) WithdrawFees(_token common.Address, _receiver common.Address) (*types.Transaction, error)
WithdrawFees is a paid mutator transaction binding the contract method 0xf2555278.
Solidity: function withdrawFees(address _token, address _receiver) returns()
type PositionManagerWithdrawFees ¶
type PositionManagerWithdrawFees struct { Token common.Address Receiver common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
PositionManagerWithdrawFees represents a WithdrawFees event raised by the PositionManager contract.
type PositionManagerWithdrawFeesIterator ¶
type PositionManagerWithdrawFeesIterator struct { Event *PositionManagerWithdrawFees // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PositionManagerWithdrawFeesIterator is returned from FilterWithdrawFees and is used to iterate over the raw logs and unpacked data for WithdrawFees events raised by the PositionManager contract.
func (*PositionManagerWithdrawFeesIterator) Close ¶
func (it *PositionManagerWithdrawFeesIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PositionManagerWithdrawFeesIterator) Error ¶
func (it *PositionManagerWithdrawFeesIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PositionManagerWithdrawFeesIterator) Next ¶
func (it *PositionManagerWithdrawFeesIterator) 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.