Routerv2

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Routerv2ABI = Routerv2MetaData.ABI

Routerv2ABI is the input ABI used to generate the binding from. Deprecated: Use Routerv2MetaData.ABI instead.

View Source
var Routerv2MetaData = &bind.MetaData{
	ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_vault\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_usdg\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_weth\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"addPlugin\",\"inputs\":[{\"name\":\"_plugin\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"approvePlugin\",\"inputs\":[{\"name\":\"_plugin\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"approvedPlugins\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"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\":\"denyPlugin\",\"inputs\":[{\"name\":\"_plugin\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"directPoolDeposit\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"gov\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"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\":\"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\":\"pluginDecreasePosition\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"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\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"pluginIncreasePosition\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_sizeDelta\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"pluginTransfer\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"plugins\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"removePlugin\",\"inputs\":[{\"name\":\"_plugin\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setGov\",\"inputs\":[{\"name\":\"_gov\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"swap\",\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"_amountIn\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_minOut\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"swapETHToTokens\",\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"_minOut\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"swapTokensToETH\",\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"_amountIn\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_minOut\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"addresspayable\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"usdg\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"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\":\"event\",\"name\":\"Swap\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"tokenIn\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"tokenOut\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amountIn\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"amountOut\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false}]",
}

Routerv2MetaData contains all meta data concerning the Routerv2 contract.

Functions

This section is empty.

Types

type Routerv2

type Routerv2 struct {
	Routerv2Caller     // Read-only binding to the contract
	Routerv2Transactor // Write-only binding to the contract
	Routerv2Filterer   // Log filterer for contract events
}

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

func NewRouterv2

func NewRouterv2(address common.Address, backend bind.ContractBackend) (*Routerv2, error)

NewRouterv2 creates a new instance of Routerv2, bound to a specific deployed contract.

type Routerv2Caller

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

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

func NewRouterv2Caller

func NewRouterv2Caller(address common.Address, caller bind.ContractCaller) (*Routerv2Caller, error)

NewRouterv2Caller creates a new read-only instance of Routerv2, bound to a specific deployed contract.

func (*Routerv2Caller) ApprovedPlugins

