@sentio/sdk 2.44.3-rc.1 → 2.44.3-rc.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 (109) 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 +24 -2
  8. package/lib/aptos/builtin/0x1.js.map +1 -1
  9. package/lib/aptos/builtin/0x3.js +2 -1
  10. package/lib/aptos/builtin/0x3.js.map +1 -1
  11. package/lib/aptos/builtin/0x4.js +2 -1
  12. package/lib/aptos/builtin/0x4.js.map +1 -1
  13. package/lib/aptos/codegen/codegen.js +1 -12
  14. package/lib/aptos/codegen/codegen.js.map +1 -1
  15. package/lib/aptos/index.d.ts +2 -1
  16. package/lib/aptos/index.d.ts.map +1 -1
  17. package/lib/aptos/index.js.map +1 -1
  18. package/lib/aptos/network.d.ts +1 -0
  19. package/lib/aptos/network.d.ts.map +1 -1
  20. package/lib/aptos/network.js +2 -1
  21. package/lib/aptos/network.js.map +1 -1
  22. package/lib/core/event-logger.d.ts.map +1 -1
  23. package/lib/core/event-logger.js +2 -1
  24. package/lib/core/event-logger.js.map +1 -1
  25. package/lib/core/meter.d.ts.map +1 -1
  26. package/lib/core/meter.js +3 -1
  27. package/lib/core/meter.js.map +1 -1
  28. package/lib/eth/codegen/codegen.js +4 -5
  29. package/lib/eth/codegen/codegen.js.map +1 -1
  30. package/lib/eth/context.d.ts.map +1 -1
  31. package/lib/eth/context.js +9 -1
  32. package/lib/eth/context.js.map +1 -1
  33. package/lib/fuel/asset-processor.d.ts +1 -0
  34. package/lib/fuel/asset-processor.d.ts.map +1 -1
  35. package/lib/fuel/asset-processor.js +2 -1
  36. package/lib/fuel/asset-processor.js.map +1 -1
  37. package/lib/fuel/codegen/codegen.js +2 -2
  38. package/lib/fuel/codegen/codegen.js.map +1 -1
  39. package/lib/move/shared-network-codegen.d.ts +3 -1
  40. package/lib/move/shared-network-codegen.d.ts.map +1 -1
  41. package/lib/move/shared-network-codegen.js +19 -6
  42. package/lib/move/shared-network-codegen.js.map +1 -1
  43. package/lib/solana/builtin/types.d.ts +170 -170
  44. package/lib/solana/builtin/types.d.ts.map +1 -1
  45. package/lib/solana/builtin/types.js +1 -1
  46. package/lib/solana/builtin/types.js.map +1 -1
  47. package/lib/stark/codegen/codegen.js +2 -2
  48. package/lib/stark/codegen/codegen.js.map +1 -1
  49. package/lib/store/codegen.js +2 -2
  50. package/lib/store/codegen.js.map +1 -1
  51. package/lib/sui/builtin/0x1.d.ts +19 -0
  52. package/lib/sui/builtin/0x1.d.ts.map +1 -1
  53. package/lib/sui/builtin/0x1.js +28 -3
  54. package/lib/sui/builtin/0x1.js.map +1 -1
  55. package/lib/sui/builtin/0x2.js +0 -2
  56. package/lib/sui/builtin/0x2.js.map +1 -1
  57. package/lib/sui/builtin/0x3.js +1 -3
  58. package/lib/sui/builtin/0x3.js.map +1 -1
  59. package/lib/sui/codegen/codegen.js +1 -12
  60. package/lib/sui/codegen/codegen.js.map +1 -1
  61. package/lib/sui/network.d.ts +0 -2
  62. package/lib/sui/network.d.ts.map +1 -1
  63. package/lib/sui/network.js +3 -3
  64. package/lib/sui/network.js.map +1 -1
  65. package/lib/utils/price.d.ts.map +1 -1
  66. package/lib/utils/price.js +2 -1
  67. package/lib/utils/price.js.map +1 -1
  68. package/package.json +12 -16
  69. package/src/aptos/abis/0x1.json +73 -9
  70. package/src/aptos/aptos-processor.ts +21 -15
  71. package/src/aptos/builtin/0x1.ts +80 -2
  72. package/src/aptos/builtin/0x3.ts +2 -1
  73. package/src/aptos/builtin/0x4.ts +2 -1
  74. package/src/aptos/codegen/codegen.ts +1 -13
  75. package/src/aptos/index.ts +2 -6
  76. package/src/aptos/network.ts +2 -1
  77. package/src/core/event-logger.ts +2 -1
  78. package/src/core/meter.ts +3 -1
  79. package/src/eth/builtin/internal/eacaggregatorproxy-processor.ts +204 -204
  80. package/src/eth/builtin/internal/eacaggregatorproxy-test-utils.ts +12 -12
  81. package/src/eth/builtin/internal/erc1155-processor.ts +95 -95
  82. package/src/eth/builtin/internal/erc1155-test-utils.ts +8 -8
  83. package/src/eth/builtin/internal/erc20-processor.ts +140 -140
  84. package/src/eth/builtin/internal/erc20-test-utils.ts +6 -6
  85. package/src/eth/builtin/internal/erc20bytes-processor.ts +80 -80
  86. package/src/eth/builtin/internal/erc20bytes-test-utils.ts +4 -4
  87. package/src/eth/builtin/internal/erc721-processor.ts +133 -133
  88. package/src/eth/builtin/internal/erc721-test-utils.ts +6 -6
  89. package/src/eth/builtin/internal/factories/EACAggregatorProxy__factory.ts +1 -1
  90. package/src/eth/builtin/internal/factories/ERC1155__factory.ts +1 -1
  91. package/src/eth/builtin/internal/factories/ERC20Bytes__factory.ts +1 -1
  92. package/src/eth/builtin/internal/weth9-processor.ts +97 -97
  93. package/src/eth/builtin/internal/weth9-test-utils.ts +8 -8
  94. package/src/eth/codegen/codegen.ts +5 -5
  95. package/src/eth/context.ts +9 -1
  96. package/src/fuel/asset-processor.ts +3 -1
  97. package/src/fuel/codegen/codegen.ts +2 -2
  98. package/src/move/shared-network-codegen.ts +14 -7
  99. package/src/solana/builtin/types.ts +1 -1
  100. package/src/stark/codegen/codegen.ts +2 -2
  101. package/src/store/codegen.ts +2 -2
  102. package/src/sui/abis/0x1.json +391 -0
  103. package/src/sui/abis/0x3.json +20 -0
  104. package/src/sui/builtin/0x1.ts +44 -3
  105. package/src/sui/builtin/0x2.ts +0 -2
  106. package/src/sui/builtin/0x3.ts +1 -3
  107. package/src/sui/codegen/codegen.ts +1 -13
  108. package/src/sui/network.ts +3 -3
  109. package/src/utils/price.ts +2 -1
