struct BlockHeader header;
function init(address _addressManager) external
Initializer to be called after being deployed behind a proxy.
function sendSignal(bytes32 signal) public returns (bytes32 storageSlot)
Send a signal by storing the key with a value of 1.
Name | Type | Description |
---|
signal | bytes32 | The signal to send. |
Name | Type | Description |
---|
storageSlot | bytes32 | The slot in storage that this signal is persisted. |
function isSignalSent(address app, bytes32 signal) public view returns (bool)
Check if a signal has been sent (key stored with a value of 1).
Name | Type | Description |
---|
app | address | The address that sent this message. |
signal | bytes32 | The signal to check. |
function isSignalReceived(uint256 srcChainId, address app, bytes32 signal, bytes proof) public view returns (bool)
Check if signal has been received on the destination chain (current).
Name | Type | Description |
---|
srcChainId | uint256 | The source chain ID. |
app | address | The address that sent this message. |
signal | bytes32 | The signal to check. |
proof | bytes | The proof of the signal being sent on the source chain. |
function getSignalSlot(address app, bytes32 signal) public pure returns (bytes32 signalSlot)
Name | Type | Description |
---|
app | address | The srcAddress of the app (eg. the Bridge). |
signal | bytes32 | The signal to store. |
Name | Type | Description |
---|
signalSlot | bytes32 | The storage key for the signal on the signal service. |