@sentio/sdk 2.44.3-rc.1 → 2.44.3-rc.10

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 (79) hide show
  1. package/lib/aptos/aptos-processor.d.ts +5 -4
  2. package/lib/aptos/aptos-processor.d.ts.map +1 -1
  3. package/lib/aptos/aptos-processor.js +13 -6
  4. package/lib/aptos/aptos-processor.js.map +1 -1
  5. package/lib/aptos/builtin/0x1.d.ts +25 -0
  6. package/lib/aptos/builtin/0x1.d.ts.map +1 -1
  7. package/lib/aptos/builtin/0x1.js +22 -1
  8. package/lib/aptos/builtin/0x1.js.map +1 -1
  9. package/lib/aptos/index.d.ts +2 -1
  10. package/lib/aptos/index.d.ts.map +1 -1
  11. package/lib/aptos/index.js.map +1 -1
  12. package/lib/core/event-logger.d.ts.map +1 -1
  13. package/lib/core/event-logger.js +2 -1
  14. package/lib/core/event-logger.js.map +1 -1
  15. package/lib/core/meter.d.ts.map +1 -1
  16. package/lib/core/meter.js +3 -1
  17. package/lib/core/meter.js.map +1 -1
  18. package/lib/eth/codegen/codegen.js +4 -5
  19. package/lib/eth/codegen/codegen.js.map +1 -1
  20. package/lib/eth/context.d.ts.map +1 -1
  21. package/lib/eth/context.js +9 -1
  22. package/lib/eth/context.js.map +1 -1
  23. package/lib/fuel/asset-processor.d.ts +1 -0
  24. package/lib/fuel/asset-processor.d.ts.map +1 -1
  25. package/lib/fuel/asset-processor.js +2 -1
  26. package/lib/fuel/asset-processor.js.map +1 -1
  27. package/lib/fuel/codegen/codegen.js +2 -2
  28. package/lib/fuel/codegen/codegen.js.map +1 -1
  29. package/lib/solana/builtin/types.d.ts +170 -170
  30. package/lib/solana/builtin/types.d.ts.map +1 -1
  31. package/lib/solana/builtin/types.js +1 -1
  32. package/lib/solana/builtin/types.js.map +1 -1
  33. package/lib/stark/codegen/codegen.js +2 -2
  34. package/lib/stark/codegen/codegen.js.map +1 -1
  35. package/lib/store/codegen.js +2 -2
  36. package/lib/store/codegen.js.map +1 -1
  37. package/lib/sui/builtin/0x1.d.ts +19 -0
  38. package/lib/sui/builtin/0x1.d.ts.map +1 -1
  39. package/lib/sui/builtin/0x1.js +28 -1
  40. package/lib/sui/builtin/0x1.js.map +1 -1
  41. package/lib/sui/builtin/0x3.js +1 -1
  42. package/lib/sui/builtin/0x3.js.map +1 -1
  43. package/lib/utils/price.d.ts.map +1 -1
  44. package/lib/utils/price.js +2 -1
  45. package/lib/utils/price.js.map +1 -1
  46. package/package.json +11 -15
  47. package/src/aptos/abis/0x1.json +73 -9
  48. package/src/aptos/aptos-processor.ts +21 -15
  49. package/src/aptos/builtin/0x1.ts +78 -1
  50. package/src/aptos/index.ts +2 -6
  51. package/src/core/event-logger.ts +2 -1
  52. package/src/core/meter.ts +3 -1
  53. package/src/eth/builtin/internal/eacaggregatorproxy-processor.ts +204 -204
  54. package/src/eth/builtin/internal/eacaggregatorproxy-test-utils.ts +12 -12
  55. package/src/eth/builtin/internal/erc1155-processor.ts +95 -95
  56. package/src/eth/builtin/internal/erc1155-test-utils.ts +8 -8
  57. package/src/eth/builtin/internal/erc20-processor.ts +140 -140
  58. package/src/eth/builtin/internal/erc20-test-utils.ts +6 -6
  59. package/src/eth/builtin/internal/erc20bytes-processor.ts +80 -80
  60. package/src/eth/builtin/internal/erc20bytes-test-utils.ts +4 -4
  61. package/src/eth/builtin/internal/erc721-processor.ts +133 -133
  62. package/src/eth/builtin/internal/erc721-test-utils.ts +6 -6
  63. package/src/eth/builtin/internal/factories/EACAggregatorProxy__factory.ts +1 -1
  64. package/src/eth/builtin/internal/factories/ERC1155__factory.ts +1 -1
  65. package/src/eth/builtin/internal/factories/ERC20Bytes__factory.ts +1 -1
  66. package/src/eth/builtin/internal/weth9-processor.ts +97 -97
  67. package/src/eth/builtin/internal/weth9-test-utils.ts +8 -8
  68. package/src/eth/codegen/codegen.ts +5 -5
  69. package/src/eth/context.ts +9 -1
  70. package/src/fuel/asset-processor.ts +3 -1
  71. package/src/fuel/codegen/codegen.ts +2 -2
  72. package/src/solana/builtin/types.ts +1 -1
  73. package/src/stark/codegen/codegen.ts +2 -2
  74. package/src/store/codegen.ts +2 -2
  75. package/src/sui/abis/0x1.json +391 -0
  76. package/src/sui/abis/0x3.json +20 -0
  77. package/src/sui/builtin/0x1.ts +44 -1
  78. package/src/sui/builtin/0x3.ts +1 -1
  79. package/src/utils/price.ts +2 -1