@@ -130,7 +130,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
130
130
  async name(
131
131
  overrides?: Overrides,
132
132
  preparedData?: PreparedData,
133
- ethCallContext?: EthCallContext
133
+ ethCallContext?: EthCallContext,
134
134
  ): Promise<string> {
135
135
  try {
136
136
  return await this.contract.getFunction("name()")(overrides || {});
@@ -143,7 +143,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
143
143
  async totalSupply(
144
144
  overrides?: Overrides,
145
145
  preparedData?: PreparedData,
146
- ethCallContext?: EthCallContext
146
+ ethCallContext?: EthCallContext,
147
147
  ): Promise<bigint> {
148
148
  try {
149
149
  return await this.contract.getFunction("totalSupply()")(overrides || {});
@@ -156,7 +156,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
156
156
  async decimals(
157
157
  overrides?: Overrides,
158
158
  preparedData?: PreparedData,
159
- ethCallContext?: EthCallContext
159
+ ethCallContext?: EthCallContext,
160
160
  ): Promise<bigint> {
161
161
  try {
162
162
  return await this.contract.getFunction("decimals()")(overrides || {});
@@ -170,12 +170,12 @@ export class WETH9ContractView extends ContractView<WETH9> {
170
170
  arg0: string,
171
171
  overrides?: Overrides,
172
172
  preparedData?: PreparedData,
173
- ethCallContext?: EthCallContext
173
+ ethCallContext?: EthCallContext,
174
174
  ): Promise<bigint> {
175
175
  try {
176
176
  return await this.contract.getFunction("balanceOf(address)")(
177
177
  arg0,
178
- overrides || {}
178
+ overrides || {},
179
179
  );
180
180
  } catch (e) {
181
181
  const stack = new Error().stack;
@@ -186,7 +186,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
186
186
  async symbol(
187
187
  overrides?: Overrides,
188
188
  preparedData?: PreparedData,
189
- ethCallContext?: EthCallContext
189
+ ethCallContext?: EthCallContext,
190
190
  ): Promise<string> {
191
191
  try {
192
192
  return await this.contract.getFunction("symbol()")(overrides || {});
@@ -201,13 +201,13 @@ export class WETH9ContractView extends ContractView<WETH9> {
201
201
  arg1: string,
202
202
  overrides?: Overrides,
203
203
  preparedData?: PreparedData,
204
- ethCallContext?: EthCallContext
204
+ ethCallContext?: EthCallContext,
205
205
  ): Promise<bigint> {
206
206
  try {
207
207
  return await this.contract.getFunction("allowance(address,address)")(
208
208
  arg0,
209
209
  arg1,
210
- overrides || {}
210
+ overrides || {},
211
211
  );
212
212
  } catch (e) {
213
213
  const stack = new Error().stack;
@@ -223,7 +223,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
223
223
  wad: BigNumberish,
224
224
  overrides?: Overrides,
225
225
  preparedData?: PreparedData,
226
- ethCallContext?: EthCallContext
226
+ ethCallContext?: EthCallContext,
227
227
  ): Promise<boolean> {
228
228
  try {
229
229
  return await this.contract
@@ -240,7 +240,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
240
240
  wad: BigNumberish,
241
241
  overrides?: Overrides,
242
242
  preparedData?: PreparedData,
243
- ethCallContext?: EthCallContext
243
+ ethCallContext?: EthCallContext,
244
244
  ): Promise<boolean> {
245
245
  try {
246
246
  return await this.contract
@@ -255,7 +255,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
255
255
  wad: BigNumberish,
256
256
  overrides?: Overrides,
257
257
  preparedData?: PreparedData,
258
- ethCallContext?: EthCallContext
258
+ ethCallContext?: EthCallContext,
259
259
  ): Promise<void> {
260
260
  try {
261
261
  return await this.contract
@@ -271,7 +271,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
271
271
  wad: BigNumberish,
272
272
  overrides?: Overrides,
273
273
  preparedData?: PreparedData,
274
- ethCallContext?: EthCallContext
274
+ ethCallContext?: EthCallContext,
275
275
  ): Promise<boolean> {
276
276
  try {
277
277
  return await this.contract
@@ -285,7 +285,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
285
285
  async deposit(
286
286
  overrides?: Overrides,
287
287
  preparedData?: PreparedData,
288
- ethCallContext?: EthCallContext
288
+ ethCallContext?: EthCallContext,
289
289
  ): Promise<void> {
290
290
  try {
291
291
  return await this.contract
@@ -315,7 +315,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
315
315
  approve(
316
316
  guy: string,
317
317
  wad: BigNumberish,
318
- ethCallContext: EthCallContext
318
+ ethCallContext: EthCallContext,
319
319
  ): EthCallParam {
320
320
  try {
321
321
  const iface = new Interface(["function approve(address,uint256)"]);
@@ -346,7 +346,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
346
346
  src: string,
347
347
  dst: string,
348
348
  wad: BigNumberish,
349
- ethCallContext: EthCallContext
349
+ ethCallContext: EthCallContext,
350
350
  ): EthCallParam {
351
351
  try {
352
352
  const iface = new Interface([
@@ -421,7 +421,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
421
421
  transfer(
422
422
  dst: string,
423
423
  wad: BigNumberish,
424
- ethCallContext: EthCallContext
424
+ ethCallContext: EthCallContext,
425
425
  ): EthCallParam {
426
426
  try {
427
427
  const iface = new Interface(["function transfer(address,uint256)"]);
@@ -451,7 +451,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
451
451
  allowance(
452
452
  arg0: string,
453
453
  arg1: string,
454
- ethCallContext: EthCallContext
454
+ ethCallContext: EthCallContext,
455
455
  ): EthCallParam {
456
456
  try {
457
457
  const iface = new Interface(["function allowance(address,address)"]);
@@ -484,7 +484,7 @@ export class WETH9BoundContractView extends BoundContractView<
484
484
  ...overrides,
485
485
  },
486
486
  this.context.preparedData,
487
- ethCallContext
487
+ ethCallContext,
488
488
  );
489
489
  }
490
490
 
@@ -500,7 +500,7 @@ export class WETH9BoundContractView extends BoundContractView<
500
500
  ...overrides,
501
501
  },
502
502
  this.context.preparedData,
503
- ethCallContext
503
+ ethCallContext,
504
504
  );
505
505
  }
506
506
 
@@ -516,7 +516,7 @@ export class WETH9BoundContractView extends BoundContractView<
516
516
  ...overrides,
517
517
  },
518
518
  this.context.preparedData,
519
- ethCallContext
519
+ ethCallContext,
520
520
  );
521
521
  }
522
522
 
@@ -533,7 +533,7 @@ export class WETH9BoundContractView extends BoundContractView<
533
533
  ...overrides,
534
534
  },
535
535
  this.context.preparedData,
536
- ethCallContext
536
+ ethCallContext,
537
537
  );
538
538
  }
539
539
 
@@ -549,14 +549,14 @@ export class WETH9BoundContractView extends BoundContractView<
549
549
  ...overrides,
550
550
  },
551
551
  this.context.preparedData,
552
- ethCallContext
552
+ ethCallContext,
553
553
  );
554
554
  }
555
555
 
556
556
  async allowance(
557
557
  arg0: string,
558
558
  arg1: string,
559
- overrides?: Overrides
559
+ overrides?: Overrides,
560
560
  ): Promise<bigint> {
561
561
  const ethCallContext = {
562
562
  chainId: this.context.chainId,
@@ -571,7 +571,7 @@ export class WETH9BoundContractView extends BoundContractView<
571
571
  ...overrides,
572
572
  },
573
573
  this.context.preparedData,
574
- ethCallContext
574
+ ethCallContext,
575
575
  );
576
576
  }
577
577
 
@@ -582,7 +582,7 @@ export class WETH9BoundContractView extends BoundContractView<
582
582
  async approve(
583
583
  guy: string,
584
584
  wad: BigNumberish,
585
- overrides?: Overrides
585
+ overrides?: Overrides,
586
586
  ): Promise<boolean> {
587
587
  const ethCallContext = {
588
588
  chainId: this.context.chainId,
@@ -597,14 +597,14 @@ export class WETH9BoundContractView extends BoundContractView<
597
597
  ...overrides,
598
598
  },
599
599
  this.context.preparedData,
600
- ethCallContext
600
+ ethCallContext,
601
601
  );
602
602
  },
603
603
  async transferFrom(
604
604
  src: string,
605
605
  dst: string,
606
606
  wad: BigNumberish,
607
- overrides?: Overrides
607
+ overrides?: Overrides,
608
608
  ): Promise<boolean> {
609
609
  const ethCallContext = {
610
610
  chainId: this.context.chainId,
@@ -620,7 +620,7 @@ export class WETH9BoundContractView extends BoundContractView<
620
620
  ...overrides,
621
621
  },
622
622
  this.context.preparedData,
623
- ethCallContext
623
+ ethCallContext,
624
624
  );
625
625
  },
626
626
  async withdraw(wad: BigNumberish, overrides?: Overrides): Promise<void> {
@@ -636,13 +636,13 @@ export class WETH9BoundContractView extends BoundContractView<
636
636
  ...overrides,
637
637
  },
638
638
  this.context.preparedData,
639
- ethCallContext
639
+ ethCallContext,
640
640
  );
641
641
  },
642
642
  async transfer(
643
643
  dst: string,
644
644
  wad: BigNumberish,
645
- overrides?: Overrides
645
+ overrides?: Overrides,
646
646
  ): Promise<boolean> {
647
647
  const ethCallContext = {
648
648
  chainId: this.context.chainId,
@@ -657,7 +657,7 @@ export class WETH9BoundContractView extends BoundContractView<
657
657
  ...overrides,
658
658
  },
659
659
  this.context.preparedData,
660
- ethCallContext
660
+ ethCallContext,
661
661
  );
662
662
  },
663
663
  async deposit(overrides?: Overrides): Promise<void> {
@@ -672,7 +672,7 @@ export class WETH9BoundContractView extends BoundContractView<
672
672
  ...overrides,
673
673
  },
674
674
  this.context.preparedData,
675
- ethCallContext
675
+ ethCallContext,
676
676
  );
677
677
  },
678
678
  };
@@ -699,7 +699,7 @@ export class WETH9BoundContractView extends BoundContractView<
699
699
  approve(
700
700
  guy: string,
701
701
  wad: BigNumberish,
702
- overrides?: Overrides
702
+ overrides?: Overrides,
703
703
  ): EthCallParam {
704
704
  let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
705
705
  if (overrides?.blockTag) {
@@ -734,7 +734,7 @@ export class WETH9BoundContractView extends BoundContractView<
734
734
  src: string,
735
735
  dst: string,
736
736
  wad: BigNumberish,
737
- overrides?: Overrides
737
+ overrides?: Overrides,
738
738
  ): EthCallParam {
739
739
  let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
740
740
  if (overrides?.blockTag) {
@@ -813,7 +813,7 @@ export class WETH9BoundContractView extends BoundContractView<
813
813
  transfer(
814
814
  dst: string,
815
815
  wad: BigNumberish,
816
- overrides?: Overrides
816
+ overrides?: Overrides,
817
817
  ): EthCallParam {
818
818
  let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
819
819
  if (overrides?.blockTag) {
@@ -875,14 +875,14 @@ export class WETH9Processor extends BaseProcessor<
875
875
  preprocessHandler?: (
876
876
  event: ApprovalEvent,
877
877
  ctx: WETH9Context,
878
- preprocessStore: { [k: string]: any }
879
- ) => Promise<PreprocessResult>
878
+ preprocessStore: { [k: string]: any },
879
+ ) => Promise<PreprocessResult>,
880
880
  ): this {
881
881
  if (!filter) {
882
882
  filter = templateContract.filters["Approval(address,address,uint256)"](
883
883
  null,
884
884
  null,
885
- null
885
+ null,
886
886
  );
887
887
  }
888
888
  return super.onEthEvent(handler, filter!, fetchConfig, preprocessHandler);
@@ -895,14 +895,14 @@ export class WETH9Processor extends BaseProcessor<
895
895
  preprocessHandler?: (
896
896
  event: TransferEvent,
897
897
  ctx: WETH9Context,
898
- preprocessStore: { [k: string]: any }
899
- ) => Promise<PreprocessResult>
898
+ preprocessStore: { [k: string]: any },
899
+ ) => Promise<PreprocessResult>,
900
900
  ): this {
901
901
  if (!filter) {
902
902
  filter = templateContract.filters["Transfer(address,address,uint256)"](
903
903
  null,
904
904
  null,
905
- null
905
+ null,
906
906
  );
907
907
  }
908
908
  return super.onEthEvent(handler, filter!, fetchConfig, preprocessHandler);
@@ -915,8 +915,8 @@ export class WETH9Processor extends BaseProcessor<
915
915
  preprocessHandler?: (
916
916
  event: DepositEvent,
917
917
  ctx: WETH9Context,
918
- preprocessStore: { [k: string]: any }
919
- ) => Promise<PreprocessResult>
918
+ preprocessStore: { [k: string]: any },
919
+ ) => Promise<PreprocessResult>,
920
920
  ): this {
921
921
  if (!filter) {
922
922
  filter = templateContract.filters["Deposit(address,uint256)"](null, null);
@@ -931,13 +931,13 @@ export class WETH9Processor extends BaseProcessor<
931
931
  preprocessHandler?: (
932
932
  event: WithdrawalEvent,
933
933
  ctx: WETH9Context,
934
- preprocessStore: { [k: string]: any }
935
- ) => Promise<PreprocessResult>
934
+ preprocessStore: { [k: string]: any },
935
+ ) => Promise<PreprocessResult>,
936
936
  ): this {
937
937
  if (!filter) {
938
938
  filter = templateContract.filters["Withdrawal(address,uint256)"](
939
939
  null,
940
- null
940
+ null,
941
941
  );
942
942
  }
943
943
  return super.onEthEvent(handler, filter!, fetchConfig, preprocessHandler);
@@ -948,14 +948,14 @@ export class WETH9Processor extends BaseProcessor<
948
948
  fetchConfig?: Partial<EthFetchConfig>,
949
949
  preprocessHandler?: (
950
950
  call: NameCallTrace,
951
- ctx: WETH9Context
952
- ) => Promise<PreprocessResult>
951
+ ctx: WETH9Context,
952
+ ) => Promise<PreprocessResult>,
953
953
  ): this {
954
954
  return super.onEthTrace(
955
955
  "0x06fdde03",
956
956
  handler as any,
957
957
  fetchConfig,
958
- preprocessHandler
958
+ preprocessHandler,
959
959
  );
960
960
  }
961
961
 
@@ -964,14 +964,14 @@ export class WETH9Processor extends BaseProcessor<
964
964
  fetchConfig?: Partial<EthFetchConfig>,
965
965
  preprocessHandler?: (
966
966
  call: ApproveCallTrace,
967
- ctx: WETH9Context
968
- ) => Promise<PreprocessResult>
967
+ ctx: WETH9Context,
968
+ ) => Promise<PreprocessResult>,
969
969
  ): this {
970
970
  return super.onEthTrace(
971
971
  "0x095ea7b3",
972
972
  handler as any,
973
973
  fetchConfig,
974
- preprocessHandler
974
+ preprocessHandler,
975
975
  );
976
976
  }
977
977
 
@@ -980,14 +980,14 @@ export class WETH9Processor extends BaseProcessor<
980
980
  fetchConfig?: Partial<EthFetchConfig>,
981
981
  preprocessHandler?: (
982
982
  call: TotalSupplyCallTrace,
983
- ctx: WETH9Context
984
- ) => Promise<PreprocessResult>
983
+ ctx: WETH9Context,
984
+ ) => Promise<PreprocessResult>,
985
985
  ): this {
986
986
  return super.onEthTrace(
987
987
  "0x18160ddd",
988
988
  handler as any,
989
989
  fetchConfig,
990
- preprocessHandler
990
+ preprocessHandler,
991
991
  );
992
992
  }
