UNPKG

2.52 kBJavaScriptView Raw
1import { Si1Variant } from '../scaleInfo/v1.js';
2export const v14 = {
3 // registry
4 PortableTypeV14: {
5 id: 'Si1LookupTypeId',
6 type: 'Si1Type'
7 },
8 // compatibility with earlier layouts, i.e. don't break previous users
9 ErrorMetadataV14: {
10 ...Si1Variant,
11 args: 'Vec<Type>'
12 },
13 EventMetadataV14: {
14 ...Si1Variant,
15 args: 'Vec<Type>'
16 },
17 FunctionArgumentMetadataV14: {
18 name: 'Text',
19 type: 'Type',
20 typeName: 'Option<Type>'
21 },
22 FunctionMetadataV14: {
23 ...Si1Variant,
24 args: 'Vec<FunctionArgumentMetadataV14>'
25 },
26 // V14
27 ExtrinsicMetadataV14: {
28 type: 'SiLookupTypeId',
29 version: 'u8',
30 signedExtensions: 'Vec<SignedExtensionMetadataV14>'
31 },
32 MetadataV14: {
33 lookup: 'PortableRegistry',
34 pallets: 'Vec<PalletMetadataV14>',
35 extrinsic: 'ExtrinsicMetadataV14',
36 type: 'SiLookupTypeId'
37 },
38 PalletCallMetadataV14: {
39 type: 'SiLookupTypeId'
40 },
41 PalletConstantMetadataV14: {
42 name: 'Text',
43 type: 'SiLookupTypeId',
44 value: 'Bytes',
45 docs: 'Vec<Text>'
46 },
47 PalletErrorMetadataV14: {
48 type: 'SiLookupTypeId'
49 },
50 PalletEventMetadataV14: {
51 type: 'SiLookupTypeId'
52 },
53 PalletMetadataV14: {
54 name: 'Text',
55 storage: 'Option<PalletStorageMetadataV14>',
56 calls: 'Option<PalletCallMetadataV14>',
57 events: 'Option<PalletEventMetadataV14>',
58 constants: 'Vec<PalletConstantMetadataV14>',
59 errors: 'Option<PalletErrorMetadataV14>',
60 index: 'u8'
61 },
62 PalletStorageMetadataV14: {
63 prefix: 'Text',
64 // NOTE: Renamed from entries
65 items: 'Vec<StorageEntryMetadataV14>'
66 },
67 SignedExtensionMetadataV14: {
68 identifier: 'Text',
69 type: 'SiLookupTypeId',
70 additionalSigned: 'SiLookupTypeId'
71 },
72 StorageEntryMetadataV14: {
73 name: 'Text',
74 modifier: 'StorageEntryModifierV14',
75 type: 'StorageEntryTypeV14',
76 fallback: 'Bytes',
77 docs: 'Vec<Text>'
78 },
79 StorageEntryModifierV14: 'StorageEntryModifierV13',
80 StorageEntryTypeV14: {
81 _enum: {
82 Plain: 'SiLookupTypeId',
83 Map: {
84 hashers: 'Vec<StorageHasherV14>',
85 key: 'SiLookupTypeId', // NOTE: Renamed from "keys"
86 value: 'SiLookupTypeId'
87 }
88 }
89 },
90 StorageHasherV14: 'StorageHasherV13'
91};