@@ -198,13 +198,13 @@ export class ERC20ContractView extends ContractView<ERC20> {
198
198
  spender: string,
199
199
  overrides?: Overrides,
200
200
  preparedData?: PreparedData,
201
- ethCallContext?: EthCallContext
201
+ ethCallContext?: EthCallContext,
202
202
  ): Promise<bigint> {
203
203
  try {
204
204
  return await this.contract.getFunction("allowance(address,address)")(
205
205
  owner,
206
206
  spender,
207
- overrides || {}
207
+ overrides || {},
208
208
  );
209
209
  } catch (e) {
210
210
  const stack = new Error().stack;
@@ -216,12 +216,12 @@ export class ERC20ContractView extends ContractView<ERC20> {
216
216
  account: string,
217
217
  overrides?: Overrides,
218
218
  preparedData?: PreparedData,
219
- ethCallContext?: EthCallContext
219
+ ethCallContext?: EthCallContext,
220
220
  ): Promise<bigint> {
221
221
  try {
222
222
  return await this.contract.getFunction("balanceOf(address)")(
223
223
  account,
224
- overrides || {}
224
+ overrides || {},
225
225
  );
226
226
  } catch (e) {
227
227
  const stack = new Error().stack;
@@ -232,7 +232,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
232
232
  async decimals(
233
233
  overrides?: Overrides,
234
234
  preparedData?: PreparedData,
235
- ethCallContext?: EthCallContext
235
+ ethCallContext?: EthCallContext,
236
236
  ): Promise<bigint> {
237
237
  try {
238
238
  return await this.contract.getFunction("decimals()")(overrides || {});
@@ -245,7 +245,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
245
245
  async locker(
246
246
  overrides?: Overrides,
247
247
  preparedData?: PreparedData,
248
- ethCallContext?: EthCallContext
248
+ ethCallContext?: EthCallContext,
249
249
  ): Promise<string> {
250
250
  try {
251
251
  return await this.contract.getFunction("locker()")(overrides || {});
@@ -258,7 +258,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
258
258
  async name(
259
259
  overrides?: Overrides,
260
260
  preparedData?: PreparedData,
261
- ethCallContext?: EthCallContext
261
+ ethCallContext?: EthCallContext,
262
262
  ): Promise<string> {
263
263
  try {
264
264
  return await this.contract.getFunction("name()")(overrides || {});
@@ -271,7 +271,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
271
271
  async owner(
272
272
  overrides?: Overrides,
273
273
  preparedData?: PreparedData,
274
- ethCallContext?: EthCallContext
274
+ ethCallContext?: EthCallContext,
275
275
  ): Promise<string> {
276
276
  try {
277
277
  return await this.contract.getFunction("owner()")(overrides || {});
@@ -284,7 +284,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
284
284
  async symbol(
285
285
  overrides?: Overrides,
286
286
  preparedData?: PreparedData,
287
- ethCallContext?: EthCallContext
287
+ ethCallContext?: EthCallContext,
288
288
  ): Promise<string> {
289
289
  try {
290
290
  return await this.contract.getFunction("symbol()")(overrides || {});
@@ -297,7 +297,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
297
297
  async totalSupply(
298
298
  overrides?: Overrides,
299
299
  preparedData?: PreparedData,
300
- ethCallContext?: EthCallContext
300
+ ethCallContext?: EthCallContext,
301
301
  ): Promise<bigint> {
302
302
  try {
303
303
  return await this.contract.getFunction("totalSupply()")(overrides || {});
@@ -315,7 +315,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
315
315
  amount: BigNumberish,
316
316
  overrides?: Overrides,
317
317
  preparedData?: PreparedData,
318
- ethCallContext?: EthCallContext
318
+ ethCallContext?: EthCallContext,
319
319
  ): Promise<boolean> {
320
320
  try {
321
321
  return await this.contract
@@ -330,7 +330,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
330
330
  amount: BigNumberish,
331
331
  overrides?: Overrides,
332
332
  preparedData?: PreparedData,
333
- ethCallContext?: EthCallContext
333
+ ethCallContext?: EthCallContext,
334
334
  ): Promise<void> {
335
335
  try {
336
336
  return await this.contract
@@ -346,7 +346,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
346
346
  amount: BigNumberish,
347
347
  overrides?: Overrides,
348
348
  preparedData?: PreparedData,
349
- ethCallContext?: EthCallContext
349
+ ethCallContext?: EthCallContext,
350
350
  ): Promise<void> {
351
351
  try {
352
352
  return await this.contract
@@ -362,7 +362,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
362
362
  subtractedValue: BigNumberish,
363
363
  overrides?: Overrides,
364
364
  preparedData?: PreparedData,
365
- ethCallContext?: EthCallContext
365
+ ethCallContext?: EthCallContext,
366
366
  ): Promise<boolean> {
367
367
  try {
368
368
  return await this.contract
@@ -378,7 +378,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
378
378
  addedValue: BigNumberish,
379
379
  overrides?: Overrides,
380
380
  preparedData?: PreparedData,
381
- ethCallContext?: EthCallContext
381
+ ethCallContext?: EthCallContext,
382
382
  ): Promise<boolean> {
383
383
  try {
384
384
  return await this.contract
@@ -392,7 +392,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
392
392
  async renounceOwnership(
393
393
  overrides?: Overrides,
394
394
  preparedData?: PreparedData,
395
- ethCallContext?: EthCallContext
395
+ ethCallContext?: EthCallContext,
396
396
  ): Promise<void> {
397
397
  try {
398
398
  return await this.contract
@@ -407,7 +407,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
407
407
  _locker: string,
408
408
  overrides?: Overrides,
409
409
  preparedData?: PreparedData,
410
- ethCallContext?: EthCallContext
410
+ ethCallContext?: EthCallContext,
411
411
  ): Promise<void> {
412
412
  try {
413
413
  return await this.contract
@@ -423,7 +423,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
423
423
  amount: BigNumberish,
424
424
  overrides?: Overrides,
425
425
  preparedData?: PreparedData,
426
- ethCallContext?: EthCallContext
426
+ ethCallContext?: EthCallContext,
427
427
  ): Promise<boolean> {
428
428
  try {
429
429
  return await this.contract
@@ -440,7 +440,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
440
440
  amount: BigNumberish,
441
441
  overrides?: Overrides,
442
442
  preparedData?: PreparedData,
443
- ethCallContext?: EthCallContext
443
+ ethCallContext?: EthCallContext,
444
444
  ): Promise<boolean> {
445
445
  try {
446
446
  return await this.contract
@@ -455,7 +455,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
455
455
  newOwner: string,
456
456
  overrides?: Overrides,
457
457
  preparedData?: PreparedData,
458
- ethCallContext?: EthCallContext
458
+ ethCallContext?: EthCallContext,
459
459
  ): Promise<void> {
460
460
  try {
461
461
  return await this.contract
@@ -472,7 +472,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
472
472
  allowance(
473
473
  owner: string,
474
474
  spender: string,
475
- ethCallContext: EthCallContext
475
+ ethCallContext: EthCallContext,
476
476
  ): EthCallParam {
477
477
  try {
478
478
  const iface = new Interface(["function allowance(address,address)"]);
@@ -492,7 +492,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
492
492
  approve(
493
493
  spender: string,
494
494
  amount: BigNumberish,
495
- ethCallContext: EthCallContext
495
+ ethCallContext: EthCallContext,
496
496
  ): EthCallParam {
497
497
  try {
498
498
  const iface = new Interface(["function approve(address,uint256)"]);
@@ -535,7 +535,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
535
535
  burnFrom(
536
536
  account: string,
537
537
  amount: BigNumberish,
538
- ethCallContext: EthCallContext
538
+ ethCallContext: EthCallContext,
539
539
  ): EthCallParam {
540
540
  try {
541
541
  const iface = new Interface(["function burnFrom(address,uint256)"]);
@@ -568,7 +568,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
568
568
  decreaseAllowance(
569
569
  spender: string,
570
570
  subtractedValue: BigNumberish,
571
- ethCallContext: EthCallContext
571
+ ethCallContext: EthCallContext,
572
572
  ): EthCallParam {
573
573
  try {
574
574
  const iface = new Interface([
@@ -590,7 +590,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
590
590
  increaseAllowance(
591
591
  spender: string,
592
592
  addedValue: BigNumberish,
593
- ethCallContext: EthCallContext
593
+ ethCallContext: EthCallContext,
594
594
  ): EthCallParam {
595
595
  try {
596
596
  const iface = new Interface([
@@ -703,7 +703,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
703
703
  transfer(
704
704
  recipient: string,
705
705
  amount: BigNumberish,
706
- ethCallContext: EthCallContext
706
+ ethCallContext: EthCallContext,
707
707
  ): EthCallParam {
708
708
  try {
709
709
  const iface = new Interface(["function transfer(address,uint256)"]);
@@ -724,7 +724,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
724
724
  sender: string,
725
725
  recipient: string,
726
726
  amount: BigNumberish,
727
- ethCallContext: EthCallContext
727
+ ethCallContext: EthCallContext,
728
728
  ): EthCallParam {
729
729
  try {
730
730
  const iface = new Interface([
@@ -746,7 +746,7 @@ export class ERC20ContractView extends ContractView<ERC20> {
746
746
  },
747
747
  transferOwnership(
748
748
  newOwner: string,
749
- ethCallContext: EthCallContext
749
+ ethCallContext: EthCallContext,
750
750
  ): EthCallParam {
751
751
  try {
752
752
  const iface = new Interface(["function transferOwnership(address)"]);
@@ -772,7 +772,7 @@ export class ERC20BoundContractView extends BoundContractView<
772
772
  async allowance(
773
773
  owner: string,
774
774
  spender: string,
775
- overrides?: Overrides
775
+ overrides?: Overrides,
776
776
  ): Promise<bigint> {
777
777
  const ethCallContext = {
778
778
  chainId: this.context.chainId,
@@ -787,7 +787,7 @@ export class ERC20BoundContractView extends BoundContractView<
787
787
  ...overrides,
788
788
  },
789
789
  this.context.preparedData,
790
- ethCallContext
790
+ ethCallContext,
791
791
  );
792
792
  }
793
793
 
@@ -804,7 +804,7 @@ export class ERC20BoundContractView extends BoundContractView<
804
804
  ...overrides,
805
805
  },
806
806
  this.context.preparedData,
807
- ethCallContext
807
+ ethCallContext,
808
808
  );
809
809
  }
810
810
 
@@ -820,7 +820,7 @@ export class ERC20BoundContractView extends BoundContractView<
820
820
  ...overrides,
821
821
  },
822
822
  this.context.preparedData,
823
- ethCallContext
823
+ ethCallContext,
824
824
  );
825
825
  }
826
826
 
@@ -836,7 +836,7 @@ export class ERC20BoundContractView extends BoundContractView<
836
836
  ...overrides,
837
837
  },
838
838
  this.context.preparedData,
839
- ethCallContext
839
+ ethCallContext,
840
840
  );
841
841
  }
842
842
 
@@ -852,7 +852,7 @@ export class ERC20BoundContractView extends BoundContractView<
852
852
  ...overrides,
853
853
  },
854
854
  this.context.preparedData,
855
- ethCallContext
855
+ ethCallContext,
856
856
  );
857
857
  }
858
858
 
@@ -868,7 +868,7 @@ export class ERC20BoundContractView extends BoundContractView<
868
868
  ...overrides,
869
869
  },
870
870
  this.context.preparedData,
871
- ethCallContext
871
+ ethCallContext,
872
872
  );
873
873
  }
874
874
 
@@ -884,7 +884,7 @@ export class ERC20BoundContractView extends BoundContractView<
884
884
  ...overrides,
885
885
  },
886
886
  this.context.preparedData,
887
- ethCallContext
887
+ ethCallContext,
888
888
  );
889
889
  }
890
890
 
@@ -900,7 +900,7 @@ export class ERC20BoundContractView extends BoundContractView<
900
900
  ...overrides,
901
901
  },
902
902
  this.context.preparedData,
903
- ethCallContext
903
+ ethCallContext,
904
904
  );
905
905
  }
906
906
 
@@ -911,7 +911,7 @@ export class ERC20BoundContractView extends BoundContractView<
911
911
  async approve(
912
912
  spender: string,
913
913
  amount: BigNumberish,
914
- overrides?: Overrides
914
+ overrides?: Overrides,
915
915
  ): Promise<boolean> {
916
916
  const ethCallContext = {
917
917
  chainId: this.context.chainId,
@@ -926,7 +926,7 @@ export class ERC20BoundContractView extends BoundContractView<
926
926
  ...overrides,
927
927
  },
928
928
  this.context.preparedData,
929
- ethCallContext
929
+ ethCallContext,
930
930
  );
931
931
  },
932
932
  async burn(amount: BigNumberish, overrides?: Overrides): Promise<void> {
@@ -942,13 +942,13 @@ export class ERC20BoundContractView extends BoundContractView<
942
942
  ...overrides,
943
943
  },
944
944
  this.context.preparedData,
945
- ethCallContext
945
+ ethCallContext,
946
946
  );
947
947
  },
948
948
  async burnFrom(
949
949
  account: string,
950
950
  amount: BigNumberish,
951
- overrides?: Overrides
951
+ overrides?: Overrides,
952
952
  ): Promise<void> {
953
953
  const ethCallContext = {
954
954
  chainId: this.context.chainId,
@@ -963,13 +963,13 @@ export class ERC20BoundContractView extends BoundContractView<
963
963
  ...overrides,
964
964
  },
965
965
  this.context.preparedData,
966
- ethCallContext
966
+ ethCallContext,
967
967
  );
968
968
  },
969
969
  async decreaseAllowance(
970
970
  spender: string,
971
971
  subtractedValue: BigNumberish,
972
- overrides?: Overrides
972
+ overrides?: Overrides,
973
973
  ): Promise<boolean> {
974
974
  const ethCallContext = {
975
975
  chainId: this.context.chainId,
@@ -984,13 +984,13 @@ export class ERC20BoundContractView extends BoundContractView<
984
984
  ...overrides,
985
985
  },
986
986
  this.context.preparedData,
987
- ethCallContext
987
+ ethCallContext,
988
988
  );
989
989
  },
990
990
  async increaseAllowance(
991
991
  spender: string,
992
992
  addedValue: BigNumberish,
993
- overrides?: Overrides
993
+ overrides?: Overrides,
994
994
  ): Promise<boolean> {
995
995
  const ethCallContext = {
996
996
  chainId: this.context.chainId,
@@ -1005,7 +1005,7 @@ export class ERC20BoundContractView extends BoundContractView<
1005
1005
  ...overrides,
1006
1006
  },
1007
1007
  this.context.preparedData,
1008
- ethCallContext
1008
+ ethCallContext,
1009
1009
  );
1010
1010
  },
1011
1011
  async renounceOwnership(overrides?: Overrides): Promise<void> {
@@ -1020,7 +1020,7 @@ export class ERC20BoundContractView extends BoundContractView<
1020
1020
  ...overrides,
1021
1021
  },
1022
1022
  this.context.preparedData,
1023
- ethCallContext
1023
+ ethCallContext,
1024
1024
  );
1025
1025
  },
1026
1026
  async setLocker(_locker: string, overrides?: Overrides): Promise<void> {
@@ -1036,13 +1036,13 @@ export class ERC20BoundContractView extends BoundContractView<
1036
1036
  ...overrides,
1037
1037
  },
1038
1038
  this.context.preparedData,
1039
- ethCallContext
1039
+ ethCallContext,
1040
1040
  );
1041
1041
  },
1042
1042
  async transfer(
1043
1043
  recipient: string,
1044
1044
  amount: BigNumberish,
1045
- overrides?: Overrides
1045
+ overrides?: Overrides,
1046
1046
  ): Promise<boolean> {
1047
1047
  const ethCallContext = {
1048
1048
  chainId: this.context.chainId,
@@ -1057,14 +1057,14 @@ export class ERC20BoundContractView extends BoundContractView<
1057
1057
  ...overrides,
1058
1058
  },
1059
1059
  this.context.preparedData,
1060
- ethCallContext
1060
+ ethCallContext,
1061
1061
  );
1062
1062
  },
1063
1063
  async transferFrom(
1064
1064
  sender: string,
1065
1065
  recipient: string,
1066
1066
  amount: BigNumberish,
1067
- overrides?: Overrides
1067
+ overrides?: Overrides,
1068
1068
  ): Promise<boolean> {
1069
1069
  const ethCallContext = {
1070
1070
  chainId: this.context.chainId,
@@ -1080,12 +1080,12 @@ export class ERC20BoundContractView extends BoundContractView<
1080
1080
  ...overrides,
1081
1081
  },
1082
1082
  this.context.preparedData,
1083
- ethCallContext
1083
+ ethCallContext,
1084
1084
  );
1085
1085
  },
1086
1086
  async transferOwnership(
1087
1087
  newOwner: string,
1088
- overrides?: Overrides
1088
+ overrides?: Overrides,
1089
1089
  ): Promise<void> {
1090
1090
  const ethCallContext = {
1091
1091
  chainId: this.context.chainId,
@@ -1099,7 +1099,7 @@ export class ERC20BoundContractView extends BoundContractView<
1099
1099
  ...overrides,
1100
1100
  },
1101
1101
  this.context.preparedData,
1102
- ethCallContext
1102
+ ethCallContext,
1103
1103
  );
1104
1104
  },
1105
1105
  };
@@ -1111,7 +1111,7 @@ export class ERC20BoundContractView extends BoundContractView<
1111
1111
  allowance(
1112
1112
  owner: string,
1113
1113
  spender: string,
1114
- overrides?: Overrides
1114
+ overrides?: Overrides,
1115
1115
  ): EthCallParam {
1116
1116
  let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
1117
1117
  if (overrides?.blockTag) {
@@ -1130,7 +1130,7 @@ export class ERC20BoundContractView extends BoundContractView<
1130
1130
  approve(
1131
1131
  spender: string,
1132
1132
  amount: BigNumberish,
1133
- overrides?: Overrides
1133
+ overrides?: Overrides,
1134
1134
  ): EthCallParam {
1135
1135
  let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
1136
1136
  if (overrides?.blockTag) {
@@ -1179,7 +1179,7 @@ export class ERC20BoundContractView extends BoundContractView<
1179
1179
  burnFrom(
1180
1180
  account: string,
1181
1181
  amount: BigNumberish,
1182
- overrides?: Overrides
1182
+ overrides?: Overrides,
1183
1183
  ): EthCallParam {
1184
1184
  let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
1185
1185
  if (overrides?.blockTag) {
@@ -1213,7 +1213,7 @@ export class ERC20BoundContractView extends BoundContractView<
1213
1213
  decreaseAllowance(
1214
1214
  spender: string,
1215
1215
  subtractedValue: BigNumberish,
1216
- overrides?: Overrides
1216
+ overrides?: Overrides,
1217
1217
  ): EthCallParam {
1218
1218
  let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
1219
1219
  if (overrides?.blockTag) {
@@ -1232,7 +1232,7 @@ export class ERC20BoundContractView extends BoundContractView<
1232
1232
  increaseAllowance(
1233
1233
  spender: string,
1234
1234
  addedValue: BigNumberish,
1235
- overrides?: Overrides
1235
+ overrides?: Overrides,
1236
1236
  ): EthCallParam {
1237
1237
  let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
1238
1238
  if (overrides?.blockTag) {
@@ -1356,7 +1356,7 @@ export class ERC20BoundContractView extends BoundContractView<
1356
1356
  transfer(
1357
1357
  recipient: string,
1358
1358
  amount: BigNumberish,
1359
- overrides?: Overrides
1359
+ overrides?: Overrides,
1360
1360
  ): EthCallParam {
1361
1361
  let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
1362
1362
  if (overrides?.blockTag) {
@@ -1376,7 +1376,7 @@ export class ERC20BoundContractView extends BoundContractView<
1376
1376
  sender: string,
1377
1377
  recipient: string,
1378
1378
  amount: BigNumberish,
1379
- overrides?: Overrides
1379
+ overrides?: Overrides,
1380
1380
  ): EthCallParam {
1381
1381
  let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
1382
1382
  if (overrides?.blockTag) {
@@ -1423,14 +1423,14 @@ export class ERC20Processor extends BaseProcessor<
1423
1423
  preprocessHandler?: (
1424
1424
  event: ApprovalEvent,
1425
1425
  ctx: ERC20Context,
1426
- preprocessStore: { [k: string]: any }
1427
- ) => Promise<PreprocessResult>
1426
+ preprocessStore: { [k: string]: any },
1427
+ ) => Promise<PreprocessResult>,
1428
1428
  ): this {
1429
1429
  if (!filter) {
1430
1430
  filter = templateContract.filters["Approval(address,address,uint256)"](
1431
1431
  null,
1432
1432
  null,
1433
- null
1433
+ null,
1434
1434
  );
1435
1435
  }
1436
1436
  return super.onEthEvent(handler, filter!, fetchConfig, preprocessHandler);
@@ -1445,8 +1445,8 @@ export class ERC20Processor extends BaseProcessor<
1445
1445
  preprocessHandler?: (
1446
1446
  event: OwnershipTransferredEvent,
1447
1447
  ctx: ERC20Context,
1448
- preprocessStore: { [k: string]: any }
1449
- ) => Promise<PreprocessResult>
1448
+ preprocessStore: { [k: string]: any },
1449
+ ) => Promise<PreprocessResult>,
1450
1450
  ): this {
1451
1451
  if (!filter) {
1452
1452
  filter = templateContract.filters[
@@ -1463,14 +1463,14 @@ export class ERC20Processor extends BaseProcessor<
1463
1463
  preprocessHandler?: (
1464
1464
  event: TransferEvent,
1465
1465
  ctx: ERC20Context,
1466
- preprocessStore: { [k: string]: any }
1467
- ) => Promise<PreprocessResult>
1466
+ preprocessStore: { [k: string]: any },
1467
+ ) => Promise<PreprocessResult>,
1468
1468
  ): this {
1469
1469
  if (!filter) {
1470
1470
  filter = templateContract.filters["Transfer(address,address,uint256)"](
1471
1471
  null,
1472
1472
  null,
1473
- null
1473
+ null,
1474
1474
  );
1475
1475
  }
1476
1476
  return super.onEthEvent(handler, filter!, fetchConfig, preprocessHandler);
@@ -1481,14 +1481,14 @@ export class ERC20Processor extends BaseProcessor<
1481
1481
  fetchConfig?: Partial<EthFetchConfig>,
1482
1482
  preprocessHandler?: (
1483
1483
  call: AllowanceCallTrace,
1484
- ctx: ERC20Context
1485
- ) => Promise<PreprocessResult>
1484
+ ctx: ERC20Context,
1485
+ ) => Promise<PreprocessResult>,
1486
1486
  ): this {
1487
1487
  return super.onEthTrace(
1488
1488
  "0xdd62ed3e",
1489
1489
  handler as any,
1490
1490
  fetchConfig,
1491
- preprocessHandler
1491
+ preprocessHandler,
1492
1492
  );
1493
1493
  }
1494
1494
 
@@ -1497,14 +1497,14 @@ export class ERC20Processor extends BaseProcessor<
1497
1497
  fetchConfig?: Partial<EthFetchConfig>,
1498
1498
  preprocessHandler?: (
1499
1499
  call: ApproveCallTrace,
1500
- ctx: ERC20Context
1501
- ) => Promise<PreprocessResult>
1500
+ ctx: ERC20Context,
1501
+ ) => Promise<PreprocessResult>,
1502
1502
  ): this {
1503
1503
  return super.onEthTrace(
1504
1504
  "0x095ea7b3",
1505
1505
  handler as any,
1506
1506
  fetchConfig,
1507
- preprocessHandler
1507
+ preprocessHandler,
1508
1508
  );
1509
1509
  }
1510
1510
 
@@ -1513,14 +1513,14 @@ export class ERC20Processor extends BaseProcessor<
1513
1513
  fetchConfig?: Partial<EthFetchConfig>,
1514
1514
  preprocessHandler?: (
1515
1515
  call: BalanceOfCallTrace,
1516
- ctx: ERC20Context
1517
- ) => Promise<PreprocessResult>
1516
+ ctx: ERC20Context,
1517
+ ) => Promise<PreprocessResult>,
1518
1518
  ): this {
1519
1519
  return super.onEthTrace(
1520
1520
  "0x70a08231",
1521
1521
  handler as any,
1522
1522
  fetchConfig,
1523
- preprocessHandler
1523
+ preprocessHandler,
1524
1524
  );
1525
1525
  }
1526
1526
 
@@ -1529,14 +1529,14 @@ export class ERC20Processor extends BaseProcessor<
1529
1529
  fetchConfig?: Partial<EthFetchConfig>,
1530
1530
  preprocessHandler?: (
1531
1531
  call: BurnCallTrace,
1532
- ctx: ERC20Context
1533
- ) => Promise<PreprocessResult>
1532
+ ctx: ERC20Context,
1533
+ ) => Promise<PreprocessResult>,
1534
1534
  ): this {
1535
1535
  return super.onEthTrace(
1536
1536
  "0x42966c68",
1537
1537
  handler as any,
1538
1538
  fetchConfig,
1539
- preprocessHandler
1539
+ preprocessHandler,
1540
1540
  );
1541
1541
  }
1542
1542
 
@@ -1545,14 +1545,14 @@ export class ERC20Processor extends BaseProcessor<
1545
1545
  fetchConfig?: Partial<EthFetchConfig>,
1546
1546
  preprocessHandler?: (
1547
1547
  call: BurnFromCallTrace,
1548
- ctx: ERC20Context
1549
- ) => Promise<PreprocessResult>
1548
+ ctx: ERC20Context,
1549
+ ) => Promise<PreprocessResult>,
1550
1550
  ): this {
1551
1551
  return super.onEthTrace(
1552
1552
  "0x79cc6790",
1553
1553
  handler as any,
1554
1554
  fetchConfig,
1555
- preprocessHandler
1555
+ preprocessHandler,
1556
1556
  );
1557
1557
  }
1558
1558
 
@@ -1561,14 +1561,14 @@ export class ERC20Processor extends BaseProcessor<
1561
1561
  fetchConfig?: Partial<EthFetchConfig>,
1562
1562
  preprocessHandler?: (
1563
1563
  call: DecimalsCallTrace,
1564
- ctx: ERC20Context
1565
- ) => Promise<PreprocessResult>
1564
+ ctx: ERC20Context,
1565
+ ) => Promise<PreprocessResult>,
1566
1566
  ): this {
1567
1567
  return super.onEthTrace(
1568
1568
  "0x313ce567",
1569
1569
  handler as any,
1570
1570
  fetchConfig,
1571
- preprocessHandler
1571
+ preprocessHandler,
1572
1572
  );
1573
1573
  }
1574
1574
 
@@ -1577,14 +1577,14 @@ export class ERC20Processor extends BaseProcessor<
1577
1577
  fetchConfig?: Partial<EthFetchConfig>,
1578
1578
  preprocessHandler?: (
1579
1579
  call: DecreaseAllowanceCallTrace,
1580
- ctx: ERC20Context
1581
- ) => Promise<PreprocessResult>
1580
+ ctx: ERC20Context,
1581
+ ) => Promise<PreprocessResult>,
1582
1582
  ): this {
1583
1583
  return super.onEthTrace(
1584
1584
  "0xa457c2d7",
1585
1585
  handler as any,
1586
1586
  fetchConfig,
1587
- preprocessHandler
1587
+ preprocessHandler,
1588
1588
  );
1589
1589
  }
1590
1590
 
@@ -1593,14 +1593,14 @@ export class ERC20Processor extends BaseProcessor<
1593
1593
  fetchConfig?: Partial<EthFetchConfig>,
1594
1594
  preprocessHandler?: (
1595
1595
  call: IncreaseAllowanceCallTrace,
1596
- ctx: ERC20Context
1597
- ) => Promise<PreprocessResult>
1596
+ ctx: ERC20Context,
1597
+ ) => Promise<PreprocessResult>,
1598
1598
  ): this {
1599
1599
  return super.onEthTrace(
1600
1600
  "0x39509351",
1601
1601
  handler as any,
1602
1602
  fetchConfig,
1603
- preprocessHandler
1603
+ preprocessHandler,
1604
1604
  );
1605
1605
  }
1606
1606
 
@@ -1609,14 +1609,14 @@ export class ERC20Processor extends BaseProcessor<
1609
1609
  fetchConfig?: Partial<EthFetchConfig>,
1610
1610
  preprocessHandler?: (
1611
1611
  call: LockerCallTrace,
1612
- ctx: ERC20Context
1613
- ) => Promise<PreprocessResult>
1612
+ ctx: ERC20Context,
1613
+ ) => Promise<PreprocessResult>,
1614
1614
  ): this {
1615
1615
  return super.onEthTrace(
1616
1616
  "0xd7b96d4e",
1617
1617
  handler as any,
1618
1618
  fetchConfig,
1619
- preprocessHandler
1619
+ preprocessHandler,
1620
1620
  );
1621
1621
  }
1622
1622
 
@@ -1625,14 +1625,14 @@ export class ERC20Processor extends BaseProcessor<
1625
1625
  fetchConfig?: Partial<EthFetchConfig>,
1626
1626
  preprocessHandler?: (
1627
1627
  call: NameCallTrace,
1628
- ctx: ERC20Context
1629
- ) => Promise<PreprocessResult>
1628
+ ctx: ERC20Context,
1629
+ ) => Promise<PreprocessResult>,
1630
1630
  ): this {
1631
1631
  return super.onEthTrace(
1632
1632
  "0x06fdde03",
1633
1633
  handler as any,
1634
1634
  fetchConfig,
1635
- preprocessHandler
1635
+ preprocessHandler,
1636
1636
  );
1637
1637
  }
1638
1638
 
@@ -1641,14 +1641,14 @@ export class ERC20Processor extends BaseProcessor<
1641
1641
  fetchConfig?: Partial<EthFetchConfig>,
1642
1642
  preprocessHandler?: (
1643
1643
  call: OwnerCallTrace,
1644
- ctx: ERC20Context
1645
- ) => Promise<PreprocessResult>
1644
+ ctx: ERC20Context,
1645
+ ) => Promise<PreprocessResult>,
1646
1646
  ): this {
1647
1647
  return super.onEthTrace(
1648
1648
  "0x8da5cb5b",
1649
1649
  handler as any,
1650
1650
  fetchConfig,
1651
- preprocessHandler
1651
+ preprocessHandler,
1652
1652
  );
1653
1653
  }
1654
1654
 
@@ -1657,14 +1657,14 @@ export class ERC20Processor extends BaseProcessor<
1657
1657
  fetchConfig?: Partial<EthFetchConfig>,
1658
1658
  preprocessHandler?: (
1659
1659
  call: RenounceOwnershipCallTrace,
1660
- ctx: ERC20Context
1661
- ) => Promise<PreprocessResult>
1660
+ ctx: ERC20Context,
1661
+ ) => Promise<PreprocessResult>,
1662
1662
  ): this {
1663
1663
  return super.onEthTrace(
1664
1664
  "0x715018a6",
1665
1665
  handler as any,
1666
1666
  fetchConfig,
1667
- preprocessHandler
1667
+ preprocessHandler,
1668
1668
  );
1669
1669
  }
