@paraspell/sdk 14.1.0 → 14.1.1

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 +21 -19
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -1932,29 +1932,31 @@ var PapiApi = /*#__PURE__*/function (_PolkadotApi) {
1932
1932
  key: "signAndSubmitFinalized",
1933
1933
  value: function () {
1934
1934
  var _signAndSubmitFinalized = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee21(tx, sender) {
1935
- var signer;
1935
+ var signer, result, _t0;
1936
1936
  return _regenerator().w(function (_context21) {
1937
- while (1) switch (_context21.n) {
1937
+ while (1) switch (_context21.p = _context21.n) {
1938
1938
  case 0:
1939
1939
  signer = isSenderSigner(sender) ? sender : createDevSigner(sender);
1940
- return _context21.a(2, new Promise(function (resolve, reject) {
1941
- tx.signSubmitAndWatch(signer).subscribe({
1942
- next: function next(event) {
1943
- if (event.type === 'finalized' || event.type === 'txBestBlocksState' && event.found) {
1944
- if (!event.ok) {
1945
- reject(new SubmitTransactionError(JSON.stringify(event.dispatchError.value)));
1946
- } else {
1947
- resolve(event.txHash);
1948
- }
1949
- }
1950
- },
1951
- error: function error(_error) {
1952
- reject(_error instanceof Error ? _error : new SubmitTransactionError(String(_error)));
1953
- }
1954
- });
1955
- }));
1940
+ _context21.p = 1;
1941
+ _context21.n = 2;
1942
+ return tx.signAndSubmit(signer);
1943
+ case 2:
1944
+ result = _context21.v;
1945
+ if (result.ok) {
1946
+ _context21.n = 3;
1947
+ break;
1948
+ }
1949
+ throw new SubmitTransactionError(JSON.stringify(result.dispatchError.value));
1950
+ case 3:
1951
+ return _context21.a(2, result.txHash);
1952
+ case 4:
1953
+ _context21.p = 4;
1954
+ _t0 = _context21.v;
1955
+ throw _t0 instanceof Error ? _t0 : new SubmitTransactionError(String(_t0));
1956
+ case 5:
1957
+ return _context21.a(2);
1956
1958
  }
1957
- }, _callee21);
1959
+ }, _callee21, null, [[1, 4]]);
1958
1960
  }));
1959
1961
  function signAndSubmitFinalized(_x35, _x36) {
1960
1962
  return _signAndSubmitFinalized.apply(this, arguments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk",
3
- "version": "14.1.0",
3
+ "version": "14.1.1",
4
4
  "description": "SDK for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,11 +27,11 @@
27
27
  "@polkadot-labs/hdkd": "^0.0.28",
28
28
  "@polkadot-labs/hdkd-helpers": "^0.0.30",
29
29
  "viem": "^2.55.10",
30
- "@paraspell/sdk-core": "14.1.0"
30
+ "@paraspell/sdk-core": "14.1.1"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "polkadot-api": ">= 2 < 3",
34
- "@paraspell/descriptors": "14.1.0"
34
+ "@paraspell/descriptors": "14.1.1"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@acala-network/chopsticks": "^1.5.0",