UNPKG

2.72 kBJavaScriptView Raw
1import { AllHashers } from './hashers.js';
2import { runtime } from './runtime.js';
3import { v9 } from './v9.js';
4import { v10 } from './v10.js';
5import { v11 } from './v11.js';
6import { v12 } from './v12.js';
7import { v13 } from './v13.js';
8import { v14 } from './v14.js';
9import { v15 } from './v15.js';
10export { AllHashers };
11export default {
12 rpc: {},
13 runtime,
14 types: {
15 // all known
16 ...v9,
17 ...v10,
18 ...v11,
19 ...v12,
20 ...v13,
21 ...v14,
22 ...v15,
23 // latest mappings
24 // NOTE: For v15, we only added the runtime defintions,
25 // hence latest for most pointing to the previous V14
26 ErrorMetadataLatest: 'ErrorMetadataV14',
27 EventMetadataLatest: 'EventMetadataV14',
28 ExtrinsicMetadataLatest: 'ExtrinsicMetadataV15',
29 FunctionArgumentMetadataLatest: 'FunctionArgumentMetadataV14',
30 FunctionMetadataLatest: 'FunctionMetadataV14',
31 MetadataLatest: 'MetadataV15',
32 PalletCallMetadataLatest: 'PalletCallMetadataV14',
33 PalletConstantMetadataLatest: 'PalletConstantMetadataV14',
34 PalletErrorMetadataLatest: 'PalletErrorMetadataV14',
35 PalletEventMetadataLatest: 'PalletEventMetadataV14',
36 PalletMetadataLatest: 'PalletMetadataV15',
37 PalletStorageMetadataLatest: 'PalletStorageMetadataV14',
38 PortableType: 'PortableTypeV14',
39 RuntimeApiMetadataLatest: 'RuntimeApiMetadataV15',
40 SignedExtensionMetadataLatest: 'SignedExtensionMetadataV14',
41 StorageEntryMetadataLatest: 'StorageEntryMetadataV14',
42 StorageEntryModifierLatest: 'StorageEntryModifierV14',
43 StorageEntryTypeLatest: 'StorageEntryTypeV14',
44 StorageHasher: 'StorageHasherV14',
45 // additional types
46 OpaqueMetadata: 'Opaque<Bytes>',
47 // the enum containing all the mappings
48 MetadataAll: {
49 _enum: {
50 V0: 'DoNotConstruct<MetadataV0>',
51 V1: 'DoNotConstruct<MetadataV1>',
52 V2: 'DoNotConstruct<MetadataV2>',
53 V3: 'DoNotConstruct<MetadataV3>',
54 V4: 'DoNotConstruct<MetadataV4>',
55 V5: 'DoNotConstruct<MetadataV5>',
56 V6: 'DoNotConstruct<MetadataV6>',
57 V7: 'DoNotConstruct<MetadataV7>',
58 V8: 'DoNotConstruct<MetadataV8>',
59 // First version on Kusama in V9, dropping will be problematic
60 V9: 'MetadataV9',
61 V10: 'MetadataV10',
62 V11: 'MetadataV11',
63 V12: 'MetadataV12',
64 V13: 'MetadataV13',
65 V14: 'MetadataV14',
66 V15: 'MetadataV15'
67 }
68 }
69 }
70};