@paraspell/sdk-common 12.8.0 → 12.8.2
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/dist/index.d.ts +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Supported Polkadot / Kusama / Westend / Paseo parachains.
|
|
3
3
|
*/
|
|
4
|
-
declare const PARACHAINS: readonly ["AssetHubPolkadot", "Acala", "Ajuna", "Astar", "BifrostPolkadot", "BridgeHubPolkadot", "Centrifuge", "Darwinia", "EnergyWebX", "Hydration", "Interlay", "Heima", "Jamton", "Moonbeam", "CoretimePolkadot", "Collectives", "Crust", "Manta", "Nodle", "NeuroWeb", "Pendulum", "
|
|
4
|
+
declare const PARACHAINS: readonly ["AssetHubPolkadot", "Acala", "Ajuna", "Astar", "BifrostPolkadot", "BridgeHubPolkadot", "Centrifuge", "Darwinia", "EnergyWebX", "Hydration", "Interlay", "Heima", "Jamton", "Moonbeam", "CoretimePolkadot", "Collectives", "Crust", "Manta", "Nodle", "NeuroWeb", "Pendulum", "Mythos", "Peaq", "PeoplePolkadot", "Unique", "Xode", "AssetHubKusama", "BridgeHubKusama", "Karura", "Kintsugi", "Moonriver", "CoretimeKusama", "Encointer", "Altair", "Basilisk", "BifrostKusama", "CrustShadow", "Crab", "Laos", "Quartz", "PeopleKusama", "Shiden", "Zeitgeist", "AssetHubWestend", "BridgeHubWestend", "CollectivesWestend", "CoretimeWestend", "Penpal", "PeopleWestend", "AjunaPaseo", "AssetHubPaseo", "BifrostPaseo", "BridgeHubPaseo", "CoretimePaseo", "EnergyWebXPaseo", "HeimaPaseo", "HydrationPaseo", "LaosPaseo", "NeuroWebPaseo", "PeoplePaseo", "ZeitgeistPaseo"];
|
|
5
5
|
/**
|
|
6
6
|
* Relaychains.
|
|
7
7
|
*/
|
|
@@ -9,7 +9,7 @@ declare const RELAYCHAINS: readonly ["Polkadot", "Kusama", "Westend", "Paseo"];
|
|
|
9
9
|
/**
|
|
10
10
|
* All Substrate chains (parachains + relaychains).
|
|
11
11
|
*/
|
|
12
|
-
declare const SUBSTRATE_CHAINS: readonly ["AssetHubPolkadot", "Acala", "Ajuna", "Astar", "BifrostPolkadot", "BridgeHubPolkadot", "Centrifuge", "Darwinia", "EnergyWebX", "Hydration", "Interlay", "Heima", "Jamton", "Moonbeam", "CoretimePolkadot", "Collectives", "Crust", "Manta", "Nodle", "NeuroWeb", "Pendulum", "
|
|
12
|
+
declare const SUBSTRATE_CHAINS: readonly ["AssetHubPolkadot", "Acala", "Ajuna", "Astar", "BifrostPolkadot", "BridgeHubPolkadot", "Centrifuge", "Darwinia", "EnergyWebX", "Hydration", "Interlay", "Heima", "Jamton", "Moonbeam", "CoretimePolkadot", "Collectives", "Crust", "Manta", "Nodle", "NeuroWeb", "Pendulum", "Mythos", "Peaq", "PeoplePolkadot", "Unique", "Xode", "AssetHubKusama", "BridgeHubKusama", "Karura", "Kintsugi", "Moonriver", "CoretimeKusama", "Encointer", "Altair", "Basilisk", "BifrostKusama", "CrustShadow", "Crab", "Laos", "Quartz", "PeopleKusama", "Shiden", "Zeitgeist", "AssetHubWestend", "BridgeHubWestend", "CollectivesWestend", "CoretimeWestend", "Penpal", "PeopleWestend", "AjunaPaseo", "AssetHubPaseo", "BifrostPaseo", "BridgeHubPaseo", "CoretimePaseo", "EnergyWebXPaseo", "HeimaPaseo", "HydrationPaseo", "LaosPaseo", "NeuroWebPaseo", "PeoplePaseo", "ZeitgeistPaseo", "Polkadot", "Kusama", "Westend", "Paseo"];
|
|
13
13
|
/**
|
|
14
14
|
* External chains (non-Substrate/Polkadot ecosystem chains).
|
|
15
15
|
*/
|
|
@@ -17,7 +17,7 @@ declare const EXTERNAL_CHAINS: readonly ["Ethereum", "EthereumTestnet"];
|
|
|
17
17
|
/**
|
|
18
18
|
* All supported chains.
|
|
19
19
|
*/
|
|
20
|
-
declare const CHAINS: readonly ["AssetHubPolkadot", "Acala", "Ajuna", "Astar", "BifrostPolkadot", "BridgeHubPolkadot", "Centrifuge", "Darwinia", "EnergyWebX", "Hydration", "Interlay", "Heima", "Jamton", "Moonbeam", "CoretimePolkadot", "Collectives", "Crust", "Manta", "Nodle", "NeuroWeb", "Pendulum", "
|
|
20
|
+
declare const CHAINS: readonly ["AssetHubPolkadot", "Acala", "Ajuna", "Astar", "BifrostPolkadot", "BridgeHubPolkadot", "Centrifuge", "Darwinia", "EnergyWebX", "Hydration", "Interlay", "Heima", "Jamton", "Moonbeam", "CoretimePolkadot", "Collectives", "Crust", "Manta", "Nodle", "NeuroWeb", "Pendulum", "Mythos", "Peaq", "PeoplePolkadot", "Unique", "Xode", "AssetHubKusama", "BridgeHubKusama", "Karura", "Kintsugi", "Moonriver", "CoretimeKusama", "Encointer", "Altair", "Basilisk", "BifrostKusama", "CrustShadow", "Crab", "Laos", "Quartz", "PeopleKusama", "Shiden", "Zeitgeist", "AssetHubWestend", "BridgeHubWestend", "CollectivesWestend", "CoretimeWestend", "Penpal", "PeopleWestend", "AjunaPaseo", "AssetHubPaseo", "BifrostPaseo", "BridgeHubPaseo", "CoretimePaseo", "EnergyWebXPaseo", "HeimaPaseo", "HydrationPaseo", "LaosPaseo", "NeuroWebPaseo", "PeoplePaseo", "ZeitgeistPaseo", "Polkadot", "Kusama", "Westend", "Paseo", "Ethereum", "EthereumTestnet"];
|
|
21
21
|
|
|
22
22
|
type TParachain = (typeof PARACHAINS)[number];
|
|
23
23
|
type TRelaychain = (typeof RELAYCHAINS)[number];
|
package/dist/index.mjs
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
var PARACHAINS = [
|
|
5
5
|
// Polkadot chains
|
|
6
|
-
'AssetHubPolkadot', 'Acala', 'Ajuna', 'Astar', 'BifrostPolkadot', 'BridgeHubPolkadot', 'Centrifuge', 'Darwinia', 'EnergyWebX', 'Hydration', 'Interlay', 'Heima', 'Jamton', 'Moonbeam', 'CoretimePolkadot', 'Collectives', 'Crust', 'Manta', 'Nodle', 'NeuroWeb', 'Pendulum', '
|
|
6
|
+
'AssetHubPolkadot', 'Acala', 'Ajuna', 'Astar', 'BifrostPolkadot', 'BridgeHubPolkadot', 'Centrifuge', 'Darwinia', 'EnergyWebX', 'Hydration', 'Interlay', 'Heima', 'Jamton', 'Moonbeam', 'CoretimePolkadot', 'Collectives', 'Crust', 'Manta', 'Nodle', 'NeuroWeb', 'Pendulum', 'Mythos', 'Peaq', 'PeoplePolkadot', 'Unique', 'Xode',
|
|
7
7
|
// Kusama chains
|
|
8
8
|
'AssetHubKusama', 'BridgeHubKusama', 'Karura', 'Kintsugi', 'Moonriver', 'CoretimeKusama', 'Encointer', 'Altair', 'Basilisk', 'BifrostKusama', 'CrustShadow', 'Crab', 'Laos', 'Quartz', 'PeopleKusama', 'Shiden', 'Zeitgeist',
|
|
9
9
|
// Westend testnet chains
|
|
10
10
|
'AssetHubWestend', 'BridgeHubWestend', 'CollectivesWestend', 'CoretimeWestend', 'Penpal', 'PeopleWestend',
|
|
11
11
|
// Paseo testnet chains
|
|
12
|
-
'AjunaPaseo', 'AssetHubPaseo', 'BifrostPaseo', 'BridgeHubPaseo', 'CoretimePaseo', 'EnergyWebXPaseo', 'HeimaPaseo', 'HydrationPaseo', '
|
|
12
|
+
'AjunaPaseo', 'AssetHubPaseo', 'BifrostPaseo', 'BridgeHubPaseo', 'CoretimePaseo', 'EnergyWebXPaseo', 'HeimaPaseo', 'HydrationPaseo', 'LaosPaseo', 'NeuroWebPaseo', 'PeoplePaseo', 'ZeitgeistPaseo'];
|
|
13
13
|
/**
|
|
14
14
|
* Relaychains.
|
|
15
15
|
*/
|
|
@@ -188,7 +188,7 @@ var isExternalChain = function isExternalChain(chain) {
|
|
|
188
188
|
* @returns True if the chain is a system chain; otherwise, false.
|
|
189
189
|
*/
|
|
190
190
|
var isSystemChain = function isSystemChain(chain) {
|
|
191
|
-
var systemChains = ['AssetHubPolkadot', 'AssetHubKusama', 'AssetHubWestend', 'AssetHubPaseo', 'BridgeHubPolkadot', 'BridgeHubKusama', 'BridgeHubWestend', 'BridgeHubPaseo', 'PeoplePolkadot', 'PeopleKusama', 'PeopleWestend', 'PeoplePaseo', 'CoretimePolkadot', 'CoretimeKusama', 'CoretimeWestend', 'CoretimePaseo', 'Collectives', 'Encointer', 'CollectivesWestend'
|
|
191
|
+
var systemChains = ['AssetHubPolkadot', 'AssetHubKusama', 'AssetHubWestend', 'AssetHubPaseo', 'BridgeHubPolkadot', 'BridgeHubKusama', 'BridgeHubWestend', 'BridgeHubPaseo', 'PeoplePolkadot', 'PeopleKusama', 'PeopleWestend', 'PeoplePaseo', 'CoretimePolkadot', 'CoretimeKusama', 'CoretimeWestend', 'CoretimePaseo', 'Collectives', 'Encointer', 'CollectivesWestend'];
|
|
192
192
|
return systemChains.includes(chain) || isRelayChain(chain);
|
|
193
193
|
};
|
|
194
194
|
var isTrustedChain = function isTrustedChain(chain) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk-common",
|
|
3
|
-
"version": "12.8.
|
|
3
|
+
"version": "12.8.2",
|
|
4
4
|
"description": "SDK common code for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@babel/plugin-syntax-import-attributes": "^7.28.6",
|
|
28
|
-
"@babel/preset-env": "^7.
|
|
28
|
+
"@babel/preset-env": "^7.29.0",
|
|
29
29
|
"@codecov/rollup-plugin": "^1.9.1",
|
|
30
30
|
"@polkadot/api": "^16.5.4",
|
|
31
31
|
"@polkadot/types": "^16.5.4",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"@rollup/plugin-json": "^6.1.0",
|
|
34
34
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
35
35
|
"@vitest/coverage-v8": "^4.0.18",
|
|
36
|
-
"dotenv": "^17.
|
|
37
|
-
"rollup": "^4.
|
|
36
|
+
"dotenv": "^17.3.1",
|
|
37
|
+
"rollup": "^4.59.0",
|
|
38
38
|
"rollup-plugin-dts": "^6.3.0"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|