@metamask-previews/assets-controllers 44.0.0-preview-913143f → 44.0.1-preview-ff9209e
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 +10 -1
- package/dist/AccountTrackerController.d.cts +4 -4
- package/dist/AccountTrackerController.d.mts +4 -4
- package/dist/CurrencyRateController.d.cts +4 -4
- package/dist/CurrencyRateController.d.mts +4 -4
- package/dist/TokenBalancesController.d.cts +4 -4
- package/dist/TokenBalancesController.d.mts +4 -4
- package/dist/TokenDetectionController.d.cts +4 -4
- package/dist/TokenDetectionController.d.mts +4 -4
- package/dist/TokenListController.d.cts +4 -4
- package/dist/TokenListController.d.mts +4 -4
- package/dist/TokenRatesController.d.cts +4 -4
- package/dist/TokenRatesController.d.mts +4 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [44.0.1]
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Fixes an issue where the token detection was unnecessarily falling back to an RPC approach, causing redundant detections. ([#4928](https://github.com/MetaMask/core/pull/4928))
|
|
15
|
+
|
|
16
|
+
- Fixes an issue where `TokensController.addTokens` was not respecting the network client id passed to it. ([#4940](https://github.com/MetaMask/core/pull/4940))
|
|
17
|
+
|
|
10
18
|
## [44.0.0]
|
|
11
19
|
|
|
12
20
|
### Changed
|
|
@@ -1230,7 +1238,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
1230
1238
|
|
|
1231
1239
|
- Use Ethers for AssetsContractController ([#845](https://github.com/MetaMask/core/pull/845))
|
|
1232
1240
|
|
|
1233
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@44.0.
|
|
1241
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@44.0.1...HEAD
|
|
1242
|
+
[44.0.1]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@44.0.0...@metamask/assets-controllers@44.0.1
|
|
1234
1243
|
[44.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@43.1.1...@metamask/assets-controllers@44.0.0
|
|
1235
1244
|
[43.1.1]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@43.1.0...@metamask/assets-controllers@43.1.1
|
|
1236
1245
|
[43.1.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@43.0.0...@metamask/assets-controllers@43.1.0
|
|
@@ -65,14 +65,14 @@ type AccountTrackerPollingInput = {
|
|
|
65
65
|
networkClientId: NetworkClientId;
|
|
66
66
|
};
|
|
67
67
|
declare const AccountTrackerController_base: (abstract new (...args: any[]) => {
|
|
68
|
-
readonly "__#
|
|
69
|
-
"__#
|
|
68
|
+
readonly "__#787811@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
69
|
+
"__#787811@#intervalLength": number | undefined;
|
|
70
70
|
setIntervalLength(intervalLength: number): void;
|
|
71
71
|
getIntervalLength(): number | undefined;
|
|
72
72
|
_startPolling(input: AccountTrackerPollingInput): void;
|
|
73
73
|
_stopPollingByPollingTokenSetId(key: string): void;
|
|
74
|
-
readonly "__#
|
|
75
|
-
"__#
|
|
74
|
+
readonly "__#787803@#pollingTokenSets": Map<string, Set<string>>;
|
|
75
|
+
"__#787803@#callbacks": Map<string, Set<(input: AccountTrackerPollingInput) => void>>;
|
|
76
76
|
_executePoll(input: AccountTrackerPollingInput): Promise<void>;
|
|
77
77
|
startPolling(input: AccountTrackerPollingInput): string;
|
|
78
78
|
stopAllPolling(): void;
|
|
@@ -65,14 +65,14 @@ type AccountTrackerPollingInput = {
|
|
|
65
65
|
networkClientId: NetworkClientId;
|
|
66
66
|
};
|
|
67
67
|
declare const AccountTrackerController_base: (abstract new (...args: any[]) => {
|
|
68
|
-
readonly "__#
|
|
69
|
-
"__#
|
|
68
|
+
readonly "__#787811@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
69
|
+
"__#787811@#intervalLength": number | undefined;
|
|
70
70
|
setIntervalLength(intervalLength: number): void;
|
|
71
71
|
getIntervalLength(): number | undefined;
|
|
72
72
|
_startPolling(input: AccountTrackerPollingInput): void;
|
|
73
73
|
_stopPollingByPollingTokenSetId(key: string): void;
|
|
74
|
-
readonly "__#
|
|
75
|
-
"__#
|
|
74
|
+
readonly "__#787803@#pollingTokenSets": Map<string, Set<string>>;
|
|
75
|
+
"__#787803@#callbacks": Map<string, Set<(input: AccountTrackerPollingInput) => void>>;
|
|
76
76
|
_executePoll(input: AccountTrackerPollingInput): Promise<void>;
|
|
77
77
|
startPolling(input: AccountTrackerPollingInput): string;
|
|
78
78
|
stopAllPolling(): void;
|
|
@@ -29,14 +29,14 @@ type CurrencyRatePollingInput = {
|
|
|
29
29
|
nativeCurrencies: string[];
|
|
30
30
|
};
|
|
31
31
|
declare const CurrencyRateController_base: (abstract new (...args: any[]) => {
|
|
32
|
-
readonly "__#
|
|
33
|
-
"__#
|
|
32
|
+
readonly "__#787811@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
33
|
+
"__#787811@#intervalLength": number | undefined;
|
|
34
34
|
setIntervalLength(intervalLength: number): void;
|
|
35
35
|
getIntervalLength(): number | undefined;
|
|
36
36
|
_startPolling(input: CurrencyRatePollingInput): void;
|
|
37
37
|
_stopPollingByPollingTokenSetId(key: string): void;
|
|
38
|
-
readonly "__#
|
|
39
|
-
"__#
|
|
38
|
+
readonly "__#787803@#pollingTokenSets": Map<string, Set<string>>;
|
|
39
|
+
"__#787803@#callbacks": Map<string, Set<(input: CurrencyRatePollingInput) => void>>;
|
|
40
40
|
_executePoll(input: CurrencyRatePollingInput): Promise<void>;
|
|
41
41
|
startPolling(input: CurrencyRatePollingInput): string;
|
|
42
42
|
stopAllPolling(): void;
|
|
@@ -29,14 +29,14 @@ type CurrencyRatePollingInput = {
|
|
|
29
29
|
nativeCurrencies: string[];
|
|
30
30
|
};
|
|
31
31
|
declare const CurrencyRateController_base: (abstract new (...args: any[]) => {
|
|
32
|
-
readonly "__#
|
|
33
|
-
"__#
|
|
32
|
+
readonly "__#787811@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
33
|
+
"__#787811@#intervalLength": number | undefined;
|
|
34
34
|
setIntervalLength(intervalLength: number): void;
|
|
35
35
|
getIntervalLength(): number | undefined;
|
|
36
36
|
_startPolling(input: CurrencyRatePollingInput): void;
|
|
37
37
|
_stopPollingByPollingTokenSetId(key: string): void;
|
|
38
|
-
readonly "__#
|
|
39
|
-
"__#
|
|
38
|
+
readonly "__#787803@#pollingTokenSets": Map<string, Set<string>>;
|
|
39
|
+
"__#787803@#callbacks": Map<string, Set<(input: CurrencyRatePollingInput) => void>>;
|
|
40
40
|
_executePoll(input: CurrencyRatePollingInput): Promise<void>;
|
|
41
41
|
startPolling(input: CurrencyRatePollingInput): string;
|
|
42
42
|
stopAllPolling(): void;
|
|
@@ -45,14 +45,14 @@ export type TokenBalancesPollingInput = {
|
|
|
45
45
|
chainId: Hex;
|
|
46
46
|
};
|
|
47
47
|
declare const TokenBalancesController_base: (abstract new (...args: any[]) => {
|
|
48
|
-
readonly "__#
|
|
49
|
-
"__#
|
|
48
|
+
readonly "__#787811@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
49
|
+
"__#787811@#intervalLength": number | undefined;
|
|
50
50
|
setIntervalLength(intervalLength: number): void;
|
|
51
51
|
getIntervalLength(): number | undefined;
|
|
52
52
|
_startPolling(input: TokenBalancesPollingInput): void;
|
|
53
53
|
_stopPollingByPollingTokenSetId(key: string): void;
|
|
54
|
-
readonly "__#
|
|
55
|
-
"__#
|
|
54
|
+
readonly "__#787803@#pollingTokenSets": Map<string, Set<string>>;
|
|
55
|
+
"__#787803@#callbacks": Map<string, Set<(input: TokenBalancesPollingInput) => void>>;
|
|
56
56
|
_executePoll(input: TokenBalancesPollingInput): Promise<void>;
|
|
57
57
|
startPolling(input: TokenBalancesPollingInput): string;
|
|
58
58
|
stopAllPolling(): void;
|
|
@@ -45,14 +45,14 @@ export type TokenBalancesPollingInput = {
|
|
|
45
45
|
chainId: Hex;
|
|
46
46
|
};
|
|
47
47
|
declare const TokenBalancesController_base: (abstract new (...args: any[]) => {
|
|
48
|
-
readonly "__#
|
|
49
|
-
"__#
|
|
48
|
+
readonly "__#787811@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
49
|
+
"__#787811@#intervalLength": number | undefined;
|
|
50
50
|
setIntervalLength(intervalLength: number): void;
|
|
51
51
|
getIntervalLength(): number | undefined;
|
|
52
52
|
_startPolling(input: TokenBalancesPollingInput): void;
|
|
53
53
|
_stopPollingByPollingTokenSetId(key: string): void;
|
|
54
|
-
readonly "__#
|
|
55
|
-
"__#
|
|
54
|
+
readonly "__#787803@#pollingTokenSets": Map<string, Set<string>>;
|
|
55
|
+
"__#787803@#callbacks": Map<string, Set<(input: TokenBalancesPollingInput) => void>>;
|
|
56
56
|
_executePoll(input: TokenBalancesPollingInput): Promise<void>;
|
|
57
57
|
startPolling(input: TokenBalancesPollingInput): string;
|
|
58
58
|
stopAllPolling(): void;
|
|
@@ -34,14 +34,14 @@ type TokenDetectionPollingInput = {
|
|
|
34
34
|
address: string;
|
|
35
35
|
};
|
|
36
36
|
declare const TokenDetectionController_base: (abstract new (...args: any[]) => {
|
|
37
|
-
readonly "__#
|
|
38
|
-
"__#
|
|
37
|
+
readonly "__#787811@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
38
|
+
"__#787811@#intervalLength": number | undefined;
|
|
39
39
|
setIntervalLength(intervalLength: number): void;
|
|
40
40
|
getIntervalLength(): number | undefined;
|
|
41
41
|
_startPolling(input: TokenDetectionPollingInput): void;
|
|
42
42
|
_stopPollingByPollingTokenSetId(key: string): void;
|
|
43
|
-
readonly "__#
|
|
44
|
-
"__#
|
|
43
|
+
readonly "__#787803@#pollingTokenSets": Map<string, Set<string>>;
|
|
44
|
+
"__#787803@#callbacks": Map<string, Set<(input: TokenDetectionPollingInput) => void>>;
|
|
45
45
|
_executePoll(input: TokenDetectionPollingInput): Promise<void>;
|
|
46
46
|
startPolling(input: TokenDetectionPollingInput): string;
|
|
47
47
|
stopAllPolling(): void;
|
|
@@ -34,14 +34,14 @@ type TokenDetectionPollingInput = {
|
|
|
34
34
|
address: string;
|
|
35
35
|
};
|
|
36
36
|
declare const TokenDetectionController_base: (abstract new (...args: any[]) => {
|
|
37
|
-
readonly "__#
|
|
38
|
-
"__#
|
|
37
|
+
readonly "__#787811@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
38
|
+
"__#787811@#intervalLength": number | undefined;
|
|
39
39
|
setIntervalLength(intervalLength: number): void;
|
|
40
40
|
getIntervalLength(): number | undefined;
|
|
41
41
|
_startPolling(input: TokenDetectionPollingInput): void;
|
|
42
42
|
_stopPollingByPollingTokenSetId(key: string): void;
|
|
43
|
-
readonly "__#
|
|
44
|
-
"__#
|
|
43
|
+
readonly "__#787803@#pollingTokenSets": Map<string, Set<string>>;
|
|
44
|
+
"__#787803@#callbacks": Map<string, Set<(input: TokenDetectionPollingInput) => void>>;
|
|
45
45
|
_executePoll(input: TokenDetectionPollingInput): Promise<void>;
|
|
46
46
|
startPolling(input: TokenDetectionPollingInput): string;
|
|
47
47
|
stopAllPolling(): void;
|
|
@@ -37,14 +37,14 @@ type TokenListPollingInput = {
|
|
|
37
37
|
chainId: Hex;
|
|
38
38
|
};
|
|
39
39
|
declare const TokenListController_base: (abstract new (...args: any[]) => {
|
|
40
|
-
readonly "__#
|
|
41
|
-
"__#
|
|
40
|
+
readonly "__#787811@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
41
|
+
"__#787811@#intervalLength": number | undefined;
|
|
42
42
|
setIntervalLength(intervalLength: number): void;
|
|
43
43
|
getIntervalLength(): number | undefined;
|
|
44
44
|
_startPolling(input: TokenListPollingInput): void;
|
|
45
45
|
_stopPollingByPollingTokenSetId(key: string): void;
|
|
46
|
-
readonly "__#
|
|
47
|
-
"__#
|
|
46
|
+
readonly "__#787803@#pollingTokenSets": Map<string, Set<string>>;
|
|
47
|
+
"__#787803@#callbacks": Map<string, Set<(input: TokenListPollingInput) => void>>;
|
|
48
48
|
_executePoll(input: TokenListPollingInput): Promise<void>;
|
|
49
49
|
startPolling(input: TokenListPollingInput): string;
|
|
50
50
|
stopAllPolling(): void;
|
|
@@ -37,14 +37,14 @@ type TokenListPollingInput = {
|
|
|
37
37
|
chainId: Hex;
|
|
38
38
|
};
|
|
39
39
|
declare const TokenListController_base: (abstract new (...args: any[]) => {
|
|
40
|
-
readonly "__#
|
|
41
|
-
"__#
|
|
40
|
+
readonly "__#787811@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
41
|
+
"__#787811@#intervalLength": number | undefined;
|
|
42
42
|
setIntervalLength(intervalLength: number): void;
|
|
43
43
|
getIntervalLength(): number | undefined;
|
|
44
44
|
_startPolling(input: TokenListPollingInput): void;
|
|
45
45
|
_stopPollingByPollingTokenSetId(key: string): void;
|
|
46
|
-
readonly "__#
|
|
47
|
-
"__#
|
|
46
|
+
readonly "__#787803@#pollingTokenSets": Map<string, Set<string>>;
|
|
47
|
+
"__#787803@#callbacks": Map<string, Set<(input: TokenListPollingInput) => void>>;
|
|
48
48
|
_executePoll(input: TokenListPollingInput): Promise<void>;
|
|
49
49
|
startPolling(input: TokenListPollingInput): string;
|
|
50
50
|
stopAllPolling(): void;
|
|
@@ -108,14 +108,14 @@ export type TokenRatesPollingInput = {
|
|
|
108
108
|
chainId: Hex;
|
|
109
109
|
};
|
|
110
110
|
declare const TokenRatesController_base: (abstract new (...args: any[]) => {
|
|
111
|
-
readonly "__#
|
|
112
|
-
"__#
|
|
111
|
+
readonly "__#787811@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
112
|
+
"__#787811@#intervalLength": number | undefined;
|
|
113
113
|
setIntervalLength(intervalLength: number): void;
|
|
114
114
|
getIntervalLength(): number | undefined;
|
|
115
115
|
_startPolling(input: TokenRatesPollingInput): void;
|
|
116
116
|
_stopPollingByPollingTokenSetId(key: string): void;
|
|
117
|
-
readonly "__#
|
|
118
|
-
"__#
|
|
117
|
+
readonly "__#787803@#pollingTokenSets": Map<string, Set<string>>;
|
|
118
|
+
"__#787803@#callbacks": Map<string, Set<(input: TokenRatesPollingInput) => void>>;
|
|
119
119
|
_executePoll(input: TokenRatesPollingInput): Promise<void>;
|
|
120
120
|
startPolling(input: TokenRatesPollingInput): string;
|
|
121
121
|
stopAllPolling(): void;
|
|
@@ -108,14 +108,14 @@ export type TokenRatesPollingInput = {
|
|
|
108
108
|
chainId: Hex;
|
|
109
109
|
};
|
|
110
110
|
declare const TokenRatesController_base: (abstract new (...args: any[]) => {
|
|
111
|
-
readonly "__#
|
|
112
|
-
"__#
|
|
111
|
+
readonly "__#787811@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
112
|
+
"__#787811@#intervalLength": number | undefined;
|
|
113
113
|
setIntervalLength(intervalLength: number): void;
|
|
114
114
|
getIntervalLength(): number | undefined;
|
|
115
115
|
_startPolling(input: TokenRatesPollingInput): void;
|
|
116
116
|
_stopPollingByPollingTokenSetId(key: string): void;
|
|
117
|
-
readonly "__#
|
|
118
|
-
"__#
|
|
117
|
+
readonly "__#787803@#pollingTokenSets": Map<string, Set<string>>;
|
|
118
|
+
"__#787803@#callbacks": Map<string, Set<(input: TokenRatesPollingInput) => void>>;
|
|
119
119
|
_executePoll(input: TokenRatesPollingInput): Promise<void>;
|
|
120
120
|
startPolling(input: TokenRatesPollingInput): string;
|
|
121
121
|
stopAllPolling(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/assets-controllers",
|
|
3
|
-
"version": "44.0.
|
|
3
|
+
"version": "44.0.1-preview-ff9209e",
|
|
4
4
|
"description": "Controllers which manage interactions involving ERC-20, ERC-721, and ERC-1155 tokens (including NFTs)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MetaMask",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@metamask/approval-controller": "^7.1.1",
|
|
79
79
|
"@metamask/auto-changelog": "^3.4.4",
|
|
80
80
|
"@metamask/ethjs-provider-http": "^0.3.0",
|
|
81
|
-
"@metamask/keyring-api": "^
|
|
81
|
+
"@metamask/keyring-api": "^10.1.0",
|
|
82
82
|
"@metamask/keyring-controller": "^18.0.0",
|
|
83
83
|
"@metamask/network-controller": "^22.0.2",
|
|
84
84
|
"@metamask/preferences-controller": "^14.0.0",
|