@paraspell/sdk-common 13.7.2 → 13.9.0

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 CHANGED
@@ -170,5 +170,8 @@ declare const hasJunction: (location: TLocation, junctionType: TJunctionType, ju
170
170
 
171
171
  declare const replaceBigInt: (_key: string, value: unknown) => unknown;
172
172
 
173
- export { CHAINS, DEFAULT_SS58_PREFIX, ETHEREUM_BRIDGE_ORIGINS, EXTERNAL_CHAINS, PARACHAINS, Parents, RELAYCHAINS, SUBSTRATE_CHAINS, Version, deepEqual, getJunctionValue, hasJunction, isBridge, isChain, isCustomChain, isExternalChain, isPrimitive, isRelayChain, isSnowbridge, isSubstrateBridge, isSubstrateChain, isSystemChain, isTLocation, isTrustedChain, replaceBigInt };
173
+ declare const lowercaseFirstLetter: (value: string) => string;
174
+ declare const snakeToCamel: (str: string) => string;
175
+
176
+ export { CHAINS, DEFAULT_SS58_PREFIX, ETHEREUM_BRIDGE_ORIGINS, EXTERNAL_CHAINS, PARACHAINS, Parents, RELAYCHAINS, SUBSTRATE_CHAINS, Version, deepEqual, getJunctionValue, hasJunction, isBridge, isChain, isCustomChain, isExternalChain, isPrimitive, isRelayChain, isSnowbridge, isSubstrateBridge, isSubstrateChain, isSystemChain, isTLocation, isTrustedChain, lowercaseFirstLetter, replaceBigInt, snakeToCamel };
174
177
  export type { TChain, TExternalChain, TJunction, TJunctionAccountId32, TJunctionAccountIndex64, TJunctionAccountKey20, TJunctionGeneralIndex, TJunctionGeneralKey, TJunctionGlobalConsensus, TJunctionOnlyChild, TJunctionPalletInstance, TJunctionParachain, TJunctionPlurality, TJunctionType, TJunctions, TLocation, TParachain, TRelaychain, TSubstrateChain };
package/dist/index.mjs CHANGED
@@ -372,4 +372,13 @@ var replaceBigInt = function replaceBigInt(_key, value) {
372
372
  return typeof value === 'bigint' ? value.toString() : value;
373
373
  };
374
374
 
375
- export { CHAINS, DEFAULT_SS58_PREFIX, ETHEREUM_BRIDGE_ORIGINS, EXTERNAL_CHAINS, PARACHAINS, Parents, RELAYCHAINS, SUBSTRATE_CHAINS, Version, _deepEqual as deepEqual, getJunctionValue, hasJunction, isBridge, isChain, isCustomChain, isExternalChain, isPrimitive, isRelayChain, isSnowbridge, isSubstrateBridge, isSubstrateChain, isSystemChain, isTLocation, isTrustedChain, replaceBigInt };
375
+ var lowercaseFirstLetter = function lowercaseFirstLetter(value) {
376
+ return value.charAt(0).toLowerCase() + value.slice(1);
377
+ };
378
+ var snakeToCamel = function snakeToCamel(str) {
379
+ return str.replace(/([-_][a-z])/g, function (group) {
380
+ return group.toUpperCase().replace('-', '').replace('_', '');
381
+ });
382
+ };
383
+
384
+ export { CHAINS, DEFAULT_SS58_PREFIX, ETHEREUM_BRIDGE_ORIGINS, EXTERNAL_CHAINS, PARACHAINS, Parents, RELAYCHAINS, SUBSTRATE_CHAINS, Version, _deepEqual as deepEqual, getJunctionValue, hasJunction, isBridge, isChain, isCustomChain, isExternalChain, isPrimitive, isRelayChain, isSnowbridge, isSubstrateBridge, isSubstrateChain, isSystemChain, isTLocation, isTrustedChain, lowercaseFirstLetter, replaceBigInt, snakeToCamel };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk-common",
3
- "version": "13.7.2",
3
+ "version": "13.9.0",
4
4
  "description": "SDK common code for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,13 +26,16 @@
26
26
  "@babel/plugin-syntax-import-attributes": "^7.29.7",
27
27
  "@babel/preset-env": "^7.29.7",
28
28
  "@codecov/rollup-plugin": "^2.0.1",
29
- "@polkadot/api": "^16.5.6",
30
- "@polkadot/types": "^16.5.6",
29
+ "@polkadot-api/substrate-bindings": "^0.20.3",
31
30
  "@rollup/plugin-babel": "^7.0.0",
32
31
  "@rollup/plugin-json": "^6.1.0",
33
32
  "@rollup/plugin-typescript": "^12.3.0",
33
+ "@types/cli-progress": "^3.11.6",
34
34
  "@vitest/coverage-v8": "^4.1.7",
35
+ "cli-progress": "^3.12.0",
35
36
  "dotenv": "^17.4.2",
37
+ "picocolors": "^1.1.1",
38
+ "polkadot-api": "^2.1.6",
36
39
  "rollup": "^4.60.4",
37
40
  "rollup-plugin-dts": "^6.4.1"
38
41
  },