@sentio/sdk 2.40.0-rc.18 → 2.40.0-rc.19

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.
@@ -200,7 +200,13 @@ export class ERC20ContractView extends ContractView<ERC20> {
200
200
  const result = iface.decodeFunctionResult("allowance", ret).toArray();
201
201
  return result.length == 1 ? result[0] : result;
202
202
  }
203
- console.log("missing eth call key:", "allowance", owner, spender, key);
203
+ console.debug(
204
+ "missing eth call key:",
205
+ "allowance",
206
+ owner,
207
+ spender,
208
+ key
209
+ );
204
210
  }
205
211
  return await this.contract.getFunction("allowance(address,address)")(
206
212
  owner,
@@ -236,7 +242,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
236
242
  const result = iface.decodeFunctionResult("balanceOf", ret).toArray();
237
243
  return result.length == 1 ? result[0] : result;
238
244
  }
239
- console.log("missing eth call key:", "balanceOf", account, key);
245
+ console.debug("missing eth call key:", "balanceOf", account, key);
240
246
  }
241
247
  return await this.contract.getFunction("balanceOf(address)")(
242
248
  account,
@@ -270,7 +276,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
270
276
  const result = iface.decodeFunctionResult("decimals", ret).toArray();
271
277
  return result.length == 1 ? result[0] : result;
272
278
  }
273
- console.log("missing eth call key:", "decimals", key);
279
+ console.debug("missing eth call key:", "decimals", key);
274
280
  }
275
281
  return await this.contract.getFunction("decimals()")(overrides || {});
276
282
  } catch (e) {
@@ -301,7 +307,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
301
307
  const result = iface.decodeFunctionResult("locker", ret).toArray();
302
308
  return result.length == 1 ? result[0] : result;
303
309
  }
304
- console.log("missing eth call key:", "locker", key);
310
+ console.debug("missing eth call key:", "locker", key);
305
311
  }
306
312
  return await this.contract.getFunction("locker()")(overrides || {});
307
313
  } catch (e) {
@@ -330,7 +336,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
330
336
  const result = iface.decodeFunctionResult("name", ret).toArray();
331
337
  return result.length == 1 ? result[0] : result;
332
338
  }
333
- console.log("missing eth call key:", "name", key);
339
+ console.debug("missing eth call key:", "name", key);
334
340
  }
335
341
  return await this.contract.getFunction("name()")(overrides || {});
336
342
  } catch (e) {
@@ -361,7 +367,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
361
367
  const result = iface.decodeFunctionResult("owner", ret).toArray();
362
368
  return result.length == 1 ? result[0] : result;
363
369
  }
364
- console.log("missing eth call key:", "owner", key);
370
+ console.debug("missing eth call key:", "owner", key);
365
371
  }
366
372
  return await this.contract.getFunction("owner()")(overrides || {});
367
373
  } catch (e) {
@@ -392,7 +398,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
392
398
  const result = iface.decodeFunctionResult("symbol", ret).toArray();
393
399
  return result.length == 1 ? result[0] : result;
394
400
  }
395
- console.log("missing eth call key:", "symbol", key);
401
+ console.debug("missing eth call key:", "symbol", key);
396
402
  }
397
403
  return await this.contract.getFunction("symbol()")(overrides || {});
398
404
  } catch (e) {
@@ -425,7 +431,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
425
431
  .toArray();
426
432
  return result.length == 1 ? result[0] : result;
427
433
  }
428
- console.log("missing eth call key:", "totalSupply", key);
434
+ console.debug("missing eth call key:", "totalSupply", key);
429
435
  }
430
436
  return await this.contract.getFunction("totalSupply()")(overrides || {});
431
437
  } catch (e) {
@@ -464,7 +470,13 @@ export class ERC20ContractView extends ContractView<ERC20> {
464
470
  const result = iface.decodeFunctionResult("approve", ret).toArray();
465
471
  return result.length == 1 ? result[0] : result;
466
472
  }
467
- console.log("missing eth call key:", "approve", spender, amount, key);
473
+ console.debug(
474
+ "missing eth call key:",
475
+ "approve",
476
+ spender,
477
+ amount,
478
+ key
479
+ );
468
480
  }
469
481
  return await this.contract
470
482
  .getFunction("approve(address,uint256)")
