struct VoucherType {
string description;
uint256 duration;
}
event VoucherTypeCreated (uint256 id , string description , uint256 duration )
VoucherTypeDescriptionUpdated
event VoucherTypeDescriptionUpdated (uint256 id , string description )
VoucherTypeDurationUpdated
event VoucherTypeDurationUpdated (uint256 id , uint256 duration )
event EligibleAssetAdded (uint256 id , address asset )
event EligibleAssetRemoved (uint256 id , address asset )
event VoucherCreated (address voucher , address owner , uint256 voucherType , uint256 expiration , uint256 value )
event VoucherToppedUp (address voucher , uint256 expiration , uint256 value )
event VoucherDebited (address voucher , uint256 sponsoredAmount )
event VoucherRefunded (address voucher , uint256 amount )
event VoucherDrained (address voucher , uint256 amount )
function createVoucherType (string description , uint256 duration ) external
updateVoucherTypeDescription
function updateVoucherTypeDescription (uint256 id , string description ) external
updateVoucherTypeDuration
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 , uint256 appPrice , address dataset , uint256 datasetPrice , address workerpool , 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 (struct IVoucherHub .VoucherType)
function getVoucherTypeCount () external view returns (uint256 )
isAssetEligibleToMatchOrdersSponsoring
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 )