Skip to content

Latest commit

 

History

History
130 lines (86 loc) · 2.3 KB

File metadata and controls

130 lines (86 loc) · 2.3 KB

Solidity API

IVoucher

ExpirationUpdated

event ExpirationUpdated(uint256 expiration)

AccountAuthorized

event AccountAuthorized(address account)

AccountUnauthorized

event AccountUnauthorized(address account)

OrdersMatchedWithVoucher

event OrdersMatchedWithVoucher(bytes32 dealId)

OrdersBoostMatchedWithVoucher

event OrdersBoostMatchedWithVoucher(bytes32 dealId)

TaskClaimedWithVoucher

event TaskClaimedWithVoucher(bytes32 taskId)

setExpiration

function setExpiration(uint256 expiration) external

authorizeAccount

function authorizeAccount(address account) external

unauthorizeAccount

function unauthorizeAccount(address account) external

matchOrders

function matchOrders(struct IexecLibOrders_v5.AppOrder appOrder, struct IexecLibOrders_v5.DatasetOrder datasetOrder, struct IexecLibOrders_v5.WorkerpoolOrder workerpoolOrder, struct IexecLibOrders_v5.RequestOrder requestOrder) external returns (bytes32)

matchOrdersBoost

function matchOrdersBoost(struct IexecLibOrders_v5.AppOrder appOrder, struct IexecLibOrders_v5.DatasetOrder datasetOrder, struct IexecLibOrders_v5.WorkerpoolOrder workerpoolOrder, struct IexecLibOrders_v5.RequestOrder requestOrder) external returns (bytes32)

claim

function claim(bytes32 taskId) external

claimBoost

function claimBoost(bytes32 dealId, uint256 taskIndex) external

drain

function drain(uint256 amount) external

getVoucherHub

function getVoucherHub() external view returns (address)

getType

function getType() external view returns (uint256)

getExpiration

function getExpiration() external view returns (uint256)

getBalance

function getBalance() external view returns (uint256)

isAccountAuthorized

function isAccountAuthorized(address account) external view returns (bool)

getSponsoredAmount

function getSponsoredAmount(bytes32 dealId) external view returns (uint256)

isRefundedTask

function isRefundedTask(bytes32 taskId) external view returns (bool)