Documentation
¶
Index ¶
- Variables
- type AbsoluteTokenAmount
- type AccountSignature
- type Fee
- type Input
- type Permit
- type ProtocolFeeSignature
- type Router
- type RouterCaller
- func (_Router *RouterCaller) GetOwner(opts *bind.CallOpts) (common.Address, error)
- func (_Router *RouterCaller) GetPendingOwner(opts *bind.CallOpts) (common.Address, error)
- func (_Router *RouterCaller) GetProtocolFeeDefault(opts *bind.CallOpts) (Fee, error)
- func (_Router *RouterCaller) GetProtocolFeeSigner(opts *bind.CallOpts) (common.Address, error)
- func (_Router *RouterCaller) HashAccountSignatureData(opts *bind.CallOpts, input Input, output AbsoluteTokenAmount, ...) ([32]byte, error)
- func (_Router *RouterCaller) HashProtocolFeeSignatureData(opts *bind.CallOpts, input Input, output AbsoluteTokenAmount, ...) ([32]byte, error)
- func (_Router *RouterCaller) IsHashUsed(opts *bind.CallOpts, hashToCheck [32]byte) (bool, error)
- type RouterCallerRaw
- type RouterCallerSession
- func (_Router *RouterCallerSession) GetOwner() (common.Address, error)
- func (_Router *RouterCallerSession) GetPendingOwner() (common.Address, error)
- func (_Router *RouterCallerSession) GetProtocolFeeDefault() (Fee, error)
- func (_Router *RouterCallerSession) GetProtocolFeeSigner() (common.Address, error)
- func (_Router *RouterCallerSession) HashAccountSignatureData(input Input, output AbsoluteTokenAmount, swapDescription SwapDescription, ...) ([32]byte, error)
- func (_Router *RouterCallerSession) HashProtocolFeeSignatureData(input Input, output AbsoluteTokenAmount, swapDescription SwapDescription, ...) ([32]byte, error)
- func (_Router *RouterCallerSession) IsHashUsed(hashToCheck [32]byte) (bool, error)
- type RouterExecuted
- type RouterExecutedIterator
- type RouterFilterer
- func (_Router *RouterFilterer) FilterExecuted(opts *bind.FilterOpts, inputToken []common.Address, ...) (*RouterExecutedIterator, error)
- func (_Router *RouterFilterer) FilterOwnerSet(opts *bind.FilterOpts, oldOwner []common.Address, newOwner []common.Address) (*RouterOwnerSetIterator, error)
- func (_Router *RouterFilterer) FilterPendingOwnerSet(opts *bind.FilterOpts, oldPendingOwner []common.Address, ...) (*RouterPendingOwnerSetIterator, error)
- func (_Router *RouterFilterer) FilterProtocolFeeDefaultSet(opts *bind.FilterOpts, oldProtocolFeeDefaultBeneficiary []common.Address, ...) (*RouterProtocolFeeDefaultSetIterator, error)
- func (_Router *RouterFilterer) FilterProtocolFeeSignerSet(opts *bind.FilterOpts, oldProtocolFeeSigner []common.Address, ...) (*RouterProtocolFeeSignerSetIterator, error)
- func (_Router *RouterFilterer) ParseExecuted(log types.Log) (*RouterExecuted, error)
- func (_Router *RouterFilterer) ParseOwnerSet(log types.Log) (*RouterOwnerSet, error)
- func (_Router *RouterFilterer) ParsePendingOwnerSet(log types.Log) (*RouterPendingOwnerSet, error)
- func (_Router *RouterFilterer) ParseProtocolFeeDefaultSet(log types.Log) (*RouterProtocolFeeDefaultSet, error)
- func (_Router *RouterFilterer) ParseProtocolFeeSignerSet(log types.Log) (*RouterProtocolFeeSignerSet, error)
- func (_Router *RouterFilterer) WatchExecuted(opts *bind.WatchOpts, sink chan<- *RouterExecuted, inputToken []common.Address, ...) (event.Subscription, error)
- func (_Router *RouterFilterer) WatchOwnerSet(opts *bind.WatchOpts, sink chan<- *RouterOwnerSet, oldOwner []common.Address, ...) (event.Subscription, error)
- func (_Router *RouterFilterer) WatchPendingOwnerSet(opts *bind.WatchOpts, sink chan<- *RouterPendingOwnerSet, ...) (event.Subscription, error)
- func (_Router *RouterFilterer) WatchProtocolFeeDefaultSet(opts *bind.WatchOpts, sink chan<- *RouterProtocolFeeDefaultSet, ...) (event.Subscription, error)
- func (_Router *RouterFilterer) WatchProtocolFeeSignerSet(opts *bind.WatchOpts, sink chan<- *RouterProtocolFeeSignerSet, ...) (event.Subscription, error)
- type RouterOwnerSet
- type RouterOwnerSetIterator
- type RouterPendingOwnerSet
- type RouterPendingOwnerSetIterator
- type RouterProtocolFeeDefaultSet
- type RouterProtocolFeeDefaultSetIterator
- type RouterProtocolFeeSignerSet
- type RouterProtocolFeeSignerSetIterator
- 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) CancelAccountSignature(input Input, output AbsoluteTokenAmount, swapDescription SwapDescription, ...) (*types.Transaction, error)
- func (_Router *RouterSession) Execute(input Input, output AbsoluteTokenAmount, swapDescription SwapDescription, ...) (*types.Transaction, error)
- func (_Router *RouterSession) GetOwner() (common.Address, error)
- func (_Router *RouterSession) GetPendingOwner() (common.Address, error)
- func (_Router *RouterSession) GetProtocolFeeDefault() (Fee, error)
- func (_Router *RouterSession) GetProtocolFeeSigner() (common.Address, error)
- func (_Router *RouterSession) HashAccountSignatureData(input Input, output AbsoluteTokenAmount, swapDescription SwapDescription, ...) ([32]byte, error)
- func (_Router *RouterSession) HashProtocolFeeSignatureData(input Input, output AbsoluteTokenAmount, swapDescription SwapDescription, ...) ([32]byte, error)
- func (_Router *RouterSession) IsHashUsed(hashToCheck [32]byte) (bool, error)
- func (_Router *RouterSession) Receive() (*types.Transaction, error)
- func (_Router *RouterSession) ReturnLostTokens(token common.Address, beneficiary common.Address) (*types.Transaction, error)
- func (_Router *RouterSession) SetOwner() (*types.Transaction, error)
- func (_Router *RouterSession) SetPendingOwner(newPendingOwner common.Address) (*types.Transaction, error)
- func (_Router *RouterSession) SetProtocolFeeDefault(protocolFeeDefault Fee) (*types.Transaction, error)
- func (_Router *RouterSession) SetProtocolFeeSigner(signer common.Address) (*types.Transaction, error)
- type RouterTransactor
- func (_Router *RouterTransactor) CancelAccountSignature(opts *bind.TransactOpts, input Input, output AbsoluteTokenAmount, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) Execute(opts *bind.TransactOpts, input Input, output AbsoluteTokenAmount, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Router *RouterTransactor) ReturnLostTokens(opts *bind.TransactOpts, token common.Address, beneficiary common.Address) (*types.Transaction, error)
- func (_Router *RouterTransactor) SetOwner(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Router *RouterTransactor) SetPendingOwner(opts *bind.TransactOpts, newPendingOwner common.Address) (*types.Transaction, error)
- func (_Router *RouterTransactor) SetProtocolFeeDefault(opts *bind.TransactOpts, protocolFeeDefault Fee) (*types.Transaction, error)
- func (_Router *RouterTransactor) SetProtocolFeeSigner(opts *bind.TransactOpts, signer common.Address) (*types.Transaction, error)
- type RouterTransactorRaw
- type RouterTransactorSession
- func (_Router *RouterTransactorSession) CancelAccountSignature(input Input, output AbsoluteTokenAmount, swapDescription SwapDescription, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) Execute(input Input, output AbsoluteTokenAmount, swapDescription SwapDescription, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) Receive() (*types.Transaction, error)
- func (_Router *RouterTransactorSession) ReturnLostTokens(token common.Address, beneficiary common.Address) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) SetOwner() (*types.Transaction, error)
- func (_Router *RouterTransactorSession) SetPendingOwner(newPendingOwner common.Address) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) SetProtocolFeeDefault(protocolFeeDefault Fee) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) SetProtocolFeeSigner(signer common.Address) (*types.Transaction, error)
- type SwapDescription
- type TokenAmount
Constants ¶
This section is empty.
Variables ¶
var ( AddressRouter = common.HexToAddress("0xd7F1Dd5D49206349CaE8b585fcB0Ce3D96f1696F") AddressNativeToken = common.HexToAddress("0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE") EventHashExecuted = contract.EventHash("Executed(address,uint256,uint256,address,uint256,uint256,uint256,uint256,(uint8,(uint256,address),(uint256,address),address,address,bytes),address)") )
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\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"expectedAccount\",\"type\":\"address\"}],\"name\":\"BadAccount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BadAccountSignature\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"requiredAmount\",\"type\":\"uint256\"}],\"name\":\"BadAmount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"enumAmountType\",\"name\":\"amountType\",\"type\":\"uint8\"},{\"internalType\":\"enumAmountType\",\"name\":\"requiredAmountType\",\"type\":\"uint8\"}],\"name\":\"BadAmountType\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"actualFeeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expectedFeeAmount\",\"type\":\"uint256\"}],\"name\":\"BadFeeAmount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"protocolFeeBanaficiary\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"baseProtocolFeeBeneficiary\",\"type\":\"address\"}],\"name\":\"BadFeeBeneficiary\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"protocolFeeShare\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseProtocolFeeShare\",\"type\":\"uint256\"}],\"name\":\"BadFeeShare\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BadFeeSignature\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"ExceedingDelimiterAmount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"feeShare\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeLimit\",\"type\":\"uint256\"}],\"name\":\"ExceedingLimitFee\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"inputBalanceChange\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"requiredInputBalanceChange\",\"type\":\"uint256\"}],\"name\":\"HighInputBalanceChange\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"allowance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"requiredAllowance\",\"type\":\"uint256\"}],\"name\":\"InsufficientAllowance\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"msgValue\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"requiredMsgValue\",\"type\":\"uint256\"}],\"name\":\"InsufficientMsgValue\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"actualOutputAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"requiredActualOutputAmount\",\"type\":\"uint256\"}],\"name\":\"LowActualOutputAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoneAmountType\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NonePermitType\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoneSwapType\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"PassedDeadline\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"name\":\"UsedHash\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroFeeBeneficiary\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroReceiver\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroSigner\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"inputToken\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"absoluteInputAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"inputBalanceChange\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"outputToken\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"absoluteOutputAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"returnedAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"protocolFeeAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"marketplaceFeeAmount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"enumSwapType\",\"name\":\"swapType\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"share\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"}],\"internalType\":\"structFee\",\"name\":\"protocolFee\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"share\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"}],\"internalType\":\"structFee\",\"name\":\"marketplaceFee\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callerCallData\",\"type\":\"bytes\"}],\"indexed\":false,\"internalType\":\"structSwapDescription\",\"name\":\"swapDescription\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"Executed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldPendingOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newPendingOwner\",\"type\":\"address\"}],\"name\":\"PendingOwnerSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldProtocolFeeDefaultShare\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldProtocolFeeDefaultBeneficiary\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newProtocolFeeDefaultShare\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newProtocolFeeDefaultBeneficiary\",\"type\":\"address\"}],\"name\":\"ProtocolFeeDefaultSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldProtocolFeeSigner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newProtocolFeeSigner\",\"type\":\"address\"}],\"name\":\"ProtocolFeeSignerSet\",\"type\":\"event\"},{\"inputs\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"enumAmountType\",\"name\":\"amountType\",\"type\":\"uint8\"}],\"internalType\":\"structTokenAmount\",\"name\":\"tokenAmount\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enumPermitType\",\"name\":\"permitType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"permitCallData\",\"type\":\"bytes\"}],\"internalType\":\"structPermit\",\"name\":\"permit\",\"type\":\"tuple\"}],\"internalType\":\"structInput\",\"name\":\"input\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"absoluteAmount\",\"type\":\"uint256\"}],\"internalType\":\"structAbsoluteTokenAmount\",\"name\":\"output\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enumSwapType\",\"name\":\"swapType\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"share\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"}],\"internalType\":\"structFee\",\"name\":\"protocolFee\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"share\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"}],\"internalType\":\"structFee\",\"name\":\"marketplaceFee\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callerCallData\",\"type\":\"bytes\"}],\"internalType\":\"structSwapDescription\",\"name\":\"swapDescription\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"salt\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structAccountSignature\",\"name\":\"accountSignature\",\"type\":\"tuple\"}],\"name\":\"cancelAccountSignature\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"enumAmountType\",\"name\":\"amountType\",\"type\":\"uint8\"}],\"internalType\":\"structTokenAmount\",\"name\":\"tokenAmount\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enumPermitType\",\"name\":\"permitType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"permitCallData\",\"type\":\"bytes\"}],\"internalType\":\"structPermit\",\"name\":\"permit\",\"type\":\"tuple\"}],\"internalType\":\"structInput\",\"name\":\"input\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"absoluteAmount\",\"type\":\"uint256\"}],\"internalType\":\"structAbsoluteTokenAmount\",\"name\":\"output\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enumSwapType\",\"name\":\"swapType\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"share\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"}],\"internalType\":\"structFee\",\"name\":\"protocolFee\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"share\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"}],\"internalType\":\"structFee\",\"name\":\"marketplaceFee\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callerCallData\",\"type\":\"bytes\"}],\"internalType\":\"structSwapDescription\",\"name\":\"swapDescription\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"salt\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structAccountSignature\",\"name\":\"accountSignature\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structProtocolFeeSignature\",\"name\":\"protocolFeeSignature\",\"type\":\"tuple\"}],\"name\":\"execute\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"inputBalanceChange\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"actualOutputAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolFeeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"marketplaceFeeAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pendingOwner\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getProtocolFeeDefault\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"share\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"}],\"internalType\":\"structFee\",\"name\":\"protocolFeeDefault\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getProtocolFeeSigner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"protocolFeeSigner\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"enumAmountType\",\"name\":\"amountType\",\"type\":\"uint8\"}],\"internalType\":\"structTokenAmount\",\"name\":\"tokenAmount\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enumPermitType\",\"name\":\"permitType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"permitCallData\",\"type\":\"bytes\"}],\"internalType\":\"structPermit\",\"name\":\"permit\",\"type\":\"tuple\"}],\"internalType\":\"structInput\",\"name\":\"input\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"absoluteAmount\",\"type\":\"uint256\"}],\"internalType\":\"structAbsoluteTokenAmount\",\"name\":\"output\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enumSwapType\",\"name\":\"swapType\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"share\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"}],\"internalType\":\"structFee\",\"name\":\"protocolFee\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"share\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"}],\"internalType\":\"structFee\",\"name\":\"marketplaceFee\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callerCallData\",\"type\":\"bytes\"}],\"internalType\":\"structSwapDescription\",\"name\":\"swapDescription\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"salt\",\"type\":\"uint256\"}],\"name\":\"hashAccountSignatureData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashedData\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"enumAmountType\",\"name\":\"amountType\",\"type\":\"uint8\"}],\"internalType\":\"structTokenAmount\",\"name\":\"tokenAmount\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enumPermitType\",\"name\":\"permitType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"permitCallData\",\"type\":\"bytes\"}],\"internalType\":\"structPermit\",\"name\":\"permit\",\"type\":\"tuple\"}],\"internalType\":\"structInput\",\"name\":\"input\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"absoluteAmount\",\"type\":\"uint256\"}],\"internalType\":\"structAbsoluteTokenAmount\",\"name\":\"output\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enumSwapType\",\"name\":\"swapType\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"share\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"}],\"internalType\":\"structFee\",\"name\":\"protocolFee\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"share\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"}],\"internalType\":\"structFee\",\"name\":\"marketplaceFee\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callerCallData\",\"type\":\"bytes\"}],\"internalType\":\"structSwapDescription\",\"name\":\"swapDescription\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"hashProtocolFeeSignatureData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashedData\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashToCheck\",\"type\":\"bytes32\"}],\"name\":\"isHashUsed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"hashUsed\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"addresspayable\",\"name\":\"beneficiary\",\"type\":\"address\"}],\"name\":\"returnLostTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"setOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newPendingOwner\",\"type\":\"address\"}],\"name\":\"setPendingOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"share\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"}],\"internalType\":\"structFee\",\"name\":\"protocolFeeDefault\",\"type\":\"tuple\"}],\"name\":\"setProtocolFeeDefault\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"}],\"name\":\"setProtocolFeeSigner\",\"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 AbsoluteTokenAmount ¶
AbsoluteTokenAmount is an auto generated low-level Go binding around an user-defined struct.
type AccountSignature ¶
AccountSignature is an auto generated low-level Go binding around an user-defined struct.
type Input ¶
type Input struct { TokenAmount TokenAmount Permit Permit }
Input is an auto generated low-level Go binding around an user-defined struct.
type ProtocolFeeSignature ¶
ProtocolFeeSignature 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) GetOwner ¶
GetOwner is a free data retrieval call binding the contract method 0x893d20e8.
Solidity: function getOwner() view returns(address owner)
func (*RouterCaller) GetPendingOwner ¶
GetPendingOwner is a free data retrieval call binding the contract method 0x93596c7b.
Solidity: function getPendingOwner() view returns(address pendingOwner)
func (*RouterCaller) GetProtocolFeeDefault ¶
func (_Router *RouterCaller) GetProtocolFeeDefault(opts *bind.CallOpts) (Fee, error)
GetProtocolFeeDefault is a free data retrieval call binding the contract method 0x92ff2806.
Solidity: function getProtocolFeeDefault() view returns((uint256,address) protocolFeeDefault)
func (*RouterCaller) GetProtocolFeeSigner ¶
GetProtocolFeeSigner is a free data retrieval call binding the contract method 0xec5afea7.
Solidity: function getProtocolFeeSigner() view returns(address protocolFeeSigner)
func (*RouterCaller) HashAccountSignatureData ¶
func (_Router *RouterCaller) HashAccountSignatureData(opts *bind.CallOpts, input Input, output AbsoluteTokenAmount, swapDescription SwapDescription, salt *big.Int) ([32]byte, error)
HashAccountSignatureData is a free data retrieval call binding the contract method 0xe1b92a9c.
Solidity: function hashAccountSignatureData(((address,uint256,uint8),(uint8,bytes)) input, (address,uint256) output, (uint8,(uint256,address),(uint256,address),address,address,bytes) swapDescription, uint256 salt) view returns(bytes32 hashedData)
func (*RouterCaller) HashProtocolFeeSignatureData ¶
func (_Router *RouterCaller) HashProtocolFeeSignatureData(opts *bind.CallOpts, input Input, output AbsoluteTokenAmount, swapDescription SwapDescription, deadline *big.Int) ([32]byte, error)
HashProtocolFeeSignatureData is a free data retrieval call binding the contract method 0xebfa1a61.
Solidity: function hashProtocolFeeSignatureData(((address,uint256,uint8),(uint8,bytes)) input, (address,uint256) output, (uint8,(uint256,address),(uint256,address),address,address,bytes) swapDescription, uint256 deadline) view returns(bytes32 hashedData)
func (*RouterCaller) IsHashUsed ¶
IsHashUsed is a free data retrieval call binding the contract method 0x20021d8b.
Solidity: function isHashUsed(bytes32 hashToCheck) view returns(bool hashUsed)
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) GetOwner ¶
func (_Router *RouterCallerSession) GetOwner() (common.Address, error)
GetOwner is a free data retrieval call binding the contract method 0x893d20e8.
Solidity: function getOwner() view returns(address owner)
func (*RouterCallerSession) GetPendingOwner ¶
func (_Router *RouterCallerSession) GetPendingOwner() (common.Address, error)
GetPendingOwner is a free data retrieval call binding the contract method 0x93596c7b.
Solidity: function getPendingOwner() view returns(address pendingOwner)
func (*RouterCallerSession) GetProtocolFeeDefault ¶
func (_Router *RouterCallerSession) GetProtocolFeeDefault() (Fee, error)
GetProtocolFeeDefault is a free data retrieval call binding the contract method 0x92ff2806.
Solidity: function getProtocolFeeDefault() view returns((uint256,address) protocolFeeDefault)
func (*RouterCallerSession) GetProtocolFeeSigner ¶
func (_Router *RouterCallerSession) GetProtocolFeeSigner() (common.Address, error)
GetProtocolFeeSigner is a free data retrieval call binding the contract method 0xec5afea7.
Solidity: function getProtocolFeeSigner() view returns(address protocolFeeSigner)
func (*RouterCallerSession) HashAccountSignatureData ¶
func (_Router *RouterCallerSession) HashAccountSignatureData(input Input, output AbsoluteTokenAmount, swapDescription SwapDescription, salt *big.Int) ([32]byte, error)
HashAccountSignatureData is a free data retrieval call binding the contract method 0xe1b92a9c.
Solidity: function hashAccountSignatureData(((address,uint256,uint8),(uint8,bytes)) input, (address,uint256) output, (uint8,(uint256,address),(uint256,address),address,address,bytes) swapDescription, uint256 salt) view returns(bytes32 hashedData)
func (*RouterCallerSession) HashProtocolFeeSignatureData ¶
func (_Router *RouterCallerSession) HashProtocolFeeSignatureData(input Input, output AbsoluteTokenAmount, swapDescription SwapDescription, deadline *big.Int) ([32]byte, error)
HashProtocolFeeSignatureData is a free data retrieval call binding the contract method 0xebfa1a61.
Solidity: function hashProtocolFeeSignatureData(((address,uint256,uint8),(uint8,bytes)) input, (address,uint256) output, (uint8,(uint256,address),(uint256,address),address,address,bytes) swapDescription, uint256 deadline) view returns(bytes32 hashedData)
func (*RouterCallerSession) IsHashUsed ¶
func (_Router *RouterCallerSession) IsHashUsed(hashToCheck [32]byte) (bool, error)
IsHashUsed is a free data retrieval call binding the contract method 0x20021d8b.
Solidity: function isHashUsed(bytes32 hashToCheck) view returns(bool hashUsed)
type RouterExecuted ¶
type RouterExecuted struct { InputToken common.Address AbsoluteInputAmount *big.Int InputBalanceChange *big.Int OutputToken common.Address AbsoluteOutputAmount *big.Int ReturnedAmount *big.Int ProtocolFeeAmount *big.Int MarketplaceFeeAmount *big.Int SwapDescription SwapDescription Sender common.Address Raw types.Log // Blockchain specific contextual infos }
RouterExecuted represents a Executed event raised by the Router contract.
type RouterExecutedIterator ¶
type RouterExecutedIterator struct { Event *RouterExecuted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
RouterExecutedIterator is returned from FilterExecuted and is used to iterate over the raw logs and unpacked data for Executed events raised by the Router contract.
func (*RouterExecutedIterator) Close ¶
func (it *RouterExecutedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RouterExecutedIterator) Error ¶
func (it *RouterExecutedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RouterExecutedIterator) Next ¶
func (it *RouterExecutedIterator) 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) FilterExecuted ¶
func (_Router *RouterFilterer) FilterExecuted(opts *bind.FilterOpts, inputToken []common.Address, outputToken []common.Address) (*RouterExecutedIterator, error)
FilterExecuted is a free log retrieval operation binding the contract event 0x5b99554095b82fa9d0725a9ff1f1db8bc3e4d461e7d61911c752c349a47b987f.
Solidity: event Executed(address indexed inputToken, uint256 absoluteInputAmount, uint256 inputBalanceChange, address indexed outputToken, uint256 absoluteOutputAmount, uint256 returnedAmount, uint256 protocolFeeAmount, uint256 marketplaceFeeAmount, (uint8,(uint256,address),(uint256,address),address,address,bytes) swapDescription, address sender)
func (*RouterFilterer) FilterOwnerSet ¶
func (_Router *RouterFilterer) FilterOwnerSet(opts *bind.FilterOpts, oldOwner []common.Address, newOwner []common.Address) (*RouterOwnerSetIterator, error)
FilterOwnerSet is a free log retrieval operation binding the contract event 0x342827c97908e5e2f71151c08502a66d44b6f758e3ac2f1de95f02eb95f0a735.
Solidity: event OwnerSet(address indexed oldOwner, address indexed newOwner)
func (*RouterFilterer) FilterPendingOwnerSet ¶
func (_Router *RouterFilterer) FilterPendingOwnerSet(opts *bind.FilterOpts, oldPendingOwner []common.Address, newPendingOwner []common.Address) (*RouterPendingOwnerSetIterator, error)
FilterPendingOwnerSet is a free log retrieval operation binding the contract event 0xa86864fa6b65f969d5ac8391ddaac6a0eba3f41386cbf6e78c3e4d6c59eb115f.
Solidity: event PendingOwnerSet(address indexed oldPendingOwner, address indexed newPendingOwner)
func (*RouterFilterer) FilterProtocolFeeDefaultSet ¶
func (_Router *RouterFilterer) FilterProtocolFeeDefaultSet(opts *bind.FilterOpts, oldProtocolFeeDefaultBeneficiary []common.Address, newProtocolFeeDefaultBeneficiary []common.Address) (*RouterProtocolFeeDefaultSetIterator, error)
FilterProtocolFeeDefaultSet is a free log retrieval operation binding the contract event 0xbed3189b824b5183bdd720fd47ce4f7747e55802778e0c0010d61647d4b60360.
Solidity: event ProtocolFeeDefaultSet(uint256 oldProtocolFeeDefaultShare, address indexed oldProtocolFeeDefaultBeneficiary, uint256 newProtocolFeeDefaultShare, address indexed newProtocolFeeDefaultBeneficiary)
func (*RouterFilterer) FilterProtocolFeeSignerSet ¶
func (_Router *RouterFilterer) FilterProtocolFeeSignerSet(opts *bind.FilterOpts, oldProtocolFeeSigner []common.Address, newProtocolFeeSigner []common.Address) (*RouterProtocolFeeSignerSetIterator, error)
FilterProtocolFeeSignerSet is a free log retrieval operation binding the contract event 0x401823c5aef6f718747b02330ff8612a8f1734ad582a37101b7f74aedf88a3cf.
Solidity: event ProtocolFeeSignerSet(address indexed oldProtocolFeeSigner, address indexed newProtocolFeeSigner)
func (*RouterFilterer) ParseExecuted ¶
func (_Router *RouterFilterer) ParseExecuted(log types.Log) (*RouterExecuted, error)
ParseExecuted is a log parse operation binding the contract event 0x5b99554095b82fa9d0725a9ff1f1db8bc3e4d461e7d61911c752c349a47b987f.
Solidity: event Executed(address indexed inputToken, uint256 absoluteInputAmount, uint256 inputBalanceChange, address indexed outputToken, uint256 absoluteOutputAmount, uint256 returnedAmount, uint256 protocolFeeAmount, uint256 marketplaceFeeAmount, (uint8,(uint256,address),(uint256,address),address,address,bytes) swapDescription, address sender)
func (*RouterFilterer) ParseOwnerSet ¶
func (_Router *RouterFilterer) ParseOwnerSet(log types.Log) (*RouterOwnerSet, error)
ParseOwnerSet is a log parse operation binding the contract event 0x342827c97908e5e2f71151c08502a66d44b6f758e3ac2f1de95f02eb95f0a735.
Solidity: event OwnerSet(address indexed oldOwner, address indexed newOwner)
func (*RouterFilterer) ParsePendingOwnerSet ¶
func (_Router *RouterFilterer) ParsePendingOwnerSet(log types.Log) (*RouterPendingOwnerSet, error)
ParsePendingOwnerSet is a log parse operation binding the contract event 0xa86864fa6b65f969d5ac8391ddaac6a0eba3f41386cbf6e78c3e4d6c59eb115f.
Solidity: event PendingOwnerSet(address indexed oldPendingOwner, address indexed newPendingOwner)
func (*RouterFilterer) ParseProtocolFeeDefaultSet ¶
func (_Router *RouterFilterer) ParseProtocolFeeDefaultSet(log types.Log) (*RouterProtocolFeeDefaultSet, error)
ParseProtocolFeeDefaultSet is a log parse operation binding the contract event 0xbed3189b824b5183bdd720fd47ce4f7747e55802778e0c0010d61647d4b60360.
Solidity: event ProtocolFeeDefaultSet(uint256 oldProtocolFeeDefaultShare, address indexed oldProtocolFeeDefaultBeneficiary, uint256 newProtocolFeeDefaultShare, address indexed newProtocolFeeDefaultBeneficiary)
func (*RouterFilterer) ParseProtocolFeeSignerSet ¶
func (_Router *RouterFilterer) ParseProtocolFeeSignerSet(log types.Log) (*RouterProtocolFeeSignerSet, error)
ParseProtocolFeeSignerSet is a log parse operation binding the contract event 0x401823c5aef6f718747b02330ff8612a8f1734ad582a37101b7f74aedf88a3cf.
Solidity: event ProtocolFeeSignerSet(address indexed oldProtocolFeeSigner, address indexed newProtocolFeeSigner)
func (*RouterFilterer) WatchExecuted ¶
func (_Router *RouterFilterer) WatchExecuted(opts *bind.WatchOpts, sink chan<- *RouterExecuted, inputToken []common.Address, outputToken []common.Address) (event.Subscription, error)
WatchExecuted is a free log subscription operation binding the contract event 0x5b99554095b82fa9d0725a9ff1f1db8bc3e4d461e7d61911c752c349a47b987f.
Solidity: event Executed(address indexed inputToken, uint256 absoluteInputAmount, uint256 inputBalanceChange, address indexed outputToken, uint256 absoluteOutputAmount, uint256 returnedAmount, uint256 protocolFeeAmount, uint256 marketplaceFeeAmount, (uint8,(uint256,address),(uint256,address),address,address,bytes) swapDescription, address sender)
func (*RouterFilterer) WatchOwnerSet ¶
func (_Router *RouterFilterer) WatchOwnerSet(opts *bind.WatchOpts, sink chan<- *RouterOwnerSet, oldOwner []common.Address, newOwner []common.Address) (event.Subscription, error)
WatchOwnerSet is a free log subscription operation binding the contract event 0x342827c97908e5e2f71151c08502a66d44b6f758e3ac2f1de95f02eb95f0a735.
Solidity: event OwnerSet(address indexed oldOwner, address indexed newOwner)
func (*RouterFilterer) WatchPendingOwnerSet ¶
func (_Router *RouterFilterer) WatchPendingOwnerSet(opts *bind.WatchOpts, sink chan<- *RouterPendingOwnerSet, oldPendingOwner []common.Address, newPendingOwner []common.Address) (event.Subscription, error)
WatchPendingOwnerSet is a free log subscription operation binding the contract event 0xa86864fa6b65f969d5ac8391ddaac6a0eba3f41386cbf6e78c3e4d6c59eb115f.
Solidity: event PendingOwnerSet(address indexed oldPendingOwner, address indexed newPendingOwner)
func (*RouterFilterer) WatchProtocolFeeDefaultSet ¶
func (_Router *RouterFilterer) WatchProtocolFeeDefaultSet(opts *bind.WatchOpts, sink chan<- *RouterProtocolFeeDefaultSet, oldProtocolFeeDefaultBeneficiary []common.Address, newProtocolFeeDefaultBeneficiary []common.Address) (event.Subscription, error)
WatchProtocolFeeDefaultSet is a free log subscription operation binding the contract event 0xbed3189b824b5183bdd720fd47ce4f7747e55802778e0c0010d61647d4b60360.
Solidity: event ProtocolFeeDefaultSet(uint256 oldProtocolFeeDefaultShare, address indexed oldProtocolFeeDefaultBeneficiary, uint256 newProtocolFeeDefaultShare, address indexed newProtocolFeeDefaultBeneficiary)
func (*RouterFilterer) WatchProtocolFeeSignerSet ¶
func (_Router *RouterFilterer) WatchProtocolFeeSignerSet(opts *bind.WatchOpts, sink chan<- *RouterProtocolFeeSignerSet, oldProtocolFeeSigner []common.Address, newProtocolFeeSigner []common.Address) (event.Subscription, error)
WatchProtocolFeeSignerSet is a free log subscription operation binding the contract event 0x401823c5aef6f718747b02330ff8612a8f1734ad582a37101b7f74aedf88a3cf.
Solidity: event ProtocolFeeSignerSet(address indexed oldProtocolFeeSigner, address indexed newProtocolFeeSigner)
type RouterOwnerSet ¶
type RouterOwnerSet struct { OldOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
RouterOwnerSet represents a OwnerSet event raised by the Router contract.
type RouterOwnerSetIterator ¶
type RouterOwnerSetIterator struct { Event *RouterOwnerSet // Event containing the contract specifics and raw log // contains filtered or unexported fields }
RouterOwnerSetIterator is returned from FilterOwnerSet and is used to iterate over the raw logs and unpacked data for OwnerSet events raised by the Router contract.
func (*RouterOwnerSetIterator) Close ¶
func (it *RouterOwnerSetIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RouterOwnerSetIterator) Error ¶
func (it *RouterOwnerSetIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RouterOwnerSetIterator) Next ¶
func (it *RouterOwnerSetIterator) 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 RouterPendingOwnerSet ¶
type RouterPendingOwnerSet struct { OldPendingOwner common.Address NewPendingOwner common.Address Raw types.Log // Blockchain specific contextual infos }
RouterPendingOwnerSet represents a PendingOwnerSet event raised by the Router contract.
type RouterPendingOwnerSetIterator ¶
type RouterPendingOwnerSetIterator struct { Event *RouterPendingOwnerSet // Event containing the contract specifics and raw log // contains filtered or unexported fields }
RouterPendingOwnerSetIterator is returned from FilterPendingOwnerSet and is used to iterate over the raw logs and unpacked data for PendingOwnerSet events raised by the Router contract.
func (*RouterPendingOwnerSetIterator) Close ¶
func (it *RouterPendingOwnerSetIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RouterPendingOwnerSetIterator) Error ¶
func (it *RouterPendingOwnerSetIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RouterPendingOwnerSetIterator) Next ¶
func (it *RouterPendingOwnerSetIterator) 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 RouterProtocolFeeDefaultSet ¶
type RouterProtocolFeeDefaultSet struct { OldProtocolFeeDefaultBeneficiary common.Address NewProtocolFeeDefaultBeneficiary common.Address Raw types.Log // Blockchain specific contextual infos }
RouterProtocolFeeDefaultSet represents a ProtocolFeeDefaultSet event raised by the Router contract.
type RouterProtocolFeeDefaultSetIterator ¶
type RouterProtocolFeeDefaultSetIterator struct { Event *RouterProtocolFeeDefaultSet // Event containing the contract specifics and raw log // contains filtered or unexported fields }
RouterProtocolFeeDefaultSetIterator is returned from FilterProtocolFeeDefaultSet and is used to iterate over the raw logs and unpacked data for ProtocolFeeDefaultSet events raised by the Router contract.
func (*RouterProtocolFeeDefaultSetIterator) Close ¶
func (it *RouterProtocolFeeDefaultSetIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RouterProtocolFeeDefaultSetIterator) Error ¶
func (it *RouterProtocolFeeDefaultSetIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RouterProtocolFeeDefaultSetIterator) Next ¶
func (it *RouterProtocolFeeDefaultSetIterator) 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 RouterProtocolFeeSignerSet ¶
type RouterProtocolFeeSignerSet struct { OldProtocolFeeSigner common.Address NewProtocolFeeSigner common.Address Raw types.Log // Blockchain specific contextual infos }
RouterProtocolFeeSignerSet represents a ProtocolFeeSignerSet event raised by the Router contract.
type RouterProtocolFeeSignerSetIterator ¶
type RouterProtocolFeeSignerSetIterator struct { Event *RouterProtocolFeeSignerSet // Event containing the contract specifics and raw log // contains filtered or unexported fields }
RouterProtocolFeeSignerSetIterator is returned from FilterProtocolFeeSignerSet and is used to iterate over the raw logs and unpacked data for ProtocolFeeSignerSet events raised by the Router contract.
func (*RouterProtocolFeeSignerSetIterator) Close ¶
func (it *RouterProtocolFeeSignerSetIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RouterProtocolFeeSignerSetIterator) Error ¶
func (it *RouterProtocolFeeSignerSetIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RouterProtocolFeeSignerSetIterator) Next ¶
func (it *RouterProtocolFeeSignerSetIterator) 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) CancelAccountSignature ¶
func (_Router *RouterSession) CancelAccountSignature(input Input, output AbsoluteTokenAmount, swapDescription SwapDescription, accountSignature AccountSignature) (*types.Transaction, error)
CancelAccountSignature is a paid mutator transaction binding the contract method 0xbba185de.
Solidity: function cancelAccountSignature(((address,uint256,uint8),(uint8,bytes)) input, (address,uint256) output, (uint8,(uint256,address),(uint256,address),address,address,bytes) swapDescription, (uint256,bytes) accountSignature) returns()
func (*RouterSession) Execute ¶
func (_Router *RouterSession) Execute(input Input, output AbsoluteTokenAmount, swapDescription SwapDescription, accountSignature AccountSignature, protocolFeeSignature ProtocolFeeSignature) (*types.Transaction, error)
Execute is a paid mutator transaction binding the contract method 0x83d13e01.
Solidity: function execute(((address,uint256,uint8),(uint8,bytes)) input, (address,uint256) output, (uint8,(uint256,address),(uint256,address),address,address,bytes) swapDescription, (uint256,bytes) accountSignature, (uint256,bytes) protocolFeeSignature) payable returns(uint256 inputBalanceChange, uint256 actualOutputAmount, uint256 protocolFeeAmount, uint256 marketplaceFeeAmount)
func (*RouterSession) GetOwner ¶
func (_Router *RouterSession) GetOwner() (common.Address, error)
GetOwner is a free data retrieval call binding the contract method 0x893d20e8.
Solidity: function getOwner() view returns(address owner)
func (*RouterSession) GetPendingOwner ¶
func (_Router *RouterSession) GetPendingOwner() (common.Address, error)
GetPendingOwner is a free data retrieval call binding the contract method 0x93596c7b.
Solidity: function getPendingOwner() view returns(address pendingOwner)
func (*RouterSession) GetProtocolFeeDefault ¶
func (_Router *RouterSession) GetProtocolFeeDefault() (Fee, error)
GetProtocolFeeDefault is a free data retrieval call binding the contract method 0x92ff2806.
Solidity: function getProtocolFeeDefault() view returns((uint256,address) protocolFeeDefault)
func (*RouterSession) GetProtocolFeeSigner ¶
func (_Router *RouterSession) GetProtocolFeeSigner() (common.Address, error)
GetProtocolFeeSigner is a free data retrieval call binding the contract method 0xec5afea7.
Solidity: function getProtocolFeeSigner() view returns(address protocolFeeSigner)
func (*RouterSession) HashAccountSignatureData ¶
func (_Router *RouterSession) HashAccountSignatureData(input Input, output AbsoluteTokenAmount, swapDescription SwapDescription, salt *big.Int) ([32]byte, error)
HashAccountSignatureData is a free data retrieval call binding the contract method 0xe1b92a9c.
Solidity: function hashAccountSignatureData(((address,uint256,uint8),(uint8,bytes)) input, (address,uint256) output, (uint8,(uint256,address),(uint256,address),address,address,bytes) swapDescription, uint256 salt) view returns(bytes32 hashedData)
func (*RouterSession) HashProtocolFeeSignatureData ¶
func (_Router *RouterSession) HashProtocolFeeSignatureData(input Input, output AbsoluteTokenAmount, swapDescription SwapDescription, deadline *big.Int) ([32]byte, error)
HashProtocolFeeSignatureData is a free data retrieval call binding the contract method 0xebfa1a61.
Solidity: function hashProtocolFeeSignatureData(((address,uint256,uint8),(uint8,bytes)) input, (address,uint256) output, (uint8,(uint256,address),(uint256,address),address,address,bytes) swapDescription, uint256 deadline) view returns(bytes32 hashedData)
func (*RouterSession) IsHashUsed ¶
func (_Router *RouterSession) IsHashUsed(hashToCheck [32]byte) (bool, error)
IsHashUsed is a free data retrieval call binding the contract method 0x20021d8b.
Solidity: function isHashUsed(bytes32 hashToCheck) view returns(bool hashUsed)
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) ReturnLostTokens ¶
func (_Router *RouterSession) ReturnLostTokens(token common.Address, beneficiary common.Address) (*types.Transaction, error)
ReturnLostTokens is a paid mutator transaction binding the contract method 0xe89db671.
Solidity: function returnLostTokens(address token, address beneficiary) returns()
func (*RouterSession) SetOwner ¶
func (_Router *RouterSession) SetOwner() (*types.Transaction, error)
SetOwner is a paid mutator transaction binding the contract method 0x40caae06.
Solidity: function setOwner() returns()
func (*RouterSession) SetPendingOwner ¶
func (_Router *RouterSession) SetPendingOwner(newPendingOwner common.Address) (*types.Transaction, error)
SetPendingOwner is a paid mutator transaction binding the contract method 0xc42069ec.
Solidity: function setPendingOwner(address newPendingOwner) returns()
func (*RouterSession) SetProtocolFeeDefault ¶
func (_Router *RouterSession) SetProtocolFeeDefault(protocolFeeDefault Fee) (*types.Transaction, error)
SetProtocolFeeDefault is a paid mutator transaction binding the contract method 0xb0998bf7.
Solidity: function setProtocolFeeDefault((uint256,address) protocolFeeDefault) returns()
func (*RouterSession) SetProtocolFeeSigner ¶
func (_Router *RouterSession) SetProtocolFeeSigner(signer common.Address) (*types.Transaction, error)
SetProtocolFeeSigner is a paid mutator transaction binding the contract method 0xb297ccfd.
Solidity: function setProtocolFeeSigner(address signer) returns()
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) CancelAccountSignature ¶
func (_Router *RouterTransactor) CancelAccountSignature(opts *bind.TransactOpts, input Input, output AbsoluteTokenAmount, swapDescription SwapDescription, accountSignature AccountSignature) (*types.Transaction, error)
CancelAccountSignature is a paid mutator transaction binding the contract method 0xbba185de.
Solidity: function cancelAccountSignature(((address,uint256,uint8),(uint8,bytes)) input, (address,uint256) output, (uint8,(uint256,address),(uint256,address),address,address,bytes) swapDescription, (uint256,bytes) accountSignature) returns()
func (*RouterTransactor) Execute ¶
func (_Router *RouterTransactor) Execute(opts *bind.TransactOpts, input Input, output AbsoluteTokenAmount, swapDescription SwapDescription, accountSignature AccountSignature, protocolFeeSignature ProtocolFeeSignature) (*types.Transaction, error)
Execute is a paid mutator transaction binding the contract method 0x83d13e01.
Solidity: function execute(((address,uint256,uint8),(uint8,bytes)) input, (address,uint256) output, (uint8,(uint256,address),(uint256,address),address,address,bytes) swapDescription, (uint256,bytes) accountSignature, (uint256,bytes) protocolFeeSignature) payable returns(uint256 inputBalanceChange, uint256 actualOutputAmount, uint256 protocolFeeAmount, uint256 marketplaceFeeAmount)
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) ReturnLostTokens ¶
func (_Router *RouterTransactor) ReturnLostTokens(opts *bind.TransactOpts, token common.Address, beneficiary common.Address) (*types.Transaction, error)
ReturnLostTokens is a paid mutator transaction binding the contract method 0xe89db671.
Solidity: function returnLostTokens(address token, address beneficiary) returns()
func (*RouterTransactor) SetOwner ¶
func (_Router *RouterTransactor) SetOwner(opts *bind.TransactOpts) (*types.Transaction, error)
SetOwner is a paid mutator transaction binding the contract method 0x40caae06.
Solidity: function setOwner() returns()
func (*RouterTransactor) SetPendingOwner ¶
func (_Router *RouterTransactor) SetPendingOwner(opts *bind.TransactOpts, newPendingOwner common.Address) (*types.Transaction, error)
SetPendingOwner is a paid mutator transaction binding the contract method 0xc42069ec.
Solidity: function setPendingOwner(address newPendingOwner) returns()
func (*RouterTransactor) SetProtocolFeeDefault ¶
func (_Router *RouterTransactor) SetProtocolFeeDefault(opts *bind.TransactOpts, protocolFeeDefault Fee) (*types.Transaction, error)
SetProtocolFeeDefault is a paid mutator transaction binding the contract method 0xb0998bf7.
Solidity: function setProtocolFeeDefault((uint256,address) protocolFeeDefault) returns()
func (*RouterTransactor) SetProtocolFeeSigner ¶
func (_Router *RouterTransactor) SetProtocolFeeSigner(opts *bind.TransactOpts, signer common.Address) (*types.Transaction, error)
SetProtocolFeeSigner is a paid mutator transaction binding the contract method 0xb297ccfd.
Solidity: function setProtocolFeeSigner(address signer) 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) CancelAccountSignature ¶
func (_Router *RouterTransactorSession) CancelAccountSignature(input Input, output AbsoluteTokenAmount, swapDescription SwapDescription, accountSignature AccountSignature) (*types.Transaction, error)
CancelAccountSignature is a paid mutator transaction binding the contract method 0xbba185de.
Solidity: function cancelAccountSignature(((address,uint256,uint8),(uint8,bytes)) input, (address,uint256) output, (uint8,(uint256,address),(uint256,address),address,address,bytes) swapDescription, (uint256,bytes) accountSignature) returns()
func (*RouterTransactorSession) Execute ¶
func (_Router *RouterTransactorSession) Execute(input Input, output AbsoluteTokenAmount, swapDescription SwapDescription, accountSignature AccountSignature, protocolFeeSignature ProtocolFeeSignature) (*types.Transaction, error)
Execute is a paid mutator transaction binding the contract method 0x83d13e01.
Solidity: function execute(((address,uint256,uint8),(uint8,bytes)) input, (address,uint256) output, (uint8,(uint256,address),(uint256,address),address,address,bytes) swapDescription, (uint256,bytes) accountSignature, (uint256,bytes) protocolFeeSignature) payable returns(uint256 inputBalanceChange, uint256 actualOutputAmount, uint256 protocolFeeAmount, uint256 marketplaceFeeAmount)
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) ReturnLostTokens ¶
func (_Router *RouterTransactorSession) ReturnLostTokens(token common.Address, beneficiary common.Address) (*types.Transaction, error)
ReturnLostTokens is a paid mutator transaction binding the contract method 0xe89db671.
Solidity: function returnLostTokens(address token, address beneficiary) returns()
func (*RouterTransactorSession) SetOwner ¶
func (_Router *RouterTransactorSession) SetOwner() (*types.Transaction, error)
SetOwner is a paid mutator transaction binding the contract method 0x40caae06.
Solidity: function setOwner() returns()
func (*RouterTransactorSession) SetPendingOwner ¶
func (_Router *RouterTransactorSession) SetPendingOwner(newPendingOwner common.Address) (*types.Transaction, error)
SetPendingOwner is a paid mutator transaction binding the contract method 0xc42069ec.
Solidity: function setPendingOwner(address newPendingOwner) returns()
func (*RouterTransactorSession) SetProtocolFeeDefault ¶
func (_Router *RouterTransactorSession) SetProtocolFeeDefault(protocolFeeDefault Fee) (*types.Transaction, error)
SetProtocolFeeDefault is a paid mutator transaction binding the contract method 0xb0998bf7.
Solidity: function setProtocolFeeDefault((uint256,address) protocolFeeDefault) returns()
func (*RouterTransactorSession) SetProtocolFeeSigner ¶
func (_Router *RouterTransactorSession) SetProtocolFeeSigner(signer common.Address) (*types.Transaction, error)
SetProtocolFeeSigner is a paid mutator transaction binding the contract method 0xb297ccfd.
Solidity: function setProtocolFeeSigner(address signer) returns()