Gateway
The Ethereum gateway is the connection between client and the relayer. Gateway implements the below given interface.
Gateway Interface:
interface IGateway {
/// @notice Initialize the verification address
/// @param _masterVerificationAddress The verification input address
function initialize(address _masterVerificationAddress) external;
/// @notice Updating the route
/// @param _route Route name
/// @param _verificationAddress Address corresponding to the route
/// @param _signature Signed hashed inputs(_route + _verificationAddress)
function updateRoute(string memory _route, address _verificationAddress, bytes memory _signature) external;
/// @notice Pre-Execution
/// @param _task Task struct
/// @param _info ExecutionInfo struct
function preExecution(Task memory _task, ExecutionInfo memory _info) external;
/// @notice Post-Execution
/// @param _taskId Task Id of the executed message
/// @param _sourceNetwork Source network of the message
/// @param _info PostExecutionInfo struct
function postExecution(uint256 _taskId, string memory _sourceNetwork, PostExecutionInfo memory _info) external;
}Data Structs:
Last updated