@rango-dev/queue-manager-rango-preset 0.1.11-next.4 → 0.1.11-next.7
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/configs.d.ts.map +1 -1
- package/dist/queue-manager-rango-preset.cjs.development.js +10 -4
- package/dist/queue-manager-rango-preset.cjs.development.js.map +1 -1
- package/dist/queue-manager-rango-preset.cjs.production.min.js +1 -1
- package/dist/queue-manager-rango-preset.cjs.production.min.js.map +1 -1
- package/dist/queue-manager-rango-preset.esm.js +10 -4
- package/dist/queue-manager-rango-preset.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/configs.ts +8 -1
- package/src/helpers.ts +3 -3
|
@@ -19,7 +19,13 @@ function getConfig(name) {
|
|
|
19
19
|
return configs[name];
|
|
20
20
|
}
|
|
21
21
|
function initConfig(nextConfigs) {
|
|
22
|
-
|
|
22
|
+
var clonedConfigs;
|
|
23
|
+
if (typeof structuredClone === 'function') {
|
|
24
|
+
clonedConfigs = structuredClone(nextConfigs);
|
|
25
|
+
} else {
|
|
26
|
+
clonedConfigs = JSON.parse(JSON.stringify(nextConfigs));
|
|
27
|
+
}
|
|
28
|
+
configs = clonedConfigs;
|
|
23
29
|
return configs;
|
|
24
30
|
}
|
|
25
31
|
|
|
@@ -1467,7 +1473,7 @@ function singTransaction(actions) {
|
|
|
1467
1473
|
var spenderContract = evmApprovalTransaction == null ? void 0 : evmApprovalTransaction.to;
|
|
1468
1474
|
if (!spenderContract) throw PrettyError.AssertionFailed('contract address is null for checking approval');
|
|
1469
1475
|
// Update swap status
|
|
1470
|
-
var message = "
|
|
1476
|
+
var message = "Waiting for approval of " + (currentStep == null ? void 0 : currentStep.fromSymbol) + " coin " + (sourceWallet.walletType === WalletType.WALLET_CONNECT ? 'on your mobile phone' : '');
|
|
1471
1477
|
var updateResult = updateSwapStatus({
|
|
1472
1478
|
getStorage: getStorage,
|
|
1473
1479
|
setStorage: setStorage,
|
|
@@ -1513,7 +1519,7 @@ function singTransaction(actions) {
|
|
|
1513
1519
|
return;
|
|
1514
1520
|
} else if (!!tronApprovalTransaction) {
|
|
1515
1521
|
// Update swap status
|
|
1516
|
-
var _message = "
|
|
1522
|
+
var _message = "Waiting for approval of " + (currentStep == null ? void 0 : currentStep.fromSymbol) + " coin " + (sourceWallet.walletType === WalletType.WALLET_CONNECT ? 'on your mobile phone' : '');
|
|
1517
1523
|
var _updateResult = updateSwapStatus({
|
|
1518
1524
|
getStorage: getStorage,
|
|
1519
1525
|
setStorage: setStorage,
|
|
@@ -1559,7 +1565,7 @@ function singTransaction(actions) {
|
|
|
1559
1565
|
return;
|
|
1560
1566
|
} else if (!!starknetApprovalTransaction) {
|
|
1561
1567
|
// Update swap status
|
|
1562
|
-
var _message2 = "
|
|
1568
|
+
var _message2 = "Waiting for approval of " + (currentStep == null ? void 0 : currentStep.fromSymbol) + " coin " + (sourceWallet.walletType === WalletType.WALLET_CONNECT ? 'on your mobile phone' : '');
|
|
1563
1569
|
var _updateResult2 = updateSwapStatus({
|
|
1564
1570
|
getStorage: getStorage,
|
|
1565
1571
|
setStorage: setStorage,
|