1670
1670
 
@@ -1673,14 +1673,14 @@ export class ERC20Processor extends BaseProcessor<
1673
1673
  fetchConfig?: Partial<EthFetchConfig>,
1674
1674
  preprocessHandler?: (
1675
1675
  call: SetLockerCallTrace,
1676
- ctx: ERC20Context
1677
- ) => Promise<PreprocessResult>
1676
+ ctx: ERC20Context,
1677
+ ) => Promise<PreprocessResult>,
1678
1678
  ): this {
1679
1679
  return super.onEthTrace(
1680
1680
  "0x171060ec",
1681
1681
  handler as any,
1682
1682
  fetchConfig,
1683
- preprocessHandler
1683
+ preprocessHandler,
1684
1684
  );
1685
1685
  }
1686
1686
 
@@ -1689,14 +1689,14 @@ export class ERC20Processor extends BaseProcessor<
1689
1689
  fetchConfig?: Partial<EthFetchConfig>,
1690
1690
  preprocessHandler?: (
1691
1691
  call: SymbolCallTrace,
1692
- ctx: ERC20Context
1693
- ) => Promise<PreprocessResult>
1692
+ ctx: ERC20Context,
1693
+ ) => Promise<PreprocessResult>,
1694
1694
  ): this {
1695
1695
  return super.onEthTrace(
1696
1696
  "0x95d89b41",
1697
1697
  handler as any,
1698
1698
  fetchConfig,
1699
- preprocessHandler
1699
+ preprocessHandler,
1700
1700
  );
1701
1701
  }
