Name | Lookup | Attributes | |
|---|---|---|---|
| VoucherIssued | 6b00 | ["AccountIdOf","AccountIdOf","VoucherId"] | |
| VoucherRevoked | 6b01 | ["AccountIdOf","VoucherId"] | |
| VoucherUpdated | 6b02 | ["AccountIdOf","VoucherId","Option<AccountIdOf>"] | |
| VoucherDeclined | 6b03 | ["AccountIdOf","VoucherId"] |
Name | Type | |
|---|---|---|
| Issued | {"origin":"PlainType","plain_type":"U64","PlainTypeValue":11} | |
| Vouchers | {"origin":"Map","n_map_type":{"hashers":["Identity","Identity"],"key_vec":["AccountId","[U8; 32]"],"value":"pallet_gear_voucher:internal:VoucherInfo","keys_id":628,"value_id":629}} |
Name | Type | Value | |
|---|---|---|---|
| PalletId | [U8; 8] | 70792f766f756368 | |
| MaxProgramsAmount | U8 | 20 | |
| MinDuration | U32 | 14000000 | |
| MaxDuration | U32 | 00ea2400 |
Name | Docs |
|---|---|
| BadOrigin | The origin is not eligible to execute call. |
| BalanceTransfer | Error trying transfer balance to/from voucher account. |
| InappropriateDestination | Destination program is not in whitelisted set for voucher. |
| InexistentVoucher | Voucher with given identifier doesn't exist for given spender id. |
| IrrevocableYet | Voucher still valid and couldn't be revoked. |
| MaxProgramsLimitExceeded | Try to whitelist more programs than allowed. |
| UnknownDestination | Failed to query destination of the prepaid call. |
| VoucherExpired | Voucher has expired and couldn't be used. |
| DurationOutOfBounds | Voucher issue/prolongation duration out of [min; max] constants. |
| CodeUploadingEnabled | Voucher update function tries to cut voucher ability of code upload. |
| CodeUploadingDisabled | Voucher is disabled for code uploading, but requested. |