@metamask-previews/assets-controllers 103.1.0-preview-3d4e0a05f → 103.1.0-preview-ce9be8b82

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.
@@ -3,7 +3,7 @@ import type { AccountTreeControllerState } from "@metamask/account-tree-controll
3
3
  import type { AccountsControllerState } from "@metamask/accounts-controller";
4
4
  import type { InternalAccount } from "@metamask/keyring-internal-api";
5
5
  import type { NetworkState } from "@metamask/network-controller";
6
- import type { CaipAssetType, CaipChainId, Hex } from "@metamask/utils";
6
+ import type { Hex } from "@metamask/utils";
7
7
  import { weakMapMemoize } from "reselect";
8
8
  import { TokenRwaData } from "src/token-service";
9
9
  import type { CurrencyRateState } from "../CurrencyRateController.cjs";
@@ -11,7 +11,7 @@ import type { MultichainAssetsControllerState } from "../MultichainAssetsControl
11
11
  import type { MultichainAssetsRatesControllerState } from "../MultichainAssetsRatesController/index.cjs";
12
12
  import type { MultichainBalancesControllerState } from "../MultichainBalancesController/index.cjs";
13
13
  import type { TokenBalancesControllerState } from "../TokenBalancesController.cjs";
14
- import type { TokenRatesControllerState } from "../TokenRatesController.cjs";
14
+ import type { Token, TokenRatesControllerState } from "../TokenRatesController.cjs";
15
15
  import type { TokensControllerState } from "../TokensController.cjs";
