router

package
v0.0.1-alpha-8 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const RouterABI = "" /* 8561-byte string literal not displayed */

RouterABI is the input ABI used to generate the binding from.

Variables

This section is empty.

Functions

This section is empty.

Types

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.

func NewRouter

func NewRouter(address common.Address, backend bind.ContractBackend) (*Router, error)

NewRouter creates a new instance of Router, bound to a specific deployed contract.

type RouterBurn

type RouterBurn struct {
	Account    common.Address
	Amount     *big.Int
	ServiceFee *big.Int
	Receiver   []byte
	Raw        types.Log // Blockchain specific contextual infos
}

RouterBurn represents a Burn event raised by the Router contract.

type RouterBurnIterator

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

RouterBurnIterator is returned from FilterBurn and is used to iterate over the raw logs and unpacked data for Burn events raised by the Router contract.

func (*RouterBurnIterator) Close

func (it *RouterBurnIterator) Close() error

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

func (*RouterBurnIterator) Error

func (it *RouterBurnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RouterBurnIterator) Next

func (it *RouterBurnIterator) 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 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) ControllerAddress

func (_Router *RouterCaller) ControllerAddress(opts *bind.CallOpts) (common.Address, error)

ControllerAddress is a free data retrieval call binding the contract method 0x4b24ea47.

Solidity: function controllerAddress() view returns(address)

func (*RouterCaller) GetTxCostsPerMember

func (_Router *RouterCaller) GetTxCostsPerMember(opts *bind.CallOpts, wrappedToken common.Address, member common.Address) (*big.Int, error)

GetTxCostsPerMember is a free data retrieval call binding the contract method 0x20990243.

Solidity: function getTxCostsPerMember(address wrappedToken, address member) view returns(uint256)

func (*RouterCaller) IsMember

func (_Router *RouterCaller) IsMember(opts *bind.CallOpts, _member common.Address) (bool, error)

IsMember is a free data retrieval call binding the contract method 0xa230c524.

Solidity: function isMember(address _member) view returns(bool)

func (*RouterCaller) IsSupportedToken

func (_Router *RouterCaller) IsSupportedToken(opts *bind.CallOpts, wrappedToken common.Address) (bool, error)

IsSupportedToken is a free data retrieval call binding the contract method 0x240028e8.

Solidity: function isSupportedToken(address wrappedToken) view returns(bool)

func (*RouterCaller) MemberAt

func (_Router *RouterCaller) MemberAt(opts *bind.CallOpts, index *big.Int) (common.Address, error)

MemberAt is a free data retrieval call binding the contract method 0xac0250f7.

Solidity: function memberAt(uint256 index) view returns(address)

func (*RouterCaller) MembersCount

func (_Router *RouterCaller) MembersCount(opts *bind.CallOpts) (*big.Int, error)

MembersCount is a free data retrieval call binding the contract method 0x297f9af0.

Solidity: function membersCount() view returns(uint256)

func (*RouterCaller) MintTransfers

func (_Router *RouterCaller) MintTransfers(opts *bind.CallOpts, arg0 []byte) (bool, error)

MintTransfers is a free data retrieval call binding the contract method 0xed1018ad.

Solidity: function mintTransfers(bytes ) view returns(bool isExecuted)

func (*RouterCaller) NativeToWrappedToken

func (_Router *RouterCaller) NativeToWrappedToken(opts *bind.CallOpts, arg0 []byte) (common.Address, error)

NativeToWrappedToken is a free data retrieval call binding the contract method 0x2b793cc8.

Solidity: function nativeToWrappedToken(bytes ) view returns(address)

func (*RouterCaller) Owner

func (_Router *RouterCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*RouterCaller) ServiceFee

func (_Router *RouterCaller) ServiceFee(opts *bind.CallOpts) (*big.Int, error)

ServiceFee is a free data retrieval call binding the contract method 0x8abdf5aa.

Solidity: function serviceFee() view returns(uint256)

func (*RouterCaller) WrappedToNativeToken

func (_Router *RouterCaller) WrappedToNativeToken(opts *bind.CallOpts, arg0 common.Address) ([]byte, error)

