Skip to content

Commit

Permalink
move payment methods from host to Dispatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
seunlanlege committed Sep 11, 2024
1 parent 80a44b6 commit e6da185
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
12 changes: 11 additions & 1 deletion interfaces/IDispatcher.sol
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,19 @@ struct DispatchPostResponse {
* @title The Ismp Dispatcher
* @author Polytope Labs ([email protected])
*
* @notice The IHandler interface serves as the entry point for ISMP datagrams, i.e consensus, requests & response messages.
* @notice The IDispatcher serves as the interface requests & response messages.
*/
interface IDispatcher {
/**
* @return the address of the fee token ERC-20 contract on this state machine
*/
function feeToken() external view returns (address);

/**
* @return the per-byte fee for outgoing messages.
*/
function perByteFee() external view returns (uint256);

/**
* @dev Dispatch a POST request to Hyperbridge
*
Expand Down
10 changes: 0 additions & 10 deletions interfaces/IIsmpHost.sol
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,6 @@ interface IIsmpHost is IDispatcher {
*/
function admin() external returns (address);

/**
* @return the address of the fee token ERC-20 contract on this state machine
*/
function feeToken() external view returns (address);

/**
* @return the per-byte fee for outgoing messages.
*/
function perByteFee() external view returns (uint256);

/**
* @return the host state machine id
*/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polytope-labs/ismp-solidity",
"version": "0.5.3",
"version": "0.6.0",
"description": "Hyperbridge Solidity SDK for the Interoperable state machine protocol",
"author": "Polytope Labs <[email protected]>",
"license": "Apache-2.0",
Expand Down

0 comments on commit e6da185

Please sign in to comment.