Versions in this module Expand all Collapse all v0 v0.0.1 Dec 9, 2023 Changes in this version + var RouterABI = RouterMetaData.ABI + var RouterMetaData = &bind.MetaData + type Router struct + func NewRouter(address common.Address, backend bind.ContractBackend) (*Router, error) + type RouterCaller struct + func NewRouterCaller(address common.Address, caller bind.ContractCaller) (*RouterCaller, error) + func (_Router *RouterCaller) ApprovedPlugins(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (bool, error) + func (_Router *RouterCaller) Gov(opts *bind.CallOpts) (common.Address, error) + func (_Router *RouterCaller) Plugins(opts *bind.CallOpts, arg0 common.Address) (bool, error) + func (_Router *RouterCaller) Usdg(opts *bind.CallOpts) (common.Address, error) + func (_Router *RouterCaller) Vault(opts *bind.CallOpts) (common.Address, error) + func (_Router *RouterCaller) Weth(opts *bind.CallOpts) (common.Address, error) + type RouterCallerRaw struct + Contract *RouterCaller + func (_Router *RouterCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + type RouterCallerSession struct + CallOpts bind.CallOpts + Contract *RouterCaller + func (_Router *RouterCallerSession) ApprovedPlugins(arg0 common.Address, arg1 common.Address) (bool, error) + func (_Router *RouterCallerSession) Gov() (common.Address, error) + func (_Router *RouterCallerSession) Plugins(arg0 common.Address) (bool, error) + func (_Router *RouterCallerSession) Usdg() (common.Address, error) + func (_Router *RouterCallerSession) Vault() (common.Address, error) + func (_Router *RouterCallerSession) Weth() (common.Address, error) + type RouterFilterer struct + func NewRouterFilterer(address common.Address, filterer bind.ContractFilterer) (*RouterFilterer, error) + func (_Router *RouterFilterer) FilterSwap(opts *bind.FilterOpts) (*RouterSwapIterator, error) + func (_Router *RouterFilterer) ParseSwap(log types.Log) (*RouterSwap, error) + func (_Router *RouterFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *RouterSwap) (event.Subscription, error) + type RouterRaw struct + Contract *Router + func (_Router *RouterRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + func (_Router *RouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Router *RouterRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type RouterSession struct + CallOpts bind.CallOpts + Contract *Router + TransactOpts bind.TransactOpts + func (_Router *RouterSession) AddPlugin(_plugin common.Address) (*types.Transaction, error) + func (_Router *RouterSession) ApprovePlugin(_plugin common.Address) (*types.Transaction, error) + func (_Router *RouterSession) ApprovedPlugins(arg0 common.Address, arg1 common.Address) (bool, error) + func (_Router *RouterSession) DecreasePosition(_collateralToken common.Address, _indexToken common.Address, ...) (*types.Transaction, error) + func (_Router *RouterSession) DecreasePositionAndSwap(_path []common.Address, _indexToken common.Address, _collateralDelta *big.Int, ...) (*types.Transaction, error) + func (_Router *RouterSession) DecreasePositionAndSwapETH(_path []common.Address, _indexToken common.Address, _collateralDelta *big.Int, ...) (*types.Transaction, error) + func (_Router *RouterSession) DecreasePositionETH(_collateralToken common.Address, _indexToken common.Address, ...) (*types.Transaction, error) + func (_Router *RouterSession) DenyPlugin(_plugin common.Address) (*types.Transaction, error) + func (_Router *RouterSession) DirectPoolDeposit(_token common.Address, _amount *big.Int) (*types.Transaction, error) + func (_Router *RouterSession) Gov() (common.Address, error) + func (_Router *RouterSession) IncreasePosition(_path []common.Address, _indexToken common.Address, _amountIn *big.Int, ...) (*types.Transaction, error) + func (_Router *RouterSession) IncreasePositionETH(_path []common.Address, _indexToken common.Address, _minOut *big.Int, ...) (*types.Transaction, error) + func (_Router *RouterSession) PluginDecreasePosition(_account common.Address, _collateralToken common.Address, ...) (*types.Transaction, error) + func (_Router *RouterSession) PluginIncreasePosition(_account common.Address, _collateralToken common.Address, ...) (*types.Transaction, error) + func (_Router *RouterSession) PluginTransfer(_token common.Address, _account common.Address, _receiver common.Address, ...) (*types.Transaction, error) + func (_Router *RouterSession) Plugins(arg0 common.Address) (bool, error) + func (_Router *RouterSession) Receive() (*types.Transaction, error) + func (_Router *RouterSession) RemovePlugin(_plugin common.Address) (*types.Transaction, error) + func (_Router *RouterSession) SetGov(_gov common.Address) (*types.Transaction, error) + func (_Router *RouterSession) Swap(_path []common.Address, _amountIn *big.Int, _minOut *big.Int, ...) (*types.Transaction, error) + func (_Router *RouterSession) SwapETHToTokens(_path []common.Address, _minOut *big.Int, _receiver common.Address) (*types.Transaction, error) + func (_Router *RouterSession) SwapTokensToETH(_path []common.Address, _amountIn *big.Int, _minOut *big.Int, ...) (*types.Transaction, error) + func (_Router *RouterSession) Usdg() (common.Address, error) + func (_Router *RouterSession) Vault() (common.Address, error) + func (_Router *RouterSession) Weth() (common.Address, error) + type RouterSwap struct + Account common.Address + AmountIn *big.Int + AmountOut *big.Int + Raw types.Log + TokenIn common.Address + TokenOut common.Address + type RouterSwapIterator struct + Event *RouterSwap + func (it *RouterSwapIterator) Close() error + func (it *RouterSwapIterator) Error() error + func (it *RouterSwapIterator) Next() bool + type RouterTransactor struct + func NewRouterTransactor(address common.Address, transactor bind.ContractTransactor) (*RouterTransactor, error) + func (_Router *RouterTransactor) AddPlugin(opts *bind.TransactOpts, _plugin common.Address) (*types.Transaction, error) + func (_Router *RouterTransactor) ApprovePlugin(opts *bind.TransactOpts, _plugin common.Address) (*types.Transaction, error) + func (_Router *RouterTransactor) DecreasePosition(opts *bind.TransactOpts, _collateralToken common.Address, ...) (*types.Transaction, error) + func (_Router *RouterTransactor) DecreasePositionAndSwap(opts *bind.TransactOpts, _path []common.Address, _indexToken common.Address, ...) (*types.Transaction, error) + func (_Router *RouterTransactor) DecreasePositionAndSwapETH(opts *bind.TransactOpts, _path []common.Address, _indexToken common.Address, ...) (*types.Transaction, error) + func (_Router *RouterTransactor) DecreasePositionETH(opts *bind.TransactOpts, _collateralToken common.Address, ...) (*types.Transaction, error) + func (_Router *RouterTransactor) DenyPlugin(opts *bind.TransactOpts, _plugin common.Address) (*types.Transaction, error) + func (_Router *RouterTransactor) DirectPoolDeposit(opts *bind.TransactOpts, _token common.Address, _amount *big.Int) (*types.Transaction, error) + func (_Router *RouterTransactor) IncreasePosition(opts *bind.TransactOpts, _path []common.Address, _indexToken common.Address, ...) (*types.Transaction, error) + func (_Router *RouterTransactor) IncreasePositionETH(opts *bind.TransactOpts, _path []common.Address, _indexToken common.Address, ...) (*types.Transaction, error) + func (_Router *RouterTransactor) PluginDecreasePosition(opts *bind.TransactOpts, _account common.Address, ...) (*types.Transaction, error) + func (_Router *RouterTransactor) PluginIncreasePosition(opts *bind.TransactOpts, _account common.Address, ...) (*types.Transaction, error) + func (_Router *RouterTransactor) PluginTransfer(opts *bind.TransactOpts, _token common.Address, _account common.Address, ...) (*types.Transaction, error) + func (_Router *RouterTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) + func (_Router *RouterTransactor) RemovePlugin(opts *bind.TransactOpts, _plugin common.Address) (*types.Transaction, error) + func (_Router *RouterTransactor) SetGov(opts *bind.TransactOpts, _gov common.Address) (*types.Transaction, error) + func (_Router *RouterTransactor) Swap(opts *bind.TransactOpts, _path []common.Address, _amountIn *big.Int, ...) (*types.Transaction, error) + func (_Router *RouterTransactor) SwapETHToTokens(opts *bind.TransactOpts, _path []common.Address, _minOut *big.Int, ...) (*types.Transaction, error) + func (_Router *RouterTransactor) SwapTokensToETH(opts *bind.TransactOpts, _path []common.Address, _amountIn *big.Int, ...) (*types.Transaction, error) + type RouterTransactorRaw struct + Contract *RouterTransactor + func (_Router *RouterTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Router *RouterTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type RouterTransactorSession struct + Contract *RouterTransactor + TransactOpts bind.TransactOpts + func (_Router *RouterTransactorSession) AddPlugin(_plugin common.Address) (*types.Transaction, error) + func (_Router *RouterTransactorSession) ApprovePlugin(_plugin common.Address) (*types.Transaction, error) + func (_Router *RouterTransactorSession) DecreasePosition(_collateralToken common.Address, _indexToken common.Address, ...) (*types.Transaction, error) + func (_Router *RouterTransactorSession) DecreasePositionAndSwap(_path []common.Address, _indexToken common.Address, _collateralDelta *big.Int, ...) (*types.Transaction, error) + func (_Router *RouterTransactorSession) DecreasePositionAndSwapETH(_path []common.Address, _indexToken common.Address, _collateralDelta *big.Int, ...) (*types.Transaction, error) + func (_Router *RouterTransactorSession) DecreasePositionETH(_collateralToken common.Address, _indexToken common.Address, ...) (*types.Transaction, error) + func (_Router *RouterTransactorSession) DenyPlugin(_plugin common.Address) (*types.Transaction, error) + func (_Router *RouterTransactorSession) DirectPoolDeposit(_token common.Address, _amount *big.Int) (*types.Transaction, error) + func (_Router *RouterTransactorSession) IncreasePosition(_path []common.Address, _indexToken common.Address, _amountIn *big.Int, ...) (*types.Transaction, error) + func (_Router *RouterTransactorSession) IncreasePositionETH(_path []common.Address, _indexToken common.Address, _minOut *big.Int, ...) (*types.Transaction, error) + func (_Router *RouterTransactorSession) PluginDecreasePosition(_account common.Address, _collateralToken common.Address, ...) (*types.Transaction, error) + func (_Router *RouterTransactorSession) PluginIncreasePosition(_account common.Address, _collateralToken common.Address, ...) (*types.Transaction, error) + func (_Router *RouterTransactorSession) PluginTransfer(_token common.Address, _account common.Address, _receiver common.Address, ...) (*types.Transaction, error) + func (_Router *RouterTransactorSession) Receive() (*types.Transaction, error) + func (_Router *RouterTransactorSession) RemovePlugin(_plugin common.Address) (*types.Transaction, error) + func (_Router *RouterTransactorSession) SetGov(_gov common.Address) (*types.Transaction, error) + func (_Router *RouterTransactorSession) Swap(_path []common.Address, _amountIn *big.Int, _minOut *big.Int, ...) (*types.Transaction, error) + func (_Router *RouterTransactorSession) SwapETHToTokens(_path []common.Address, _minOut *big.Int, _receiver common.Address) (*types.Transaction, error) + func (_Router *RouterTransactorSession) SwapTokensToETH(_path []common.Address, _amountIn *big.Int, _minOut *big.Int, ...) (*types.Transaction, error)