From f44324047d5445b4081d0dc6c37f211602c5270a Mon Sep 17 00:00:00 2001 From: Seun Lanlege Date: Thu, 12 Sep 2024 12:04:08 +0000 Subject: [PATCH] move some more methods --- interfaces/IDispatcher.sol | 12 ++++++++++++ interfaces/IIsmpHost.sol | 12 ------------ package.json | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/interfaces/IDispatcher.sol b/interfaces/IDispatcher.sol index adb5e67..08b9521 100644 --- a/interfaces/IDispatcher.sol +++ b/interfaces/IDispatcher.sol @@ -58,6 +58,18 @@ struct DispatchPostResponse { * @notice The IDispatcher serves as the interface requests & response messages. */ interface IDispatcher { + /** + * @dev Returns the address for the Uniswap V2 Router implementation used for swaps + * @return routerAddress - The address to the in-use RouterV02 implementation + */ + function uniswapV2Router() external view returns (address); + + /** + * @dev Returns the nonce immediately available for requests + * @return the `nonce` + */ + function nonce() external view returns (uint256); + /** * @dev Returns the address of the ERC-20 fee token contract configured for this state machine. * diff --git a/interfaces/IIsmpHost.sol b/interfaces/IIsmpHost.sol index fb8c4ee..4d90672 100644 --- a/interfaces/IIsmpHost.sol +++ b/interfaces/IIsmpHost.sol @@ -66,12 +66,6 @@ interface IIsmpHost is IDispatcher { */ function timestamp() external view returns (uint256); - /** - * @dev Returns the nonce immediately available for requests - * @return the `nonce` - */ - function nonce() external view returns (uint256); - /** * @dev Returns the fisherman responsible for vetoing the given state machine height. * @return the `fisherman` address @@ -83,12 +77,6 @@ interface IIsmpHost is IDispatcher { */ function frozen() external view returns (FrozenStatus); - /** - * @dev Returns the address for the Uniswap V2 Router implementation used for swaps - * @return routerAddress - The address to the in-use RouterV02 implementation - */ - function uniswapV2Router() external view returns (address); - /** * @dev Returns the fee required for 3rd party applications to access hyperbridge state commitments. * @return the `stateCommitmentFee` diff --git a/package.json b/package.json index 75eaa25..828f1c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@polytope-labs/ismp-solidity", - "version": "0.6.0", + "version": "0.6.1", "description": "Hyperbridge Solidity SDK for the Interoperable state machine protocol", "author": "Polytope Labs ", "license": "Apache-2.0",