UNPKG

1.73 kBJavaScriptView Raw
1export const v15 = {
2 // new/adjusted in v15
3 CustomMetadata15: {
4 map: 'BTreeMap<Text, CustomValueMetadata15>'
5 },
6 CustomValueMetadata15: {
7 type: 'SiLookupTypeId',
8 value: 'Bytes'
9 },
10 ExtrinsicMetadataV15: {
11 version: 'u8',
12 addressType: 'SiLookupTypeId',
13 callType: 'SiLookupTypeId',
14 signatureType: 'SiLookupTypeId',
15 extraType: 'SiLookupTypeId',
16 signedExtensions: 'Vec<SignedExtensionMetadataV14>'
17 },
18 OuterEnums15: {
19 callType: 'SiLookupTypeId',
20 eventType: 'SiLookupTypeId',
21 errorType: 'SiLookupTypeId'
22 },
23 PalletMetadataV15: {
24 name: 'Text',
25 storage: 'Option<PalletStorageMetadataV14>',
26 calls: 'Option<PalletCallMetadataV14>',
27 events: 'Option<PalletEventMetadataV14>',
28 constants: 'Vec<PalletConstantMetadataV14>',
29 errors: 'Option<PalletErrorMetadataV14>',
30 index: 'u8',
31 docs: 'Vec<Text>'
32 },
33 RuntimeApiMetadataV15: {
34 name: 'Text',
35 methods: 'Vec<RuntimeApiMethodMetadataV15>',
36 docs: 'Vec<Text>'
37 },
38 RuntimeApiMethodMetadataV15: {
39 name: 'Text',
40 inputs: 'Vec<RuntimeApiMethodParamMetadataV15>',
41 output: 'SiLookupTypeId',
42 docs: 'Vec<Text>'
43 },
44 RuntimeApiMethodParamMetadataV15: {
45 name: 'Text',
46 type: 'SiLookupTypeId'
47 },
48 // actual v15 definition
49 MetadataV15: {
50 lookup: 'PortableRegistry',
51 pallets: 'Vec<PalletMetadataV15>',
52 extrinsic: 'ExtrinsicMetadataV15',
53 type: 'SiLookupTypeId',
54 apis: 'Vec<RuntimeApiMetadataV15>',
55 outerEnums: 'OuterEnums15',
56 custom: 'CustomMetadata15'
57 }
58};