func (_Routerv2 *Routerv2Caller) ApprovedPlugins(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (bool, error)

ApprovedPlugins is a free data retrieval call binding the contract method 0x956f285e.

Solidity: function approvedPlugins(address , address ) view returns(bool)

func (*Routerv2Caller) Gov

func (_Routerv2 *Routerv2Caller) Gov(opts *bind.CallOpts) (common.Address, error)

Gov is a free data retrieval call binding the contract method 0x12d43a51.

Solidity: function gov() view returns(address)

func (*Routerv2Caller) Plugins

func (_Routerv2 *Routerv2Caller) Plugins(opts *bind.CallOpts, arg0 common.Address) (bool, error)

Plugins is a free data retrieval call binding the contract method 0x4b12e643.

Solidity: function plugins(address ) view returns(bool)

func (*Routerv2Caller) Usdg

func (_Routerv2 *Routerv2Caller) Usdg(opts *bind.CallOpts) (common.Address, error)

Usdg is a free data retrieval call binding the contract method 0xf5b91b7b.

Solidity: function usdg() view returns(address)

func (*Routerv2Caller) Vault

func (_Routerv2 *Routerv2Caller) Vault(opts *bind.CallOpts) (common.Address, error)

Vault is a free data retrieval call binding the contract method 0xfbfa77cf.

Solidity: function vault() view returns(address)

func (*Routerv2Caller) Weth

func (_Routerv2 *Routerv2Caller) Weth(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function weth() view returns(address)

type Routerv2CallerRaw

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

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

func (*Routerv2CallerRaw) Call

func (_Routerv2 *Routerv2CallerRaw) 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 Routerv2CallerSession

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

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

func (*Routerv2CallerSession) ApprovedPlugins

func (_Routerv2 *Routerv2CallerSession) ApprovedPlugins(arg0 common.Address, arg1 common.Address) (bool, error)

ApprovedPlugins is a free data retrieval call binding the contract method 0x956f285e.

Solidity: function approvedPlugins(address , address ) view returns(bool)

func (*Routerv2CallerSession) Gov

func (_Routerv2 *Routerv2CallerSession) Gov() (common.Address, error)

Gov is a free data retrieval call binding the contract method 0x12d43a51.

Solidity: function gov() view returns(address)

func (*Routerv2CallerSession) Plugins

func (_Routerv2 *Routerv2CallerSession) Plugins(arg0 common.Address) (bool, error)

Plugins is a free data retrieval call binding the contract method 0x4b12e643.

Solidity: function plugins(address ) view returns(bool)

func (*Routerv2CallerSession) Usdg

func (_Routerv2 *Routerv2CallerSession) Usdg() (common.Address, error)

Usdg is a free data retrieval call binding the contract method 0xf5b91b7b.

Solidity: function usdg() view returns(address)

func (*Routerv2CallerSession) Vault

func (_Routerv2 *Routerv2CallerSession) Vault() (common.Address, error)

Vault is a free data retrieval call binding the contract method 0xfbfa77cf.

Solidity: function vault() view returns(address)

func (*Routerv2CallerSession) Weth

func (_Routerv2 *Routerv2CallerSession) Weth() (common.Address, error)

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

Solidity: function weth() view returns(address)

type Routerv2Filterer

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

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

func NewRouterv2Filterer

func NewRouterv2Filterer(address common.Address, filterer bind.ContractFilterer) (*Routerv2Filterer, error)

NewRouterv2Filterer creates a new log filterer instance of Routerv2, bound to a specific deployed contract.

func (*Routerv2Filterer) FilterSwap

func (_Routerv2 *Routerv2Filterer) FilterSwap(opts *bind.FilterOpts) (*Routerv2SwapIterator, error)

FilterSwap is a free log retrieval operation binding the contract event 0xcd3829a3813dc3cdd188fd3d01dcf3268c16be2fdd2dd21d0665418816e46062.

Solidity: event Swap(address account, address tokenIn, address tokenOut, uint256 amountIn, uint256 amountOut)

func (*Routerv2Filterer) ParseSwap

func (_Routerv2 *Routerv2Filterer) ParseSwap(log types.Log) (*Routerv2Swap, error)

ParseSwap is a log parse operation binding the contract event 0xcd3829a3813dc3cdd188fd3d01dcf3268c16be2fdd2dd21d0665418816e46062.

Solidity: event Swap(address account, address tokenIn, address tokenOut, uint256 amountIn, uint256 amountOut)

func (*Routerv2Filterer) WatchSwap

func (_Routerv2 *Routerv2Filterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *Routerv2Swap) (event.Subscription, error)

WatchSwap is a free log subscription operation binding the contract event 0xcd3829a3813dc3cdd188fd3d01dcf3268c16be2fdd2dd21d0665418816e46062.

Solidity: event Swap(address account, address tokenIn, address tokenOut, uint256 amountIn, uint256 amountOut)

type Routerv2Raw

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

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

func (*Routerv2Raw) Call

func (_Routerv2 *Routerv2Raw) 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 (*Routerv2Raw) Transact

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

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

func (*Routerv2Raw) Transfer

func (_Routerv2 *Routerv2Raw) 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 Routerv2Session

type Routerv2Session struct {
	Contract     *Routerv2         // 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
}

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

func (*Routerv2Session) AddPlugin

func (_Routerv2 *Routerv2Session) AddPlugin(_plugin common.Address) (*types.Transaction, error)

AddPlugin is a paid mutator transaction binding the contract method 0xd8867fc8.

Solidity: function addPlugin(address _plugin) returns()

func (*Routerv2Session) ApprovePlugin

func (_Routerv2 *Routerv2Session) ApprovePlugin(_plugin common.Address) (*types.Transaction, error)

ApprovePlugin is a paid mutator transaction binding the contract method 0x38c74dd9.

Solidity: function approvePlugin(address _plugin) returns()

func (*Routerv2Session) ApprovedPlugins

func (_Routerv2 *Routerv2Session) ApprovedPlugins(arg0 common.Address, arg1 common.Address) (bool, error)

ApprovedPlugins is a free data retrieval call binding the contract method 0x956f285e.

Solidity: function approvedPlugins(address , address ) view returns(bool)

func (*Routerv2Session) DecreasePosition

func (_Routerv2 *Routerv2Session) 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 (*Routerv2Session) DecreasePositionAndSwap

func (_Routerv2 *Routerv2Session) 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 (*Routerv2Session) DecreasePositionAndSwapETH

func (_Routerv2 *Routerv2Session) 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 (*Routerv2Session) DecreasePositionETH

func (_Routerv2 *Routerv2Session) 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 (*Routerv2Session) DenyPlugin

func (_Routerv2 *Routerv2Session) DenyPlugin(_plugin common.Address) (*types.Transaction, error)

DenyPlugin is a paid mutator transaction binding the contract method 0xcedd4375.

Solidity: function denyPlugin(address _plugin) returns()

func (*Routerv2Session) DirectPoolDeposit

func (_Routerv2 *Routerv2Session) DirectPoolDeposit(_token common.Address, _amount *big.Int) (*types.Transaction, error)

DirectPoolDeposit is a paid mutator transaction binding the contract method 0x90b64ad3.

Solidity: function directPoolDeposit(address _token, uint256 _amount) returns()

func (*Routerv2Session) Gov

func (_Routerv2 *Routerv2Session) Gov() (common.Address, error)

Gov is a free data retrieval call binding the contract method 0x12d43a51.

Solidity: function gov() view returns(address)

func (*Routerv2Session) IncreasePosition

func (_Routerv2 *Routerv2Session) 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 (*Routerv2Session) IncreasePositionETH

func (_Routerv2 *Routerv2Session) 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 (*Routerv2Session) PluginDecreasePosition

func (_Routerv2 *Routerv2Session) PluginDecreasePosition(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _collateralDelta *big.Int, _sizeDelta *big.Int, _isLong bool, _receiver common.Address) (*types.Transaction, error)

PluginDecreasePosition is a paid mutator transaction binding the contract method 0x2662166b.

Solidity: function pluginDecreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) returns(uint256)

func (*Routerv2Session) PluginIncreasePosition

func (_Routerv2 *Routerv2Session) PluginIncreasePosition(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _sizeDelta *big.Int, _isLong bool) (*types.Transaction, error)

PluginIncreasePosition is a paid mutator transaction binding the contract method 0x1f1dd176.

Solidity: function pluginIncreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong) returns()

