@polkadot/extension-chains 0.53.1 → 0.55.1
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/cjs/bundle.d.ts +7 -0
- package/cjs/index.d.ts +1 -0
- package/cjs/packageDetect.d.ts +1 -0
- package/cjs/packageInfo.d.ts +6 -0
- package/cjs/packageInfo.js +1 -1
- package/cjs/types.d.ts +15 -0
- package/package.json +77 -29
- package/packageInfo.js +1 -1
package/cjs/bundle.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { MetadataDef } from '@polkadot/extension-inject/types';
|
|
2
|
+
import type { Chain } from './types.js';
|
|
3
|
+
export { packageInfo } from './packageInfo.js';
|
|
4
|
+
export declare function metadataExpand(definition: MetadataDef, isPartial?: boolean): Chain;
|
|
5
|
+
export declare function findChain(definitions: MetadataDef[], genesisHash?: string | null): Chain | null;
|
|
6
|
+
export declare function addMetadata(def: MetadataDef): void;
|
|
7
|
+
export declare function knownMetadata(): MetadataDef[];
|
package/cjs/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './bundle.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
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: '@polkadot/extension-chains', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '0.
|
|
4
|
+
exports.packageInfo = { name: '@polkadot/extension-chains', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '0.55.1' };
|
package/cjs/types.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { MetadataDef } from '@polkadot/extension-inject/types';
|
|
2
|
+
import type { Registry } from '@polkadot/types/types';
|
|
3
|
+
export interface Chain {
|
|
4
|
+
definition: MetadataDef;
|
|
5
|
+
genesisHash?: string;
|
|
6
|
+
hasMetadata: boolean;
|
|
7
|
+
icon: string;
|
|
8
|
+
isUnknown?: boolean;
|
|
9
|
+
name: string;
|
|
10
|
+
registry: Registry;
|
|
11
|
+
specVersion: number;
|
|
12
|
+
ss58Format: number;
|
|
13
|
+
tokenDecimals: number;
|
|
14
|
+
tokenSymbol: string;
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"./cjs/packageDetect.js"
|
|
19
19
|
],
|
|
20
20
|
"type": "module",
|
|
21
|
-
"version": "0.
|
|
21
|
+
"version": "0.55.1",
|
|
22
22
|
"main": "./cjs/index.js",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts",
|
|
@@ -26,51 +26,99 @@
|
|
|
26
26
|
"./cjs/package.json": "./cjs/package.json",
|
|
27
27
|
"./cjs/*": "./cjs/*.js",
|
|
28
28
|
".": {
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
"module": {
|
|
30
|
+
"types": "./index.d.ts",
|
|
31
|
+
"default": "./index.js"
|
|
32
|
+
},
|
|
33
|
+
"require": {
|
|
34
|
+
"types": "./cjs/index.d.ts",
|
|
35
|
+
"default": "./cjs/index.js"
|
|
36
|
+
},
|
|
37
|
+
"default": {
|
|
38
|
+
"types": "./index.d.ts",
|
|
39
|
+
"default": "./index.js"
|
|
40
|
+
}
|
|
33
41
|
},
|
|
34
42
|
"./bundle": {
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
43
|
+
"module": {
|
|
44
|
+
"types": "./bundle.d.ts",
|
|
45
|
+
"default": "./bundle.js"
|
|
46
|
+
},
|
|
47
|
+
"require": {
|
|
48
|
+
"types": "./cjs/bundle.d.ts",
|
|
49
|
+
"default": "./cjs/bundle.js"
|
|
50
|
+
},
|
|
51
|
+
"default": {
|
|
52
|
+
"types": "./bundle.d.ts",
|
|
53
|
+
"default": "./bundle.js"
|
|
54
|
+
}
|
|
39
55
|
},
|
|
40
56
|
"./package.json": {
|
|
41
57
|
"require": "./cjs/package.json",
|
|
42
58
|
"default": "./package.json"
|
|
43
59
|
},
|
|
44
60
|
"./packageDetect": {
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
61
|
+
"module": {
|
|
62
|
+
"types": "./packageDetect.d.ts",
|
|
63
|
+
"default": "./packageDetect.js"
|
|
64
|
+
},
|
|
65
|
+
"require": {
|
|
66
|
+
"types": "./cjs/packageDetect.d.ts",
|
|
67
|
+
"default": "./cjs/packageDetect.js"
|
|
68
|
+
},
|
|
69
|
+
"default": {
|
|
70
|
+
"types": "./packageDetect.d.ts",
|
|
71
|
+
"default": "./packageDetect.js"
|
|
72
|
+
}
|
|
49
73
|
},
|
|
50
74
|
"./packageInfo.js": {
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
75
|
+
"module": {
|
|
76
|
+
"types": "./packageInfo.d.ts",
|
|
77
|
+
"default": "./packageInfo.js"
|
|
78
|
+
},
|
|
79
|
+
"require": {
|
|
80
|
+
"types": "./cjs/packageInfo.d.ts",
|
|
81
|
+
"default": "./cjs/packageInfo.js"
|
|
82
|
+
},
|
|
83
|
+
"default": {
|
|
84
|
+
"types": "./packageInfo.d.ts",
|
|
85
|
+
"default": "./packageInfo.js"
|
|
86
|
+
}
|
|
55
87
|
},
|
|
56
88
|
"./packageInfo": {
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
89
|
+
"module": {
|
|
90
|
+
"types": "./packageInfo.d.ts",
|
|
91
|
+
"default": "./packageInfo.js"
|
|
92
|
+
},
|
|
93
|
+
"require": {
|
|
94
|
+
"types": "./cjs/packageInfo.d.ts",
|
|
95
|
+
"default": "./cjs/packageInfo.js"
|
|
96
|
+
},
|
|
97
|
+
"default": {
|
|
98
|
+
"types": "./packageInfo.d.ts",
|
|
99
|
+
"default": "./packageInfo.js"
|
|
100
|
+
}
|
|
61
101
|
},
|
|
62
102
|
"./types": {
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
103
|
+
"module": {
|
|
104
|
+
"types": "./types.d.ts",
|
|
105
|
+
"default": "./types.js"
|
|
106
|
+
},
|
|
107
|
+
"require": {
|
|
108
|
+
"types": "./cjs/types.d.ts",
|
|
109
|
+
"default": "./cjs/types.js"
|
|
110
|
+
},
|
|
111
|
+
"default": {
|
|
112
|
+
"types": "./types.d.ts",
|
|
113
|
+
"default": "./types.js"
|
|
114
|
+
}
|
|
67
115
|
}
|
|
68
116
|
},
|
|
69
117
|
"dependencies": {
|
|
70
|
-
"@polkadot/extension-inject": "0.
|
|
71
|
-
"@polkadot/networks": "^13.
|
|
72
|
-
"@polkadot/util": "^13.
|
|
73
|
-
"@polkadot/util-crypto": "^13.
|
|
118
|
+
"@polkadot/extension-inject": "0.55.1",
|
|
119
|
+
"@polkadot/networks": "^13.2.1",
|
|
120
|
+
"@polkadot/util": "^13.2.1",
|
|
121
|
+
"@polkadot/util-crypto": "^13.2.1",
|
|
74
122
|
"tslib": "^2.6.2"
|
|
75
123
|
},
|
|
76
124
|
"peerDependencies": {
|
package/packageInfo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageInfo = { name: '@polkadot/extension-chains', 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: '0.
|
|
1
|
+
export const packageInfo = { name: '@polkadot/extension-chains', 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: '0.55.1' };
|