993
993
 
@@ -996,14 +996,14 @@ export class WETH9Processor extends BaseProcessor<
996
996
  fetchConfig?: Partial<EthFetchConfig>,
997
997
  preprocessHandler?: (
998
998
  call: TransferFromCallTrace,
999
- ctx: WETH9Context
1000
- ) => Promise<PreprocessResult>
999
+ ctx: WETH9Context,
1000
+ ) => Promise<PreprocessResult>,
1001
1001
  ): this {
1002
1002
  return super.onEthTrace(
1003
1003
  "0x23b872dd",
1004
1004
  handler as any,
1005
1005
  fetchConfig,
1006
- preprocessHandler
1006
+ preprocessHandler,
1007
1007
  );
1008
1008
  }
1009
1009
 
@@ -1012,14 +1012,14 @@ export class WETH9Processor extends BaseProcessor<
1012
1012
  fetchConfig?: Partial<EthFetchConfig>,
1013
1013
  preprocessHandler?: (
1014
1014
  call: WithdrawCallTrace,
1015
- ctx: WETH9Context
1016
- ) => Promise<PreprocessResult>
1015
+ ctx: WETH9Context,
1016
+ ) => Promise<PreprocessResult>,
1017
1017
  ): this {
1018
1018
  return super.onEthTrace(
1019
1019
  "0x2e1a7d4d",
1020
1020
  handler as any,
1021
1021
  fetchConfig,
1022
- preprocessHandler
1022
+ preprocessHandler,
1023
1023
  );
1024
1024
  }
