@sentio/sdk 2.57.9-rc.2 → 2.57.9-rc.4

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 (55) hide show
  1. package/lib/aptos/builtin/0x1.d.ts +155 -155
  2. package/lib/aptos/builtin/0x1.d.ts.map +1 -1
  3. package/lib/aptos/builtin/0x1.js +395 -308
  4. package/lib/aptos/builtin/0x1.js.map +1 -1
  5. package/lib/aptos/builtin/0x3.d.ts +52 -52
  6. package/lib/aptos/builtin/0x3.d.ts.map +1 -1
  7. package/lib/aptos/builtin/0x3.js +135 -102
  8. package/lib/aptos/builtin/0x3.js.map +1 -1
  9. package/lib/aptos/builtin/0x4.d.ts +12 -12
  10. package/lib/aptos/builtin/0x4.d.ts.map +1 -1
  11. package/lib/aptos/builtin/0x4.js +22 -22
  12. package/lib/aptos/builtin/0x4.js.map +1 -1
  13. package/lib/move/shared-network-codegen.js +3 -3
  14. package/lib/move/shared-network-codegen.js.map +1 -1
  15. package/lib/store/codegen.js +1 -1
  16. package/lib/store/codegen.js.map +1 -1
  17. package/lib/store/convert.d.ts +1 -0
  18. package/lib/store/convert.d.ts.map +1 -1
  19. package/lib/store/convert.js +16 -0
  20. package/lib/store/convert.js.map +1 -1
  21. package/lib/store/decorators.d.ts +1 -0
  22. package/lib/store/decorators.d.ts.map +1 -1
  23. package/lib/store/decorators.js +2 -1
  24. package/lib/store/decorators.js.map +1 -1
  25. package/lib/store/schema.js +1 -1
  26. package/lib/store/schema.js.map +1 -1
  27. package/lib/store/types.d.ts +1 -0
  28. package/lib/store/types.d.ts.map +1 -1
  29. package/lib/store/types.js +3 -0
  30. package/lib/store/types.js.map +1 -1
  31. package/lib/sui/builtin/0x1.d.ts +7 -7
  32. package/lib/sui/builtin/0x1.d.ts.map +1 -1
  33. package/lib/sui/builtin/0x1.js +12 -12
  34. package/lib/sui/builtin/0x1.js.map +1 -1
  35. package/lib/sui/builtin/0x2.d.ts +34 -34
  36. package/lib/sui/builtin/0x2.d.ts.map +1 -1
  37. package/lib/sui/builtin/0x2.js +72 -66
  38. package/lib/sui/builtin/0x2.js.map +1 -1
  39. package/lib/sui/builtin/0x3.d.ts +14 -14
  40. package/lib/sui/builtin/0x3.d.ts.map +1 -1
  41. package/lib/sui/builtin/0x3.js +44 -26
  42. package/lib/sui/builtin/0x3.js.map +1 -1
  43. package/package.json +3 -3
  44. package/src/aptos/builtin/0x1.ts +644 -155
  45. package/src/aptos/builtin/0x3.ts +208 -52
  46. package/src/aptos/builtin/0x4.ts +59 -12
  47. package/src/move/shared-network-codegen.ts +3 -3
  48. package/src/store/codegen.ts +1 -1
  49. package/src/store/convert.ts +17 -0
  50. package/src/store/decorators.ts +2 -0
  51. package/src/store/schema.ts +1 -1
  52. package/src/store/types.ts +4 -0
  53. package/src/sui/builtin/0x1.ts +33 -7
  54. package/src/sui/builtin/0x2.ts +177 -34
  55. package/src/sui/builtin/0x3.ts +45 -14
@@ -35,7 +35,7 @@ import {
35
35
  transactionArgumentOrPureAddress,
36
36
  } from "@typemove/sui";
37
37
 
