@rango-dev/queue-manager-rango-preset 0.1.10-next.94 → 0.1.10-next.95

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.
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAa,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAEL,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACZ,MAAM,SAAS,CAAC;AACjB,OAAO,EAEL,IAAI,EACJ,OAAO,EACP,WAAW,EACX,UAAU,EACX,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,SAAS,EAAsB,MAAM,yBAAyB,CAAC;AAExE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,QAAQ,IAAI,mBAAmB,EAC/B,WAAW,EAEX,iBAAiB,EACjB,yBAAyB,EAC1B,MAAM,WAAW,CAAC;AAOnB,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,OAAO,EACL,SAAS,EAQT,WAAW,EACX,wBAAwB,EACxB,eAAe,EAEf,UAAU,EACV,UAAU,EACV,MAAM,EACN,oBAAoB,EACpB,wBAAwB,EACzB,MAAM,UAAU,CAAC;AASlB,aAAK,eAAe,GAAG,UAAU,CAAC,WAAW,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAChF,aAAK,oBAAoB,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;AAC/C,aAAK,mBAAmB,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;AAuB9C;;;;;GAKG;AACH,eAAO,MAAM,cAAc,SAAU,WAAW,KAAG,eAAe,GAAG,IAMpE,CAAC;AAEF;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,UAAU,EACV,UAAU,EACV,UAAU,EACV,cAA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,7 +1502,10 @@ function singTransaction(actions) {
1502
1502
  });
1503
1503
  var notification = getSwapNotitfication('confirm_transfer', _updateResult3);
1504
1504
  notifier(notification);