1025
1025
 
@@ -1028,14 +1028,14 @@ export class WETH9Processor extends BaseProcessor<
1028
1028
  fetchConfig?: Partial<EthFetchConfig>,
1029
1029
  preprocessHandler?: (
1030
1030
  call: DecimalsCallTrace,
1031
- ctx: WETH9Context
1032
- ) => Promise<PreprocessResult>
1031
+ ctx: WETH9Context,
1032
+ ) => Promise<PreprocessResult>,
1033
1033
  ): this {
1034
1034
  return super.onEthTrace(
1035
1035
  "0x313ce567",
1036
1036
  handler as any,
1037
1037
  fetchConfig,
1038
- preprocessHandler
1038
+ preprocessHandler,
1039
1039
  );
1040
1040
  }
1041
1041
 
@@ -1044,14 +1044,14 @@ export class WETH9Processor extends BaseProcessor<
1044
1044
  fetchConfig?: Partial<EthFetchConfig>,
1045
1045
  preprocessHandler?: (
1046
1046
  call: BalanceOfCallTrace,
1047
- ctx: WETH9Context
1048
- ) => Promise<PreprocessResult>
1047
+ ctx: WETH9Context,
1048
+ ) => Promise<PreprocessResult>,
1049
1049
  ): this {
1050
1050
  return super.onEthTrace(
1051
1051
  "0x70a08231",
1052
1052
  handler as any,
1053
1053
  fetchConfig,
1054
- preprocessHandler
1054
+ preprocessHandler,
1055
1055
  );
1056
1056
  }
