Skip to content

Commit

Permalink
Refactor IVoucherHub interface by removing unnecessary whitespace for…
Browse files Browse the repository at this point in the history
… improved readability
  • Loading branch information
Le-Caignec committed Feb 4, 2025
1 parent 0f29c36 commit 0b1aab9
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions contracts/IVoucherHub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,16 @@ interface IVoucherHub {
event VoucherDrained(address indexed voucher, uint256 amount);

function createVoucherType(string memory description, uint256 duration) external;

function updateVoucherTypeDescription(uint256 id, string memory description) external;

function updateVoucherTypeDuration(uint256 id, uint256 duration) external;

function addEligibleAsset(uint256 voucherTypeId, address asset) external;

function removeEligibleAsset(uint256 voucherTypeId, address asset) external;

function createVoucher(
address owner,
uint256 voucherType,
uint256 value
) external returns (address voucherAddress);

function topUpVoucher(address voucher, uint256 value) external;

function debitVoucher(
uint256 voucherTypeId,
address app,
Expand All @@ -54,31 +47,20 @@ interface IVoucherHub {
uint256 workerpoolPrice,
uint256 volume
) external returns (uint256 sponsoredAmount);

function refundVoucher(uint256 amount) external;

function drainVoucher(address voucher) external;

function withdraw(address receiver, uint256 amount) external;

function getIexecPoco() external view returns (address);

function getVoucherBeacon() external view returns (address);

function getVoucherProxyCodeHash() external view returns (bytes32);

function getVoucherType(uint256 id) external view returns (VoucherType memory);

function getVoucherTypeCount() external view returns (uint256);

function isAssetEligibleToMatchOrdersSponsoring(
uint256 voucherTypeId,
address asset
) external view returns (bool);

function isVoucher(address account) external view returns (bool);

function getVoucher(address owner) external view returns (address);

function predictVoucher(address owner) external view returns (address);
}

0 comments on commit 0b1aab9

Please sign in to comment.