@@ -497,7 +509,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
497
509
  const result = iface.decodeFunctionResult("burn", ret).toArray();
498
510
  return result.length == 1 ? result[0] : result;
499
511
  }
500
- console.log("missing eth call key:", "burn", amount, key);
512
+ console.debug("missing eth call key:", "burn", amount, key);
501
513
  }
502
514
  return await this.contract
503
515
  .getFunction("burn(uint256)")
@@ -536,7 +548,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
536
548
  .toArray();
537
549
  return result.length == 1 ? result[0] : result;
538
550
  }
539
- console.log(
551
+ console.debug(
540
552
  "missing eth call key:",
541
553
  "burnFrom",
542
554
  account,
@@ -581,7 +593,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
581
593
  .toArray();
582
594
  return result.length == 1 ? result[0] : result;
583
595
  }
584
- console.log(
596
+ console.debug(
585
597
  "missing eth call key:",
586
598
  "decreaseAllowance",
587
599
  spender,
@@ -626,7 +638,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
626
638
  .toArray();
627
639
  return result.length == 1 ? result[0] : result;
628
640
  }
629
- console.log(
641
+ console.debug(
630
642
  "missing eth call key:",
631
643
  "increaseAllowance",
632
644
  spender,
@@ -666,7 +678,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
666
678
  .toArray();
667
679
  return result.length == 1 ? result[0] : result;
668
680
  }
669
- console.log("missing eth call key:", "renounceOwnership", key);
681
+ console.debug("missing eth call key:", "renounceOwnership", key);
670
682
  }
671
683
  return await this.contract
672
684
  .getFunction("renounceOwnership()")
@@ -701,7 +713,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
701
713
  .toArray();
702
714
  return result.length == 1 ? result[0] : result;
703
715
  }
704
- console.log("missing eth call key:", "setLocker", _locker, key);
716
+ console.debug("missing eth call key:", "setLocker", _locker, key);
705
717
  }
706
718
  return await this.contract
707
719
  .getFunction("setLocker(address)")
@@ -740,7 +752,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
740
752
  .toArray();
741
753
  return result.length == 1 ? result[0] : result;
742
754
  }
743
- console.log(
755
+ console.debug(
744
756
  "missing eth call key:",
745
757
  "transfer",
746
758
  recipient,
@@ -787,7 +799,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
787
799
  .toArray();
788
800
  return result.length == 1 ? result[0] : result;
789
801
  }
790
- console.log(
802
+ console.debug(
791
803
  "missing eth call key:",
792
804
  "transferFrom",
793
805
  sender,
@@ -831,7 +843,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
831
843
  .toArray();
832
844
  return result.length == 1 ? result[0] : result;
833
845
  }
834
- console.log(
846
+ console.debug(
835
847
  "missing eth call key:",
836
848
  "transferOwnership",
837
849
  newOwner,
@@ -125,7 +125,7 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
125
125
  const result = iface.decodeFunctionResult("name", ret).toArray();
126
126
  return result.length == 1 ? result[0] : result;
127
127
  }
128
- console.log("missing eth call key:", "name", key);
128
+ console.debug("missing eth call key:", "name", key);
129
129
  }
130
130
  return await this.contract.getFunction("name()")(overrides || {});
131
131
  } catch (e) {
@@ -158,7 +158,7 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
158
158
  .toArray();
159
159
  return result.length == 1 ? result[0] : result;
160
160
  }
161
- console.log("missing eth call key:", "totalSupply", key);
161
+ console.debug("missing eth call key:", "totalSupply", key);
162
162
  }
163
163
  return await this.contract.getFunction("totalSupply()")(overrides || {});
164
164
  } catch (e) {
@@ -189,7 +189,7 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
189
189
  const result = iface.decodeFunctionResult("decimals", ret).toArray();
190
190
  return result.length == 1 ? result[0] : result;
191
191
  }
192
- console.log("missing eth call key:", "decimals", key);
192
+ console.debug("missing eth call key:", "decimals", key);
193
193
  }
194
194
  return await this.contract.getFunction("decimals()")(overrides || {});
195
195
  } catch (e) {
@@ -221,7 +221,7 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
221
221
  const result = iface.decodeFunctionResult("balanceOf", ret).toArray();
222
222
  return result.length == 1 ? result[0] : result;
223
223
  }