38
- import { CallFilter, MoveFetchConfig } from "@sentio/sdk/move";
38
+ import { CallFilter, MoveFetchConfig, EventFilter } from "@sentio/sdk/move";
39
39
  import {
40
40
  SuiBindOptions,
41
41
  SuiBaseProcessor,
@@ -322,10 +322,11 @@ export class authenticator_state extends SuiBaseProcessor {
322
322
  ctx: SuiContext,
323
323
  ) => void,
324
324
  fetchConfig?: Partial<MoveFetchConfig>,
325
+ eventFilter?: Omit<EventFilter, "type" | "account">,
325
326
  ): authenticator_state {
326
327
  this.onMoveEvent(
327
328
  func,
328
- { type: "authenticator_state::ActiveJwk" },
329
+ { ...(eventFilter ?? {}), type: "authenticator_state::ActiveJwk" },
329
330
  fetchConfig,
330
331
  );
331
332
  return this;
@@ -334,16 +335,26 @@ export class authenticator_state extends SuiBaseProcessor {
334
335
  onEventJWK(
335
336
  func: (event: authenticator_state.JWKInstance, ctx: SuiContext) => void,
336
337
  fetchConfig?: Partial<MoveFetchConfig>,
338
+ eventFilter?: Omit<EventFilter, "type" | "account">,
337
339
  ): authenticator_state {
338
- this.onMoveEvent(func, { type: "authenticator_state::JWK" }, fetchConfig);
340
+ this.onMoveEvent(
341
+ func,
342
+ { ...(eventFilter ?? {}), type: "authenticator_state::JWK" },
343
+ fetchConfig,
344
+ );
339
345
  return this;
340
346
  }
341
347
 
342
348
  onEventJwkId(
343
349
  func: (event: authenticator_state.JwkIdInstance, ctx: SuiContext) => void,
344
350
  fetchConfig?: Partial<MoveFetchConfig>,
351
+ eventFilter?: Omit<EventFilter, "type" | "account">,
345
352
  ): authenticator_state {
346
- this.onMoveEvent(func, { type: "authenticator_state::JwkId" }, fetchConfig);
353
+ this.onMoveEvent(
354
+ func,
355
+ { ...(eventFilter ?? {}), type: "authenticator_state::JwkId" },
356
+ fetchConfig,
357
+ );
347
358
  return this;
348
359
  }
349
360
  }
@@ -1285,8 +1296,13 @@ export class bcs extends SuiBaseProcessor {
1285
1296
  onEventBCS(
1286
1297
  func: (event: bcs.BCSInstance, ctx: SuiContext) => void,
1287
1298
  fetchConfig?: Partial<MoveFetchConfig>,
1299
+ eventFilter?: Omit<EventFilter, "type" | "account">,
1288
1300
  ): bcs {
1289
- this.onMoveEvent(func, { type: "bcs::BCS" }, fetchConfig);
1301
+ this.onMoveEvent(
1302
+ func,
1303
+ { ...(eventFilter ?? {}), type: "bcs::BCS" },
1304
+ fetchConfig,
1305
+ );
1290
1306
  return this;
1291
1307
  }
1292
1308
  }
@@ -3867,8 +3883,13 @@ export class coin extends SuiBaseProcessor {
3867
3883
  onEventCurrencyCreated(
3868
3884
  func: (event: coin.CurrencyCreatedInstance, ctx: SuiContext) => void,
3869
3885
  fetchConfig?: Partial<MoveFetchConfig>,
3886
+ eventFilter?: Omit<EventFilter, "type" | "account">,
3870
3887
  ): coin {
3871
- this.onMoveEvent(func, { type: "coin::CurrencyCreated" }, fetchConfig);
3888
+ this.onMoveEvent(
3889
+ func,
3890
+ { ...(eventFilter ?? {}), type: "coin::CurrencyCreated" },
3891
+ fetchConfig,
3892
+ );
3872
3893
  return this;
3873
3894
  }
3874
3895
  }
@@ -6405,24 +6426,39 @@ export class deny_list extends SuiBaseProcessor {
6405
6426
  onEventAddressKey(
6406
6427
  func: (event: deny_list.AddressKeyInstance, ctx: SuiContext) => void,
6407
6428
  fetchConfig?: Partial<MoveFetchConfig>,
6429
+ eventFilter?: Omit<EventFilter, "type" | "account">,
6408
6430
  ): deny_list {
6409
- this.onMoveEvent(func, { type: "deny_list::AddressKey" }, fetchConfig);
6431
+ this.onMoveEvent(
6432
+ func,
6433
+ { ...(eventFilter ?? {}), type: "deny_list::AddressKey" },
6434
+ fetchConfig,
6435
+ );
6410
6436
  return this;
6411
6437
  }
6412
6438
 
6413
6439
  onEventConfigKey(
6414
6440
  func: (event: deny_list.ConfigKeyInstance, ctx: SuiContext) => void,
6415
6441
  fetchConfig?: Partial<MoveFetchConfig>,
6442
+ eventFilter?: Omit<EventFilter, "type" | "account">,
6416
6443
  ): deny_list {
6417
- this.onMoveEvent(func, { type: "deny_list::ConfigKey" }, fetchConfig);
6444
+ this.onMoveEvent(
6445
+ func,
6446
+ { ...(eventFilter ?? {}), type: "deny_list::ConfigKey" },
6447
+ fetchConfig,
6448
+ );
6418
6449
  return this;
6419
6450
  }
6420
6451
 
6421
6452
  onEventGlobalPauseKey(
6422
6453
  func: (event: deny_list.GlobalPauseKeyInstance, ctx: SuiContext) => void,
6423
6454
  fetchConfig?: Partial<MoveFetchConfig>,
6455
+ eventFilter?: Omit<EventFilter, "type" | "account">,
6424
6456
  ): deny_list {
6425
- this.onMoveEvent(func, { type: "deny_list::GlobalPauseKey" }, fetchConfig);
6457
+ this.onMoveEvent(
6458
+ func,
6459
+ { ...(eventFilter ?? {}), type: "deny_list::GlobalPauseKey" },
6460
+ fetchConfig,
6461
+ );
6426
6462
  return this;
6427
6463
  }
6428
6464
 
@@ -6432,10 +6468,11 @@ export class deny_list extends SuiBaseProcessor {
6432
6468
  ctx: SuiContext,
6433
6469
  ) => void,
6434
6470
  fetchConfig?: Partial<MoveFetchConfig>,
6471
+ eventFilter?: Omit<EventFilter, "type" | "account">,
6435
6472
  ): deny_list {
6436
6473
  this.onMoveEvent(
6437
6474
  func,
6438
- { type: "deny_list::PerTypeConfigCreated" },
6475
+ { ...(eventFilter ?? {}), type: "deny_list::PerTypeConfigCreated" },
6439
6476
  fetchConfig,
6440
6477
  );
6441
6478
  return this;
@@ -7156,16 +7193,26 @@ export class display extends SuiBaseProcessor {
7156
7193
  onEventDisplayCreated(
7157
7194
  func: (event: display.DisplayCreatedInstance, ctx: SuiContext) => void,
7158
7195
  fetchConfig?: Partial<MoveFetchConfig>,
7196
+ eventFilter?: Omit<EventFilter, "type" | "account">,
7159
7197
  ): display {
7160
- this.onMoveEvent(func, { type: "display::DisplayCreated" }, fetchConfig);
7198
+ this.onMoveEvent(
7199
+ func,
7200
+ { ...(eventFilter ?? {}), type: "display::DisplayCreated" },
7201
+ fetchConfig,
7202
+ );
7161
7203
  return this;
7162
7204
  }
7163
7205
 
7164
7206
  onEventVersionUpdated(
7165
7207
  func: (event: display.VersionUpdatedInstance, ctx: SuiContext) => void,
7166
7208
  fetchConfig?: Partial<MoveFetchConfig>,
7209
+ eventFilter?: Omit<EventFilter, "type" | "account">,
7167
7210
  ): display {
7168
- this.onMoveEvent(func, { type: "display::VersionUpdated" }, fetchConfig);
7211
+ this.onMoveEvent(
7212
+ func,
7213
+ { ...(eventFilter ?? {}), type: "display::VersionUpdated" },
7214
+ fetchConfig,
7215
+ );
7169
7216
  return this;
7170
7217
  }
7171
7218
  }
@@ -8371,10 +8418,11 @@ export class dynamic_object_field extends SuiBaseProcessor {
8371
8418
  ctx: SuiContext,
8372
8419
  ) => void,
8373
8420
  fetchConfig?: Partial<MoveFetchConfig>,
8421
+ eventFilter?: Omit<EventFilter, "type" | "account">,
8374
8422
  ): dynamic_object_field {
8375
8423
  this.onMoveEvent(
8376
8424
  func,
8377
- { type: "dynamic_object_field::Wrapper" },
8425
+ { ...(eventFilter ?? {}), type: "dynamic_object_field::Wrapper" },
8378
8426
  fetchConfig,
8379
8427
  );
8380
8428
  return this;
@@ -9258,8 +9306,13 @@ export class groth16 extends SuiBaseProcessor {
9258
9306
  onEventCurve(
9259
9307
  func: (event: groth16.CurveInstance, ctx: SuiContext) => void,
9260
9308
  fetchConfig?: Partial<MoveFetchConfig>,
9309
+ eventFilter?: Omit<EventFilter, "type" | "account">,
9261
9310
  ): groth16 {
9262
- this.onMoveEvent(func, { type: "groth16::Curve" }, fetchConfig);
9311
+ this.onMoveEvent(
9312
+ func,
9313
+ { ...(eventFilter ?? {}), type: "groth16::Curve" },
9314
+ fetchConfig,
9315
+ );
9263
9316
  return this;
9264
9317
  }
9265
9318
 
@@ -9269,10 +9322,11 @@ export class groth16 extends SuiBaseProcessor {
9269
9322
  ctx: SuiContext,
9270
9323
  ) => void,
9271
9324
  fetchConfig?: Partial<MoveFetchConfig>,
9325
+ eventFilter?: Omit<EventFilter, "type" | "account">,
9272
9326
  ): groth16 {
9273
9327
  this.onMoveEvent(
9274
9328
  func,
9275
- { type: "groth16::PreparedVerifyingKey" },
9329
+ { ...(eventFilter ?? {}), type: "groth16::PreparedVerifyingKey" },
9276
9330
  fetchConfig,
9277
9331
  );
9278
9332
  return this;
@@ -9281,16 +9335,26 @@ export class groth16 extends SuiBaseProcessor {
9281
9335
  onEventProofPoints(
9282
9336
  func: (event: groth16.ProofPointsInstance, ctx: SuiContext) => void,
9283
9337
  fetchConfig?: Partial<MoveFetchConfig>,
9338
+ eventFilter?: Omit<EventFilter, "type" | "account">,
9284
9339
  ): groth16 {
9285
- this.onMoveEvent(func, { type: "groth16::ProofPoints" }, fetchConfig);
9340
+ this.onMoveEvent(
9341
+ func,
9342
+ { ...(eventFilter ?? {}), type: "groth16::ProofPoints" },
9343
+ fetchConfig,
9344
+ );
9286
9345
  return this;
9287
9346
  }
9288
9347
 
9289
9348
  onEventPublicProofInputs(
9290
9349
  func: (event: groth16.PublicProofInputsInstance, ctx: SuiContext) => void,
9291
9350
  fetchConfig?: Partial<MoveFetchConfig>,
9351
+ eventFilter?: Omit<EventFilter, "type" | "account">,
9292
9352
  ): groth16 {
9293
- this.onMoveEvent(func, { type: "groth16::PublicProofInputs" }, fetchConfig);
9353
+ this.onMoveEvent(
9354
+ func,
9355
+ { ...(eventFilter ?? {}), type: "groth16::PublicProofInputs" },
9356
+ fetchConfig,
9357
+ );
9294
9358
  return this;
9295
9359
  }
9296
9360
  }
@@ -9654,8 +9718,13 @@ export class group_ops extends SuiBaseProcessor {
9654
9718
  onEventElement(
9655
9719
  func: (event: group_ops.ElementInstance, ctx: SuiContext) => void,
9656
9720
  fetchConfig?: Partial<MoveFetchConfig>,
9721
+ eventFilter?: Omit<EventFilter, "type" | "account">,
9657
9722
  ): group_ops {
9658
- this.onMoveEvent(func, { type: "group_ops::Element" }, fetchConfig);
9723
+ this.onMoveEvent(
9724
+ func,
9725
+ { ...(eventFilter ?? {}), type: "group_ops::Element" },
9726
+ fetchConfig,
9727
+ );
9659
9728
  return this;
9660
9729
  }
9661
9730
  }
@@ -10434,48 +10503,78 @@ export class kiosk extends SuiBaseProcessor {
10434
10503
  onEventItem(
10435
10504
  func: (event: kiosk.ItemInstance, ctx: SuiContext) => void,
10436
10505
  fetchConfig?: Partial<MoveFetchConfig>,
10506
+ eventFilter?: Omit<EventFilter, "type" | "account">,
10437
10507
  ): kiosk {
10438
- this.onMoveEvent(func, { type: "kiosk::Item" }, fetchConfig);
10508
+ this.onMoveEvent(
10509
+ func,
10510
+ { ...(eventFilter ?? {}), type: "kiosk::Item" },
10511
+ fetchConfig,
10512
+ );
10439
10513
  return this;
10440
10514
  }
10441
10515
 
10442
10516
  onEventItemDelisted(
10443
10517
  func: (event: kiosk.ItemDelistedInstance, ctx: SuiContext) => void,
10444
10518
  fetchConfig?: Partial<MoveFetchConfig>,
10519
+ eventFilter?: Omit<EventFilter, "type" | "account">,
10445
10520
  ): kiosk {
10446
- this.onMoveEvent(func, { type: "kiosk::ItemDelisted" }, fetchConfig);
10521
+ this.onMoveEvent(
10522
+ func,
10523
+ { ...(eventFilter ?? {}), type: "kiosk::ItemDelisted" },
10524
+ fetchConfig,
10525
+ );
10447
10526
  return this;
10448
10527
  }
10449
10528
 
10450
10529
  onEventItemListed(
10451
10530
  func: (event: kiosk.ItemListedInstance, ctx: SuiContext) => void,
10452
10531
  fetchConfig?: Partial<MoveFetchConfig>,
10532
+ eventFilter?: Omit<EventFilter, "type" | "account">,
10453
10533
  ): kiosk {
10454
- this.onMoveEvent(func, { type: "kiosk::ItemListed" }, fetchConfig);
10534
+ this.onMoveEvent(
10535
+ func,
10536
+ { ...(eventFilter ?? {}), type: "kiosk::ItemListed" },
10537
+ fetchConfig,
10538
+ );
10455
10539
  return this;
10456
10540
  }
10457
10541
 
10458
10542
  onEventItemPurchased(
10459
10543
  func: (event: kiosk.ItemPurchasedInstance, ctx: SuiContext) => void,
10460
10544
  fetchConfig?: Partial<MoveFetchConfig>,
10545
+ eventFilter?: Omit<EventFilter, "type" | "account">,
10461
10546
  ): kiosk {
10462
- this.onMoveEvent(func, { type: "kiosk::ItemPurchased" }, fetchConfig);
10547
+ this.onMoveEvent(
10548
+ func,
10549
+ { ...(eventFilter ?? {}), type: "kiosk::ItemPurchased" },
10550
+ fetchConfig,
10551
+ );
10463
10552
  return this;
10464
10553
  }
10465
10554
 
10466
10555
  onEventListing(
10467
10556
  func: (event: kiosk.ListingInstance, ctx: SuiContext) => void,
10468
10557
  fetchConfig?: Partial<MoveFetchConfig>,
10558
+ eventFilter?: Omit<EventFilter, "type" | "account">,
10469
10559
  ): kiosk {
10470
- this.onMoveEvent(func, { type: "kiosk::Listing" }, fetchConfig);
10560
+ this.onMoveEvent(
10561
+ func,
10562
+ { ...(eventFilter ?? {}), type: "kiosk::Listing" },
10563
+ fetchConfig,
10564
+ );
10471
10565
  return this;
10472
10566
  }
10473
10567
 
10474
10568
  onEventLock(
10475
10569
  func: (event: kiosk.LockInstance, ctx: SuiContext) => void,
10476
10570
  fetchConfig?: Partial<MoveFetchConfig>,
10571
+ eventFilter?: Omit<EventFilter, "type" | "account">,
10477
10572
  ): kiosk {
10478
- this.onMoveEvent(func, { type: "kiosk::Lock" }, fetchConfig);
10573
+ this.onMoveEvent(
10574
+ func,
10575
+ { ...(eventFilter ?? {}), type: "kiosk::Lock" },
10576
+ fetchConfig,
10577
+ );
10479
10578
  return this;
10480
10579
  }
10481
10580
  }
@@ -12174,10 +12273,11 @@ export class kiosk_extension extends SuiBaseProcessor {
12174
12273
  ctx: SuiContext,
12175
12274
  ) => void,
12176
12275
  fetchConfig?: Partial<MoveFetchConfig>,
12276
+ eventFilter?: Omit<EventFilter, "type" | "account">,
12177
12277
  ): kiosk_extension {
12178
12278
  this.onMoveEvent(
12179
12279
  func,
12180
- { type: "kiosk_extension::ExtensionKey" },
12280
+ { ...(eventFilter ?? {}), type: "kiosk_extension::ExtensionKey" },
12181
12281
  fetchConfig,
12182
12282
  );
12183
12283
  return this;
@@ -18236,16 +18336,26 @@ export class token extends SuiBaseProcessor {
18236
18336
  onEventRuleKey(
18237
18337
  func: (event: token.RuleKeyInstance, ctx: SuiContext) => void,
18238
18338
  fetchConfig?: Partial<MoveFetchConfig>,
18339
+ eventFilter?: Omit<EventFilter, "type" | "account">,
18239
18340
  ): token {
18240
- this.onMoveEvent(func, { type: "token::RuleKey" }, fetchConfig);
18341
+ this.onMoveEvent(
18342
+ func,
18343
+ { ...(eventFilter ?? {}), type: "token::RuleKey" },
18344
+ fetchConfig,
18345
+ );
18241
18346
  return this;
18242
18347
  }
18243
18348
 
18244
18349
  onEventTokenPolicyCreated(
18245
18350
  func: (event: token.TokenPolicyCreatedInstance, ctx: SuiContext) => void,
18246
18351
  fetchConfig?: Partial<MoveFetchConfig>,
18352
+ eventFilter?: Omit<EventFilter, "type" | "account">,
18247
18353
  ): token {
18248
- this.onMoveEvent(func, { type: "token::TokenPolicyCreated" }, fetchConfig);
18354
+ this.onMoveEvent(
18355
+ func,
18356
+ { ...(eventFilter ?? {}), type: "token::TokenPolicyCreated" },
18357
+ fetchConfig,
18358
+ );
18249
18359
  return this;
18250
18360
  }
18251
18361
  }
@@ -20614,8 +20724,13 @@ export class transfer_policy extends SuiBaseProcessor {
20614
20724
  onEventRuleKey(
20615
20725
  func: (event: transfer_policy.RuleKeyInstance, ctx: SuiContext) => void,
20616
20726
  fetchConfig?: Partial<MoveFetchConfig>,
20727
+ eventFilter?: Omit<EventFilter, "type" | "account">,
20617
20728
  ): transfer_policy {
20618
- this.onMoveEvent(func, { type: "transfer_policy::RuleKey" }, fetchConfig);
20729
+ this.onMoveEvent(
20730
+ func,
20731
+ { ...(eventFilter ?? {}), type: "transfer_policy::RuleKey" },
20732
+ fetchConfig,
20733
+ );
20619
20734
  return this;
20620
20735
  }
20621
20736
 
@@ -20625,10 +20740,14 @@ export class transfer_policy extends SuiBaseProcessor {
20625
20740
  ctx: SuiContext,
20626
20741
  ) => void,
20627
20742
  fetchConfig?: Partial<MoveFetchConfig>,
20743
+ eventFilter?: Omit<EventFilter, "type" | "account">,
20628
20744
  ): transfer_policy {
20629
20745
  this.onMoveEvent(
20630
20746
  func,
20631
- { type: "transfer_policy::TransferPolicyCreated" },
20747
+ {
20748
+ ...(eventFilter ?? {}),
20749
+ type: "transfer_policy::TransferPolicyCreated",
20750
+ },
20632
20751
  fetchConfig,
20633
20752
  );
20634
20753
  return this;
@@ -20640,10 +20759,14 @@ export class transfer_policy extends SuiBaseProcessor {
20640
20759
  ctx: SuiContext,
20641
20760
  ) => void,
20642
20761
  fetchConfig?: Partial<MoveFetchConfig>,
20762
+ eventFilter?: Omit<EventFilter, "type" | "account">,
20643
20763
  ): transfer_policy {
20644
20764
  this.onMoveEvent(
20645
20765
  func,
20646
- { type: "transfer_policy::TransferPolicyDestroyed" },
20766
+ {
20767
+ ...(eventFilter ?? {}),
20768
+ type: "transfer_policy::TransferPolicyDestroyed",
20769
+ },
20647
20770
  fetchConfig,
20648
20771
  );
20649
20772
  return this;
@@ -21747,8 +21870,13 @@ export class url extends SuiBaseProcessor {
21747
21870
  onEventUrl(
21748
21871
  func: (event: url.UrlInstance, ctx: SuiContext) => void,
21749
21872
  fetchConfig?: Partial<MoveFetchConfig>,
21873
+ eventFilter?: Omit<EventFilter, "type" | "account">,
21750
21874
  ): url {
21751
- this.onMoveEvent(func, { type: "url::Url" }, fetchConfig);
21875
+ this.onMoveEvent(
21876
+ func,
21877
+ { ...(eventFilter ?? {}), type: "url::Url" },
21878
+ fetchConfig,
21879
+ );
21752
21880
  return this;
21753
21881
  }
21754
21882
  }
@@ -21988,16 +22116,26 @@ export class vec_map extends SuiBaseProcessor {
21988
22116
  onEventEntry(
21989
22117
  func: (event: vec_map.EntryInstance, ctx: SuiContext) => void,
21990
22118
  fetchConfig?: Partial<MoveFetchConfig>,
22119
+ eventFilter?: Omit<EventFilter, "type" | "account">,
21991
22120
  ): vec_map {
21992
- this.onMoveEvent(func, { type: "vec_map::Entry" }, fetchConfig);
22121
+ this.onMoveEvent(
22122
+ func,
22123
+ { ...(eventFilter ?? {}), type: "vec_map::Entry" },
22124
+ fetchConfig,
22125
+ );
21993
22126
  return this;
21994
22127
  }
21995
22128
 
21996
22129
  onEventVecMap(
21997
22130
  func: (event: vec_map.VecMapInstance, ctx: SuiContext) => void,
21998
22131
  fetchConfig?: Partial<MoveFetchConfig>,
22132
+ eventFilter?: Omit<EventFilter, "type" | "account">,
21999
22133
  ): vec_map {
22000
- this.onMoveEvent(func, { type: "vec_map::VecMap" }, fetchConfig);
22134
+ this.onMoveEvent(
22135
+ func,
22136
+ { ...(eventFilter ?? {}), type: "vec_map::VecMap" },
22137
+ fetchConfig,
22138
+ );
22001
22139
  return this;
22002
22140
  }
22003
22141
  }
@@ -22842,8 +22980,13 @@ export class vec_set extends SuiBaseProcessor {
22842
22980
  onEventVecSet(
22843
22981
  func: (event: vec_set.VecSetInstance, ctx: SuiContext) => void,
22844
22982
  fetchConfig?: Partial<MoveFetchConfig>,
22983
+ eventFilter?: Omit<EventFilter, "type" | "account">,
22845
22984
  ): vec_set {
22846
- this.onMoveEvent(func, { type: "vec_set::VecSet" }, fetchConfig);
22985
+ this.onMoveEvent(
22986
+ func,
22987
+ { ...(eventFilter ?? {}), type: "vec_set::VecSet" },
22988
+ fetchConfig,
22989
+ );
22847
22990
  return this;
22848
22991
  }
22849
22992
  }
@@ -35,7 +35,7 @@ import {
35
35
  transactionArgumentOrPureAddress,
36
36
  } from "@typemove/sui";
37
37
 
38
- import { CallFilter, MoveFetchConfig } from "@sentio/sdk/move";
38
+ import { CallFilter, MoveFetchConfig, EventFilter } from "@sentio/sdk/move";
39
39
  import {
40
40
  SuiBindOptions,
41
41
  SuiBaseProcessor,
@@ -66,10 +66,11 @@ export class genesis extends SuiBaseProcessor {
66
66
  ctx: SuiContext,
67
67
  ) => void,
68
68
  fetchConfig?: Partial<MoveFetchConfig>,
69
+ eventFilter?: Omit<EventFilter, "type" | "account">,
69
70
  ): genesis {
70
71
  this.onMoveEvent(
71
72
  func,
72
- { type: "genesis::GenesisChainParameters" },
73
+ { ...(eventFilter ?? {}), type: "genesis::GenesisChainParameters" },
73
74
  fetchConfig,
74
75
  );
75
76
  return this;
@@ -81,10 +82,11 @@ export class genesis extends SuiBaseProcessor {
81
82
  ctx: SuiContext,
82
83
  ) => void,
83
84
  fetchConfig?: Partial<MoveFetchConfig>,
85
+ eventFilter?: Omit<EventFilter, "type" | "account">,
84
86
  ): genesis {
85
87
  this.onMoveEvent(
86
88
  func,
87
- { type: "genesis::GenesisValidatorMetadata" },
89
+ { ...(eventFilter ?? {}), type: "genesis::GenesisValidatorMetadata" },
88
90
  fetchConfig,
89
91
  );
90
92
  return this;
@@ -403,10 +405,14 @@ export class staking_pool extends SuiBaseProcessor {
403
405
  ctx: SuiContext,
404
406
  ) => void,
405
407
  fetchConfig?: Partial<MoveFetchConfig>,
408
+ eventFilter?: Omit<EventFilter, "type" | "account">,
406
409
  ): staking_pool {
407
410
  this.onMoveEvent(
408
411
  func,
409
- { type: "staking_pool::FungibleStakedSuiDataKey" },
412
+ {
413
+ ...(eventFilter ?? {}),
414
+ type: "staking_pool::FungibleStakedSuiDataKey",
415
+ },
410
416
  fetchConfig,
411
417
  );
412
418
  return this;
@@ -418,10 +424,11 @@ export class staking_pool extends SuiBaseProcessor {
418
424
  ctx: SuiContext,
419
425
  ) => void,
420
426
  fetchConfig?: Partial<MoveFetchConfig>,
427
+ eventFilter?: Omit<EventFilter, "type" | "account">,
421
428
  ): staking_pool {
422
429
  this.onMoveEvent(
423
430
  func,
424
- { type: "staking_pool::PoolTokenExchangeRate" },
431
+ { ...(eventFilter ?? {}), type: "staking_pool::PoolTokenExchangeRate" },
425
432
  fetchConfig,
426
433
  );
427
434
  return this;
@@ -3940,10 +3947,14 @@ export class sui_system_state_inner extends SuiBaseProcessor {
3940
3947
  ctx: SuiContext,
3941
3948
  ) => void,
3942
3949
  fetchConfig?: Partial<MoveFetchConfig>,
3950
+ eventFilter?: Omit<EventFilter, "type" | "account">,
3943
3951
  ): sui_system_state_inner {
3944
3952
  this.onMoveEvent(
3945
3953
  func,
3946
- { type: "sui_system_state_inner::SystemEpochInfoEvent" },
3954
+ {
3955
+ ...(eventFilter ?? {}),
3956
+ type: "sui_system_state_inner::SystemEpochInfoEvent",
3957
+ },
3947
3958
  fetchConfig,
3948
3959
  );
3949
3960
  return this;
@@ -5956,10 +5967,14 @@ export class validator extends SuiBaseProcessor {
5956
5967
  ctx: SuiContext,
5957
5968
  ) => void,
5958
5969
  fetchConfig?: Partial<MoveFetchConfig>,
5970
+ eventFilter?: Omit<EventFilter, "type" | "account">,
5959
5971
  ): validator {
5960
5972
  this.onMoveEvent(
5961
5973
  func,
5962
- { type: "validator::ConvertingToFungibleStakedSuiEvent" },
5974
+ {
5975
+ ...(eventFilter ?? {}),
5976
+ type: "validator::ConvertingToFungibleStakedSuiEvent",
5977
+ },
5963
5978
  fetchConfig,
5964
5979
  );
5965
5980
  return this;
@@ -5971,10 +5986,14 @@ export class validator extends SuiBaseProcessor {
5971
5986
  ctx: SuiContext,
5972
5987
  ) => void,
5973
5988
  fetchConfig?: Partial<MoveFetchConfig>,
5989
+ eventFilter?: Omit<EventFilter, "type" | "account">,
5974
5990
  ): validator {
5975
5991
  this.onMoveEvent(
5976
5992
  func,
5977
- { type: "validator::RedeemingFungibleStakedSuiEvent" },
5993
+ {
5994
+ ...(eventFilter ?? {}),
5995
+ type: "validator::RedeemingFungibleStakedSuiEvent",
5996
+ },
5978
5997
  fetchConfig,
5979
5998
  );
5980
5999
  return this;
@@ -5986,10 +6005,11 @@ export class validator extends SuiBaseProcessor {
5986
6005
  ctx: SuiContext,
5987
6006
  ) => void,
5988
6007
  fetchConfig?: Partial<MoveFetchConfig>,
6008
+ eventFilter?: Omit<EventFilter, "type" | "account">,
5989
6009
  ): validator {
5990
6010
  this.onMoveEvent(
5991
6011
  func,
5992
- { type: "validator::StakingRequestEvent" },
6012
+ { ...(eventFilter ?? {}), type: "validator::StakingRequestEvent" },
5993
6013
  fetchConfig,
5994
6014
  );
5995
6015
  return this;
@@ -6001,10 +6021,11 @@ export class validator extends SuiBaseProcessor {
6001
6021
  ctx: SuiContext,
6002
6022
  ) => void,
6003
6023
  fetchConfig?: Partial<MoveFetchConfig>,
6024
+ eventFilter?: Omit<EventFilter, "type" | "account">,
6004
6025
  ): validator {
6005
6026
  this.onMoveEvent(
6006
6027
  func,
6007
- { type: "validator::UnstakingRequestEvent" },
6028
+ { ...(eventFilter ?? {}), type: "validator::UnstakingRequestEvent" },
6008
6029
  fetchConfig,
6009
6030
  );
6010
6031
  return this;
@@ -8756,10 +8777,14 @@ export class validator_set extends SuiBaseProcessor {
8756
8777
  ctx: SuiContext,
8757
8778
  ) => void,
8758
8779
  fetchConfig?: Partial<MoveFetchConfig>,
8780
+ eventFilter?: Omit<EventFilter, "type" | "account">,
8759
8781
  ): validator_set {
8760
8782
  this.onMoveEvent(
8761
8783
  func,
8762
- { type: "validator_set::ValidatorEpochInfoEvent" },
8784
+ {
8785
+ ...(eventFilter ?? {}),
8786
+ type: "validator_set::ValidatorEpochInfoEvent",
8787
+ },
8763
8788
  fetchConfig,
8764
8789
  );
8765
8790
  return this;
@@ -8771,10 +8796,14 @@ export class validator_set extends SuiBaseProcessor {
8771
8796
  ctx: SuiContext,
8772
8797
  ) => void,
8773
8798
  fetchConfig?: Partial<MoveFetchConfig>,
8799
+ eventFilter?: Omit<EventFilter, "type" | "account">,
8774
8800
  ): validator_set {
8775
8801
  this.onMoveEvent(
8776
8802
  func,
8777
- { type: "validator_set::ValidatorEpochInfoEventV2" },
8803
+ {
8804
+ ...(eventFilter ?? {}),
8805
+ type: "validator_set::ValidatorEpochInfoEventV2",
8806
+ },
8778
8807
  fetchConfig,
8779
8808
  );
8780
8809
  return this;
@@ -8786,10 +8815,11 @@ export class validator_set extends SuiBaseProcessor {
8786
8815
  ctx: SuiContext,
8787
8816
  ) => void,
8788
8817
  fetchConfig?: Partial<MoveFetchConfig>,
8818
+ eventFilter?: Omit<EventFilter, "type" | "account">,
8789
8819
  ): validator_set {
8790
8820
  this.onMoveEvent(
8791
8821
  func,
8792
- { type: "validator_set::ValidatorJoinEvent" },
8822
+ { ...(eventFilter ?? {}), type: "validator_set::ValidatorJoinEvent" },
8793
8823
  fetchConfig,
8794
8824
  );
8795
8825
  return this;
@@ -8801,10 +8831,11 @@ export class validator_set extends SuiBaseProcessor {
8801
8831
  ctx: SuiContext,
8802
8832
  ) => void,
8803
8833
  fetchConfig?: Partial<MoveFetchConfig>,
8834
+ eventFilter?: Omit<EventFilter, "type" | "account">,
8804
8835
  ): validator_set {
8805
8836
  this.onMoveEvent(
8806
8837
  func,
8807
- { type: "validator_set::ValidatorLeaveEvent" },
8838
+ { ...(eventFilter ?? {}), type: "validator_set::ValidatorLeaveEvent" },
8808
8839
  fetchConfig,
8809
8840
  );
8810
8841
  return this;