func (*Routerv2Session) PluginTransfer

func (_Routerv2 *Routerv2Session) PluginTransfer(_token common.Address, _account common.Address, _receiver common.Address, _amount *big.Int) (*types.Transaction, error)

PluginTransfer is a paid mutator transaction binding the contract method 0x1b827878.

Solidity: function pluginTransfer(address _token, address _account, address _receiver, uint256 _amount) returns()

func (*Routerv2Session) Plugins

func (_Routerv2 *Routerv2Session) Plugins(arg0 common.Address) (bool, error)

Plugins is a free data retrieval call binding the contract method 0x4b12e643.

Solidity: function plugins(address ) view returns(bool)

func (*Routerv2Session) Receive

func (_Routerv2 *Routerv2Session) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*Routerv2Session) RemovePlugin

func (_Routerv2 *Routerv2Session) RemovePlugin(_plugin common.Address) (*types.Transaction, error)

RemovePlugin is a paid mutator transaction binding the contract method 0xa4d95b64.

Solidity: function removePlugin(address _plugin) returns()

func (*Routerv2Session) SetGov

func (_Routerv2 *Routerv2Session) 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 (*Routerv2Session) Swap

func (_Routerv2 *Routerv2Session) Swap(_path []common.Address, _amountIn *big.Int, _minOut *big.Int, _receiver common.Address) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x6023e966.

Solidity: function swap(address[] _path, uint256 _amountIn, uint256 _minOut, address _receiver) returns()

func (*Routerv2Session) SwapETHToTokens

func (_Routerv2 *Routerv2Session) SwapETHToTokens(_path []common.Address, _minOut *big.Int, _receiver common.Address) (*types.Transaction, error)

SwapETHToTokens is a paid mutator transaction binding the contract method 0xabe68eaa.

Solidity: function swapETHToTokens(address[] _path, uint256 _minOut, address _receiver) payable returns()

func (*Routerv2Session) SwapTokensToETH

func (_Routerv2 *Routerv2Session) SwapTokensToETH(_path []common.Address, _amountIn *big.Int, _minOut *big.Int, _receiver common.Address) (*types.Transaction, error)

