@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
@@ -176,7 +176,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
176
176
  async totalSupply(
177
177
  overrides?: Overrides,
178
178
  preparedData?: PreparedData,
179
- ethCallContext?: EthCallContext
179
+ ethCallContext?: EthCallContext,
180
180
  ): Promise<bigint> {
181
181
  try {
182
182
  return await this.contract.getFunction("totalSupply()")(overrides || {});
@@ -190,12 +190,12 @@ export class ERC721ContractView extends ContractView<ERC721> {
190
190
  owner: string,
191
191
  overrides?: Overrides,
192
192
  preparedData?: PreparedData,
193
- ethCallContext?: EthCallContext
193
+ ethCallContext?: EthCallContext,
194
194
  ): Promise<bigint> {
195
195
  try {
196
196
  return await this.contract.getFunction("balanceOf(address)")(
197
197
  owner,
198
- overrides || {}
198
+ overrides || {},
199
199
  );
200
200
  } catch (e) {
201
201
  const stack = new Error().stack;
@@ -207,12 +207,12 @@ export class ERC721ContractView extends ContractView<ERC721> {
207
207
  tokenId: BigNumberish,
208
208
  overrides?: Overrides,
209
209
  preparedData?: PreparedData,
210
- ethCallContext?: EthCallContext
210
+ ethCallContext?: EthCallContext,
211
211
  ): Promise<string> {
212
212
  try {
213
213
  return await this.contract.getFunction("getApproved(uint256)")(
214
214
  tokenId,
215
- overrides || {}
215
+ overrides || {},
216
216
  );
217
217
  } catch (e) {
218
218
  const stack = new Error().stack;
@@ -225,11 +225,11 @@ export class ERC721ContractView extends ContractView<ERC721> {
225
225
  operator: string,
226
226
  overrides?: Overrides,
227
227
  preparedData?: PreparedData,
228
- ethCallContext?: EthCallContext
228
+ ethCallContext?: EthCallContext,
229
229
  ): Promise<boolean> {
230
230
  try {
231
231
  return await this.contract.getFunction(
232
- "isApprovedForAll(address,address)"
232
+ "isApprovedForAll(address,address)",
233
233
  )(owner, operator, overrides || {});
234
234
  } catch (e) {
235
235
  const stack = new Error().stack;
@@ -240,7 +240,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
240
240
  async name(
241
241
  overrides?: Overrides,
242
242
  preparedData?: PreparedData,
243
- ethCallContext?: EthCallContext
243
+ ethCallContext?: EthCallContext,
244
244
  ): Promise<string> {
245
245
  try {
246
246
  return await this.contract.getFunction("name()")(overrides || {});
@@ -254,12 +254,12 @@ export class ERC721ContractView extends ContractView<ERC721> {
254
254
  tokenId: BigNumberish,
255
255
  overrides?: Overrides,
256
256
  preparedData?: PreparedData,
257
- ethCallContext?: EthCallContext
257
+ ethCallContext?: EthCallContext,
258
258
  ): Promise<string> {
259
259
  try {
260
260
  return await this.contract.getFunction("ownerOf(uint256)")(
261
261
  tokenId,
262
- overrides || {}
262
+ overrides || {},
263
263
  );
264
264
  } catch (e) {
265
265
  const stack = new Error().stack;
@@ -271,12 +271,12 @@ export class ERC721ContractView extends ContractView<ERC721> {
271
271
  interfaceId: BytesLike,
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.getFunction("supportsInterface(bytes4)")(
278
278
  interfaceId,
279
- overrides || {}
279
+ overrides || {},
280
280
  );
281
281
  } catch (e) {
282
282
  const stack = new Error().stack;
@@ -287,7 +287,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
287
287
  async symbol(
288
288
  overrides?: Overrides,
289
289
  preparedData?: PreparedData,
290
- ethCallContext?: EthCallContext
290
+ ethCallContext?: EthCallContext,
291
291
  ): Promise<string> {
292
292
  try {
293
293
  return await this.contract.getFunction("symbol()")(overrides || {});
@@ -301,12 +301,12 @@ export class ERC721ContractView extends ContractView<ERC721> {
301
301
  tokenId: BigNumberish,
302
302
  overrides?: Overrides,
303
303
  preparedData?: PreparedData,
304
- ethCallContext?: EthCallContext
304
+ ethCallContext?: EthCallContext,
305
305
  ): Promise<string> {
306
306
  try {
307
307
  return await this.contract.getFunction("tokenURI(uint256)")(
308
308
  tokenId,
309
- overrides || {}
309
+ overrides || {},
310
310
  );
311
311
  } catch (e) {
312
312
  const stack = new Error().stack;
@@ -322,7 +322,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
322
322
  tokenId: BigNumberish,
323
323
  overrides?: Overrides,
324
324
  preparedData?: PreparedData,
325
- ethCallContext?: EthCallContext
325
+ ethCallContext?: EthCallContext,
326
326
  ): Promise<void> {
327
327
  try {
328
328
  return await this.contract
@@ -339,7 +339,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
339
339
  tokenId: BigNumberish,
340
340
  overrides?: Overrides,
341
341
  preparedData?: PreparedData,
342
- ethCallContext?: EthCallContext
342
+ ethCallContext?: EthCallContext,
343
343
  ): Promise<void> {
344
344
  try {
345
345
  return await this.contract
@@ -357,7 +357,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
357
357
  data: BytesLike,
358
358
  overrides?: Overrides,
359
359
  preparedData?: PreparedData,
360
- ethCallContext?: EthCallContext
360
+ ethCallContext?: EthCallContext,
361
361
  ): Promise<void> {
362
362
  try {
363
363
  return await this.contract
@@ -373,7 +373,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
373
373
  _approved: boolean,
374
374
  overrides?: Overrides,
375
375
  preparedData?: PreparedData,
376
- ethCallContext?: EthCallContext
376
+ ethCallContext?: EthCallContext,
377
377
  ): Promise<void> {
378
378
  try {
379
379
  return await this.contract
@@ -390,7 +390,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
390
390
  tokenId: BigNumberish,
391
391
  overrides?: Overrides,
392
392
  preparedData?: PreparedData,
393
- ethCallContext?: EthCallContext
393
+ ethCallContext?: EthCallContext,
394
394
  ): Promise<void> {
395
395
  try {
396
396
  return await this.contract
@@ -407,7 +407,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
407
407
  approve(
408
408
  to: string,
409
409
  tokenId: BigNumberish,
410
- ethCallContext: EthCallContext
410
+ ethCallContext: EthCallContext,
411
411
  ): EthCallParam {
412
412
  try {
413
413
  const iface = new Interface(["function approve(address,uint256)"]);
@@ -449,7 +449,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
449
449
  },
450
450
  getApproved(
451
451
  tokenId: BigNumberish,
452
- ethCallContext: EthCallContext
452
+ ethCallContext: EthCallContext,
453
453
  ): EthCallParam {
454
454
  try {
455
455
  const iface = new Interface(["function getApproved(uint256)"]);
@@ -466,7 +466,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
466
466
  isApprovedForAll(
467
467
  owner: string,
468
468
  operator: string,
469
- ethCallContext: EthCallContext
469
+ ethCallContext: EthCallContext,
470
470
  ): EthCallParam {
471
471
  try {
472
472
  const iface = new Interface([
@@ -500,7 +500,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
500
500
  },
501
501
  ownerOf(
502
502
  tokenId: BigNumberish,
503
- ethCallContext: EthCallContext
503
+ ethCallContext: EthCallContext,
504
504
  ): EthCallParam {
505
505
  try {
506
506
  const iface = new Interface(["function ownerOf(uint256)"]);
@@ -518,7 +518,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
518
518
  from: string,
519
519
  to: string,
520
520
  tokenId: BigNumberish,
521
- ethCallContext: EthCallContext
521
+ ethCallContext: EthCallContext,
522
522
  ): EthCallParam {
523
523
  try {
524
524
  const iface = new Interface([
@@ -543,7 +543,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
543
543
  to: string,
544
544
  tokenId: BigNumberish,
545
545
  data: BytesLike,
546
- ethCallContext: EthCallContext
546
+ ethCallContext: EthCallContext,
547
547
  ): EthCallParam {
548
548
  try {
549
549
  const iface = new Interface([
@@ -567,7 +567,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
567
567
  setApprovalForAll(
568
568
  operator: string,
569
569
  _approved: boolean,
570
- ethCallContext: EthCallContext
570
+ ethCallContext: EthCallContext,
571
571
  ): EthCallParam {
572
572
  try {
573
573
  const iface = new Interface([
@@ -588,7 +588,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
588
588
  },
589
589
  supportsInterface(
590
590
  interfaceId: BytesLike,
591
- ethCallContext: EthCallContext
591
+ ethCallContext: EthCallContext,
592
592
  ): EthCallParam {
593
593
  try {
594
594
  const iface = new Interface(["function supportsInterface(bytes4)"]);
@@ -619,7 +619,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
619
619
  },
620
620
  tokenURI(
621
621
  tokenId: BigNumberish,
622
- ethCallContext: EthCallContext
622
+ ethCallContext: EthCallContext,
623
623
  ): EthCallParam {
624
624
  try {
625
625
  const iface = new Interface(["function tokenURI(uint256)"]);
@@ -637,7 +637,7 @@ export class ERC721ContractView extends ContractView<ERC721> {
637
637
  from: string,
638
638
  to: string,
639
639
  tokenId: BigNumberish,
640
- ethCallContext: EthCallContext
640
+ ethCallContext: EthCallContext,
641
641
  ): EthCallParam {
642
642
  try {
643
643
  const iface = new Interface([
@@ -676,7 +676,7 @@ export class ERC721BoundContractView extends BoundContractView<
676
676
  ...overrides,
677
677
  },
678
678
  this.context.preparedData,
679
- ethCallContext
679
+ ethCallContext,
680
680
  );
681
681
  }
682
682
 
@@ -693,13 +693,13 @@ export class ERC721BoundContractView extends BoundContractView<
693
693
  ...overrides,
694
694
  },
695
695
  this.context.preparedData,
696
- ethCallContext
696
+ ethCallContext,
697
697
  );
698
698
  }
699
699
 
700
700
  async getApproved(
701
701
  tokenId: BigNumberish,
702
- overrides?: Overrides
702
+ overrides?: Overrides,
703
703
  ): Promise<string> {
704
704
  const ethCallContext = {
705
705
  chainId: this.context.chainId,
@@ -713,14 +713,14 @@ export class ERC721BoundContractView extends BoundContractView<
713
713
  ...overrides,
714
714
  },
715
715
  this.context.preparedData,
716
- ethCallContext
716
+ ethCallContext,
717
717
  );
718
718
  }
719
719
 
720
720
  async isApprovedForAll(
721
721
  owner: string,
722
722
  operator: string,
723
- overrides?: Overrides
723
+ overrides?: Overrides,
724
724
  ): Promise<boolean> {
725
725
  const ethCallContext = {
726
726
  chainId: this.context.chainId,
@@ -735,7 +735,7 @@ export class ERC721BoundContractView extends BoundContractView<
735
735
  ...overrides,
736
736
  },
737
737
  this.context.preparedData,
738
- ethCallContext
738
+ ethCallContext,
739
739
  );
740
740
  }
741
741
 
@@ -751,7 +751,7 @@ export class ERC721BoundContractView extends BoundContractView<
751
751
  ...overrides,
752
752
  },
753
753
  this.context.preparedData,
754
- ethCallContext
754
+ ethCallContext,
755
755
  );
756
756
  }
757
757
 
@@ -768,13 +768,13 @@ export class ERC721BoundContractView extends BoundContractView<
768
768
  ...overrides,
769
769
  },
770
770
  this.context.preparedData,
771
- ethCallContext
771
+ ethCallContext,
772
772
  );
773
773
  }
774
774
 
775
775
  async supportsInterface(
776
776
  interfaceId: BytesLike,
777
- overrides?: Overrides
777
+ overrides?: Overrides,
778
778
  ): Promise<boolean> {
779
779
  const ethCallContext = {
780
780
  chainId: this.context.chainId,
@@ -788,7 +788,7 @@ export class ERC721BoundContractView extends BoundContractView<
788
788
  ...overrides,
789
789
  },
790
790
  this.context.preparedData,
791
- ethCallContext
791
+ ethCallContext,
792
792
  );
793
793
  }
794
794
 
@@ -804,13 +804,13 @@ export class ERC721BoundContractView extends BoundContractView<
804
804
  ...overrides,
805
805
  },
806
806
  this.context.preparedData,
807
- ethCallContext
807
+ ethCallContext,
808
808
  );
809
809
  }
810
810
 
811
811
  async tokenURI(
812
812
  tokenId: BigNumberish,
813
- overrides?: Overrides
813
+ overrides?: Overrides,
814
814
  ): Promise<string> {
815
815
  const ethCallContext = {
816
816
  chainId: this.context.chainId,
@@ -824,7 +824,7 @@ export class ERC721BoundContractView extends BoundContractView<
824
824
  ...overrides,
825
825
  },
826
826
  this.context.preparedData,
827
- ethCallContext
827
+ ethCallContext,
828
828
  );
829
829
  }
830
830
 
@@ -835,7 +835,7 @@ export class ERC721BoundContractView extends BoundContractView<
835
835
  async approve(
836
836
  to: string,
837
837
  tokenId: BigNumberish,
838
- overrides?: Overrides
838
+ overrides?: Overrides,
839
839
  ): Promise<void> {
840
840
  const ethCallContext = {
841
841
  chainId: this.context.chainId,
@@ -850,14 +850,14 @@ export class ERC721BoundContractView extends BoundContractView<
850
850
  ...overrides,
851
851
  },
852
852
  this.context.preparedData,
853
- ethCallContext
853
+ ethCallContext,
854
854
  );
855
855
  },
856
856
  async safeTransferFrom_address_address_uint256(
857
857
  from: string,
858
858
  to: string,
859
859
  tokenId: BigNumberish,
860
- overrides?: Overrides
860
+ overrides?: Overrides,
861
861
  ): Promise<void> {
862
862
  const ethCallContext = {
863
863
  chainId: this.context.chainId,
@@ -873,7 +873,7 @@ export class ERC721BoundContractView extends BoundContractView<
873
873
  ...overrides,
874
874
  },
875
875
  this.context.preparedData,
876
- ethCallContext
876
+ ethCallContext,
877
877
  );
878
878
  },
879
879
  async safeTransferFrom_address_address_uint256_bytes(
@@ -881,7 +881,7 @@ export class ERC721BoundContractView extends BoundContractView<
881
881
  to: string,
882
882
  tokenId: BigNumberish,
883
883
  data: BytesLike,
884
- overrides?: Overrides
884
+ overrides?: Overrides,
885
885
  ): Promise<void> {
886
886
  const ethCallContext = {
887
887
  chainId: this.context.chainId,
@@ -898,13 +898,13 @@ export class ERC721BoundContractView extends BoundContractView<
898
898
  ...overrides,
899
899
  },
900
900
  this.context.preparedData,
901
- ethCallContext
901
+ ethCallContext,
902
902
  );
903
903
  },
904
904
  async setApprovalForAll(
905
905
  operator: string,
906
906
  _approved: boolean,
907
- overrides?: Overrides
907
+ overrides?: Overrides,
908
908
  ): Promise<void> {
909
909
  const ethCallContext = {
910
910
  chainId: this.context.chainId,
@@ -919,14 +919,14 @@ export class ERC721BoundContractView extends BoundContractView<
919
919
  ...overrides,
920
920
  },
921
921
  this.context.preparedData,
922
- ethCallContext
922
+ ethCallContext,
923
923
  );
924
924
  },
925
925
  async transferFrom(
926
926
  from: string,
927
927
  to: string,
928
928
  tokenId: BigNumberish,
929
- overrides?: Overrides
929
+ overrides?: Overrides,
930
930
  ): Promise<void> {
931
931
  const ethCallContext = {
932
932
  chainId: this.context.chainId,
@@ -942,7 +942,7 @@ export class ERC721BoundContractView extends BoundContractView<
942
942
  ...overrides,
943
943
  },
944
944
  this.context.preparedData,
945
- ethCallContext
945
+ ethCallContext,
946
946
  );
947
947
  },
948
948
  };
@@ -954,7 +954,7 @@ export class ERC721BoundContractView extends BoundContractView<
954
954
  approve(
955
955
  to: string,
956
956
  tokenId: BigNumberish,
957
- overrides?: Overrides
957
+ overrides?: Overrides,
958
958
  ): EthCallParam {
959
959
  let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
960
960
  if (overrides?.blockTag) {
@@ -1018,7 +1018,7 @@ export class ERC721BoundContractView extends BoundContractView<
1018
1018
  isApprovedForAll(
1019
1019
  owner: string,
1020
1020
  operator: string,
1021
- overrides?: Overrides
1021
+ overrides?: Overrides,
1022
1022
  ): EthCallParam {
1023
1023
  let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
1024
1024
  if (overrides?.blockTag) {
@@ -1068,7 +1068,7 @@ export class ERC721BoundContractView extends BoundContractView<
1068
1068
  from: string,
1069
1069
  to: string,
1070
1070
  tokenId: BigNumberish,
1071
- overrides?: Overrides
1071
+ overrides?: Overrides,
1072
1072
  ): EthCallParam {
1073
1073
  let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
1074
1074
  if (overrides?.blockTag) {
@@ -1086,7 +1086,7 @@ export class ERC721BoundContractView extends BoundContractView<
1086
1086
  chainId: this.context.chainId.toString(),
1087
1087
  address: this.context.address,
1088
1088
  blockTag: blockTagWithOverride,
1089
- }
1089
+ },
1090
1090
  );
1091
1091
  },
1092
1092
  safeTransferFrom_address_address_uint256_bytes(
@@ -1094,7 +1094,7 @@ export class ERC721BoundContractView extends BoundContractView<
1094
1094
  to: string,
1095
1095
  tokenId: BigNumberish,
1096
1096
  data: BytesLike,
1097
- overrides?: Overrides
1097
+ overrides?: Overrides,
1098
1098
  ): EthCallParam {
1099
1099
  let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
1100
1100
  if (overrides?.blockTag) {
@@ -1113,13 +1113,13 @@ export class ERC721BoundContractView extends BoundContractView<
1113
1113
  chainId: this.context.chainId.toString(),
1114
1114
  address: this.context.address,
1115
1115
  blockTag: blockTagWithOverride,
1116
- }
1116
+ },
1117
1117
  );
1118
1118
  },
1119
1119
  setApprovalForAll(
1120
1120
  operator: string,
1121
1121
  _approved: boolean,
1122
- overrides?: Overrides
1122
+ overrides?: Overrides,
1123
1123
  ): EthCallParam {
1124
1124
  let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
1125
1125
  if (overrides?.blockTag) {
@@ -1137,7 +1137,7 @@ export class ERC721BoundContractView extends BoundContractView<
1137
1137
  },
1138
1138
  supportsInterface(
1139
1139
  interfaceId: BytesLike,
1140
- overrides?: Overrides
1140
+ overrides?: Overrides,
1141
1141
  ): EthCallParam {
1142
1142
  let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
1143
1143
  if (overrides?.blockTag) {
@@ -1187,7 +1187,7 @@ export class ERC721BoundContractView extends BoundContractView<
1187
1187
  from: string,
1188
1188
  to: string,
1189
1189
  tokenId: BigNumberish,
1190
- overrides?: Overrides
1190
+ overrides?: Overrides,
1191
1191
  ): EthCallParam {
1192
1192
  let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
1193
1193
  if (overrides?.blockTag) {
@@ -1219,14 +1219,14 @@ export class ERC721Processor extends BaseProcessor<
1219
1219
  preprocessHandler?: (
1220
1220
  event: ApprovalEvent,
1221
1221
  ctx: ERC721Context,
1222
- preprocessStore: { [k: string]: any }
1223
- ) => Promise<PreprocessResult>
1222
+ preprocessStore: { [k: string]: any },
1223
+ ) => Promise<PreprocessResult>,
1224
1224
  ): this {
1225
1225
  if (!filter) {
1226
1226
  filter = templateContract.filters["Approval(address,address,uint256)"](
1227
1227
  null,
1228
1228
  null,
1229
- null
1229
+ null,
1230
1230
  );
1231
1231
  }
1232
1232
  return super.onEthEvent(handler, filter!, fetchConfig, preprocessHandler);
@@ -1239,14 +1239,14 @@ export class ERC721Processor extends BaseProcessor<
1239
1239
  preprocessHandler?: (
1240
1240
  event: ApprovalForAllEvent,
1241
1241
  ctx: ERC721Context,
1242
- preprocessStore: { [k: string]: any }
1243
- ) => Promise<PreprocessResult>
1242
+ preprocessStore: { [k: string]: any },
1243
+ ) => Promise<PreprocessResult>,
1244
1244
  ): this {
1245
1245
  if (!filter) {
1246
1246
  filter = templateContract.filters["ApprovalForAll(address,address,bool)"](
1247
1247
  null,
1248
1248
  null,
1249
- null
1249
+ null,
1250
1250
  );
1251
1251
  }
1252
1252
  return super.onEthEvent(handler, filter!, fetchConfig, preprocessHandler);
@@ -1259,14 +1259,14 @@ export class ERC721Processor extends BaseProcessor<
1259
1259
  preprocessHandler?: (
1260
1260
  event: TransferEvent,
1261
1261
  ctx: ERC721Context,
1262
- preprocessStore: { [k: string]: any }
1263
- ) => Promise<PreprocessResult>
1262
+ preprocessStore: { [k: string]: any },
1263
+ ) => Promise<PreprocessResult>,
1264
1264
  ): this {
1265
1265
  if (!filter) {
1266
1266
  filter = templateContract.filters["Transfer(address,address,uint256)"](
1267
1267
  null,
1268
1268
  null,
1269
- null
1269
+ null,
1270
1270
  );
1271
1271
  }
1272
1272
  return super.onEthEvent(handler, filter!, fetchConfig, preprocessHandler);
@@ -1277,14 +1277,14 @@ export class ERC721Processor extends BaseProcessor<
1277
1277
  fetchConfig?: Partial<EthFetchConfig>,
1278
1278
  preprocessHandler?: (
1279
1279
  call: ApproveCallTrace,
1280
- ctx: ERC721Context
1281
- ) => Promise<PreprocessResult>
1280
+ ctx: ERC721Context,
1281
+ ) => Promise<PreprocessResult>,
1282
1282
  ): this {
1283
1283
  return super.onEthTrace(
1284
1284
  "0x095ea7b3",
1285
1285
  handler as any,
1286
1286
  fetchConfig,
1287
- preprocessHandler
1287
+ preprocessHandler,
1288
1288
  );
1289
1289
  }
1290
1290
 
@@ -1293,14 +1293,14 @@ export class ERC721Processor extends BaseProcessor<
1293
1293
  fetchConfig?: Partial<EthFetchConfig>,
1294
1294
  preprocessHandler?: (
1295
1295
  call: TotalSupplyCallTrace,
1296
- ctx: ERC721Context
1297
- ) => Promise<PreprocessResult>
1296
+ ctx: ERC721Context,
1297
+ ) => Promise<PreprocessResult>,
1298
1298
  ): this {
1299
1299
  return super.onEthTrace(
1300
1300
  "0x18160ddd",
1301
1301
  handler as any,
1302
1302
  fetchConfig,
1303
- preprocessHandler
1303
+ preprocessHandler,
1304
1304
  );
1305
1305
  }
1306
1306
 
@@ -1309,14 +1309,14 @@ export class ERC721Processor extends BaseProcessor<
1309
1309
  fetchConfig?: Partial<EthFetchConfig>,
1310
1310
  preprocessHandler?: (
1311
1311
  call: BalanceOfCallTrace,
1312
- ctx: ERC721Context
1313
- ) => Promise<PreprocessResult>
1312
+ ctx: ERC721Context,
1313
+ ) => Promise<PreprocessResult>,
1314
1314
  ): this {
1315
1315
  return super.onEthTrace(
1316
1316
  "0x70a08231",
1317
1317
  handler as any,
1318
1318
  fetchConfig,
1319
- preprocessHandler
1319
+ preprocessHandler,
1320
1320
  );
1321
1321
  }
1322
1322
 
@@ -1325,14 +1325,14 @@ export class ERC721Processor extends BaseProcessor<
1325
1325
  fetchConfig?: Partial<EthFetchConfig>,
1326
1326
  preprocessHandler?: (
1327
1327
  call: GetApprovedCallTrace,
1328
- ctx: ERC721Context
1329
- ) => Promise<PreprocessResult>
1328
+ ctx: ERC721Context,
1329
+ ) => Promise<PreprocessResult>,
1330
1330
  ): this {
1331
1331
  return super.onEthTrace(
1332
1332
  "0x081812fc",
1333
1333
  handler as any,
1334
1334
  fetchConfig,
1335
- preprocessHandler
1335
+ preprocessHandler,
1336
1336
  );
1337
1337
  }
1338
1338
 
@@ -1341,14 +1341,14 @@ export class ERC721Processor extends BaseProcessor<
1341
1341
  fetchConfig?: Partial<EthFetchConfig>,
1342
1342
  preprocessHandler?: (
1343
1343
  call: IsApprovedForAllCallTrace,
1344
- ctx: ERC721Context
1345
- ) => Promise<PreprocessResult>
1344
+ ctx: ERC721Context,
1345
+ ) => Promise<PreprocessResult>,
1346
1346
  ): this {
1347
1347
  return super.onEthTrace(
1348
1348
  "0xe985e9c5",
1349
1349
  handler as any,
1350
1350
  fetchConfig,
1351
- preprocessHandler
1351
+ preprocessHandler,
1352
1352
  );
1353
1353
  }
1354
1354
 
@@ -1357,14 +1357,14 @@ export class ERC721Processor extends BaseProcessor<
1357
1357
  fetchConfig?: Partial<EthFetchConfig>,
1358
1358
  preprocessHandler?: (
1359
1359
  call: NameCallTrace,
1360
- ctx: ERC721Context
1361
- ) => Promise<PreprocessResult>
1360
+ ctx: ERC721Context,
1361
+ ) => Promise<PreprocessResult>,
1362
1362
  ): this {
1363
1363
  return super.onEthTrace(
1364
1364
  "0x06fdde03",
1365
1365
  handler as any,
1366
1366
  fetchConfig,
1367
- preprocessHandler
1367
+ preprocessHandler,
1368
1368
  );
1369
1369
  }
1370
1370
 
@@ -1373,52 +1373,52 @@ export class ERC721Processor extends BaseProcessor<
1373
1373
  fetchConfig?: Partial<EthFetchConfig>,
1374
1374
  preprocessHandler?: (
1375
1375
  call: OwnerOfCallTrace,
1376
- ctx: ERC721Context
1377
- ) => Promise<PreprocessResult>
1376
+ ctx: ERC721Context,
1377
+ ) => Promise<PreprocessResult>,
1378
1378
  ): this {
1379
1379
  return super.onEthTrace(
1380
1380
  "0x6352211e",
1381
1381
  handler as any,
1382
1382
  fetchConfig,
1383
- preprocessHandler
1383
+ preprocessHandler,
1384
1384
  );
1385
1385
  }
1386
1386
 
1387
1387
  onCallSafeTransferFrom_address_address_uint256(
1388
1388
  handler: (
1389
1389
  call: SafeTransferFrom_address_address_uint256CallTrace,
1390
- ctx: ERC721Context
1390
+ ctx: ERC721Context,
1391
1391
  ) => void,
1392
1392
  fetchConfig?: Partial<EthFetchConfig>,
1393
1393
  preprocessHandler?: (
1394
1394
  call: SafeTransferFrom_address_address_uint256CallTrace,
1395
- ctx: ERC721Context
1396
- ) => Promise<PreprocessResult>
1395
+ ctx: ERC721Context,
1396
+ ) => Promise<PreprocessResult>,
1397
1397
  ): this {
1398
1398
  return super.onEthTrace(
1399
1399
  "0x42842e0e",
1400
1400
  handler as any,
1401
1401
  fetchConfig,
1402
- preprocessHandler
1402
+ preprocessHandler,
1403
1403
  );
1404
1404
  }
1405
1405
 
1406
1406
  onCallSafeTransferFrom_address_address_uint256_bytes(
1407
1407
  handler: (
1408
1408
  call: SafeTransferFrom_address_address_uint256_bytesCallTrace,
1409
- ctx: ERC721Context
1409
+ ctx: ERC721Context,
1410
1410
  ) => void,
1411
1411
  fetchConfig?: Partial<EthFetchConfig>,
1412
1412
  preprocessHandler?: (
1413
1413
  call: SafeTransferFrom_address_address_uint256_bytesCallTrace,
1414
- ctx: ERC721Context
1415
- ) => Promise<PreprocessResult>
1414
+ ctx: ERC721Context,
1415
+ ) => Promise<PreprocessResult>,
1416
1416
  ): this {
1417
1417
  return super.onEthTrace(
1418
1418
  "0xb88d4fde",
1419
1419
  handler as any,
1420
1420
  fetchConfig,
1421
- preprocessHandler
1421
+ preprocessHandler,
1422
1422
  );
1423
1423
  }
1424
1424
 
@@ -1427,14 +1427,14 @@ export class ERC721Processor extends BaseProcessor<
1427
1427
  fetchConfig?: Partial<EthFetchConfig>,
1428
1428
  preprocessHandler?: (
1429
1429
  call: SetApprovalForAllCallTrace,
1430
- ctx: ERC721Context
1431
- ) => Promise<PreprocessResult>
1430
+ ctx: ERC721Context,
1431
+ ) => Promise<PreprocessResult>,
1432
1432
  ): this {
1433
1433
  return super.onEthTrace(
1434
1434
  "0xa22cb465",
1435
1435
  handler as any,
1436
1436
  fetchConfig,
1437
- preprocessHandler
1437
+ preprocessHandler,
1438
1438
  );
1439
1439
  }
1440
1440
 
@@ -1443,14 +1443,14 @@ export class ERC721Processor extends BaseProcessor<
1443
1443
  fetchConfig?: Partial<EthFetchConfig>,
1444
1444
  preprocessHandler?: (
1445
1445
  call: SupportsInterfaceCallTrace,
1446
- ctx: ERC721Context
1447
- ) => Promise<PreprocessResult>
1446
+ ctx: ERC721Context,
1447
+ ) => Promise<PreprocessResult>,
1448
1448
  ): this {
1449
1449
  return super.onEthTrace(
1450
1450
  "0x01ffc9a7",
1451
1451
  handler as any,
1452
1452
  fetchConfig,
1453
- preprocessHandler
1453
+ preprocessHandler,
1454
1454
  );
1455
1455
  }
1456
1456
 
@@ -1459,14 +1459,14 @@ export class ERC721Processor extends BaseProcessor<
1459
1459
  fetchConfig?: Partial<EthFetchConfig>,
1460
1460
  preprocessHandler?: (
1461
1461
  call: SymbolCallTrace,
1462
- ctx: ERC721Context
1463
- ) => Promise<PreprocessResult>
1462
+ ctx: ERC721Context,
1463
+ ) => Promise<PreprocessResult>,
1464
1464
  ): this {
1465
1465
  return super.onEthTrace(
1466
1466
  "0x95d89b41",
1467
1467
  handler as any,
1468
1468
  fetchConfig,
1469
- preprocessHandler
1469
+ preprocessHandler,
1470
1470
  );
1471
1471
  }
