@pezkuwi/types 16.5.11 → 16.5.14
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/bundle-pezkuwi-types.js
CHANGED
|
@@ -15271,21 +15271,30 @@
|
|
|
15271
15271
|
Str: 'Text'
|
|
15272
15272
|
};
|
|
15273
15273
|
const PATHS_ALIAS = splitNamespace([
|
|
15274
|
+
'pezsp_core::crypto::AccountId32',
|
|
15274
15275
|
'sp_core::crypto::AccountId32',
|
|
15276
|
+
'pezsp_runtime::generic::era::Era',
|
|
15275
15277
|
'sp_runtime::generic::era::Era',
|
|
15278
|
+
'pezsp_runtime::multiaddress::MultiAddress',
|
|
15276
15279
|
'sp_runtime::multiaddress::MultiAddress',
|
|
15277
15280
|
'fp_account::AccountId20',
|
|
15278
15281
|
'account::AccountId20',
|
|
15279
15282
|
'pezkuwi_runtime_common::claims::EthereumAddress',
|
|
15283
|
+
'pezframe_support::weights::weight_v2::Weight',
|
|
15280
15284
|
'frame_support::weights::weight_v2::Weight',
|
|
15285
|
+
'pezsp_weights::weight_v2::Weight',
|
|
15281
15286
|
'sp_weights::weight_v2::Weight',
|
|
15282
15287
|
'*_democracy::vote::Vote',
|
|
15283
15288
|
'*_conviction_voting::vote::Vote',
|
|
15284
15289
|
'*_identity::types::Data',
|
|
15290
|
+
'pezsp_core::OpaqueMetadata',
|
|
15285
15291
|
'sp_core::OpaqueMetadata',
|
|
15292
|
+
'pezsp_core::OpaquePeerId',
|
|
15286
15293
|
'sp_core::OpaquePeerId',
|
|
15294
|
+
'pezsp_core::offchain::OpaqueMultiaddr',
|
|
15287
15295
|
'sp_core::offchain::OpaqueMultiaddr',
|
|
15288
15296
|
'primitive_types::*',
|
|
15297
|
+
'pezsp_arithmetic::per_things::*',
|
|
15289
15298
|
'sp_arithmetic::per_things::*',
|
|
15290
15299
|
'*_runtime::RuntimeCall',
|
|
15291
15300
|
'*_runtime::RuntimeEvent',
|
|
@@ -15347,7 +15356,7 @@
|
|
|
15347
15356
|
});
|
|
15348
15357
|
}
|
|
15349
15358
|
function getAliasPath({ def, path }) {
|
|
15350
|
-
if (['frame_support::weights::weight_v2::Weight', 'sp_weights::weight_v2::Weight'].includes(path.join('::'))) {
|
|
15359
|
+
if (['pezframe_support::weights::weight_v2::Weight', 'frame_support::weights::weight_v2::Weight', 'pezsp_weights::weight_v2::Weight', 'sp_weights::weight_v2::Weight'].includes(path.join('::'))) {
|
|
15351
15360
|
return !def.isComposite || def.asComposite.fields.length === 1
|
|
15352
15361
|
? 'WeightV1'
|
|
15353
15362
|
: null;
|
|
@@ -15494,7 +15503,7 @@
|
|
|
15494
15503
|
const siSignature = lookup.getSiType(sigParam.type.unwrap());
|
|
15495
15504
|
const nsSignature = siSignature.path.join('::');
|
|
15496
15505
|
let nsAccountId = siAddress.path.join('::');
|
|
15497
|
-
const isMultiAddress = nsAccountId === 'sp_runtime::multiaddress::MultiAddress';
|
|
15506
|
+
const isMultiAddress = nsAccountId === 'pezsp_runtime::multiaddress::MultiAddress' || nsAccountId === 'sp_runtime::multiaddress::MultiAddress';
|
|
15498
15507
|
if (isMultiAddress) {
|
|
15499
15508
|
const [idParam] = siAddress.params;
|
|
15500
15509
|
nsAccountId = lookup.getSiType(idParam.type.unwrap()).path.join('::');
|
|
@@ -15506,7 +15515,7 @@
|
|
|
15506
15515
|
Address: isMultiAddress
|
|
15507
15516
|
? 'MultiAddress'
|
|
15508
15517
|
: 'AccountId',
|
|
15509
|
-
ExtrinsicSignature: ['sp_runtime::MultiSignature'].includes(nsSignature)
|
|
15518
|
+
ExtrinsicSignature: ['pezsp_runtime::MultiSignature', 'sp_runtime::MultiSignature'].includes(nsSignature)
|
|
15510
15519
|
? 'MultiSignature'
|
|
15511
15520
|
: names[sigParam.type.unwrap().toNumber()] || 'MultiSignature'
|
|
15512
15521
|
});
|
|
@@ -16116,7 +16125,7 @@
|
|
|
16116
16125
|
}));
|
|
16117
16126
|
}
|
|
16118
16127
|
|
|
16119
|
-
const packageInfo = { name: '@pezkuwi/types', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-types.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-types.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-types.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-types.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '16.5.
|
|
16128
|
+
const packageInfo = { name: '@pezkuwi/types', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-types.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-types.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-types.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-types.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '16.5.14' };
|
|
16120
16129
|
|
|
16121
16130
|
function flattenUniq(list, result = []) {
|
|
16122
16131
|
for (let i = 0, count = list.length; i < count; i++) {
|
|
@@ -13,29 +13,38 @@ const PRIMITIVE_ALIAS = {
|
|
|
13
13
|
const PATHS_ALIAS = splitNamespace([
|
|
14
14
|
// full matching on exact names...
|
|
15
15
|
// these are well-known types with additional encoding
|
|
16
|
-
'
|
|
17
|
-
'
|
|
18
|
-
'
|
|
16
|
+
'pezsp_core::crypto::AccountId32',
|
|
17
|
+
'sp_core::crypto::AccountId32', // upstream compatibility
|
|
18
|
+
'pezsp_runtime::generic::era::Era',
|
|
19
|
+
'sp_runtime::generic::era::Era', // upstream compatibility
|
|
20
|
+
'pezsp_runtime::multiaddress::MultiAddress',
|
|
21
|
+
'sp_runtime::multiaddress::MultiAddress', // upstream compatibility
|
|
19
22
|
// ethereum overrides (Frontier, Moonbeam, Pezkuwi claims)
|
|
20
23
|
'fp_account::AccountId20',
|
|
21
24
|
'account::AccountId20',
|
|
22
25
|
'pezkuwi_runtime_common::claims::EthereumAddress',
|
|
23
26
|
// weights 2 is a structure, however for 1.5. with a single field it
|
|
24
27
|
// should be flatenned (can appear in Compact<Weight> extrinsics)
|
|
25
|
-
'
|
|
26
|
-
'
|
|
28
|
+
'pezframe_support::weights::weight_v2::Weight',
|
|
29
|
+
'frame_support::weights::weight_v2::Weight', // upstream compatibility
|
|
30
|
+
'pezsp_weights::weight_v2::Weight',
|
|
31
|
+
'sp_weights::weight_v2::Weight', // upstream compatibility
|
|
27
32
|
// wildcard matching in place...
|
|
28
33
|
// these have a specific encoding or logic, use a wildcard for {pallet, darwinia}_democracy
|
|
29
34
|
'*_democracy::vote::Vote',
|
|
30
35
|
'*_conviction_voting::vote::Vote',
|
|
31
36
|
'*_identity::types::Data',
|
|
32
37
|
// these are opaque Vec<u8> wrappers
|
|
33
|
-
'
|
|
34
|
-
'sp_core::
|
|
35
|
-
'
|
|
38
|
+
'pezsp_core::OpaqueMetadata',
|
|
39
|
+
'sp_core::OpaqueMetadata', // upstream compatibility
|
|
40
|
+
'pezsp_core::OpaquePeerId',
|
|
41
|
+
'sp_core::OpaquePeerId', // upstream compatibility
|
|
42
|
+
'pezsp_core::offchain::OpaqueMultiaddr',
|
|
43
|
+
'sp_core::offchain::OpaqueMultiaddr', // upstream compatibility
|
|
36
44
|
// shorten some well-known types
|
|
37
45
|
'primitive_types::*',
|
|
38
|
-
'
|
|
46
|
+
'pezsp_arithmetic::per_things::*',
|
|
47
|
+
'sp_arithmetic::per_things::*', // upstream compatibility
|
|
39
48
|
// runtime
|
|
40
49
|
'*_runtime::RuntimeCall',
|
|
41
50
|
'*_runtime::RuntimeEvent',
|
|
@@ -108,7 +117,7 @@ function matchParts(first, second) {
|
|
|
108
117
|
function getAliasPath({ def, path }) {
|
|
109
118
|
// specific logic for weights - we override when non-complex struct
|
|
110
119
|
// (as applied in Weight 1.5 where we also have `Compact<{ refTime: u64 }>)
|
|
111
|
-
if (['frame_support::weights::weight_v2::Weight', 'sp_weights::weight_v2::Weight'].includes(path.join('::'))) {
|
|
120
|
+
if (['pezframe_support::weights::weight_v2::Weight', 'frame_support::weights::weight_v2::Weight', 'pezsp_weights::weight_v2::Weight', 'sp_weights::weight_v2::Weight'].includes(path.join('::'))) {
|
|
112
121
|
return !def.isComposite || def.asComposite.fields.length === 1
|
|
113
122
|
? 'WeightV1'
|
|
114
123
|
: null;
|
|
@@ -298,7 +307,7 @@ function registerTypes(lookup, lookups, names, params) {
|
|
|
298
307
|
const siSignature = lookup.getSiType(sigParam.type.unwrap());
|
|
299
308
|
const nsSignature = siSignature.path.join('::');
|
|
300
309
|
let nsAccountId = siAddress.path.join('::');
|
|
301
|
-
const isMultiAddress = nsAccountId === 'sp_runtime::multiaddress::MultiAddress';
|
|
310
|
+
const isMultiAddress = nsAccountId === 'pezsp_runtime::multiaddress::MultiAddress' || nsAccountId === 'sp_runtime::multiaddress::MultiAddress';
|
|
302
311
|
// With multiaddress, we check the first type param again
|
|
303
312
|
if (isMultiAddress) {
|
|
304
313
|
// AccountId, AccountIndex
|
|
@@ -313,7 +322,7 @@ function registerTypes(lookup, lookups, names, params) {
|
|
|
313
322
|
Address: isMultiAddress
|
|
314
323
|
? 'MultiAddress'
|
|
315
324
|
: 'AccountId',
|
|
316
|
-
ExtrinsicSignature: ['sp_runtime::MultiSignature'].includes(nsSignature)
|
|
325
|
+
ExtrinsicSignature: ['pezsp_runtime::MultiSignature', 'sp_runtime::MultiSignature'].includes(nsSignature)
|
|
317
326
|
? 'MultiSignature'
|
|
318
327
|
: names[sigParam.type.unwrap().toNumber()] || 'MultiSignature'
|
|
319
328
|
});
|
package/cjs/packageInfo.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.packageInfo = void 0;
|
|
4
|
-
exports.packageInfo = { name: '@pezkuwi/types', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '16.5.
|
|
4
|
+
exports.packageInfo = { name: '@pezkuwi/types', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '16.5.14' };
|
|
@@ -10,29 +10,38 @@ const PRIMITIVE_ALIAS = {
|
|
|
10
10
|
const PATHS_ALIAS = splitNamespace([
|
|
11
11
|
// full matching on exact names...
|
|
12
12
|
// these are well-known types with additional encoding
|
|
13
|
-
'
|
|
14
|
-
'
|
|
15
|
-
'
|
|
13
|
+
'pezsp_core::crypto::AccountId32',
|
|
14
|
+
'sp_core::crypto::AccountId32', // upstream compatibility
|
|
15
|
+
'pezsp_runtime::generic::era::Era',
|
|
16
|
+
'sp_runtime::generic::era::Era', // upstream compatibility
|
|
17
|
+
'pezsp_runtime::multiaddress::MultiAddress',
|
|
18
|
+
'sp_runtime::multiaddress::MultiAddress', // upstream compatibility
|
|
16
19
|
// ethereum overrides (Frontier, Moonbeam, Pezkuwi claims)
|
|
17
20
|
'fp_account::AccountId20',
|
|
18
21
|
'account::AccountId20',
|
|
19
22
|
'pezkuwi_runtime_common::claims::EthereumAddress',
|
|
20
23
|
// weights 2 is a structure, however for 1.5. with a single field it
|
|
21
24
|
// should be flatenned (can appear in Compact<Weight> extrinsics)
|
|
22
|
-
'
|
|
23
|
-
'
|
|
25
|
+
'pezframe_support::weights::weight_v2::Weight',
|
|
26
|
+
'frame_support::weights::weight_v2::Weight', // upstream compatibility
|
|
27
|
+
'pezsp_weights::weight_v2::Weight',
|
|
28
|
+
'sp_weights::weight_v2::Weight', // upstream compatibility
|
|
24
29
|
// wildcard matching in place...
|
|
25
30
|
// these have a specific encoding or logic, use a wildcard for {pallet, darwinia}_democracy
|
|
26
31
|
'*_democracy::vote::Vote',
|
|
27
32
|
'*_conviction_voting::vote::Vote',
|
|
28
33
|
'*_identity::types::Data',
|
|
29
34
|
// these are opaque Vec<u8> wrappers
|
|
30
|
-
'
|
|
31
|
-
'sp_core::
|
|
32
|
-
'
|
|
35
|
+
'pezsp_core::OpaqueMetadata',
|
|
36
|
+
'sp_core::OpaqueMetadata', // upstream compatibility
|
|
37
|
+
'pezsp_core::OpaquePeerId',
|
|
38
|
+
'sp_core::OpaquePeerId', // upstream compatibility
|
|
39
|
+
'pezsp_core::offchain::OpaqueMultiaddr',
|
|
40
|
+
'sp_core::offchain::OpaqueMultiaddr', // upstream compatibility
|
|
33
41
|
// shorten some well-known types
|
|
34
42
|
'primitive_types::*',
|
|
35
|
-
'
|
|
43
|
+
'pezsp_arithmetic::per_things::*',
|
|
44
|
+
'sp_arithmetic::per_things::*', // upstream compatibility
|
|
36
45
|
// runtime
|
|
37
46
|
'*_runtime::RuntimeCall',
|
|
38
47
|
'*_runtime::RuntimeEvent',
|
|
@@ -105,7 +114,7 @@ function matchParts(first, second) {
|
|
|
105
114
|
function getAliasPath({ def, path }) {
|
|
106
115
|
// specific logic for weights - we override when non-complex struct
|
|
107
116
|
// (as applied in Weight 1.5 where we also have `Compact<{ refTime: u64 }>)
|
|
108
|
-
if (['frame_support::weights::weight_v2::Weight', 'sp_weights::weight_v2::Weight'].includes(path.join('::'))) {
|
|
117
|
+
if (['pezframe_support::weights::weight_v2::Weight', 'frame_support::weights::weight_v2::Weight', 'pezsp_weights::weight_v2::Weight', 'sp_weights::weight_v2::Weight'].includes(path.join('::'))) {
|
|
109
118
|
return !def.isComposite || def.asComposite.fields.length === 1
|
|
110
119
|
? 'WeightV1'
|
|
111
120
|
: null;
|
|
@@ -295,7 +304,7 @@ function registerTypes(lookup, lookups, names, params) {
|
|
|
295
304
|
const siSignature = lookup.getSiType(sigParam.type.unwrap());
|
|
296
305
|
const nsSignature = siSignature.path.join('::');
|
|
297
306
|
let nsAccountId = siAddress.path.join('::');
|
|
298
|
-
const isMultiAddress = nsAccountId === 'sp_runtime::multiaddress::MultiAddress';
|
|
307
|
+
const isMultiAddress = nsAccountId === 'pezsp_runtime::multiaddress::MultiAddress' || nsAccountId === 'sp_runtime::multiaddress::MultiAddress';
|
|
299
308
|
// With multiaddress, we check the first type param again
|
|
300
309
|
if (isMultiAddress) {
|
|
301
310
|
// AccountId, AccountIndex
|
|
@@ -310,7 +319,7 @@ function registerTypes(lookup, lookups, names, params) {
|
|
|
310
319
|
Address: isMultiAddress
|
|
311
320
|
? 'MultiAddress'
|
|
312
321
|
: 'AccountId',
|
|
313
|
-
ExtrinsicSignature: ['sp_runtime::MultiSignature'].includes(nsSignature)
|
|
322
|
+
ExtrinsicSignature: ['pezsp_runtime::MultiSignature', 'sp_runtime::MultiSignature'].includes(nsSignature)
|
|
314
323
|
? 'MultiSignature'
|
|
315
324
|
: names[sigParam.type.unwrap().toNumber()] || 'MultiSignature'
|
|
316
325
|
});
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"author": "
|
|
2
|
+
"author": "Dijital Kurdistan Tech Institute <dev@pezkuwichain.io>",
|
|
3
3
|
"bugs": "https://github.com/pezkuwichain/pezkuwi-api/issues",
|
|
4
4
|
"description": "Implementation of the Parity codec",
|
|
5
5
|
"engines": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"./cjs/packageDetect.js"
|
|
19
19
|
],
|
|
20
20
|
"type": "module",
|
|
21
|
-
"version": "16.5.
|
|
21
|
+
"version": "16.5.14",
|
|
22
22
|
"main": "./cjs/index.js",
|
|
23
23
|
"module": "./cjs/index.js",
|
|
24
24
|
"types": "./cjs/index.d.ts",
|
|
@@ -5926,13 +5926,13 @@
|
|
|
5926
5926
|
}
|
|
5927
5927
|
},
|
|
5928
5928
|
"dependencies": {
|
|
5929
|
-
"@pezkuwi/keyring": "14.0.
|
|
5929
|
+
"@pezkuwi/keyring": "14.0.12",
|
|
5930
5930
|
"@pezkuwi/types-augment": "16.5.9",
|
|
5931
5931
|
"@pezkuwi/types-codec": "16.5.9",
|
|
5932
5932
|
"@pezkuwi/types-create": "16.5.9",
|
|
5933
5933
|
"@pezkuwi/types-support": "16.5.9",
|
|
5934
|
-
"@pezkuwi/util": "14.0.
|
|
5935
|
-
"@pezkuwi/util-crypto": "14.0.
|
|
5934
|
+
"@pezkuwi/util": "14.0.12",
|
|
5935
|
+
"@pezkuwi/util-crypto": "14.0.12",
|
|
5936
5936
|
"rxjs": "^7.8.1",
|
|
5937
5937
|
"tslib": "^2.8.1"
|
|
5938
5938
|
}
|
package/packageInfo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageInfo = { name: '@pezkuwi/types', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '16.5.
|
|
1
|
+
export const packageInfo = { name: '@pezkuwi/types', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '16.5.14' };
|