1702
1702
 
@@ -1705,14 +1705,14 @@ export class ERC20Processor extends BaseProcessor<
1705
1705
  fetchConfig?: Partial<EthFetchConfig>,
1706
1706
  preprocessHandler?: (
1707
1707
  call: TotalSupplyCallTrace,
1708
- ctx: ERC20Context
1709
- ) => Promise<PreprocessResult>
1708
+ ctx: ERC20Context,
1709
+ ) => Promise<PreprocessResult>,
1710
1710
  ): this {
1711
1711
  return super.onEthTrace(
1712
1712
  "0x18160ddd",
1713
1713
  handler as any,
1714
1714
  fetchConfig,
1715
- preprocessHandler
1715
+ preprocessHandler,
1716
1716
  );
1717
1717
  }
1718
1718
 
@@ -1721,14 +1721,14 @@ export class ERC20Processor extends BaseProcessor<
1721
1721
  fetchConfig?: Partial<EthFetchConfig>,
1722
1722
  preprocessHandler?: (
1723
1723
  call: TransferCallTrace,
1724
- ctx: ERC20Context
1725
- ) => Promise<PreprocessResult>
1724
+ ctx: ERC20Context,
1725
+ ) => Promise<PreprocessResult>,
1726
1726
  ): this {
1727
1727
  return super.onEthTrace(
1728
1728
  "0xa9059cbb",
1729
1729
  handler as any,
1730
1730
  fetchConfig,
1731
- preprocessHandler
1731
+ preprocessHandler,
1732
1732
  );
1733
1733
  }
