Cater for named event fields (#4915)

* Cater for named event fields

* Adjust name extraction

* Rebuild with named events

* Empty object

* Adjust

* Additional

* Adjust
This commit is contained in:
Jaco
2022-06-09 13:44:31 +03:00
committed by GitHub
parent 322ac0861d
commit 7461527448
14 changed files with 824 additions and 766 deletions
@@ -1,6 +1,7 @@
// Copyright 2017-2022 @polkadot/types-create authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Option, Text } from '@polkadot/types-codec';
import type { ICompact, INumber } from '@polkadot/types-codec/types';
import type { TypeDef } from './types';
@@ -11,4 +12,5 @@ export interface ILookup {
}
},
getTypeDef (lookupId: ICompact<INumber> | string | number): TypeDef;
sanitizeField (name: Option<Text>): [string | null, string | null];
}