1472
1472
 
@@ -1475,14 +1475,14 @@ export class ERC721Processor extends BaseProcessor<
1475
1475
  fetchConfig?: Partial<EthFetchConfig>,
1476
1476
  preprocessHandler?: (
1477
1477
  call: TokenURICallTrace,
1478
- ctx: ERC721Context
1479
- ) => Promise<PreprocessResult>
1478
+ ctx: ERC721Context,
1479
+ ) => Promise<PreprocessResult>,
1480
1480
  ): this {
1481
1481
  return super.onEthTrace(
1482
1482
  "0xc87b56dd",
1483
1483
  handler as any,
1484
1484
  fetchConfig,
1485
- preprocessHandler
1485
+ preprocessHandler,
1486
1486
  );
1487
1487
  }
1488
1488
 
@@ -1491,14 +1491,14 @@ export class ERC721Processor extends BaseProcessor<
1491
1491
  fetchConfig?: Partial<EthFetchConfig>,
1492
1492
  preprocessHandler?: (
1493
1493
  call: TransferFromCallTrace,
1494
- ctx: ERC721Context
1495
- ) => Promise<PreprocessResult>
1494
+ ctx: ERC721Context,
1495
+ ) => Promise<PreprocessResult>,
1496
1496
  ): this {
1497
1497
  return super.onEthTrace(
1498
1498
  "0x23b872dd",
1499
1499
  handler as any,
1500
1500
  fetchConfig,
1501
- preprocessHandler
1501
+ preprocessHandler,
1502
1502
  );
1503
1503
  }