WrappedToNativeToken is a free data retrieval call binding the contract method 0x0aa3824d.

Solidity: function wrappedToNativeToken(address ) view returns(bytes)

func (*RouterCaller) WrappedTokenAt

func (_Router *RouterCaller) WrappedTokenAt(opts *bind.CallOpts, index *big.Int) (common.Address, error)

WrappedTokenAt is a free data retrieval call binding the contract method 0xae963d45.

Solidity: function wrappedTokenAt(uint256 index) view returns(address)

func (*RouterCaller) WrappedTokensCount

func (_Router *RouterCaller) WrappedTokensCount(opts *bind.CallOpts) (*big.Int, error)

WrappedTokensCount is a free data retrieval call binding the contract method 0xb753cf46.

Solidity: function wrappedTokensCount() view returns(uint256)

func (*RouterCaller) WrappedTokensData

func (_Router *RouterCaller) WrappedTokensData(opts *bind.CallOpts, arg0 common.Address) (struct {
	FeesAccrued     *big.Int
	PreviousAccrued *big.Int
	Accumulator     *big.Int
}, error)

WrappedTokensData is a free data retrieval call binding the contract method 0xf804b7a2.

Solidity: function wrappedTokensData(address ) view returns(uint256 feesAccrued, uint256 previousAccrued, uint256 accumulator)

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) ControllerAddress

func (_Router *RouterCallerSession) ControllerAddress() (common.Address, error)

ControllerAddress is a free data retrieval call binding the contract method 0x4b24ea47.

Solidity: function controllerAddress() view returns(address)

func (*RouterCallerSession) GetTxCostsPerMember

func (_Router *RouterCallerSession) GetTxCostsPerMember(wrappedToken common.Address, member common.Address) (*big.Int, error)

GetTxCostsPerMember is a free data retrieval call binding the contract method 0x20990243.

Solidity: function getTxCostsPerMember(address wrappedToken, address member) view returns(uint256)

func (*RouterCallerSession) IsMember

func (_Router *RouterCallerSession) IsMember(_member common.Address) (bool, error)

IsMember is a free data retrieval call binding the contract method 0xa230c524.

Solidity: function isMember(address _member) view returns(bool)

func (*RouterCallerSession) IsSupportedToken

func (_Router *RouterCallerSession) IsSupportedToken(wrappedToken common.Address) (bool, error)

IsSupportedToken is a free data retrieval call binding the contract method 0x240028e8.

Solidity: function isSupportedToken(address wrappedToken) view returns(bool)

func (*RouterCallerSession) MemberAt

func (_Router *RouterCallerSession) MemberAt(index *big.Int) (common.Address, error)

MemberAt is a free data retrieval call binding the contract method 0xac0250f7.

Solidity: function memberAt(uint256 index) view returns(address)

func (*RouterCallerSession) MembersCount

func (_Router *RouterCallerSession) MembersCount() (*big.Int, error)

MembersCount is a free data retrieval call binding the contract method 0x297f9af0.

Solidity: function membersCount() view returns(uint256)

func (*RouterCallerSession) MintTransfers

func (_Router *RouterCallerSession) MintTransfers(arg0 []byte) (bool, error)

MintTransfers is a free data retrieval call binding the contract method 0xed1018ad.

Solidity: function mintTransfers(bytes ) view returns(bool isExecuted)

func (*RouterCallerSession) NativeToWrappedToken

func (_Router *RouterCallerSession) NativeToWrappedToken(arg0 []byte) (common.Address, error)

NativeToWrappedToken is a free data retrieval call binding the contract method 0x2b793cc8.

Solidity: function nativeToWrappedToken(bytes ) view returns(address)

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) ServiceFee

func (_Router *RouterCallerSession) ServiceFee() (*big.Int, error)

ServiceFee is a free data retrieval call binding the contract method 0x8abdf5aa.

Solidity: function serviceFee() view returns(uint256)

func (*RouterCallerSession) WrappedToNativeToken

func (_Router *RouterCallerSession) WrappedToNativeToken(arg0 common.Address) ([]byte, error)

