@paraspell/sdk-common 11.3.1 → 11.3.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.cjs +10 -0
- package/dist/index.d.ts +8 -1
- package/dist/index.mjs +10 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -141,6 +141,15 @@ exports.Version = void 0;
|
|
|
141
141
|
var isRelayChain = function isRelayChain(chain) {
|
|
142
142
|
return RELAYCHAINS.includes(chain);
|
|
143
143
|
};
|
|
144
|
+
/**
|
|
145
|
+
* Determines whether a given chain is an external chain.
|
|
146
|
+
*
|
|
147
|
+
* @param chain - The chain to check.
|
|
148
|
+
* @returns True if the chain is an external chain; otherwise, false.
|
|
149
|
+
*/
|
|
150
|
+
var isExternalChain = function isExternalChain(chain) {
|
|
151
|
+
return EXTERNAL_CHAINS.includes(chain);
|
|
152
|
+
};
|
|
144
153
|
/**
|
|
145
154
|
* Checks if a given chain is a system chain.
|
|
146
155
|
*
|
|
@@ -284,6 +293,7 @@ exports.deepEqual = _deepEqual;
|
|
|
284
293
|
exports.getJunctionValue = getJunctionValue;
|
|
285
294
|
exports.hasJunction = hasJunction;
|
|
286
295
|
exports.isDotKsmBridge = isDotKsmBridge;
|
|
296
|
+
exports.isExternalChain = isExternalChain;
|
|
287
297
|
exports.isPrimitive = isPrimitive;
|
|
288
298
|
exports.isRelayChain = isRelayChain;
|
|
289
299
|
exports.isSystemChain = isSystemChain;
|
package/dist/index.d.ts
CHANGED
|
@@ -125,6 +125,13 @@ declare const isTLocation: (value: unknown) => value is TLocation;
|
|
|
125
125
|
* @returns True if the chain is a relaychain; otherwise, false.
|
|
126
126
|
*/
|
|
127
127
|
declare const isRelayChain: (chain: TChain) => chain is TRelaychain;
|
|
128
|
+
/**
|
|
129
|
+
* Determines whether a given chain is an external chain.
|
|
130
|
+
*
|
|
131
|
+
* @param chain - The chain to check.
|
|
132
|
+
* @returns True if the chain is an external chain; otherwise, false.
|
|
133
|
+
*/
|
|
134
|
+
declare const isExternalChain: (chain: TChain) => chain is TExternalChain;
|
|
128
135
|
/**
|
|
129
136
|
* Checks if a given chain is a system chain.
|
|
130
137
|
*
|
|
@@ -144,5 +151,5 @@ declare const hasJunction: (location: TLocation, junctionType: TJunctionType, ju
|
|
|
144
151
|
|
|
145
152
|
declare const replaceBigInt: (_key: string, value: unknown) => unknown;
|
|
146
153
|
|
|
147
|
-
export { CHAINS, EXTERNAL_CHAINS, PARACHAINS, Parents, RELAYCHAINS, SUBSTRATE_CHAINS, Version, deepEqual, getJunctionValue, hasJunction, isDotKsmBridge, isPrimitive, isRelayChain, isSystemChain, isTLocation, isTrustedChain, replaceBigInt };
|
|
154
|
+
export { CHAINS, EXTERNAL_CHAINS, PARACHAINS, Parents, RELAYCHAINS, SUBSTRATE_CHAINS, Version, deepEqual, getJunctionValue, hasJunction, isDotKsmBridge, isExternalChain, isPrimitive, isRelayChain, isSystemChain, isTLocation, isTrustedChain, replaceBigInt };
|
|
148
155
|
export type { TChain, TExternalChain, TJunction, TJunctionGeneralIndex, TJunctionParachain, TJunctionType, TJunctions, TLocation, TNode, TNodeDotKsmWithRelayChains, TNodePolkadotKusama, TNodeWithRelayChains, TParachain, TRelaychain, TSubstrateChain };
|
package/dist/index.mjs
CHANGED
|
@@ -139,6 +139,15 @@ var Version;
|
|
|
139
139
|
var isRelayChain = function isRelayChain(chain) {
|
|
140
140
|
return RELAYCHAINS.includes(chain);
|
|
141
141
|
};
|
|
142
|
+
/**
|
|
143
|
+
* Determines whether a given chain is an external chain.
|
|
144
|
+
*
|
|
145
|
+
* @param chain - The chain to check.
|
|
146
|
+
* @returns True if the chain is an external chain; otherwise, false.
|
|
147
|
+
*/
|
|
148
|
+
var isExternalChain = function isExternalChain(chain) {
|
|
149
|
+
return EXTERNAL_CHAINS.includes(chain);
|
|
150
|
+
};
|
|
142
151
|
/**
|
|
143
152
|
* Checks if a given chain is a system chain.
|
|
144
153
|
*
|
|
@@ -273,4 +282,4 @@ var replaceBigInt = function replaceBigInt(_key, value) {
|
|
|
273
282
|
return typeof value === 'bigint' ? value.toString() : value;
|
|
274
283
|
};
|
|
275
284
|
|
|
276
|
-
export { CHAINS, EXTERNAL_CHAINS, PARACHAINS, Parents, RELAYCHAINS, SUBSTRATE_CHAINS, Version, _deepEqual as deepEqual, getJunctionValue, hasJunction, isDotKsmBridge, isPrimitive, isRelayChain, isSystemChain, isTLocation, isTrustedChain, replaceBigInt };
|
|
285
|
+
export { CHAINS, EXTERNAL_CHAINS, PARACHAINS, Parents, RELAYCHAINS, SUBSTRATE_CHAINS, Version, _deepEqual as deepEqual, getJunctionValue, hasJunction, isDotKsmBridge, isExternalChain, isPrimitive, isRelayChain, isSystemChain, isTLocation, isTrustedChain, replaceBigInt };
|