Versions in this module Expand all Collapse all v0 v0.0.1 Dec 9, 2023 Changes in this version + var SyntheticsRouterABI = SyntheticsRouterMetaData.ABI + var SyntheticsRouterMetaData = &bind.MetaData + type SyntheticsRouter struct + func NewSyntheticsRouter(address common.Address, backend bind.ContractBackend) (*SyntheticsRouter, error) + type SyntheticsRouterCaller struct + func NewSyntheticsRouterCaller(address common.Address, caller bind.ContractCaller) (*SyntheticsRouterCaller, error) + func (_SyntheticsRouter *SyntheticsRouterCaller) ApprovedPlugins(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (bool, error) + func (_SyntheticsRouter *SyntheticsRouterCaller) Gov(opts *bind.CallOpts) (common.Address, error) + func (_SyntheticsRouter *SyntheticsRouterCaller) Plugins(opts *bind.CallOpts, arg0 common.Address) (bool, error) + func (_SyntheticsRouter *SyntheticsRouterCaller) Usdg(opts *bind.CallOpts) (common.Address, error) + func (_SyntheticsRouter *SyntheticsRouterCaller) Vault(opts *bind.CallOpts) (common.Address, error) + func (_SyntheticsRouter *SyntheticsRouterCaller) Weth(opts *bind.CallOpts) (common.Address, error) + type SyntheticsRouterCallerRaw struct + Contract *SyntheticsRouterCaller + func (_SyntheticsRouter *SyntheticsRouterCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + type SyntheticsRouterCallerSession struct + CallOpts bind.CallOpts + Contract *SyntheticsRouterCaller + func (_SyntheticsRouter *SyntheticsRouterCallerSession) ApprovedPlugins(arg0 common.Address, arg1 common.Address) (bool, error) + func (_SyntheticsRouter *SyntheticsRouterCallerSession) Gov() (common.Address, error) + func (_SyntheticsRouter *SyntheticsRouterCallerSession) Plugins(arg0 common.Address) (bool, error) + func (_SyntheticsRouter *SyntheticsRouterCallerSession) Usdg() (common.Address, error) + func (_SyntheticsRouter *SyntheticsRouterCallerSession) Vault() (common.Address, error) + func (_SyntheticsRouter *SyntheticsRouterCallerSession) Weth() (common.Address, error) + type SyntheticsRouterFilterer struct + func NewSyntheticsRouterFilterer(address common.Address, filterer bind.ContractFilterer) (*SyntheticsRouterFilterer, error) + func (_SyntheticsRouter *SyntheticsRouterFilterer) FilterSwap(opts *bind.FilterOpts) (*SyntheticsRouterSwapIterator, error) + func (_SyntheticsRouter *SyntheticsRouterFilterer) ParseSwap(log types.Log) (*SyntheticsRouterSwap, error) + func (_SyntheticsRouter *SyntheticsRouterFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *SyntheticsRouterSwap) (event.Subscription, error) + type SyntheticsRouterRaw struct + Contract *SyntheticsRouter + func (_SyntheticsRouter *SyntheticsRouterRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + func (_SyntheticsRouter *SyntheticsRouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type SyntheticsRouterSession struct + CallOpts bind.CallOpts + Contract *SyntheticsRouter + TransactOpts bind.TransactOpts + func (_SyntheticsRouter *SyntheticsRouterSession) AddPlugin(_plugin common.Address) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterSession) ApprovePlugin(_plugin common.Address) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterSession) ApprovedPlugins(arg0 common.Address, arg1 common.Address) (bool, error) + func (_SyntheticsRouter *SyntheticsRouterSession) DecreasePosition(_collateralToken common.Address, _indexToken common.Address, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterSession) DecreasePositionAndSwap(_path []common.Address, _indexToken common.Address, _collateralDelta *big.Int, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterSession) DecreasePositionAndSwapETH(_path []common.Address, _indexToken common.Address, _collateralDelta *big.Int, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterSession) DecreasePositionETH(_collateralToken common.Address, _indexToken common.Address, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterSession) DenyPlugin(_plugin common.Address) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterSession) DirectPoolDeposit(_token common.Address, _amount *big.Int) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterSession) Gov() (common.Address, error) + func (_SyntheticsRouter *SyntheticsRouterSession) IncreasePosition(_path []common.Address, _indexToken common.Address, _amountIn *big.Int, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterSession) IncreasePositionETH(_path []common.Address, _indexToken common.Address, _minOut *big.Int, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterSession) PluginDecreasePosition(_account common.Address, _collateralToken common.Address, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterSession) PluginIncreasePosition(_account common.Address, _collateralToken common.Address, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterSession) PluginTransfer(_token common.Address, _account common.Address, _receiver common.Address, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterSession) Plugins(arg0 common.Address) (bool, error) + func (_SyntheticsRouter *SyntheticsRouterSession) Receive() (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterSession) RemovePlugin(_plugin common.Address) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterSession) SetGov(_gov common.Address) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterSession) Swap(_path []common.Address, _amountIn *big.Int, _minOut *big.Int, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterSession) SwapETHToTokens(_path []common.Address, _minOut *big.Int, _receiver common.Address) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterSession) SwapTokensToETH(_path []common.Address, _amountIn *big.Int, _minOut *big.Int, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterSession) Usdg() (common.Address, error) + func (_SyntheticsRouter *SyntheticsRouterSession) Vault() (common.Address, error) + func (_SyntheticsRouter *SyntheticsRouterSession) Weth() (common.Address, error) + type SyntheticsRouterSwap struct + Account common.Address + AmountIn *big.Int + AmountOut *big.Int + Raw types.Log + TokenIn common.Address + TokenOut common.Address + type SyntheticsRouterSwapIterator struct + Event *SyntheticsRouterSwap + func (it *SyntheticsRouterSwapIterator) Close() error + func (it *SyntheticsRouterSwapIterator) Error() error + func (it *SyntheticsRouterSwapIterator) Next() bool + type SyntheticsRouterTransactor struct + func NewSyntheticsRouterTransactor(address common.Address, transactor bind.ContractTransactor) (*SyntheticsRouterTransactor, error) + func (_SyntheticsRouter *SyntheticsRouterTransactor) AddPlugin(opts *bind.TransactOpts, _plugin common.Address) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactor) ApprovePlugin(opts *bind.TransactOpts, _plugin common.Address) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactor) DecreasePosition(opts *bind.TransactOpts, _collateralToken common.Address, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactor) DecreasePositionAndSwap(opts *bind.TransactOpts, _path []common.Address, _indexToken common.Address, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactor) DecreasePositionAndSwapETH(opts *bind.TransactOpts, _path []common.Address, _indexToken common.Address, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactor) DecreasePositionETH(opts *bind.TransactOpts, _collateralToken common.Address, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactor) DenyPlugin(opts *bind.TransactOpts, _plugin common.Address) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactor) DirectPoolDeposit(opts *bind.TransactOpts, _token common.Address, _amount *big.Int) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactor) IncreasePosition(opts *bind.TransactOpts, _path []common.Address, _indexToken common.Address, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactor) IncreasePositionETH(opts *bind.TransactOpts, _path []common.Address, _indexToken common.Address, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactor) PluginDecreasePosition(opts *bind.TransactOpts, _account common.Address, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactor) PluginIncreasePosition(opts *bind.TransactOpts, _account common.Address, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactor) PluginTransfer(opts *bind.TransactOpts, _token common.Address, _account common.Address, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactor) RemovePlugin(opts *bind.TransactOpts, _plugin common.Address) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactor) SetGov(opts *bind.TransactOpts, _gov common.Address) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactor) Swap(opts *bind.TransactOpts, _path []common.Address, _amountIn *big.Int, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactor) SwapETHToTokens(opts *bind.TransactOpts, _path []common.Address, _minOut *big.Int, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactor) SwapTokensToETH(opts *bind.TransactOpts, _path []common.Address, _amountIn *big.Int, ...) (*types.Transaction, error) + type SyntheticsRouterTransactorRaw struct + Contract *SyntheticsRouterTransactor + func (_SyntheticsRouter *SyntheticsRouterTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type SyntheticsRouterTransactorSession struct + Contract *SyntheticsRouterTransactor + TransactOpts bind.TransactOpts + func (_SyntheticsRouter *SyntheticsRouterTransactorSession) AddPlugin(_plugin common.Address) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactorSession) ApprovePlugin(_plugin common.Address) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactorSession) DecreasePosition(_collateralToken common.Address, _indexToken common.Address, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactorSession) DecreasePositionAndSwap(_path []common.Address, _indexToken common.Address, _collateralDelta *big.Int, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactorSession) DecreasePositionAndSwapETH(_path []common.Address, _indexToken common.Address, _collateralDelta *big.Int, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactorSession) DecreasePositionETH(_collateralToken common.Address, _indexToken common.Address, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactorSession) DenyPlugin(_plugin common.Address) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactorSession) DirectPoolDeposit(_token common.Address, _amount *big.Int) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactorSession) IncreasePosition(_path []common.Address, _indexToken common.Address, _amountIn *big.Int, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactorSession) IncreasePositionETH(_path []common.Address, _indexToken common.Address, _minOut *big.Int, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactorSession) PluginDecreasePosition(_account common.Address, _collateralToken common.Address, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactorSession) PluginIncreasePosition(_account common.Address, _collateralToken common.Address, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactorSession) PluginTransfer(_token common.Address, _account common.Address, _receiver common.Address, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactorSession) Receive() (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactorSession) RemovePlugin(_plugin common.Address) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactorSession) SetGov(_gov common.Address) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactorSession) Swap(_path []common.Address, _amountIn *big.Int, _minOut *big.Int, ...) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactorSession) SwapETHToTokens(_path []common.Address, _minOut *big.Int, _receiver common.Address) (*types.Transaction, error) + func (_SyntheticsRouter *SyntheticsRouterTransactorSession) SwapTokensToETH(_path []common.Address, _amountIn *big.Int, _minOut *big.Int, ...) (*types.Transaction, error)