@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/package.json
CHANGED
package/src/configs.ts
CHANGED
|
@@ -4,6 +4,7 @@ export interface Configs {
|
|
|
4
4
|
|
|
5
5
|
// this API key is limited and
|
|
6
6
|
// it is only for test purpose
|
|
7
|
+
|
|
7
8
|
const RANGO_PUBLIC_API_KEY = 'c6381a79-2817-4602-83bf-6a641a409e32';
|
|
8
9
|
|
|
9
10
|
let configs: Configs = {
|
|
@@ -21,6 +22,12 @@ export function setConfig(name: keyof Configs, value: any) {
|
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
export function initConfig(nextConfigs: Configs) {
|
|
24
|
-
|
|
25
|
+
let clonedConfigs;
|
|
26
|
+
if (typeof structuredClone === 'function') {
|
|
27
|
+
clonedConfigs = structuredClone(nextConfigs);
|
|
28
|
+
} else {
|
|
29
|
+
clonedConfigs = JSON.parse(JSON.stringify(nextConfigs));
|
|
30
|
+
}
|
|
31
|
+
configs = clonedConfigs;
|
|
25
32
|
return configs;
|
|
26
33
|
}
|
package/src/helpers.ts
CHANGED
|
@@ -847,7 +847,7 @@ export function singTransaction(
|
|
|
847
847
|
);
|
|
848
848
|
|
|
849
849
|
// Update swap status
|
|
850
|
-
const message = `
|
|
850
|
+
const message = `Waiting for approval of ${currentStep?.fromSymbol} coin ${
|
|
851
851
|
sourceWallet.walletType === WalletType.WALLET_CONNECT
|
|
852
852
|
? 'on your mobile phone'
|
|
853
853
|
: ''
|
|
@@ -929,7 +929,7 @@ export function singTransaction(
|
|
|
929
929
|
return;
|
|
930
930
|
} else if (!!tronApprovalTransaction) {
|
|
931
931
|
// Update swap status
|
|
932
|
-
const message = `
|
|
932
|
+
const message = `Waiting for approval of ${currentStep?.fromSymbol} coin ${
|
|
933
933
|
sourceWallet.walletType === WalletType.WALLET_CONNECT
|
|
934
934
|
? 'on your mobile phone'
|
|
935
935
|
: ''
|
|
@@ -1007,7 +1007,7 @@ export function singTransaction(
|
|
|
1007
1007
|
return;
|
|
1008
1008
|
} else if (!!starknetApprovalTransaction) {
|
|
1009
1009
|
// Update swap status
|
|
1010
|
-
const message = `
|
|
1010
|
+
const message = `Waiting for approval of ${currentStep?.fromSymbol} coin ${
|
|
1011
1011
|
sourceWallet.walletType === WalletType.WALLET_CONNECT
|
|
1012
1012
|
? 'on your mobile phone'
|
|
1013
1013
|
: ''
|