@metamask/assets-controllers 74.0.0 → 74.1.1
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/CHANGELOG.md +50 -1
- package/dist/AccountTrackerController.cjs +222 -84
- package/dist/AccountTrackerController.cjs.map +1 -1
- package/dist/AccountTrackerController.d.cts +7 -1
- package/dist/AccountTrackerController.d.cts.map +1 -1
- package/dist/AccountTrackerController.d.mts +7 -1
- package/dist/AccountTrackerController.d.mts.map +1 -1
- package/dist/AccountTrackerController.mjs +224 -85
- package/dist/AccountTrackerController.mjs.map +1 -1
- package/dist/TokenBalancesController.cjs +17 -14
- package/dist/TokenBalancesController.cjs.map +1 -1
- package/dist/TokenBalancesController.d.cts.map +1 -1
- package/dist/TokenBalancesController.d.mts.map +1 -1
- package/dist/TokenBalancesController.mjs +18 -15
- package/dist/TokenBalancesController.mjs.map +1 -1
- package/dist/rpc-service/rpc-balance-fetcher.cjs +31 -9
- package/dist/rpc-service/rpc-balance-fetcher.cjs.map +1 -1
- package/dist/rpc-service/rpc-balance-fetcher.d.cts.map +1 -1
- package/dist/rpc-service/rpc-balance-fetcher.d.mts.map +1 -1
- package/dist/rpc-service/rpc-balance-fetcher.mjs +32 -10
- package/dist/rpc-service/rpc-balance-fetcher.mjs.map +1 -1
- package/dist/selectors/token-selectors.cjs +24 -9
- package/dist/selectors/token-selectors.cjs.map +1 -1
- package/dist/selectors/token-selectors.d.cts +96 -20
- package/dist/selectors/token-selectors.d.cts.map +1 -1
- package/dist/selectors/token-selectors.d.mts +96 -20
- package/dist/selectors/token-selectors.d.mts.map +1 -1
- package/dist/selectors/token-selectors.mjs +24 -9
- package/dist/selectors/token-selectors.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AccountGroupId } from "@metamask/account-api";
|
|
2
2
|
import type { AccountTreeControllerState } from "@metamask/account-tree-controller";
|
|
3
3
|
import type { AccountsControllerState } from "@metamask/accounts-controller";
|
|
4
|
+
import type { InternalAccount } from "@metamask/keyring-internal-api";
|
|
4
5
|
import type { NetworkState } from "@metamask/network-controller";
|
|
5
6
|
import { type Hex } from "@metamask/utils";
|
|
6
7
|
import type { CurrencyRateState } from "../CurrencyRateController.cjs";
|
|
@@ -16,16 +17,19 @@ type AssetsByAccountGroup = {
|
|
|
16
17
|
export type AccountGroupAssets = {
|
|
17
18
|
[network: string]: Asset[];
|
|
18
19
|
};
|
|
20
|
+
type EvmAccountType = Extract<InternalAccount['type'], `eip155:${string}`>;
|
|
21
|
+
type MultichainAccountType = Exclude<InternalAccount['type'], `eip155:${string}`>;
|
|
19
22
|
export type Asset = ({
|
|
20
|
-
type:
|
|
23
|
+
type: EvmAccountType;
|
|
21
24
|
assetId: Hex;
|
|
22
25
|
address: Hex;
|
|
23
26
|
chainId: Hex;
|
|
24
27
|
} | {
|
|
25
|
-
type:
|
|
28
|
+
type: MultichainAccountType;
|
|
26
29
|
assetId: `${string}:${string}/${string}:${string}`;
|
|
27
30
|
chainId: `${string}:${string}`;
|
|
28
31
|
}) & {
|
|
32
|
+
accountId: string;
|
|
29
33
|
image: string;
|
|
30
34
|
name: string;
|
|
31
35
|
symbol: string;
|
|
@@ -99,7 +103,11 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
99
103
|
resultsCount: () => number;
|
|
100
104
|
resetResultsCount: () => void;
|
|
101
105
|
} & {
|
|
102
|
-
resultFunc: (resultFuncArgs_0: Record<string,
|
|
106
|
+
resultFunc: (resultFuncArgs_0: Record<string, {
|
|
107
|
+
accountGroupId: AccountGroupId;
|
|
108
|
+
type: InternalAccount['type'];
|
|
109
|
+
accountId: string;
|
|
110
|
+
}>, resultFuncArgs_1: {
|
|
103
111
|
[chainId: `0x${string}`]: {
|
|
104
112
|
[key: string]: Token[];
|
|
105
113
|
};
|
|
@@ -112,7 +120,11 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
112
120
|
conversionRate: number | null;
|
|
113
121
|
usdConversionRate: number | null;
|
|
114
122
|
}>, resultFuncArgs_6: string) => AssetsByAccountGroup;
|
|
115
|
-
memoizedResultFunc: ((resultFuncArgs_0: Record<string,
|
|
123
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, {
|
|
124
|
+
accountGroupId: AccountGroupId;
|
|
125
|
+
type: InternalAccount['type'];
|
|
126
|
+
accountId: string;
|
|
127
|
+
}>, resultFuncArgs_1: {
|
|
116
128
|
[chainId: `0x${string}`]: {
|
|
117
129
|
[key: string]: Token[];
|
|
118
130
|
};
|
|
@@ -130,7 +142,11 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
130
142
|
resetResultsCount: () => void;
|
|
131
143
|
};
|
|
132
144
|
lastResult: () => AssetsByAccountGroup;
|
|
133
|
-
dependencies: [((state: AssetListState) => Record<string,
|
|
145
|
+
dependencies: [((state: AssetListState) => Record<string, {
|
|
146
|
+
accountGroupId: AccountGroupId;
|
|
147
|
+
type: InternalAccount['type'];
|
|
148
|
+
accountId: string;
|
|
149
|
+
}>) & {
|
|
134
150
|
clearCache: () => void;
|
|
135
151
|
resultsCount: () => number;
|
|
136
152
|
resetResultsCount: () => void;
|
|
@@ -176,7 +192,11 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
176
192
|
methods: string[];
|
|
177
193
|
}>;
|
|
178
194
|
selectedAccount: string;
|
|
179
|
-
}) => Record<string,
|
|
195
|
+
}) => Record<string, {
|
|
196
|
+
accountGroupId: AccountGroupId;
|
|
197
|
+
type: InternalAccount['type'];
|
|
198
|
+
accountId: string;
|
|
199
|
+
}>;
|
|
180
200
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
181
201
|
wallets: {
|
|
182
202
|
[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;
|
|
@@ -218,12 +238,20 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
218
238
|
methods: string[];
|
|
219
239
|
}>;
|
|
220
240
|
selectedAccount: string;
|
|
221
|
-
}) => Record<string,
|
|
241
|
+
}) => Record<string, {
|
|
242
|
+
accountGroupId: AccountGroupId;
|
|
243
|
+
type: InternalAccount['type'];
|
|
244
|
+
accountId: string;
|
|
245
|
+
}>) & {
|
|
222
246
|
clearCache: () => void;
|
|
223
247
|
resultsCount: () => number;
|
|
224
248
|
resetResultsCount: () => void;
|
|
225
249
|
};
|
|
226
|
-
lastResult: () => Record<string,
|
|
250
|
+
lastResult: () => Record<string, {
|
|
251
|
+
accountGroupId: AccountGroupId;
|
|
252
|
+
type: InternalAccount['type'];
|
|
253
|
+
accountId: string;
|
|
254
|
+
}>;
|
|
227
255
|
dependencies: [(state: AssetListState) => {
|
|
228
256
|
wallets: {
|
|
229
257
|
[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;
|
|
@@ -298,7 +326,11 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
298
326
|
resultsCount: () => number;
|
|
299
327
|
resetResultsCount: () => void;
|
|
300
328
|
} & {
|
|
301
|
-
resultFunc: (resultFuncArgs_0: Record<string,
|
|
329
|
+
resultFunc: (resultFuncArgs_0: Record<string, {
|
|
330
|
+
accountGroupId: AccountGroupId;
|
|
331
|
+
type: InternalAccount['type'];
|
|
332
|
+
accountId: string;
|
|
333
|
+
}>, resultFuncArgs_1: {
|
|
302
334
|
[account: string]: `${string}:${string}/${string}:${string}`[];
|
|
303
335
|
}, resultFuncArgs_2: {
|
|
304
336
|
[asset: `${string}:${string}/${string}:${string}`]: {
|
|
@@ -322,7 +354,11 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
322
354
|
}, resultFuncArgs_4: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
323
355
|
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
324
356
|
}>, resultFuncArgs_5: string) => AssetsByAccountGroup;
|
|
325
|
-
memoizedResultFunc: ((resultFuncArgs_0: Record<string,
|
|
357
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, {
|
|
358
|
+
accountGroupId: AccountGroupId;
|
|
359
|
+
type: InternalAccount['type'];
|
|
360
|
+
accountId: string;
|
|
361
|
+
}>, resultFuncArgs_1: {
|
|
326
362
|
[account: string]: `${string}:${string}/${string}:${string}`[];
|
|
327
363
|
}, resultFuncArgs_2: {
|
|
328
364
|
[asset: `${string}:${string}/${string}:${string}`]: {
|
|
@@ -351,7 +387,11 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
351
387
|
resetResultsCount: () => void;
|
|
352
388
|
};
|
|
353
389
|
lastResult: () => AssetsByAccountGroup;
|
|
354
|
-
dependencies: [((state: AssetListState) => Record<string,
|
|
390
|
+
dependencies: [((state: AssetListState) => Record<string, {
|
|
391
|
+
accountGroupId: AccountGroupId;
|
|
392
|
+
type: InternalAccount['type'];
|
|
393
|
+
accountId: string;
|
|
394
|
+
}>) & {
|
|
355
395
|
clearCache: () => void;
|
|
356
396
|
resultsCount: () => number;
|
|
357
397
|
resetResultsCount: () => void;
|
|
@@ -397,7 +437,11 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
397
437
|
methods: string[];
|
|
398
438
|
}>;
|
|
399
439
|
selectedAccount: string;
|
|
400
|
-
}) => Record<string,
|
|
440
|
+
}) => Record<string, {
|
|
441
|
+
accountGroupId: AccountGroupId;
|
|
442
|
+
type: InternalAccount['type'];
|
|
443
|
+
accountId: string;
|
|
444
|
+
}>;
|
|
401
445
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
402
446
|
wallets: {
|
|
403
447
|
[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;
|
|
@@ -439,12 +483,20 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
439
483
|
methods: string[];
|
|
440
484
|
}>;
|
|
441
485
|
selectedAccount: string;
|
|
442
|
-
}) => Record<string,
|
|
486
|
+
}) => Record<string, {
|
|
487
|
+
accountGroupId: AccountGroupId;
|
|
488
|
+
type: InternalAccount['type'];
|
|
489
|
+
accountId: string;
|
|
490
|
+
}>) & {
|
|
443
491
|
clearCache: () => void;
|
|
444
492
|
resultsCount: () => number;
|
|
445
493
|
resetResultsCount: () => void;
|
|
446
494
|
};
|
|
447
|
-
lastResult: () => Record<string,
|
|
495
|
+
lastResult: () => Record<string, {
|
|
496
|
+
accountGroupId: AccountGroupId;
|
|
497
|
+
type: InternalAccount['type'];
|
|
498
|
+
accountId: string;
|
|
499
|
+
}>;
|
|
448
500
|
dependencies: [(state: AssetListState) => {
|
|
449
501
|
wallets: {
|
|
450
502
|
[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;
|
|
@@ -530,14 +582,22 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
530
582
|
resultsCount: () => number;
|
|
531
583
|
resetResultsCount: () => void;
|
|
532
584
|
} & {
|
|
533
|
-
resultFunc: (resultFuncArgs_0: Record<string,
|
|
585
|
+
resultFunc: (resultFuncArgs_0: Record<string, {
|
|
586
|
+
accountGroupId: AccountGroupId;
|
|
587
|
+
type: InternalAccount['type'];
|
|
588
|
+
accountId: string;
|
|
589
|
+
}>, resultFuncArgs_1: Record<`0x${string}`, Record<`0x${string}`, {
|
|
534
590
|
balance: Hex | null;
|
|
535
591
|
}>>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.cjs").MarketDataDetails>>, resultFuncArgs_3: Record<string, {
|
|
536
592
|
conversionDate: number | null;
|
|
537
593
|
conversionRate: number | null;
|
|
538
594
|
usdConversionRate: number | null;
|
|
539
595
|
}>, resultFuncArgs_4: string, resultFuncArgs_5: Record<`0x${string}`, import("@metamask/network-controller").NetworkConfiguration>) => AssetsByAccountGroup;
|
|
540
|
-
memoizedResultFunc: ((resultFuncArgs_0: Record<string,
|
|
596
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, {
|
|
597
|
+
accountGroupId: AccountGroupId;
|
|
598
|
+
type: InternalAccount['type'];
|
|
599
|
+
accountId: string;
|
|
600
|
+
}>, resultFuncArgs_1: Record<`0x${string}`, Record<`0x${string}`, {
|
|
541
601
|
balance: Hex | null;
|
|
542
602
|
}>>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.cjs").MarketDataDetails>>, resultFuncArgs_3: Record<string, {
|
|
543
603
|
conversionDate: number | null;
|
|
@@ -549,7 +609,11 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
549
609
|
resetResultsCount: () => void;
|
|
550
610
|
};
|
|
551
611
|
lastResult: () => AssetsByAccountGroup;
|
|
552
|
-
dependencies: [((state: AssetListState) => Record<string,
|
|
612
|
+
dependencies: [((state: AssetListState) => Record<string, {
|
|
613
|
+
accountGroupId: AccountGroupId;
|
|
614
|
+
type: InternalAccount['type'];
|
|
615
|
+
accountId: string;
|
|
616
|
+
}>) & {
|
|
553
617
|
clearCache: () => void;
|
|
554
618
|
resultsCount: () => number;
|
|
555
619
|
resetResultsCount: () => void;
|
|
@@ -595,7 +659,11 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
595
659
|
methods: string[];
|
|
596
660
|
}>;
|
|
597
661
|
selectedAccount: string;
|
|
598
|
-
}) => Record<string,
|
|
662
|
+
}) => Record<string, {
|
|
663
|
+
accountGroupId: AccountGroupId;
|
|
664
|
+
type: InternalAccount['type'];
|
|
665
|
+
accountId: string;
|
|
666
|
+
}>;
|
|
599
667
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
600
668
|
wallets: {
|
|
601
669
|
[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;
|
|
@@ -637,12 +705,20 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
637
705
|
methods: string[];
|
|
638
706
|
}>;
|
|
639
707
|
selectedAccount: string;
|
|
640
|
-
}) => Record<string,
|
|
708
|
+
}) => Record<string, {
|
|
709
|
+
accountGroupId: AccountGroupId;
|
|
710
|
+
type: InternalAccount['type'];
|
|
711
|
+
accountId: string;
|
|
712
|
+
}>) & {
|
|
641
713
|
clearCache: () => void;
|
|
642
714
|
resultsCount: () => number;
|
|
643
715
|
resetResultsCount: () => void;
|
|
644
716
|
};
|
|
645
|
-
lastResult: () => Record<string,
|
|
717
|
+
lastResult: () => Record<string, {
|
|
718
|
+
accountGroupId: AccountGroupId;
|
|
719
|
+
type: InternalAccount['type'];
|
|
720
|
+
accountId: string;
|
|
721
|
+
}>;
|
|
646
722
|
dependencies: [(state: AssetListState) => {
|
|
647
723
|
wallets: {
|
|
648
724
|
[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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-selectors.d.cts","sourceRoot":"","sources":["../../src/selectors/token-selectors.ts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AC;2BAClB,MAAM;;yBAhBR,GAAG,GAAG,IAAI;;;;;;;;;;;;gCAcH,cAAc;sBACxB,eAAe,CAAC,MAAM,CAAC;2BAClB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAFD,cAAc;0BACxB,eAAe,CAAC,MAAM,CAAC;+BAClB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAFD,cAAc;0BACxB,eAAe,CAAC,MAAM,CAAC;+BAClB,MAAM;;;;;;;oCAFD,cAAc;0BACxB,eAAe,CAAC,MAAM,CAAC;+BAClB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAhBR,GAAG,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuV1B,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AccountGroupId } from "@metamask/account-api";
|
|
2
2
|
import type { AccountTreeControllerState } from "@metamask/account-tree-controller";
|
|
3
3
|
import type { AccountsControllerState } from "@metamask/accounts-controller";
|
|
4
|
+
import type { InternalAccount } from "@metamask/keyring-internal-api";
|
|
4
5
|
import type { NetworkState } from "@metamask/network-controller";
|
|
5
6
|
import { type Hex } from "@metamask/utils";
|
|
6
7
|
import type { CurrencyRateState } from "../CurrencyRateController.mjs";
|
|
@@ -16,16 +17,19 @@ type AssetsByAccountGroup = {
|
|
|
16
17
|
export type AccountGroupAssets = {
|
|
17
18
|
[network: string]: Asset[];
|
|
18
19
|
};
|
|
20
|
+
type EvmAccountType = Extract<InternalAccount['type'], `eip155:${string}`>;
|
|
21
|
+
type MultichainAccountType = Exclude<InternalAccount['type'], `eip155:${string}`>;
|
|
19
22
|
export type Asset = ({
|
|
20
|
-
type:
|
|
23
|
+
type: EvmAccountType;
|
|
21
24
|
assetId: Hex;
|
|
22
25
|
address: Hex;
|
|
23
26
|
chainId: Hex;
|
|
24
27
|
} | {
|
|
25
|
-
type:
|
|
28
|
+
type: MultichainAccountType;
|
|
26
29
|
assetId: `${string}:${string}/${string}:${string}`;
|
|
27
30
|
chainId: `${string}:${string}`;
|
|
28
31
|
}) & {
|
|
32
|
+
accountId: string;
|
|
29
33
|
image: string;
|
|
30
34
|
name: string;
|
|
31
35
|
symbol: string;
|
|
@@ -99,7 +103,11 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
99
103
|
resultsCount: () => number;
|
|
100
104
|
resetResultsCount: () => void;
|
|
101
105
|
} & {
|
|
102
|
-
resultFunc: (resultFuncArgs_0: Record<string,
|
|
106
|
+
resultFunc: (resultFuncArgs_0: Record<string, {
|
|
107
|
+
accountGroupId: AccountGroupId;
|
|
108
|
+
type: InternalAccount['type'];
|
|
109
|
+
accountId: string;
|
|
110
|
+
}>, resultFuncArgs_1: {
|
|
103
111
|
[chainId: `0x${string}`]: {
|
|
104
112
|
[key: string]: Token[];
|
|
105
113
|
};
|
|
@@ -112,7 +120,11 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
112
120
|
conversionRate: number | null;
|
|
113
121
|
usdConversionRate: number | null;
|
|
114
122
|
}>, resultFuncArgs_6: string) => AssetsByAccountGroup;
|
|
115
|
-
memoizedResultFunc: ((resultFuncArgs_0: Record<string,
|
|
123
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, {
|
|
124
|
+
accountGroupId: AccountGroupId;
|
|
125
|
+
type: InternalAccount['type'];
|
|
126
|
+
accountId: string;
|
|
127
|
+
}>, resultFuncArgs_1: {
|
|
116
128
|
[chainId: `0x${string}`]: {
|
|
117
129
|
[key: string]: Token[];
|
|
118
130
|
};
|
|
@@ -130,7 +142,11 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
130
142
|
resetResultsCount: () => void;
|
|
131
143
|
};
|
|
132
144
|
lastResult: () => AssetsByAccountGroup;
|
|
133
|
-
dependencies: [((state: AssetListState) => Record<string,
|
|
145
|
+
dependencies: [((state: AssetListState) => Record<string, {
|
|
146
|
+
accountGroupId: AccountGroupId;
|
|
147
|
+
type: InternalAccount['type'];
|
|
148
|
+
accountId: string;
|
|
149
|
+
}>) & {
|
|
134
150
|
clearCache: () => void;
|
|
135
151
|
resultsCount: () => number;
|
|
136
152
|
resetResultsCount: () => void;
|
|
@@ -176,7 +192,11 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
176
192
|
methods: string[];
|
|
177
193
|
}>;
|
|
178
194
|
selectedAccount: string;
|
|
179
|
-
}) => Record<string,
|
|
195
|
+
}) => Record<string, {
|
|
196
|
+
accountGroupId: AccountGroupId;
|
|
197
|
+
type: InternalAccount['type'];
|
|
198
|
+
accountId: string;
|
|
199
|
+
}>;
|
|
180
200
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
181
201
|
wallets: {
|
|
182
202
|
[walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
@@ -218,12 +238,20 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
218
238
|
methods: string[];
|
|
219
239
|
}>;
|
|
220
240
|
selectedAccount: string;
|
|
221
|
-
}) => Record<string,
|
|
241
|
+
}) => Record<string, {
|
|
242
|
+
accountGroupId: AccountGroupId;
|
|
243
|
+
type: InternalAccount['type'];
|
|
244
|
+
accountId: string;
|
|
245
|
+
}>) & {
|
|
222
246
|
clearCache: () => void;
|
|
223
247
|
resultsCount: () => number;
|
|
224
248
|
resetResultsCount: () => void;
|
|
225
249
|
};
|
|
226
|
-
lastResult: () => Record<string,
|
|
250
|
+
lastResult: () => Record<string, {
|
|
251
|
+
accountGroupId: AccountGroupId;
|
|
252
|
+
type: InternalAccount['type'];
|
|
253
|
+
accountId: string;
|
|
254
|
+
}>;
|
|
227
255
|
dependencies: [(state: AssetListState) => {
|
|
228
256
|
wallets: {
|
|
229
257
|
[walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
@@ -298,7 +326,11 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
298
326
|
resultsCount: () => number;
|
|
299
327
|
resetResultsCount: () => void;
|
|
300
328
|
} & {
|
|
301
|
-
resultFunc: (resultFuncArgs_0: Record<string,
|
|
329
|
+
resultFunc: (resultFuncArgs_0: Record<string, {
|
|
330
|
+
accountGroupId: AccountGroupId;
|
|
331
|
+
type: InternalAccount['type'];
|
|
332
|
+
accountId: string;
|
|
333
|
+
}>, resultFuncArgs_1: {
|
|
302
334
|
[account: string]: `${string}:${string}/${string}:${string}`[];
|
|
303
335
|
}, resultFuncArgs_2: {
|
|
304
336
|
[asset: `${string}:${string}/${string}:${string}`]: {
|
|
@@ -322,7 +354,11 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
322
354
|
}, resultFuncArgs_4: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
323
355
|
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
324
356
|
}>, resultFuncArgs_5: string) => AssetsByAccountGroup;
|
|
325
|
-
memoizedResultFunc: ((resultFuncArgs_0: Record<string,
|
|
357
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, {
|
|
358
|
+
accountGroupId: AccountGroupId;
|
|
359
|
+
type: InternalAccount['type'];
|
|
360
|
+
accountId: string;
|
|
361
|
+
}>, resultFuncArgs_1: {
|
|
326
362
|
[account: string]: `${string}:${string}/${string}:${string}`[];
|
|
327
363
|
}, resultFuncArgs_2: {
|
|
328
364
|
[asset: `${string}:${string}/${string}:${string}`]: {
|
|
@@ -351,7 +387,11 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
351
387
|
resetResultsCount: () => void;
|
|
352
388
|
};
|
|
353
389
|
lastResult: () => AssetsByAccountGroup;
|
|
354
|
-
dependencies: [((state: AssetListState) => Record<string,
|
|
390
|
+
dependencies: [((state: AssetListState) => Record<string, {
|
|
391
|
+
accountGroupId: AccountGroupId;
|
|
392
|
+
type: InternalAccount['type'];
|
|
393
|
+
accountId: string;
|
|
394
|
+
}>) & {
|
|
355
395
|
clearCache: () => void;
|
|
356
396
|
resultsCount: () => number;
|
|
357
397
|
resetResultsCount: () => void;
|
|
@@ -397,7 +437,11 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
397
437
|
methods: string[];
|
|
398
438
|
}>;
|
|
399
439
|
selectedAccount: string;
|
|
400
|
-
}) => Record<string,
|
|
440
|
+
}) => Record<string, {
|
|
441
|
+
accountGroupId: AccountGroupId;
|
|
442
|
+
type: InternalAccount['type'];
|
|
443
|
+
accountId: string;
|
|
444
|
+
}>;
|
|
401
445
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
402
446
|
wallets: {
|
|
403
447
|
[walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
@@ -439,12 +483,20 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
439
483
|
methods: string[];
|
|
440
484
|
}>;
|
|
441
485
|
selectedAccount: string;
|
|
442
|
-
}) => Record<string,
|
|
486
|
+
}) => Record<string, {
|
|
487
|
+
accountGroupId: AccountGroupId;
|
|
488
|
+
type: InternalAccount['type'];
|
|
489
|
+
accountId: string;
|
|
490
|
+
}>) & {
|
|
443
491
|
clearCache: () => void;
|
|
444
492
|
resultsCount: () => number;
|
|
445
493
|
resetResultsCount: () => void;
|
|
446
494
|
};
|
|
447
|
-
lastResult: () => Record<string,
|
|
495
|
+
lastResult: () => Record<string, {
|
|
496
|
+
accountGroupId: AccountGroupId;
|
|
497
|
+
type: InternalAccount['type'];
|
|
498
|
+
accountId: string;
|
|
499
|
+
}>;
|
|
448
500
|
dependencies: [(state: AssetListState) => {
|
|
449
501
|
wallets: {
|
|
450
502
|
[walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
@@ -530,14 +582,22 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
530
582
|
resultsCount: () => number;
|
|
531
583
|
resetResultsCount: () => void;
|
|
532
584
|
} & {
|
|
533
|
-
resultFunc: (resultFuncArgs_0: Record<string,
|
|
585
|
+
resultFunc: (resultFuncArgs_0: Record<string, {
|
|
586
|
+
accountGroupId: AccountGroupId;
|
|
587
|
+
type: InternalAccount['type'];
|
|
588
|
+
accountId: string;
|
|
589
|
+
}>, resultFuncArgs_1: Record<`0x${string}`, Record<`0x${string}`, {
|
|
534
590
|
balance: Hex | null;
|
|
535
591
|
}>>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.mjs").MarketDataDetails>>, resultFuncArgs_3: Record<string, {
|
|
536
592
|
conversionDate: number | null;
|
|
537
593
|
conversionRate: number | null;
|
|
538
594
|
usdConversionRate: number | null;
|
|
539
595
|
}>, resultFuncArgs_4: string, resultFuncArgs_5: Record<`0x${string}`, import("@metamask/network-controller").NetworkConfiguration>) => AssetsByAccountGroup;
|
|
540
|
-
memoizedResultFunc: ((resultFuncArgs_0: Record<string,
|
|
596
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, {
|
|
597
|
+
accountGroupId: AccountGroupId;
|
|
598
|
+
type: InternalAccount['type'];
|
|
599
|
+
accountId: string;
|
|
600
|
+
}>, resultFuncArgs_1: Record<`0x${string}`, Record<`0x${string}`, {
|
|
541
601
|
balance: Hex | null;
|
|
542
602
|
}>>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.mjs").MarketDataDetails>>, resultFuncArgs_3: Record<string, {
|
|
543
603
|
conversionDate: number | null;
|
|
@@ -549,7 +609,11 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
549
609
|
resetResultsCount: () => void;
|
|
550
610
|
};
|
|
551
611
|
lastResult: () => AssetsByAccountGroup;
|
|
552
|
-
dependencies: [((state: AssetListState) => Record<string,
|
|
612
|
+
dependencies: [((state: AssetListState) => Record<string, {
|
|
613
|
+
accountGroupId: AccountGroupId;
|
|
614
|
+
type: InternalAccount['type'];
|
|
615
|
+
accountId: string;
|
|
616
|
+
}>) & {
|
|
553
617
|
clearCache: () => void;
|
|
554
618
|
resultsCount: () => number;
|
|
555
619
|
resetResultsCount: () => void;
|
|
@@ -595,7 +659,11 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
595
659
|
methods: string[];
|
|
596
660
|
}>;
|
|
597
661
|
selectedAccount: string;
|
|
598
|
-
}) => Record<string,
|
|
662
|
+
}) => Record<string, {
|
|
663
|
+
accountGroupId: AccountGroupId;
|
|
664
|
+
type: InternalAccount['type'];
|
|
665
|
+
accountId: string;
|
|
666
|
+
}>;
|
|
599
667
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
600
668
|
wallets: {
|
|
601
669
|
[walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
@@ -637,12 +705,20 @@ export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState
|
|
|
637
705
|
methods: string[];
|
|
638
706
|
}>;
|
|
639
707
|
selectedAccount: string;
|
|
640
|
-
}) => Record<string,
|
|
708
|
+
}) => Record<string, {
|
|
709
|
+
accountGroupId: AccountGroupId;
|
|
710
|
+
type: InternalAccount['type'];
|
|
711
|
+
accountId: string;
|
|
712
|
+
}>) & {
|
|
641
713
|
clearCache: () => void;
|
|
642
714
|
resultsCount: () => number;
|
|
643
715
|
resetResultsCount: () => void;
|
|
644
716
|
};
|
|
645
|
-
lastResult: () => Record<string,
|
|
717
|
+
lastResult: () => Record<string, {
|
|
718
|
+
accountGroupId: AccountGroupId;
|
|
719
|
+
type: InternalAccount['type'];
|
|
720
|
+
accountId: string;
|
|
721
|
+
}>;
|
|
646
722
|
dependencies: [(state: AssetListState) => {
|
|
647
723
|
wallets: {
|
|
648
724
|
[walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-selectors.d.mts","sourceRoot":"","sources":["../../src/selectors/token-selectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,8BAA8B;AAC5D,OAAO,KAAK,EAAE,0BAA0B,EAAE,0CAA0C;AACpF,OAAO,KAAK,EAAE,uBAAuB,EAAE,sCAAsC;AAE7E,OAAO,KAAK,EAAE,YAAY,EAAE,qCAAqC;AACjE,OAAO,EAAmC,KAAK,GAAG,EAAE,wBAAwB;AAI5E,OAAO,KAAK,EAAE,iBAAiB,EAAE,sCAAkC;AACnE,OAAO,KAAK,EAAE,+BAA+B,EAAE,gDAAsC;AACrF,OAAO,KAAK,EAAE,oCAAoC,EAAE,qDAA2C;AAC/F,OAAO,KAAK,EAAE,iCAAiC,EAAE,kDAAwC;AAEzF,OAAO,KAAK,EAAE,4BAA4B,EAAE,uCAAmC;AAC/E,OAAO,KAAK,EAAE,KAAK,EAAE,yBAAyB,EA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