Versions in this module Expand all Collapse all v1 v1.2.0 Nov 21, 2024 v1.1.3 Nov 6, 2024 v1.1.2 Nov 6, 2024 v1.1.1 Oct 17, 2024 v1.1.0 Oct 17, 2024 Changes in this version + var AddressRouter = common.HexToAddress("0x00000000009726632680FB29d3F7A9734E3010E2") + var MethodIDRouterFillQuoteEthToToken = contract.MethodID("fillQuoteEthToToken(address,address,bytes,uint256)") + var MethodIDRouterFillQuoteTokenToEth = contract.MethodID("fillQuoteTokenToEth(address,address,bytes,uint256,uint256)") + var MethodIDRouterFillQuoteTokenToToken = contract.MethodID("fillQuoteTokenToToken(address,address,address,bytes,uint256,uint256)") + var RouterABI = RouterMetaData.ABI + var RouterMetaData = &bind.MetaData + type PermitHelperPermit struct + Deadline *big.Int + IsDaiStylePermit bool + Nonce *big.Int + R [32]byte + S [32]byte + V uint8 + Value *big.Int + type Router struct + func NewRouter(address common.Address, backend bind.ContractBackend) (*Router, error) + type RouterCaller struct + func NewRouterCaller(address common.Address, caller bind.ContractCaller) (*RouterCaller, error) + func (_Router *RouterCaller) Owner(opts *bind.CallOpts) (common.Address, error) + func (_Router *RouterCaller) SwapTargets(opts *bind.CallOpts, arg0 common.Address) (bool, error) + type RouterCallerRaw struct + Contract *RouterCaller + func (_Router *RouterCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + type RouterCallerSession struct + CallOpts bind.CallOpts + Contract *RouterCaller + func (_Router *RouterCallerSession) Owner() (common.Address, error) + func (_Router *RouterCallerSession) SwapTargets(arg0 common.Address) (bool, error) + type RouterEthWithdrawn struct + Amount *big.Int + Raw types.Log + Target common.Address + type RouterEthWithdrawnIterator struct + Event *RouterEthWithdrawn + func (it *RouterEthWithdrawnIterator) Close() error + func (it *RouterEthWithdrawnIterator) Error() error + func (it *RouterEthWithdrawnIterator) Next() bool + type RouterFillQuoteEthToTokenInput struct + BuyTokenAddress common.Address + FeeAmount *big.Int + SwapCallData []byte + Target common.Address + type RouterFillQuoteTokenToEthInput struct + FeePercentageBasisPoints *big.Int + SellAmount *big.Int + SellTokenAddress common.Address + SwapCallData []byte + Target common.Address + type RouterFillQuoteTokenToTokenInput struct + BuyTokenAddress common.Address + FeeAmount *big.Int + SellAmount *big.Int + SellTokenAddress common.Address + SwapCallData []byte + Target common.Address + type RouterFilterer struct + func NewRouterFilterer(address common.Address, filterer bind.ContractFilterer) (*RouterFilterer, error) + 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 struct + NewOwner common.Address + OldOwner common.Address + Raw types.Log + type RouterOwnerChangedIterator struct + Event *RouterOwnerChanged + func (it *RouterOwnerChangedIterator) Close() error + func (it *RouterOwnerChangedIterator) Error() error + func (it *RouterOwnerChangedIterator) Next() bool + type RouterRaw struct + Contract *Router + func (_Router *RouterRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + func (_Router *RouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Router *RouterRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type RouterSession struct + CallOpts bind.CallOpts + Contract *Router + TransactOpts bind.TransactOpts + func (_Router *RouterSession) 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 struct + Raw types.Log + Target common.Address + type RouterSwapTargetAddedIterator struct + Event *RouterSwapTargetAdded + func (it *RouterSwapTargetAddedIterator) Close() error + func (it *RouterSwapTargetAddedIterator) Error() error + func (it *RouterSwapTargetAddedIterator) Next() bool + type RouterSwapTargetRemoved struct + Raw types.Log + Target common.Address + type RouterSwapTargetRemovedIterator struct + Event *RouterSwapTargetRemoved + func (it *RouterSwapTargetRemovedIterator) Close() error + func (it *RouterSwapTargetRemovedIterator) Error() error + func (it *RouterSwapTargetRemovedIterator) Next() bool + type RouterTokenWithdrawn struct + Amount *big.Int + Raw types.Log + Target common.Address + Token common.Address + type RouterTokenWithdrawnIterator struct + Event *RouterTokenWithdrawn + func (it *RouterTokenWithdrawnIterator) Close() error + func (it *RouterTokenWithdrawnIterator) Error() error + func (it *RouterTokenWithdrawnIterator) Next() bool + type RouterTransactor struct + func NewRouterTransactor(address common.Address, transactor bind.ContractTransactor) (*RouterTransactor, error) + 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 struct + Contract *RouterTransactor + func (_Router *RouterTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Router *RouterTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type RouterTransactorSession struct + Contract *RouterTransactor + TransactOpts bind.TransactOpts + func (_Router *RouterTransactorSession) 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)