Versions in this module Expand all Collapse all v0 v0.0.1 Dec 9, 2023 Changes in this version + var Routerv2ABI = Routerv2MetaData.ABI + var Routerv2MetaData = &bind.MetaData + type Routerv2 struct + func NewRouterv2(address common.Address, backend bind.ContractBackend) (*Routerv2, error) + type Routerv2Caller struct + func NewRouterv2Caller(address common.Address, caller bind.ContractCaller) (*Routerv2Caller, error) + func (_Routerv2 *Routerv2Caller) ApprovedPlugins(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (bool, error) + func (_Routerv2 *Routerv2Caller) Gov(opts *bind.CallOpts) (common.Address, error) + func (_Routerv2 *Routerv2Caller) Plugins(opts *bind.CallOpts, arg0 common.Address) (bool, error) + func (_Routerv2 *Routerv2Caller) Usdg(opts *bind.CallOpts) (common.Address, error) + func (_Routerv2 *Routerv2Caller) Vault(opts *bind.CallOpts) (common.Address, error) + func (_Routerv2 *Routerv2Caller) Weth(opts *bind.CallOpts) (common.Address, error) + type Routerv2CallerRaw struct + Contract *Routerv2Caller + func (_Routerv2 *Routerv2CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + type Routerv2CallerSession struct + CallOpts bind.CallOpts + Contract *Routerv2Caller + func (_Routerv2 *Routerv2CallerSession) ApprovedPlugins(arg0 common.Address, arg1 common.Address) (bool, error) + func (_Routerv2 *Routerv2CallerSession) Gov() (common.Address, error) + func (_Routerv2 *Routerv2CallerSession) Plugins(arg0 common.Address) (bool, error) + func (_Routerv2 *Routerv2CallerSession) Usdg() (common.Address, error) + func (_Routerv2 *Routerv2CallerSession) Vault() (common.Address, error) + func (_Routerv2 *Routerv2CallerSession) Weth() (common.Address, error) + type Routerv2Filterer struct + func NewRouterv2Filterer(address common.Address, filterer bind.ContractFilterer) (*Routerv2Filterer, error) + func (_Routerv2 *Routerv2Filterer) FilterSwap(opts *bind.FilterOpts) (*Routerv2SwapIterator, error) + func (_Routerv2 *Routerv2Filterer) ParseSwap(log types.Log) (*Routerv2Swap, error) + func (_Routerv2 *Routerv2Filterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *Routerv2Swap) (event.Subscription, error) + type Routerv2Raw struct + Contract *Routerv2 + func (_Routerv2 *Routerv2Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + func (_Routerv2 *Routerv2Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Routerv2 *Routerv2Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type Routerv2Session struct + CallOpts bind.CallOpts + Contract *Routerv2 + TransactOpts bind.TransactOpts + func (_Routerv2 *Routerv2Session) AddPlugin(_plugin common.Address) (*types.Transaction, error) + func (_Routerv2 *Routerv2Session) ApprovePlugin(_plugin common.Address) (*types.Transaction, error) + func (_Routerv2 *Routerv2Session) ApprovedPlugins(arg0 common.Address, arg1 common.Address) (bool, error) + func (_Routerv2 *Routerv2Session) DecreasePosition(_collateralToken common.Address, _indexToken common.Address, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2Session) DecreasePositionAndSwap(_path []common.Address, _indexToken common.Address, _collateralDelta *big.Int, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2Session) DecreasePositionAndSwapETH(_path []common.Address, _indexToken common.Address, _collateralDelta *big.Int, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2Session) DecreasePositionETH(_collateralToken common.Address, _indexToken common.Address, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2Session) DenyPlugin(_plugin common.Address) (*types.Transaction, error) + func (_Routerv2 *Routerv2Session) DirectPoolDeposit(_token common.Address, _amount *big.Int) (*types.Transaction, error) + func (_Routerv2 *Routerv2Session) Gov() (common.Address, error) + func (_Routerv2 *Routerv2Session) IncreasePosition(_path []common.Address, _indexToken common.Address, _amountIn *big.Int, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2Session) IncreasePositionETH(_path []common.Address, _indexToken common.Address, _minOut *big.Int, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2Session) PluginDecreasePosition(_account common.Address, _collateralToken common.Address, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2Session) PluginIncreasePosition(_account common.Address, _collateralToken common.Address, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2Session) PluginTransfer(_token common.Address, _account common.Address, _receiver common.Address, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2Session) Plugins(arg0 common.Address) (bool, error) + func (_Routerv2 *Routerv2Session) Receive() (*types.Transaction, error) + func (_Routerv2 *Routerv2Session) RemovePlugin(_plugin common.Address) (*types.Transaction, error) + func (_Routerv2 *Routerv2Session) SetGov(_gov common.Address) (*types.Transaction, error) + func (_Routerv2 *Routerv2Session) Swap(_path []common.Address, _amountIn *big.Int, _minOut *big.Int, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2Session) SwapETHToTokens(_path []common.Address, _minOut *big.Int, _receiver common.Address) (*types.Transaction, error) + func (_Routerv2 *Routerv2Session) SwapTokensToETH(_path []common.Address, _amountIn *big.Int, _minOut *big.Int, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2Session) Usdg() (common.Address, error) + func (_Routerv2 *Routerv2Session) Vault() (common.Address, error) + func (_Routerv2 *Routerv2Session) Weth() (common.Address, error) + type Routerv2Swap struct + Account common.Address + AmountIn *big.Int + AmountOut *big.Int + Raw types.Log + TokenIn common.Address + TokenOut common.Address + type Routerv2SwapIterator struct + Event *Routerv2Swap + func (it *Routerv2SwapIterator) Close() error + func (it *Routerv2SwapIterator) Error() error + func (it *Routerv2SwapIterator) Next() bool + type Routerv2Transactor struct + func NewRouterv2Transactor(address common.Address, transactor bind.ContractTransactor) (*Routerv2Transactor, error) + func (_Routerv2 *Routerv2Transactor) AddPlugin(opts *bind.TransactOpts, _plugin common.Address) (*types.Transaction, error) + func (_Routerv2 *Routerv2Transactor) ApprovePlugin(opts *bind.TransactOpts, _plugin common.Address) (*types.Transaction, error) + func (_Routerv2 *Routerv2Transactor) DecreasePosition(opts *bind.TransactOpts, _collateralToken common.Address, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2Transactor) DecreasePositionAndSwap(opts *bind.TransactOpts, _path []common.Address, _indexToken common.Address, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2Transactor) DecreasePositionAndSwapETH(opts *bind.TransactOpts, _path []common.Address, _indexToken common.Address, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2Transactor) DecreasePositionETH(opts *bind.TransactOpts, _collateralToken common.Address, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2Transactor) DenyPlugin(opts *bind.TransactOpts, _plugin common.Address) (*types.Transaction, error) + func (_Routerv2 *Routerv2Transactor) DirectPoolDeposit(opts *bind.TransactOpts, _token common.Address, _amount *big.Int) (*types.Transaction, error) + func (_Routerv2 *Routerv2Transactor) IncreasePosition(opts *bind.TransactOpts, _path []common.Address, _indexToken common.Address, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2Transactor) IncreasePositionETH(opts *bind.TransactOpts, _path []common.Address, _indexToken common.Address, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2Transactor) PluginDecreasePosition(opts *bind.TransactOpts, _account common.Address, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2Transactor) PluginIncreasePosition(opts *bind.TransactOpts, _account common.Address, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2Transactor) PluginTransfer(opts *bind.TransactOpts, _token common.Address, _account common.Address, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2Transactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) + func (_Routerv2 *Routerv2Transactor) RemovePlugin(opts *bind.TransactOpts, _plugin common.Address) (*types.Transaction, error) + func (_Routerv2 *Routerv2Transactor) SetGov(opts *bind.TransactOpts, _gov common.Address) (*types.Transaction, error) + func (_Routerv2 *Routerv2Transactor) Swap(opts *bind.TransactOpts, _path []common.Address, _amountIn *big.Int, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2Transactor) SwapETHToTokens(opts *bind.TransactOpts, _path []common.Address, _minOut *big.Int, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2Transactor) SwapTokensToETH(opts *bind.TransactOpts, _path []common.Address, _amountIn *big.Int, ...) (*types.Transaction, error) + type Routerv2TransactorRaw struct + Contract *Routerv2Transactor + func (_Routerv2 *Routerv2TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Routerv2 *Routerv2TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type Routerv2TransactorSession struct + Contract *Routerv2Transactor + TransactOpts bind.TransactOpts + func (_Routerv2 *Routerv2TransactorSession) AddPlugin(_plugin common.Address) (*types.Transaction, error) + func (_Routerv2 *Routerv2TransactorSession) ApprovePlugin(_plugin common.Address) (*types.Transaction, error) + func (_Routerv2 *Routerv2TransactorSession) DecreasePosition(_collateralToken common.Address, _indexToken common.Address, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2TransactorSession) DecreasePositionAndSwap(_path []common.Address, _indexToken common.Address, _collateralDelta *big.Int, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2TransactorSession) DecreasePositionAndSwapETH(_path []common.Address, _indexToken common.Address, _collateralDelta *big.Int, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2TransactorSession) DecreasePositionETH(_collateralToken common.Address, _indexToken common.Address, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2TransactorSession) DenyPlugin(_plugin common.Address) (*types.Transaction, error) + func (_Routerv2 *Routerv2TransactorSession) DirectPoolDeposit(_token common.Address, _amount *big.Int) (*types.Transaction, error) + func (_Routerv2 *Routerv2TransactorSession) IncreasePosition(_path []common.Address, _indexToken common.Address, _amountIn *big.Int, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2TransactorSession) IncreasePositionETH(_path []common.Address, _indexToken common.Address, _minOut *big.Int, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2TransactorSession) PluginDecreasePosition(_account common.Address, _collateralToken common.Address, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2TransactorSession) PluginIncreasePosition(_account common.Address, _collateralToken common.Address, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2TransactorSession) PluginTransfer(_token common.Address, _account common.Address, _receiver common.Address, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2TransactorSession) Receive() (*types.Transaction, error) + func (_Routerv2 *Routerv2TransactorSession) RemovePlugin(_plugin common.Address) (*types.Transaction, error) + func (_Routerv2 *Routerv2TransactorSession) SetGov(_gov common.Address) (*types.Transaction, error) + func (_Routerv2 *Routerv2TransactorSession) Swap(_path []common.Address, _amountIn *big.Int, _minOut *big.Int, ...) (*types.Transaction, error) + func (_Routerv2 *Routerv2TransactorSession) SwapETHToTokens(_path []common.Address, _minOut *big.Int, _receiver common.Address) (*types.Transaction, error) + func (_Routerv2 *Routerv2TransactorSession) SwapTokensToETH(_path []common.Address, _amountIn *big.Int, _minOut *big.Int, ...) (*types.Transaction, error)