1057
1057
 
@@ -1060,14 +1060,14 @@ export class WETH9Processor extends BaseProcessor<
1060
1060
  fetchConfig?: Partial<EthFetchConfig>,
1061
1061
  preprocessHandler?: (
1062
1062
  call: SymbolCallTrace,
1063
- ctx: WETH9Context
1064
- ) => Promise<PreprocessResult>
1063
+ ctx: WETH9Context,
1064
+ ) => Promise<PreprocessResult>,
1065
1065
  ): this {
1066
1066
  return super.onEthTrace(
1067
1067
  "0x95d89b41",
1068
1068
  handler as any,
1069
1069
  fetchConfig,
1070
- preprocessHandler
1070
+ preprocessHandler,
1071
1071
  );
1072
1072
  }
1073
1073
 
@@ -1076,14 +1076,14 @@ export class WETH9Processor extends BaseProcessor<
1076
1076
  fetchConfig?: Partial<EthFetchConfig>,
1077
1077
  preprocessHandler?: (
1078
1078
  call: TransferCallTrace,
1079
- ctx: WETH9Context
1080
- ) => Promise<PreprocessResult>
1079
+ ctx: WETH9Context,
1080
+ ) => Promise<PreprocessResult>,
1081
1081
  ): this {
1082
1082
  return super.onEthTrace(
1083
1083
  "0xa9059cbb",
1084
1084
  handler as any,
1085
1085
  fetchConfig,
1086
- preprocessHandler
1086
+ preprocessHandler,
1087
1087
  );
1088
1088
  }
