SyntheticsRouter

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 SyntheticsRouterABI = SyntheticsRouterMetaData.ABI

SyntheticsRouterABI is the input ABI used to generate the binding from. Deprecated: Use SyntheticsRouterMetaData.ABI instead.

View Source
var SyntheticsRouterMetaData = &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}]",
}

SyntheticsRouterMetaData contains all meta data concerning the SyntheticsRouter contract.

Functions

This section is empty.

Types

type SyntheticsRouter

type SyntheticsRouter struct {
	SyntheticsRouterCaller     // Read-only binding to the contract
	SyntheticsRouterTransactor // Write-only binding to the contract
	SyntheticsRouterFilterer   // Log filterer for contract events
}

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

func NewSyntheticsRouter

func NewSyntheticsRouter(address common.Address, backend bind.ContractBackend) (*SyntheticsRouter, error)

NewSyntheticsRouter creates a new instance of SyntheticsRouter, bound to a specific deployed contract.

type SyntheticsRouterCaller

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

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

func NewSyntheticsRouterCaller

func NewSyntheticsRouterCaller(address common.Address, caller bind.ContractCaller) (*SyntheticsRouterCaller, error)

NewSyntheticsRouterCaller creates a new read-only instance of SyntheticsRouter, bound to a specific deployed contract.

func (*SyntheticsRouterCaller) ApprovedPlugins

func (_SyntheticsRouter *SyntheticsRouterCaller) 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 (*SyntheticsRouterCaller) Gov

func (_SyntheticsRouter *SyntheticsRouterCaller) 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 (*SyntheticsRouterCaller) Plugins

func (_SyntheticsRouter *SyntheticsRouterCaller) 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 (*SyntheticsRouterCaller) Usdg

func (_SyntheticsRouter *SyntheticsRouterCaller) 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 (*SyntheticsRouterCaller) Vault

func (_SyntheticsRouter *SyntheticsRouterCaller) 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 (*SyntheticsRouterCaller) Weth

func (_SyntheticsRouter *SyntheticsRouterCaller) 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 SyntheticsRouterCallerRaw

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

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

func (*SyntheticsRouterCallerRaw) Call

func (_SyntheticsRouter *SyntheticsRouterCallerRaw) 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 SyntheticsRouterCallerSession

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

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

func (*SyntheticsRouterCallerSession) ApprovedPlugins

func (_SyntheticsRouter *SyntheticsRouterCallerSession) 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 (*SyntheticsRouterCallerSession) Gov

func (_SyntheticsRouter *SyntheticsRouterCallerSession) Gov() (common.Address, error)

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

Solidity: function gov() view returns(address)

func (*SyntheticsRouterCallerSession) Plugins

func (_SyntheticsRouter *SyntheticsRouterCallerSession) 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 (*SyntheticsRouterCallerSession) Usdg

func (_SyntheticsRouter *SyntheticsRouterCallerSession) Usdg() (common.Address, error)

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

Solidity: function usdg() view returns(address)

func (*SyntheticsRouterCallerSession) Vault

func (_SyntheticsRouter *SyntheticsRouterCallerSession) Vault() (common.Address, error)

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

Solidity: function vault() view returns(address)

func (*SyntheticsRouterCallerSession) Weth

func (_SyntheticsRouter *SyntheticsRouterCallerSession) Weth() (common.Address, error)

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

Solidity: function weth() view returns(address)

type SyntheticsRouterFilterer

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

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

func NewSyntheticsRouterFilterer

func NewSyntheticsRouterFilterer(address common.Address, filterer bind.ContractFilterer) (*SyntheticsRouterFilterer, error)

NewSyntheticsRouterFilterer creates a new log filterer instance of SyntheticsRouter, bound to a specific deployed contract.

func (*SyntheticsRouterFilterer) FilterSwap

