BatchMessageSender
Example app of sending multiple messages in one transaction
Methods
executeMessage
Executes a message called by MessageBus (MessageBusReceiver)
Must be called by MessageBug & sent from src chain by a trusted srcApp
Parameters
Name | Type | Description |
---|---|---|
_srcAddress | bytes32 | The bytes32 address of the source app contract |
_srcChainId | uint256 | The source chain ID where the transfer is originated from |
_message | bytes | Arbitrary message bytes originated from and encoded by the source app contract |
_executor | address | Address who called the MessageBus execution function |
getTrustedRemote
Parameters
Name | Type | Description |
---|---|---|
_chainId | uint256 | undefined |
Returns
Name | Type | Description |
---|---|---|
trustedRemote | bytes32 | undefined |
messageBus
Returns
Name | Type | Description |
---|---|---|
_0 | address | undefined |
owner
Returns the address of the current owner.
Returns
Name | Type | Description |
---|---|---|
_0 | address | undefined |
renounceOwnership
Leaves the contract without owner. It will not be possible to call onlyOwner
functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
sendMultipleMessages
Parameters
Name | Type | Description |
---|---|---|
_receiver | bytes32[] | undefined |
_dstChainId | uint256[] | undefined |
_message | bytes[] | undefined |
_options | bytes[] | undefined |
setMessageBus
Parameters
Name | Type | Description |
---|---|---|
_messageBus | address | undefined |
setTrustedRemote
Parameters
Name | Type | Description |
---|---|---|
_srcChainId | uint256 | undefined |
_srcAddress | bytes32 | undefined |
transferOwnership
Transfers ownership of the contract to a new account (newOwner
). Can only be called by the current owner.
Parameters
Name | Type | Description |
---|---|---|
newOwner | address | undefined |
Events
OwnershipTransferred
Parameters
Name | Type | Description |
---|---|---|
previousOwner | address | undefined |
newOwner | address | undefined |
SetTrustedRemote
Parameters
Name | Type | Description |
---|---|---|
_srcChainId | uint256 | undefined |
_srcAddress | bytes32 | undefined |
Last updated