@metamask-previews/assets-controllers 47.0.0-preview-c96fc296 → 47.0.0-preview-9a5238f
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 +2 -2
- package/dist/AccountTrackerController.d.mts +2 -2
- package/dist/CurrencyRateController.d.cts +2 -2
- package/dist/CurrencyRateController.d.mts +2 -2
- package/dist/TokenBalancesController.d.cts +2 -2
- package/dist/TokenBalancesController.d.mts +2 -2
- package/dist/TokenDetectionController.d.cts +2 -2
- package/dist/TokenDetectionController.d.mts +2 -2
- package/dist/TokenListController.d.cts +2 -2
- package/dist/TokenListController.d.mts +2 -2
- package/dist/TokenRatesController.d.cts +2 -2
- package/dist/TokenRatesController.d.mts +2 -2
- package/dist/token-prices-service/codefi-v2.d.cts +1 -1
- package/dist/token-prices-service/codefi-v2.d.mts +1 -1
- package/package.json +3 -3
|
@@ -65,8 +65,8 @@ type AccountTrackerPollingInput = {
|
|
|
65
65
|
networkClientId: NetworkClientId;
|
|
66
66
|
};
|
|
67
67
|
declare const AccountTrackerController_base: (abstract new (...args: any[]) => {
|
|
68
|
-
readonly "__#
|
|
69
|
-
"__#
|
|
68
|
+
readonly "__#15@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
69
|
+
"__#15@#intervalLength": number | undefined;
|
|
70
70
|
setIntervalLength(intervalLength: number): void;
|
|
71
71
|
getIntervalLength(): number | undefined;
|
|
72
72
|
_startPolling(input: AccountTrackerPollingInput): void;
|
|
@@ -65,8 +65,8 @@ type AccountTrackerPollingInput = {
|
|
|
65
65
|
networkClientId: NetworkClientId;
|
|
66
66
|
};
|
|
67
67
|
declare const AccountTrackerController_base: (abstract new (...args: any[]) => {
|
|
68
|
-
readonly "__#
|
|
69
|
-
"__#
|
|
68
|
+
readonly "__#15@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
69
|
+
"__#15@#intervalLength": number | undefined;
|
|
70
70
|
setIntervalLength(intervalLength: number): void;
|
|
71
71
|
getIntervalLength(): number | undefined;
|
|
72
72
|
_startPolling(input: AccountTrackerPollingInput): void;
|
|
@@ -29,8 +29,8 @@ type CurrencyRatePollingInput = {
|
|
|
29
29
|
nativeCurrencies: string[];
|
|
30
30
|
};
|
|
31
31
|
declare const CurrencyRateController_base: (abstract new (...args: any[]) => {
|
|
32
|
-
readonly "__#
|
|
33
|
-
"__#
|
|
32
|
+
readonly "__#15@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
33
|
+
"__#15@#intervalLength": number | undefined;
|
|
34
34
|
setIntervalLength(intervalLength: number): void;
|
|
35
35
|
getIntervalLength(): number | undefined;
|
|
36
36
|
_startPolling(input: CurrencyRatePollingInput): void;
|
|
@@ -29,8 +29,8 @@ type CurrencyRatePollingInput = {
|
|
|
29
29
|
nativeCurrencies: string[];
|
|
30
30
|
};
|
|
31
31
|
declare const CurrencyRateController_base: (abstract new (...args: any[]) => {
|
|
32
|
-
readonly "__#
|
|
33
|
-
"__#
|
|
32
|
+
readonly "__#15@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
33
|
+
"__#15@#intervalLength": number | undefined;
|
|
34
34
|
setIntervalLength(intervalLength: number): void;
|
|
35
35
|
getIntervalLength(): number | undefined;
|
|
36
36
|
_startPolling(input: CurrencyRatePollingInput): void;
|
|
@@ -45,8 +45,8 @@ export type TokenBalancesPollingInput = {
|
|
|
45
45
|
chainId: Hex;
|
|
46
46
|
};
|
|
47
47
|
declare const TokenBalancesController_base: (abstract new (...args: any[]) => {
|
|
48
|
-
readonly "__#
|
|
49
|
-
"__#
|
|
48
|
+
readonly "__#15@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
49
|
+
"__#15@#intervalLength": number | undefined;
|
|
50
50
|
setIntervalLength(intervalLength: number): void;
|
|
51
51
|
getIntervalLength(): number | undefined;
|
|
52
52
|
_startPolling(input: TokenBalancesPollingInput): void;
|
|
@@ -45,8 +45,8 @@ export type TokenBalancesPollingInput = {
|
|
|
45
45
|
chainId: Hex;
|
|
46
46
|
};
|
|
47
47
|
declare const TokenBalancesController_base: (abstract new (...args: any[]) => {
|
|
48
|
-
readonly "__#
|
|
49
|
-
"__#
|
|
48
|
+
readonly "__#15@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
49
|
+
"__#15@#intervalLength": number | undefined;
|
|
50
50
|
setIntervalLength(intervalLength: number): void;
|
|
51
51
|
getIntervalLength(): number | undefined;
|
|
52
52
|
_startPolling(input: TokenBalancesPollingInput): void;
|
|
@@ -34,8 +34,8 @@ type TokenDetectionPollingInput = {
|
|
|
34
34
|
address: string;
|
|
35
35
|
};
|
|
36
36
|
declare const TokenDetectionController_base: (abstract new (...args: any[]) => {
|
|
37
|
-
readonly "__#
|
|
38
|
-
"__#
|
|
37
|
+
readonly "__#15@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
38
|
+
"__#15@#intervalLength": number | undefined;
|
|
39
39
|
setIntervalLength(intervalLength: number): void;
|
|
40
40
|
getIntervalLength(): number | undefined;
|
|
41
41
|
_startPolling(input: TokenDetectionPollingInput): void;
|
|
@@ -34,8 +34,8 @@ type TokenDetectionPollingInput = {
|
|
|
34
34
|
address: string;
|
|
35
35
|
};
|
|
36
36
|
declare const TokenDetectionController_base: (abstract new (...args: any[]) => {
|
|
37
|
-
readonly "__#
|
|
38
|
-
"__#
|
|
37
|
+
readonly "__#15@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
38
|
+
"__#15@#intervalLength": number | undefined;
|
|
39
39
|
setIntervalLength(intervalLength: number): void;
|
|
40
40
|
getIntervalLength(): number | undefined;
|
|
41
41
|
_startPolling(input: TokenDetectionPollingInput): void;
|
|
@@ -37,8 +37,8 @@ type TokenListPollingInput = {
|
|
|
37
37
|
chainId: Hex;
|
|
38
38
|
};
|
|
39
39
|
declare const TokenListController_base: (abstract new (...args: any[]) => {
|
|
40
|
-
readonly "__#
|
|
41
|
-
"__#
|
|
40
|
+
readonly "__#15@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
41
|
+
"__#15@#intervalLength": number | undefined;
|
|
42
42
|
setIntervalLength(intervalLength: number): void;
|
|
43
43
|
getIntervalLength(): number | undefined;
|
|
44
44
|
_startPolling(input: TokenListPollingInput): void;
|
|
@@ -37,8 +37,8 @@ type TokenListPollingInput = {
|
|
|
37
37
|
chainId: Hex;
|
|
38
38
|
};
|
|
39
39
|
declare const TokenListController_base: (abstract new (...args: any[]) => {
|
|
40
|
-
readonly "__#
|
|
41
|
-
"__#
|
|
40
|
+
readonly "__#15@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
41
|
+
"__#15@#intervalLength": number | undefined;
|
|
42
42
|
setIntervalLength(intervalLength: number): void;
|
|
43
43
|
getIntervalLength(): number | undefined;
|
|
44
44
|
_startPolling(input: TokenListPollingInput): void;
|
|
@@ -108,8 +108,8 @@ export type TokenRatesPollingInput = {
|
|
|
108
108
|
chainId: Hex;
|
|
109
109
|
};
|
|
110
110
|
declare const TokenRatesController_base: (abstract new (...args: any[]) => {
|
|
111
|
-
readonly "__#
|
|
112
|
-
"__#
|
|
111
|
+
readonly "__#15@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
112
|
+
"__#15@#intervalLength": number | undefined;
|
|
113
113
|
setIntervalLength(intervalLength: number): void;
|
|
114
114
|
getIntervalLength(): number | undefined;
|
|
115
115
|
_startPolling(input: TokenRatesPollingInput): void;
|
|
@@ -108,8 +108,8 @@ export type TokenRatesPollingInput = {
|
|
|
108
108
|
chainId: Hex;
|
|
109
109
|
};
|
|
110
110
|
declare const TokenRatesController_base: (abstract new (...args: any[]) => {
|
|
111
|
-
readonly "__#
|
|
112
|
-
"__#
|
|
111
|
+
readonly "__#15@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
112
|
+
"__#15@#intervalLength": number | undefined;
|
|
113
113
|
setIntervalLength(intervalLength: number): void;
|
|
114
114
|
getIntervalLength(): number | undefined;
|
|
115
115
|
_startPolling(input: TokenRatesPollingInput): void;
|
|
@@ -106,7 +106,7 @@ export declare class CodefiTokenPricesServiceV2 implements AbstractTokenPricesSe
|
|
|
106
106
|
* takes.
|
|
107
107
|
* @returns What {@link ServicePolicy.onDegraded} returns.
|
|
108
108
|
*/
|
|
109
|
-
onDegraded(...args: Parameters<ServicePolicy['onDegraded']>):
|
|
109
|
+
onDegraded(...args: Parameters<ServicePolicy['onDegraded']>): import("cockatiel").IDisposable;
|
|
110
110
|
/**
|
|
111
111
|
* Retrieves prices in the given currency for the tokens identified by the
|
|
112
112
|
* given addresses which are expected to live on the given chain.
|
|
@@ -106,7 +106,7 @@ export declare class CodefiTokenPricesServiceV2 implements AbstractTokenPricesSe
|
|
|
106
106
|
* takes.
|
|
107
107
|
* @returns What {@link ServicePolicy.onDegraded} returns.
|
|
108
108
|
*/
|
|
109
|
-
onDegraded(...args: Parameters<ServicePolicy['onDegraded']>):
|
|
109
|
+
onDegraded(...args: Parameters<ServicePolicy['onDegraded']>): import("cockatiel").IDisposable;
|
|
110
110
|
/**
|
|
111
111
|
* Retrieves prices in the given currency for the tokens identified by the
|
|
112
112
|
* given addresses which are expected to live on the given chain.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/assets-controllers",
|
|
3
|
-
"version": "47.0.0-preview-
|
|
3
|
+
"version": "47.0.0-preview-9a5238f",
|
|
4
4
|
"description": "Controllers which manage interactions involving ERC-20, ERC-721, and ERC-1155 tokens (including NFTs)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MetaMask",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@metamask/polling-controller": "^12.0.2",
|
|
64
64
|
"@metamask/rpc-errors": "^7.0.2",
|
|
65
65
|
"@metamask/snaps-utils": "^8.9.0",
|
|
66
|
-
"@metamask/utils": "^11.0
|
|
66
|
+
"@metamask/utils": "^11.1.0",
|
|
67
67
|
"@types/bn.js": "^5.1.5",
|
|
68
68
|
"@types/uuid": "^8.3.0",
|
|
69
69
|
"async-mutex": "^0.5.0",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@metamask/preferences-controller": "^15.0.1",
|
|
89
89
|
"@metamask/providers": "^18.1.1",
|
|
90
90
|
"@metamask/snaps-controllers": "^9.10.0",
|
|
91
|
-
"@metamask/snaps-sdk": "^6.
|
|
91
|
+
"@metamask/snaps-sdk": "^6.16.0",
|
|
92
92
|
"@types/jest": "^27.4.1",
|
|
93
93
|
"@types/lodash": "^4.14.191",
|
|
94
94
|
"@types/node": "^16.18.54",
|