SwapTokensToETH is a paid mutator transaction binding the contract method 0x2d4ba6a7.

Solidity: function swapTokensToETH(address[] _path, uint256 _amountIn, uint256 _minOut, address _receiver) returns()

func (*Routerv2Session) Usdg

func (_Routerv2 *Routerv2Session) Usdg() (common.Address, error)

Usdg is a free data retrieval call binding the contract method 0xf5b91b7b.

Solidity: function usdg() view returns(address)

func (*Routerv2Session) Vault

func (_Routerv2 *Routerv2Session) Vault() (common.Address, error)

Vault is a free data retrieval call binding the contract method 0xfbfa77cf.

Solidity: function vault() view returns(address)

func (*Routerv2Session) Weth

func (_Routerv2 *Routerv2Session) Weth() (common.Address, error)

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

Solidity: function weth() view returns(address)

type Routerv2Swap

type Routerv2Swap struct {
	Account   common.Address
	TokenIn   common.Address
	TokenOut  common.Address
	AmountIn  *big.Int
	AmountOut *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

Routerv2Swap represents a Swap event raised by the Routerv2 contract.

type Routerv2SwapIterator

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

Routerv2SwapIterator is returned from FilterSwap and is used to iterate over the raw logs and unpacked data for Swap events raised by the Routerv2 contract.

func (*Routerv2SwapIterator) Close

func (it *Routerv2SwapIterator) Close() error

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

func (*Routerv2SwapIterator) Error

func (it *Routerv2SwapIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Routerv2SwapIterator) Next

func (it *Routerv2SwapIterator) 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 Routerv2Transactor

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

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

func NewRouterv2Transactor

func NewRouterv2Transactor(address common.Address, transactor bind.ContractTransactor) (*Routerv2Transactor, error)

NewRouterv2Transactor creates a new write-only instance of Routerv2, bound to a specific deployed contract.

func (*Routerv2Transactor) AddPlugin

func (_Routerv2 *Routerv2Transactor) AddPlugin(opts *bind.TransactOpts, _plugin common.Address) (*types.Transaction, error)

AddPlugin is a paid mutator transaction binding the contract method 0xd8867fc8.

Solidity: function addPlugin(address _plugin) returns()

func (*Routerv2Transactor) ApprovePlugin

func (_Routerv2 *Routerv2Transactor) ApprovePlugin(opts *bind.TransactOpts, _plugin common.Address) (*types.Transaction, error)

ApprovePlugin is a paid mutator transaction binding the contract method 0x38c74dd9.

Solidity: function approvePlugin(address _plugin) returns()

func (*Routerv2Transactor) DecreasePosition

func (_Routerv2 *Routerv2Transactor) 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 (*Routerv2Transactor) DecreasePositionAndSwap

func (_Routerv2 *Routerv2Transactor) 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 (*Routerv2Transactor) DecreasePositionAndSwapETH

func (_Routerv2 *Routerv2Transactor) 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 (*Routerv2Transactor) DecreasePositionETH

func (_Routerv2 *Routerv2Transactor) 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 (*Routerv2Transactor) DenyPlugin

func (_Routerv2 *Routerv2Transactor) DenyPlugin(opts *bind.TransactOpts, _plugin common.Address) (*types.Transaction, error)

DenyPlugin is a paid mutator transaction binding the contract method 0xcedd4375.

Solidity: function denyPlugin(address _plugin) returns()

func (*Routerv2Transactor) DirectPoolDeposit

func (_Routerv2 *Routerv2Transactor) DirectPoolDeposit(opts *bind.TransactOpts, _token common.Address, _amount *big.Int) (*types.Transaction, error)

DirectPoolDeposit is a paid mutator transaction binding the contract method 0x90b64ad3.

Solidity: function directPoolDeposit(address _token, uint256 _amount) returns()

func (*Routerv2Transactor) IncreasePosition

func (_Routerv2 *Routerv2Transactor) 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 (*Routerv2Transactor) IncreasePositionETH

func (_Routerv2 *Routerv2Transactor) 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 (*Routerv2Transactor) PluginDecreasePosition

func (_Routerv2 *Routerv2Transactor) PluginDecreasePosition(opts *bind.TransactOpts, _account common.Address, _collateralToken common.Address, _indexToken common.Address, _collateralDelta *big.Int, _sizeDelta *big.Int, _isLong bool, _receiver common.Address) (*types.Transaction, error)

PluginDecreasePosition is a paid mutator transaction binding the contract method 0x2662166b.

Solidity: function pluginDecreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) returns(uint256)