WrappedToNativeToken is a free data retrieval call binding the contract method 0x0aa3824d.

Solidity: function wrappedToNativeToken(address ) view returns(bytes)

func (*RouterCallerSession) WrappedTokenAt

func (_Router *RouterCallerSession) WrappedTokenAt(index *big.Int) (common.Address, error)

WrappedTokenAt is a free data retrieval call binding the contract method 0xae963d45.

Solidity: function wrappedTokenAt(uint256 index) view returns(address)

func (*RouterCallerSession) WrappedTokensCount

func (_Router *RouterCallerSession) WrappedTokensCount() (*big.Int, error)

WrappedTokensCount is a free data retrieval call binding the contract method 0xb753cf46.

Solidity: function wrappedTokensCount() view returns(uint256)

func (*RouterCallerSession) WrappedTokensData

func (_Router *RouterCallerSession) WrappedTokensData(arg0 common.Address) (struct {
	FeesAccrued     *big.Int
	PreviousAccrued *big.Int
	Accumulator     *big.Int
}, error)

WrappedTokensData is a free data retrieval call binding the contract method 0xf804b7a2.

Solidity: function wrappedTokensData(address ) view returns(uint256 feesAccrued, uint256 previousAccrued, uint256 accumulator)

type RouterClaim

type RouterClaim struct {
	Account common.Address
	Amount  *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

RouterClaim represents a Claim event raised by the Router contract.

type RouterClaimIterator

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

RouterClaimIterator is returned from FilterClaim and is used to iterate over the raw logs and unpacked data for Claim events raised by the Router contract.

func (*RouterClaimIterator) Close

func (it *RouterClaimIterator) Close() error

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

func (*RouterClaimIterator) Error

func (it *RouterClaimIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RouterClaimIterator) Next

func (it *RouterClaimIterator) 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) FilterBurn

func (_Router *RouterFilterer) FilterBurn(opts *bind.FilterOpts, account []common.Address) (*RouterBurnIterator, error)

FilterBurn is a free log retrieval operation binding the contract event 0x8da2fc26da2245514483a393963ce93cac8be27cf30bbbc78569ff2ffe3eda16.

Solidity: event Burn(address indexed account, uint256 amount, uint256 serviceFee, bytes receiver)

func (*RouterFilterer) FilterClaim

func (_Router *RouterFilterer) FilterClaim(opts *bind.FilterOpts, account []common.Address) (*RouterClaimIterator, error)

FilterClaim is a free log retrieval operation binding the contract event 0x47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4.

Solidity: event Claim(address indexed account, uint256 amount)

func (*RouterFilterer) FilterMemberUpdated

func (_Router *RouterFilterer) FilterMemberUpdated(opts *bind.FilterOpts) (*RouterMemberUpdatedIterator, error)

FilterMemberUpdated is a free log retrieval operation binding the contract event 0x30f1d11f11278ba2cc669fd4c95ee8d46ede2c82f6af0b74e4f427369b3522d3.

Solidity: event MemberUpdated(address member, bool status)

func (*RouterFilterer) FilterMint

func (_Router *RouterFilterer) FilterMint(opts *bind.FilterOpts, account []common.Address, transactionId [][]byte) (*RouterMintIterator, error)

FilterMint is a free log retrieval operation binding the contract event 0xab5e0e0fc4eb29aaba31da7756245e8580bb49834b10faff58b98807a565808f.

Solidity: event Mint(address indexed account, uint256 amount, uint256 serviceFeeInWTokens, uint256 txCost, bytes indexed transactionId)

func (*RouterFilterer) FilterOwnershipTransferred

func (_Router *RouterFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*RouterOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*RouterFilterer) FilterServiceFeeSet

func (_Router *RouterFilterer) FilterServiceFeeSet(opts *bind.FilterOpts) (*RouterServiceFeeSetIterator, error)

FilterServiceFeeSet is a free log retrieval operation binding the contract event 0x1a1f706a54e5071e5d16465e3d926d20df26a148f666efe1bdbfbc65d4f41b5b.

Solidity: event ServiceFeeSet(address account, uint256 newServiceFee)

