@metamask-previews/network-controller 12.1.1-preview.d32a7cc

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.
@@ -0,0 +1,366 @@
1
+ import type { RestrictedControllerMessenger } from '@metamask/base-controller';
2
+ import { BaseControllerV2 } from '@metamask/base-controller';
3
+ import { InfuraNetworkType, NetworkType } from '@metamask/controller-utils';
4
+ import EthQuery from '@metamask/eth-query';
5
+ import type { SwappableProxy } from '@metamask/swappable-obj-proxy';
6
+ import type { Hex } from '@metamask/utils';
7
+ import type { Patch } from 'immer';
8
+ import { NetworkStatus } from './constants';
9
+ import type { AutoManagedNetworkClient, ProxyWithAccessibleTarget } from './create-auto-managed-network-client';
10
+ import type { BlockTracker, Provider, CustomNetworkClientConfiguration, InfuraNetworkClientConfiguration } from './types';
11
+ /**
12
+ * @type ProviderConfig
13
+ *
14
+ * Configuration passed to web3-provider-engine
15
+ * @property rpcUrl - RPC target URL.
16
+ * @property type - Human-readable network name.
17
+ * @property chainId - Network ID as per EIP-155.
18
+ * @property ticker - Currency ticker.
19
+ * @property nickname - Personalized network name.
20
+ * @property id - Network Configuration Id.
21
+ */
22
+ export declare type ProviderConfig = {
23
+ rpcUrl?: string;
24
+ type: NetworkType;
25
+ chainId: Hex;
26
+ ticker: string;
27
+ nickname?: string;
28
+ rpcPrefs?: {
29
+ blockExplorerUrl?: string;
30
+ };
31
+ id?: NetworkConfigurationId;
32
+ };
33
+ export declare type Block = {
34
+ baseFeePerGas?: string;
35
+ };
36
+ /**
37
+ * Information about a network not held by any other part of state.
38
+ */
39
+ export declare type NetworkMetadata = {
40
+ /**
41
+ * EIPs supported by the network.
42
+ */
43
+ EIPS: {
44
+ [eipNumber: number]: boolean;
45
+ };
46
+ /**
47
+ * Indicates the availability of the network
48
+ */
49
+ status: NetworkStatus;
50
+ };
51
+ /**
52
+ * Custom RPC network information
53
+ *
54
+ * @property rpcUrl - RPC target URL.
55
+ * @property chainId - Network ID as per EIP-155
56
+ * @property nickname - Personalized network name.
57
+ * @property ticker - Currency ticker.
58
+ * @property rpcPrefs - Personalized preferences.
59
+ */
60
+ export declare type NetworkConfiguration = {
61
+ rpcUrl: string;
62
+ chainId: Hex;
63
+ ticker: string;
64
+ nickname?: string;
65
+ rpcPrefs?: {
66
+ blockExplorerUrl: string;
67
+ };
68
+ };
69
+ /**
70
+ * The collection of network configurations in state.
71
+ */
72
+ declare type NetworkConfigurations = Record<NetworkConfigurationId, NetworkConfiguration & {
73
+ id: NetworkConfigurationId;
74
+ }>;
75
+ /**
76
+ * `Object.keys()` is intentionally generic: it returns the keys of an object,
77
+ * but it cannot make guarantees about the contents of that object, so the type
78
+ * of the keys is merely `string[]`. While this is technically accurate, it is
79
+ * also unnecessary if we have an object that we own and whose contents are
80
+ * known exactly.
81
+ *
82
+ * TODO: Move to @metamask/utils.
83
+ *
84
+ * @param object - The object.
85
+ * @returns The keys of an object, typed according to the type of the object
86
+ * itself.
87
+ */
88
+ export declare function knownKeysOf<K extends PropertyKey>(object: Partial<Record<K, any>>): K[];
89
+ /**
90
+ * The string that uniquely identifies an Infura network client.
91
+ */
92
+ declare type BuiltInNetworkClientId = InfuraNetworkType;
93
+ /**
94
+ * The string that uniquely identifies a custom network client.
95
+ */
96
+ declare type CustomNetworkClientId = string;
97
+ /**
98
+ * The string that uniquely identifies a network client.
99
+ */
100
+ export declare type NetworkClientId = BuiltInNetworkClientId | CustomNetworkClientId;
101
+ /**
102
+ * Information about networks not held by any other part of state.
103
+ */
104
+ export declare type NetworksMetadata = {
105
+ [networkClientId: NetworkClientId]: NetworkMetadata;
106
+ };
107
+ /**
108
+ * The network ID of a network.
109
+ */
110
+ export declare type NetworkId = `${number}`;
111
+ /**
112
+ * @type NetworkState
113
+ *
114
+ * Network controller state
115
+ * @property network - Network ID as per net_version of the currently connected network
116
+ * @property providerConfig - RPC URL and network name provider settings of the currently connected network
117
+ * @property properties - an additional set of network properties for the currently connected network
118
+ * @property networkConfigurations - the full list of configured networks either preloaded or added by the user.
119
+ */
120
+ export declare type NetworkState = {
121
+ selectedNetworkClientId: NetworkClientId;
122
+ networkId: NetworkId | null;
123
+ providerConfig: ProviderConfig;
124
+ networkConfigurations: NetworkConfigurations;
125
+ networksMetadata: NetworksMetadata;
126
+ };
127
+ declare const name = "NetworkController";
128
+ /**
129
+ * Represents the block tracker for the currently selected network. (Note that
130
+ * this is a proxy around a proxy: the inner one exists so that the block
131
+ * tracker doesn't have to exist until it's used, and the outer one exists so
132
+ * that the currently selected network can change without consumers needing to
133
+ * refresh the object reference to that network.)
134
+ */
135
+ export declare type BlockTrackerProxy = SwappableProxy<ProxyWithAccessibleTarget<BlockTracker>>;
136
+ /**
137
+ * Represents the provider for the currently selected network. (Note that this
138
+ * is a proxy around a proxy: the inner one exists so that the provider doesn't
139
+ * have to exist until it's used, and the outer one exists so that the currently
140
+ * selected network can change without consumers needing to refresh the object
141
+ * reference to that network.)
142
+ */
143
+ export declare type ProviderProxy = SwappableProxy<ProxyWithAccessibleTarget<Provider>>;
144
+ export declare type NetworkControllerStateChangeEvent = {
145
+ type: `NetworkController:stateChange`;
146
+ payload: [NetworkState, Patch[]];
147
+ };
148
+ /**
149
+ * `networkWillChange` is published when the current network is about to be
150
+ * switched, but the new provider has not been created and no state changes have
151
+ * occurred yet.
152
+ */
153
+ export declare type NetworkControllerNetworkWillChangeEvent = {
154
+ type: 'NetworkController:networkWillChange';
155
+ payload: [];
156
+ };
157
+ /**
158
+ * `networkDidChange` is published after a provider has been created for a newly
159
+ * switched network (but before the network has been confirmed to be available).
160
+ */
161
+ export declare type NetworkControllerNetworkDidChangeEvent = {
162
+ type: 'NetworkController:networkDidChange';
163
+ payload: [];
164
+ };
165
+ /**
166
+ * `infuraIsBlocked` is published after the network is switched to an Infura
167
+ * network, but when Infura returns an error blocking the user based on their
168
+ * location.
169
+ */
170
+ export declare type NetworkControllerInfuraIsBlockedEvent = {
171
+ type: 'NetworkController:infuraIsBlocked';
172
+ payload: [];
173
+ };
174
+ /**
175
+ * `infuraIsBlocked` is published either after the network is switched to an
176
+ * Infura network and Infura does not return an error blocking the user based on
177
+ * their location, or the network is switched to a non-Infura network.
178
+ */
179
+ export declare type NetworkControllerInfuraIsUnblockedEvent = {
180
+ type: 'NetworkController:infuraIsUnblocked';
181
+ payload: [];
182
+ };
183
+ export declare type NetworkControllerEvents = NetworkControllerStateChangeEvent | NetworkControllerNetworkWillChangeEvent | NetworkControllerNetworkDidChangeEvent | NetworkControllerInfuraIsBlockedEvent | NetworkControllerInfuraIsUnblockedEvent;
184
+ export declare type NetworkControllerGetStateAction = {
185
+ type: `NetworkController:getState`;
186
+ handler: () => NetworkState;
187
+ };
188
+ export declare type NetworkControllerGetProviderConfigAction = {
189
+ type: `NetworkController:getProviderConfig`;
190
+ handler: () => ProviderConfig;
191
+ };
192
+ export declare type NetworkControllerGetEthQueryAction = {
193
+ type: `NetworkController:getEthQuery`;
194
+ handler: () => EthQuery | undefined;
195
+ };
196
+ export declare type NetworkControllerActions = NetworkControllerGetStateAction | NetworkControllerGetProviderConfigAction | NetworkControllerGetEthQueryAction;
197
+ export declare type NetworkControllerMessenger = RestrictedControllerMessenger<typeof name, NetworkControllerActions, NetworkControllerEvents, string, string>;
198
+ export declare type NetworkControllerOptions = {
199
+ messenger: NetworkControllerMessenger;
200
+ trackMetaMetricsEvent: () => void;
201
+ infuraProjectId: string;
202
+ state?: Partial<NetworkState>;
203
+ };
204
+ export declare const defaultState: NetworkState;
205
+ declare type NetworkConfigurationId = string;
206
+ /**
207
+ * The collection of auto-managed network clients that map to Infura networks.
208
+ */
209
+ declare type AutoManagedBuiltInNetworkClientRegistry = Record<BuiltInNetworkClientId, AutoManagedNetworkClient<InfuraNetworkClientConfiguration>>;
210
+ /**
211
+ * The collection of auto-managed network clients that map to Infura networks.
212
+ */
213
+ declare type AutoManagedCustomNetworkClientRegistry = Record<CustomNetworkClientId, AutoManagedNetworkClient<CustomNetworkClientConfiguration>>;
214
+ /**
215
+ * Controller that creates and manages an Ethereum network provider.
216
+ */
217
+ export declare class NetworkController extends BaseControllerV2<typeof name, NetworkState, NetworkControllerMessenger> {
218
+ #private;
219
+ constructor({ messenger, state, infuraProjectId, trackMetaMetricsEvent, }: NetworkControllerOptions);
220
+ /**
221
+ * Accesses the provider and block tracker for the currently selected network.
222
+ *
223
+ * @returns The proxy and block tracker proxies.
224
+ */
225
+ getProviderAndBlockTracker(): {
226
+ provider: SwappableProxy<ProxyWithAccessibleTarget<Provider>> | undefined;
227
+ blockTracker: SwappableProxy<ProxyWithAccessibleTarget<BlockTracker>> | undefined;
228
+ };
229
+ /**
230
+ * Returns all of the network clients that have been created so far, keyed by
231
+ * their identifier in the network client registry. This collection represents
232
+ * not only built-in networks but also any custom networks that consumers have
233
+ * added.
234
+ *
235
+ * @returns The list of known network clients.
236
+ */
237
+ getNetworkClientRegistry(): AutoManagedBuiltInNetworkClientRegistry & AutoManagedCustomNetworkClientRegistry;
238
+ /**
239
+ * Returns the Infura network client with the given ID.
240
+ *
241
+ * @param infuraNetworkClientId - An Infura network client ID.
242
+ * @returns The Infura network client.
243
+ * @throws If an Infura network client does not exist with the given ID.
244
+ */
245
+ getNetworkClientById(infuraNetworkClientId: BuiltInNetworkClientId): AutoManagedNetworkClient<InfuraNetworkClientConfiguration>;
246
+ /**
247
+ * Returns the custom network client with the given ID.
248
+ *
249
+ * @param customNetworkClientId - A custom network client ID.
250
+ * @returns The custom network client.
251
+ * @throws If a custom network client does not exist with the given ID.
252
+ */
253
+ getNetworkClientById(customNetworkClientId: CustomNetworkClientId): AutoManagedNetworkClient<CustomNetworkClientConfiguration>;
254
+ /**
255
+ * Populates the network clients and establishes the initial network based on
256
+ * the provider configuration in state.
257
+ */
258
+ initializeProvider(): Promise<void>;
259
+ /**
260
+ * Performs side effects after switching to a network. If the network is
261
+ * available, updates the network state with the network ID of the network and
262
+ * stores whether the network supports EIP-1559; otherwise clears said
263
+ * information about the network that may have been previously stored.
264
+ *
265
+ * @fires infuraIsBlocked if the network is Infura-supported and is blocking
266
+ * requests.
267
+ * @fires infuraIsUnblocked if the network is Infura-supported and is not
268
+ * blocking requests, or if the network is not Infura-supported.
269
+ */
270
+ lookupNetwork(): Promise<void>;
271
+ /**
272
+ * Convenience method to update provider network type settings.
273
+ *
274
+ * @param type - Human readable network name.
275
+ */
276
+ setProviderType(type: InfuraNetworkType): Promise<void>;
277
+ /**
278
+ * Convenience method to update provider RPC settings.
279
+ *
280
+ * @param networkConfigurationId - The unique id for the network configuration to set as the active provider.
281
+ */
282
+ setActiveNetwork(networkConfigurationId: string): Promise<void>;
283
+ /**
284
+ * Determines whether the network supports EIP-1559 by checking whether the
285
+ * latest block has a `baseFeePerGas` property, then updates state
286
+ * appropriately.
287
+ *
288
+ * @returns A promise that resolves to true if the network supports EIP-1559
289
+ * , false otherwise, or `undefined` if unable to determine the compatibility.
290
+ */
291
+ getEIP1559Compatibility(): Promise<boolean | undefined>;
292
+ /**
293
+ * Re-initializes the provider and block tracker for the current network.
294
+ */
295
+ resetConnection(): Promise<void>;
296
+ /**
297
+ * Adds a new custom network or updates the information for an existing
298
+ * network.
299
+ *
300
+ * This may involve updating the `networkConfigurations` property in
301
+ * state as well and/or adding a new network client to the network client
302
+ * registry. The `rpcUrl` and `chainId` of the given object are used to
303
+ * determine which action to take:
304
+ *
305
+ * - If the `rpcUrl` corresponds to an existing network configuration
306
+ * (case-insensitively), then it is overwritten with the object. Furthermore,
307
+ * if the `chainId` is different from the existing network configuration, then
308
+ * the existing network client is replaced with a new one.
309
+ * - If the `rpcUrl` does not correspond to an existing network configuration
310
+ * (case-insensitively), then the object is used to add a new network
311
+ * configuration along with a new network client.
312
+ *
313
+ * @param networkConfiguration - The network configuration to add or update.
314
+ * @param options - Additional configuration options.
315
+ * @param options.referrer - Used to create a metrics event; the site from which the call originated, or 'metamask' for internal calls.
316
+ * @param options.source - Used to create a metrics event; where the event originated (i.e. from a dapp or from the network form).
317
+ * @param options.setActive - If true, switches to the network upon adding or updating it (default: false).
318
+ * @returns The ID for the added or updated network configuration.
319
+ */
320
+ upsertNetworkConfiguration(networkConfiguration: NetworkConfiguration, { referrer, source, setActive, }: {
321
+ referrer: string;
322
+ source: string;
323
+ setActive?: boolean;
324
+ }): Promise<string>;
325
+ /**
326
+ * Removes a custom network from state.
327
+ *
328
+ * This involves updating the `networkConfigurations` property in state as
329
+ * well and removing the network client that corresponds to the network from
330
+ * the client registry.
331
+ *
332
+ * @param networkConfigurationId - The ID of an existing network
333
+ * configuration.
334
+ */
335
+ removeNetworkConfiguration(networkConfigurationId: string): void;
336
+ /**
337
+ * Switches to the previously selected network, assuming that there is one
338
+ * (if not and `initializeProvider` has not been previously called, then this
339
+ * method is equivalent to calling `resetConnection`).
340
+ */
341
+ rollbackToPreviousProvider(): Promise<void>;
342
+ /**
343
+ * Deactivates the controller, stopping any ongoing polling.
344
+ *
345
+ * In-progress requests will not be aborted.
346
+ */
347
+ destroy(): Promise<void>;
348
+ /**
349
+ * Updates the controller using the given backup data.
350
+ *
351
+ * @param backup - The data that has been backed up.
352
+ * @param backup.networkConfigurations - Network configurations in the backup.
353
+ */
354
+ loadBackup({ networkConfigurations, }: {
355
+ networkConfigurations: NetworkState['networkConfigurations'];
356
+ }): void;
357
+ /**
358
+ * Searches for a network configuration ID with the given ChainID and returns it.
359
+ *
360
+ * @param chainId - ChainId to search for
361
+ * @returns networkClientId of the network configuration with the given chainId
362
+ */
363
+ findNetworkClientIdByChainId(chainId: Hex): NetworkClientId;
364
+ }
365
+ export {};
366
+ //# sourceMappingURL=NetworkController.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NetworkController.d.ts","sourceRoot":"","sources":["../src/NetworkController.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAKL,iBAAiB,EACjB,WAAW,EAEZ,MAAM,4BAA4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