@metamask-previews/config-registry-controller 0.3.2-preview-e15374a5d → 0.3.2-preview-d3cc77e
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 +5 -0
- package/dist/config-registry-api-service/types.cjs +1 -1
- package/dist/config-registry-api-service/types.cjs.map +1 -1
- package/dist/config-registry-api-service/types.d.cts +22 -22
- package/dist/config-registry-api-service/types.d.mts +22 -22
- package/dist/config-registry-api-service/types.mjs +1 -1
- package/dist/config-registry-api-service/types.mjs.map +1 -1
- package/dist/selectors.d.cts +12 -12
- package/dist/selectors.d.mts +12 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- `RegistryNetworkConfigSchema.assets.native.coingeckoCoinId` is now optional ([#8970](https://github.com/MetaMask/core/pull/8970))
|
|
13
|
+
- The controller now accepts chains with no `assets.native.coingeckoCoinId` property in their configuration.
|
|
14
|
+
|
|
10
15
|
## [0.3.2]
|
|
11
16
|
|
|
12
17
|
### Changed
|
|
@@ -8,7 +8,7 @@ const AssetSchema = (0, superstruct_1.type)({
|
|
|
8
8
|
name: (0, superstruct_1.string)(),
|
|
9
9
|
symbol: (0, superstruct_1.string)(),
|
|
10
10
|
decimals: (0, superstruct_1.number)(),
|
|
11
|
-
coingeckoCoinId: (0, superstruct_1.string)(),
|
|
11
|
+
coingeckoCoinId: (0, superstruct_1.optional)((0, superstruct_1.string)()),
|
|
12
12
|
});
|
|
13
13
|
const AssetsSchema = (0, superstruct_1.type)({
|
|
14
14
|
listUrl: (0, superstruct_1.optional)((0, superstruct_1.string)()),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.cjs","sourceRoot":"","sources":["../../src/config-registry-api-service/types.ts"],"names":[],"mappings":";;;AACA,uDAQ+B;AAE/B,MAAM,WAAW,GAAG,IAAA,kBAAI,EAAC;IACvB,OAAO,EAAE,IAAA,oBAAM,GAAE;IACjB,QAAQ,EAAE,IAAA,oBAAM,GAAE;IAClB,IAAI,EAAE,IAAA,oBAAM,GAAE;IACd,MAAM,EAAE,IAAA,oBAAM,GAAE;IAChB,QAAQ,EAAE,IAAA,oBAAM,GAAE;IAClB,eAAe,EAAE,IAAA,oBAAM,GAAE;
|
|
1
|
+
{"version":3,"file":"types.cjs","sourceRoot":"","sources":["../../src/config-registry-api-service/types.ts"],"names":[],"mappings":";;;AACA,uDAQ+B;AAE/B,MAAM,WAAW,GAAG,IAAA,kBAAI,EAAC;IACvB,OAAO,EAAE,IAAA,oBAAM,GAAE;IACjB,QAAQ,EAAE,IAAA,oBAAM,GAAE;IAClB,IAAI,EAAE,IAAA,oBAAM,GAAE;IACd,MAAM,EAAE,IAAA,oBAAM,GAAE;IAChB,QAAQ,EAAE,IAAA,oBAAM,GAAE;IAClB,eAAe,EAAE,IAAA,sBAAQ,EAAC,IAAA,oBAAM,GAAE,CAAC;CACpC,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,IAAA,kBAAI,EAAC;IACxB,OAAO,EAAE,IAAA,sBAAQ,EAAC,IAAA,oBAAM,GAAE,CAAC;IAC3B,MAAM,EAAE,WAAW;IACnB,UAAU,EAAE,IAAA,sBAAQ,EAAC,WAAW,CAAC;CAClC,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,IAAA,kBAAI,EAAC;IAC7B,GAAG,EAAE,IAAA,oBAAM,GAAE;IACb,IAAI,EAAE,IAAA,oBAAM,GAAE;IACd,eAAe,EAAE,IAAA,oBAAM,GAAE;CAC1B,CAAC,CAAC;AAEH,MAAM,kBAAkB,GAAG,IAAA,kBAAI,EAAC;IAC9B,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,IAAA,mBAAK,EAAC,IAAA,oBAAM,GAAE,CAAC;CAC3B,CAAC,CAAC;AAEH,MAAM,uBAAuB,GAAG,IAAA,kBAAI,EAAC;IACnC,OAAO,EAAE,IAAA,oBAAM,GAAE;IACjB,SAAS,EAAE,IAAA,mBAAK,EAAC,IAAA,oBAAM,GAAE,CAAC;CAC3B,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,IAAA,kBAAI,EAAC;IAC7B,QAAQ,EAAE,IAAA,qBAAO,GAAE;IACnB,SAAS,EAAE,IAAA,qBAAO,GAAE;IACpB,SAAS,EAAE,IAAA,qBAAO,GAAE;IACpB,UAAU,EAAE,IAAA,qBAAO,GAAE;IACrB,YAAY,EAAE,IAAA,qBAAO,GAAE;IACvB,WAAW,EAAE,IAAA,qBAAO,GAAE;IACtB,QAAQ,EAAE,IAAA,oBAAM,GAAE;CACnB,CAAC,CAAC;AAEH;;;GAGG;AACU,QAAA,2BAA2B,GAAG,IAAA,kBAAI,EAAC;IAC9C,OAAO,EAAE,IAAA,oBAAM,GAAE;IACjB,IAAI,EAAE,IAAA,oBAAM,GAAE;IACd,QAAQ,EAAE,IAAA,oBAAM,GAAE;IAClB,mBAAmB,EAAE,IAAA,oBAAM,GAAE;IAC7B,uBAAuB,EAAE,IAAA,sBAAQ,EAAC,IAAA,oBAAM,GAAE,CAAC;IAC3C,MAAM,EAAE,YAAY;IACpB,YAAY,EAAE,kBAAkB;IAChC,iBAAiB,EAAE,uBAAuB;IAC1C,MAAM,EAAE,iBAAiB;CAC1B,CAAC,CAAC;AAEH;;GAEG;AACU,QAAA,+BAA+B,GAAG,IAAA,kBAAI,EAAC;IAClD,IAAI,EAAE,IAAA,kBAAI,EAAC;QACT,OAAO,EAAE,IAAA,oBAAM,GAAE;QACjB,SAAS,EAAE,IAAA,oBAAM,GAAE;QACnB,MAAM,EAAE,IAAA,mBAAK,EAAC,mCAA2B,CAAC;KAC3C,CAAC;CACH,CAAC,CAAC;AAQH,SAAgB,iCAAiC,CAC/C,IAAa;IAEb,IAAA,oBAAM,EAAC,IAAI,EAAE,uCAA+B,CAAC,CAAC;AAChD,CAAC;AAJD,8EAIC","sourcesContent":["import type { Infer } from '@metamask/superstruct';\nimport {\n array,\n assert,\n boolean,\n number,\n optional,\n string,\n type,\n} from '@metamask/superstruct';\n\nconst AssetSchema = type({\n assetId: string(),\n imageUrl: string(),\n name: string(),\n symbol: string(),\n decimals: number(),\n coingeckoCoinId: optional(string()),\n});\n\nconst AssetsSchema = type({\n listUrl: optional(string()),\n native: AssetSchema,\n governance: optional(AssetSchema),\n});\n\nconst RpcProviderSchema = type({\n url: string(),\n type: string(),\n networkClientId: string(),\n});\n\nconst RpcProvidersSchema = type({\n default: RpcProviderSchema,\n fallbacks: array(string()),\n});\n\nconst BlockExplorerUrlsSchema = type({\n default: string(),\n fallbacks: array(string()),\n});\n\nconst ChainConfigSchema = type({\n isActive: boolean(),\n isTestnet: boolean(),\n isDefault: boolean(),\n isFeatured: boolean(),\n isDeprecated: boolean(),\n isDeletable: boolean(),\n priority: number(),\n});\n\n/**\n * Schema for a single chain in the CAIP-2 config registry API response.\n * chainId is in CAIP-2 format (e.g. \"eip155:1\", \"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\").\n */\nexport const RegistryNetworkConfigSchema = type({\n chainId: string(),\n name: string(),\n imageUrl: string(),\n coingeckoPlatformId: string(),\n geckoTerminalPlatformId: optional(string()),\n assets: AssetsSchema,\n rpcProviders: RpcProvidersSchema,\n blockExplorerUrls: BlockExplorerUrlsSchema,\n config: ChainConfigSchema,\n});\n\n/**\n * Top-level API response shape. Uses `data.chains` (CAIP-2) and `data.version`.\n */\nexport const RegistryConfigApiResponseSchema = type({\n data: type({\n version: string(),\n timestamp: number(),\n chains: array(RegistryNetworkConfigSchema),\n }),\n});\n\nexport type RegistryNetworkConfig = Infer<typeof RegistryNetworkConfigSchema>;\n\nexport type RegistryConfigApiResponse = Infer<\n typeof RegistryConfigApiResponseSchema\n>;\n\nexport function validateRegistryConfigApiResponse(\n data: unknown,\n): asserts data is RegistryConfigApiResponse {\n assert(data, RegistryConfigApiResponseSchema);\n}\n\nexport type FetchConfigOptions = {\n etag?: string;\n};\n\nexport type FetchConfigResult =\n | {\n modified: false;\n etag?: string;\n /**\n * Cached data from the service when available (e.g. after a previous\n * successful fetch). Omitted when the service has no cache yet.\n */\n data?: RegistryConfigApiResponse;\n }\n | {\n modified: true;\n data: RegistryConfigApiResponse;\n etag?: string;\n };\n"]}
|
|
@@ -15,7 +15,7 @@ export declare const RegistryNetworkConfigSchema: import("@metamask/superstruct"
|
|
|
15
15
|
assetId: string;
|
|
16
16
|
imageUrl: string;
|
|
17
17
|
decimals: number;
|
|
18
|
-
coingeckoCoinId
|
|
18
|
+
coingeckoCoinId?: string | undefined;
|
|
19
19
|
};
|
|
20
20
|
listUrl?: string | undefined;
|
|
21
21
|
governance?: {
|
|
@@ -24,7 +24,7 @@ export declare const RegistryNetworkConfigSchema: import("@metamask/superstruct"
|
|
|
24
24
|
assetId: string;
|
|
25
25
|
imageUrl: string;
|
|
26
26
|
decimals: number;
|
|
27
|
-
coingeckoCoinId
|
|
27
|
+
coingeckoCoinId?: string | undefined;
|
|
28
28
|
} | undefined;
|
|
29
29
|
};
|
|
30
30
|
rpcProviders: {
|
|
@@ -62,7 +62,7 @@ export declare const RegistryNetworkConfigSchema: import("@metamask/superstruct"
|
|
|
62
62
|
assetId: string;
|
|
63
63
|
imageUrl: string;
|
|
64
64
|
decimals: number;
|
|
65
|
-
coingeckoCoinId
|
|
65
|
+
coingeckoCoinId?: string | undefined;
|
|
66
66
|
};
|
|
67
67
|
listUrl?: string | undefined;
|
|
68
68
|
governance?: {
|
|
@@ -71,7 +71,7 @@ export declare const RegistryNetworkConfigSchema: import("@metamask/superstruct"
|
|
|
71
71
|
assetId: string;
|
|
72
72
|
imageUrl: string;
|
|
73
73
|
decimals: number;
|
|
74
|
-
coingeckoCoinId
|
|
74
|
+
coingeckoCoinId?: string | undefined;
|
|
75
75
|
} | undefined;
|
|
76
76
|
}, {
|
|
77
77
|
listUrl: import("@metamask/superstruct").Struct<string | undefined, null>;
|
|
@@ -81,14 +81,14 @@ export declare const RegistryNetworkConfigSchema: import("@metamask/superstruct"
|
|
|
81
81
|
assetId: string;
|
|
82
82
|
imageUrl: string;
|
|
83
83
|
decimals: number;
|
|
84
|
-
coingeckoCoinId
|
|
84
|
+
coingeckoCoinId?: string | undefined;
|
|
85
85
|
}, {
|
|
86
86
|
assetId: import("@metamask/superstruct").Struct<string, null>;
|
|
87
87
|
imageUrl: import("@metamask/superstruct").Struct<string, null>;
|
|
88
88
|
name: import("@metamask/superstruct").Struct<string, null>;
|
|
89
89
|
symbol: import("@metamask/superstruct").Struct<string, null>;
|
|
90
90
|
decimals: import("@metamask/superstruct").Struct<number, null>;
|
|
91
|
-
coingeckoCoinId: import("@metamask/superstruct").Struct<string, null>;
|
|
91
|
+
coingeckoCoinId: import("@metamask/superstruct").Struct<string | undefined, null>;
|
|
92
92
|
}>;
|
|
93
93
|
governance: import("@metamask/superstruct").Struct<{
|
|
94
94
|
symbol: string;
|
|
@@ -96,14 +96,14 @@ export declare const RegistryNetworkConfigSchema: import("@metamask/superstruct"
|
|
|
96
96
|
assetId: string;
|
|
97
97
|
imageUrl: string;
|
|
98
98
|
decimals: number;
|
|
99
|
-
coingeckoCoinId
|
|
99
|
+
coingeckoCoinId?: string | undefined;
|
|
100
100
|
} | undefined, {
|
|
101
101
|
assetId: import("@metamask/superstruct").Struct<string, null>;
|
|
102
102
|
imageUrl: import("@metamask/superstruct").Struct<string, null>;
|
|
103
103
|
name: import("@metamask/superstruct").Struct<string, null>;
|
|
104
104
|
symbol: import("@metamask/superstruct").Struct<string, null>;
|
|
105
105
|
decimals: import("@metamask/superstruct").Struct<number, null>;
|
|
106
|
-
coingeckoCoinId: import("@metamask/superstruct").Struct<string, null>;
|
|
106
|
+
coingeckoCoinId: import("@metamask/superstruct").Struct<string | undefined, null>;
|
|
107
107
|
}>;
|
|
108
108
|
}>;
|
|
109
109
|
rpcProviders: import("@metamask/superstruct").Struct<{
|
|
@@ -169,7 +169,7 @@ export declare const RegistryConfigApiResponseSchema: import("@metamask/superstr
|
|
|
169
169
|
assetId: string;
|
|
170
170
|
imageUrl: string;
|
|
171
171
|
decimals: number;
|
|
172
|
-
coingeckoCoinId
|
|
172
|
+
coingeckoCoinId?: string | undefined;
|
|
173
173
|
};
|
|
174
174
|
listUrl?: string | undefined;
|
|
175
175
|
governance?: {
|
|
@@ -178,7 +178,7 @@ export declare const RegistryConfigApiResponseSchema: import("@metamask/superstr
|
|
|
178
178
|
assetId: string;
|
|
179
179
|
imageUrl: string;
|
|
180
180
|
decimals: number;
|
|
181
|
-
coingeckoCoinId
|
|
181
|
+
coingeckoCoinId?: string | undefined;
|
|
182
182
|
} | undefined;
|
|
183
183
|
};
|
|
184
184
|
rpcProviders: {
|
|
@@ -221,7 +221,7 @@ export declare const RegistryConfigApiResponseSchema: import("@metamask/superstr
|
|
|
221
221
|
assetId: string;
|
|
222
222
|
imageUrl: string;
|
|
223
223
|
decimals: number;
|
|
224
|
-
coingeckoCoinId
|
|
224
|
+
coingeckoCoinId?: string | undefined;
|
|
225
225
|
};
|
|
226
226
|
listUrl?: string | undefined;
|
|
227
227
|
governance?: {
|
|
@@ -230,7 +230,7 @@ export declare const RegistryConfigApiResponseSchema: import("@metamask/superstr
|
|
|
230
230
|
assetId: string;
|
|
231
231
|
imageUrl: string;
|
|
232
232
|
decimals: number;
|
|
233
|
-
coingeckoCoinId
|
|
233
|
+
coingeckoCoinId?: string | undefined;
|
|
234
234
|
} | undefined;
|
|
235
235
|
};
|
|
236
236
|
rpcProviders: {
|
|
@@ -271,7 +271,7 @@ export declare const RegistryConfigApiResponseSchema: import("@metamask/superstr
|
|
|
271
271
|
assetId: string;
|
|
272
272
|
imageUrl: string;
|
|
273
273
|
decimals: number;
|
|
274
|
-
coingeckoCoinId
|
|
274
|
+
coingeckoCoinId?: string | undefined;
|
|
275
275
|
};
|
|
276
276
|
listUrl?: string | undefined;
|
|
277
277
|
governance?: {
|
|
@@ -280,7 +280,7 @@ export declare const RegistryConfigApiResponseSchema: import("@metamask/superstr
|
|
|
280
280
|
assetId: string;
|
|
281
281
|
imageUrl: string;
|
|
282
282
|
decimals: number;
|
|
283
|
-
coingeckoCoinId
|
|
283
|
+
coingeckoCoinId?: string | undefined;
|
|
284
284
|
} | undefined;
|
|
285
285
|
};
|
|
286
286
|
rpcProviders: {
|
|
@@ -317,7 +317,7 @@ export declare const RegistryConfigApiResponseSchema: import("@metamask/superstr
|
|
|
317
317
|
assetId: string;
|
|
318
318
|
imageUrl: string;
|
|
319
319
|
decimals: number;
|
|
320
|
-
coingeckoCoinId
|
|
320
|
+
coingeckoCoinId?: string | undefined;
|
|
321
321
|
};
|
|
322
322
|
listUrl?: string | undefined;
|
|
323
323
|
governance?: {
|
|
@@ -326,7 +326,7 @@ export declare const RegistryConfigApiResponseSchema: import("@metamask/superstr
|
|
|
326
326
|
assetId: string;
|
|
327
327
|
imageUrl: string;
|
|
328
328
|
decimals: number;
|
|
329
|
-
coingeckoCoinId
|
|
329
|
+
coingeckoCoinId?: string | undefined;
|
|
330
330
|
} | undefined;
|
|
331
331
|
};
|
|
332
332
|
rpcProviders: {
|
|
@@ -364,7 +364,7 @@ export declare const RegistryConfigApiResponseSchema: import("@metamask/superstr
|
|
|
364
364
|
assetId: string;
|
|
365
365
|
imageUrl: string;
|
|
366
366
|
decimals: number;
|
|
367
|
-
coingeckoCoinId
|
|
367
|
+
coingeckoCoinId?: string | undefined;
|
|
368
368
|
};
|
|
369
369
|
listUrl?: string | undefined;
|
|
370
370
|
governance?: {
|
|
@@ -373,7 +373,7 @@ export declare const RegistryConfigApiResponseSchema: import("@metamask/superstr
|
|
|
373
373
|
assetId: string;
|
|
374
374
|
imageUrl: string;
|
|
375
375
|
decimals: number;
|
|
376
|
-
coingeckoCoinId
|
|
376
|
+
coingeckoCoinId?: string | undefined;
|
|
377
377
|
} | undefined;
|
|
378
378
|
}, {
|
|
379
379
|
listUrl: import("@metamask/superstruct").Struct<string | undefined, null>;
|
|
@@ -383,14 +383,14 @@ export declare const RegistryConfigApiResponseSchema: import("@metamask/superstr
|
|
|
383
383
|
assetId: string;
|
|
384
384
|
imageUrl: string;
|
|
385
385
|
decimals: number;
|
|
386
|
-
coingeckoCoinId
|
|
386
|
+
coingeckoCoinId?: string | undefined;
|
|
387
387
|
}, {
|
|
388
388
|
assetId: import("@metamask/superstruct").Struct<string, null>;
|
|
389
389
|
imageUrl: import("@metamask/superstruct").Struct<string, null>;
|
|
390
390
|
name: import("@metamask/superstruct").Struct<string, null>;
|
|
391
391
|
symbol: import("@metamask/superstruct").Struct<string, null>;
|
|
392
392
|
decimals: import("@metamask/superstruct").Struct<number, null>;
|
|
393
|
-
coingeckoCoinId: import("@metamask/superstruct").Struct<string, null>;
|
|
393
|
+
coingeckoCoinId: import("@metamask/superstruct").Struct<string | undefined, null>;
|
|
394
394
|
}>;
|
|
395
395
|
governance: import("@metamask/superstruct").Struct<{
|
|
396
396
|
symbol: string;
|
|
@@ -398,14 +398,14 @@ export declare const RegistryConfigApiResponseSchema: import("@metamask/superstr
|
|
|
398
398
|
assetId: string;
|
|
399
399
|
imageUrl: string;
|
|
400
400
|
decimals: number;
|
|
401
|
-
coingeckoCoinId
|
|
401
|
+
coingeckoCoinId?: string | undefined;
|
|
402
402
|
} | undefined, {
|
|
403
403
|
assetId: import("@metamask/superstruct").Struct<string, null>;
|
|
404
404
|
imageUrl: import("@metamask/superstruct").Struct<string, null>;
|
|
405
405
|
name: import("@metamask/superstruct").Struct<string, null>;
|
|
406
406
|
symbol: import("@metamask/superstruct").Struct<string, null>;
|
|
407
407
|
decimals: import("@metamask/superstruct").Struct<number, null>;
|
|
408
|
-
coingeckoCoinId: import("@metamask/superstruct").Struct<string, null>;
|
|
408
|
+
coingeckoCoinId: import("@metamask/superstruct").Struct<string | undefined, null>;
|
|
409
409
|
}>;
|
|
410
410
|
}>;
|
|
411
411
|
rpcProviders: import("@metamask/superstruct").Struct<{
|
|
@@ -15,7 +15,7 @@ export declare const RegistryNetworkConfigSchema: import("@metamask/superstruct"
|
|
|
15
15
|
assetId: string;
|
|
16
16
|
imageUrl: string;
|
|
17
17
|
decimals: number;
|
|
18
|
-
coingeckoCoinId
|
|
18
|
+
coingeckoCoinId?: string | undefined;
|
|
19
19
|
};
|
|
20
20
|
listUrl?: string | undefined;
|
|
21
21
|
governance?: {
|
|
@@ -24,7 +24,7 @@ export declare const RegistryNetworkConfigSchema: import("@metamask/superstruct"
|
|
|
24
24
|
assetId: string;
|
|
25
25
|
imageUrl: string;
|
|
26
26
|
decimals: number;
|
|
27
|
-
coingeckoCoinId
|
|
27
|
+
coingeckoCoinId?: string | undefined;
|
|
28
28
|
} | undefined;
|
|
29
29
|
};
|
|
30
30
|
rpcProviders: {
|
|
@@ -62,7 +62,7 @@ export declare const RegistryNetworkConfigSchema: import("@metamask/superstruct"
|
|
|
62
62
|
assetId: string;
|
|
63
63
|
imageUrl: string;
|
|
64
64
|
decimals: number;
|
|
65
|
-
coingeckoCoinId
|
|
65
|
+
coingeckoCoinId?: string | undefined;
|
|
66
66
|
};
|
|
67
67
|
listUrl?: string | undefined;
|
|
68
68
|
governance?: {
|
|
@@ -71,7 +71,7 @@ export declare const RegistryNetworkConfigSchema: import("@metamask/superstruct"
|
|
|
71
71
|
assetId: string;
|
|
72
72
|
imageUrl: string;
|
|
73
73
|
decimals: number;
|
|
74
|
-
coingeckoCoinId
|
|
74
|
+
coingeckoCoinId?: string | undefined;
|
|
75
75
|
} | undefined;
|
|
76
76
|
}, {
|
|
77
77
|
listUrl: import("@metamask/superstruct").Struct<string | undefined, null>;
|
|
@@ -81,14 +81,14 @@ export declare const RegistryNetworkConfigSchema: import("@metamask/superstruct"
|
|
|
81
81
|
assetId: string;
|
|
82
82
|
imageUrl: string;
|
|
83
83
|
decimals: number;
|
|
84
|
-
coingeckoCoinId
|
|
84
|
+
coingeckoCoinId?: string | undefined;
|
|
85
85
|
}, {
|
|
86
86
|
assetId: import("@metamask/superstruct").Struct<string, null>;
|
|
87
87
|
imageUrl: import("@metamask/superstruct").Struct<string, null>;
|
|
88
88
|
name: import("@metamask/superstruct").Struct<string, null>;
|
|
89
89
|
symbol: import("@metamask/superstruct").Struct<string, null>;
|
|
90
90
|
decimals: import("@metamask/superstruct").Struct<number, null>;
|
|
91
|
-
coingeckoCoinId: import("@metamask/superstruct").Struct<string, null>;
|
|
91
|
+
coingeckoCoinId: import("@metamask/superstruct").Struct<string | undefined, null>;
|
|
92
92
|
}>;
|
|
93
93
|
governance: import("@metamask/superstruct").Struct<{
|
|
94
94
|
symbol: string;
|
|
@@ -96,14 +96,14 @@ export declare const RegistryNetworkConfigSchema: import("@metamask/superstruct"
|
|
|
96
96
|
assetId: string;
|
|
97
97
|
imageUrl: string;
|
|
98
98
|
decimals: number;
|
|
99
|
-
coingeckoCoinId
|
|
99
|
+
coingeckoCoinId?: string | undefined;
|
|
100
100
|
} | undefined, {
|
|
101
101
|
assetId: import("@metamask/superstruct").Struct<string, null>;
|
|
102
102
|
imageUrl: import("@metamask/superstruct").Struct<string, null>;
|
|
103
103
|
name: import("@metamask/superstruct").Struct<string, null>;
|
|
104
104
|
symbol: import("@metamask/superstruct").Struct<string, null>;
|
|
105
105
|
decimals: import("@metamask/superstruct").Struct<number, null>;
|
|
106
|
-
coingeckoCoinId: import("@metamask/superstruct").Struct<string, null>;
|
|
106
|
+
coingeckoCoinId: import("@metamask/superstruct").Struct<string | undefined, null>;
|
|
107
107
|
}>;
|
|
108
108
|
}>;
|
|
109
109
|
rpcProviders: import("@metamask/superstruct").Struct<{
|
|
@@ -169,7 +169,7 @@ export declare const RegistryConfigApiResponseSchema: import("@metamask/superstr
|
|
|
169
169
|
assetId: string;
|
|
170
170
|
imageUrl: string;
|
|
171
171
|
decimals: number;
|
|
172
|
-
coingeckoCoinId
|
|
172
|
+
coingeckoCoinId?: string | undefined;
|
|
173
173
|
};
|
|
174
174
|
listUrl?: string | undefined;
|
|
175
175
|
governance?: {
|
|
@@ -178,7 +178,7 @@ export declare const RegistryConfigApiResponseSchema: import("@metamask/superstr
|
|
|
178
178
|
assetId: string;
|
|
179
179
|
imageUrl: string;
|
|
180
180
|
decimals: number;
|
|
181
|
-
coingeckoCoinId
|
|
181
|
+
coingeckoCoinId?: string | undefined;
|
|
182
182
|
} | undefined;
|
|
183
183
|
};
|
|
184
184
|
rpcProviders: {
|
|
@@ -221,7 +221,7 @@ export declare const RegistryConfigApiResponseSchema: import("@metamask/superstr
|
|
|
221
221
|
assetId: string;
|
|
222
222
|
imageUrl: string;
|
|
223
223
|
decimals: number;
|
|
224
|
-
coingeckoCoinId
|
|
224
|
+
coingeckoCoinId?: string | undefined;
|
|
225
225
|
};
|
|
226
226
|
listUrl?: string | undefined;
|
|
227
227
|
governance?: {
|
|
@@ -230,7 +230,7 @@ export declare const RegistryConfigApiResponseSchema: import("@metamask/superstr
|
|
|
230
230
|
assetId: string;
|
|
231
231
|
imageUrl: string;
|
|
232
232
|
decimals: number;
|
|
233
|
-
coingeckoCoinId
|
|
233
|
+
coingeckoCoinId?: string | undefined;
|
|
234
234
|
} | undefined;
|
|
235
235
|
};
|
|
236
236
|
rpcProviders: {
|
|
@@ -271,7 +271,7 @@ export declare const RegistryConfigApiResponseSchema: import("@metamask/superstr
|
|
|
271
271
|
assetId: string;
|
|
272
272
|
imageUrl: string;
|
|
273
273
|
decimals: number;
|
|
274
|
-
coingeckoCoinId
|
|
274
|
+
coingeckoCoinId?: string | undefined;
|
|
275
275
|
};
|
|
276
276
|
listUrl?: string | undefined;
|
|
277
277
|
governance?: {
|
|
@@ -280,7 +280,7 @@ export declare const RegistryConfigApiResponseSchema: import("@metamask/superstr
|
|
|
280
280
|
assetId: string;
|
|
281
281
|
imageUrl: string;
|
|
282
282
|
decimals: number;
|
|
283
|
-
coingeckoCoinId
|
|
283
|
+
coingeckoCoinId?: string | undefined;
|
|
284
284
|
} | undefined;
|
|
285
285
|
};
|
|
286
286
|
rpcProviders: {
|
|
@@ -317,7 +317,7 @@ export declare const RegistryConfigApiResponseSchema: import("@metamask/superstr
|
|
|
317
317
|
assetId: string;
|
|
318
318
|
imageUrl: string;
|
|
319
319
|
decimals: number;
|
|
320
|
-
coingeckoCoinId
|
|
320
|
+
coingeckoCoinId?: string | undefined;
|
|
321
321
|
};
|
|
322
322
|
listUrl?: string | undefined;
|
|
323
323
|
governance?: {
|
|
@@ -326,7 +326,7 @@ export declare const RegistryConfigApiResponseSchema: import("@metamask/superstr
|
|
|
326
326
|
assetId: string;
|
|
327
327
|
imageUrl: string;
|
|
328
328
|
decimals: number;
|
|
329
|
-
coingeckoCoinId
|
|
329
|
+
coingeckoCoinId?: string | undefined;
|
|
330
330
|
} | undefined;
|
|
331
331
|
};
|
|
332
332
|
rpcProviders: {
|
|
@@ -364,7 +364,7 @@ export declare const RegistryConfigApiResponseSchema: import("@metamask/superstr
|
|
|
364
364
|
assetId: string;
|
|
365
365
|
imageUrl: string;
|
|
366
366
|
decimals: number;
|
|
367
|
-
coingeckoCoinId
|
|
367
|
+
coingeckoCoinId?: string | undefined;
|
|
368
368
|
};
|
|
369
369
|
listUrl?: string | undefined;
|
|
370
370
|
governance?: {
|
|
@@ -373,7 +373,7 @@ export declare const RegistryConfigApiResponseSchema: import("@metamask/superstr
|
|
|
373
373
|
assetId: string;
|
|
374
374
|
imageUrl: string;
|
|
375
375
|
decimals: number;
|
|
376
|
-
coingeckoCoinId
|
|
376
|
+
coingeckoCoinId?: string | undefined;
|
|
377
377
|
} | undefined;
|
|
378
378
|
}, {
|
|
379
379
|
listUrl: import("@metamask/superstruct").Struct<string | undefined, null>;
|
|
@@ -383,14 +383,14 @@ export declare const RegistryConfigApiResponseSchema: import("@metamask/superstr
|
|
|
383
383
|
assetId: string;
|
|
384
384
|
imageUrl: string;
|
|
385
385
|
decimals: number;
|
|
386
|
-
coingeckoCoinId
|
|
386
|
+
coingeckoCoinId?: string | undefined;
|
|
387
387
|
}, {
|
|
388
388
|
assetId: import("@metamask/superstruct").Struct<string, null>;
|
|
389
389
|
imageUrl: import("@metamask/superstruct").Struct<string, null>;
|
|
390
390
|
name: import("@metamask/superstruct").Struct<string, null>;
|
|
391
391
|
symbol: import("@metamask/superstruct").Struct<string, null>;
|
|
392
392
|
decimals: import("@metamask/superstruct").Struct<number, null>;
|
|
393
|
-
coingeckoCoinId: import("@metamask/superstruct").Struct<string, null>;
|
|
393
|
+
coingeckoCoinId: import("@metamask/superstruct").Struct<string | undefined, null>;
|
|
394
394
|
}>;
|
|
395
395
|
governance: import("@metamask/superstruct").Struct<{
|
|
396
396
|
symbol: string;
|
|
@@ -398,14 +398,14 @@ export declare const RegistryConfigApiResponseSchema: import("@metamask/superstr
|
|
|
398
398
|
assetId: string;
|
|
399
399
|
imageUrl: string;
|
|
400
400
|
decimals: number;
|
|
401
|
-
coingeckoCoinId
|
|
401
|
+
coingeckoCoinId?: string | undefined;
|
|
402
402
|
} | undefined, {
|
|
403
403
|
assetId: import("@metamask/superstruct").Struct<string, null>;
|
|
404
404
|
imageUrl: import("@metamask/superstruct").Struct<string, null>;
|
|
405
405
|
name: import("@metamask/superstruct").Struct<string, null>;
|
|
406
406
|
symbol: import("@metamask/superstruct").Struct<string, null>;
|
|
407
407
|
decimals: import("@metamask/superstruct").Struct<number, null>;
|
|
408
|
-
coingeckoCoinId: import("@metamask/superstruct").Struct<string, null>;
|
|
408
|
+
coingeckoCoinId: import("@metamask/superstruct").Struct<string | undefined, null>;
|
|
409
409
|
}>;
|
|
410
410
|
}>;
|
|
411
411
|
rpcProviders: import("@metamask/superstruct").Struct<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.mjs","sourceRoot":"","sources":["../../src/config-registry-api-service/types.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EACL,MAAM,EACN,OAAO,EACP,MAAM,EACN,QAAQ,EACR,MAAM,EACN,IAAI,EACL,8BAA8B;AAE/B,MAAM,WAAW,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,MAAM,EAAE;IACjB,QAAQ,EAAE,MAAM,EAAE;IAClB,IAAI,EAAE,MAAM,EAAE;IACd,MAAM,EAAE,MAAM,EAAE;IAChB,QAAQ,EAAE,MAAM,EAAE;IAClB,eAAe,EAAE,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"types.mjs","sourceRoot":"","sources":["../../src/config-registry-api-service/types.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EACL,MAAM,EACN,OAAO,EACP,MAAM,EACN,QAAQ,EACR,MAAM,EACN,IAAI,EACL,8BAA8B;AAE/B,MAAM,WAAW,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,MAAM,EAAE;IACjB,QAAQ,EAAE,MAAM,EAAE;IAClB,IAAI,EAAE,MAAM,EAAE;IACd,MAAM,EAAE,MAAM,EAAE;IAChB,QAAQ,EAAE,MAAM,EAAE;IAClB,eAAe,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC;CACpC,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC;IAC3B,MAAM,EAAE,WAAW;IACnB,UAAU,EAAE,QAAQ,CAAC,WAAW,CAAC;CAClC,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,IAAI,CAAC;IAC7B,GAAG,EAAE,MAAM,EAAE;IACb,IAAI,EAAE,MAAM,EAAE;IACd,eAAe,EAAE,MAAM,EAAE;CAC1B,CAAC,CAAC;AAEH,MAAM,kBAAkB,GAAG,IAAI,CAAC;IAC9B,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC;CAC3B,CAAC,CAAC;AAEH,MAAM,uBAAuB,GAAG,IAAI,CAAC;IACnC,OAAO,EAAE,MAAM,EAAE;IACjB,SAAS,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC;CAC3B,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,IAAI,CAAC;IAC7B,QAAQ,EAAE,OAAO,EAAE;IACnB,SAAS,EAAE,OAAO,EAAE;IACpB,SAAS,EAAE,OAAO,EAAE;IACpB,UAAU,EAAE,OAAO,EAAE;IACrB,YAAY,EAAE,OAAO,EAAE;IACvB,WAAW,EAAE,OAAO,EAAE;IACtB,QAAQ,EAAE,MAAM,EAAE;CACnB,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,CAAC;IAC9C,OAAO,EAAE,MAAM,EAAE;IACjB,IAAI,EAAE,MAAM,EAAE;IACd,QAAQ,EAAE,MAAM,EAAE;IAClB,mBAAmB,EAAE,MAAM,EAAE;IAC7B,uBAAuB,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC;IAC3C,MAAM,EAAE,YAAY;IACpB,YAAY,EAAE,kBAAkB;IAChC,iBAAiB,EAAE,uBAAuB;IAC1C,MAAM,EAAE,iBAAiB;CAC1B,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,IAAI,CAAC;IAClD,IAAI,EAAE,IAAI,CAAC;QACT,OAAO,EAAE,MAAM,EAAE;QACjB,SAAS,EAAE,MAAM,EAAE;QACnB,MAAM,EAAE,KAAK,CAAC,2BAA2B,CAAC;KAC3C,CAAC;CACH,CAAC,CAAC;AAQH,MAAM,UAAU,iCAAiC,CAC/C,IAAa;IAEb,MAAM,CAAC,IAAI,EAAE,+BAA+B,CAAC,CAAC;AAChD,CAAC","sourcesContent":["import type { Infer } from '@metamask/superstruct';\nimport {\n array,\n assert,\n boolean,\n number,\n optional,\n string,\n type,\n} from '@metamask/superstruct';\n\nconst AssetSchema = type({\n assetId: string(),\n imageUrl: string(),\n name: string(),\n symbol: string(),\n decimals: number(),\n coingeckoCoinId: optional(string()),\n});\n\nconst AssetsSchema = type({\n listUrl: optional(string()),\n native: AssetSchema,\n governance: optional(AssetSchema),\n});\n\nconst RpcProviderSchema = type({\n url: string(),\n type: string(),\n networkClientId: string(),\n});\n\nconst RpcProvidersSchema = type({\n default: RpcProviderSchema,\n fallbacks: array(string()),\n});\n\nconst BlockExplorerUrlsSchema = type({\n default: string(),\n fallbacks: array(string()),\n});\n\nconst ChainConfigSchema = type({\n isActive: boolean(),\n isTestnet: boolean(),\n isDefault: boolean(),\n isFeatured: boolean(),\n isDeprecated: boolean(),\n isDeletable: boolean(),\n priority: number(),\n});\n\n/**\n * Schema for a single chain in the CAIP-2 config registry API response.\n * chainId is in CAIP-2 format (e.g. \"eip155:1\", \"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\").\n */\nexport const RegistryNetworkConfigSchema = type({\n chainId: string(),\n name: string(),\n imageUrl: string(),\n coingeckoPlatformId: string(),\n geckoTerminalPlatformId: optional(string()),\n assets: AssetsSchema,\n rpcProviders: RpcProvidersSchema,\n blockExplorerUrls: BlockExplorerUrlsSchema,\n config: ChainConfigSchema,\n});\n\n/**\n * Top-level API response shape. Uses `data.chains` (CAIP-2) and `data.version`.\n */\nexport const RegistryConfigApiResponseSchema = type({\n data: type({\n version: string(),\n timestamp: number(),\n chains: array(RegistryNetworkConfigSchema),\n }),\n});\n\nexport type RegistryNetworkConfig = Infer<typeof RegistryNetworkConfigSchema>;\n\nexport type RegistryConfigApiResponse = Infer<\n typeof RegistryConfigApiResponseSchema\n>;\n\nexport function validateRegistryConfigApiResponse(\n data: unknown,\n): asserts data is RegistryConfigApiResponse {\n assert(data, RegistryConfigApiResponseSchema);\n}\n\nexport type FetchConfigOptions = {\n etag?: string;\n};\n\nexport type FetchConfigResult =\n | {\n modified: false;\n etag?: string;\n /**\n * Cached data from the service when available (e.g. after a previous\n * successful fetch). Omitted when the service has no cache yet.\n */\n data?: RegistryConfigApiResponse;\n }\n | {\n modified: true;\n data: RegistryConfigApiResponse;\n etag?: string;\n };\n"]}
|
package/dist/selectors.d.cts
CHANGED
|
@@ -26,7 +26,7 @@ export declare const selectFeaturedNetworks: ((state: ConfigRegistryControllerSt
|
|
|
26
26
|
assetId: string;
|
|
27
27
|
imageUrl: string;
|
|
28
28
|
decimals: number;
|
|
29
|
-
coingeckoCoinId
|
|
29
|
+
coingeckoCoinId?: string | undefined;
|
|
30
30
|
};
|
|
31
31
|
listUrl?: string | undefined;
|
|
32
32
|
governance?: {
|
|
@@ -35,7 +35,7 @@ export declare const selectFeaturedNetworks: ((state: ConfigRegistryControllerSt
|
|
|
35
35
|
assetId: string;
|
|
36
36
|
imageUrl: string;
|
|
37
37
|
decimals: number;
|
|
38
|
-
coingeckoCoinId
|
|
38
|
+
coingeckoCoinId?: string | undefined;
|
|
39
39
|
} | undefined;
|
|
40
40
|
};
|
|
41
41
|
rpcProviders: {
|
|
@@ -77,7 +77,7 @@ export declare const selectFeaturedNetworks: ((state: ConfigRegistryControllerSt
|
|
|
77
77
|
assetId: string;
|
|
78
78
|
imageUrl: string;
|
|
79
79
|
decimals: number;
|
|
80
|
-
coingeckoCoinId
|
|
80
|
+
coingeckoCoinId?: string | undefined;
|
|
81
81
|
};
|
|
82
82
|
listUrl?: string | undefined;
|
|
83
83
|
governance?: {
|
|
@@ -86,7 +86,7 @@ export declare const selectFeaturedNetworks: ((state: ConfigRegistryControllerSt
|
|
|
86
86
|
assetId: string;
|
|
87
87
|
imageUrl: string;
|
|
88
88
|
decimals: number;
|
|
89
|
-
coingeckoCoinId
|
|
89
|
+
coingeckoCoinId?: string | undefined;
|
|
90
90
|
} | undefined;
|
|
91
91
|
};
|
|
92
92
|
rpcProviders: {
|
|
@@ -123,7 +123,7 @@ export declare const selectFeaturedNetworks: ((state: ConfigRegistryControllerSt
|
|
|
123
123
|
assetId: string;
|
|
124
124
|
imageUrl: string;
|
|
125
125
|
decimals: number;
|
|
126
|
-
coingeckoCoinId
|
|
126
|
+
coingeckoCoinId?: string | undefined;
|
|
127
127
|
};
|
|
128
128
|
listUrl?: string | undefined;
|
|
129
129
|
governance?: {
|
|
@@ -132,7 +132,7 @@ export declare const selectFeaturedNetworks: ((state: ConfigRegistryControllerSt
|
|
|
132
132
|
assetId: string;
|
|
133
133
|
imageUrl: string;
|
|
134
134
|
decimals: number;
|
|
135
|
-
coingeckoCoinId
|
|
135
|
+
coingeckoCoinId?: string | undefined;
|
|
136
136
|
} | undefined;
|
|
137
137
|
};
|
|
138
138
|
rpcProviders: {
|
|
@@ -170,7 +170,7 @@ export declare const selectFeaturedNetworks: ((state: ConfigRegistryControllerSt
|
|
|
170
170
|
assetId: string;
|
|
171
171
|
imageUrl: string;
|
|
172
172
|
decimals: number;
|
|
173
|
-
coingeckoCoinId
|
|
173
|
+
coingeckoCoinId?: string | undefined;
|
|
174
174
|
};
|
|
175
175
|
listUrl?: string | undefined;
|
|
176
176
|
governance?: {
|
|
@@ -179,7 +179,7 @@ export declare const selectFeaturedNetworks: ((state: ConfigRegistryControllerSt
|
|
|
179
179
|
assetId: string;
|
|
180
180
|
imageUrl: string;
|
|
181
181
|
decimals: number;
|
|
182
|
-
coingeckoCoinId
|
|
182
|
+
coingeckoCoinId?: string | undefined;
|
|
183
183
|
} | undefined;
|
|
184
184
|
};
|
|
185
185
|
rpcProviders: {
|
|
@@ -216,7 +216,7 @@ export declare const selectFeaturedNetworks: ((state: ConfigRegistryControllerSt
|
|
|
216
216
|
assetId: string;
|
|
217
217
|
imageUrl: string;
|
|
218
218
|
decimals: number;
|
|
219
|
-
coingeckoCoinId
|
|
219
|
+
coingeckoCoinId?: string | undefined;
|
|
220
220
|
};
|
|
221
221
|
listUrl?: string | undefined;
|
|
222
222
|
governance?: {
|
|
@@ -225,7 +225,7 @@ export declare const selectFeaturedNetworks: ((state: ConfigRegistryControllerSt
|
|
|
225
225
|
assetId: string;
|
|
226
226
|
imageUrl: string;
|
|
227
227
|
decimals: number;
|
|
228
|
-
coingeckoCoinId
|
|
228
|
+
coingeckoCoinId?: string | undefined;
|
|
229
229
|
} | undefined;
|
|
230
230
|
};
|
|
231
231
|
rpcProviders: {
|
|
@@ -267,7 +267,7 @@ export declare const selectFeaturedNetworks: ((state: ConfigRegistryControllerSt
|
|
|
267
267
|
assetId: string;
|
|
268
268
|
imageUrl: string;
|
|
269
269
|
decimals: number;
|
|
270
|
-
coingeckoCoinId
|
|
270
|
+
coingeckoCoinId?: string | undefined;
|
|
271
271
|
};
|
|
272
272
|
listUrl?: string | undefined;
|
|
273
273
|
governance?: {
|
|
@@ -276,7 +276,7 @@ export declare const selectFeaturedNetworks: ((state: ConfigRegistryControllerSt
|
|
|
276
276
|
assetId: string;
|
|
277
277
|
imageUrl: string;
|
|
278
278
|
decimals: number;
|
|
279
|
-
coingeckoCoinId
|
|
279
|
+
coingeckoCoinId?: string | undefined;
|
|
280
280
|
} | undefined;
|
|
281
281
|
};
|
|
282
282
|
rpcProviders: {
|
package/dist/selectors.d.mts
CHANGED
|
@@ -26,7 +26,7 @@ export declare const selectFeaturedNetworks: ((state: ConfigRegistryControllerSt
|
|
|
26
26
|
assetId: string;
|
|
27
27
|
imageUrl: string;
|
|
28
28
|
decimals: number;
|
|
29
|
-
coingeckoCoinId
|
|
29
|
+
coingeckoCoinId?: string | undefined;
|
|
30
30
|
};
|
|
31
31
|
listUrl?: string | undefined;
|
|
32
32
|
governance?: {
|
|
@@ -35,7 +35,7 @@ export declare const selectFeaturedNetworks: ((state: ConfigRegistryControllerSt
|
|
|
35
35
|
assetId: string;
|
|
36
36
|
imageUrl: string;
|
|
37
37
|
decimals: number;
|
|
38
|
-
coingeckoCoinId
|
|
38
|
+
coingeckoCoinId?: string | undefined;
|
|
39
39
|
} | undefined;
|
|
40
40
|
};
|
|
41
41
|
rpcProviders: {
|
|
@@ -77,7 +77,7 @@ export declare const selectFeaturedNetworks: ((state: ConfigRegistryControllerSt
|
|
|
77
77
|
assetId: string;
|
|
78
78
|
imageUrl: string;
|
|
79
79
|
decimals: number;
|
|
80
|
-
coingeckoCoinId
|
|
80
|
+
coingeckoCoinId?: string | undefined;
|
|
81
81
|
};
|
|
82
82
|
listUrl?: string | undefined;
|
|
83
83
|
governance?: {
|
|
@@ -86,7 +86,7 @@ export declare const selectFeaturedNetworks: ((state: ConfigRegistryControllerSt
|
|
|
86
86
|
assetId: string;
|
|
87
87
|
imageUrl: string;
|
|
88
88
|
decimals: number;
|
|
89
|
-
coingeckoCoinId
|
|
89
|
+
coingeckoCoinId?: string | undefined;
|
|
90
90
|
} | undefined;
|
|
91
91
|
};
|
|
92
92
|
rpcProviders: {
|
|
@@ -123,7 +123,7 @@ export declare const selectFeaturedNetworks: ((state: ConfigRegistryControllerSt
|
|
|
123
123
|
assetId: string;
|
|
124
124
|
imageUrl: string;
|
|
125
125
|
decimals: number;
|
|
126
|
-
coingeckoCoinId
|
|
126
|
+
coingeckoCoinId?: string | undefined;
|
|
127
127
|
};
|
|
128
128
|
listUrl?: string | undefined;
|
|
129
129
|
governance?: {
|
|
@@ -132,7 +132,7 @@ export declare const selectFeaturedNetworks: ((state: ConfigRegistryControllerSt
|
|
|
132
132
|
assetId: string;
|
|
133
133
|
imageUrl: string;
|
|
134
134
|
decimals: number;
|
|
135
|
-
coingeckoCoinId
|
|
135
|
+
coingeckoCoinId?: string | undefined;
|
|
136
136
|
} | undefined;
|
|
137
137
|
};
|
|
138
138
|
rpcProviders: {
|
|
@@ -170,7 +170,7 @@ export declare const selectFeaturedNetworks: ((state: ConfigRegistryControllerSt
|
|
|
170
170
|
assetId: string;
|
|
171
171
|
imageUrl: string;
|
|
172
172
|
decimals: number;
|
|
173
|
-
coingeckoCoinId
|
|
173
|
+
coingeckoCoinId?: string | undefined;
|
|
174
174
|
};
|
|
175
175
|
listUrl?: string | undefined;
|
|
176
176
|
governance?: {
|
|
@@ -179,7 +179,7 @@ export declare const selectFeaturedNetworks: ((state: ConfigRegistryControllerSt
|
|
|
179
179
|
assetId: string;
|
|
180
180
|
imageUrl: string;
|
|
181
181
|
decimals: number;
|
|
182
|
-
coingeckoCoinId
|
|
182
|
+
coingeckoCoinId?: string | undefined;
|
|
183
183
|
} | undefined;
|
|
184
184
|
};
|
|
185
185
|
rpcProviders: {
|
|
@@ -216,7 +216,7 @@ export declare const selectFeaturedNetworks: ((state: ConfigRegistryControllerSt
|
|
|
216
216
|
assetId: string;
|
|
217
217
|
imageUrl: string;
|
|
218
218
|
decimals: number;
|
|
219
|
-
coingeckoCoinId
|
|
219
|
+
coingeckoCoinId?: string | undefined;
|
|
220
220
|
};
|
|
221
221
|
listUrl?: string | undefined;
|
|
222
222
|
governance?: {
|
|
@@ -225,7 +225,7 @@ export declare const selectFeaturedNetworks: ((state: ConfigRegistryControllerSt
|
|
|
225
225
|
assetId: string;
|
|
226
226
|
imageUrl: string;
|
|
227
227
|
decimals: number;
|
|
228
|
-
coingeckoCoinId
|
|
228
|
+
coingeckoCoinId?: string | undefined;
|
|
229
229
|
} | undefined;
|
|
230
230
|
};
|
|
231
231
|
rpcProviders: {
|
|
@@ -267,7 +267,7 @@ export declare const selectFeaturedNetworks: ((state: ConfigRegistryControllerSt
|
|
|
267
267
|
assetId: string;
|
|
268
268
|
imageUrl: string;
|
|
269
269
|
decimals: number;
|
|
270
|
-
coingeckoCoinId
|
|
270
|
+
coingeckoCoinId?: string | undefined;
|
|
271
271
|
};
|
|
272
272
|
listUrl?: string | undefined;
|
|
273
273
|
governance?: {
|
|
@@ -276,7 +276,7 @@ export declare const selectFeaturedNetworks: ((state: ConfigRegistryControllerSt
|
|
|
276
276
|
assetId: string;
|
|
277
277
|
imageUrl: string;
|
|
278
278
|
decimals: number;
|
|
279
|
-
coingeckoCoinId
|
|
279
|
+
coingeckoCoinId?: string | undefined;
|
|
280
280
|
} | undefined;
|
|
281
281
|
};
|
|
282
282
|
rpcProviders: {
|