@paraspell/sdk-common 10.0.2 → 10.1.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/dist/index.cjs +5 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.mjs +5 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -163,6 +163,10 @@ var _deepEqual = function deepEqual(obj1, obj2) {
|
|
|
163
163
|
return true;
|
|
164
164
|
};
|
|
165
165
|
|
|
166
|
+
var isDotKsmBridge = function isDotKsmBridge(origin, destination) {
|
|
167
|
+
return origin === 'AssetHubPolkadot' && destination === 'AssetHubKusama' || origin === 'AssetHubKusama' && destination === 'AssetHubPolkadot';
|
|
168
|
+
};
|
|
169
|
+
|
|
166
170
|
/**
|
|
167
171
|
* Determines whether a given node is a relay chain (Polkadot or Kusama).
|
|
168
172
|
*
|
|
@@ -227,6 +231,7 @@ exports.NODE_NAMES = NODE_NAMES;
|
|
|
227
231
|
exports.NODE_NAMES_DOT_KSM = NODE_NAMES_DOT_KSM;
|
|
228
232
|
exports.deepEqual = _deepEqual;
|
|
229
233
|
exports.hasJunction = hasJunction;
|
|
234
|
+
exports.isDotKsmBridge = isDotKsmBridge;
|
|
230
235
|
exports.isPrimitive = isPrimitive;
|
|
231
236
|
exports.isRelayChain = isRelayChain;
|
|
232
237
|
exports.isTMultiLocation = isTMultiLocation;
|
package/dist/index.d.ts
CHANGED
|
@@ -102,6 +102,8 @@ declare const isTMultiLocation: (value: unknown) => value is TMultiLocation;
|
|
|
102
102
|
declare const isPrimitive: (obj: unknown) => boolean;
|
|
103
103
|
declare const deepEqual: (obj1: unknown, obj2: unknown) => boolean;
|
|
104
104
|
|
|
105
|
+
declare const isDotKsmBridge: (origin: TNodeDotKsmWithRelayChains, destination: TNodeWithRelayChains) => boolean;
|
|
106
|
+
|
|
105
107
|
/**
|
|
106
108
|
* Determines whether a given node is a relay chain (Polkadot or Kusama).
|
|
107
109
|
*
|
|
@@ -112,5 +114,5 @@ declare const isRelayChain: (node: TNodeWithRelayChains) => node is "Polkadot" |
|
|
|
112
114
|
|
|
113
115
|
declare const hasJunction: (multiLocation: TMultiLocation, junctionType: TJunctionType, junctionValue?: unknown) => boolean;
|
|
114
116
|
|
|
115
|
-
export { NODES_WITH_RELAY_CHAINS, NODES_WITH_RELAY_CHAINS_DOT_KSM, NODE_NAMES, NODE_NAMES_DOT_KSM, Parents, deepEqual, hasJunction, isPrimitive, isRelayChain, isTMultiLocation };
|
|
117
|
+
export { NODES_WITH_RELAY_CHAINS, NODES_WITH_RELAY_CHAINS_DOT_KSM, NODE_NAMES, NODE_NAMES_DOT_KSM, Parents, deepEqual, hasJunction, isDotKsmBridge, isPrimitive, isRelayChain, isTMultiLocation };
|
|
116
118
|
export type { TEcosystemType, TJunction, TJunctionGeneralIndex, TJunctionParachain, TJunctionType, TJunctions, TMultiLocation, TNode, TNodeDotKsmWithRelayChains, TNodePolkadotKusama, TNodeWithRelayChains, TRelayChainSymbol };
|
package/dist/index.mjs
CHANGED
|
@@ -161,6 +161,10 @@ var _deepEqual = function deepEqual(obj1, obj2) {
|
|
|
161
161
|
return true;
|
|
162
162
|
};
|
|
163
163
|
|
|
164
|
+
var isDotKsmBridge = function isDotKsmBridge(origin, destination) {
|
|
165
|
+
return origin === 'AssetHubPolkadot' && destination === 'AssetHubKusama' || origin === 'AssetHubKusama' && destination === 'AssetHubPolkadot';
|
|
166
|
+
};
|
|
167
|
+
|
|
164
168
|
/**
|
|
165
169
|
* Determines whether a given node is a relay chain (Polkadot or Kusama).
|
|
166
170
|
*
|
|
@@ -219,4 +223,4 @@ var hasJunction = function hasJunction(multiLocation, junctionType, junctionValu
|
|
|
219
223
|
});
|
|
220
224
|
};
|
|
221
225
|
|
|
222
|
-
export { NODES_WITH_RELAY_CHAINS, NODES_WITH_RELAY_CHAINS_DOT_KSM, NODE_NAMES, NODE_NAMES_DOT_KSM, Parents, _deepEqual as deepEqual, hasJunction, isPrimitive, isRelayChain, isTMultiLocation };
|
|
226
|
+
export { NODES_WITH_RELAY_CHAINS, NODES_WITH_RELAY_CHAINS_DOT_KSM, NODE_NAMES, NODE_NAMES_DOT_KSM, Parents, _deepEqual as deepEqual, hasJunction, isDotKsmBridge, isPrimitive, isRelayChain, isTMultiLocation };
|