essential-eth 0.4.8 → 0.4.9-alpha.1

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.
@@ -4,9 +4,8 @@ export declare class BaseContract {
4
4
  /**
5
5
  * The URL to your Eth node. Consider POKT or Infura
6
6
  */
7
- readonly _address: string;
8
- readonly _contractInterface: ContractInterface;
9
- readonly _provider: JsonRpcProvider;
7
+ private readonly _address;
8
+ private readonly _provider;
10
9
  /**
11
10
  * @param addressOrName - The ethereum address of the smart-contract
12
11
  * @param contractInterface - The JSON ABI of the smart-contract (like http://api.etherscan.io/api?module=contract&action=getabi&address=0x090d4613473dee047c3f2706764f49e0821d256e&format=raw)
@@ -28,7 +28,6 @@ class BaseContract {
28
28
  */
29
29
  constructor(addressOrName, contractInterface, signerOrProvider) {
30
30
  this._address = addressOrName;
31
- this._contractInterface = contractInterface;
32
31
  this._provider = signerOrProvider;
33
32
  contractInterface
34
33
  .filter((jsonABIArgument) => jsonABIArgument.type === 'function')
@@ -51,12 +50,15 @@ class BaseContract {
51
50
  'number' /* ABI specified "gas". */
52
51
  ? estimateGas(data)
53
52
  : null;
54
- const nodeResponse = yield (0, fetchers_1.post)(this._provider._rpcUrl, (0, fetchers_1.buildRPCPostBody)('eth_call', [
55
- Object.assign({ to: this._address.toLowerCase(), data: data }, (decimalGas
56
- ? { gas: `0x${decimalGas.toString(16)}` }
57
- : {})),
58
- 'latest',
59
- ]));
53
+ const req = () => __awaiter(this, void 0, void 0, function* () {
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
+ ? { gas: `0x${decimalGas.toString(16)}` }
57
+ : {})),
58
+ 'latest',
59
+ ]));
60
+ });
61
+ const nodeResponse = yield req();
60
62
  return (0, encode_decode_transaction_1.decodeRPCResponse)(jsonABIArgument, nodeResponse);
61
63
  }));
62
64
  }
@@ -1,5 +1,5 @@
1
1
  export declare function post(url: string, body: Record<string, unknown>): Promise<any>;
2
- declare type RPCMethodName = 'eth_getBlockByNumber' | 'eth_call' | 'eth_chainId';
2
+ declare type RPCMethodName = 'eth_getBlockByNumber' | 'eth_call' | 'eth_chainId' | 'eth_gasPrice';
3
3
  export declare function buildRPCPostBody(method: RPCMethodName, params: any[]): {
4
4
  jsonrpc: string;
5
5
  id: number;
@@ -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
  });
@@ -1,10 +1,11 @@
1
+ import { TinyBig } from '../shared/tiny-big/tiny-big';
1
2
  import { Block } from '../types/Block.types';
2
3
  import { Network } from '../types/Network.types';
3
4
  export declare class JsonRpcProvider {
4
5
  /**
5
6
  * The URL to your Eth node. Consider POKT or Infura
6
7
  */
7
- _rpcUrl: string;
8
+ readonly _rpcUrl: string;
8
9
  constructor(rpcUrl?: string);
9
10
  /**
10
11
  * Returns the block requested
@@ -15,6 +16,11 @@ export declare class JsonRpcProvider {
15
16
  * Returns the network this provider is connected to
16
17
  */
17
18
  getNetwork(): Promise<Network>;
19
+ /**
20
+ * Returns the current gas price in wei as TinyBig
21
+ * Same as `ethers.provider.getGasPrice`
22
+ */
23
+ getGasPrice(): Promise<TinyBig>;
18
24
  }
19
25
  /**
20
26
  * Helper function to avoid "new"
@@ -16,6 +16,7 @@ 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 {
21
22
  constructor(rpcUrl) {
@@ -36,10 +37,13 @@ class JsonRpcProvider {
36
37
  // "latest", "earliest", and "pending" require no manipulation
37
38
  rpcTimeFrame = timeFrame;
38
39
  }
39
- const nodeResponse = (yield (0, fetchers_1.post)(this._rpcUrl, (0, fetchers_1.buildRPCPostBody)('eth_getBlockByNumber', [
40
- rpcTimeFrame,
41
- returnTransactionObjects,
42
- ])));
40
+ const req = () => __awaiter(this, void 0, void 0, function* () {
41
+ return yield (0, fetchers_1.post)(this._rpcUrl, (0, fetchers_1.buildRPCPostBody)('eth_getBlockByNumber', [
42
+ rpcTimeFrame,
43
+ returnTransactionObjects,
44
+ ]));
45
+ });
46
+ const nodeResponse = (yield req());
43
47
  return (0, clean_block_1.cleanBlock)(nodeResponse, returnTransactionObjects);
44
48
  });
45
49
  }
@@ -48,7 +52,10 @@ class JsonRpcProvider {
48
52
  */
