Documentation ¶
Index ¶
- Variables
- type PermitHelperPermit
- type Router
- type RouterCaller
- type RouterCallerRaw
- type RouterCallerSession
- type RouterEthWithdrawn
- type RouterEthWithdrawnIterator
- type RouterFillQuoteEthToTokenInput
- type RouterFillQuoteTokenToEthInput
- type RouterFillQuoteTokenToTokenInput
- type RouterFilterer
- func (_Router *RouterFilterer) FilterEthWithdrawn(opts *bind.FilterOpts, target []common.Address) (*RouterEthWithdrawnIterator, error)
- func (_Router *RouterFilterer) FilterOwnerChanged(opts *bind.FilterOpts, newOwner []common.Address, oldOwner []common.Address) (*RouterOwnerChangedIterator, error)
- func (_Router *RouterFilterer) FilterSwapTargetAdded(opts *bind.FilterOpts, target []common.Address) (*RouterSwapTargetAddedIterator, error)
- func (_Router *RouterFilterer) FilterSwapTargetRemoved(opts *bind.FilterOpts, target []common.Address) (*RouterSwapTargetRemovedIterator, error)
- func (_Router *RouterFilterer) FilterTokenWithdrawn(opts *bind.FilterOpts, token []common.Address, target []common.Address) (*RouterTokenWithdrawnIterator, error)
- func (_Router *RouterFilterer) ParseEthWithdrawn(log types.Log) (*RouterEthWithdrawn, error)
- func (_Router *RouterFilterer) ParseOwnerChanged(log types.Log) (*RouterOwnerChanged, error)
- func (_Router *RouterFilterer) ParseSwapTargetAdded(log types.Log) (*RouterSwapTargetAdded, error)
- func (_Router *RouterFilterer) ParseSwapTargetRemoved(log types.Log) (*RouterSwapTargetRemoved, error)
- func (_Router *RouterFilterer) ParseTokenWithdrawn(log types.Log) (*RouterTokenWithdrawn, error)
- func (_Router *RouterFilterer) WatchEthWithdrawn(opts *bind.WatchOpts, sink chan<- *RouterEthWithdrawn, target []common.Address) (event.Subscription, error)
- func (_Router *RouterFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *RouterOwnerChanged, ...) (event.Subscription, error)
- func (_Router *RouterFilterer) WatchSwapTargetAdded(opts *bind.WatchOpts, sink chan<- *RouterSwapTargetAdded, ...) (event.Subscription, error)
- func (_Router *RouterFilterer) WatchSwapTargetRemoved(opts *bind.WatchOpts, sink chan<- *RouterSwapTargetRemoved, ...) (event.Subscription, error)
- func (_Router *RouterFilterer) WatchTokenWithdrawn(opts *bind.WatchOpts, sink chan<- *RouterTokenWithdrawn, ...) (event.Subscription, error)
- type RouterOwnerChanged
- type RouterOwnerChangedIterator
- type RouterRaw
- func (_Router *RouterRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Router *RouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Router *RouterRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type RouterSession
- func (_Router *RouterSession) FillQuoteEthToToken(buyTokenAddress common.Address, target common.Address, swapCallData []byte, ...) (*types.Transaction, error)
- func (_Router *RouterSession) FillQuoteTokenToEth(sellTokenAddress common.Address, target common.Address, swapCallData []byte, ...) (*types.Transaction, error)
- func (_Router *RouterSession) FillQuoteTokenToEthWithPermit(sellTokenAddress common.Address, target common.Address, swapCallData []byte, ...) (*types.Transaction, error)
- func (_Router *RouterSession) FillQuoteTokenToToken(sellTokenAddress common.Address, buyTokenAddress common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterSession) FillQuoteTokenToTokenWithPermit(sellTokenAddress common.Address, buyTokenAddress common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterSession) Owner() (common.Address, error)
- func (_Router *RouterSession) Receive() (*types.Transaction, error)
- func (_Router *RouterSession) SwapTargets(arg0 common.Address) (bool, error)
- func (_Router *RouterSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Router *RouterSession) UpdateSwapTargets(target common.Address, add bool) (*types.Transaction, error)
- func (_Router *RouterSession) WithdrawEth(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Router *RouterSession) WithdrawToken(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
- type RouterSwapTargetAdded
- type RouterSwapTargetAddedIterator
- type RouterSwapTargetRemoved
- type RouterSwapTargetRemovedIterator
- type RouterTokenWithdrawn
- type RouterTokenWithdrawnIterator
- type RouterTransactor
- func (_Router *RouterTransactor) FillQuoteEthToToken(opts *bind.TransactOpts, buyTokenAddress common.Address, target common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) FillQuoteTokenToEth(opts *bind.TransactOpts, sellTokenAddress common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) FillQuoteTokenToEthWithPermit(opts *bind.TransactOpts, sellTokenAddress common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) FillQuoteTokenToToken(opts *bind.TransactOpts, sellTokenAddress common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) FillQuoteTokenToTokenWithPermit(opts *bind.TransactOpts, sellTokenAddress common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Router *RouterTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_Router *RouterTransactor) UpdateSwapTargets(opts *bind.TransactOpts, target common.Address, add bool) (*types.Transaction, error)
- func (_Router *RouterTransactor) WithdrawEth(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Router *RouterTransactor) WithdrawToken(opts *bind.TransactOpts, token common.Address, to common.Address, ...) (*types.Transaction, error)
- type RouterTransactorRaw
- type RouterTransactorSession
- func (_Router *RouterTransactorSession) FillQuoteEthToToken(buyTokenAddress common.Address, target common.Address, swapCallData []byte, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) FillQuoteTokenToEth(sellTokenAddress common.Address, target common.Address, swapCallData []byte, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) FillQuoteTokenToEthWithPermit(sellTokenAddress common.Address, target common.Address, swapCallData []byte, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) FillQuoteTokenToToken(sellTokenAddress common.Address, buyTokenAddress common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) FillQuoteTokenToTokenWithPermit(sellTokenAddress common.Address, buyTokenAddress common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) Receive() (*types.Transaction, error)
- func (_Router *RouterTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) UpdateSwapTargets(target common.Address, add bool) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) WithdrawEth(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) WithdrawToken(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var ( AddressRouter = common.HexToAddress("0x00000000009726632680FB29d3F7A9734E3010E2") MethodIDRouterFillQuoteEthToToken = contract.MethodID("fillQuoteEthToToken(address,address,bytes,uint256)") MethodIDRouterFillQuoteTokenToEth = contract.MethodID("fillQuoteTokenToEth(address,address,bytes,uint256,uint256)") MethodIDRouterFillQuoteTokenToToken = contract.MethodID("fillQuoteTokenToToken(address,address,address,bytes,uint256,uint256)") )
var RouterABI = RouterMetaData.ABI
RouterABI is the input ABI used to generate the binding from. Deprecated: Use RouterMetaData.ABI instead.
var RouterMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"EthWithdrawn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"}],\"name\":\"OwnerChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"SwapTargetAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"SwapTargetRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"TokenWithdrawn\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"buyTokenAddress\",\"type\":\"address\"},{\"internalType\":\"addresspayable\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"swapCallData\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"}],\"name\":\"fillQuoteEthToToken\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sellTokenAddress\",\"type\":\"address\"},{\"internalType\":\"addresspayable\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"swapCallData\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"sellAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feePercentageBasisPoints\",\"type\":\"uint256\"}],\"name\":\"fillQuoteTokenToEth\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sellTokenAddress\",\"type\":\"address\"},{\"internalType\":\"addresspayable\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"swapCallData\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"sellAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feePercentageBasisPoints\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isDaiStylePermit\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"structPermitHelper.Permit\",\"name\":\"permitData\",\"type\":\"tuple\"}],\"name\":\"fillQuoteTokenToEthWithPermit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sellTokenAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"buyTokenAddress\",\"type\":\"address\"},{\"internalType\":\"addresspayable\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"swapCallData\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"sellAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"}],\"name\":\"fillQuoteTokenToToken\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sellTokenAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"buyTokenAddress\",\"type\":\"address\"},{\"internalType\":\"addresspayable\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"swapCallData\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"sellAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isDaiStylePermit\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"structPermitHelper.Permit\",\"name\":\"permitData\",\"type\":\"tuple\"}],\"name\":\"fillQuoteTokenToTokenWithPermit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"swapTargets\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"add\",\"type\":\"bool\"}],\"name\":\"updateSwapTargets\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawEth\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}
RouterMetaData contains all meta data concerning the Router contract.
Functions ¶
This section is empty.
Types ¶
type PermitHelperPermit ¶
type PermitHelperPermit struct { Value *big.Int Nonce *big.Int Deadline *big.Int IsDaiStylePermit bool V uint8 R [32]byte S [32]byte }
PermitHelperPermit is an auto generated low-level Go binding around an user-defined struct.
type Router ¶
type Router struct { RouterCaller // Read-only binding to the contract RouterTransactor // Write-only binding to the contract RouterFilterer // Log filterer for contract events }
Router is an auto generated Go binding around an Ethereum contract.
type RouterCaller ¶
type RouterCaller struct {
// contains filtered or unexported fields
}
RouterCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewRouterCaller ¶
func NewRouterCaller(address common.Address, caller bind.ContractCaller) (*RouterCaller, error)
NewRouterCaller creates a new read-only instance of Router, bound to a specific deployed contract.
func (*RouterCaller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*RouterCaller) SwapTargets ¶
SwapTargets is a free data retrieval call binding the contract method 0x83c4a19d.
Solidity: function swapTargets(address ) view returns(bool)
type RouterCallerRaw ¶
type RouterCallerRaw struct {
Contract *RouterCaller // Generic read-only contract binding to access the raw methods on
}
RouterCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*RouterCallerRaw) Call ¶
func (_Router *RouterCallerRaw) 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 RouterCallerSession ¶
type RouterCallerSession struct { Contract *RouterCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
RouterCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*RouterCallerSession) Owner ¶
func (_Router *RouterCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*RouterCallerSession) SwapTargets ¶
func (_Router *RouterCallerSession) SwapTargets(arg0 common.Address) (bool, error)
SwapTargets is a free data retrieval call binding the contract method 0x83c4a19d.
Solidity: function swapTargets(address ) view returns(bool)
type RouterEthWithdrawn ¶
type RouterEthWithdrawn struct { Target common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
RouterEthWithdrawn represents a EthWithdrawn event raised by the Router contract.
type RouterEthWithdrawnIterator ¶
type RouterEthWithdrawnIterator struct { Event *RouterEthWithdrawn // Event containing the contract specifics and raw log // contains filtered or unexported fields }
RouterEthWithdrawnIterator is returned from FilterEthWithdrawn and is used to iterate over the raw logs and unpacked data for EthWithdrawn events raised by the Router contract.
func (*RouterEthWithdrawnIterator) Close ¶
func (it *RouterEthWithdrawnIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RouterEthWithdrawnIterator) Error ¶
func (it *RouterEthWithdrawnIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RouterEthWithdrawnIterator) Next ¶
func (it *RouterEthWithdrawnIterator) 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 RouterFilterer ¶
type RouterFilterer struct {
// contains filtered or unexported fields
}
RouterFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewRouterFilterer ¶
func NewRouterFilterer(address common.Address, filterer bind.ContractFilterer) (*RouterFilterer, error)
NewRouterFilterer creates a new log filterer instance of Router, bound to a specific deployed contract.
func (*RouterFilterer) FilterEthWithdrawn ¶
func (_Router *RouterFilterer) FilterEthWithdrawn(opts *bind.FilterOpts, target []common.Address) (*RouterEthWithdrawnIterator, error)
FilterEthWithdrawn is a free log retrieval operation binding the contract event 0x8455ae6be5d92f1df1c3c1484388e247a36c7e60d72055ae216dbc258f257d4b.
Solidity: event EthWithdrawn(address indexed target, uint256 amount)
func (*RouterFilterer) FilterOwnerChanged ¶
func (_Router *RouterFilterer) FilterOwnerChanged(opts *bind.FilterOpts, newOwner []common.Address, oldOwner []common.Address) (*RouterOwnerChangedIterator, error)
FilterOwnerChanged is a free log retrieval operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c.
Solidity: event OwnerChanged(address indexed newOwner, address indexed oldOwner)
func (*RouterFilterer) FilterSwapTargetAdded ¶
func (_Router *RouterFilterer) FilterSwapTargetAdded(opts *bind.FilterOpts, target []common.Address) (*RouterSwapTargetAddedIterator, error)
FilterSwapTargetAdded is a free log retrieval operation binding the contract event 0xb907822409611d127ab6a64611591b98e03a6a85ade4f258bae26b7c1efdfeaf.
Solidity: event SwapTargetAdded(address indexed target)
func (*RouterFilterer) FilterSwapTargetRemoved ¶
func (_Router *RouterFilterer) FilterSwapTargetRemoved(opts *bind.FilterOpts, target []common.Address) (*RouterSwapTargetRemovedIterator, error)
FilterSwapTargetRemoved is a free log retrieval operation binding the contract event 0x393b8be3e26787f19285ecd039dfd80bc6507828750f4d50367e6efe2524695c.
Solidity: event SwapTargetRemoved(address indexed target)
func (*RouterFilterer) FilterTokenWithdrawn ¶
func (_Router *RouterFilterer) FilterTokenWithdrawn(opts *bind.FilterOpts, token []common.Address, target []common.Address) (*RouterTokenWithdrawnIterator, error)
FilterTokenWithdrawn is a free log retrieval operation binding the contract event 0x8210728e7c071f615b840ee026032693858fbcd5e5359e67e438c890f59e5620.
Solidity: event TokenWithdrawn(address indexed token, address indexed target, uint256 amount)
func (*RouterFilterer) ParseEthWithdrawn ¶
func (_Router *RouterFilterer) ParseEthWithdrawn(log types.Log) (*RouterEthWithdrawn, error)
ParseEthWithdrawn is a log parse operation binding the contract event 0x8455ae6be5d92f1df1c3c1484388e247a36c7e60d72055ae216dbc258f257d4b.
Solidity: event EthWithdrawn(address indexed target, uint256 amount)
func (*RouterFilterer) ParseOwnerChanged ¶
func (_Router *RouterFilterer) ParseOwnerChanged(log types.Log) (*RouterOwnerChanged, error)
ParseOwnerChanged is a log parse operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c.
Solidity: event OwnerChanged(address indexed newOwner, address indexed oldOwner)
func (*RouterFilterer) ParseSwapTargetAdded ¶
func (_Router *RouterFilterer) ParseSwapTargetAdded(log types.Log) (*RouterSwapTargetAdded, error)
ParseSwapTargetAdded is a log parse operation binding the contract event 0xb907822409611d127ab6a64611591b98e03a6a85ade4f258bae26b7c1efdfeaf.
Solidity: event SwapTargetAdded(address indexed target)
func (*RouterFilterer) ParseSwapTargetRemoved ¶
func (_Router *RouterFilterer) ParseSwapTargetRemoved(log types.Log) (*RouterSwapTargetRemoved, error)
ParseSwapTargetRemoved is a log parse operation binding the contract event 0x393b8be3e26787f19285ecd039dfd80bc6507828750f4d50367e6efe2524695c.
Solidity: event SwapTargetRemoved(address indexed target)
func (*RouterFilterer) ParseTokenWithdrawn ¶
func (_Router *RouterFilterer) ParseTokenWithdrawn(log types.Log) (*RouterTokenWithdrawn, error)
ParseTokenWithdrawn is a log parse operation binding the contract event 0x8210728e7c071f615b840ee026032693858fbcd5e5359e67e438c890f59e5620.
Solidity: event TokenWithdrawn(address indexed token, address indexed target, uint256 amount)
func (*RouterFilterer) WatchEthWithdrawn ¶
func (_Router *RouterFilterer) WatchEthWithdrawn(opts *bind.WatchOpts, sink chan<- *RouterEthWithdrawn, target []common.Address) (event.Subscription, error)
WatchEthWithdrawn is a free log subscription operation binding the contract event 0x8455ae6be5d92f1df1c3c1484388e247a36c7e60d72055ae216dbc258f257d4b.
Solidity: event EthWithdrawn(address indexed target, uint256 amount)
func (*RouterFilterer) WatchOwnerChanged ¶
func (_Router *RouterFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *RouterOwnerChanged, newOwner []common.Address, oldOwner []common.Address) (event.Subscription, error)
WatchOwnerChanged is a free log subscription operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c.
Solidity: event OwnerChanged(address indexed newOwner, address indexed oldOwner)
func (*RouterFilterer) WatchSwapTargetAdded ¶
func (_Router *RouterFilterer) WatchSwapTargetAdded(opts *bind.WatchOpts, sink chan<- *RouterSwapTargetAdded, target []common.Address) (event.Subscription, error)
WatchSwapTargetAdded is a free log subscription operation binding the contract event 0xb907822409611d127ab6a64611591b98e03a6a85ade4f258bae26b7c1efdfeaf.
Solidity: event SwapTargetAdded(address indexed target)
func (*RouterFilterer) WatchSwapTargetRemoved ¶
func (_Router *RouterFilterer) WatchSwapTargetRemoved(opts *bind.WatchOpts, sink chan<- *RouterSwapTargetRemoved, target []common.Address) (event.Subscription, error)
WatchSwapTargetRemoved is a free log subscription operation binding the contract event 0x393b8be3e26787f19285ecd039dfd80bc6507828750f4d50367e6efe2524695c.
Solidity: event SwapTargetRemoved(address indexed target)
func (*RouterFilterer) WatchTokenWithdrawn ¶
func (_Router *RouterFilterer) WatchTokenWithdrawn(opts *bind.WatchOpts, sink chan<- *RouterTokenWithdrawn, token []common.Address, target []common.Address) (event.Subscription, error)
WatchTokenWithdrawn is a free log subscription operation binding the contract event 0x8210728e7c071f615b840ee026032693858fbcd5e5359e67e438c890f59e5620.
Solidity: event TokenWithdrawn(address indexed token, address indexed target, uint256 amount)
type RouterOwnerChanged ¶
type RouterOwnerChanged struct { NewOwner common.Address OldOwner common.Address Raw types.Log // Blockchain specific contextual infos }
RouterOwnerChanged represents a OwnerChanged event raised by the Router contract.
type RouterOwnerChangedIterator ¶
type RouterOwnerChangedIterator struct { Event *RouterOwnerChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
RouterOwnerChangedIterator is returned from FilterOwnerChanged and is used to iterate over the raw logs and unpacked data for OwnerChanged events raised by the Router contract.
func (*RouterOwnerChangedIterator) Close ¶
func (it *RouterOwnerChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RouterOwnerChangedIterator) Error ¶
func (it *RouterOwnerChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RouterOwnerChangedIterator) Next ¶
func (it *RouterOwnerChangedIterator) 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 RouterRaw ¶
type RouterRaw struct {
Contract *Router // Generic contract binding to access the raw methods on
}
RouterRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*RouterRaw) Call ¶
func (_Router *RouterRaw) 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 (*RouterRaw) Transact ¶
func (_Router *RouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*RouterRaw) Transfer ¶
func (_Router *RouterRaw) 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 RouterSession ¶
type RouterSession struct { Contract *Router // 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 }
RouterSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*RouterSession) FillQuoteEthToToken ¶
func (_Router *RouterSession) FillQuoteEthToToken(buyTokenAddress common.Address, target common.Address, swapCallData []byte, feeAmount *big.Int) (*types.Transaction, error)
FillQuoteEthToToken is a paid mutator transaction binding the contract method 0x3c2b9a7d.
Solidity: function fillQuoteEthToToken(address buyTokenAddress, address target, bytes swapCallData, uint256 feeAmount) payable returns()
func (*RouterSession) FillQuoteTokenToEth ¶
func (_Router *RouterSession) FillQuoteTokenToEth(sellTokenAddress common.Address, target common.Address, swapCallData []byte, sellAmount *big.Int, feePercentageBasisPoints *big.Int) (*types.Transaction, error)
FillQuoteTokenToEth is a paid mutator transaction binding the contract method 0x999b6464.
Solidity: function fillQuoteTokenToEth(address sellTokenAddress, address target, bytes swapCallData, uint256 sellAmount, uint256 feePercentageBasisPoints) payable returns()
func (*RouterSession) FillQuoteTokenToEthWithPermit ¶
func (_Router *RouterSession) FillQuoteTokenToEthWithPermit(sellTokenAddress common.Address, target common.Address, swapCallData []byte, sellAmount *big.Int, feePercentageBasisPoints *big.Int, permitData PermitHelperPermit) (*types.Transaction, error)
FillQuoteTokenToEthWithPermit is a paid mutator transaction binding the contract method 0xb3093838.
Solidity: function fillQuoteTokenToEthWithPermit(address sellTokenAddress, address target, bytes swapCallData, uint256 sellAmount, uint256 feePercentageBasisPoints, (uint256,uint256,uint256,bool,uint8,bytes32,bytes32) permitData) payable returns()
func (*RouterSession) FillQuoteTokenToToken ¶
func (_Router *RouterSession) FillQuoteTokenToToken(sellTokenAddress common.Address, buyTokenAddress common.Address, target common.Address, swapCallData []byte, sellAmount *big.Int, feeAmount *big.Int) (*types.Transaction, error)
FillQuoteTokenToToken is a paid mutator transaction binding the contract method 0x55e4b7be.
Solidity: function fillQuoteTokenToToken(address sellTokenAddress, address buyTokenAddress, address target, bytes swapCallData, uint256 sellAmount, uint256 feeAmount) payable returns()
func (*RouterSession) FillQuoteTokenToTokenWithPermit ¶
func (_Router *RouterSession) FillQuoteTokenToTokenWithPermit(sellTokenAddress common.Address, buyTokenAddress common.Address, target common.Address, swapCallData []byte, sellAmount *big.Int, feeAmount *big.Int, permitData PermitHelperPermit) (*types.Transaction, error)
FillQuoteTokenToTokenWithPermit is a paid mutator transaction binding the contract method 0xb0480bbd.
Solidity: function fillQuoteTokenToTokenWithPermit(address sellTokenAddress, address buyTokenAddress, address target, bytes swapCallData, uint256 sellAmount, uint256 feeAmount, (uint256,uint256,uint256,bool,uint8,bytes32,bytes32) permitData) payable returns()
func (*RouterSession) Owner ¶
func (_Router *RouterSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*RouterSession) Receive ¶
func (_Router *RouterSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*RouterSession) SwapTargets ¶
func (_Router *RouterSession) SwapTargets(arg0 common.Address) (bool, error)
SwapTargets is a free data retrieval call binding the contract method 0x83c4a19d.
Solidity: function swapTargets(address ) view returns(bool)
func (*RouterSession) TransferOwnership ¶
func (_Router *RouterSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*RouterSession) UpdateSwapTargets ¶
func (_Router *RouterSession) UpdateSwapTargets(target common.Address, add bool) (*types.Transaction, error)
UpdateSwapTargets is a paid mutator transaction binding the contract method 0x97bbda0e.
Solidity: function updateSwapTargets(address target, bool add) returns()
func (*RouterSession) WithdrawEth ¶
func (_Router *RouterSession) WithdrawEth(to common.Address, amount *big.Int) (*types.Transaction, error)
WithdrawEth is a paid mutator transaction binding the contract method 0x1b9a91a4.
Solidity: function withdrawEth(address to, uint256 amount) returns()
func (*RouterSession) WithdrawToken ¶
func (_Router *RouterSession) WithdrawToken(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
WithdrawToken is a paid mutator transaction binding the contract method 0x01e33667.
Solidity: function withdrawToken(address token, address to, uint256 amount) returns()
type RouterSwapTargetAdded ¶
type RouterSwapTargetAdded struct { Target common.Address Raw types.Log // Blockchain specific contextual infos }
RouterSwapTargetAdded represents a SwapTargetAdded event raised by the Router contract.
type RouterSwapTargetAddedIterator ¶
type RouterSwapTargetAddedIterator struct { Event *RouterSwapTargetAdded // Event containing the contract specifics and raw log // contains filtered or unexported fields }
RouterSwapTargetAddedIterator is returned from FilterSwapTargetAdded and is used to iterate over the raw logs and unpacked data for SwapTargetAdded events raised by the Router contract.
func (*RouterSwapTargetAddedIterator) Close ¶
func (it *RouterSwapTargetAddedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RouterSwapTargetAddedIterator) Error ¶
func (it *RouterSwapTargetAddedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RouterSwapTargetAddedIterator) Next ¶
func (it *RouterSwapTargetAddedIterator) 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 RouterSwapTargetRemoved ¶
type RouterSwapTargetRemoved struct { Target common.Address Raw types.Log // Blockchain specific contextual infos }
RouterSwapTargetRemoved represents a SwapTargetRemoved event raised by the Router contract.
type RouterSwapTargetRemovedIterator ¶
type RouterSwapTargetRemovedIterator struct { Event *RouterSwapTargetRemoved // Event containing the contract specifics and raw log // contains filtered or unexported fields }
RouterSwapTargetRemovedIterator is returned from FilterSwapTargetRemoved and is used to iterate over the raw logs and unpacked data for SwapTargetRemoved events raised by the Router contract.
func (*RouterSwapTargetRemovedIterator) Close ¶
func (it *RouterSwapTargetRemovedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RouterSwapTargetRemovedIterator) Error ¶
func (it *RouterSwapTargetRemovedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RouterSwapTargetRemovedIterator) Next ¶
func (it *RouterSwapTargetRemovedIterator) 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 RouterTokenWithdrawn ¶
type RouterTokenWithdrawn struct { Token common.Address Target common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
RouterTokenWithdrawn represents a TokenWithdrawn event raised by the Router contract.
type RouterTokenWithdrawnIterator ¶
type RouterTokenWithdrawnIterator struct { Event *RouterTokenWithdrawn // Event containing the contract specifics and raw log // contains filtered or unexported fields }
RouterTokenWithdrawnIterator is returned from FilterTokenWithdrawn and is used to iterate over the raw logs and unpacked data for TokenWithdrawn events raised by the Router contract.
func (*RouterTokenWithdrawnIterator) Close ¶
func (it *RouterTokenWithdrawnIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RouterTokenWithdrawnIterator) Error ¶
func (it *RouterTokenWithdrawnIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RouterTokenWithdrawnIterator) Next ¶
func (it *RouterTokenWithdrawnIterator) 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 RouterTransactor ¶
type RouterTransactor struct {
// contains filtered or unexported fields
}
RouterTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewRouterTransactor ¶
func NewRouterTransactor(address common.Address, transactor bind.ContractTransactor) (*RouterTransactor, error)
NewRouterTransactor creates a new write-only instance of Router, bound to a specific deployed contract.
func (*RouterTransactor) FillQuoteEthToToken ¶
func (_Router *RouterTransactor) FillQuoteEthToToken(opts *bind.TransactOpts, buyTokenAddress common.Address, target common.Address, swapCallData []byte, feeAmount *big.Int) (*types.Transaction, error)
FillQuoteEthToToken is a paid mutator transaction binding the contract method 0x3c2b9a7d.
Solidity: function fillQuoteEthToToken(address buyTokenAddress, address target, bytes swapCallData, uint256 feeAmount) payable returns()
func (*RouterTransactor) FillQuoteTokenToEth ¶
func (_Router *RouterTransactor) FillQuoteTokenToEth(opts *bind.TransactOpts, sellTokenAddress common.Address, target common.Address, swapCallData []byte, sellAmount *big.Int, feePercentageBasisPoints *big.Int) (*types.Transaction, error)
FillQuoteTokenToEth is a paid mutator transaction binding the contract method 0x999b6464.
Solidity: function fillQuoteTokenToEth(address sellTokenAddress, address target, bytes swapCallData, uint256 sellAmount, uint256 feePercentageBasisPoints) payable returns()
func (*RouterTransactor) FillQuoteTokenToEthWithPermit ¶
func (_Router *RouterTransactor) FillQuoteTokenToEthWithPermit(opts *bind.TransactOpts, sellTokenAddress common.Address, target common.Address, swapCallData []byte, sellAmount *big.Int, feePercentageBasisPoints *big.Int, permitData PermitHelperPermit) (*types.Transaction, error)
FillQuoteTokenToEthWithPermit is a paid mutator transaction binding the contract method 0xb3093838.
Solidity: function fillQuoteTokenToEthWithPermit(address sellTokenAddress, address target, bytes swapCallData, uint256 sellAmount, uint256 feePercentageBasisPoints, (uint256,uint256,uint256,bool,uint8,bytes32,bytes32) permitData) payable returns()
func (*RouterTransactor) FillQuoteTokenToToken ¶
func (_Router *RouterTransactor) FillQuoteTokenToToken(opts *bind.TransactOpts, sellTokenAddress common.Address, buyTokenAddress common.Address, target common.Address, swapCallData []byte, sellAmount *big.Int, feeAmount *big.Int) (*types.Transaction, error)
FillQuoteTokenToToken is a paid mutator transaction binding the contract method 0x55e4b7be.
Solidity: function fillQuoteTokenToToken(address sellTokenAddress, address buyTokenAddress, address target, bytes swapCallData, uint256 sellAmount, uint256 feeAmount) payable returns()
func (*RouterTransactor) FillQuoteTokenToTokenWithPermit ¶
func (_Router *RouterTransactor) FillQuoteTokenToTokenWithPermit(opts *bind.TransactOpts, sellTokenAddress common.Address, buyTokenAddress common.Address, target common.Address, swapCallData []byte, sellAmount *big.Int, feeAmount *big.Int, permitData PermitHelperPermit) (*types.Transaction, error)
FillQuoteTokenToTokenWithPermit is a paid mutator transaction binding the contract method 0xb0480bbd.
Solidity: function fillQuoteTokenToTokenWithPermit(address sellTokenAddress, address buyTokenAddress, address target, bytes swapCallData, uint256 sellAmount, uint256 feeAmount, (uint256,uint256,uint256,bool,uint8,bytes32,bytes32) permitData) payable returns()
func (*RouterTransactor) Receive ¶
func (_Router *RouterTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*RouterTransactor) TransferOwnership ¶
func (_Router *RouterTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*RouterTransactor) UpdateSwapTargets ¶
func (_Router *RouterTransactor) UpdateSwapTargets(opts *bind.TransactOpts, target common.Address, add bool) (*types.Transaction, error)
UpdateSwapTargets is a paid mutator transaction binding the contract method 0x97bbda0e.
Solidity: function updateSwapTargets(address target, bool add) returns()
func (*RouterTransactor) WithdrawEth ¶
func (_Router *RouterTransactor) WithdrawEth(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
WithdrawEth is a paid mutator transaction binding the contract method 0x1b9a91a4.
Solidity: function withdrawEth(address to, uint256 amount) returns()
func (*RouterTransactor) WithdrawToken ¶
func (_Router *RouterTransactor) WithdrawToken(opts *bind.TransactOpts, token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
WithdrawToken is a paid mutator transaction binding the contract method 0x01e33667.
Solidity: function withdrawToken(address token, address to, uint256 amount) returns()
type RouterTransactorRaw ¶
type RouterTransactorRaw struct {
Contract *RouterTransactor // Generic write-only contract binding to access the raw methods on
}
RouterTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*RouterTransactorRaw) Transact ¶
func (_Router *RouterTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*RouterTransactorRaw) Transfer ¶
func (_Router *RouterTransactorRaw) 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 RouterTransactorSession ¶
type RouterTransactorSession struct { Contract *RouterTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
RouterTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*RouterTransactorSession) FillQuoteEthToToken ¶
func (_Router *RouterTransactorSession) FillQuoteEthToToken(buyTokenAddress common.Address, target common.Address, swapCallData []byte, feeAmount *big.Int) (*types.Transaction, error)
FillQuoteEthToToken is a paid mutator transaction binding the contract method 0x3c2b9a7d.
Solidity: function fillQuoteEthToToken(address buyTokenAddress, address target, bytes swapCallData, uint256 feeAmount) payable returns()
func (*RouterTransactorSession) FillQuoteTokenToEth ¶
func (_Router *RouterTransactorSession) FillQuoteTokenToEth(sellTokenAddress common.Address, target common.Address, swapCallData []byte, sellAmount *big.Int, feePercentageBasisPoints *big.Int) (*types.Transaction, error)
FillQuoteTokenToEth is a paid mutator transaction binding the contract method 0x999b6464.
Solidity: function fillQuoteTokenToEth(address sellTokenAddress, address target, bytes swapCallData, uint256 sellAmount, uint256 feePercentageBasisPoints) payable returns()
func (*RouterTransactorSession) FillQuoteTokenToEthWithPermit ¶
func (_Router *RouterTransactorSession) FillQuoteTokenToEthWithPermit(sellTokenAddress common.Address, target common.Address, swapCallData []byte, sellAmount *big.Int, feePercentageBasisPoints *big.Int, permitData PermitHelperPermit) (*types.Transaction, error)
FillQuoteTokenToEthWithPermit is a paid mutator transaction binding the contract method 0xb3093838.
Solidity: function fillQuoteTokenToEthWithPermit(address sellTokenAddress, address target, bytes swapCallData, uint256 sellAmount, uint256 feePercentageBasisPoints, (uint256,uint256,uint256,bool,uint8,bytes32,bytes32) permitData) payable returns()
func (*RouterTransactorSession) FillQuoteTokenToToken ¶
func (_Router *RouterTransactorSession) FillQuoteTokenToToken(sellTokenAddress common.Address, buyTokenAddress common.Address, target common.Address, swapCallData []byte, sellAmount *big.Int, feeAmount *big.Int) (*types.Transaction, error)
FillQuoteTokenToToken is a paid mutator transaction binding the contract method 0x55e4b7be.
Solidity: function fillQuoteTokenToToken(address sellTokenAddress, address buyTokenAddress, address target, bytes swapCallData, uint256 sellAmount, uint256 feeAmount) payable returns()
func (*RouterTransactorSession) FillQuoteTokenToTokenWithPermit ¶
func (_Router *RouterTransactorSession) FillQuoteTokenToTokenWithPermit(sellTokenAddress common.Address, buyTokenAddress common.Address, target common.Address, swapCallData []byte, sellAmount *big.Int, feeAmount *big.Int, permitData PermitHelperPermit) (*types.Transaction, error)
FillQuoteTokenToTokenWithPermit is a paid mutator transaction binding the contract method 0xb0480bbd.
Solidity: function fillQuoteTokenToTokenWithPermit(address sellTokenAddress, address buyTokenAddress, address target, bytes swapCallData, uint256 sellAmount, uint256 feeAmount, (uint256,uint256,uint256,bool,uint8,bytes32,bytes32) permitData) payable returns()
func (*RouterTransactorSession) Receive ¶
func (_Router *RouterTransactorSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*RouterTransactorSession) TransferOwnership ¶
func (_Router *RouterTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*RouterTransactorSession) UpdateSwapTargets ¶
func (_Router *RouterTransactorSession) UpdateSwapTargets(target common.Address, add bool) (*types.Transaction, error)
UpdateSwapTargets is a paid mutator transaction binding the contract method 0x97bbda0e.
Solidity: function updateSwapTargets(address target, bool add) returns()
func (*RouterTransactorSession) WithdrawEth ¶
func (_Router *RouterTransactorSession) WithdrawEth(to common.Address, amount *big.Int) (*types.Transaction, error)
WithdrawEth is a paid mutator transaction binding the contract method 0x1b9a91a4.
Solidity: function withdrawEth(address to, uint256 amount) returns()
func (*RouterTransactorSession) WithdrawToken ¶
func (_Router *RouterTransactorSession) WithdrawToken(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
WithdrawToken is a paid mutator transaction binding the contract method 0x01e33667.
Solidity: function withdrawToken(address token, address to, uint256 amount) returns()