@pezkuwi/types-known 16.5.5 → 16.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/bundle.js +3 -0
- package/chain/index.js +1 -0
- package/cjs/bundle.d.ts +3 -0
- package/cjs/bundle.js +9 -0
- package/cjs/chain/index.d.ts +2 -0
- package/cjs/chain/index.js +4 -0
- package/cjs/index.js +5 -0
- package/cjs/package.json +3 -0
- package/cjs/packageDetect.js +6 -0
- package/cjs/packageInfo.js +4 -0
- package/cjs/spec/centrifuge-chain.js +105 -0
- package/cjs/spec/dicle.js +118 -0
- package/cjs/spec/index.js +27 -0
- package/cjs/spec/node-template.js +13 -0
- package/cjs/spec/node.js +13 -0
- package/cjs/spec/pezkuwi.js +105 -0
- package/cjs/spec/pezkuwichain.js +65 -0
- package/cjs/spec/shell.js +11 -0
- package/cjs/spec/statemine.js +55 -0
- package/cjs/spec/statemint.js +67 -0
- package/cjs/spec/westmint.js +55 -0
- package/cjs/spec/zagros.js +118 -0
- package/cjs/upgrades/e2e/dicle.js +6429 -0
- package/cjs/upgrades/e2e/index.d.ts +3 -0
- package/cjs/upgrades/e2e/index.js +9 -0
- package/cjs/upgrades/e2e/pezkuwi.js +3707 -0
- package/cjs/upgrades/e2e/zagros.js +6429 -0
- package/cjs/upgrades/index.js +29 -0
- package/cjs/upgrades/manual/dicle.js +25 -0
- package/cjs/upgrades/manual/index.d.ts +3 -0
- package/cjs/upgrades/manual/index.js +9 -0
- package/cjs/upgrades/manual/pezkuwi.js +17 -0
- package/cjs/upgrades/manual/zagros.js +25 -0
- package/cjs/upgrades/types.js +2 -0
- package/cjs/util.js +112 -0
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/package.json +424 -11
- package/packageDetect.d.ts +1 -0
- package/packageDetect.js +4 -0
- package/packageInfo.d.ts +6 -0
- package/packageInfo.js +1 -0
- package/spec/centrifuge-chain.d.ts +2 -0
- package/spec/centrifuge-chain.js +102 -0
- package/spec/dicle.d.ts +2 -0
- package/spec/dicle.js +115 -0
- package/spec/index.d.ts +2 -0
- package/spec/index.js +24 -0
- package/spec/node-template.d.ts +2 -0
- package/spec/node-template.js +10 -0
- package/spec/node.d.ts +2 -0
- package/spec/node.js +10 -0
- package/spec/pezkuwi.d.ts +2 -0
- package/spec/pezkuwi.js +102 -0
- package/spec/pezkuwichain.d.ts +2 -0
- package/spec/pezkuwichain.js +62 -0
- package/spec/shell.d.ts +2 -0
- package/spec/shell.js +8 -0
- package/spec/statemine.d.ts +2 -0
- package/spec/statemine.js +52 -0
- package/spec/statemint.d.ts +2 -0
- package/spec/statemint.js +64 -0
- package/spec/westmint.d.ts +2 -0
- package/spec/westmint.js +52 -0
- package/spec/zagros.d.ts +2 -0
- package/spec/zagros.js +115 -0
- package/upgrades/e2e/dicle.d.ts +2 -0
- package/upgrades/e2e/dicle.js +6426 -0
- package/upgrades/e2e/index.d.ts +3 -0
- package/upgrades/e2e/index.js +3 -0
- package/upgrades/e2e/pezkuwi.d.ts +2 -0
- package/upgrades/e2e/pezkuwi.js +3704 -0
- package/upgrades/e2e/zagros.d.ts +2 -0
- package/upgrades/e2e/zagros.js +6426 -0
- package/upgrades/index.d.ts +2 -0
- package/upgrades/index.js +25 -0
- package/upgrades/manual/dicle.d.ts +2 -0
- package/upgrades/manual/dicle.js +22 -0
- package/upgrades/manual/index.d.ts +3 -0
- package/upgrades/manual/index.js +3 -0
- package/upgrades/manual/pezkuwi.d.ts +2 -0
- package/upgrades/manual/pezkuwi.js +14 -0
- package/upgrades/manual/zagros.d.ts +2 -0
- package/upgrades/manual/zagros.js +22 -0
- package/{src/upgrades/types.ts → upgrades/types.d.ts} +0 -5
- package/upgrades/types.js +1 -0
- package/util.d.ts +33 -0
- package/util.js +103 -0
- package/build/upgrades/e2e/index.d.ts +0 -3
- package/build/upgrades/manual/index.d.ts +0 -3
- package/src/bundle.ts +0 -11
- package/src/chain/index.ts +0 -7
- package/src/index.ts +0 -6
- package/src/mod.ts +0 -4
- package/src/packageDetect.ts +0 -12
- package/src/packageInfo.ts +0 -6
- package/src/spec/centrifuge-chain.ts +0 -116
- package/src/spec/index.ts +0 -31
- package/src/spec/kusama.ts +0 -258
- package/src/spec/node-template.ts +0 -17
- package/src/spec/node.ts +0 -17
- package/src/spec/polkadot.ts +0 -112
- package/src/spec/rococo.ts +0 -73
- package/src/spec/shell.ts +0 -15
- package/src/spec/statemine.ts +0 -62
- package/src/spec/statemint.ts +0 -74
- package/src/spec/westend.ts +0 -125
- package/src/spec/westmint.ts +0 -62
- package/src/upgrades/e2e/index.spec.ts +0 -67
- package/src/upgrades/e2e/index.ts +0 -6
- package/src/upgrades/e2e/kusama.ts +0 -5372
- package/src/upgrades/e2e/polkadot.ts +0 -3712
- package/src/upgrades/e2e/westend.ts +0 -6434
- package/src/upgrades/index.spec.ts +0 -118
- package/src/upgrades/index.ts +0 -40
- package/src/upgrades/manual/index.ts +0 -6
- package/src/upgrades/manual/kusama.ts +0 -26
- package/src/upgrades/manual/polkadot.ts +0 -19
- package/src/upgrades/manual/westend.ts +0 -27
- package/src/util.ts +0 -128
- package/tsconfig.build.json +0 -17
- package/tsconfig.build.tsbuildinfo +0 -1
- package/tsconfig.spec.json +0 -19
- /package/{build/bundle.d.ts → bundle.d.ts} +0 -0
- /package/{build/chain → chain}/index.d.ts +0 -0
- /package/{build → cjs}/index.d.ts +0 -0
- /package/{build → cjs}/packageDetect.d.ts +0 -0
- /package/{build → cjs}/packageInfo.d.ts +0 -0
- /package/{build → cjs}/spec/centrifuge-chain.d.ts +0 -0
- /package/{build/spec/kusama.d.ts → cjs/spec/dicle.d.ts} +0 -0
- /package/{build → cjs}/spec/index.d.ts +0 -0
- /package/{build → cjs}/spec/node-template.d.ts +0 -0
- /package/{build → cjs}/spec/node.d.ts +0 -0
- /package/{build/spec/polkadot.d.ts → cjs/spec/pezkuwi.d.ts} +0 -0
- /package/{build/spec/rococo.d.ts → cjs/spec/pezkuwichain.d.ts} +0 -0
- /package/{build → cjs}/spec/shell.d.ts +0 -0
- /package/{build → cjs}/spec/statemine.d.ts +0 -0
- /package/{build → cjs}/spec/statemint.d.ts +0 -0
- /package/{build → cjs}/spec/westmint.d.ts +0 -0
- /package/{build/spec/westend.d.ts → cjs/spec/zagros.d.ts} +0 -0
- /package/{build/upgrades/e2e/kusama.d.ts → cjs/upgrades/e2e/dicle.d.ts} +0 -0
- /package/{build/upgrades/e2e/polkadot.d.ts → cjs/upgrades/e2e/pezkuwi.d.ts} +0 -0
- /package/{build/upgrades/e2e/westend.d.ts → cjs/upgrades/e2e/zagros.d.ts} +0 -0
- /package/{build → cjs}/upgrades/index.d.ts +0 -0
- /package/{build/upgrades/manual/kusama.d.ts → cjs/upgrades/manual/dicle.d.ts} +0 -0
- /package/{build/upgrades/manual/polkadot.d.ts → cjs/upgrades/manual/pezkuwi.d.ts} +0 -0
- /package/{build/upgrades/manual/westend.d.ts → cjs/upgrades/manual/zagros.d.ts} +0 -0
- /package/{build → cjs}/upgrades/types.d.ts +0 -0
- /package/{build → cjs}/util.d.ts +0 -0
package/spec/index.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { versioned as centrifugeChain } from './centrifuge-chain.js';
|
|
2
|
+
import { versioned as dicle } from './dicle.js';
|
|
3
|
+
import { versioned as node } from './node.js';
|
|
4
|
+
import { versioned as nodeTemplate } from './node-template.js';
|
|
5
|
+
import { versioned as pezkuwi } from './pezkuwi.js';
|
|
6
|
+
import { versioned as pezkuwichain } from './pezkuwichain.js';
|
|
7
|
+
import { versioned as shell } from './shell.js';
|
|
8
|
+
import { versioned as statemine } from './statemine.js';
|
|
9
|
+
import { versioned as statemint } from './statemint.js';
|
|
10
|
+
import { versioned as zagros } from './zagros.js';
|
|
11
|
+
import { versioned as westmint } from './westmint.js';
|
|
12
|
+
export const typesSpec = {
|
|
13
|
+
'centrifuge-chain': centrifugeChain,
|
|
14
|
+
dicle,
|
|
15
|
+
node,
|
|
16
|
+
'node-template': nodeTemplate,
|
|
17
|
+
pezkuwi,
|
|
18
|
+
pezkuwichain,
|
|
19
|
+
shell,
|
|
20
|
+
statemine,
|
|
21
|
+
statemint,
|
|
22
|
+
zagros,
|
|
23
|
+
westmint
|
|
24
|
+
};
|
package/spec/node.d.ts
ADDED
package/spec/node.js
ADDED
package/spec/pezkuwi.js
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
const sharedTypes = {
|
|
2
|
+
CompactAssignments: 'CompactAssignmentsWith16',
|
|
3
|
+
DispatchErrorModule: 'DispatchErrorModuleU8',
|
|
4
|
+
RawSolution: 'RawSolutionWith16',
|
|
5
|
+
Keys: 'SessionKeys6',
|
|
6
|
+
ProxyType: {
|
|
7
|
+
_enum: {
|
|
8
|
+
Any: 0,
|
|
9
|
+
NonTransfer: 1,
|
|
10
|
+
Governance: 2,
|
|
11
|
+
Staking: 3,
|
|
12
|
+
UnusedSudoBalances: 4,
|
|
13
|
+
IdentityJudgement: 5,
|
|
14
|
+
CancelProxy: 6,
|
|
15
|
+
Auction: 7
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
Weight: 'WeightV1'
|
|
19
|
+
};
|
|
20
|
+
const addrAccountIdTypes = {
|
|
21
|
+
AccountInfo: 'AccountInfoWithRefCount',
|
|
22
|
+
Address: 'AccountId',
|
|
23
|
+
DispatchErrorModule: 'DispatchErrorModuleU8',
|
|
24
|
+
Keys: 'SessionKeys5',
|
|
25
|
+
LookupSource: 'AccountId',
|
|
26
|
+
ValidatorPrefs: 'ValidatorPrefsWithCommission'
|
|
27
|
+
};
|
|
28
|
+
export const versioned = [
|
|
29
|
+
{
|
|
30
|
+
minmax: [0, 10],
|
|
31
|
+
types: {
|
|
32
|
+
...sharedTypes,
|
|
33
|
+
...addrAccountIdTypes,
|
|
34
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
35
|
+
OpenTip: 'OpenTipTo225',
|
|
36
|
+
RefCount: 'RefCountTo259',
|
|
37
|
+
ElectionResult: 'ElectionResultToSpec10'
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
minmax: [11, 12],
|
|
42
|
+
types: {
|
|
43
|
+
...sharedTypes,
|
|
44
|
+
...addrAccountIdTypes,
|
|
45
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
46
|
+
OpenTip: 'OpenTipTo225',
|
|
47
|
+
RefCount: 'RefCountTo259'
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
minmax: [13, 22],
|
|
52
|
+
types: {
|
|
53
|
+
...sharedTypes,
|
|
54
|
+
...addrAccountIdTypes,
|
|
55
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
56
|
+
RefCount: 'RefCountTo259'
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
minmax: [23, 24],
|
|
61
|
+
types: {
|
|
62
|
+
...sharedTypes,
|
|
63
|
+
...addrAccountIdTypes,
|
|
64
|
+
RefCount: 'RefCountTo259'
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
minmax: [25, 27],
|
|
69
|
+
types: {
|
|
70
|
+
...sharedTypes,
|
|
71
|
+
...addrAccountIdTypes
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
minmax: [28, 29],
|
|
76
|
+
types: {
|
|
77
|
+
...sharedTypes,
|
|
78
|
+
AccountInfo: 'AccountInfoWithDualRefCount'
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
minmax: [30, 9109],
|
|
83
|
+
types: {
|
|
84
|
+
...sharedTypes
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
// metadata v14
|
|
89
|
+
minmax: [9110, undefined],
|
|
90
|
+
types: {
|
|
91
|
+
Weight: 'WeightV1'
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
// ,
|
|
95
|
+
// {
|
|
96
|
+
// // weight v2 introduction
|
|
97
|
+
// minmax: [9300, undefined],
|
|
98
|
+
// types: {
|
|
99
|
+
// Weight: 'WeightV2'
|
|
100
|
+
// }
|
|
101
|
+
// }
|
|
102
|
+
];
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { mapXcmTypes } from '@pezkuwi/types-create';
|
|
2
|
+
/* eslint-disable sort-keys */
|
|
3
|
+
const sharedTypes = {
|
|
4
|
+
DispatchErrorModule: 'DispatchErrorModuleU8',
|
|
5
|
+
FullIdentification: '()', // No staking, only session (as per config)
|
|
6
|
+
Keys: 'SessionKeys7B',
|
|
7
|
+
Weight: 'WeightV1'
|
|
8
|
+
};
|
|
9
|
+
export const versioned = [
|
|
10
|
+
{
|
|
11
|
+
minmax: [0, 200],
|
|
12
|
+
types: {
|
|
13
|
+
...sharedTypes,
|
|
14
|
+
AccountInfo: 'AccountInfoWithDualRefCount',
|
|
15
|
+
Address: 'AccountId',
|
|
16
|
+
LookupSource: 'AccountId'
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
minmax: [201, 214],
|
|
21
|
+
types: {
|
|
22
|
+
...sharedTypes,
|
|
23
|
+
AccountInfo: 'AccountInfoWithDualRefCount'
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
minmax: [215, 228],
|
|
28
|
+
types: {
|
|
29
|
+
...sharedTypes,
|
|
30
|
+
Keys: 'SessionKeys6'
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
minmax: [229, 9099],
|
|
35
|
+
types: {
|
|
36
|
+
...sharedTypes,
|
|
37
|
+
...mapXcmTypes('V0')
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
minmax: [9100, 9105],
|
|
42
|
+
types: {
|
|
43
|
+
...sharedTypes,
|
|
44
|
+
...mapXcmTypes('V1')
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
// metadata v14
|
|
49
|
+
minmax: [9106, undefined],
|
|
50
|
+
types: {
|
|
51
|
+
Weight: 'WeightV1'
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
// ,
|
|
55
|
+
// {
|
|
56
|
+
// // weight v2 introduction
|
|
57
|
+
// minmax: [9300, undefined],
|
|
58
|
+
// types: {
|
|
59
|
+
// Weight: 'WeightV2'
|
|
60
|
+
// }
|
|
61
|
+
// }
|
|
62
|
+
];
|
package/spec/shell.d.ts
ADDED
package/spec/shell.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { mapXcmTypes } from '@pezkuwi/types-create';
|
|
2
|
+
const sharedTypes = {
|
|
3
|
+
DispatchErrorModule: 'DispatchErrorModuleU8',
|
|
4
|
+
TAssetBalance: 'u128',
|
|
5
|
+
ProxyType: {
|
|
6
|
+
_enum: [
|
|
7
|
+
'Any',
|
|
8
|
+
'NonTransfer',
|
|
9
|
+
'CancelProxy',
|
|
10
|
+
'Assets',
|
|
11
|
+
'AssetOwner',
|
|
12
|
+
'AssetManager',
|
|
13
|
+
'Staking'
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
Weight: 'WeightV1'
|
|
17
|
+
};
|
|
18
|
+
export const versioned = [
|
|
19
|
+
{
|
|
20
|
+
minmax: [0, 3],
|
|
21
|
+
types: {
|
|
22
|
+
// Enum was modified mid-flight -
|
|
23
|
+
// https://github.com/pezkuwichain/bizinikiwi/pull/10382/files#diff-e4e016b33a82268b6208dc974eea841bad47597865a749fee2f937eb6fdf67b4R498
|
|
24
|
+
DispatchError: 'DispatchErrorPre6First',
|
|
25
|
+
...sharedTypes,
|
|
26
|
+
...mapXcmTypes('V0')
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
minmax: [4, 5],
|
|
31
|
+
types: {
|
|
32
|
+
// As above, see https://github.com/pezkuwichain/pezkuwi-api/issues/5301
|
|
33
|
+
DispatchError: 'DispatchErrorPre6First',
|
|
34
|
+
...sharedTypes,
|
|
35
|
+
...mapXcmTypes('V1')
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
// metadata V14
|
|
40
|
+
minmax: [500, 9999],
|
|
41
|
+
types: {
|
|
42
|
+
Weight: 'WeightV1',
|
|
43
|
+
TAssetConversion: 'Option<AssetId>'
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
minmax: [10000, undefined],
|
|
48
|
+
types: {
|
|
49
|
+
Weight: 'WeightV1'
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
];
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { mapXcmTypes } from '@pezkuwi/types-create';
|
|
2
|
+
const sharedTypes = {
|
|
3
|
+
DispatchErrorModule: 'DispatchErrorModuleU8',
|
|
4
|
+
TAssetBalance: 'u128',
|
|
5
|
+
ProxyType: {
|
|
6
|
+
_enum: [
|
|
7
|
+
'Any',
|
|
8
|
+
'NonTransfer',
|
|
9
|
+
'CancelProxy',
|
|
10
|
+
'Assets',
|
|
11
|
+
'AssetOwner',
|
|
12
|
+
'AssetManager',
|
|
13
|
+
'Staking'
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
Weight: 'WeightV1'
|
|
17
|
+
};
|
|
18
|
+
export const versioned = [
|
|
19
|
+
{
|
|
20
|
+
minmax: [0, 3],
|
|
21
|
+
types: {
|
|
22
|
+
// Enum was modified mid-flight -
|
|
23
|
+
// https://github.com/pezkuwichain/bizinikiwi/pull/10382/files#diff-e4e016b33a82268b6208dc974eea841bad47597865a749fee2f937eb6fdf67b4R498
|
|
24
|
+
DispatchError: 'DispatchErrorPre6First',
|
|
25
|
+
...sharedTypes,
|
|
26
|
+
...mapXcmTypes('V0')
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
minmax: [4, 5],
|
|
31
|
+
types: {
|
|
32
|
+
// As above, see https://github.com/pezkuwichain/pezkuwi-api/issues/5301
|
|
33
|
+
DispatchError: 'DispatchErrorPre6First',
|
|
34
|
+
...sharedTypes,
|
|
35
|
+
...mapXcmTypes('V1')
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
// metadata V14
|
|
40
|
+
minmax: [500, 1001003],
|
|
41
|
+
types: {
|
|
42
|
+
Weight: 'WeightV1',
|
|
43
|
+
TAssetConversion: 'Option<AssetId>'
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
// ref: https://github.com/pezkuwichain/pezkuwi-api/pull/6208
|
|
47
|
+
// The following patches an issue where pezkuwi asset hub block 9686187, can't be decoding using xcm v5
|
|
48
|
+
// mappings.
|
|
49
|
+
{
|
|
50
|
+
minmax: [1002000, undefined],
|
|
51
|
+
types: {
|
|
52
|
+
Weight: 'WeightV1',
|
|
53
|
+
...mapXcmTypes('V4')
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
// ,
|
|
57
|
+
// {
|
|
58
|
+
// // weight v2 introduction
|
|
59
|
+
// minmax: [9300, undefined],
|
|
60
|
+
// types: {
|
|
61
|
+
// Weight: 'WeightV2'
|
|
62
|
+
// }
|
|
63
|
+
// }
|
|
64
|
+
];
|
package/spec/westmint.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { mapXcmTypes } from '@pezkuwi/types-create';
|
|
2
|
+
const sharedTypes = {
|
|
3
|
+
DispatchErrorModule: 'DispatchErrorModuleU8',
|
|
4
|
+
TAssetBalance: 'u128',
|
|
5
|
+
ProxyType: {
|
|
6
|
+
_enum: [
|
|
7
|
+
'Any',
|
|
8
|
+
'NonTransfer',
|
|
9
|
+
'CancelProxy',
|
|
10
|
+
'Assets',
|
|
11
|
+
'AssetOwner',
|
|
12
|
+
'AssetManager',
|
|
13
|
+
'Staking'
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
Weight: 'WeightV1'
|
|
17
|
+
};
|
|
18
|
+
export const versioned = [
|
|
19
|
+
{
|
|
20
|
+
minmax: [0, 3],
|
|
21
|
+
types: {
|
|
22
|
+
// Enum was modified mid-flight -
|
|
23
|
+
// https://github.com/pezkuwichain/bizinikiwi/pull/10382/files#diff-e4e016b33a82268b6208dc974eea841bad47597865a749fee2f937eb6fdf67b4R498
|
|
24
|
+
DispatchError: 'DispatchErrorPre6First',
|
|
25
|
+
...sharedTypes,
|
|
26
|
+
...mapXcmTypes('V0')
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
minmax: [4, 5],
|
|
31
|
+
types: {
|
|
32
|
+
// As above, see https://github.com/pezkuwichain/pezkuwi-api/issues/5301
|
|
33
|
+
DispatchError: 'DispatchErrorPre6First',
|
|
34
|
+
...sharedTypes,
|
|
35
|
+
...mapXcmTypes('V1')
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
// metadata V14
|
|
40
|
+
minmax: [500, 9434],
|
|
41
|
+
types: {
|
|
42
|
+
Weight: 'WeightV1',
|
|
43
|
+
TAssetConversion: 'Option<AssetId>'
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
minmax: [9435, undefined],
|
|
48
|
+
types: {
|
|
49
|
+
Weight: 'WeightV1'
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
];
|
package/spec/zagros.d.ts
ADDED
package/spec/zagros.js
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { mapXcmTypes } from '@pezkuwi/types-create';
|
|
2
|
+
const sharedTypes = {
|
|
3
|
+
// 16 validators
|
|
4
|
+
CompactAssignments: 'CompactAssignmentsWith16',
|
|
5
|
+
DispatchErrorModule: 'DispatchErrorModuleU8',
|
|
6
|
+
RawSolution: 'RawSolutionWith16',
|
|
7
|
+
// general
|
|
8
|
+
Keys: 'SessionKeys6',
|
|
9
|
+
ProxyType: {
|
|
10
|
+
_enum: ['Any', 'NonTransfer', 'Staking', 'SudoBalances', 'IdentityJudgement', 'CancelProxy']
|
|
11
|
+
},
|
|
12
|
+
Weight: 'WeightV1'
|
|
13
|
+
};
|
|
14
|
+
const addrAccountIdTypes = {
|
|
15
|
+
AccountInfo: 'AccountInfoWithRefCount',
|
|
16
|
+
Address: 'AccountId',
|
|
17
|
+
CompactAssignments: 'CompactAssignmentsWith16',
|
|
18
|
+
DispatchErrorModule: 'DispatchErrorModuleU8',
|
|
19
|
+
LookupSource: 'AccountId',
|
|
20
|
+
Keys: 'SessionKeys5',
|
|
21
|
+
RawSolution: 'RawSolutionWith16',
|
|
22
|
+
ValidatorPrefs: 'ValidatorPrefsWithCommission'
|
|
23
|
+
};
|
|
24
|
+
export const versioned = [
|
|
25
|
+
{
|
|
26
|
+
minmax: [1, 2],
|
|
27
|
+
types: {
|
|
28
|
+
...sharedTypes,
|
|
29
|
+
...addrAccountIdTypes,
|
|
30
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
31
|
+
DispatchInfo: 'DispatchInfoTo244',
|
|
32
|
+
Heartbeat: 'HeartbeatTo244',
|
|
33
|
+
Multiplier: 'Fixed64',
|
|
34
|
+
OpenTip: 'OpenTipTo225',
|
|
35
|
+
RefCount: 'RefCountTo259',
|
|
36
|
+
Weight: 'u32'
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
minmax: [3, 22],
|
|
41
|
+
types: {
|
|
42
|
+
...sharedTypes,
|
|
43
|
+
...addrAccountIdTypes,
|
|
44
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
45
|
+
DispatchInfo: 'DispatchInfoTo244',
|
|
46
|
+
Heartbeat: 'HeartbeatTo244',
|
|
47
|
+
OpenTip: 'OpenTipTo225',
|
|
48
|
+
RefCount: 'RefCountTo259'
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
minmax: [23, 42],
|
|
53
|
+
types: {
|
|
54
|
+
...sharedTypes,
|
|
55
|
+
...addrAccountIdTypes,
|
|
56
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
57
|
+
DispatchInfo: 'DispatchInfoTo244',
|
|
58
|
+
Heartbeat: 'HeartbeatTo244',
|
|
59
|
+
RefCount: 'RefCountTo259'
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
minmax: [43, 44],
|
|
64
|
+
types: {
|
|
65
|
+
...sharedTypes,
|
|
66
|
+
...addrAccountIdTypes,
|
|
67
|
+
DispatchInfo: 'DispatchInfoTo244',
|
|
68
|
+
Heartbeat: 'HeartbeatTo244',
|
|
69
|
+
RefCount: 'RefCountTo259'
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
minmax: [45, 47],
|
|
74
|
+
types: {
|
|
75
|
+
...sharedTypes,
|
|
76
|
+
...addrAccountIdTypes
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
minmax: [48, 49],
|
|
81
|
+
types: {
|
|
82
|
+
...sharedTypes,
|
|
83
|
+
AccountInfo: 'AccountInfoWithDualRefCount'
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
minmax: [50, 9099],
|
|
88
|
+
types: {
|
|
89
|
+
...sharedTypes,
|
|
90
|
+
...mapXcmTypes('V0')
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
minmax: [9100, 9105],
|
|
95
|
+
types: {
|
|
96
|
+
...sharedTypes,
|
|
97
|
+
...mapXcmTypes('V1')
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
// metadata v14
|
|
102
|
+
minmax: [9106, undefined],
|
|
103
|
+
types: {
|
|
104
|
+
Weight: 'WeightV1'
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
// ,
|
|
108
|
+
// {
|
|
109
|
+
// // weight v2 introduction
|
|
110
|
+
// minmax: [9300, undefined],
|
|
111
|
+
// types: {
|
|
112
|
+
// Weight: 'WeightV2'
|
|
113
|
+
// }
|
|
114
|
+
// }
|
|
115
|
+
];
|