essential-eth 0.4.9-beta.4 → 0.4.11

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.
Files changed (49) hide show
  1. package/lib/cjs/classes/Contract.js +3 -8
  2. package/lib/cjs/classes/utils/fetchers.d.ts +3 -3
  3. package/lib/cjs/classes/utils/fetchers.js +21 -3
  4. package/lib/cjs/index.d.ts +3 -2
  5. package/lib/cjs/index.js +5 -26
  6. package/lib/cjs/providers/JsonRpcProvider.d.ts +36 -6
  7. package/lib/cjs/providers/JsonRpcProvider.js +56 -28
  8. package/lib/cjs/providers/test/rpc-urls.d.ts +10 -0
  9. package/lib/cjs/providers/test/rpc-urls.js +13 -0
  10. package/lib/cjs/providers/utils/chains-info.d.ts +23 -1
  11. package/lib/cjs/providers/utils/chains-info.js +69 -3
  12. package/lib/cjs/shared/tiny-big/tiny-big.d.ts +6 -0
  13. package/lib/cjs/shared/tiny-big/tiny-big.js +6 -0
  14. package/lib/cjs/types/Block.types.d.ts +1 -0
  15. package/lib/cjs/utils/ether-to-gwei.d.ts +26 -0
  16. package/lib/cjs/utils/ether-to-gwei.js +34 -0
  17. package/lib/cjs/utils/ether-to-wei.d.ts +4 -2
  18. package/lib/cjs/utils/ether-to-wei.js +4 -2
  19. package/lib/cjs/utils/gwei-to-ether.d.ts +26 -0
  20. package/lib/cjs/utils/gwei-to-ether.js +34 -0
  21. package/lib/cjs/utils/is-address.d.ts +19 -0
  22. package/lib/cjs/utils/is-address.js +19 -0
  23. package/lib/cjs/utils/to-checksum-address.d.ts +2 -2
  24. package/lib/cjs/utils/to-checksum-address.js +2 -2
  25. package/lib/cjs/utils/wei-to-ether.d.ts +12 -12
  26. package/lib/cjs/utils/wei-to-ether.js +11 -11
  27. package/lib/esm/classes/Contract.js +3 -8
  28. package/lib/esm/classes/utils/fetchers.d.ts +3 -3
  29. package/lib/esm/classes/utils/fetchers.js +21 -3
  30. package/lib/esm/index.d.ts +3 -2
  31. package/lib/esm/index.js +3 -2
  32. package/lib/esm/providers/JsonRpcProvider.d.ts +7 -5
  33. package/lib/esm/providers/JsonRpcProvider.js +27 -27
  34. package/lib/esm/providers/test/rpc-urls.d.ts +10 -0
  35. package/lib/esm/providers/test/rpc-urls.js +10 -0
  36. package/lib/esm/providers/utils/chains-info.d.ts +23 -1
  37. package/lib/esm/providers/utils/chains-info.js +69 -3
  38. package/lib/esm/types/Block.types.d.ts +1 -0
  39. package/lib/esm/utils/ether-to-gwei.d.ts +3 -0
  40. package/lib/esm/utils/ether-to-gwei.js +7 -0
  41. package/lib/esm/utils/gwei-to-ether.d.ts +3 -0
  42. package/lib/esm/utils/gwei-to-ether.js +7 -0
  43. package/lib/esm/utils/wei-to-ether.d.ts +1 -1
  44. package/package.json +8 -12
  45. package/readme.md +112 -9
  46. package/lib/cjs/utils/index.d.ts +0 -5
  47. package/lib/cjs/utils/index.js +0 -11
  48. package/lib/esm/utils/index.d.ts +0 -5
  49. package/lib/esm/utils/index.js +0 -5