1734
1734
 
@@ -1737,14 +1737,14 @@ export class ERC20Processor extends BaseProcessor<
1737
1737
  fetchConfig?: Partial<EthFetchConfig>,
1738
1738
  preprocessHandler?: (
1739
1739
  call: TransferFromCallTrace,
1740
- ctx: ERC20Context
1741
- ) => Promise<PreprocessResult>
1740
+ ctx: ERC20Context,
1741
+ ) => Promise<PreprocessResult>,
1742
1742
  ): this {
1743
1743
  return super.onEthTrace(
1744
1744
  "0x23b872dd",
1745
1745
  handler as any,
1746
1746
  fetchConfig,
1747
- preprocessHandler
1747
+ preprocessHandler,
1748
1748
  );
1749
1749
  }
1750
1750
 
@@ -1753,14 +1753,14 @@ export class ERC20Processor extends BaseProcessor<
1753
1753
  fetchConfig?: Partial<EthFetchConfig>,
1754
1754
  preprocessHandler?: (
1755
1755
  call: TransferOwnershipCallTrace,
1756
- ctx: ERC20Context
1757
- ) => Promise<PreprocessResult>
1756
+ ctx: ERC20Context,
1757
+ ) => Promise<PreprocessResult>,
1758
1758
  ): this {
1759
1759
  return super.onEthTrace(
1760
1760
  "0xf2fde38b",
1761
1761
  handler as any,
1762
1762
  fetchConfig,
1763
- preprocessHandler
1763
+ preprocessHandler,
1764
1764
  );
1765
1765
  }