224
- console.log("missing eth call key:", "balanceOf", who, key);
224
+ console.debug("missing eth call key:", "balanceOf", who, key);
225
225
  }
226
226
  return await this.contract.getFunction("balanceOf(address)")(
227
227
  who,
@@ -255,7 +255,7 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
255
255
  const result = iface.decodeFunctionResult("symbol", ret).toArray();
256
256
  return result.length == 1 ? result[0] : result;
257
257
  }
258
- console.log("missing eth call key:", "symbol", key);
258
+ console.debug("missing eth call key:", "symbol", key);
259
259
  }
260
260
  return await this.contract.getFunction("symbol()")(overrides || {});
261
261
  } catch (e) {
@@ -291,7 +291,13 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
291
291
  const result = iface.decodeFunctionResult("allowance", ret).toArray();
292
292
  return result.length == 1 ? result[0] : result;
293
293
  }
294
- console.log("missing eth call key:", "allowance", owner, spender, key);
294
+ console.debug(
295
+ "missing eth call key:",
296
+ "allowance",
297
+ owner,
298
+ spender,
299
+ key
300
+ );
295
301
  }
296
302
  return await this.contract.getFunction("allowance(address,address)")(
297
303
  owner,
@@ -334,7 +340,13 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
334
340
  const result = iface.decodeFunctionResult("approve", ret).toArray();
335
341
  return result.length == 1 ? result[0] : result;
336
342
  }
337
- console.log("missing eth call key:", "approve", spender, value, key);
343
+ console.debug(
344
+ "missing eth call key:",
345
+ "approve",
346
+ spender,
347
+ value,
348
+ key
349
+ );
338
350
  }
339
351
  return await this.contract
340
352
  .getFunction("approve(address,uint256)")
@@ -375,7 +387,7 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
375
387
  .toArray();
376
388
  return result.length == 1 ? result[0] : result;
377
389
  }
378
- console.log(
390
+ console.debug(
379
391
  "missing eth call key:",
380
392
  "transferFrom",
381
393
  from,
@@ -418,7 +430,7 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
418
430
  .toArray();
419
431
  return result.length == 1 ? result[0] : result;
420
432
  }
421
- console.log("missing eth call key:", "transfer", to, value, key);
433
+ console.debug("missing eth call key:", "transfer", to, value, key);
422
434
  }
423
435
  return await this.contract
424
436
  .getFunction("transfer(address,uint256)")
@@ -181,7 +181,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
181
181
  .toArray();
182
182
  return result.length == 1 ? result[0] : result;
183
183
  }
184
- console.log("missing eth call key:", "totalSupply", key);
184
+ console.debug("missing eth call key:", "totalSupply", key);
185
185
  }
186
186
  return await this.contract.getFunction("totalSupply()")(overrides || {});
187
187
  } catch (e) {
@@ -213,7 +213,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
213
213
  const result = iface.decodeFunctionResult("balanceOf", ret).toArray();
214
214
  return result.length == 1 ? result[0] : result;
215
215
  }
216
- console.log("missing eth call key:", "balanceOf", owner, key);
216
+ console.debug("missing eth call key:", "balanceOf", owner, key);
217
217
  }
218
218
  return await this.contract.getFunction("balanceOf(address)")(
219
219
  owner,
@@ -250,7 +250,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
250
250
  .toArray();
251
251
  return result.length == 1 ? result[0] : result;
252
252
  }
253
- console.log("missing eth call key:", "getApproved", tokenId, key);
253
+ console.debug("missing eth call key:", "getApproved", tokenId, key);
254
254
  }
255
255
  return await this.contract.getFunction("getApproved(uint256)")(
256
256
  tokenId,
@@ -291,7 +291,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
291
291
  .toArray();
292
292
  return result.length == 1 ? result[0] : result;
293
293
  }
294
- console.log(
294
+ console.debug(
295
295
  "missing eth call key:",
296
296
  "isApprovedForAll",
297
297
  owner,
@@ -328,7 +328,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
328
328
  const result = iface.decodeFunctionResult("name", ret).toArray();
329
329
  return result.length == 1 ? result[0] : result;
330
330
  }
331
- console.log("missing eth call key:", "name", key);
331
+ console.debug("missing eth call key:", "name", key);
332
332
  }
