@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/queue-manager-rango-preset",
3
- "version": "0.1.11-next.4",
3
+ "version": "0.1.11-next.7",
4
4
  "license": "MIT",
5
5
  "module": "dist/queue-manager-rango-preset.esm.js",
6
6
  "main": "dist/index.js",
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
- configs = structuredClone(nextConfigs);
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 = `waiting for approval of ${currentStep?.fromSymbol} coin ${
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 = `waiting for approval of ${currentStep?.fromSymbol} coin ${
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 = `waiting for approval of ${currentStep?.fromSymbol} coin ${
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
  : ''