1766
1766
 
@@ -1768,32 +1768,32 @@ export class ERC20Processor extends BaseProcessor<
1768
1768
  Approval(
1769
1769
  owner?: string | null,
1770
1770
  spender?: string | null,
1771
- value?: null
1771
+ value?: null,
1772
1772
  ): ApprovalEventFilter {
1773
1773
  return templateContract.filters["Approval(address,address,uint256)"](
1774
1774
  owner,
1775
1775
  spender,
1776
- value
1776
+ value,
1777
1777
  );
1778
1778
  },
1779
1779
  OwnershipTransferred(
1780
1780
  previousOwner?: string | null,
1781
- newOwner?: string | null
1781
+ newOwner?: string | null,
1782
1782
  ): OwnershipTransferredEventFilter {
1783
1783
  return templateContract.filters["OwnershipTransferred(address,address)"](
1784
1784
  previousOwner,
1785
- newOwner
1785
+ newOwner,
1786
1786
  );
1787
1787
  },
1788
1788
  Transfer(
1789
1789
  from?: string | null,
1790
1790
  to?: string | null,
1791
- value?: null
1791
+ value?: null,
1792
1792
  ): TransferEventFilter {
1793
1793
  return templateContract.filters["Transfer(address,address,uint256)"](
1794
1794
  from,
1795
1795
  to,
1796
- value
1796
+ value,
1797
1797
  );
1798
1798
  },
