UNPKG

1.71 kBJavaScriptView Raw
1// Copyright 2017-2022 @polkadot/types authors & contributors
2// SPDX-License-Identifier: Apache-2.0
3// order important in structs... :)
4
5/* eslint-disable sort-keys */
6export const Si1Variant = {
7 name: 'Text',
8 fields: 'Vec<Si1Field>',
9 index: 'u8',
10 docs: 'Vec<Text>'
11};
12export const v1 = {
13 Si1Field: {
14 name: 'Option<Text>',
15 type: 'Si1LookupTypeId',
16 typeName: 'Option<Text>',
17 docs: 'Vec<Text>'
18 },
19 Si1LookupTypeId: 'Compact<u32>',
20 Si1Path: 'Si0Path',
21 Si1Type: {
22 path: 'Si1Path',
23 params: 'Vec<Si1TypeParameter>',
24 def: 'Si1TypeDef',
25 docs: 'Vec<Text>'
26 },
27 Si1TypeDef: {
28 _enum: {
29 Composite: 'Si1TypeDefComposite',
30 Variant: 'Si1TypeDefVariant',
31 Sequence: 'Si1TypeDefSequence',
32 Array: 'Si1TypeDefArray',
33 Tuple: 'Si1TypeDefTuple',
34 Primitive: 'Si1TypeDefPrimitive',
35 Compact: 'Si1TypeDefCompact',
36 BitSequence: 'Si1TypeDefBitSequence',
37 // NOTE: This is specific to the implementation for pre-v14 metadata
38 // compatibility (always keep this as the last entry in the enum)
39 HistoricMetaCompat: 'Type'
40 }
41 },
42 Si1TypeDefArray: {
43 len: 'u32',
44 type: 'Si1LookupTypeId'
45 },
46 Si1TypeDefBitSequence: {
47 bitStoreType: 'Si1LookupTypeId',
48 bitOrderType: 'Si1LookupTypeId'
49 },
50 Si1TypeDefCompact: {
51 type: 'Si1LookupTypeId'
52 },
53 Si1TypeDefComposite: {
54 fields: 'Vec<Si1Field>'
55 },
56 Si1TypeDefPrimitive: 'Si0TypeDefPrimitive',
57 Si1TypeDefSequence: {
58 type: 'Si1LookupTypeId'
59 },
60 Si1TypeDefTuple: 'Vec<Si1LookupTypeId>',
61 Si1TypeParameter: {
62 name: 'Text',
63 type: 'Option<Si1LookupTypeId>'
64 },
65 Si1TypeDefVariant: {
66 variants: 'Vec<Si1Variant>'
67 },
68 Si1Variant
69};
\No newline at end of file