1505
- if (notification.eventType !== 'transaction_expired') {
1505
+ if (notification.eventType === 'transaction_expired') {
1506
+ failed();
1507
+ onFinish();
1508
+ } else {
1506
1509
  walletSigners.getSigner(rangoSdk.TransactionType.TRANSFER).signAndSendTx(transferTransaction, walletAddress, null).then(function (txId) {
1507
1510
  setStepTransactionIds(actions, txId, 'transfer_confirmed', notifier);
1508
1511
  schedule(SwapActionTypes.CHECK_TRANSACTION_STATUS);
@@ -1542,7 +1545,10 @@ function singTransaction(actions) {
1542
1545
  });
1543
1546
  var _notification = getSwapNotitfication('calling_smart_contract', _updateResult4);
1544
1547
  notifier(_notification);
1545
- if (_notification.eventType !== 'transaction_expired') {
1548
+ if (_notification.eventType === 'transaction_expired') {
1549
+ failed();
1550
+ onFinish();
1551
+ } else {
1546
1552
  walletSigners.getSigner(rangoSdk.TransactionType.EVM).signAndSendTx(evmTransaction, walletAddress, null).then(function (id) {
1547
1553
  setStepTransactionIds(actions, id, 'smart_contract_called', notifier);
1548
1554
  schedule(SwapActionTypes.CHECK_TRANSACTION_STATUS);
@@ -1586,7 +1592,10 @@ function singTransaction(actions) {
1586
1592
  });
1587
1593
  var _notification2 = getSwapNotitfication('calling_smart_contract', _updateResult5);
1588
1594
  notifier(_notification2);
1589
- if (_notification2.eventType !== 'transaction_expired') {
1595
+ if (_notification2.eventType === 'transaction_expired') {
1596
+ failed();
1597
+ onFinish();
1598
+ } else {
1590
1599
  // If keplr wallet is executing contracts on terra, throw error. keplr doesn't support transfer or execute contracts. only IBC messages are supported
1591
1600
  if (((currentStep == null ? void 0 : currentStep.swapperId.toString()) === 'TerraSwap' || (currentStep == null ? void 0 : currentStep.swapperId.toString()) === 'ThorChain' && (currentStep == null ? void 0 : currentStep.fromBlockchain) === walletsShared.Network.TERRA || (currentStep == null ? void 0 : currentStep.swapperId.toString()) === 'Terra Bridge' && currentStep.fromBlockchain === walletsShared.Network.TERRA) &&
1592
1601
  // here we must allow ibc on terrastatus
@@ -1652,7 +1661,10 @@ function singTransaction(actions) {
1652
1661
  });
1653
1662
  var _notification3 = getSwapNotitfication('calling_smart_contract', _updateResult7);
1654
1663
  notifier(_notification3);
1655
- if (_notification3.eventType !== 'transaction_expired') {
1664
+ if (_notification3.eventType === 'transaction_expired') {
1665
+ failed();
1666
+ onFinish();
1667
+ } else {
1656
1668
  var tx = solanaTransaction;
1657
1669
  walletSigners.getSigner(rangoSdk.TransactionType.SOLANA).signAndSendTx(tx, walletAddress, null).then(function (txId) {
1658
1670
  setStepTransactionIds(actions, txId, 'smart_contract_called', notifier);
@@ -1685,84 +1697,96 @@ function singTransaction(actions) {
1685
1697
  var _updateResult8 = updateSwapStatus({
1686
1698
  getStorage: getStorage,
1687
1699
  setStorage: setStorage,
1688
- nextStepStatus: 'running',
1700
+ nextStepStatus: hasAlreadyProceededToSign ? 'failed' : 'running',
1701
+ nextStatus: hasAlreadyProceededToSign ? 'failed' : 'running',
1689
1702
  message: executeMessage,
1690
- details: executeDetails
1703
+ details: executeDetails,
1704
+ hasAlreadyProceededToSign: hasAlreadyProceededToSign
1691
1705
  });
1692
- notifier(_extends({
1693
- eventType: 'calling_smart_contract'
1694
- }, _updateResult8));
1695
- walletSigners.getSigner(rangoSdk.TransactionType.TRON).signAndSendTx(tronTransaction, walletAddress, null).then(function (id) {
1696
- setStepTransactionIds(actions, id, 'smart_contract_called', notifier);
1697
- schedule(SwapActionTypes.CHECK_TRANSACTION_STATUS);
1698
- next();
1699
- onFinish();
1700
- }, function (error) {
1701
- var _error$root13, _error$root14, _error$root15;
1702
- if (swap.status === 'failed') return;
1703
- var _prettifyErrorMessage9 = prettifyErrorMessage(error),
1704
- extraMessage = _prettifyErrorMessage9.extraMessage,
1705
- extraMessageDetail = _prettifyErrorMessage9.extraMessageDetail,
1706
- extraMessageErrorCode = _prettifyErrorMessage9.extraMessageErrorCode;
1707
- if (error && error != null && error.root && error != null && (_error$root13 = error.root) != null && _error$root13.message && error != null && (_error$root14 = error.root) != null && _error$root14.code && error != null && (_error$root15 = error.root) != null && _error$root15.reason) {
1708
- logRPCError(error.root, swap, currentStep, sourceWallet == null ? void 0 : sourceWallet.walletType);
1709
- }
1710
- var updateResult = updateSwapStatus({
1711
- getStorage: getStorage,
1712
- setStorage: setStorage,
1713
- nextStatus: 'failed',
1714
- nextStepStatus: 'failed',
1715
- message: extraMessage,
1716
- details: extraMessageDetail,
1717
- errorCode: extraMessageErrorCode
1718
- });
1719
- notifier(_extends({
1720
- eventType: 'smart_contract_call_failed'
1721
- }, updateResult));
1706
+ var _notification4 = getSwapNotitfication('calling_smart_contract', _updateResult8);
1707
+ notifier(_notification4);
1708
+ if (_notification4.eventType === 'transaction_expired') {
1722
1709
  failed();
1723
1710
  onFinish();
1724
- });
1711
+ } else {
1712
+ walletSigners.getSigner(rangoSdk.TransactionType.TRON).signAndSendTx(tronTransaction, walletAddress, null).then(function (id) {
1713
+ setStepTransactionIds(actions, id, 'smart_contract_called', notifier);
1714
+ schedule(SwapActionTypes.CHECK_TRANSACTION_STATUS);
1715
+ next();
1716
+ onFinish();
1717
+ }, function (error) {
1718
+ var _error$root13, _error$root14, _error$root15;
1719
+ if (swap.status === 'failed') return;
1720
+ var _prettifyErrorMessage9 = prettifyErrorMessage(error),
1721
+ extraMessage = _prettifyErrorMessage9.extraMessage,
1722
+ extraMessageDetail = _prettifyErrorMessage9.extraMessageDetail,
1723
+ extraMessageErrorCode = _prettifyErrorMessage9.extraMessageErrorCode;
1724
+ if (error && error != null && error.root && error != null && (_error$root13 = error.root) != null && _error$root13.message && error != null && (_error$root14 = error.root) != null && _error$root14.code && error != null && (_error$root15 = error.root) != null && _error$root15.reason) {
1725
+ logRPCError(error.root, swap, currentStep, sourceWallet == null ? void 0 : sourceWallet.walletType);
1726
+ }
1727
+ var updateResult = updateSwapStatus({
1728
+ getStorage: getStorage,
1729
+ setStorage: setStorage,
1730
+ nextStatus: 'failed',
1731
+ nextStepStatus: 'failed',
1732
+ message: extraMessage,
1733
+ details: extraMessageDetail,
1734
+ errorCode: extraMessageErrorCode
1735
+ });
1736
+ notifier(_extends({
1737
+ eventType: 'smart_contract_call_failed'
1738
+ }, updateResult));
1739
+ failed();
1740
+ onFinish();
1741
+ });
1742
+ }
1725
1743
  } else if (!!starknetTransaction) {
1726
1744
  var _updateResult9 = updateSwapStatus({
1727
1745
  getStorage: getStorage,
1728
1746
  setStorage: setStorage,
1729
- nextStepStatus: 'running',
1747
+ nextStepStatus: hasAlreadyProceededToSign ? 'failed' : 'running',
1748
+ nextStatus: hasAlreadyProceededToSign ? 'failed' : 'running',
1730
1749
  message: executeMessage,
1731
- details: executeDetails
1750
+ details: executeDetails,
1751
+ hasAlreadyProceededToSign: hasAlreadyProceededToSign
1732
1752
  });
1733
- notifier(_extends({
1734
- eventType: 'calling_smart_contract'
1735
- }, _updateResult9));
1736
- walletSigners.getSigner(rangoSdk.TransactionType.STARKNET).signAndSendTx(starknetTransaction, walletAddress, null).then(function (id) {
1737
- setStepTransactionIds(actions, id, 'smart_contract_called', notifier);
1738
- schedule(SwapActionTypes.CHECK_TRANSACTION_STATUS);
1739
- next();
1740
- onFinish();
1741
- }, function (error) {
1742
- var _error$root16, _error$root17, _error$root18;
1743
- if (swap.status === 'failed') return;
1744
- var _prettifyErrorMessage10 = prettifyErrorMessage(error),
1745
- extraMessage = _prettifyErrorMessage10.extraMessage,
1746
- extraMessageDetail = _prettifyErrorMessage10.extraMessageDetail,
1747
- extraMessageErrorCode = _prettifyErrorMessage10.extraMessageErrorCode;
1748
- if (error && error != null && error.root && error != null && (_error$root16 = error.root) != null && _error$root16.message && error != null && (_error$root17 = error.root) != null && _error$root17.code && error != null && (_error$root18 = error.root) != null && _error$root18.reason) {
1749
- logRPCError(error.root, swap, currentStep, sourceWallet == null ? void 0 : sourceWallet.walletType);
1750
- }
1751
- var updateResult = updateSwapStatus({
1752
- getStorage: getStorage,
1753
- setStorage: setStorage,
1754
- nextStatus: 'failed',
1755
- nextStepStatus: 'failed',
1756
- message: extraMessage,
1757
- details: extraMessageDetail,
1758
- errorCode: extraMessageErrorCode
1759
- });
1760
- notifier(_extends({
1761
- eventType: 'smart_contract_call_failed'
1762
- }, updateResult));
1753
+ var _notification5 = getSwapNotitfication('calling_smart_contract', _updateResult9);
1754
+ notifier(_notification5);
1755
+ if (_notification5.eventType === 'transaction_expired') {
1763
1756
  failed();
1764
1757
  onFinish();
1765
- });
1758
+ } else {
1759
+ walletSigners.getSigner(rangoSdk.TransactionType.STARKNET).signAndSendTx(starknetTransaction, walletAddress, null).then(function (id) {
1760
+ setStepTransactionIds(actions, id, 'smart_contract_called', notifier);
1761
+ schedule(SwapActionTypes.CHECK_TRANSACTION_STATUS);
1762
+ next();
1763
+ onFinish();
1764
+ }, function (error) {
1765
+ var _error$root16, _error$root17, _error$root18;
1766
+ if (swap.status === 'failed') return;
1767
+ var _prettifyErrorMessage10 = prettifyErrorMessage(error),
1768
+ extraMessage = _prettifyErrorMessage10.extraMessage,
1769
+ extraMessageDetail = _prettifyErrorMessage10.extraMessageDetail,
1770
+ extraMessageErrorCode = _prettifyErrorMessage10.extraMessageErrorCode;
1771
+ if (error && error != null && error.root && error != null && (_error$root16 = error.root) != null && _error$root16.message && error != null && (_error$root17 = error.root) != null && _error$root17.code && error != null && (_error$root18 = error.root) != null && _error$root18.reason) {
1772
+ logRPCError(error.root, swap, currentStep, sourceWallet == null ? void 0 : sourceWallet.walletType);
1773
+ }
1774
+ var updateResult = updateSwapStatus({
1775
+ getStorage: getStorage,
1776
+ setStorage: setStorage,
1777
+ nextStatus: 'failed',
1778
+ nextStepStatus: 'failed',
1779
+ message: extraMessage,
1780
+ details: extraMessageDetail,
1781
+ errorCode: extraMessageErrorCode
1782
+ });
1783
+ notifier(_extends({
1784
+ eventType: 'smart_contract_call_failed'
1785
+ }, updateResult));
1786
+ failed();
1787
+ onFinish();
1788
+ });
1789
+ }
1766
1790
  }
1767
1791
  }
1768
1792
  function checkWaitingForConnectWalletChange(params) {