Skip to content

Commit

Permalink
remove unneccessary methods, support multiple state machines
Browse files Browse the repository at this point in the history
  • Loading branch information
seunlanlege committed Apr 12, 2024
1 parent d135331 commit 68f657a
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions src/IIsmpHost.sol
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ interface IIsmpHost is IDispatcher {
function consensusUpdateTime() external view returns (uint256);

/**
* @return the latest state machine height
* @return the latest state machine height for the given stateMachineId. If it returns 0, the state machine is unsupported.
*/
function latestStateMachineHeight() external view returns (uint256);
function latestStateMachineHeight(uint256 stateMachineId) external view returns (uint256);

/**
* @return the state of the consensus client
Expand Down Expand Up @@ -124,18 +124,6 @@ interface IIsmpHost is IDispatcher {
*/
function storeConsensusState(bytes memory state) external;

/**
* @dev Store the timestamp when the consensus client was updated
* @param timestamp - new timestamp
*/
function storeConsensusUpdateTime(uint256 timestamp) external;

/**
* @dev Store the latest state machine height
* @param height State Machine Height
*/
function storeLatestStateMachineHeight(uint256 height) external;

/**
* @dev Store the commitment at `state height`
* @param height state machine height
Expand All @@ -144,13 +132,6 @@ interface IIsmpHost is IDispatcher {
function storeStateMachineCommitment(StateMachineHeight memory height, StateCommitment memory commitment)
external;

/**
* @dev Store the timestamp when the state machine was updated
* @param height state machine height
* @param timestamp new timestamp
*/
function storeStateMachineCommitmentUpdateTime(StateMachineHeight memory height, uint256 timestamp) external;

/**
* @dev Dispatch an incoming request to destination module
* @param request - post request
Expand Down

0 comments on commit 68f657a

Please sign in to comment.