Vara
subscan
Runtime Modules / GearVoucher
Spec Version:
Call Functions
Name
Lookup
Parameters
issue6b005
call6b012
revoke6b022
update6b037
decline6b041
Events
Name
Lookup
Attributes
VoucherIssued6b00["AccountIdOf","AccountIdOf","VoucherId"]
VoucherRevoked6b01["AccountIdOf","VoucherId"]
VoucherUpdated6b02["AccountIdOf","VoucherId","Option<AccountIdOf>"]
VoucherDeclined6b03["AccountIdOf","VoucherId"]
Storage Functions
Name
Type
Issued{"origin":"PlainType","plain_type":"U64","PlainTypeValue":12}
Vouchers{"origin":"Map","n_map_type":{"hashers":["Identity","Identity"],"key_vec":["AccountId","[U8; 32]"],"value":"pallet_gear_voucher:internal:VoucherInfo","keys_id":636,"value_id":637}}
Constants
Name
Type
Value
PalletId[U8; 8]70792f766f756368
MaxProgramsAmountU820
MinDurationU3214000000
MaxDurationU3200ea2400
Error Types
Name
Docs
BadOriginThe origin is not eligible to execute call.
BalanceTransferError trying transfer balance to/from voucher account.
InappropriateDestinationDestination program is not in whitelisted set for voucher.
InexistentVoucherVoucher with given identifier doesn't exist for given spender id.
IrrevocableYetVoucher still valid and couldn't be revoked.
MaxProgramsLimitExceededTry to whitelist more programs than allowed.
UnknownDestinationFailed to query destination of the prepaid call.
VoucherExpiredVoucher has expired and couldn't be used.
DurationOutOfBoundsVoucher issue/prolongation duration out of [min; max] constants.
CodeUploadingEnabledVoucher update function tries to cut voucher ability of code upload.
CodeUploadingDisabledVoucher is disabled for code uploading, but requested.