333
333
  return await this.contract.getFunction("name()")(overrides || {});
334
334
  } catch (e) {
@@ -360,7 +360,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
360
360
  const result = iface.decodeFunctionResult("ownerOf", ret).toArray();
361
361
  return result.length == 1 ? result[0] : result;
362
362
  }
363
- console.log("missing eth call key:", "ownerOf", tokenId, key);
363
+ console.debug("missing eth call key:", "ownerOf", tokenId, key);
364
364
  }
365
365
  return await this.contract.getFunction("ownerOf(uint256)")(
366
366
  tokenId,
@@ -399,7 +399,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
399
399
  .toArray();
400
400
  return result.length == 1 ? result[0] : result;
401
401
  }
402
- console.log(
402
+ console.debug(
403
403
  "missing eth call key:",
404
404
  "supportsInterface",
405
405
  interfaceId,
@@ -438,7 +438,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
438
438
  const result = iface.decodeFunctionResult("symbol", ret).toArray();
439
439
  return result.length == 1 ? result[0] : result;
440
440
  }
441
- console.log("missing eth call key:", "symbol", key);
441
+ console.debug("missing eth call key:", "symbol", key);
442
442
  }
443
443
  return await this.contract.getFunction("symbol()")(overrides || {});
444
444
  } catch (e) {
@@ -470,7 +470,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
470
470
  const result = iface.decodeFunctionResult("tokenURI", ret).toArray();
471
471
  return result.length == 1 ? result[0] : result;
472
472
  }
473
- console.log("missing eth call key:", "tokenURI", tokenId, key);
473
+ console.debug("missing eth call key:", "tokenURI", tokenId, key);
474
474
  }
475
475
  return await this.contract.getFunction("tokenURI(uint256)")(
476
476
  tokenId,
@@ -509,7 +509,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
509
509
  const result = iface.decodeFunctionResult("approve", ret).toArray();
510
510
  return result.length == 1 ? result[0] : result;
511
511
  }
512
- console.log("missing eth call key:", "approve", to, tokenId, key);
512
+ console.debug("missing eth call key:", "approve", to, tokenId, key);
513
513
  }
514
514
  return await this.contract
515
515
  .getFunction("approve(address,uint256)")
@@ -550,7 +550,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
550
550
  .toArray();
551
551
  return result.length == 1 ? result[0] : result;
552
552
  }
553
- console.log(
553
+ console.debug(
554
554
  "missing eth call key:",
555
555
  "safeTransferFrom",
556
556
  from,
@@ -600,7 +600,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
600
600
  .toArray();
601
601
  return result.length == 1 ? result[0] : result;
602
602
  }
603
- console.log(
603
+ console.debug(
604
604
  "missing eth call key:",
605
605
  "safeTransferFrom",
606
606
  from,
@@ -647,7 +647,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
647
647
  .toArray();
648
648
  return result.length == 1 ? result[0] : result;
649
649
  }
650
- console.log(
650
+ console.debug(
651
651
  "missing eth call key:",
652
652
  "setApprovalForAll",
653
653
  operator,
@@ -694,7 +694,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
694
694
  .toArray();
695
695
  return result.length == 1 ? result[0] : result;
696
696
  }
697
- console.log(
697
+ console.debug(
698
698
  "missing eth call key:",
699
699
  "transferFrom",
700
700
  from,
@@ -134,7 +134,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
134
134
  const result = iface.decodeFunctionResult("name", ret).toArray();
135
135
  return result.length == 1 ? result[0] : result;
136
136
  }
137
- console.log("missing eth call key:", "name", key);
137
+ console.debug("missing eth call key:", "name", key);
138
138
  }
139
139
  return await this.contract.getFunction("name()")(overrides || {});
140
140
  } catch (e) {
@@ -167,7 +167,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
167
167
  .toArray();
168
168
  return result.length == 1 ? result[0] : result;
169
169
  }
170
- console.log("missing eth call key:", "totalSupply", key);
170
+ console.debug("missing eth call key:", "totalSupply", key);
171
171
  }
172
172
  return await this.contract.getFunction("totalSupply()")(overrides || {});
173
173
  } catch (e) {
@@ -198,7 +198,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
198
198
  const result = iface.decodeFunctionResult("decimals", ret).toArray();
199
199
  return result.length == 1 ? result[0] : result;
200
200
  }