1799
1799
  };
@@ -1839,14 +1839,14 @@ export class ERC20ProcessorTemplate extends BaseProcessorTemplate<
1839
1839
  preprocessHandler?: (
1840
1840
  event: ApprovalEvent,
1841
1841
  ctx: ERC20Context,
1842
- preprocessStore: { [k: string]: any }
1843
- ) => Promise<PreprocessResult>
1842
+ preprocessStore: { [k: string]: any },
1843
+ ) => Promise<PreprocessResult>,
1844
1844
  ): this {
1845
1845
  if (!filter) {
1846
1846
  filter = templateContract.filters["Approval(address,address,uint256)"](
1847
1847
  null,
1848
1848
  null,
1849
- null
1849
+ null,
1850
1850
  );
1851
1851
  }
1852
1852
  return super.onEthEvent(handler, filter!, fetchConfig, preprocessHandler);
@@ -1861,8 +1861,8 @@ export class ERC20ProcessorTemplate extends BaseProcessorTemplate<
1861
1861
  preprocessHandler?: (
1862
1862
  event: OwnershipTransferredEvent,
1863
1863
  ctx: ERC20Context,
1864
- preprocessStore: { [k: string]: any }
1865
- ) => Promise<PreprocessResult>
1864
+ preprocessStore: { [k: string]: any },
1865
+ ) => Promise<PreprocessResult>,
1866
1866
  ): this {
1867
1867
  if (!filter) {
1868
1868
  filter = templateContract.filters[
@@ -1879,14 +1879,14 @@ export class ERC20ProcessorTemplate extends BaseProcessorTemplate<
1879
1879
  preprocessHandler?: (
1880
1880
  event: TransferEvent,
1881
1881
  ctx: ERC20Context,
1882
- preprocessStore: { [k: string]: any }
1883
- ) => Promise<PreprocessResult>
1882
+ preprocessStore: { [k: string]: any },
1883
+ ) => Promise<PreprocessResult>,
1884
1884
  ): this {
1885
1885
  if (!filter) {
1886
1886
  filter = templateContract.filters["Transfer(address,address,uint256)"](
1887
1887
  null,
1888
1888
  null,
1889
- null
1889
+ null,
1890
1890
  );
1891
1891
  }
1892
1892
  return super.onEthEvent(handler, filter!, fetchConfig, preprocessHandler);
@@ -1895,12 +1895,12 @@ export class ERC20ProcessorTemplate extends BaseProcessorTemplate<
1895
1895
 
1896
1896
  export function getERC20Contract(
1897
1897
  chainId: EthChainId,
1898
- address: string
1898
+ address: string,
1899
1899
  ): ERC20ContractView {
1900
1900
  let contract = getContractByABI(
1901
1901
  "ERC20",
1902
1902
  address,
1903
- chainId
1903
+ chainId,
1904
1904
  ) as ERC20ContractView;
1905
1905
  if (!contract) {
1906
1906
  const rawContract = ERC20__factory.connect(address, getProvider(chainId));
@@ -1912,7 +1912,7 @@ export function getERC20Contract(
1912
1912
 
1913
1913
  export function getERC20ContractOnContext(
1914
1914
  context: EthContext,
1915
- address: string
1915
+ address: string,
1916
1916
  ): ERC20BoundContractView {
1917
1917
  const view = getERC20Contract(context.getChainId(), address);
1918
1918
  const boundView = new ERC20BoundContractView(address, view);