1504
1504
 
@@ -1506,34 +1506,34 @@ export class ERC721Processor extends BaseProcessor<
1506
1506
  Approval(
1507
1507
  owner?: string | null,
1508
1508
  approved?: string | null,
1509
- tokenId?: BigNumberish | null
1509
+ tokenId?: BigNumberish | null,
1510
1510
  ): ApprovalEventFilter {
1511
1511
  return templateContract.filters["Approval(address,address,uint256)"](
1512
1512
  owner,
1513
1513
  approved,
1514
- tokenId
1514
+ tokenId,
1515
1515
  );
1516
1516
  },
1517
1517
  ApprovalForAll(
1518
1518
  owner?: string | null,
1519
1519
  operator?: string | null,
1520
- approved?: null
1520
+ approved?: null,
1521
1521
  ): ApprovalForAllEventFilter {
1522
1522
  return templateContract.filters["ApprovalForAll(address,address,bool)"](
1523
1523
  owner,
1524
1524
  operator,
1525
- approved
1525
+ approved,
1526
1526
  );
1527
1527
  },
1528
1528
  Transfer(
1529
1529
  from?: string | null,
1530
1530
  to?: string | null,
1531
- tokenId?: BigNumberish | null
1531
+ tokenId?: BigNumberish | null,
1532
1532
  ): TransferEventFilter {
1533
1533
  return templateContract.filters["Transfer(address,address,uint256)"](
1534
1534
  from,
1535
1535
  to,
1536
- tokenId
1536
+ tokenId,
1537
1537
  );
1538
1538
  },