49
53
  getNetwork() {
50
54
  return __awaiter(this, void 0, void 0, function* () {
51
- const nodeResponse = (yield (0, fetchers_1.post)(this._rpcUrl, (0, fetchers_1.buildRPCPostBody)('eth_chainId', [])));
55
+ const req = () => __awaiter(this, void 0, void 0, function* () {
56
+ return yield (0, fetchers_1.post)(this._rpcUrl, (0, fetchers_1.buildRPCPostBody)('eth_chainId', []));
57
+ });
58
+ const nodeResponse = (yield req());
52
59
  const chainId = (0, hex_to_decimal_1.hexToDecimal)(nodeResponse);
53
60
  const info = chains_info_1.default[chainId];
54
61
  return {
@@ -58,6 +65,19 @@ class JsonRpcProvider {
58
65
  };
59
66
  });
60
67
  }
68
+ /**
69
+ * Returns the current gas price in wei as TinyBig
70
+ * Same as `ethers.provider.getGasPrice`
71
+ */
72
+ getGasPrice() {
73
+ return __awaiter(this, void 0, void 0, function* () {
74
+ const req = () => __awaiter(this, void 0, void 0, function* () {
75
+ return yield (0, fetchers_1.post)(this._rpcUrl, (0, fetchers_1.buildRPCPostBody)('eth_gasPrice', []));
76
+ });
77
+ const nodeResponse = (yield req()); /* '0x153cfb1ad0' */
78
+ return (0, tiny_big_1.tinyBig)((0, hex_to_decimal_1.hexToDecimal)(nodeResponse));
79
+ });
80
+ }
61
81
  }
62
82
  exports.JsonRpcProvider = JsonRpcProvider;
