@toruslabs/ethereum-controllers 5.2.8 → 5.2.10

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.
@@ -6,7 +6,7 @@ export interface CoinGeckoResponse {
6
6
  [currency: string]: number;
7
7
  };
8
8
  }
9
- type ContractExchangeRates = Record<string, number | undefined>;
9
+ export type ContractExchangeRates = Record<string, number | undefined>;
10
10
  export declare const DEFAULT_CURRENCY = "eth";
11
11
  export interface ITokenRatesControllerState extends BaseState {
12
12
  contractExchangeRates: ContractExchangeRates;
@@ -39,4 +39,3 @@ export declare class TokenRatesController extends BaseController<ITokenRatesCont
39
39
  updateExchangeRates(): Promise<void>;
40
40
  private fetchExchangeRates;
41
41
  }
42
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toruslabs/ethereum-controllers",
3
- "version": "5.2.8",
3
+ "version": "5.2.10",
4
4
  "homepage": "https://github.com/torusresearch/controllers#readme",
5
5
  "license": "ISC",
6
6
  "main": "dist/ethereumControllers.cjs.js",
@@ -24,7 +24,7 @@
24
24
  "@ethereumjs/util": "^9.0.1",
25
25
  "@metamask/eth-sig-util": "^7.0.1",
26
26
  "@metamask/rpc-errors": "^6.1.0",
27
- "@toruslabs/base-controllers": "^5.2.6",
27
+ "@toruslabs/base-controllers": "^5.2.10",
28
28
  "@toruslabs/http-helpers": "^6.0.0",
29
29
  "@toruslabs/openlogin-jrpc": "^6.2.1",
30
30
  "async-mutex": "^0.4.0",
@@ -64,7 +64,7 @@
64
64
  "publishConfig": {
65
65
  "access": "public"
66
66
  },
67
- "gitHead": "e84184f22d164f598cf558e5dc94cb661757d966",
67
+ "gitHead": "c170b92cf147ac486d580bd603e3c606fc2fdf3d",
68
68
  "devDependencies": {
69
69
  "@nomicfoundation/hardhat-toolbox": "^4.0.0",
70
70
  "hardhat": "^2.19.4"
@@ -69,9 +69,11 @@ class AccountTrackerController
69
69
  this.getCurrentChainId = getCurrentChainId;
70
70
 
71
71
  onPreferencesStateChange(() => {
72
- log.info("onPreferencesStateChange called");
73
72
  const refreshNeeded = this.syncAccounts();
74
- if (refreshNeeded) this.refresh();
73
+ if (refreshNeeded) {
74
+ log.info("onPreferencesStateChange called");
75
+ this.refresh();
76
+ }
75
77
  });
76
78
  this.blockTrackerListener = this.blockTrackerListener.bind(this);
77
79
  }
@@ -13,7 +13,7 @@ export interface CoinGeckoResponse {
13
13
  };
14
14
  }
15
15
 
16
- type ContractExchangeRates = Record<string, number | undefined>;
16
+ export type ContractExchangeRates = Record<string, number | undefined>;
17
17
 
18
18
  export const DEFAULT_CURRENCY = "eth";
19
19