@@ -51,17 +51,12 @@ class BaseContract {
51
51
  ? estimateGas(data)
52
52
  : null;
53
53
  const req = () => __awaiter(this, void 0, void 0, function* () {
54
- return yield (0, fetchers_1.post)(this._provider._rpcUrl[this._provider._rpcUrlCounter], (0, fetchers_1.buildRPCPostBody)('eth_call', [
55
- Object.assign({ to: this._address.toLowerCase(), data: data }, (decimalGas
54
+ return yield (0, fetchers_1.post)(this._provider._rpcUrl, (0, fetchers_1.buildRPCPostBody)('eth_call', [
55
+ Object.assign({ to: this._address.toLowerCase(), data }, (decimalGas
56
56
  ? { gas: `0x${decimalGas.toString(16)}` }
57
57
  : {})),
58
58
  'latest',
59
- ])).catch((e) => {
60
- if (e.code === 'ENOTFOUND') {
61
- this._provider._rpcUrlCounter++;
62
- return req();
63
- }
64
- });
59
+ ]));
65
60
  });
66
61
  const nodeResponse = yield req();
67
62
  return (0, encode_decode_transaction_1.decodeRPCResponse)(jsonABIArgument, nodeResponse);
@@ -1,9 +1,9 @@
1
1
  export declare function post(url: string, body: Record<string, unknown>): Promise<any>;
2
- declare type RPCMethodName = 'eth_getBlockByNumber' | 'eth_call' | 'eth_chainId';
3
- export declare function buildRPCPostBody(method: RPCMethodName, params: any[]): {
2
+ declare type RPCMethodName = 'eth_getBlockByNumber' | 'eth_call' | 'eth_chainId' | 'eth_gasPrice' | 'eth_getBalance';
3
+ export declare function buildRPCPostBody(method: RPCMethodName, params: unknown[]): {
4
4
  jsonrpc: string;
5
5
  id: number;
6
6
  method: RPCMethodName;
7
- params: any[];
7
+ params: unknown[];
8
8
  };
9
9
  export {};
@@ -1,4 +1,13 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
2
11
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
13
  };
@@ -13,10 +22,19 @@ function post(url, body) {
13
22
  },
14
23
  body: JSON.stringify(body),
15
24
  })
16
- .then((r) => r.json())
25
+ .then((r) => __awaiter(this, void 0, void 0, function* () {
26
+ const t = yield r.text();
27
+ try {
28
+ return JSON.parse(t);
29
+ }
30
+ catch (_a) {
31
+ throw new Error(`Invalid JSON RPC response: "${t}"`);
32
+ }
33
+ }))
17
34
  .then((response) => {
18
- if (response.error) {
19
- throw new Error(response.error);
35
+ const result = response === null || response === void 0 ? void 0 : response.result;
36
+ if (!result) {
37
+ throw new Error(`Invalid JSON RPC response: ${JSON.stringify(response)}`);
20
38
  }
21
39
  return response.result;
22
40
  });
@@ -5,9 +5,10 @@ import { Block } from './types/Block.types';
5
5
  import { ContractTypes, JSONABI, JSONABIArgument } from './types/Contract.types';
6
6
  import { Network } from './types/Network.types';
7
7
  import { Transaction } from './types/Transaction.types';
8
- import * as utils from './utils';
8
+ import { etherToGwei } from './utils/ether-to-gwei';
9
9
  import { etherToWei } from './utils/ether-to-wei';
10
+ import { gweiToEther } from './utils/gwei-to-ether';
10
11
  import { isAddress } from './utils/is-address';
11
12
  import { toChecksumAddress } from './utils/to-checksum-address';
12
13
  import { weiToEther } from './utils/wei-to-ether';
13
- export { utils, etherToWei, isAddress, jsonRpcProvider, JsonRpcProvider, tinyBig, toChecksumAddress, weiToEther, Contract, TinyBig, Block, ContractTypes, JSONABI, JSONABIArgument, Network, Transaction, };
14
+ export { etherToWei, etherToGwei, isAddress, jsonRpcProvider, JsonRpcProvider, tinyBig, toChecksumAddress, weiToEther, gweiToEther, Contract, TinyBig, Block, ContractTypes, JSONABI, JSONABIArgument, Network, Transaction, };
package/lib/cjs/index.js CHANGED
@@ -1,29 +1,6 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
2
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.TinyBig = exports.Contract = exports.weiToEther = exports.toChecksumAddress = exports.tinyBig = exports.JsonRpcProvider = exports.jsonRpcProvider = exports.isAddress = exports.etherToWei = exports.utils = void 0;
3
+ exports.TinyBig = exports.Contract = exports.gweiToEther = exports.weiToEther = exports.toChecksumAddress = exports.tinyBig = exports.JsonRpcProvider = exports.jsonRpcProvider = exports.isAddress = exports.etherToGwei = exports.etherToWei = void 0;
27
4
  const Contract_1 = require("./classes/Contract");
28
5
  Object.defineProperty(exports, "Contract", { enumerable: true, get: function () { return Contract_1.Contract; } });
29
6
  const JsonRpcProvider_1 = require("./providers/JsonRpcProvider");
@@ -32,10 +9,12 @@ Object.defineProperty(exports, "jsonRpcProvider", { enumerable: true, get: funct
32
9
  const tiny_big_1 = require("./shared/tiny-big/tiny-big");
33
10
  Object.defineProperty(exports, "tinyBig", { enumerable: true, get: function () { return tiny_big_1.tinyBig; } });
34
11
  Object.defineProperty(exports, "TinyBig", { enumerable: true, get: function () { return tiny_big_1.TinyBig; } });
35
- const utils = __importStar(require("./utils"));
36
- exports.utils = utils;
12
+ const ether_to_gwei_1 = require("./utils/ether-to-gwei");
13
+ Object.defineProperty(exports, "etherToGwei", { enumerable: true, get: function () { return ether_to_gwei_1.etherToGwei; } });
37
14
  const ether_to_wei_1 = require("./utils/ether-to-wei");
38
15
  Object.defineProperty(exports, "etherToWei", { enumerable: true, get: function () { return ether_to_wei_1.etherToWei; } });
16
+ const gwei_to_ether_1 = require("./utils/gwei-to-ether");
17
+ Object.defineProperty(exports, "gweiToEther", { enumerable: true, get: function () { return gwei_to_ether_1.gweiToEther; } });
39
18
  const is_address_1 = require("./utils/is-address");
40
19
  Object.defineProperty(exports, "isAddress", { enumerable: true, get: function () { return is_address_1.isAddress; } });
41
20
  const to_checksum_address_1 = require("./utils/to-checksum-address");
@@ -1,23 +1,53 @@
1
- import { Block } from '../types/Block.types';
1
+ import { TinyBig } from '../shared/tiny-big/tiny-big';
2
+ import { Block, BlockTag } from '../types/Block.types';
2
3
  import { Network } from '../types/Network.types';
3
4
  export declare class JsonRpcProvider {
4
5
  /**
5
- * The URL to your Eth node. Consider POKT or Infura
6
+ * @ignore
6
7
  */
7
- readonly _rpcUrl: Array<string>;
8
- _rpcUrlCounter: number;
9
- constructor(rpcUrl?: string | Array<string>);
8
+ readonly _rpcUrl: string;
9
+ /**
10
+ * @param rpcUrl The URL to your Eth node. Consider POKT or Infura
11
+ */
12
+ constructor(rpcUrl?: string);
10
13
  /**
11
14
  * Returns the block requested
12
15
  * Same as `web3.eth.getBlock`
13
16
  */
14
- getBlock(timeFrame: 'latest' | 'earliest' | 'pending' | number, returnTransactionObjects?: boolean): Promise<Block>;
17
+ getBlock(timeFrame: BlockTag, returnTransactionObjects?: boolean): Promise<Block>;
15
18
  /**
16
19
  * Returns the network this provider is connected to
17
20
  */
18
21
  getNetwork(): Promise<Network>;
22
+ /**
23
+ * Returns the current gas price in wei as TinyBig
24
+ * Same as `ethers.provider.getGasPrice`
25
+ */
26
+ getGasPrice(): Promise<TinyBig>;
27
+ /**
28
+ * Returns the balance of the account in wei as TinyBig
29
+ * Same as `ethers.provider.getBalance`
30
+ * Same as `web3.eth.getBalance`
31
+ *
32
+ * @example
33
+ * ```js
34
+ * await provider
35
+ * .getBalance('0x7cB57B5A97eAbe94205C07890BE4c1aD31E486A8')
36
+ * .then((balance) => console.log(balance.toString()));
37
+ * // "28798127851528138"
38
+ * ```
39
+ */
40
+ getBalance(address: string, blockTag?: BlockTag): Promise<TinyBig>;
19
41
  }
20
42
  /**
21
43
  * Helper function to avoid "new"
44
+ *
45
+ * @example
46
+ * ```javascript
47
+ * jsonRpcProvider().getBlock('latest').then(block => {
48
+ * console.log(block.number);
49
+ * })
50
+ * // 14530496
51
+ * ```
22
52
  */
23
53
  export declare function jsonRpcProvider(rpcUrl?: string): JsonRpcProvider;
@@ -16,25 +16,20 @@ exports.jsonRpcProvider = exports.JsonRpcProvider = void 0;
16
16
  const clean_block_1 = require("../classes/utils/clean-block");
17
17
  const fetchers_1 = require("../classes/utils/fetchers");
18
18
  const hex_to_decimal_1 = require("../classes/utils/hex-to-decimal");
19
+ const tiny_big_1 = require("../shared/tiny-big/tiny-big");
19
20
  const chains_info_1 = __importDefault(require("./utils/chains-info"));
20
21
  class JsonRpcProvider {
22
+ /**
23
+ * @param rpcUrl The URL to your Eth node. Consider POKT or Infura
24
+ */
21
25
  constructor(rpcUrl) {
22
- this._rpcUrl = (() => {
23
- if (!rpcUrl) {
24
- return ['https://free-eth-node.com/api/eth'];
25
- }
26
- else if (!Array.isArray(rpcUrl)) {
27
- return [rpcUrl];
28
- }
29
- return rpcUrl;
30
- })();
31
- this._rpcUrlCounter = 0;
26
+ this._rpcUrl = rpcUrl || 'https://free-eth-node.com/api/eth';
32
27
  }
33
28
  /**
34
29
  * Returns the block requested
35
30
  * Same as `web3.eth.getBlock`
36
31
  */
37
- getBlock(timeFrame /* block number as integer */, returnTransactionObjects = false) {
32
+ getBlock(timeFrame, returnTransactionObjects = false) {
38
33
  return __awaiter(this, void 0, void 0, function* () {
39
34
  let rpcTimeFrame;
40
35
  if (typeof timeFrame === 'number') {
@@ -45,17 +40,12 @@ class JsonRpcProvider {
45
40
  // "latest", "earliest", and "pending" require no manipulation
46
41
  rpcTimeFrame = timeFrame;
47
42
  }
48
- const req = () => __awaiter(this, void 0, void 0, function* () {
49
- return yield (0, fetchers_1.post)(this._rpcUrl[this._rpcUrlCounter], (0, fetchers_1.buildRPCPostBody)('eth_getBlockByNumber', [
43
+ const req = () => {
44
+ return (0, fetchers_1.post)(this._rpcUrl, (0, fetchers_1.buildRPCPostBody)('eth_getBlockByNumber', [
50
45
  rpcTimeFrame,
51
46
  returnTransactionObjects,
52
- ])).catch((e) => {
53
- if (e.code === 'ENOTFOUND') {
54
- this._rpcUrlCounter++;
55
- return req();
56
- }
57
- });
58
- });
47
+ ]));
48
+ };
59
49
  const nodeResponse = (yield req());
60
50
  return (0, clean_block_1.cleanBlock)(nodeResponse, returnTransactionObjects);
61
51
  });
@@ -65,14 +55,9 @@ class JsonRpcProvider {
65
55
  */
66
56
  getNetwork() {
67
57
  return __awaiter(this, void 0, void 0, function* () {
68
- const req = () => __awaiter(this, void 0, void 0, function* () {
69
- return yield (0, fetchers_1.post)(this._rpcUrl[this._rpcUrlCounter], (0, fetchers_1.buildRPCPostBody)('eth_chainId', [])).catch((e) => {
70
- if (e.code === 'ENOTFOUND') {
71
- this._rpcUrlCounter++;
72
- return req();
73
- }
74
- });
75
- });
58
+ const req = () => {
59
+ return (0, fetchers_1.post)(this._rpcUrl, (0, fetchers_1.buildRPCPostBody)('eth_chainId', []));
60
+ };
76
61
  const nodeResponse = (yield req());
77
62
  const chainId = (0, hex_to_decimal_1.hexToDecimal)(nodeResponse);
78
63
  const info = chains_info_1.default[chainId];
@@ -83,10 +68,53 @@ class JsonRpcProvider {
83
68
  };
84
69
  });
85
70
  }
71
+ /**
72
+ * Returns the current gas price in wei as TinyBig
73
+ * Same as `ethers.provider.getGasPrice`
74
+ */
75
+ getGasPrice() {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ const req = () => {
78
+ return (0, fetchers_1.post)(this._rpcUrl, (0, fetchers_1.buildRPCPostBody)('eth_gasPrice', []));
79
+ };
80
+ const nodeResponse = (yield req()); /* '0x153cfb1ad0' */
81
+ return (0, tiny_big_1.tinyBig)((0, hex_to_decimal_1.hexToDecimal)(nodeResponse));
82
+ });
83
+ }
84
+ /**
85
+ * Returns the balance of the account in wei as TinyBig
86
+ * Same as `ethers.provider.getBalance`
87
+ * Same as `web3.eth.getBalance`
88
+ *
89
+ * @example
90
+ * ```js
91
+ * await provider
92
+ * .getBalance('0x7cB57B5A97eAbe94205C07890BE4c1aD31E486A8')
93
+ * .then((balance) => console.log(balance.toString()));
94
+ * // "28798127851528138"
95
+ * ```
96
+ */
97
+ getBalance(address, blockTag = 'latest') {
98
+ return __awaiter(this, void 0, void 0, function* () {
99
+ const req = () => {
100
+ return (0, fetchers_1.post)(this._rpcUrl, (0, fetchers_1.buildRPCPostBody)('eth_getBalance', [address, blockTag]));
101
+ };
102
+ const nodeResponse = (yield req()); /* '0x153cfb1ad0' */
103
+ return (0, tiny_big_1.tinyBig)((0, hex_to_decimal_1.hexToDecimal)(nodeResponse));
104
+ });
105
+ }
86
106
  }
87
107
  exports.JsonRpcProvider = JsonRpcProvider;
88
108
  /**
89
109
  * Helper function to avoid "new"
110
+ *
111
+ * @example
112
+ * ```javascript
113
+ * jsonRpcProvider().getBlock('latest').then(block => {
114
+ * console.log(block.number);
115
+ * })
116
+ * // 14530496
117
+ * ```
90
118
  */
91
119
  function jsonRpcProvider(rpcUrl) {
92
120
  return new JsonRpcProvider(rpcUrl);
@@ -0,0 +1,10 @@
1
+ export declare const fakeUrls: {
2
+ readonly notRPCButRealHttp: "https://httpstat.us/200";
3
+ };
4
+ export declare const rpcUrls: {
5
+ mainnet: string;
6
+ gno: string;
7
+ bnb: string;
8
+ arb1: string;
9
+ gor: string;
10
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.rpcUrls = exports.fakeUrls = void 0;
4
+ exports.fakeUrls = {
5
+ notRPCButRealHttp: 'https://httpstat.us/200',
6
+ };
7
+ exports.rpcUrls = {
8
+ mainnet: `${process.env.RPC_ORIGIN}/api/eth`,
9
+ gno: `${process.env.RPC_ORIGIN}/api/gno`,
10
+ bnb: `${process.env.RPC_ORIGIN}/api/bnb`,
11
+ arb1: `${process.env.RPC_ORIGIN}/api/arb1`,
12
+ gor: `${process.env.RPC_ORIGIN}/api/gor`,
13
+ };
@@ -45,6 +45,7 @@ declare const _default: {
45
45
  "51": string[];
46
46
  "52": string[];
47
47
  "53": string[];
48
+ "54": string[];
48
49
  "55": string[];
49
50
  "56": string[];
50
51
  "57": string[];
@@ -98,9 +99,11 @@ declare const _default: {
98
99
  "127": string[];
99
100
  "128": string[];
100
101
  "137": string[];
102
+ "141": string[];
101
103
  "142": string[];
102
104
  "162": string[];
103
105
  "163": string[];
106
+ "168": string[];
104
107
  "170": string[];
105
108
  "172": string[];
106
109
  "186": string[];
@@ -109,7 +112,10 @@ declare const _default: {
109
112
  "199": string[];
110
113
  "200": string[];
111
114
  "211": string[];
115
+ "218": string[];
112
116
  "222": string[];
117
+ "225": string[];
118
+ "226": string[];
113
119
  "246": string[];
114
120
  "250": string[];
115
121
  "256": string[];
@@ -117,6 +123,7 @@ declare const _default: {
117
123
  "262": string[];
118
124
  "269": string[];
119
125
  "288": string[];
126
+ "300": string[];
120
127
  "321": string[];
121
128
  "322": string[];
122
129
  "333": string[];
@@ -145,6 +152,7 @@ declare const _default: {
145
152
  "721": string[];
146
153
  "777": string[];
147
154
  "787": string[];
155
+ "788": string[];
148
156
  "803": string[];
149
157
  "820": string[];
150
158
  "821": string[];
@@ -162,6 +170,7 @@ declare const _default: {
162
170
  "999": string[];
163
171
  "1001": string[];
164
172
  "1007": string[];
173
+ "1008": string[];
165
174
  "1010": string[];
166
175
  "1012": string[];
167
176
  "1022": string[];
@@ -180,14 +189,19 @@ declare const _default: {
180
189
  "1280": string[];
181
190
  "1284": string[];
182
191
  "1285": string[];
192
+ "1286": string[];
183
193
  "1287": string[];
184
194
  "1288": string[];
195
+ "1337": string[];
185
196
  "1618": string[];
186
197
  "1620": string[];
187
198
  "1657": string[];
199
+ "1688": string[];
188
200
  "1856": string[];
189
201
  "1898": string[];
202
+ "1984": string[];
190
203
  "1987": string[];
204
+ "2001": string[];
191
205
  "2020": string[];
192
206
  "2021": string[];
193
207
  "2022": string[];
@@ -195,7 +209,10 @@ declare const _default: {
195
209
  "2100": string[];
196
210
  "2101": string[];
197
211
  "2213": string[];
212
+ "2221": string[];
198
213
  "2559": string[];
214
+ "3000": string[];
215
+ "3001": string[];
199
216
  "3331": string[];
200
217
  "3333": string[];
201
218
  "3334": string[];
@@ -205,12 +222,14 @@ declare const _default: {
205
222
  "3966": string[];
206
223
  "3967": string[];
207
224
  "4002": string[];
225
+ "4102": string[];
208
226
  "4689": string[];
209
227
  "4690": string[];
210
228
  "4918": string[];
211
229
  "5197": string[];
212
230
  "5315": string[];
213
231
  "5700": string[];
232
+ "5777": string[];
214
233
  "5851": string[];
215
234
  "5869": string[];
216
235
  "6626": string[];
@@ -243,6 +262,7 @@ declare const _default: {
243
262
  "16000": string[];
244
263
  "16001": string[];
245
264
  "19845": string[];
265
+ "21337": string[];
246
266
  "21816": string[];
247
267
  "24484": string[];
248
268
  "24734": string[];
@@ -259,6 +279,7 @@ declare const _default: {
259
279
  "43113": string[];
260
280
  "43114": string[];
261
281
  "44787": string[];
282
+ "45000": string[];
262
283
  "47805": string[];
263
284
  "49797": string[];
264
285
  "53935": string[];
@@ -300,10 +321,10 @@ declare const _default: {
300
321
  "110006": string[];
301
322
  "110007": string[];
302
323
  "110008": string[];
324
+ "200101": string[];
303
325
  "200625": string[];
304
326
  "201018": string[];
305
327
  "201030": string[];
306
- "210309": string[];
307
328
  "210425": string[];
308
329
  "234666": string[];
309
330
  "246529": string[];
@@ -319,6 +340,7 @@ declare const _default: {
319
340
  "1313114": string[];
320
341
  "1313500": string[];
321
342
  "1337702": string[];
343
+ "2203181": string[];
322
344
  "7762959": string[];
323
345
  "11155111": string[];
324
346
  "13371337": string[];
@@ -145,6 +145,9 @@ exports.default = {
145
145
  "53": [
146
146
  "tcet"
147
147
  ],
148
+ "54": [
149
+ "OP"
150
+ ],
148
151
  "55": [
149
152
  "ZYX"
150
153
  ],
@@ -304,6 +307,9 @@ exports.default = {
304
307
  "137": [
305
308
  "MATIC"
306
309
  ],
310
+ "141": [
311
+ "OPtest"
312
+ ],
307
313
  "142": [
308
314
  "dax"
309
315
  ],
@@ -313,6 +319,9 @@ exports.default = {
313
319
  "163": [
314
320
  "pht"
315
321
  ],
322
+ "168": [
323
+ "aioz"
324
+ ],
316
325
  "170": [
317
326
  "hoosmartchain"
318
327
  ],
@@ -337,9 +346,18 @@ exports.default = {
337
346
  "211": [
338
347
  "EDI"
339
348
  ],
349
+ "218": [
350
+ "SO1-old"
351
+ ],
340
352
  "222": [
341
353
  "ASK"
342
354
  ],
355
+ "225": [
356
+ "LA"
357
+ ],
358
+ "226": [
359
+ "TLA"
360
+ ],
343
361
  "246": [
344
362
  "ewt"
345
363
  ],
@@ -361,6 +379,9 @@ exports.default = {
361
379
  "288": [
362
380
  "Boba"
363
381
  ],
382
+ "300": [
383
+ "ogc"
384
+ ],
364
385
  "321": [
365
386
  "kcs"
366
387
  ],
@@ -445,6 +466,9 @@ exports.default = {
445
466
  "787": [
446
467
  "aca"
447
468
  ],
469
+ "788": [
470
+ "taero"
471
+ ],
448
472
  "803": [
449
473
  "haic"
450
474
  ],
@@ -496,6 +520,9 @@ exports.default = {
496
520
  "1007": [
497
521
  "tnew"
498
522
  ],
523
+ "1008": [
524
+ "eun"
525
+ ],
499
526
  "1010": [
500
527
  "EVC"
501
528
  ],
@@ -550,12 +577,18 @@ exports.default = {
550
577
  "1285": [
551
578
  "mriver"
552
579
  ],
580
+ "1286": [
581
+ "mrock-old"
582
+ ],
553
583
  "1287": [
554
584
  "mbase"
555
585
  ],
556
586
  "1288": [
557
587
  "mrock"
558
588
  ],
589
+ "1337": [
590
+ "cennz-old"
591
+ ],
559
592
  "1618": [
560
593
  "cate"
561
594
  ],
@@ -565,15 +598,24 @@ exports.default = {
565
598
  "1657": [
566
599
  "bta"
567
600
  ],
601
+ "1688": [
602
+ "LUDAN"
603
+ ],
568
604
  "1856": [
569
605
  "tsf"
570
606
  ],
571
607
  "1898": [
572
608
  "boya"
573
609
  ],
610
+ "1984": [
611
+ "euntest"
612
+ ],
574
613
  "1987": [
575
614
  "egem"
576
615
  ],
616
+ "2001": [
617
+ "milkAda"
618
+ ],
577
619
  "2020": [
578
620
  "420"
579
621
  ],
@@ -595,9 +637,18 @@ exports.default = {
595
637
  "2213": [
596
638
  "evanesco"
597
639
  ],
640
+ "2221": [
641
+ "kava"
642
+ ],
598
643
  "2559": [
599
644
  "ktoc"
600
645
  ],
646
+ "3000": [
647
+ "cennz-r"
648
+ ],
649
+ "3001": [
650
+ "cennz-n"
651
+ ],
601
652
  "3331": [
602
653
  "zcrbeach"
603
654
  ],
@@ -625,6 +676,9 @@ exports.default = {
625
676
  "4002": [
626
677
  "tftm"
627
678
  ],
679
+ "4102": [
680
+ "aioz-testnet"
681
+ ],
628
682
  "4689": [
629
683
  "iotex-mainnet"
630
684
  ],
@@ -643,6 +697,9 @@ exports.default = {
643
697
  "5700": [
644
698
  "tsys"
645
699
  ],
700
+ "5777": [
701
+ "dgcc"
702
+ ],
646
703
  "5851": [
647
704
  "Ontology Testnet"
648
705
  ],
@@ -739,6 +796,9 @@ exports.default = {
739
796
  "19845": [
740
797
  "btcix"
741
798
  ],
799
+ "21337": [
800
+ "cennz-a"
801
+ ],
742
802
  "21816": [
743
803
  "oml"
744
804
  ],
@@ -787,6 +847,9 @@ exports.default = {
787
847
  "44787": [
788
848
  "ALFA"
789
849
  ],
850
+ "45000": [
851
+ "autobahn"
852
+ ],
790
853
  "47805": [
791
854
  "REI"
792
855
  ],
@@ -910,6 +973,9 @@ exports.default = {
910
973
  "110008": [
911
974
  "qkc-d-s7"
912
975
  ],
976
+ "200101": [
977
+ "milkTAda"
978
+ ],
913
979
  "200625": [
914
980
  "aka"
915
981
  ],
@@ -919,9 +985,6 @@ exports.default = {
919
985
  "201030": [
920
986
  "alayadev"
921
987
  ],
922
- "210309": [
923
- "platondev"
924
- ],
925
988
  "210425": [
926
989
  "platon"
927
990
  ],
@@ -967,6 +1030,9 @@ exports.default = {
967
1030
  "1337702": [
968
1031
  "kintsugi"
969
1032
  ],
1033
+ "2203181": [
1034
+ "platondev"
1035
+ ],
970
1036
  "7762959": [
971
1037
  "music"
972
1038
  ],