63
83
  /**
@@ -0,0 +1,3 @@
1
+ export declare const fakeUrls: {
2
+ readonly notRPCButRealHttp: "https://httpstat.us/200";
3
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fakeUrls = void 0;
4
+ exports.fakeUrls = {
5
+ notRPCButRealHttp: 'https://httpstat.us/200',
6
+ };
@@ -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[];
@@ -84,6 +85,7 @@ declare const _default: {
84
85
  "100": string[];
85
86
  "101": string[];
86
87
  "102": string[];
88
+ "105": string[];
87
89
  "106": string[];
88
90
  "107": string[];
89
91
  "108": string[];
@@ -97,9 +99,11 @@ declare const _default: {
97
99
  "127": string[];
98
100
  "128": string[];
99
101
  "137": string[];
102
+ "141": string[];
100
103
  "142": string[];
101
104
  "162": string[];
102
105
  "163": string[];
106
+ "168": string[];
103
107
  "170": string[];
104
108
  "172": string[];
105
109
  "186": string[];
@@ -108,16 +112,21 @@ declare const _default: {
108
112
  "199": string[];
109
113
  "200": string[];
110
114
  "211": string[];
115
+ "218": string[];
111
116
  "222": string[];
117
+ "225": string[];
118
+ "226": string[];
112
119
  "246": string[];
113
120
  "250": string[];
114
121
  "256": string[];
122
+ "258": string[];
115
123
  "262": string[];
116
124
  "269": string[];
117
125
  "288": string[];
118
126
  "321": string[];
119
127
  "322": string[];
120
128
  "333": string[];
129
+ "335": string[];
121
130
  "336": string[];
122
131
  "338": string[];
123
132
  "361": string[];
@@ -128,6 +137,8 @@ declare const _default: {
128
137
  "385": string[];
129
138
  "420": string[];
130
139
  "499": string[];
140
+ "512": string[];
141
+ "513": string[];
131
142
  "555": string[];
132
143
  "558": string[];
133
144
  "588": string[];
@@ -140,6 +151,7 @@ declare const _default: {
140
151
  "721": string[];
141
152
  "777": string[];
142
153
  "787": string[];
154
+ "788": string[];
143
155
  "803": string[];
144
156
  "820": string[];
145
157
  "821": string[];
@@ -150,6 +162,8 @@ declare const _default: {
150
162
  "902": string[];
151
163
  "903": string[];
152
164
  "940": string[];
165
+ "941": string[];
166
+ "942": string[];
153
167
  "977": string[];
154
168
  "998": string[];
155
169
  "999": string[];
@@ -173,13 +187,18 @@ declare const _default: {
173
187
  "1280": string[];
174
188
  "1284": string[];
175
189
  "1285": string[];
190
+ "1286": string[];
176
191
  "1287": string[];
177
192
  "1288": string[];
193
+ "1337": string[];
178
194
  "1618": string[];
179
195
  "1620": string[];
180
196
  "1657": string[];
197
+ "1688": string[];
181
198
  "1856": string[];
199
+ "1898": string[];
182
200
  "1987": string[];
201
+ "2001": string[];
183
202
  "2020": string[];
184
203
  "2021": string[];
185
204
  "2022": string[];
@@ -187,16 +206,27 @@ declare const _default: {
187
206
  "2100": string[];
188
207
  "2101": string[];
189
208
  "2213": string[];
209
+ "2221": string[];
190
210
  "2559": string[];
211
+ "3000": string[];
212
+ "3001": string[];
191
213
  "3331": string[];
192
214
  "3333": string[];
215
+ "3334": string[];
216
+ "3400": string[];
217
+ "3500": string[];
193
218
  "3690": string[];
219
+ "3966": string[];
220
+ "3967": string[];
194
221
  "4002": string[];
222
+ "4102": string[];
195
223
  "4689": string[];
196
224
  "4690": string[];
225
+ "4918": string[];
197
226
  "5197": string[];
198
227
  "5315": string[];
199
228
  "5700": string[];
229
+ "5777": string[];
200
230
  "5851": string[];
201
231
  "5869": string[];
202
232
  "6626": string[];
@@ -220,6 +250,7 @@ declare const _default: {
220
250
  "10000": string[];
221
251
  "10001": string[];
222
252
  "10101": string[];
253
+ "10823": string[];
223
254
  "11111": string[];
224
255
  "11437": string[];
225
256
  "12051": string[];
@@ -228,6 +259,7 @@ declare const _default: {
228
259
  "16000": string[];
229
260
  "16001": string[];
230
261
  "19845": string[];
262
+ "21816": string[];
231
263
  "24484": string[];
232
264
  "24734": string[];
233
265
  "31102": string[];
@@ -243,8 +275,10 @@ declare const _default: {
243
275
  "43113": string[];
244
276
  "43114": string[];
245
277
  "44787": string[];
278
+ "45000": string[];
246
279
  "47805": string[];
247
280
  "49797": string[];
281
+ "53935": string[];
248
282
  "55555": string[];
249
283
  "55556": string[];
250
284
  "60000": string[];
@@ -283,23 +317,26 @@ declare const _default: {
283
317
  "110006": string[];
284
318
  "110007": string[];
285
319
  "110008": string[];
320
+ "200101": string[];
286
321
  "200625": string[];
287
322
  "201018": string[];
288
323
  "201030": string[];
289
- "210309": string[];
290
324
  "210425": string[];
325
+ "234666": string[];
291
326
  "246529": string[];
292
327
  "246785": string[];
293
328
  "281121": string[];
294
329
  "333888": string[];
295
330
  "333999": string[];
296
331
  "421611": string[];
332
+ "444900": string[];
297
333
  "666666": string[];
298
334
  "888888": string[];
299
335
  "955305": string[];
300
336
  "1313114": string[];
301
337
  "1313500": string[];
302
338
  "1337702": string[];
339
+ "2203181": string[];
303
340
  "7762959": string[];
304
341
  "11155111": string[];
305
342
  "13371337": string[];
@@ -336,5 +373,6 @@ declare const _default: {
336
373
  "197710212030": string[];
337
374
  "197710212031": string[];
338
375
  "6022140761023": string[];
376
+ "868455272153094": string[];
339
377
  };
340
378
  export default _default;
@@ -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
  ],
@@ -260,7 +263,10 @@ exports.default = {
260
263
  "eti"
261
264
  ],
262
265
  "102": [
263
- "w3g"
266
+ "tw3g"
267
+ ],
268
+ "105": [
269
+ "dw3g"
264
270
  ],
265
271
  "106": [
266
272
  "vlx"
@@ -301,6 +307,9 @@ exports.default = {
301
307
  "137": [
302
308
  "MATIC"
303
309
  ],
310
+ "141": [
311
+ "OPtest"
312
+ ],
304
313
  "142": [
305
314
  "dax"
306
315
  ],
@@ -310,6 +319,9 @@ exports.default = {
310
319
  "163": [
311
320
  "pht"
312
321
  ],
322
+ "168": [
323
+ "aioz"
324
+ ],
313
325
  "170": [
314
326
  "hoosmartchain"
315
327
  ],
@@ -334,9 +346,18 @@ exports.default = {
334
346
  "211": [
335
347
  "EDI"
336
348
  ],
349
+ "218": [
350
+ "SO1-old"
351
+ ],
337
352
  "222": [
338
353
  "ASK"
339
354
  ],
355
+ "225": [
356
+ "LA"
357
+ ],
358
+ "226": [
359
+ "TLA"
360
+ ],
340
361
  "246": [
341
362
  "ewt"
342
363
  ],
@@ -346,6 +367,9 @@ exports.default = {
346
367
  "256": [
347
368
  "hecot"
348
369
  ],
370
+ "258": [
371
+ "setm"
372
+ ],
349
373
  "262": [
350
374
  "SUR"
351
375
  ],
@@ -364,6 +388,9 @@ exports.default = {
364
388
  "333": [
365
389
  "w3q"
366
390
  ],
391
+ "335": [
392
+ "DFKTEST"
393
+ ],
367
394
  "336": [
368
395
  "sdn"
369
396
  ],
@@ -394,6 +421,12 @@ exports.default = {
394
421
  "499": [
395
422
  "rupx"
396
423
  ],
424
+ "512": [
425
+ "aac"
426
+ ],
427
+ "513": [
428
+ "aact"
429
+ ],
397
430
  "555": [
398
431
  "CLASS"
399
432
  ],
@@ -430,6 +463,9 @@ exports.default = {
430
463
  "787": [
431
464
  "aca"
432
465
  ],
466
+ "788": [
467
+ "taero"
468
+ ],
433
469
  "803": [
434
470
  "haic"
435
471
  ],
@@ -460,6 +496,12 @@ exports.default = {
460
496
  "940": [
461
497
  "tpls"
462
498
  ],
499
+ "941": [
500
+ "t2bpls"
501
+ ],
502
+ "942": [
503
+ "t3pls"
504
+ ],
463
505
  "977": [
464
506
  "yeti"
465
507
  ],
@@ -529,12 +571,18 @@ exports.default = {
529
571
  "1285": [
530
572
  "mriver"
531
573
  ],
574
+ "1286": [
575
+ "mrock-old"
576
+ ],
532
577
  "1287": [
533
578
  "mbase"
534
579
  ],
535
580
  "1288": [
536
581
  "mrock"
537
582
  ],
583
+ "1337": [
584
+ "cennz-a"
585
+ ],
538
586
  "1618": [
539
587
  "cate"
540
588
  ],
@@ -544,12 +592,21 @@ exports.default = {
544
592
  "1657": [
545
593
  "bta"
546
594
  ],
595
+ "1688": [
596
+ "LUDAN"
597
+ ],
547
598
  "1856": [
548
599
  "tsf"
549
600
  ],
601
+ "1898": [
602
+ "boya"
603
+ ],
550
604
  "1987": [
551
605
  "egem"
552
606
  ],
607
+ "2001": [
608
+ "milkAda"
609
+ ],
553
610
  "2020": [
554
611
  "420"
555
612
  ],
@@ -571,27 +628,57 @@ exports.default = {
571
628
  "2213": [
572
629
  "evanesco"
573
630
  ],
631
+ "2221": [
632
+ "kava"
633
+ ],
574
634
  "2559": [
575
635
  "ktoc"
576
636
  ],
637
+ "3000": [
638
+ "cennz-r"
639
+ ],
640
+ "3001": [
641
+ "cennz-n"
642
+ ],
577
643
  "3331": [
578
644
  "zcrbeach"
579
645
  ],
580
646
  "3333": [
581
647
  "w3q-t"
582
648
  ],
649
+ "3334": [
650
+ "w3q-g"
651
+ ],
652
+ "3400": [
653
+ "prb"
654
+ ],
655
+ "3500": [
656
+ "prbtestnet"
657
+ ],
583
658
  "3690": [
584
659
  "btx"
585
660
  ],
661
+ "3966": [
662
+ "dyno"
663
+ ],
664
+ "3967": [
665
+ "tdyno"
666
+ ],
586
667
  "4002": [
587
668
  "tftm"
588
669
  ],
670
+ "4102": [
671
+ "aioz-testnet"
672
+ ],
589
673
  "4689": [
590
674
  "iotex-mainnet"
591
675
  ],
592
676
  "4690": [
593
677
  "iotex-testnet"
594
678
  ],
679
+ "4918": [
680
+ "xvm"
681
+ ],
595
682
  "5197": [
596
683
  "es"
597
684
  ],
@@ -601,6 +688,9 @@ exports.default = {
601
688
  "5700": [
602
689
  "tsys"
603
690
  ],
691
+ "5777": [
692
+ "dgcc"
693
+ ],
604
694
  "5851": [
605
695
  "Ontology Testnet"
606
696
  ],
@@ -670,6 +760,9 @@ exports.default = {
670
760
  "10101": [
671
761
  "GEN"
672
762
  ],
763
+ "10823": [
764
+ "CCP"
765
+ ],
673
766
  "11111": [
674
767
  "WAGMI"
675
768
  ],
@@ -694,6 +787,9 @@ exports.default = {
694
787
  "19845": [
695
788
  "btcix"
696
789
  ],
790
+ "21816": [
791
+ "oml"
792
+ ],
697
793
  "24484": [
698
794
  "web"
699
795
  ],
@@ -739,12 +835,18 @@ exports.default = {
739
835
  "44787": [
740
836
  "ALFA"
741
837
  ],
838
+ "45000": [
839
+ "autobahn"
840
+ ],
742
841
  "47805": [
743
842
  "REI"
744
843
  ],
745
844
  "49797": [
746
845
  "tnrg"
747
846
  ],
847
+ "53935": [
848
+ "DFK"
849
+ ],
748
850
  "55555": [
749
851
  "rei"
750
852
  ],
@@ -859,6 +961,9 @@ exports.default = {
859
961
  "110008": [
860
962
  "qkc-d-s7"
861
963
  ],
964
+ "200101": [
965
+ "milkTAda"
966
+ ],
862
967
  "200625": [
863
968
  "aka"
864
969
  ],
@@ -868,12 +973,12 @@ exports.default = {
868
973
  "201030": [
869
974
  "alayadev"
870
975
  ],
871
- "210309": [
872
- "platondev"
873
- ],
874
976
  "210425": [
875
977
  "platon"
876
978
  ],
979
+ "234666": [
980
+ "hym"
981
+ ],
877
982
  "246529": [
878
983
  "ats"
879
984
  ],
@@ -892,6 +997,9 @@ exports.default = {
892
997
  "421611": [
893
998
  "arb-rinkeby"
894
999
  ],
1000
+ "444900": [
1001
+ "wlkt"
1002
+ ],
895
1003
  "666666": [
896
1004
  "vpioneer"
897
1005
  ],
@@ -910,6 +1018,9 @@ exports.default = {
910
1018
  "1337702": [
911
1019
  "kintsugi"
912
1020
  ],
1021
+ "2203181": [
1022
+ "platondev"
1023
+ ],
913
1024
  "7762959": [
914
1025
  "music"
915
1026
  ],
@@ -1017,5 +1128,8 @@ exports.default = {
1017
1128
  ],
1018
1129
  "6022140761023": [
1019
1130
  "mole"
1131
+ ],
1132
+ "868455272153094": [
1133
+ "gw-testnet-v1"
1020
1134
  ]
1021
1135
  };
@@ -1,7 +1,7 @@
1
1
  export declare type ContractTypes = 'bool' | 'bytes1' | 'bytes2' | 'bytes3' | 'bytes4' | 'bytes5' | 'bytes6' | 'bytes7' | 'bytes8' | 'bytes9' | 'bytes10' | 'bytes11' | 'bytes12' | 'bytes13' | 'bytes14' | 'bytes15' | 'bytes16' | 'bytes17' | 'bytes18' | 'bytes19' | 'bytes20' | 'bytes21' | 'bytes22' | 'bytes23' | 'bytes24' | 'bytes25' | 'bytes26' | 'bytes27' | 'bytes28' | 'bytes29' | 'bytes30' | 'bytes31' | 'bytes32' | 'bytes32[]' | 'address' | 'address payable' | 'address[4]' | 'address[100]' | 'uint256' | 'uint256[100]' | 'uint8' | 'uint32' | string;
2
2
  export declare type ContractInterface = JSONABI;
3
3
  export declare type ContractFunction<T = any> = (...args: Array<any>) => Promise<T>;
4
- export declare type JSONABIArgument = {
4
+ export interface JSONABIArgument {
5
5
  anonymous?: false;
6
6
  inputs: {
7
7
  internalType?: ContractTypes | string;
@@ -20,5 +20,5 @@ export declare type JSONABIArgument = {
20
20
  gas?: number;
21
21
  constant?: boolean;
22
22
  payable?: boolean;
23
- };
23
+ }
24
24
  export declare type JSONABI = JSONABIArgument[];