201
- console.log("missing eth call key:", "decimals", key);
201
+ console.debug("missing eth call key:", "decimals", key);
202
202
  }
203
203
  return await this.contract.getFunction("decimals()")(overrides || {});
204
204
  } catch (e) {
@@ -230,7 +230,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
230
230
  const result = iface.decodeFunctionResult("balanceOf", ret).toArray();
231
231
  return result.length == 1 ? result[0] : result;
232
232
  }
233
- console.log("missing eth call key:", "balanceOf", arg0, key);
233
+ console.debug("missing eth call key:", "balanceOf", arg0, key);
234
234
  }
235
235
  return await this.contract.getFunction("balanceOf(address)")(
236
236
  arg0,
@@ -264,7 +264,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
264
264
  const result = iface.decodeFunctionResult("symbol", ret).toArray();
265
265
  return result.length == 1 ? result[0] : result;
266
266
  }
267
- console.log("missing eth call key:", "symbol", key);
267
+ console.debug("missing eth call key:", "symbol", key);
268
268
  }
269
269
  return await this.contract.getFunction("symbol()")(overrides || {});
270
270
  } catch (e) {
@@ -297,7 +297,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
297
297
  const result = iface.decodeFunctionResult("allowance", ret).toArray();
298
298
  return result.length == 1 ? result[0] : result;
299
299
  }
300
- console.log("missing eth call key:", "allowance", arg0, arg1, key);
300
+ console.debug("missing eth call key:", "allowance", arg0, arg1, key);
301
301
  }
302
302
  return await this.contract.getFunction("allowance(address,address)")(
303
303
  arg0,
@@ -337,7 +337,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
337
337
  const result = iface.decodeFunctionResult("approve", ret).toArray();
338
338
  return result.length == 1 ? result[0] : result;
339
339
  }
340
- console.log("missing eth call key:", "approve", guy, wad, key);
340
+ console.debug("missing eth call key:", "approve", guy, wad, key);
341
341
  }
342
342
  return await this.contract
343
343
  .getFunction("approve(address,uint256)")
@@ -378,7 +378,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
378
378
  .toArray();
379
379
  return result.length == 1 ? result[0] : result;
380
380
  }
381
- console.log(
381
+ console.debug(
382
382
  "missing eth call key:",
383
383
  "transferFrom",
384
384
  src,
@@ -420,7 +420,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
420
420
  .toArray();
421
421
  return result.length == 1 ? result[0] : result;
422
422
  }
423
- console.log("missing eth call key:", "withdraw", wad, key);
423
+ console.debug("missing eth call key:", "withdraw", wad, key);
424
424
  }
425
425
  return await this.contract
426
426
  .getFunction("withdraw(uint256)")
@@ -456,7 +456,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
456
456
  .toArray();
457
457
  return result.length == 1 ? result[0] : result;
458
458
  }
459
- console.log("missing eth call key:", "transfer", dst, wad, key);
459
+ console.debug("missing eth call key:", "transfer", dst, wad, key);
460
460
  }
461
461
  return await this.contract
462
462
  .getFunction("transfer(address,uint256)")
@@ -488,7 +488,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
488
488
  const result = iface.decodeFunctionResult("deposit", ret).toArray();
489
489
  return result.length == 1 ? result[0] : result;
490
490
  }
491
- console.log("missing eth call key:", "deposit", key);
491
+ console.debug("missing eth call key:", "deposit", key);
492
492
  }
493
493
  return await this.contract
494
494
  .getFunction("deposit()")
@@ -58,7 +58,7 @@ export function generateViewFunction(view: boolean, fn: FunctionDeclaration, inc
58
58
  const result = iface.decodeFunctionResult("${fn.name}", ret).toArray()
59
59
  return result.length == 1? result[0]: result
60
60
  }
61
- console.log("missing eth call key:", "${fn.name}", ${
61
+ console.debug("missing eth call key:", "${fn.name}", ${
62
62
  fn.inputs.length > 0 ? fn.inputs.map((input, index) => input.name || `arg${index}`).join(',') + ',' : ''
63
63
  }key)
64
64
  }