fizen-evm-networks 1.0.4 → 1.0.5
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/lib/index.d.ts +20 -1
- package/lib/index.js +1 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
@@ -1 +1,20 @@
|
|
1
|
-
export {
|
1
|
+
export default class FizenEvmNetworks {
|
2
|
+
private _chains;
|
3
|
+
private _whiteListChainIds;
|
4
|
+
constructor(ids: number[]);
|
5
|
+
init(): Promise<void>;
|
6
|
+
setWhiteListchainIds(ids: number[]): void;
|
7
|
+
private _internalFetchChains;
|
8
|
+
private _fetchChains;
|
9
|
+
private _fetchRPCData;
|
10
|
+
private _socketQuery;
|
11
|
+
formatData: (url: string, data: any) => {
|
12
|
+
url: string;
|
13
|
+
height: any;
|
14
|
+
latency: any;
|
15
|
+
};
|
16
|
+
private _httpQuery;
|
17
|
+
private _fetchChain;
|
18
|
+
getChains(): any[];
|
19
|
+
getLowestLatencyChain(chainId: number): any;
|
20
|
+
}
|
package/lib/index.js
CHANGED