@metamask-previews/assets-controllers 38.3.0-preview-ada451da → 38.3.0-preview-00a41cb8
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/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/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 +1 -1
|
@@ -62,14 +62,14 @@ type AccountTrackerPollingInput = {
|
|
|
62
62
|
networkClientId: NetworkClientId;
|
|
63
63
|
};
|
|
64
64
|
declare const AccountTrackerController_base: (abstract new (...args: any[]) => {
|
|
65
|
-
readonly "__#
|
|
66
|
-
"__#
|
|
65
|
+
readonly "__#785504@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
66
|
+
"__#785504@#intervalLength": number | undefined;
|
|
67
67
|
setIntervalLength(intervalLength: number): void;
|
|
68
68
|
getIntervalLength(): number | undefined;
|
|
69
69
|
_startPolling(input: AccountTrackerPollingInput): void;
|
|
70
70
|
_stopPollingByPollingTokenSetId(key: string): void;
|
|
71
|
-
readonly "__#
|
|
72
|
-
"__#
|
|
71
|
+
readonly "__#785496@#pollingTokenSets": Map<string, Set<string>>;
|
|
72
|
+
"__#785496@#callbacks": Map<string, Set<(input: AccountTrackerPollingInput) => void>>;
|
|
73
73
|
_executePoll(input: AccountTrackerPollingInput): Promise<void>;
|
|
74
74
|
/**
|
|
75
75
|
* The action that can be performed to get the state of the {@link AccountTrackerController}.
|
|
@@ -62,14 +62,14 @@ type AccountTrackerPollingInput = {
|
|
|
62
62
|
networkClientId: NetworkClientId;
|
|
63
63
|
};
|
|
64
64
|
declare const AccountTrackerController_base: (abstract new (...args: any[]) => {
|
|
65
|
-
readonly "__#
|
|
66
|
-
"__#
|
|
65
|
+
readonly "__#785504@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
66
|
+
"__#785504@#intervalLength": number | undefined;
|
|
67
67
|
setIntervalLength(intervalLength: number): void;
|
|
68
68
|
getIntervalLength(): number | undefined;
|
|
69
69
|
_startPolling(input: AccountTrackerPollingInput): void;
|
|
70
70
|
_stopPollingByPollingTokenSetId(key: string): void;
|
|
71
|
-
readonly "__#
|
|
72
|
-
"__#
|
|
71
|
+
readonly "__#785496@#pollingTokenSets": Map<string, Set<string>>;
|
|
72
|
+
"__#785496@#callbacks": Map<string, Set<(input: AccountTrackerPollingInput) => void>>;
|
|
73
73
|
_executePoll(input: AccountTrackerPollingInput): Promise<void>;
|
|
74
74
|
/**
|
|
75
75
|
* The action that can be performed to get the state of the {@link AccountTrackerController}.
|
|
@@ -29,14 +29,14 @@ type CurrencyRatePollingInput = {
|
|
|
29
29
|
networkClientId: NetworkClientId;
|
|
30
30
|
};
|
|
31
31
|
declare const CurrencyRateController_base: (abstract new (...args: any[]) => {
|
|
32
|
-
readonly "__#
|
|
33
|
-
"__#
|
|
32
|
+
readonly "__#785504@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
33
|
+
"__#785504@#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 "__#785496@#pollingTokenSets": Map<string, Set<string>>;
|
|
39
|
+
"__#785496@#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
|
networkClientId: NetworkClientId;
|
|
30
30
|
};
|
|
31
31
|
declare const CurrencyRateController_base: (abstract new (...args: any[]) => {
|
|
32
|
-
readonly "__#
|
|
33
|
-
"__#
|
|
32
|
+
readonly "__#785504@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
33
|
+
"__#785504@#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 "__#785496@#pollingTokenSets": Map<string, Set<string>>;
|
|
39
|
+
"__#785496@#callbacks": Map<string, Set<(input: CurrencyRatePollingInput) => void>>;
|
|
40
40
|
_executePoll(input: CurrencyRatePollingInput): Promise<void>;
|
|
41
41
|
startPolling(input: CurrencyRatePollingInput): string;
|
|
42
42
|
stopAllPolling(): void;
|
|
@@ -25,14 +25,14 @@ type TokenDetectionPollingInput = {
|
|
|
25
25
|
address: string;
|
|
26
26
|
};
|
|
27
27
|
declare const TokenDetectionController_base: (abstract new (...args: any[]) => {
|
|
28
|
-
readonly "__#
|
|
29
|
-
"__#
|
|
28
|
+
readonly "__#785504@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
29
|
+
"__#785504@#intervalLength": number | undefined;
|
|
30
30
|
setIntervalLength(intervalLength: number): void;
|
|
31
31
|
getIntervalLength(): number | undefined;
|
|
32
32
|
_startPolling(input: TokenDetectionPollingInput): void;
|
|
33
33
|
_stopPollingByPollingTokenSetId(key: string): void;
|
|
34
|
-
readonly "__#
|
|
35
|
-
"__#
|
|
34
|
+
readonly "__#785496@#pollingTokenSets": Map<string, Set<string>>;
|
|
35
|
+
"__#785496@#callbacks": Map<string, Set<(input: TokenDetectionPollingInput) => void>>;
|
|
36
36
|
_executePoll(input: TokenDetectionPollingInput): Promise<void>;
|
|
37
37
|
startPolling(input: TokenDetectionPollingInput): string;
|
|
38
38
|
stopAllPolling(): void;
|
|
@@ -25,14 +25,14 @@ type TokenDetectionPollingInput = {
|
|
|
25
25
|
address: string;
|
|
26
26
|
};
|
|
27
27
|
declare const TokenDetectionController_base: (abstract new (...args: any[]) => {
|
|
28
|
-
readonly "__#
|
|
29
|
-
"__#
|
|
28
|
+
readonly "__#785504@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
29
|
+
"__#785504@#intervalLength": number | undefined;
|
|
30
30
|
setIntervalLength(intervalLength: number): void;
|
|
31
31
|
getIntervalLength(): number | undefined;
|
|
32
32
|
_startPolling(input: TokenDetectionPollingInput): void;
|
|
33
33
|
_stopPollingByPollingTokenSetId(key: string): void;
|
|
34
|
-
readonly "__#
|
|
35
|
-
"__#
|
|
34
|
+
readonly "__#785496@#pollingTokenSets": Map<string, Set<string>>;
|
|
35
|
+
"__#785496@#callbacks": Map<string, Set<(input: TokenDetectionPollingInput) => void>>;
|
|
36
36
|
_executePoll(input: TokenDetectionPollingInput): Promise<void>;
|
|
37
37
|
startPolling(input: TokenDetectionPollingInput): string;
|
|
38
38
|
stopAllPolling(): void;
|
|
@@ -37,14 +37,14 @@ type TokenListPollingInput = {
|
|
|
37
37
|
networkClientId: NetworkClientId;
|
|
38
38
|
};
|
|
39
39
|
declare const TokenListController_base: (abstract new (...args: any[]) => {
|
|
40
|
-
readonly "__#
|
|
41
|
-
"__#
|
|
40
|
+
readonly "__#785504@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
41
|
+
"__#785504@#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 "__#785496@#pollingTokenSets": Map<string, Set<string>>;
|
|
47
|
+
"__#785496@#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
|
networkClientId: NetworkClientId;
|
|
38
38
|
};
|
|
39
39
|
declare const TokenListController_base: (abstract new (...args: any[]) => {
|
|
40
|
-
readonly "__#
|
|
41
|
-
"__#
|
|
40
|
+
readonly "__#785504@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
41
|
+
"__#785504@#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 "__#785496@#pollingTokenSets": Map<string, Set<string>>;
|
|
47
|
+
"__#785496@#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
|
networkClientId: NetworkClientId;
|
|
109
109
|
};
|
|
110
110
|
declare const TokenRatesController_base: (abstract new (...args: any[]) => {
|
|
111
|
-
readonly "__#
|
|
112
|
-
"__#
|
|
111
|
+
readonly "__#785504@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
112
|
+
"__#785504@#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 "__#785496@#pollingTokenSets": Map<string, Set<string>>;
|
|
118
|
+
"__#785496@#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
|
networkClientId: NetworkClientId;
|
|
109
109
|
};
|
|
110
110
|
declare const TokenRatesController_base: (abstract new (...args: any[]) => {
|
|
111
|
-
readonly "__#
|
|
112
|
-
"__#
|
|
111
|
+
readonly "__#785504@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
112
|
+
"__#785504@#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 "__#785496@#pollingTokenSets": Map<string, Set<string>>;
|
|
118
|
+
"__#785496@#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": "38.3.0-preview-
|
|
3
|
+
"version": "38.3.0-preview-00a41cb8",
|
|
4
4
|
"description": "Controllers which manage interactions involving ERC-20, ERC-721, and ERC-1155 tokens (including NFTs)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MetaMask",
|