1089
1089
 
@@ -1092,14 +1092,14 @@ export class WETH9Processor extends BaseProcessor<
1092
1092
  fetchConfig?: Partial<EthFetchConfig>,
1093
1093
  preprocessHandler?: (
1094
1094
  call: DepositCallTrace,
1095
- ctx: WETH9Context
1096
- ) => Promise<PreprocessResult>
1095
+ ctx: WETH9Context,
1096
+ ) => Promise<PreprocessResult>,
1097
1097
  ): this {
1098
1098
  return super.onEthTrace(
1099
1099
  "0xd0e30db0",
1100
1100
  handler as any,
1101
1101
  fetchConfig,
1102
- preprocessHandler
1102
+ preprocessHandler,
1103
1103
  );
1104
1104
  }
1105
1105
 
@@ -1108,14 +1108,14 @@ export class WETH9Processor extends BaseProcessor<
1108
1108
  fetchConfig?: Partial<EthFetchConfig>,
1109
1109
  preprocessHandler?: (
1110
1110
  call: AllowanceCallTrace,
1111
- ctx: WETH9Context
1112
- ) => Promise<PreprocessResult>
1111
+ ctx: WETH9Context,
1112
+ ) => Promise<PreprocessResult>,
1113
1113
  ): this {
1114
1114
  return super.onEthTrace(
1115
1115
  "0xdd62ed3e",
1116
1116
  handler as any,
1117
1117
  fetchConfig,
1118
- preprocessHandler
1118
+ preprocessHandler,
1119
1119
  );
1120
1120
  }