1539
1539
  };
@@ -1579,14 +1579,14 @@ export class ERC721ProcessorTemplate extends BaseProcessorTemplate<
1579
1579
  preprocessHandler?: (
1580
1580
  event: ApprovalEvent,
1581
1581
  ctx: ERC721Context,
1582
- preprocessStore: { [k: string]: any }
1583
- ) => Promise<PreprocessResult>
1582
+ preprocessStore: { [k: string]: any },
1583
+ ) => Promise<PreprocessResult>,
1584
1584
  ): this {
1585
1585
  if (!filter) {
1586
1586
  filter = templateContract.filters["Approval(address,address,uint256)"](
1587
1587
  null,
1588
1588
  null,
1589
- null
1589
+ null,
1590
1590
  );
1591
1591
  }
1592
1592
  return super.onEthEvent(handler, filter!, fetchConfig, preprocessHandler);
@@ -1599,14 +1599,14 @@ export class ERC721ProcessorTemplate extends BaseProcessorTemplate<
1599
1599
  preprocessHandler?: (
1600
1600
  event: ApprovalForAllEvent,
1601
1601
  ctx: ERC721Context,
1602
- preprocessStore: { [k: string]: any }
1603
- ) => Promise<PreprocessResult>
1602
+ preprocessStore: { [k: string]: any },
1603
+ ) => Promise<PreprocessResult>,
1604
1604
  ): this {
1605
1605
  if (!filter) {
1606
1606
  filter = templateContract.filters["ApprovalForAll(address,address,bool)"](
1607
1607
  null,
1608
1608
  null,
1609
- null
1609
+ null,
1610
1610
  );
1611
1611
  }
1612
1612
  return super.onEthEvent(handler, filter!, fetchConfig, preprocessHandler);
@@ -1619,14 +1619,14 @@ export class ERC721ProcessorTemplate extends BaseProcessorTemplate<
1619
1619
  preprocessHandler?: (
1620
1620
  event: TransferEvent,
1621
1621
  ctx: ERC721Context,
1622
- preprocessStore: { [k: string]: any }
1623
- ) => Promise<PreprocessResult>
1622
+ preprocessStore: { [k: string]: any },
1623
+ ) => Promise<PreprocessResult>,
1624
1624
  ): this {
1625
1625
  if (!filter) {
1626
1626
  filter = templateContract.filters["Transfer(address,address,uint256)"](
1627
1627
  null,
1628
1628
  null,
1629
- null
1629
+ null,
1630
1630
  );
1631
1631
  }
1632
1632
  return super.onEthEvent(handler, filter!, fetchConfig, preprocessHandler);
@@ -1635,12 +1635,12 @@ export class ERC721ProcessorTemplate extends BaseProcessorTemplate<
1635
1635
 
1636
1636
  export function getERC721Contract(
1637
1637
  chainId: EthChainId,
1638
- address: string
1638
+ address: string,
1639
1639
  ): ERC721ContractView {
1640
1640
  let contract = getContractByABI(
1641
1641
  "ERC721",
1642
1642
  address,
1643
- chainId
1643
+ chainId,
1644
1644
  ) as ERC721ContractView;
1645
1645
  if (!contract) {
1646
1646
  const rawContract = ERC721__factory.connect(address, getProvider(chainId));
@@ -1652,7 +1652,7 @@ export function getERC721Contract(
1652
1652
 
1653
1653
  export function getERC721ContractOnContext(
1654
1654
  context: EthContext,
1655
- address: string
1655
+ address: string,
1656
1656
  ): ERC721BoundContractView {
1657
1657
  const view = getERC721Contract(context.getChainId(), address);
1658
1658
  const boundView = new ERC721BoundContractView(address, view);