func (*RouterFilterer) FilterTokenUpdate

func (_Router *RouterFilterer) FilterTokenUpdate(opts *bind.FilterOpts) (*RouterTokenUpdateIterator, error)

FilterTokenUpdate is a free log retrieval operation binding the contract event 0x1fdba7efccb3b2b0ed68be70ff537de605c6a8d279fc25899e5426cb4ddd3d8b.

Solidity: event TokenUpdate(address wrappedToken, bytes nativeToken, bool isActive)

func (*RouterFilterer) ParseBurn

func (_Router *RouterFilterer) ParseBurn(log types.Log) (*RouterBurn, error)

ParseBurn is a log parse operation binding the contract event 0x8da2fc26da2245514483a393963ce93cac8be27cf30bbbc78569ff2ffe3eda16.

Solidity: event Burn(address indexed account, uint256 amount, uint256 serviceFee, bytes receiver)

func (*RouterFilterer) ParseClaim

func (_Router *RouterFilterer) ParseClaim(log types.Log) (*RouterClaim, error)

ParseClaim is a log parse operation binding the contract event 0x47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4.

Solidity: event Claim(address indexed account, uint256 amount)

func (*RouterFilterer) ParseMemberUpdated

func (_Router *RouterFilterer) ParseMemberUpdated(log types.Log) (*RouterMemberUpdated, error)

ParseMemberUpdated is a log parse operation binding the contract event 0x30f1d11f11278ba2cc669fd4c95ee8d46ede2c82f6af0b74e4f427369b3522d3.

Solidity: event MemberUpdated(address member, bool status)

func (*RouterFilterer) ParseMint

func (_Router *RouterFilterer) ParseMint(log types.Log) (*RouterMint, error)

ParseMint is a log parse operation binding the contract event 0xab5e0e0fc4eb29aaba31da7756245e8580bb49834b10faff58b98807a565808f.

Solidity: event Mint(address indexed account, uint256 amount, uint256 serviceFeeInWTokens, uint256 txCost, bytes indexed transactionId)

func (*RouterFilterer) ParseOwnershipTransferred

func (_Router *RouterFilterer) ParseOwnershipTransferred(log types.Log) (*RouterOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*RouterFilterer) ParseServiceFeeSet

func (_Router *RouterFilterer) ParseServiceFeeSet(log types.Log) (*RouterServiceFeeSet, error)

ParseServiceFeeSet is a log parse operation binding the contract event 0x1a1f706a54e5071e5d16465e3d926d20df26a148f666efe1bdbfbc65d4f41b5b.

Solidity: event ServiceFeeSet(address account, uint256 newServiceFee)

func (*RouterFilterer) ParseTokenUpdate

func (_Router *RouterFilterer) ParseTokenUpdate(log types.Log) (*RouterTokenUpdate, error)

ParseTokenUpdate is a log parse operation binding the contract event 0x1fdba7efccb3b2b0ed68be70ff537de605c6a8d279fc25899e5426cb4ddd3d8b.

Solidity: event TokenUpdate(address wrappedToken, bytes nativeToken, bool isActive)

func (*RouterFilterer) WatchBurn

func (_Router *RouterFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *RouterBurn, account []common.Address) (event.Subscription, error)

WatchBurn is a free log subscription operation binding the contract event 0x8da2fc26da2245514483a393963ce93cac8be27cf30bbbc78569ff2ffe3eda16.

Solidity: event Burn(address indexed account, uint256 amount, uint256 serviceFee, bytes receiver)

func (*RouterFilterer) WatchClaim

func (_Router *RouterFilterer) WatchClaim(opts *bind.WatchOpts, sink chan<- *RouterClaim, account []common.Address) (event.Subscription, error)

WatchClaim is a free log subscription operation binding the contract event 0x47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4.

Solidity: event Claim(address indexed account, uint256 amount)

func (*RouterFilterer) WatchMemberUpdated

func (_Router *RouterFilterer) WatchMemberUpdated(opts *bind.WatchOpts, sink chan<- *RouterMemberUpdated) (event.Subscription, error)