1121
1121
 
@@ -1123,23 +1123,23 @@ export class WETH9Processor extends BaseProcessor<
1123
1123
  Approval(
1124
1124
  src?: string | null,
1125
1125
  guy?: string | null,
1126
- wad?: null
1126
+ wad?: null,
1127
1127
  ): ApprovalEventFilter {
1128
1128
  return templateContract.filters["Approval(address,address,uint256)"](
1129
1129
  src,
1130
1130
  guy,
1131
- wad
1131
+ wad,
1132
1132
  );
1133
1133
  },
1134
1134
  Transfer(
1135
1135
  src?: string | null,
1136
1136
  dst?: string | null,
1137
- wad?: null
1137
+ wad?: null,
1138
1138
  ): TransferEventFilter {
1139
1139
  return templateContract.filters["Transfer(address,address,uint256)"](
1140
1140
  src,
1141
1141
  dst,
1142
- wad
1142
+ wad,
1143
1143
  );
1144
1144
  },
1145
1145
  Deposit(dst?: string | null, wad?: null): DepositEventFilter {
@@ -1191,14 +1191,14 @@ export class WETH9ProcessorTemplate extends BaseProcessorTemplate<
1191
1191
  preprocessHandler?: (
1192
1192
  event: ApprovalEvent,
1193
1193
  ctx: WETH9Context,
1194
- preprocessStore: { [k: string]: any }
1195
- ) => Promise<PreprocessResult>
1194
+ preprocessStore: { [k: string]: any },
1195
+ ) => Promise<PreprocessResult>,
1196
1196
  ): this {
1197
1197
  if (!filter) {
1198
1198
  filter = templateContract.filters["Approval(address,address,uint256)"](
1199
1199
  null,
1200
1200
  null,
1201
- null
1201
+ null,
1202
1202
  );
1203
1203
  }
1204
1204
  return super.onEthEvent(handler, filter!, fetchConfig, preprocessHandler);
@@ -1211,14 +1211,14 @@ export class WETH9ProcessorTemplate extends BaseProcessorTemplate<
1211
1211
  preprocessHandler?: (
1212
1212
  event: TransferEvent,
1213
1213
  ctx: WETH9Context,
1214
- preprocessStore: { [k: string]: any }
1215
- ) => Promise<PreprocessResult>
1214
+ preprocessStore: { [k: string]: any },
1215
+ ) => Promise<PreprocessResult>,
1216
1216
  ): this {
1217
1217
  if (!filter) {
1218
1218
  filter = templateContract.filters["Transfer(address,address,uint256)"](
1219
1219
  null,
1220
1220
  null,
1221
- null
1221
+ null,
1222
1222
  );
1223
1223
  }
1224
1224
  return super.onEthEvent(handler, filter!, fetchConfig, preprocessHandler);
@@ -1231,8 +1231,8 @@ export class WETH9ProcessorTemplate extends BaseProcessorTemplate<
1231
1231
  preprocessHandler?: (
1232
1232
  event: DepositEvent,
1233
1233
  ctx: WETH9Context,
1234
- preprocessStore: { [k: string]: any }
1235
- ) => Promise<PreprocessResult>
1234
+ preprocessStore: { [k: string]: any },
1235
+ ) => Promise<PreprocessResult>,
1236
1236
  ): this {
1237
1237
  if (!filter) {
1238
1238
  filter = templateContract.filters["Deposit(address,uint256)"](null, null);
@@ -1247,13 +1247,13 @@ export class WETH9ProcessorTemplate extends BaseProcessorTemplate<
1247
1247
  preprocessHandler?: (
1248
1248
  event: WithdrawalEvent,
1249
1249
  ctx: WETH9Context,
1250
- preprocessStore: { [k: string]: any }
1251
- ) => Promise<PreprocessResult>
1250
+ preprocessStore: { [k: string]: any },
1251
+ ) => Promise<PreprocessResult>,
1252
1252
  ): this {
1253
1253
  if (!filter) {
1254
1254
  filter = templateContract.filters["Withdrawal(address,uint256)"](
1255
1255
  null,
1256
- null
1256
+ null,
1257
1257
  );
1258
1258
  }
1259
1259
  return super.onEthEvent(handler, filter!, fetchConfig, preprocessHandler);
@@ -1262,12 +1262,12 @@ export class WETH9ProcessorTemplate extends BaseProcessorTemplate<
1262
1262
 
1263
1263
  export function getWETH9Contract(
1264
1264
  chainId: EthChainId,
1265
- address: string
1265
+ address: string,
1266
1266
  ): WETH9ContractView {
1267
1267
  let contract = getContractByABI(
1268
1268
  "WETH9",
1269
1269
  address,
1270
- chainId
1270
+ chainId,
1271
1271
  ) as WETH9ContractView;
1272
1272
  if (!contract) {
1273
1273
  const rawContract = WETH9__factory.connect(address, getProvider(chainId));
@@ -1279,7 +1279,7 @@ export function getWETH9Contract(
1279
1279
 
1280
1280
  export function getWETH9ContractOnContext(
1281
1281
  context: EthContext,
1282
- address: string
1282
+ address: string,
1283
1283
  ): WETH9BoundContractView {
1284
1284
  const view = getWETH9Contract(context.getChainId(), address);
1285
1285
  const boundView = new WETH9BoundContractView(address, view);