@paraspell/sdk-dedot 14.1.0-rc.1 → 14.1.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.
Files changed (2) hide show
  1. package/dist/index.mjs +5 -44
  2. package/package.json +5 -5
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { getEvmPrivateKeyHex, getNativeAssetSymbol, getOtherAssets, NumberFormatError, createClientCache, MAX_CLIENTS, EXTENSION_MS, createClientPoolHelpers, BatchMode, isConfig, isCustomChain, isSenderSigner, PolkadotApi, UnsupportedOperationError, buildDryRunError, resolveModuleError, RuntimeApiUnavailableError, wrapTxBypass, localizeLocation, createAssetId, addXcmVersionHeader, isAssetEqual, RELAY_LOCATION, 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
3
  import { stringPascalCase, isEvmAddress, decodeAddress, isHex, u8aToHex, hexToU8a, stringToU8a, blake2AsHex } from 'dedot/utils';
4
+ import { ParaSpellError, snakeToCamel, lowercaseFirstLetter } from '@paraspell/sdk-common';
4
5
  import { Keyring } from '@polkadot/keyring';
5
- import { snakeToCamel, lowercaseFirstLetter } from '@paraspell/sdk-common';
6
6
  import { DedotClient, WsProvider } from 'dedot';
7
7
 
8
8
  function _arrayLikeToArray(r, a) {
@@ -48,13 +48,6 @@ function _callSuper(t, o, e) {
48
48
  function _classCallCheck(a, n) {
49
49
  if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
50
50
  }
51
- function _construct(t, e, r) {
52
- if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
53
- var o = [null];
54
- o.push.apply(o, e);
55
- var p = new (t.bind.apply(t, o))();
56
- return r && _setPrototypeOf(p, r.prototype), p;
57
- }
58
51
  function _defineProperties(e, r) {
59
52
  for (var t = 0; t < r.length; t++) {
60
53
  var o = r[t];
@@ -139,13 +132,6 @@ function _inherits(t, e) {
139
132
  writable: false
140
133
  }), e && _setPrototypeOf(t, e);
141
134
  }
142
- function _isNativeFunction(t) {
143
- try {
144
- return -1 !== Function.toString.call(t).indexOf("[native code]");
145
- } catch (n) {
146
- return "function" == typeof t;
147
- }
148
- }
149
135
  function _isNativeReflectConstruct() {
150
136
  try {
151
137
  var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
@@ -332,40 +318,15 @@ function _unsupportedIterableToArray(r, a) {
332
318
  return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
333
319
  }
334
320
  }
335
- function _wrapNativeSuper(t) {
336
- var r = "function" == typeof Map ? new Map() : void 0;
337
- return _wrapNativeSuper = function (t) {
338
- if (null === t || !_isNativeFunction(t)) return t;
339
- if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
340
- if (void 0 !== r) {
341
- if (r.has(t)) return r.get(t);
342
- r.set(t, Wrapper);
343
- }
344
- function Wrapper() {
345
- return _construct(t, arguments, _getPrototypeOf(this).constructor);
346
- }
347
- return Wrapper.prototype = Object.create(t.prototype, {
348
- constructor: {
349
- value: Wrapper,
350
- enumerable: false,
351
- writable: true,
352
- configurable: true
353
- }
354
- }), _setPrototypeOf(Wrapper, t);
355
- }, _wrapNativeSuper(t);
356
- }
357
321
 
358
- var TypeNotFoundError = /*#__PURE__*/function (_Error) {
322
+ var TypeNotFoundError = /*#__PURE__*/function (_ParaSpellError) {
359
323
  function TypeNotFoundError(name) {
360
- var _this;
361
324
  _classCallCheck(this, TypeNotFoundError);
362
- _this = _callSuper(this, TypeNotFoundError, ["Cannot find type by name: ".concat(name)]);
363
- _this.name = "TypeNotFoundError";
364
- return _this;
325
+ return _callSuper(this, TypeNotFoundError, ["Cannot find type by name: ".concat(name)]);
365
326
  }
366
- _inherits(TypeNotFoundError, _Error);
327
+ _inherits(TypeNotFoundError, _ParaSpellError);
367
328
  return _createClass(TypeNotFoundError);
368
- }(/*#__PURE__*/_wrapNativeSuper(Error));
329
+ }(ParaSpellError);
369
330
 
370
331
  /**
371
332
  * Code snippet provided by the Dedot team.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk-dedot",
3
- "version": "14.1.0-rc.1",
3
+ "version": "14.1.0",
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.1.0-rc.1",
26
- "@paraspell/sdk-core": "14.1.0-rc.1"
25
+ "@paraspell/sdk-common": "14.1.0",
26
+ "@paraspell/sdk-core": "14.1.0"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "dedot": ">= 1.3.0",
@@ -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": "^4.1.9",
39
+ "@vitest/coverage-v8": "^4.1.10",
40
40
  "dotenv": "^17.4.2",
41
- "rollup": "^4.62.2",
41
+ "rollup": "^4.62.3",
42
42
  "rollup-plugin-dts": "^6.4.1"
43
43
  },
44
44
  "scripts": {