WatchMemberUpdated is a free log subscription operation binding the contract event 0x30f1d11f11278ba2cc669fd4c95ee8d46ede2c82f6af0b74e4f427369b3522d3.

Solidity: event MemberUpdated(address member, bool status)

func (*RouterFilterer) WatchMint

func (_Router *RouterFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *RouterMint, account []common.Address, transactionId [][]byte) (event.Subscription, error)

WatchMint is a free log subscription operation binding the contract event 0xab5e0e0fc4eb29aaba31da7756245e8580bb49834b10faff58b98807a565808f.

Solidity: event Mint(address indexed account, uint256 amount, uint256 serviceFeeInWTokens, uint256 txCost, bytes indexed transactionId)

func (*RouterFilterer) WatchOwnershipTransferred

func (_Router *RouterFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *RouterOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*RouterFilterer) WatchServiceFeeSet

func (_Router *RouterFilterer) WatchServiceFeeSet(opts *bind.WatchOpts, sink chan<- *RouterServiceFeeSet) (event.Subscription, error)

WatchServiceFeeSet is a free log subscription operation binding the contract event 0x1a1f706a54e5071e5d16465e3d926d20df26a148f666efe1bdbfbc65d4f41b5b.

Solidity: event ServiceFeeSet(address account, uint256 newServiceFee)

func (*RouterFilterer) WatchTokenUpdate

func (_Router *RouterFilterer) WatchTokenUpdate(opts *bind.WatchOpts, sink chan<- *RouterTokenUpdate) (event.Subscription, error)

WatchTokenUpdate is a free log subscription operation binding the contract event 0x1fdba7efccb3b2b0ed68be70ff537de605c6a8d279fc25899e5426cb4ddd3d8b.

Solidity: event TokenUpdate(address wrappedToken, bytes nativeToken, bool isActive)

type RouterMemberUpdated

type RouterMemberUpdated struct {
	Member common.Address
	Status bool
	Raw    types.Log // Blockchain specific contextual infos
}

RouterMemberUpdated represents a MemberUpdated event raised by the Router contract.

type RouterMemberUpdatedIterator

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

RouterMemberUpdatedIterator is returned from FilterMemberUpdated and is used to iterate over the raw logs and unpacked data for MemberUpdated events raised by the Router contract.

func (*RouterMemberUpdatedIterator) Close

func (it *RouterMemberUpdatedIterator) Close() error

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

func (*RouterMemberUpdatedIterator) Error

func (it *RouterMemberUpdatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RouterMemberUpdatedIterator) Next

func (it *RouterMemberUpdatedIterator) 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 RouterMint

type RouterMint struct {
	Account             common.Address
	Amount              *big.Int
	ServiceFeeInWTokens *big.Int
	TxCost              *big.Int
	TransactionId       common.Hash
	Raw                 types.Log // Blockchain specific contextual infos
}

RouterMint represents a Mint event raised by the Router contract.

type RouterMintIterator

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

RouterMintIterator is returned from FilterMint and is used to iterate over the raw logs and unpacked data for Mint events raised by the Router contract.

func (*RouterMintIterator) Close

func (it *RouterMintIterator) Close() error

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

func (*RouterMintIterator) Error

func (it *RouterMintIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RouterMintIterator) Next

func (it *RouterMintIterator) 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 RouterOwnershipTransferred

type RouterOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

RouterOwnershipTransferred represents a OwnershipTransferred event raised by the Router contract.

type RouterOwnershipTransferredIterator

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

RouterOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Router contract.

func (*RouterOwnershipTransferredIterator) Close

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

