@paraspell/sdk-dedot 14.4.0 → 14.4.3

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.
Files changed (2) hide show
  1. package/dist/index.mjs +7 -4
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { getEvmPrivateKeyHex, getNativeAssetSymbol, getOtherAssets, NumberFormatError, createClientCache, MAX_CLIENTS, EXTENSION_MS, createClientPoolHelpers, BatchMode, isConfig, RoutingResolutionError, addXcmVersionHeader, createBridgedXcmPrefix, isCustomChain, isSenderSigner, PolkadotApi, UnsupportedOperationError, buildDryRunError, resolveModuleError, RuntimeApiUnavailableError, wrapTxBypass, localizeLocation, createAssetId, isAssetEqual, RELAY_LOCATION, SubmitTransactionError, replaceBigInt, createChainClient as createChainClient$1, getBalance as getBalance$1, Foreign, ForeignAbstract, Native, findAssetInfo, getAllAssetsSymbols, getAssets, getAssetsObject, getExistentialDeposit, getNativeAssets, getRelayChainSymbol, getSupportedAssets, getTChain, isChainEvm, convertSs58 as convertSs58$1, Builder as Builder$1, getBridgeStatus as getBridgeStatus$1, getParaEthTransferFees as getParaEthTransferFees$1, DRY_RUN_CLIENT_TIMEOUT_MS, dryRun as dryRun$1, dryRunOrigin as dryRunOrigin$1 } from '@paraspell/sdk-core';
2
2
  export * from '@paraspell/sdk-core';
3
- import { stringPascalCase, isEvmAddress, decodeAddress, isHex, u8aToHex, hexToU8a, stringToU8a, blake2AsHex } from 'dedot/utils';
3
+ import { stringPascalCase, isEvmAddress, decodeAddress, isHex, u8aToHex, hexToU8a, stringToU8a, blake2AsHex, xxhashAsHex } from 'dedot/utils';
4
4
  import { ParaSpellError, snakeToCamel, lowercaseFirstLetter } from '@paraspell/sdk-common';
5
5
  import { Keyring } from '@polkadot/keyring';
6
6
  import { DedotClient, WsProvider } from 'dedot';
@@ -745,9 +745,7 @@ var DedotApi = /*#__PURE__*/function (_PolkadotApi) {
745
745
  key: "accountToHex",
746
746
  value: function accountToHex(address) {
747
747
  var isPrefixed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
748
- if (isHex(address)) return address;
749
- var uint8Array = decodeAddress(address);
750
- var hex = u8aToHex(uint8Array);
748
+ var hex = isHex(address) ? address : u8aToHex(decodeAddress(address));
751
749
  return isPrefixed ? hex : hex.slice(2);
752
750
  }
753
751
  }, {
@@ -957,6 +955,11 @@ var DedotApi = /*#__PURE__*/function (_PolkadotApi) {
957
955
  value: function blake2AsHex$1(data) {
958
956
  return blake2AsHex(data);
959
957
  }
958
+ }, {
959
+ key: "xxhashAsHex",
960
+ value: function xxhashAsHex$1(data) {
961
+ return xxhashAsHex(data);
962
+ }
960
963
  }, {
961
964
  key: "clone",
962
965
  value: function clone() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk-dedot",
3
- "version": "14.4.0",
3
+ "version": "14.4.3",
4
4
  "description": "Dedot-based SDK for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,8 +22,8 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@paraspell/sdk-common": "14.4.0",
26
- "@paraspell/sdk-core": "14.4.0"
25
+ "@paraspell/sdk-common": "14.4.3",
26
+ "@paraspell/sdk-core": "14.4.3"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "dedot": ">= 1.4.0",