func (_SyntheticsRouter *SyntheticsRouterFilterer) FilterSwap(opts *bind.FilterOpts) (*SyntheticsRouterSwapIterator, 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 (*SyntheticsRouterFilterer) ParseSwap

func (_SyntheticsRouter *SyntheticsRouterFilterer) ParseSwap(log types.Log) (*SyntheticsRouterSwap, 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 (*SyntheticsRouterFilterer) WatchSwap

func (_SyntheticsRouter *SyntheticsRouterFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *SyntheticsRouterSwap) (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 SyntheticsRouterRaw

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

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

func (*SyntheticsRouterRaw) Call

func (_SyntheticsRouter *SyntheticsRouterRaw) 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 (*SyntheticsRouterRaw) Transact

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

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

func (*SyntheticsRouterRaw) Transfer

func (_SyntheticsRouter *SyntheticsRouterRaw) 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 SyntheticsRouterSession

type SyntheticsRouterSession struct {
	Contract     *SyntheticsRouter // 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
}

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

func (*SyntheticsRouterSession) AddPlugin

func (_SyntheticsRouter *SyntheticsRouterSession) 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 (*SyntheticsRouterSession) ApprovePlugin

func (_SyntheticsRouter *SyntheticsRouterSession) 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 (*SyntheticsRouterSession) ApprovedPlugins

func (_SyntheticsRouter *SyntheticsRouterSession) 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 (*SyntheticsRouterSession) DecreasePosition

func (_SyntheticsRouter *SyntheticsRouterSession) 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 (*SyntheticsRouterSession) DecreasePositionAndSwap

func (_SyntheticsRouter *SyntheticsRouterSession) 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 (*SyntheticsRouterSession) DecreasePositionAndSwapETH

func (_SyntheticsRouter *SyntheticsRouterSession) 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 (*SyntheticsRouterSession) DecreasePositionETH

func (_SyntheticsRouter *SyntheticsRouterSession) 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 (*SyntheticsRouterSession) DenyPlugin

func (_SyntheticsRouter *SyntheticsRouterSession) 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 (*SyntheticsRouterSession) DirectPoolDeposit

func (_SyntheticsRouter *SyntheticsRouterSession) 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 (*SyntheticsRouterSession) Gov

func (_SyntheticsRouter *SyntheticsRouterSession) Gov() (common.Address, error)

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

Solidity: function gov() view returns(address)

func (*SyntheticsRouterSession) IncreasePosition

func (_SyntheticsRouter *SyntheticsRouterSession) 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 (*SyntheticsRouterSession) IncreasePositionETH

func (_SyntheticsRouter *SyntheticsRouterSession) 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 (*SyntheticsRouterSession) PluginDecreasePosition

func (_SyntheticsRouter *SyntheticsRouterSession) 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 (*SyntheticsRouterSession) PluginIncreasePosition

func (_SyntheticsRouter *SyntheticsRouterSession) 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 (*SyntheticsRouterSession) PluginTransfer

func (_SyntheticsRouter *SyntheticsRouterSession) 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 (*SyntheticsRouterSession) Plugins

func (_SyntheticsRouter *SyntheticsRouterSession) 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 (*SyntheticsRouterSession) Receive

func (_SyntheticsRouter *SyntheticsRouterSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*SyntheticsRouterSession) RemovePlugin

func (_SyntheticsRouter *SyntheticsRouterSession) 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 (*SyntheticsRouterSession) SetGov

func (_SyntheticsRouter *SyntheticsRouterSession) 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 (*SyntheticsRouterSession) Swap

func (_SyntheticsRouter *SyntheticsRouterSession) 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 (*SyntheticsRouterSession) SwapETHToTokens

func (_SyntheticsRouter *SyntheticsRouterSession) 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 (*SyntheticsRouterSession) SwapTokensToETH

func (_SyntheticsRouter *SyntheticsRouterSession) 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 (*SyntheticsRouterSession) Usdg

func (_SyntheticsRouter *SyntheticsRouterSession) Usdg() (common.Address, error)

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

Solidity: function usdg() view returns(address)

func (*SyntheticsRouterSession) Vault

func (_SyntheticsRouter *SyntheticsRouterSession) Vault() (common.Address, error)

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

Solidity: function vault() view returns(address)

func (*SyntheticsRouterSession) Weth

func (_SyntheticsRouter *SyntheticsRouterSession) Weth() (common.Address, error)

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

Solidity: function weth() view returns(address)

type SyntheticsRouterSwap

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

SyntheticsRouterSwap represents a Swap event raised by the SyntheticsRouter contract.

type SyntheticsRouterSwapIterator

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

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

func (*SyntheticsRouterSwapIterator) Close

func (it *SyntheticsRouterSwapIterator) Close() error

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

func (*SyntheticsRouterSwapIterator) Error

func (it *SyntheticsRouterSwapIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SyntheticsRouterSwapIterator) Next

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 SyntheticsRouterTransactor

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

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

func NewSyntheticsRouterTransactor

func NewSyntheticsRouterTransactor(address common.Address, transactor bind.ContractTransactor) (*SyntheticsRouterTransactor, error)

NewSyntheticsRouterTransactor creates a new write-only instance of SyntheticsRouter, bound to a specific deployed contract.

func (*SyntheticsRouterTransactor) AddPlugin

func (_SyntheticsRouter *SyntheticsRouterTransactor) 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 (*SyntheticsRouterTransactor) ApprovePlugin

func (_SyntheticsRouter *SyntheticsRouterTransactor) 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 (*SyntheticsRouterTransactor) DecreasePosition

func (_SyntheticsRouter *SyntheticsRouterTransactor) 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 (*SyntheticsRouterTransactor) DecreasePositionAndSwap

func (_SyntheticsRouter *SyntheticsRouterTransactor) 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 (*SyntheticsRouterTransactor) DecreasePositionAndSwapETH

func (_SyntheticsRouter *SyntheticsRouterTransactor) 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 (*SyntheticsRouterTransactor) DecreasePositionETH

func (_SyntheticsRouter *SyntheticsRouterTransactor) 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 (*SyntheticsRouterTransactor) DenyPlugin

func (_SyntheticsRouter *SyntheticsRouterTransactor) 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 (*SyntheticsRouterTransactor) DirectPoolDeposit

func (_SyntheticsRouter *SyntheticsRouterTransactor) 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 (*SyntheticsRouterTransactor) IncreasePosition

func (_SyntheticsRouter *SyntheticsRouterTransactor) 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 (*SyntheticsRouterTransactor) IncreasePositionETH

func (_SyntheticsRouter *SyntheticsRouterTransactor) 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 (*SyntheticsRouterTransactor) PluginDecreasePosition

func (_SyntheticsRouter *SyntheticsRouterTransactor) 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 (*SyntheticsRouterTransactor) PluginIncreasePosition

func (_SyntheticsRouter *SyntheticsRouterTransactor) 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 (*SyntheticsRouterTransactor) PluginTransfer

func (_SyntheticsRouter *SyntheticsRouterTransactor) 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 (*SyntheticsRouterTransactor) Receive

func (_SyntheticsRouter *SyntheticsRouterTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*SyntheticsRouterTransactor) RemovePlugin

func (_SyntheticsRouter *SyntheticsRouterTransactor) 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 (*SyntheticsRouterTransactor) SetGov

func (_SyntheticsRouter *SyntheticsRouterTransactor) 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 (*SyntheticsRouterTransactor) Swap

func (_SyntheticsRouter *SyntheticsRouterTransactor) 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 (*SyntheticsRouterTransactor) SwapETHToTokens

func (_SyntheticsRouter *SyntheticsRouterTransactor) 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 (*SyntheticsRouterTransactor) SwapTokensToETH

func (_SyntheticsRouter *SyntheticsRouterTransactor) 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 SyntheticsRouterTransactorRaw

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

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

func (*SyntheticsRouterTransactorRaw) Transact

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

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

func (*SyntheticsRouterTransactorRaw) Transfer

func (_SyntheticsRouter *SyntheticsRouterTransactorRaw) 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 SyntheticsRouterTransactorSession

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

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

func (*SyntheticsRouterTransactorSession) AddPlugin

func (_SyntheticsRouter *SyntheticsRouterTransactorSession) 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 (*SyntheticsRouterTransactorSession) ApprovePlugin

func (_SyntheticsRouter *SyntheticsRouterTransactorSession) 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 (*SyntheticsRouterTransactorSession) DecreasePosition

func (_SyntheticsRouter *SyntheticsRouterTransactorSession) 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 (*SyntheticsRouterTransactorSession) DecreasePositionAndSwap

func (_SyntheticsRouter *SyntheticsRouterTransactorSession) 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 (*SyntheticsRouterTransactorSession) DecreasePositionAndSwapETH

func (_SyntheticsRouter *SyntheticsRouterTransactorSession) 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 (*SyntheticsRouterTransactorSession) DecreasePositionETH

func (_SyntheticsRouter *SyntheticsRouterTransactorSession) 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 (*SyntheticsRouterTransactorSession) DenyPlugin

func (_SyntheticsRouter *SyntheticsRouterTransactorSession) 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 (*SyntheticsRouterTransactorSession) DirectPoolDeposit

func (_SyntheticsRouter *SyntheticsRouterTransactorSession) 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 (*SyntheticsRouterTransactorSession) IncreasePosition

func (_SyntheticsRouter *SyntheticsRouterTransactorSession) 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 (*SyntheticsRouterTransactorSession) IncreasePositionETH

func (_SyntheticsRouter *SyntheticsRouterTransactorSession) 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 (*SyntheticsRouterTransactorSession) PluginDecreasePosition

func (_SyntheticsRouter *SyntheticsRouterTransactorSession) 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 (*SyntheticsRouterTransactorSession) PluginIncreasePosition

func (_SyntheticsRouter *SyntheticsRouterTransactorSession) 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 (*SyntheticsRouterTransactorSession) PluginTransfer

func (_SyntheticsRouter *SyntheticsRouterTransactorSession) 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 (*SyntheticsRouterTransactorSession) Receive

func (_SyntheticsRouter *SyntheticsRouterTransactorSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*SyntheticsRouterTransactorSession) RemovePlugin

func (_SyntheticsRouter *SyntheticsRouterTransactorSession) 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 (*SyntheticsRouterTransactorSession) SetGov

func (_SyntheticsRouter *SyntheticsRouterTransactorSession) 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 (*SyntheticsRouterTransactorSession) Swap

func (_SyntheticsRouter *SyntheticsRouterTransactorSession) 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 (*SyntheticsRouterTransactorSession) SwapETHToTokens

func (_SyntheticsRouter *SyntheticsRouterTransactorSession) 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 (*SyntheticsRouterTransactorSession) SwapTokensToETH

func (_SyntheticsRouter *SyntheticsRouterTransactorSession) 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