func (*RouterOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RouterOwnershipTransferredIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type 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 RouterServiceFeeSet

type RouterServiceFeeSet struct {
	Account       common.Address
	NewServiceFee *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

RouterServiceFeeSet represents a ServiceFeeSet event raised by the Router contract.

type RouterServiceFeeSetIterator

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

RouterServiceFeeSetIterator is returned from FilterServiceFeeSet and is used to iterate over the raw logs and unpacked data for ServiceFeeSet events raised by the Router contract.

func (*RouterServiceFeeSetIterator) Close

func (it *RouterServiceFeeSetIterator) Close() error

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

func (*RouterServiceFeeSetIterator) Error

func (it *RouterServiceFeeSetIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RouterServiceFeeSetIterator) Next

func (it *RouterServiceFeeSetIterator) 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 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) Burn

func (_Router *RouterSession) Burn(amount *big.Int, receiver []byte, wrappedToken common.Address) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x8c99319f.

Solidity: function burn(uint256 amount, bytes receiver, address wrappedToken) returns()

func (*RouterSession) Claim

func (_Router *RouterSession) Claim(wrappedToken common.Address) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0x1e83409a.

Solidity: function claim(address wrappedToken) returns()

func (*RouterSession) ControllerAddress

func (_Router *RouterSession) ControllerAddress() (common.Address, error)

ControllerAddress is a free data retrieval call binding the contract method 0x4b24ea47.

Solidity: function controllerAddress() view returns(address)

func (*RouterSession) GetTxCostsPerMember

func (_Router *RouterSession) GetTxCostsPerMember(wrappedToken common.Address, member common.Address) (*big.Int, error)

GetTxCostsPerMember is a free data retrieval call binding the contract method 0x20990243.

Solidity: function getTxCostsPerMember(address wrappedToken, address member) view returns(uint256)

func (*RouterSession) IsMember

func (_Router *RouterSession) IsMember(_member common.Address) (bool, error)

IsMember is a free data retrieval call binding the contract method 0xa230c524.

Solidity: function isMember(address _member) view returns(bool)

func (*RouterSession) IsSupportedToken

func (_Router *RouterSession) IsSupportedToken(wrappedToken common.Address) (bool, error)

IsSupportedToken is a free data retrieval call binding the contract method 0x240028e8.

Solidity: function isSupportedToken(address wrappedToken) view returns(bool)

func (*RouterSession) MemberAt

func (_Router *RouterSession) MemberAt(index *big.Int) (common.Address, error)

MemberAt is a free data retrieval call binding the contract method 0xac0250f7.

Solidity: function memberAt(uint256 index) view returns(address)

func (*RouterSession) MembersCount

func (_Router *RouterSession) MembersCount() (*big.Int, error)

MembersCount is a free data retrieval call binding the contract method 0x297f9af0.

Solidity: function membersCount() view returns(uint256)

func (*RouterSession) Mint

func (_Router *RouterSession) Mint(transactionId []byte, wrappedToken common.Address, receiver common.Address, amount *big.Int, signatures [][]byte) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x9949e912.

Solidity: function mint(bytes transactionId, address wrappedToken, address receiver, uint256 amount, bytes[] signatures) returns()

func (*RouterSession) MintTransfers

func (_Router *RouterSession) MintTransfers(arg0 []byte) (bool, error)

MintTransfers is a free data retrieval call binding the contract method 0xed1018ad.

Solidity: function mintTransfers(bytes ) view returns(bool isExecuted)

func (*RouterSession) MintWithReimbursement

func (_Router *RouterSession) MintWithReimbursement(transactionId []byte, wrappedToken common.Address, receiver common.Address, amount *big.Int, txCost *big.Int, signatures [][]byte) (*types.Transaction, error)

MintWithReimbursement is a paid mutator transaction binding the contract method 0x9787221b.

Solidity: function mintWithReimbursement(bytes transactionId, address wrappedToken, address receiver, uint256 amount, uint256 txCost, bytes[] signatures) returns()

func (*RouterSession) NativeToWrappedToken

func (_Router *RouterSession) NativeToWrappedToken(arg0 []byte) (common.Address, error)

NativeToWrappedToken is a free data retrieval call binding the contract method 0x2b793cc8.

Solidity: function nativeToWrappedToken(bytes ) view returns(address)

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) RenounceOwnership

func (_Router *RouterSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*RouterSession) ServiceFee

func (_Router *RouterSession) ServiceFee() (*big.Int, error)

ServiceFee is a free data retrieval call binding the contract method 0x8abdf5aa.

Solidity: function serviceFee() view returns(uint256)

