Update to Metadata v5 (#991)
* add v5 folder * Fixed typo in README * Updated tests to v5 * added v5 methods to MetadataVersioned * Added toV5 conversion file to v4 folder * change from v4 to v5 * Bump up version * Update imports in type-storage package * Switch to v5 imports in type-extrinsics, rpc-core and rpc-provider * 0.81.0 => 0.82.0 * Updating dependencies to 0.82.0 * update comments * Undo version bump * Remove release notes * v4 to v5 conversion * WIP tests * Addresses Amaurys comments * re-added conversion function * removed unused imports * Re-add string to HasherInput type * addresses failing derive tests * Fixed broken derive e2e tests * v5 tests * Update packages/types/src/Metadata/MetadataVersioned.ts Co-Authored-By: Amaury Martiny <amaury.martiny@protonmail.com> * v3->v4 * trigger hung up travis build
This commit is contained in:
co-authored by
Amaury Martiny
parent
7bd2fcd7f9
commit
e4a97d4efd
@@ -9,6 +9,7 @@ import { Storage } from '@polkadot/storage/types';
|
||||
import Metadata from '@polkadot/types/Metadata';
|
||||
import rpcMetadataV3 from '@polkadot/types/Metadata/v3/static';
|
||||
import rpcMetadataV4 from '@polkadot/types/Metadata/v4/static';
|
||||
import rpcMetadataV5 from '@polkadot/types/Metadata/v5/static';
|
||||
|
||||
import Api from '.';
|
||||
|
||||
@@ -88,8 +89,15 @@ formattingTests(
|
||||
fromMetadata(new Metadata(rpcMetadataV3)),
|
||||
['0x4af2c53fce3ec33c6ccccf22e926f1a7', '0x3e62f7ed6e788e1337bce2a97b68a12a']
|
||||
);
|
||||
|
||||
formattingTests(
|
||||
'v4',
|
||||
fromMetadata(new Metadata(rpcMetadataV4)),
|
||||
['0xec8f96437274a883afcac82d01a9defeb68209cd4f2c084632813692aa5e65ad', '0x1dbb0224910f42a14e7f1406b24c6fe8157296691b02a78756e01946038fffab']
|
||||
);
|
||||
|
||||
formattingTests(
|
||||
'v5',
|
||||
fromMetadata(new Metadata(rpcMetadataV5)),
|
||||
['0xec8f96437274a883afcac82d01a9defeb68209cd4f2c084632813692aa5e65ad', '0x1dbb0224910f42a14e7f1406b24c6fe8157296691b02a78756e01946038fffab']
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user