Parsing for metadata v14 (#3759)
* Adjust * Better, need a BoundedVec solution... * Composites * Storage optional types * Better... not perfect * v14 tests passing * Always perform asLatest * Keep portable registry seperate * Cleanup derived types * Cleanups * Adjust * Cleanups * Pass wraps * Rename types (PortableRegistry) -> lookup * Back on-track... * SiLookup strings * Allow building * unsafe create on registry * createTypeUnsafe typing * Adjust * Fix bool check * Remove WrappedConstructor * Additional * Additional cleanups * On-demand even type creation * Rework * Adjust * Revert createClass to master (with adjustments) * Running through v14 * Registry from master * Run against v14 * Adjust * Adjust * Adjust generation (non-complete) * Adjust * Definition from metadata (round 1) * Some linting fixes * v13 * Adjust * Dedupe * Some linting * Additional linting (md generation, not all) * md additional * calls update * Additional linting * Cleanups * Remove extra arg * Remove unneeded assert * Revert < 12 index adjustments * Cleanups * v13 compat types * Some tests * Registry revert * Additional test fixes * Adjust sorting * Adjust tests with lookups * CodeClimate cleanups * Additional tests * Compat with prev-generation args * Error & events compat args * Fix Error/Event metadata creation * Fix lookup circular * Registry types * Adjust * Adjust lookup generation * Short-circuit full type (with lookupIndex) * Defaults for type expansion * Tuple with extra spaces removed * Fill in generated types * Checks * Adjust generation * Adjust tests * Adjust * Adjust type encoding * Adjust * Use registry for name generation * Update v13 lookup generation * Adjust looup with typeDef (optional) * Format lookup definitions * Start with TS interface generation * Adjust * Adjust * Adjust * Don't short-cisrcuit type evaluation * Adjust * Correct plain imports * Adjust * Don't remove already-set lookupName * Bytes * Cleanups * Adjust with unused * Embed non-named structs * Enum without name throws error * Case-sensitivity on path duplication * s/lookupNameOrig/lookupNameRoot/ * Don't export Lookup* type interfaces * Shortcut lookup * Adjust * Revert api/Decorate * Adjust import name generation * Don't clobber root lookups * Root exports * Remove duplicated fields creation * Adjust less-important name parts * Cleanups & imports * Adjust with correct imports * Storage optionality * Rebuild, fix (some) tests * Extract identity BitFlags * Additional cleanups * Adjust * No IdentityFields override * v13 for extrinsic test * Dedupe getUniqTypes * Simplify? * Adjust * Update sorting * Adjust expansion * Dedupe * Strip generics, sub-part * matching * Name matching * Align * Adjust set matching * hex/json split * naming * v13 for extrinsic injection test * Adjust test signature * Dedupe tests * Adjust * Update import * augment @polkadot/types/lookup * Sort import names * Handle BitSequence in PortableRegistry * Use Kusama-dev v14 metadata * Merge bitSequence support * Polkadot/Substrate split * Template formatting * Hobbling along * Adjust * Recode subs * Fix circular in dual fashion * Adjust * Also generate Substrate * Exclude Substrate types from Polkadot * Remove duplicate phantoms * Cleanup lookup typegen * Additional * Extract names with params (as applicable) * Ensure path is always available * renames * Metadata v14 only has combined Map * v14 Map conversion de-duped * Substrate Map conversion * v13 tests * Apply suggestions from code review * Housekeeping * v14 bump * NMap -> Map (& others removed) * Adjust generation * Decorate linting * Tuple & non-tuple types * hashers check * Condense * Additional asTuple check * Consistent pre-v14 Map handling * Fix metadata tests * Fix (some) tests * Fix test expectations * Fail create early * Additional fixes * Additional * Movement * Remove CodecArg * Dump it * Apply param expansion * Remove only * Allow no-args to StorageKey * linting * multi fixes * Map adjustments * Rebuild * Rebuild * Rebuild * Latest * Bump metadata * Rewrite * Fix lookup formatting * Rebuild after merge * Latest substrate v14 * Rebuild * Rebuild (+ no enum trailing ,) * trigger * Fix JSON checks * Remove unneeded check * Bump Kusama/Polkadot * Dedupe testUtil * Metadata v14
This commit is contained in:
@@ -78,7 +78,8 @@ describe('derive', (): void => {
|
||||
}
|
||||
},
|
||||
provider: new MockProvider(registry),
|
||||
registry
|
||||
registry,
|
||||
throwOnConnect: true
|
||||
});
|
||||
|
||||
beforeAll((done): void => {
|
||||
|
||||
Reference in New Issue
Block a user