func (*Routerv2Transactor) PluginIncreasePosition

func (_Routerv2 *Routerv2Transactor) PluginIncreasePosition(opts *bind.TransactOpts, _account common.Address, _collateralToken common.Address, _indexToken common.Address, _sizeDelta *big.Int, _isLong bool) (*types.Transaction, error)

PluginIncreasePosition is a paid mutator transaction binding the contract method 0x1f1dd176.

Solidity: function pluginIncreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong) returns()

func (*Routerv2Transactor) PluginTransfer

func (_Routerv2 *Routerv2Transactor) PluginTransfer(opts *bind.TransactOpts, _token common.Address, _account common.Address, _receiver common.Address, _amount *big.Int) (*types.Transaction, error)

PluginTransfer is a paid mutator transaction binding the contract method 0x1b827878.

Solidity: function pluginTransfer(address _token, address _account, address _receiver, uint256 _amount) returns()

func (*Routerv2Transactor) Receive

func (_Routerv2 *Routerv2Transactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*Routerv2Transactor) RemovePlugin

func (_Routerv2 *Routerv2Transactor) RemovePlugin(opts *bind.TransactOpts, _plugin common.Address) (*types.Transaction, error)

RemovePlugin is a paid mutator transaction binding the contract method 0xa4d95b64.

Solidity: function removePlugin(address _plugin) returns()

func (*Routerv2Transactor) SetGov

func (_Routerv2 *Routerv2Transactor) 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 (*Routerv2Transactor) Swap

func (_Routerv2 *Routerv2Transactor) Swap(opts *bind.TransactOpts, _path []common.Address, _amountIn *big.Int, _minOut *big.Int, _receiver common.Address) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x6023e966.

Solidity: function swap(address[] _path, uint256 _amountIn, uint256 _minOut, address _receiver) returns()

func (*Routerv2Transactor) SwapETHToTokens

func (_Routerv2 *Routerv2Transactor) SwapETHToTokens(opts *bind.TransactOpts, _path []common.Address, _minOut *big.Int, _receiver common.Address) (*types.Transaction, error)

SwapETHToTokens is a paid mutator transaction binding the contract method 0xabe68eaa.

Solidity: function swapETHToTokens(address[] _path, uint256 _minOut, address _receiver) payable returns()

func (*Routerv2Transactor) SwapTokensToETH

func (_Routerv2 *Routerv2Transactor) SwapTokensToETH(opts *bind.TransactOpts, _path []common.Address, _amountIn *big.Int, _minOut *big.Int, _receiver common.Address) (*types.Transaction, error)

SwapTokensToETH is a paid mutator transaction binding the contract method 0x2d4ba6a7.

Solidity: function swapTokensToETH(address[] _path, uint256 _amountIn, uint256 _minOut, address _receiver) returns()

type Routerv2TransactorRaw

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

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

func (*Routerv2TransactorRaw) Transact

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

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

func (*Routerv2TransactorRaw) Transfer

func (_Routerv2 *Routerv2TransactorRaw) 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 Routerv2TransactorSession

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

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

func (*Routerv2TransactorSession) AddPlugin

func (_Routerv2 *Routerv2TransactorSession) AddPlugin(_plugin common.Address) (*types.Transaction, error)

AddPlugin is a paid mutator transaction binding the contract method 0xd8867fc8.

Solidity: function addPlugin(address _plugin) returns()

func (*Routerv2TransactorSession) ApprovePlugin

func (_Routerv2 *Routerv2TransactorSession) ApprovePlugin(_plugin common.Address) (*types.Transaction, error)

ApprovePlugin is a paid mutator transaction binding the contract method 0x38c74dd9.

Solidity: function approvePlugin(address _plugin) returns()

func (*Routerv2TransactorSession) DecreasePosition

func (_Routerv2 *Routerv2TransactorSession) 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 (*Routerv2TransactorSession) DecreasePositionAndSwap

func (_Routerv2 *Routerv2TransactorSession) 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 (*Routerv2TransactorSession) DecreasePositionAndSwapETH