func (*RouterSession) SetServiceFee

func (_Router *RouterSession) SetServiceFee(_serviceFee *big.Int) (*types.Transaction, error)

SetServiceFee is a paid mutator transaction binding the contract method 0x5cdf76f8.

Solidity: function setServiceFee(uint256 _serviceFee) returns()

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) UpdateMember

func (_Router *RouterSession) UpdateMember(account common.Address, isMember bool) (*types.Transaction, error)

UpdateMember is a paid mutator transaction binding the contract method 0x05566101.

Solidity: function updateMember(address account, bool isMember) returns()

func (*RouterSession) UpdateWrappedToken

func (_Router *RouterSession) UpdateWrappedToken(newWrappedToken common.Address, tokenID []byte, isActive bool) (*types.Transaction, error)

UpdateWrappedToken is a paid mutator transaction binding the contract method 0xb9080c46.

Solidity: function updateWrappedToken(address newWrappedToken, bytes tokenID, bool isActive) returns()

func (*RouterSession) WrappedToNativeToken

func (_Router *RouterSession) WrappedToNativeToken(arg0 common.Address) ([]byte, error)

WrappedToNativeToken is a free data retrieval call binding the contract method 0x0aa3824d.

Solidity: function wrappedToNativeToken(address ) view returns(bytes)

func (*RouterSession) WrappedTokenAt

func (_Router *RouterSession) WrappedTokenAt(index *big.Int) (common.Address, error)

WrappedTokenAt is a free data retrieval call binding the contract method 0xae963d45.

Solidity: function wrappedTokenAt(uint256 index) view returns(address)

func (*RouterSession) WrappedTokensCount

func (_Router *RouterSession) WrappedTokensCount() (*big.Int, error)

WrappedTokensCount is a free data retrieval call binding the contract method 0xb753cf46.

Solidity: function wrappedTokensCount() view returns(uint256)

func (*RouterSession) WrappedTokensData

func (_Router *RouterSession) WrappedTokensData(arg0 common.Address) (struct {
	FeesAccrued     *big.Int
	PreviousAccrued *big.Int
	Accumulator     *big.Int
}, error)

WrappedTokensData is a free data retrieval call binding the contract method 0xf804b7a2.

Solidity: function wrappedTokensData(address ) view returns(uint256 feesAccrued, uint256 previousAccrued, uint256 accumulator)

type RouterTokenUpdate

type RouterTokenUpdate struct {
	WrappedToken common.Address
	NativeToken  []byte
	IsActive     bool
	Raw          types.Log // Blockchain specific contextual infos
}

RouterTokenUpdate represents a TokenUpdate event raised by the Router contract.

type RouterTokenUpdateIterator

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

RouterTokenUpdateIterator is returned from FilterTokenUpdate and is used to iterate over the raw logs and unpacked data for TokenUpdate events raised by the Router contract.

func (*RouterTokenUpdateIterator) Close

func (it *RouterTokenUpdateIterator) Close() error

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

func (*RouterTokenUpdateIterator) Error

func (it *RouterTokenUpdateIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RouterTokenUpdateIterator) Next

func (it *RouterTokenUpdateIterator) 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) Burn

func (_Router *RouterTransactor) Burn(opts *bind.TransactOpts, amount *big.Int, receiver []byte, wrappedToken common.Address) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x8c99319f.

Solidity: function burn(uint256 amount, bytes receiver, address wrappedToken) returns()

func (*RouterTransactor) Claim

func (_Router *RouterTransactor) Claim(opts *bind.TransactOpts, wrappedToken common.Address) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0x1e83409a.

Solidity: function claim(address wrappedToken) returns()

func (*RouterTransactor) Mint

func (_Router *RouterTransactor) Mint(opts *bind.TransactOpts, transactionId []byte, wrappedToken common.Address, receiver common.Address, amount *big.Int, signatures [][]byte) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x9949e912.

Solidity: function mint(bytes transactionId, address wrappedToken, address receiver, uint256 amount, bytes[] signatures) returns()

func (*RouterTransactor) MintWithReimbursement

