@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
package/dist/configs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configs.d.ts","sourceRoot":"","sources":["src/configs.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,MAAM,CAAC;CACjB;
|
|
1
|
+
{"version":3,"file":"configs.d.ts","sourceRoot":"","sources":["src/configs.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,MAAM,CAAC;CACjB;AAWD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,OAAO,UAE5C;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,OAAO,EAAE,KAAK,EAAE,GAAG,OAIxD;AAED,wBAAgB,UAAU,CAAC,WAAW,EAAE,OAAO,WAS9C"}
|
|
@@ -25,7 +25,13 @@ function getConfig(name) {
|
|
|
25
25
|
return configs[name];
|
|
26
26
|
}
|
|
27
27
|
function initConfig(nextConfigs) {
|
|
28
|
-
|
|
28
|
+
var clonedConfigs;
|
|
29
|
+
if (typeof structuredClone === 'function') {
|
|
30
|
+
clonedConfigs = structuredClone(nextConfigs);
|
|
31
|
+
} else {
|
|
32
|
+
clonedConfigs = JSON.parse(JSON.stringify(nextConfigs));
|
|
33
|
+
}
|
|
34
|
+
configs = clonedConfigs;
|
|
29
35
|
return configs;
|
|
30
36
|
}
|
|
31
37
|
|
|
@@ -1471,7 +1477,7 @@ function singTransaction(actions) {
|
|
|
1471
1477
|
var spenderContract = evmApprovalTransaction == null ? void 0 : evmApprovalTransaction.to;
|
|
1472
1478
|
if (!spenderContract) throw PrettyError.AssertionFailed('contract address is null for checking approval');
|
|
1473
1479
|
// Update swap status
|
|
1474
|
-
var message = "
|
|
1480
|
+
var message = "Waiting for approval of " + (currentStep == null ? void 0 : currentStep.fromSymbol) + " coin " + (sourceWallet.walletType === walletsShared.WalletType.WALLET_CONNECT ? 'on your mobile phone' : '');
|
|
1475
1481
|
var updateResult = updateSwapStatus({
|
|
1476
1482
|
getStorage: getStorage,
|
|
1477
1483
|
setStorage: setStorage,
|
|
@@ -1517,7 +1523,7 @@ function singTransaction(actions) {
|
|
|
1517
1523
|
return;
|
|
1518
1524
|
} else if (!!tronApprovalTransaction) {
|
|
1519
1525
|
// Update swap status
|
|
1520
|
-
var _message = "
|
|
1526
|
+
var _message = "Waiting for approval of " + (currentStep == null ? void 0 : currentStep.fromSymbol) + " coin " + (sourceWallet.walletType === walletsShared.WalletType.WALLET_CONNECT ? 'on your mobile phone' : '');
|
|
1521
1527
|
var _updateResult = updateSwapStatus({
|
|
1522
1528
|
getStorage: getStorage,
|
|
1523
1529
|
setStorage: setStorage,
|
|
@@ -1563,7 +1569,7 @@ function singTransaction(actions) {
|
|
|
1563
1569
|
return;
|
|
1564
1570
|
} else if (!!starknetApprovalTransaction) {
|
|
1565
1571
|
// Update swap status
|
|
1566
|
-
var _message2 = "
|
|
1572
|
+
var _message2 = "Waiting for approval of " + (currentStep == null ? void 0 : currentStep.fromSymbol) + " coin " + (sourceWallet.walletType === walletsShared.WalletType.WALLET_CONNECT ? 'on your mobile phone' : '');
|
|
1567
1573
|
var _updateResult2 = updateSwapStatus({
|
|
1568
1574
|
getStorage: getStorage,
|
|
1569
1575
|
setStorage: setStorage,
|