16
16
  export declare const TRON_RESOURCE: {
17
17
  readonly ENERGY: "energy";
@@ -37,14 +37,13 @@ type EvmAccountType = Extract<InternalAccount['type'], `eip155:${string}`>;
37
37
  type MultichainAccountType = Exclude<InternalAccount['type'], `eip155:${string}`>;
38
38
  export type Asset = ({
39
39
  accountType: EvmAccountType;
40
- assetId: CaipAssetType;
40
+ assetId: Hex;
41
41
  address: Hex;
42
42
  chainId: Hex;
43
43
  } | {
44
44
  accountType: MultichainAccountType;
45
- assetId: CaipAssetType;
46
- address: CaipAssetType;
47
- chainId: CaipChainId;
45
+ assetId: `${string}:${string}/${string}:${string}`;
46
+ chainId: `${string}:${string}`;
48
47
  }) & {
49
48
  accountId: string;
50
49
  image: string;
@@ -81,7 +80,726 @@ export type AssetListState = {
81
80
  balance: Hex | null;
82
81
  }>>;
83
82
  };
84
- export declare const selectAllAssets: (state: AssetListState) => AssetsByAccountGroup;
83
+ export declare const selectAllAssets: ((state: AssetListState) => AssetsByAccountGroup) & {
84
+ clearCache: () => void;
85
+ resultsCount: () => number;
86
+ resetResultsCount: () => void;
87
+ } & {
88
+ resultFunc: (resultFuncArgs_0: AssetsByAccountGroup, resultFuncArgs_1: AssetsByAccountGroup, resultFuncArgs_2: AssetsByAccountGroup) => AssetsByAccountGroup;
89
+ memoizedResultFunc: ((resultFuncArgs_0: AssetsByAccountGroup, resultFuncArgs_1: AssetsByAccountGroup, resultFuncArgs_2: AssetsByAccountGroup) => AssetsByAccountGroup) & {
90
+ clearCache: () => void;
91
+ resultsCount: () => number;
92
+ resetResultsCount: () => void;
93
+ };
94
+ lastResult: () => AssetsByAccountGroup;
95
+ dependencies: [((state: AssetListState) => AssetsByAccountGroup) & {
96
+ clearCache: () => void;
97
+ resultsCount: () => number;
98
+ resetResultsCount: () => void;
99
+ } & {
100
+ resultFunc: (resultFuncArgs_0: Record<string, {
101
+ accountGroupId: AccountGroupId;
102
+ type: InternalAccount['type'];
103
+ accountId: string;
104
+ }>, resultFuncArgs_1: {
105
+ [chainId: `0x${string}`]: {
106
+ [key: string]: Token[];
107
+ };
108
+ }, resultFuncArgs_2: {
109
+ [chainId: `0x${string}`]: {
110
+ [key: string]: string[];
111
+ };
112
+ }, resultFuncArgs_3: import("../TokenBalancesController.cjs").TokenBalances, resultFuncArgs_4: Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.cjs").MarketDataDetails>>, resultFuncArgs_5: Record<string, {
113
+ conversionDate: number | null;
114
+ conversionRate: number | null;
115
+ usdConversionRate: number | null;
116
+ }>, resultFuncArgs_6: string) => AssetsByAccountGroup;
117
+ memoizedResultFunc: ((resultFuncArgs_0: Record<string, {
118
+ accountGroupId: AccountGroupId;
119
+ type: InternalAccount['type'];
120
+ accountId: string;
121
+ }>, resultFuncArgs_1: {
122
+ [chainId: `0x${string}`]: {
123
+ [key: string]: Token[];
124
+ };
125
+ }, resultFuncArgs_2: {
126
+ [chainId: `0x${string}`]: {
127
+ [key: string]: string[];
128
+ };
129
+ }, resultFuncArgs_3: import("../TokenBalancesController.cjs").TokenBalances, resultFuncArgs_4: Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.cjs").MarketDataDetails>>, resultFuncArgs_5: Record<string, {
130
+ conversionDate: number | null;
131
+ conversionRate: number | null;
132
+ usdConversionRate: number | null;
133
+ }>, resultFuncArgs_6: string) => AssetsByAccountGroup) & {
134
+ clearCache: () => void;
135
+ resultsCount: () => number;
136
+ resetResultsCount: () => void;
137
+ };
138
+ lastResult: () => AssetsByAccountGroup;
139
+ dependencies: [((state: AssetListState) => Record<string, {
140
+ accountGroupId: AccountGroupId;
141
+ type: InternalAccount['type'];
142
+ accountId: string;
143
+ }>) & {
144
+ clearCache: () => void;
145
+ resultsCount: () => number;
146
+ resetResultsCount: () => void;
147
+ } & {
148
+ resultFunc: (resultFuncArgs_0: {
149
+ wallets: {
150
+ [walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
151
+ [walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
152
+ [walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
153
+ };
154
+ }, resultFuncArgs_1: {
155
+ accounts: Record<string, {
156
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
157
+ id: string;
158
+ options: Record<string, import("@metamask/utils").Json> & {
159
+ entropy?: {
160
+ type: "mnemonic";
161
+ id: string;
162
+ derivationPath: string;
163
+ groupIndex: number;
164
+ } | {
165
+ type: "private-key";
166
+ } | {
167
+ type: "custom";
168
+ } | undefined;
169
+ exportable?: boolean | undefined;
170
+ };
171
+ metadata: {
172
+ name: string;
173
+ importTime: number;
174
+ keyring: {
175
+ type: string;
176
+ };
177
+ snap?: {
178
+ name: string;
179
+ id: string;
180
+ enabled: boolean;
181
+ } | undefined;
182
+ nameLastUpdatedAt?: number | undefined;
183
+ lastSelected?: number | undefined;
184
+ };
185
+ address: string;
186
+ scopes: `${string}:${string}`[];
187
+ methods: string[];
188
+ }>;
189
+ selectedAccount: string;
190
+ }) => Record<string, {
191
+ accountGroupId: AccountGroupId;
192
+ type: InternalAccount['type'];
193
+ accountId: string;
194
+ }>;
195
+ memoizedResultFunc: ((resultFuncArgs_0: {
196
+ wallets: {
197
+ [walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
198
+ [walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
199
+ [walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
200
+ };
201
+ }, resultFuncArgs_1: {
202
+ accounts: Record<string, {
203
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
204
+ id: string;
205
+ options: Record<string, import("@metamask/utils").Json> & {
206
+ entropy?: {
207
+ type: "mnemonic";
208
+ id: string;
209
+ derivationPath: string;
210
+ groupIndex: number;
211
+ } | {
212
+ type: "private-key";
213
+ } | {
214
+ type: "custom";
215
+ } | undefined;
216
+ exportable?: boolean | undefined;
217
+ };
218
+ metadata: {
219
+ name: string;
220
+ importTime: number;
221
+ keyring: {
222
+ type: string;
223
+ };
224
+ snap?: {
225
+ name: string;
226
+ id: string;
227
+ enabled: boolean;
228
+ } | undefined;
229
+ nameLastUpdatedAt?: number | undefined;
230
+ lastSelected?: number | undefined;
231
+ };
232
+ address: string;
233
+ scopes: `${string}:${string}`[];
234
+ methods: string[];
235
+ }>;
236
+ selectedAccount: string;
237
+ }) => Record<string, {
238
+ accountGroupId: AccountGroupId;
239
+ type: InternalAccount['type'];
240
+ accountId: string;
241
+ }>) & {
242
+ clearCache: () => void;
243
+ resultsCount: () => number;
244
+ resetResultsCount: () => void;
245
+ };
246
+ lastResult: () => Record<string, {
247
+ accountGroupId: AccountGroupId;
248
+ type: InternalAccount['type'];
249
+ accountId: string;
250
+ }>;
251
+ dependencies: [(state: AssetListState) => {
252
+ wallets: {
253
+ [walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
254
+ [walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
255
+ [walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
256
+ };
257
+ }, (state: AssetListState) => {
258
+ accounts: Record<string, {
259
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
260
+ id: string;
261
+ options: Record<string, import("@metamask/utils").Json> & {
262
+ entropy?: {
263
+ type: "mnemonic";
264
+ id: string;
265
+ derivationPath: string;
266
+ groupIndex: number;
267
+ } | {
268
+ type: "private-key";
269
+ } | {
270
+ type: "custom";
271
+ } | undefined;
272
+ exportable?: boolean | undefined;
273
+ };
274
+ metadata: {
275
+ name: string;
276
+ importTime: number;
277
+ keyring: {
278
+ type: string;
279
+ };
280
+ snap?: {
281
+ name: string;
282
+ id: string;
283
+ enabled: boolean;
284
+ } | undefined;
285
+ nameLastUpdatedAt?: number | undefined;
286
+ lastSelected?: number | undefined;
287
+ };
288
+ address: string;
289
+ scopes: `${string}:${string}`[];
290
+ methods: string[];
291
+ }>;
292
+ selectedAccount: string;
293
+ }];
294
+ recomputations: () => number;
295
+ resetRecomputations: () => void;
296
+ dependencyRecomputations: () => number;
297
+ resetDependencyRecomputations: () => void;
298
+ } & {
299
+ memoize: typeof weakMapMemoize;
300
+ argsMemoize: typeof weakMapMemoize;
301
+ }, (state: AssetListState) => {
302
+ [chainId: `0x${string}`]: {
303
+ [key: string]: Token[];
304
+ };
305
+ }, (state: AssetListState) => {
306
+ [chainId: `0x${string}`]: {
307
+ [key: string]: string[];
308
+ };
309
+ }, (state: AssetListState) => import("../TokenBalancesController.cjs").TokenBalances, (state: AssetListState) => Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.cjs").MarketDataDetails>>, (state: AssetListState) => Record<string, {
310
+ conversionDate: number | null;
311
+ conversionRate: number | null;
312
+ usdConversionRate: number | null;
313
+ }>, (state: AssetListState) => string];
314
+ recomputations: () => number;
315
+ resetRecomputations: () => void;
316
+ dependencyRecomputations: () => number;
317
+ resetDependencyRecomputations: () => void;
318
+ } & {
319
+ memoize: typeof weakMapMemoize;
320
+ argsMemoize: typeof weakMapMemoize;
321
+ }, ((state: AssetListState) => AssetsByAccountGroup) & {
322
+ clearCache: () => void;
323
+ resultsCount: () => number;
324
+ resetResultsCount: () => void;
325
+ } & {
326
+ resultFunc: (resultFuncArgs_0: Record<string, {
327
+ accountGroupId: AccountGroupId;
328
+ type: InternalAccount['type'];
329
+ accountId: string;
330
+ }>, resultFuncArgs_1: {
331
+ [account: string]: `${string}:${string}/${string}:${string}`[];
332
+ }, resultFuncArgs_2: {
333
+ [account: string]: `${string}:${string}/${string}:${string}`[];
334
+ }, resultFuncArgs_3: {
335
+ [asset: `${string}:${string}/${string}:${string}`]: {
336
+ fungible: true;
337
+ iconUrl: string;
338
+ units: {
339
+ decimals: number;
340
+ symbol?: string | undefined;
341
+ name?: string | undefined;
342
+ }[];
343
+ symbol?: string | undefined;
344
+ name?: string | undefined;
345
+ };
346
+ }, resultFuncArgs_4: {
347
+ [account: string]: {
348
+ [asset: string]: {
349
+ amount: string;
350
+ unit: string;
351
+ };
352
+ };
353
+ }, resultFuncArgs_5: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
354
+ marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
355
+ }>, resultFuncArgs_6: string) => AssetsByAccountGroup;
356
+ memoizedResultFunc: ((resultFuncArgs_0: Record<string, {
357
+ accountGroupId: AccountGroupId;
358
+ type: InternalAccount['type'];
359
+ accountId: string;
360
+ }>, resultFuncArgs_1: {
361
+ [account: string]: `${string}:${string}/${string}:${string}`[];
362
+ }, resultFuncArgs_2: {
363
+ [account: string]: `${string}:${string}/${string}:${string}`[];
364
+ }, resultFuncArgs_3: {
365
+ [asset: `${string}:${string}/${string}:${string}`]: {
366
+ fungible: true;
367
+ iconUrl: string;
368
+ units: {
369
+ decimals: number;
370
+ symbol?: string | undefined;
371
+ name?: string | undefined;
372
+ }[];
373
+ symbol?: string | undefined;
374
+ name?: string | undefined;
375
+ };
376
+ }, resultFuncArgs_4: {
377
+ [account: string]: {
378
+ [asset: string]: {
379
+ amount: string;
380
+ unit: string;
381
+ };
382
+ };
383
+ }, resultFuncArgs_5: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
384
+ marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
385
+ }>, resultFuncArgs_6: string) => AssetsByAccountGroup) & {
386
+ clearCache: () => void;
387
+ resultsCount: () => number;
388
+ resetResultsCount: () => void;
389
+ };
390
+ lastResult: () => AssetsByAccountGroup;
391
+ dependencies: [((state: AssetListState) => Record<string, {
392
+ accountGroupId: AccountGroupId;
393
+ type: InternalAccount['type'];
394
+ accountId: string;
395
+ }>) & {
396
+ clearCache: () => void;
397
+ resultsCount: () => number;
398
+ resetResultsCount: () => void;
399
+ } & {
400
+ resultFunc: (resultFuncArgs_0: {
401
+ wallets: {
402
+ [walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
403
+ [walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
404
+ [walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
405
+ };
406
+ }, resultFuncArgs_1: {
407
+ accounts: Record<string, {
408
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
409
+ id: string;
410
+ options: Record<string, import("@metamask/utils").Json> & {
411
+ entropy?: {
412
+ type: "mnemonic";
413
+ id: string;
414
+ derivationPath: string;
415
+ groupIndex: number;
416
+ } | {
417
+ type: "private-key";
418
+ } | {
419
+ type: "custom";
420
+ } | undefined;
421
+ exportable?: boolean | undefined;
422
+ };
423
+ metadata: {
424
+ name: string;
425
+ importTime: number;
426
+ keyring: {
427
+ type: string;
428
+ };
429
+ snap?: {
430
+ name: string;
431
+ id: string;
432
+ enabled: boolean;
433
+ } | undefined;
434
+ nameLastUpdatedAt?: number | undefined;
435
+ lastSelected?: number | undefined;
436
+ };
437
+ address: string;
438
+ scopes: `${string}:${string}`[];
439
+ methods: string[];
440
+ }>;
441
+ selectedAccount: string;
442
+ }) => Record<string, {
443
+ accountGroupId: AccountGroupId;
444
+ type: InternalAccount['type'];
445
+ accountId: string;
446
+ }>;
447
+ memoizedResultFunc: ((resultFuncArgs_0: {
448
+ wallets: {
449
+ [walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
450
+ [walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
451
+ [walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
452
+ };
453
+ }, resultFuncArgs_1: {
454
+ accounts: Record<string, {
455
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
456
+ id: string;
457
+ options: Record<string, import("@metamask/utils").Json> & {
458
+ entropy?: {
459
+ type: "mnemonic";
460
+ id: string;
461
+ derivationPath: string;
462
+ groupIndex: number;
463
+ } | {
464
+ type: "private-key";
465
+ } | {
466
+ type: "custom";
467
+ } | undefined;
468
+ exportable?: boolean | undefined;
469
+ };
470
+ metadata: {
471
+ name: string;
472
+ importTime: number;
473
+ keyring: {
474
+ type: string;
475
+ };
476
+ snap?: {
477
+ name: string;
478
+ id: string;
479
+ enabled: boolean;
480
+ } | undefined;
481
+ nameLastUpdatedAt?: number | undefined;
482
+ lastSelected?: number | undefined;
483
+ };
484
+ address: string;
485
+ scopes: `${string}:${string}`[];
486
+ methods: string[];
487
+ }>;
488
+ selectedAccount: string;
489
+ }) => Record<string, {
490
+ accountGroupId: AccountGroupId;
491
+ type: InternalAccount['type'];
492
+ accountId: string;
493
+ }>) & {
494
+ clearCache: () => void;
495
+ resultsCount: () => number;
496
+ resetResultsCount: () => void;
497
+ };
498
+ lastResult: () => Record<string, {
499
+ accountGroupId: AccountGroupId;
500
+ type: InternalAccount['type'];
501
+ accountId: string;
502
+ }>;
503
+ dependencies: [(state: AssetListState) => {
504
+ wallets: {
505
+ [walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
506
+ [walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
507
+ [walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
508
+ };
509
+ }, (state: AssetListState) => {
510
+ accounts: Record<string, {
511
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
512
+ id: string;
513
+ options: Record<string, import("@metamask/utils").Json> & {
514
+ entropy?: {
515
+ type: "mnemonic";
516
+ id: string;
517
+ derivationPath: string;
518
+ groupIndex: number;
519
+ } | {
520
+ type: "private-key";
521
+ } | {
522
+ type: "custom";
523
+ } | undefined;
524
+ exportable?: boolean | undefined;
525
+ };
526
+ metadata: {
527
+ name: string;
528
+ importTime: number;
529
+ keyring: {
530
+ type: string;
531
+ };
532
+ snap?: {
533
+ name: string;
534
+ id: string;
535
+ enabled: boolean;
536
+ } | undefined;
537
+ nameLastUpdatedAt?: number | undefined;
538
+ lastSelected?: number | undefined;
539
+ };
540
+ address: string;
541
+ scopes: `${string}:${string}`[];
542
+ methods: string[];
543
+ }>;
544
+ selectedAccount: string;
545
+ }];
546
+ recomputations: () => number;
547
+ resetRecomputations: () => void;
548
+ dependencyRecomputations: () => number;
549
+ resetDependencyRecomputations: () => void;
550
+ } & {
551
+ memoize: typeof weakMapMemoize;
552
+ argsMemoize: typeof weakMapMemoize;
553
+ }, (state: AssetListState) => {
554
+ [account: string]: `${string}:${string}/${string}:${string}`[];
555
+ }, (state: AssetListState) => {
556
+ [account: string]: `${string}:${string}/${string}:${string}`[];
557
+ }, (state: AssetListState) => {
558
+ [asset: `${string}:${string}/${string}:${string}`]: {
559
+ fungible: true;
560
+ iconUrl: string;
561
+ units: {
562
+ decimals: number;
563
+ symbol?: string | undefined;
564
+ name?: string | undefined;
565
+ }[];
566
+ symbol?: string | undefined;
567
+ name?: string | undefined;
568
+ };
569
+ }, (state: AssetListState) => {
570
+ [account: string]: {
571
+ [asset: string]: {
572
+ amount: string;
573
+ unit: string;
574
+ };
575
+ };
576
+ }, (state: AssetListState) => Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
577
+ marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
578
+ }>, (state: AssetListState) => string];
579
+ recomputations: () => number;
580
+ resetRecomputations: () => void;
581
+ dependencyRecomputations: () => number;
582
+ resetDependencyRecomputations: () => void;
583
+ } & {
584
+ memoize: typeof weakMapMemoize;
585
+ argsMemoize: typeof weakMapMemoize;
586
+ }, ((state: AssetListState) => AssetsByAccountGroup) & {
587
+ clearCache: () => void;
588
+ resultsCount: () => number;
589
+ resetResultsCount: () => void;
590
+ } & {
591
+ resultFunc: (resultFuncArgs_0: Record<string, {
592
+ accountGroupId: AccountGroupId;
593
+ type: InternalAccount['type'];
594
+ accountId: string;
595
+ }>, resultFuncArgs_1: Record<`0x${string}`, Record<`0x${string}`, {
596
+ balance: Hex | null;
597
+ }>>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.cjs").MarketDataDetails>>, resultFuncArgs_3: Record<string, {
598
+ conversionDate: number | null;
599
+ conversionRate: number | null;
600
+ usdConversionRate: number | null;
601
+ }>, resultFuncArgs_4: string, resultFuncArgs_5: Record<`0x${string}`, import("@metamask/network-controller").NetworkConfiguration>) => AssetsByAccountGroup;
602
+ memoizedResultFunc: ((resultFuncArgs_0: Record<string, {
603
+ accountGroupId: AccountGroupId;
604
+ type: InternalAccount['type'];
605
+ accountId: string;
606
+ }>, resultFuncArgs_1: Record<`0x${string}`, Record<`0x${string}`, {
607
+ balance: Hex | null;
608
+ }>>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.cjs").MarketDataDetails>>, resultFuncArgs_3: Record<string, {
609
+ conversionDate: number | null;
610
+ conversionRate: number | null;
611
+ usdConversionRate: number | null;
612
+ }>, resultFuncArgs_4: string, resultFuncArgs_5: Record<`0x${string}`, import("@metamask/network-controller").NetworkConfiguration>) => AssetsByAccountGroup) & {
613
+ clearCache: () => void;
614
+ resultsCount: () => number;
615
+ resetResultsCount: () => void;
616
+ };
617
+ lastResult: () => AssetsByAccountGroup;
618
+ dependencies: [((state: AssetListState) => Record<string, {
619
+ accountGroupId: AccountGroupId;
620
+ type: InternalAccount['type'];
621
+ accountId: string;
622
+ }>) & {
623
+ clearCache: () => void;
624
+ resultsCount: () => number;
625
+ resetResultsCount: () => void;
626
+ } & {
627
+ resultFunc: (resultFuncArgs_0: {
628
+ wallets: {
629
+ [walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
630
+ [walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
631
+ [walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
632
+ };
633
+ }, resultFuncArgs_1: {
634
+ accounts: Record<string, {
635
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
636
+ id: string;
637
+ options: Record<string, import("@metamask/utils").Json> & {
638
+ entropy?: {
639
+ type: "mnemonic";
640
+ id: string;
641
+ derivationPath: string;
642
+ groupIndex: number;
643
+ } | {
644
+ type: "private-key";
645
+ } | {
646
+ type: "custom";
647
+ } | undefined;
648
+ exportable?: boolean | undefined;
649
+ };
650
+ metadata: {
651
+ name: string;
652
+ importTime: number;
653
+ keyring: {
654
+ type: string;
655
+ };
656
+ snap?: {
657
+ name: string;
658
+ id: string;
659
+ enabled: boolean;
660
+ } | undefined;
661
+ nameLastUpdatedAt?: number | undefined;
662
+ lastSelected?: number | undefined;
663
+ };
664
+ address: string;
665
+ scopes: `${string}:${string}`[];
666
+ methods: string[];
667
+ }>;
668
+ selectedAccount: string;
669
+ }) => Record<string, {
670
+ accountGroupId: AccountGroupId;
671
+ type: InternalAccount['type'];
672
+ accountId: string;
673
+ }>;
674
+ memoizedResultFunc: ((resultFuncArgs_0: {
675
+ wallets: {
676
+ [walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
677
+ [walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
678
+ [walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
679
+ };
680
+ }, resultFuncArgs_1: {
681
+ accounts: Record<string, {
682
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
683
+ id: string;
684
+ options: Record<string, import("@metamask/utils").Json> & {
685
+ entropy?: {
686
+ type: "mnemonic";
687
+ id: string;
688
+ derivationPath: string;
689
+ groupIndex: number;
690
+ } | {
691
+ type: "private-key";
692
+ } | {
693
+ type: "custom";
694
+ } | undefined;
695
+ exportable?: boolean | undefined;
696
+ };
697
+ metadata: {
698
+ name: string;
699
+ importTime: number;
700
+ keyring: {
701
+ type: string;
702
+ };
703
+ snap?: {
704
+ name: string;
705
+ id: string;
706
+ enabled: boolean;
707
+ } | undefined;
708
+ nameLastUpdatedAt?: number | undefined;
709
+ lastSelected?: number | undefined;
710
+ };
711
+ address: string;
712
+ scopes: `${string}:${string}`[];
713
+ methods: string[];
714
+ }>;
715
+ selectedAccount: string;
716
+ }) => Record<string, {
717
+ accountGroupId: AccountGroupId;
718
+ type: InternalAccount['type'];
719
+ accountId: string;
720
+ }>) & {
721
+ clearCache: () => void;
722
+ resultsCount: () => number;
723
+ resetResultsCount: () => void;
724
+ };
725
+ lastResult: () => Record<string, {
726
+ accountGroupId: AccountGroupId;
727
+ type: InternalAccount['type'];
728
+ accountId: string;
729
+ }>;
730
+ dependencies: [(state: AssetListState) => {
731
+ wallets: {
732
+ [walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
733
+ [walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
734
+ [walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
735
+ };
736
+ }, (state: AssetListState) => {
737
+ accounts: Record<string, {
738
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
739
+ id: string;
740
+ options: Record<string, import("@metamask/utils").Json> & {
741
+ entropy?: {
742
+ type: "mnemonic";
743
+ id: string;
744
+ derivationPath: string;
745
+ groupIndex: number;
746
+ } | {
747
+ type: "private-key";
748
+ } | {
749
+ type: "custom";
750
+ } | undefined;
751
+ exportable?: boolean | undefined;
752
+ };
753
+ metadata: {
754
+ name: string;
755
+ importTime: number;
756
+ keyring: {
757
+ type: string;
758
+ };
759
+ snap?: {
760
+ name: string;
761
+ id: string;
762
+ enabled: boolean;
763
+ } | undefined;
764
+ nameLastUpdatedAt?: number | undefined;
765
+ lastSelected?: number | undefined;
766
+ };
767
+ address: string;
768
+ scopes: `${string}:${string}`[];
769
+ methods: string[];
770
+ }>;
771
+ selectedAccount: string;
772
+ }];
773
+ recomputations: () => number;
774
+ resetRecomputations: () => void;
775
+ dependencyRecomputations: () => number;
776
+ resetDependencyRecomputations: () => void;
777
+ } & {
778
+ memoize: typeof weakMapMemoize;
779
+ argsMemoize: typeof weakMapMemoize;
780
+ }, (state: AssetListState) => Record<`0x${string}`, Record<`0x${string}`, {
781
+ balance: Hex | null;
782
+ }>>, (state: AssetListState) => Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.cjs").MarketDataDetails>>, (state: AssetListState) => Record<string, {
783
+ conversionDate: number | null;
784
+ conversionRate: number | null;
785
+ usdConversionRate: number | null;
786
+ }>, (state: AssetListState) => string, (state: AssetListState) => Record<`0x${string}`, import("@metamask/network-controller").NetworkConfiguration>];
787
+ recomputations: () => number;
788
+ resetRecomputations: () => void;
789
+ dependencyRecomputations: () => number;
790
+ resetDependencyRecomputations: () => void;
791
+ } & {
792
+ memoize: typeof weakMapMemoize;
793
+ argsMemoize: typeof weakMapMemoize;
794
+ }];
795
+ recomputations: () => number;
796
+ resetRecomputations: () => void;
797
+ dependencyRecomputations: () => number;
798
+ resetDependencyRecomputations: () => void;
799
+ } & {
800
+ memoize: typeof weakMapMemoize;
801
+ argsMemoize: typeof weakMapMemoize;
802
+ };
85
803
  export type SelectAccountGroupAssetOpts = {
86
804
  filterTronStakedTokens: boolean;
87
805
  };
@@ -97,7 +815,726 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
97
815
  resetResultsCount: () => void;
98
816
  };
99
817
  lastResult: () => AccountGroupAssets;
100
- dependencies: [(state: AssetListState) => AssetsByAccountGroup, (state: AssetListState) => AssetListState['selectedAccountGroup'], (_state: AssetListState, opts?: SelectAccountGroupAssetOpts) => SelectAccountGroupAssetOpts];
818
+ dependencies: [((state: AssetListState) => AssetsByAccountGroup) & {
819
+ clearCache: () => void;
820
+ resultsCount: () => number;
821
+ resetResultsCount: () => void;
822
+ } & {
823
+ resultFunc: (resultFuncArgs_0: AssetsByAccountGroup, resultFuncArgs_1: AssetsByAccountGroup, resultFuncArgs_2: AssetsByAccountGroup) => AssetsByAccountGroup;
824
+ memoizedResultFunc: ((resultFuncArgs_0: AssetsByAccountGroup, resultFuncArgs_1: AssetsByAccountGroup, resultFuncArgs_2: AssetsByAccountGroup) => AssetsByAccountGroup) & {
825
+ clearCache: () => void;
826
+ resultsCount: () => number;
827
+ resetResultsCount: () => void;
828
+ };
829
+ lastResult: () => AssetsByAccountGroup;
830
+ dependencies: [((state: AssetListState) => AssetsByAccountGroup) & {
831
+ clearCache: () => void;
832
+ resultsCount: () => number;
833
+ resetResultsCount: () => void;
834
+ } & {
835
+ resultFunc: (resultFuncArgs_0: Record<string, {
836
+ accountGroupId: AccountGroupId;
837
+ type: InternalAccount['type'];
838
+ accountId: string;
839
+ }>, resultFuncArgs_1: {
840
+ [chainId: `0x${string}`]: {
841
+ [key: string]: Token[];
842
+ };
843
+ }, resultFuncArgs_2: {
844
+ [chainId: `0x${string}`]: {
845
+ [key: string]: string[];
846
+ };
847
+ }, resultFuncArgs_3: import("../TokenBalancesController.cjs").TokenBalances, resultFuncArgs_4: Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.cjs").MarketDataDetails>>, resultFuncArgs_5: Record<string, {
848
+ conversionDate: number | null;
849
+ conversionRate: number | null;
850
+ usdConversionRate: number | null;
851
+ }>, resultFuncArgs_6: string) => AssetsByAccountGroup;
852
+ memoizedResultFunc: ((resultFuncArgs_0: Record<string, {
853
+ accountGroupId: AccountGroupId;
854
+ type: InternalAccount['type'];
855
+ accountId: string;
856
+ }>, resultFuncArgs_1: {
857
+ [chainId: `0x${string}`]: {
858
+ [key: string]: Token[];
859
+ };
860
+ }, resultFuncArgs_2: {
861
+ [chainId: `0x${string}`]: {
862
+ [key: string]: string[];
863
+ };
864
+ }, resultFuncArgs_3: import("../TokenBalancesController.cjs").TokenBalances, resultFuncArgs_4: Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.cjs").MarketDataDetails>>, resultFuncArgs_5: Record<string, {
865
+ conversionDate: number | null;
866
+ conversionRate: number | null;
867
+ usdConversionRate: number | null;
868
+ }>, resultFuncArgs_6: string) => AssetsByAccountGroup) & {
869
+ clearCache: () => void;
870
+ resultsCount: () => number;
871
+ resetResultsCount: () => void;
872
+ };
873
+ lastResult: () => AssetsByAccountGroup;
874
+ dependencies: [((state: AssetListState) => Record<string, {
875
+ accountGroupId: AccountGroupId;
876
+ type: InternalAccount['type'];
877
+ accountId: string;
878
+ }>) & {
879
+ clearCache: () => void;
880
+ resultsCount: () => number;
881
+ resetResultsCount: () => void;
882
+ } & {
883
+ resultFunc: (resultFuncArgs_0: {
884
+ wallets: {
885
+ [walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
886
+ [walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
887
+ [walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
888
+ };
889
+ }, resultFuncArgs_1: {
890
+ accounts: Record<string, {
891
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
892
+ id: string;
893
+ options: Record<string, import("@metamask/utils").Json> & {
894
+ entropy?: {
895
+ type: "mnemonic";
896
+ id: string;
897
+ derivationPath: string;
898
+ groupIndex: number;
899
+ } | {
900
+ type: "private-key";
901
+ } | {
902
+ type: "custom";
903
+ } | undefined;
904
+ exportable?: boolean | undefined;
905
+ };
906
+ metadata: {
907
+ name: string;
908
+ importTime: number;
909
+ keyring: {
910
+ type: string;
911
+ };
912
+ snap?: {
913
+ name: string;
914
+ id: string;
915
+ enabled: boolean;
916
+ } | undefined;
917
+ nameLastUpdatedAt?: number | undefined;
918
+ lastSelected?: number | undefined;
919
+ };
920
+ address: string;
921
+ scopes: `${string}:${string}`[];
922
+ methods: string[];
923
+ }>;
924
+ selectedAccount: string;
925
+ }) => Record<string, {
926
+ accountGroupId: AccountGroupId;
927
+ type: InternalAccount['type'];
928
+ accountId: string;
929
+ }>;
930
+ memoizedResultFunc: ((resultFuncArgs_0: {
931
+ wallets: {
932
+ [walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
933
+ [walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
934
+ [walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
935
+ };
936
+ }, resultFuncArgs_1: {
937
+ accounts: Record<string, {
938
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
939
+ id: string;
940
+ options: Record<string, import("@metamask/utils").Json> & {
941
+ entropy?: {
942
+ type: "mnemonic";
943
+ id: string;
944
+ derivationPath: string;
945
+ groupIndex: number;
946
+ } | {
947
+ type: "private-key";
948
+ } | {
949
+ type: "custom";
950
+ } | undefined;
951
+ exportable?: boolean | undefined;
952
+ };
953
+ metadata: {
954
+ name: string;
955
+ importTime: number;
956
+ keyring: {
957
+ type: string;
958
+ };
959
+ snap?: {
960
+ name: string;
961
+ id: string;
962
+ enabled: boolean;
963
+ } | undefined;
964
+ nameLastUpdatedAt?: number | undefined;
965
+ lastSelected?: number | undefined;
966
+ };
967
+ address: string;
968
+ scopes: `${string}:${string}`[];
969
+ methods: string[];
970
+ }>;
971
+ selectedAccount: string;
972
+ }) => Record<string, {
973
+ accountGroupId: AccountGroupId;
974
+ type: InternalAccount['type'];
975
+ accountId: string;
976
+ }>) & {
977
+ clearCache: () => void;
978
+ resultsCount: () => number;
979
+ resetResultsCount: () => void;
980
+ };
981
+ lastResult: () => Record<string, {
982
+ accountGroupId: AccountGroupId;
983
+ type: InternalAccount['type'];
984
+ accountId: string;
985
+ }>;
986
+ dependencies: [(state: AssetListState) => {
987
+ wallets: {
988
+ [walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
989
+ [walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
990
+ [walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
991
+ };
992
+ }, (state: AssetListState) => {
993
+ accounts: Record<string, {
994
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
995
+ id: string;
996
+ options: Record<string, import("@metamask/utils").Json> & {
997
+ entropy?: {
998
+ type: "mnemonic";
999
+ id: string;
1000
+ derivationPath: string;
1001
+ groupIndex: number;
1002
+ } | {
1003
+ type: "private-key";
1004
+ } | {
1005
+ type: "custom";
1006
+ } | undefined;
1007
+ exportable?: boolean | undefined;
1008
+ };
1009
+ metadata: {
1010
+ name: string;
1011
+ importTime: number;
1012
+ keyring: {
1013
+ type: string;
1014
+ };
1015
+ snap?: {
1016
+ name: string;
1017
+ id: string;
1018
+ enabled: boolean;
1019
+ } | undefined;
1020
+ nameLastUpdatedAt?: number | undefined;
1021
+ lastSelected?: number | undefined;
1022
+ };
1023
+ address: string;
1024
+ scopes: `${string}:${string}`[];
1025
+ methods: string[];
1026
+ }>;
1027
+ selectedAccount: string;
1028
+ }];
1029
+ recomputations: () => number;
1030
+ resetRecomputations: () => void;
1031
+ dependencyRecomputations: () => number;
1032
+ resetDependencyRecomputations: () => void;
1033
+ } & {
1034
+ memoize: typeof weakMapMemoize;
1035
+ argsMemoize: typeof weakMapMemoize;
1036
+ }, (state: AssetListState) => {
1037
+ [chainId: `0x${string}`]: {
1038
+ [key: string]: Token[];
1039
+ };
1040
+ }, (state: AssetListState) => {
1041
+ [chainId: `0x${string}`]: {
1042
+ [key: string]: string[];
1043
+ };
1044
+ }, (state: AssetListState) => import("../TokenBalancesController.cjs").TokenBalances, (state: AssetListState) => Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.cjs").MarketDataDetails>>, (state: AssetListState) => Record<string, {
1045
+ conversionDate: number | null;
1046
+ conversionRate: number | null;
1047
+ usdConversionRate: number | null;
1048
+ }>, (state: AssetListState) => string];
1049
+ recomputations: () => number;
1050
+ resetRecomputations: () => void;
1051
+ dependencyRecomputations: () => number;
1052
+ resetDependencyRecomputations: () => void;
1053
+ } & {
1054
+ memoize: typeof weakMapMemoize;
1055
+ argsMemoize: typeof weakMapMemoize;
1056
+ }, ((state: AssetListState) => AssetsByAccountGroup) & {
1057
+ clearCache: () => void;
1058
+ resultsCount: () => number;
1059
+ resetResultsCount: () => void;
1060
+ } & {
1061
+ resultFunc: (resultFuncArgs_0: Record<string, {
1062
+ accountGroupId: AccountGroupId;
1063
+ type: InternalAccount['type'];
1064
+ accountId: string;
1065
+ }>, resultFuncArgs_1: {
1066
+ [account: string]: `${string}:${string}/${string}:${string}`[];
1067
+ }, resultFuncArgs_2: {
1068
+ [account: string]: `${string}:${string}/${string}:${string}`[];
1069
+ }, resultFuncArgs_3: {
1070
+ [asset: `${string}:${string}/${string}:${string}`]: {
1071
+ fungible: true;
1072
+ iconUrl: string;
1073
+ units: {
1074
+ decimals: number;
1075
+ symbol?: string | undefined;
1076
+ name?: string | undefined;
1077
+ }[];
1078
+ symbol?: string | undefined;
1079
+ name?: string | undefined;
1080
+ };
1081
+ }, resultFuncArgs_4: {
1082
+ [account: string]: {
1083
+ [asset: string]: {
1084
+ amount: string;
1085
+ unit: string;
1086
+ };
1087
+ };
1088
+ }, resultFuncArgs_5: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
1089
+ marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
1090
+ }>, resultFuncArgs_6: string) => AssetsByAccountGroup;
1091
+ memoizedResultFunc: ((resultFuncArgs_0: Record<string, {
1092
+ accountGroupId: AccountGroupId;
1093
+ type: InternalAccount['type'];
1094
+ accountId: string;
1095
+ }>, resultFuncArgs_1: {
1096
+ [account: string]: `${string}:${string}/${string}:${string}`[];
1097
+ }, resultFuncArgs_2: {
1098
+ [account: string]: `${string}:${string}/${string}:${string}`[];
1099
+ }, resultFuncArgs_3: {
1100
+ [asset: `${string}:${string}/${string}:${string}`]: {
1101
+ fungible: true;
1102
+ iconUrl: string;
1103
+ units: {
1104
+ decimals: number;
1105
+ symbol?: string | undefined;
1106
+ name?: string | undefined;
1107
+ }[];
1108
+ symbol?: string | undefined;
1109
+ name?: string | undefined;
1110
+ };
1111
+ }, resultFuncArgs_4: {
1112
+ [account: string]: {
1113
+ [asset: string]: {
1114
+ amount: string;
1115
+ unit: string;
1116
+ };
1117
+ };
1118
+ }, resultFuncArgs_5: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
1119
+ marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
1120
+ }>, resultFuncArgs_6: string) => AssetsByAccountGroup) & {
1121
+ clearCache: () => void;
1122
+ resultsCount: () => number;
1123
+ resetResultsCount: () => void;
1124
+ };
1125
+ lastResult: () => AssetsByAccountGroup;
1126
+ dependencies: [((state: AssetListState) => Record<string, {
1127
+ accountGroupId: AccountGroupId;
1128
+ type: InternalAccount['type'];
1129
+ accountId: string;
1130
+ }>) & {
1131
+ clearCache: () => void;
1132
+ resultsCount: () => number;
1133
+ resetResultsCount: () => void;
1134
+ } & {
1135
+ resultFunc: (resultFuncArgs_0: {
1136
+ wallets: {
1137
+ [walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
1138
+ [walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
1139
+ [walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
1140
+ };
1141
+ }, resultFuncArgs_1: {
1142
+ accounts: Record<string, {
1143
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
1144
+ id: string;
1145
+ options: Record<string, import("@metamask/utils").Json> & {
1146
+ entropy?: {
1147
+ type: "mnemonic";
1148
+ id: string;
1149
+ derivationPath: string;
1150
+ groupIndex: number;
1151
+ } | {
1152
+ type: "private-key";
1153
+ } | {
1154
+ type: "custom";
1155
+ } | undefined;
1156
+ exportable?: boolean | undefined;
1157
+ };
1158
+ metadata: {
1159
+ name: string;
1160
+ importTime: number;
1161
+ keyring: {
1162
+ type: string;
1163
+ };
1164
+ snap?: {
1165
+ name: string;
1166
+ id: string;
1167
+ enabled: boolean;
1168
+ } | undefined;
1169
+ nameLastUpdatedAt?: number | undefined;
1170
+ lastSelected?: number | undefined;
1171
+ };
1172
+ address: string;
1173
+ scopes: `${string}:${string}`[];
1174
+ methods: string[];
1175
+ }>;
1176
+ selectedAccount: string;
1177
+ }) => Record<string, {
1178
+ accountGroupId: AccountGroupId;
1179
+ type: InternalAccount['type'];
1180
+ accountId: string;
1181
+ }>;
1182
+ memoizedResultFunc: ((resultFuncArgs_0: {
1183
+ wallets: {
1184
+ [walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
1185
+ [walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
1186
+ [walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
1187
+ };
1188
+ }, resultFuncArgs_1: {
1189
+ accounts: Record<string, {
1190
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
1191
+ id: string;
1192
+ options: Record<string, import("@metamask/utils").Json> & {
1193
+ entropy?: {
1194
+ type: "mnemonic";
1195
+ id: string;
1196
+ derivationPath: string;
1197
+ groupIndex: number;
1198
+ } | {
1199
+ type: "private-key";
1200
+ } | {
1201
+ type: "custom";
1202
+ } | undefined;
1203
+ exportable?: boolean | undefined;
1204
+ };
1205
+ metadata: {
1206
+ name: string;
1207
+ importTime: number;
1208
+ keyring: {
1209
+ type: string;
1210
+ };
1211
+ snap?: {
1212
+ name: string;
1213
+ id: string;
1214
+ enabled: boolean;
1215
+ } | undefined;
1216
+ nameLastUpdatedAt?: number | undefined;
1217
+ lastSelected?: number | undefined;
1218
+ };
1219
+ address: string;
1220
+ scopes: `${string}:${string}`[];
1221
+ methods: string[];
1222
+ }>;
1223
+ selectedAccount: string;
1224
+ }) => Record<string, {
1225
+ accountGroupId: AccountGroupId;
1226
+ type: InternalAccount['type'];
1227
+ accountId: string;
1228
+ }>) & {
1229
+ clearCache: () => void;
1230
+ resultsCount: () => number;
1231
+ resetResultsCount: () => void;
1232
+ };
1233
+ lastResult: () => Record<string, {
1234
+ accountGroupId: AccountGroupId;
1235
+ type: InternalAccount['type'];
1236
+ accountId: string;
1237
+ }>;
1238
+ dependencies: [(state: AssetListState) => {
1239
+ wallets: {
1240
+ [walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
1241
+ [walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
1242
+ [walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
1243
+ };
1244
+ }, (state: AssetListState) => {
1245
+ accounts: Record<string, {
1246
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
1247
+ id: string;
1248
+ options: Record<string, import("@metamask/utils").Json> & {
1249
+ entropy?: {
1250
+ type: "mnemonic";
1251
+ id: string;
1252
+ derivationPath: string;
1253
+ groupIndex: number;
1254
+ } | {
1255
+ type: "private-key";
1256
+ } | {
1257
+ type: "custom";
1258
+ } | undefined;
1259
+ exportable?: boolean | undefined;
1260
+ };
1261
+ metadata: {
1262
+ name: string;
1263
+ importTime: number;
1264
+ keyring: {
1265
+ type: string;
1266
+ };
1267
+ snap?: {
1268
+ name: string;
1269
+ id: string;
1270
+ enabled: boolean;
1271
+ } | undefined;
1272
+ nameLastUpdatedAt?: number | undefined;
1273
+ lastSelected?: number | undefined;
1274
+ };
1275
+ address: string;
1276
+ scopes: `${string}:${string}`[];
1277
+ methods: string[];
1278
+ }>;
1279
+ selectedAccount: string;
1280
+ }];
1281
+ recomputations: () => number;
1282
+ resetRecomputations: () => void;
1283
+ dependencyRecomputations: () => number;
1284
+ resetDependencyRecomputations: () => void;
1285
+ } & {
1286
+ memoize: typeof weakMapMemoize;
1287
+ argsMemoize: typeof weakMapMemoize;
1288
+ }, (state: AssetListState) => {
1289
+ [account: string]: `${string}:${string}/${string}:${string}`[];
1290
+ }, (state: AssetListState) => {
1291
+ [account: string]: `${string}:${string}/${string}:${string}`[];
1292
+ }, (state: AssetListState) => {
1293
+ [asset: `${string}:${string}/${string}:${string}`]: {
1294
+ fungible: true;
1295
+ iconUrl: string;
1296
+ units: {
1297
+ decimals: number;
1298
+ symbol?: string | undefined;
1299
+ name?: string | undefined;
1300
+ }[];
1301
+ symbol?: string | undefined;
1302
+ name?: string | undefined;
1303
+ };
1304
+ }, (state: AssetListState) => {
1305
+ [account: string]: {
1306
+ [asset: string]: {
1307
+ amount: string;
1308
+ unit: string;
1309
+ };
1310
+ };
1311
+ }, (state: AssetListState) => Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
1312
+ marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
1313
+ }>, (state: AssetListState) => string];
1314
+ recomputations: () => number;
1315
+ resetRecomputations: () => void;
1316
+ dependencyRecomputations: () => number;
1317
+ resetDependencyRecomputations: () => void;
1318
+ } & {
1319
+ memoize: typeof weakMapMemoize;
1320
+ argsMemoize: typeof weakMapMemoize;
1321
+ }, ((state: AssetListState) => AssetsByAccountGroup) & {
1322
+ clearCache: () => void;
1323
+ resultsCount: () => number;
1324
+ resetResultsCount: () => void;
1325
+ } & {
1326
+ resultFunc: (resultFuncArgs_0: Record<string, {
1327
+ accountGroupId: AccountGroupId;
1328
+ type: InternalAccount['type'];
1329
+ accountId: string;
1330
+ }>, resultFuncArgs_1: Record<`0x${string}`, Record<`0x${string}`, {
1331
+ balance: Hex | null;
1332
+ }>>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.cjs").MarketDataDetails>>, resultFuncArgs_3: Record<string, {
1333
+ conversionDate: number | null;
1334
+ conversionRate: number | null;
1335
+ usdConversionRate: number | null;
1336
+ }>, resultFuncArgs_4: string, resultFuncArgs_5: Record<`0x${string}`, import("@metamask/network-controller").NetworkConfiguration>) => AssetsByAccountGroup;
1337
+ memoizedResultFunc: ((resultFuncArgs_0: Record<string, {
1338
+ accountGroupId: AccountGroupId;
1339
+ type: InternalAccount['type'];
1340
+ accountId: string;
1341
+ }>, resultFuncArgs_1: Record<`0x${string}`, Record<`0x${string}`, {
1342
+ balance: Hex | null;
1343
+ }>>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.cjs").MarketDataDetails>>, resultFuncArgs_3: Record<string, {
1344
+ conversionDate: number | null;
1345
+ conversionRate: number | null;
1346
+ usdConversionRate: number | null;
1347
+ }>, resultFuncArgs_4: string, resultFuncArgs_5: Record<`0x${string}`, import("@metamask/network-controller").NetworkConfiguration>) => AssetsByAccountGroup) & {
1348
+ clearCache: () => void;
1349
+ resultsCount: () => number;
1350
+ resetResultsCount: () => void;
1351
+ };
1352
+ lastResult: () => AssetsByAccountGroup;
1353
+ dependencies: [((state: AssetListState) => Record<string, {
1354
+ accountGroupId: AccountGroupId;
1355
+ type: InternalAccount['type'];
1356
+ accountId: string;
1357
+ }>) & {
1358
+ clearCache: () => void;
1359
+ resultsCount: () => number;
1360
+ resetResultsCount: () => void;
1361
+ } & {
1362
+ resultFunc: (resultFuncArgs_0: {
1363
+ wallets: {
1364
+ [walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
1365
+ [walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
1366
+ [walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
1367
+ };
1368
+ }, resultFuncArgs_1: {
1369
+ accounts: Record<string, {
1370
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
1371
+ id: string;
1372
+ options: Record<string, import("@metamask/utils").Json> & {
1373
+ entropy?: {
1374
+ type: "mnemonic";
1375
+ id: string;
1376
+ derivationPath: string;
1377
+ groupIndex: number;
1378
+ } | {
1379
+ type: "private-key";
1380
+ } | {
1381
+ type: "custom";
1382
+ } | undefined;
1383
+ exportable?: boolean | undefined;
1384
+ };
1385
+ metadata: {
1386
+ name: string;
1387
+ importTime: number;
1388
+ keyring: {
1389
+ type: string;
1390
+ };
1391
+ snap?: {
1392
+ name: string;
1393
+ id: string;
1394
+ enabled: boolean;
1395
+ } | undefined;
1396
+ nameLastUpdatedAt?: number | undefined;
1397
+ lastSelected?: number | undefined;
1398
+ };
1399
+ address: string;
1400
+ scopes: `${string}:${string}`[];
1401
+ methods: string[];
1402
+ }>;
1403
+ selectedAccount: string;
1404
+ }) => Record<string, {
1405
+ accountGroupId: AccountGroupId;
1406
+ type: InternalAccount['type'];
1407
+ accountId: string;
1408
+ }>;
1409
+ memoizedResultFunc: ((resultFuncArgs_0: {
1410
+ wallets: {
1411
+ [walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
1412
+ [walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
1413
+ [walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
1414
+ };
1415
+ }, resultFuncArgs_1: {
1416
+ accounts: Record<string, {
1417
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
1418
+ id: string;
1419
+ options: Record<string, import("@metamask/utils").Json> & {
1420
+ entropy?: {
1421
+ type: "mnemonic";
1422
+ id: string;
1423
+ derivationPath: string;
1424
+ groupIndex: number;
1425
+ } | {
1426
+ type: "private-key";
1427
+ } | {
1428
+ type: "custom";
1429
+ } | undefined;
1430
+ exportable?: boolean | undefined;
1431
+ };
1432
+ metadata: {
1433
+ name: string;
1434
+ importTime: number;
1435
+ keyring: {
1436
+ type: string;
1437
+ };
1438
+ snap?: {
1439
+ name: string;
1440
+ id: string;
1441
+ enabled: boolean;
1442
+ } | undefined;
1443
+ nameLastUpdatedAt?: number | undefined;
1444
+ lastSelected?: number | undefined;
1445
+ };
1446
+ address: string;
1447
+ scopes: `${string}:${string}`[];
1448
+ methods: string[];
1449
+ }>;
1450
+ selectedAccount: string;
1451
+ }) => Record<string, {
1452
+ accountGroupId: AccountGroupId;
1453
+ type: InternalAccount['type'];
1454
+ accountId: string;
1455
+ }>) & {
1456
+ clearCache: () => void;
1457
+ resultsCount: () => number;
1458
+ resetResultsCount: () => void;
1459
+ };
1460
+ lastResult: () => Record<string, {
1461
+ accountGroupId: AccountGroupId;
1462
+ type: InternalAccount['type'];
1463
+ accountId: string;
1464
+ }>;
1465
+ dependencies: [(state: AssetListState) => {
1466
+ wallets: {
1467
+ [walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
1468
+ [walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
1469
+ [walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.cjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.cjs").AccountWalletKeyringObject;
1470
+ };
1471
+ }, (state: AssetListState) => {
1472
+ accounts: Record<string, {
1473
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
1474
+ id: string;
1475
+ options: Record<string, import("@metamask/utils").Json> & {
1476
+ entropy?: {
1477
+ type: "mnemonic";
1478
+ id: string;
1479
+ derivationPath: string;
1480
+ groupIndex: number;
1481
+ } | {
1482
+ type: "private-key";
1483
+ } | {
1484
+ type: "custom";
1485
+ } | undefined;
1486
+ exportable?: boolean | undefined;
1487
+ };
1488
+ metadata: {
1489
+ name: string;
1490
+ importTime: number;
1491
+ keyring: {
1492
+ type: string;
1493
+ };
1494
+ snap?: {
1495
+ name: string;
1496
+ id: string;
1497
+ enabled: boolean;
1498
+ } | undefined;
1499
+ nameLastUpdatedAt?: number | undefined;
1500
+ lastSelected?: number | undefined;
1501
+ };
1502
+ address: string;
1503
+ scopes: `${string}:${string}`[];
1504
+ methods: string[];
1505
+ }>;
1506
+ selectedAccount: string;
1507
+ }];
1508
+ recomputations: () => number;
1509
+ resetRecomputations: () => void;
1510
+ dependencyRecomputations: () => number;
1511
+ resetDependencyRecomputations: () => void;
1512
+ } & {
1513
+ memoize: typeof weakMapMemoize;
1514
+ argsMemoize: typeof weakMapMemoize;
1515
+ }, (state: AssetListState) => Record<`0x${string}`, Record<`0x${string}`, {
1516
+ balance: Hex | null;
1517
+ }>>, (state: AssetListState) => Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.cjs").MarketDataDetails>>, (state: AssetListState) => Record<string, {
1518
+ conversionDate: number | null;
1519
+ conversionRate: number | null;
1520
+ usdConversionRate: number | null;
1521
+ }>, (state: AssetListState) => string, (state: AssetListState) => Record<`0x${string}`, import("@metamask/network-controller").NetworkConfiguration>];
1522
+ recomputations: () => number;
1523
+ resetRecomputations: () => void;
1524
+ dependencyRecomputations: () => number;
1525
+ resetDependencyRecomputations: () => void;
1526
+ } & {
1527
+ memoize: typeof weakMapMemoize;
1528
+ argsMemoize: typeof weakMapMemoize;
1529
+ }];
1530
+ recomputations: () => number;
1531
+ resetRecomputations: () => void;
1532
+ dependencyRecomputations: () => number;
1533
+ resetDependencyRecomputations: () => void;
1534
+ } & {
1535
+ memoize: typeof weakMapMemoize;
1536
+ argsMemoize: typeof weakMapMemoize;
1537
+ }, (state: AssetListState) => "" | `entropy:${string}/${string}` | `keyring:${string}/${string}` | `snap:${string}/${string}`, (_state: AssetListState, opts?: SelectAccountGroupAssetOpts) => SelectAccountGroupAssetOpts];
101
1538
  recomputations: () => number;
102
1539
  resetRecomputations: () => void;
103
1540
  dependencyRecomputations: () => number;