func (_Router *RouterTransactor) MintWithReimbursement(opts *bind.TransactOpts, transactionId []byte, wrappedToken common.Address, receiver common.Address, amount *big.Int, txCost *big.Int, signatures [][]byte) (*types.Transaction, error)

MintWithReimbursement is a paid mutator transaction binding the contract method 0x9787221b.

Solidity: function mintWithReimbursement(bytes transactionId, address wrappedToken, address receiver, uint256 amount, uint256 txCost, bytes[] signatures) returns()

func (*RouterTransactor) RenounceOwnership

func (_Router *RouterTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*RouterTransactor) SetServiceFee

func (_Router *RouterTransactor) SetServiceFee(opts *bind.TransactOpts, _serviceFee *big.Int) (*types.Transaction, error)

SetServiceFee is a paid mutator transaction binding the contract method 0x5cdf76f8.

Solidity: function setServiceFee(uint256 _serviceFee) 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) UpdateMember

func (_Router *RouterTransactor) UpdateMember(opts *bind.TransactOpts, account common.Address, isMember bool) (*types.Transaction, error)

UpdateMember is a paid mutator transaction binding the contract method 0x05566101.

Solidity: function updateMember(address account, bool isMember) returns()

func (*RouterTransactor) UpdateWrappedToken

func (_Router *RouterTransactor) UpdateWrappedToken(opts *bind.TransactOpts, newWrappedToken common.Address, tokenID []byte, isActive bool) (*types.Transaction, error)

UpdateWrappedToken is a paid mutator transaction binding the contract method 0xb9080c46.

Solidity: function updateWrappedToken(address newWrappedToken, bytes tokenID, bool isActive) 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) Burn

func (_Router *RouterTransactorSession) Burn(amount *big.Int, receiver []byte, wrappedToken common.Address) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x8c99319f.

Solidity: function burn(uint256 amount, bytes receiver, address wrappedToken) returns()

func (*RouterTransactorSession) Claim

func (_Router *RouterTransactorSession) Claim(wrappedToken common.Address) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0x1e83409a.

Solidity: function claim(address wrappedToken) returns()

func (*RouterTransactorSession) Mint

func (_Router *RouterTransactorSession) Mint(transactionId []byte, wrappedToken common.Address, receiver common.Address, amount *big.Int, signatures [][]byte) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x9949e912.

Solidity: function mint(bytes transactionId, address wrappedToken, address receiver, uint256 amount, bytes[] signatures) returns()

func (*RouterTransactorSession) MintWithReimbursement

func (_Router *RouterTransactorSession) MintWithReimbursement(transactionId []byte, wrappedToken common.Address, receiver common.Address, amount *big.Int, txCost *big.Int, signatures [][]byte) (*types.Transaction, error)

MintWithReimbursement is a paid mutator transaction binding the contract method 0x9787221b.

Solidity: function mintWithReimbursement(bytes transactionId, address wrappedToken, address receiver, uint256 amount, uint256 txCost, bytes[] signatures) returns()

func (*RouterTransactorSession) RenounceOwnership

func (_Router *RouterTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*RouterTransactorSession) SetServiceFee

func (_Router *RouterTransactorSession) SetServiceFee(_serviceFee *big.Int) (*types.Transaction, error)

SetServiceFee is a paid mutator transaction binding the contract method 0x5cdf76f8.

Solidity: function setServiceFee(uint256 _serviceFee) 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) UpdateMember

func (_Router *RouterTransactorSession) UpdateMember(account common.Address, isMember bool) (*types.Transaction, error)

UpdateMember is a paid mutator transaction binding the contract method 0x05566101.

Solidity: function updateMember(address account, bool isMember) returns()

func (*RouterTransactorSession) UpdateWrappedToken

func (_Router *RouterTransactorSession) UpdateWrappedToken(newWrappedToken common.Address, tokenID []byte, isActive bool) (*types.Transaction, error)

UpdateWrappedToken is a paid mutator transaction binding the contract method 0xb9080c46.

Solidity: function updateWrappedToken(address newWrappedToken, bytes tokenID, bool isActive) returns()

Jump to

Keyboard shortcuts

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