@paraspell/sdk-dedot 14.3.6 → 14.4.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.mjs +7 -4
- package/package.json +7 -7
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
|
-
|
|
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.
|
|
3
|
+
"version": "14.4.2",
|
|
4
4
|
"description": "Dedot-based SDK for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@paraspell/sdk-common": "14.
|
|
26
|
-
"@paraspell/sdk-core": "14.
|
|
25
|
+
"@paraspell/sdk-common": "14.4.2",
|
|
26
|
+
"@paraspell/sdk-core": "14.4.2"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"dedot": ">= 1.
|
|
29
|
+
"dedot": ">= 1.4.0",
|
|
30
30
|
"@polkadot/keyring": ">= 14"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"@rollup/plugin-babel": "^7.1.0",
|
|
37
37
|
"@rollup/plugin-json": "^6.1.0",
|
|
38
38
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
39
|
-
"@vitest/coverage-v8": "^
|
|
40
|
-
"dotenv": "^
|
|
41
|
-
"rollup": "^4.
|
|
39
|
+
"@vitest/coverage-v8": "^5.0.2",
|
|
40
|
+
"dotenv": "^18.0.4",
|
|
41
|
+
"rollup": "^4.63.5",
|
|
42
42
|
"rollup-plugin-dts": "^6.5.1"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|