Additional historic DispatchError variant (#5075)

This commit is contained in:
Jaco
2022-07-15 18:39:59 +03:00
committed by GitHub
parent 63d72e7d36
commit 67325dbc09
8 changed files with 53 additions and 4 deletions
@@ -101,6 +101,21 @@ export default {
Transactional: 'TransactionalError'
}
},
DispatchErrorPre6First: {
// The enum was modified mid-flight, affecting asset chains -
// https://github.com/paritytech/substrate/pull/10382/files#diff-e4e016b33a82268b6208dc974eea841bad47597865a749fee2f937eb6fdf67b4R498
_enum: {
Other: 'Null',
CannotLookup: 'Null',
BadOrigin: 'Null',
Module: 'DispatchErrorModulePre6',
ConsumerRemaining: 'Null',
NoProviders: 'Null',
Token: 'TokenError',
Arithmetic: 'ArithmeticError',
Transactional: 'TransactionalError'
}
},
DispatchErrorModuleU8: {
index: 'u8',
error: 'u8'
@@ -171,6 +171,24 @@ export interface DispatchErrorPre6 extends Enum {
readonly type: 'Other' | 'CannotLookup' | 'BadOrigin' | 'Module' | 'ConsumerRemaining' | 'NoProviders' | 'TooManyConsumers' | 'Token' | 'Arithmetic' | 'Transactional';
}
/** @name DispatchErrorPre6First */
export interface DispatchErrorPre6First extends Enum {
readonly isOther: boolean;
readonly isCannotLookup: boolean;
readonly isBadOrigin: boolean;
readonly isModule: boolean;
readonly asModule: DispatchErrorModulePre6;
readonly isConsumerRemaining: boolean;
readonly isNoProviders: boolean;
readonly isToken: boolean;
readonly asToken: TokenError;
readonly isArithmetic: boolean;
readonly asArithmetic: ArithmeticError;
readonly isTransactional: boolean;
readonly asTransactional: TransactionalError;
readonly type: 'Other' | 'CannotLookup' | 'BadOrigin' | 'Module' | 'ConsumerRemaining' | 'NoProviders' | 'Token' | 'Arithmetic' | 'Transactional';
}
/** @name DispatchErrorTo198 */
export interface DispatchErrorTo198 extends Struct {
readonly module: Option<u8>;