func (_Routerv2 *Routerv2TransactorSession) 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 (*Routerv2TransactorSession) DecreasePositionETH

func (_Routerv2 *Routerv2TransactorSession) 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 (*Routerv2TransactorSession) DenyPlugin

func (_Routerv2 *Routerv2TransactorSession) DenyPlugin(_plugin common.Address) (*types.Transaction, error)

DenyPlugin is a paid mutator transaction binding the contract method 0xcedd4375.

Solidity: function denyPlugin(address _plugin) returns()

func (*Routerv2TransactorSession) DirectPoolDeposit

func (_Routerv2 *Routerv2TransactorSession) DirectPoolDeposit(_token common.Address, _amount *big.Int) (*types.Transaction, error)

DirectPoolDeposit is a paid mutator transaction binding the contract method 0x90b64ad3.

Solidity: function directPoolDeposit(address _token, uint256 _amount) returns()

func (*Routerv2TransactorSession) IncreasePosition

func (_Routerv2 *Routerv2TransactorSession) 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 (*Routerv2TransactorSession) IncreasePositionETH

func (_Routerv2 *Routerv2TransactorSession) 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 (*Routerv2TransactorSession) PluginDecreasePosition

func (_Routerv2 *Routerv2TransactorSession) PluginDecreasePosition(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _collateralDelta *big.Int, _sizeDelta *big.Int, _isLong bool, _receiver common.Address) (*types.Transaction, error)

PluginDecreasePosition is a paid mutator transaction binding the contract method 0x2662166b.

Solidity: function pluginDecreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) returns(uint256)

func (*Routerv2TransactorSession) PluginIncreasePosition

func (_Routerv2 *Routerv2TransactorSession) PluginIncreasePosition(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _sizeDelta *big.Int, _isLong bool) (*types.Transaction, error)

PluginIncreasePosition is a paid mutator transaction binding the contract method 0x1f1dd176.

Solidity: function pluginIncreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong) returns()

func (*Routerv2TransactorSession) PluginTransfer

func (_Routerv2 *Routerv2TransactorSession) PluginTransfer(_token common.Address, _account common.Address, _receiver common.Address, _amount *big.Int) (*types.Transaction, error)

PluginTransfer is a paid mutator transaction binding the contract method 0x1b827878.

Solidity: function pluginTransfer(address _token, address _account, address _receiver, uint256 _amount) returns()

func (*Routerv2TransactorSession) Receive

func (_Routerv2 *Routerv2TransactorSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*Routerv2TransactorSession) RemovePlugin

func (_Routerv2 *Routerv2TransactorSession) RemovePlugin(_plugin common.Address) (*types.Transaction, error)

RemovePlugin is a paid mutator transaction binding the contract method 0xa4d95b64.

Solidity: function removePlugin(address _plugin) returns()

func (*Routerv2TransactorSession) SetGov

func (_Routerv2 *Routerv2TransactorSession) 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 (*Routerv2TransactorSession) Swap

func (_Routerv2 *Routerv2TransactorSession) Swap(_path []common.Address, _amountIn *big.Int, _minOut *big.Int, _receiver common.Address) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x6023e966.

Solidity: function swap(address[] _path, uint256 _amountIn, uint256 _minOut, address _receiver) returns()

func (*Routerv2TransactorSession) SwapETHToTokens

func (_Routerv2 *Routerv2TransactorSession) SwapETHToTokens(_path []common.Address, _minOut *big.Int, _receiver common.Address) (*types.Transaction, error)

SwapETHToTokens is a paid mutator transaction binding the contract method 0xabe68eaa.

Solidity: function swapETHToTokens(address[] _path, uint256 _minOut, address _receiver) payable returns()

func (*Routerv2TransactorSession) SwapTokensToETH

func (_Routerv2 *Routerv2TransactorSession) SwapTokensToETH(_path []common.Address, _amountIn *big.Int, _minOut *big.Int, _receiver common.Address) (*types.Transaction, error)

SwapTokensToETH is a paid mutator transaction binding the contract method 0x2d4ba6a7.

Solidity: function swapTokensToETH(address[] _path, uint256 _amountIn, uint256 _minOut, address _receiver) returns()

Jump to

Keyboard shortcuts

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