@sentio/sdk 2.57.8 → 2.57.9-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 (94) hide show
  1. package/lib/aptos/aptos-plugin.d.ts.map +1 -1
  2. package/lib/aptos/aptos-plugin.js +4 -2
  3. package/lib/aptos/aptos-plugin.js.map +1 -1
  4. package/lib/aptos/aptos-processor.d.ts +8 -2
  5. package/lib/aptos/aptos-processor.d.ts.map +1 -1
  6. package/lib/aptos/aptos-processor.js +11 -4
  7. package/lib/aptos/aptos-processor.js.map +1 -1
  8. package/lib/aptos/builtin/0x1.d.ts +155 -155
  9. package/lib/aptos/builtin/0x1.d.ts.map +1 -1
  10. package/lib/aptos/builtin/0x1.js +395 -308
  11. package/lib/aptos/builtin/0x1.js.map +1 -1
  12. package/lib/aptos/builtin/0x3.d.ts +52 -52
  13. package/lib/aptos/builtin/0x3.d.ts.map +1 -1
  14. package/lib/aptos/builtin/0x3.js +135 -102
  15. package/lib/aptos/builtin/0x3.js.map +1 -1
  16. package/lib/aptos/builtin/0x4.d.ts +12 -12
  17. package/lib/aptos/builtin/0x4.d.ts.map +1 -1
  18. package/lib/aptos/builtin/0x4.js +22 -22
  19. package/lib/aptos/builtin/0x4.js.map +1 -1
  20. package/lib/core/normalization.d.ts.map +1 -1
  21. package/lib/core/normalization.js +57 -2
  22. package/lib/core/normalization.js.map +1 -1
  23. package/lib/core/normalization.test.js.map +1 -1
  24. package/lib/eth/abi-decoder/decode-worker.d.ts +27 -0
  25. package/lib/eth/abi-decoder/decode-worker.d.ts.map +1 -0
  26. package/lib/eth/abi-decoder/decode-worker.js +63 -0
  27. package/lib/eth/abi-decoder/decode-worker.js.map +1 -0
  28. package/lib/eth/abi-decoder/index.d.ts +4 -0
  29. package/lib/eth/abi-decoder/index.d.ts.map +1 -0
  30. package/lib/eth/abi-decoder/index.js +134 -0
  31. package/lib/eth/abi-decoder/index.js.map +1 -0
  32. package/lib/eth/base-processor.d.ts.map +1 -1
  33. package/lib/eth/base-processor.js +7 -7
  34. package/lib/eth/base-processor.js.map +1 -1
  35. package/lib/move/filter.d.ts +1 -0
  36. package/lib/move/filter.d.ts.map +1 -1
  37. package/lib/move/filter.js.map +1 -1
  38. package/lib/move/shared-network-codegen.js +3 -3
  39. package/lib/move/shared-network-codegen.js.map +1 -1
  40. package/lib/store/codegen.js +1 -1
  41. package/lib/store/codegen.js.map +1 -1
  42. package/lib/store/convert.d.ts +1 -0
  43. package/lib/store/convert.d.ts.map +1 -1
  44. package/lib/store/convert.js +16 -0
  45. package/lib/store/convert.js.map +1 -1
  46. package/lib/store/decorators.d.ts +1 -0
  47. package/lib/store/decorators.d.ts.map +1 -1
  48. package/lib/store/decorators.js +2 -1
  49. package/lib/store/decorators.js.map +1 -1
  50. package/lib/store/schema.js +1 -1
  51. package/lib/store/schema.js.map +1 -1
  52. package/lib/store/types.d.ts +1 -0
  53. package/lib/store/types.d.ts.map +1 -1
  54. package/lib/store/types.js +3 -0
  55. package/lib/store/types.js.map +1 -1
  56. package/lib/sui/builtin/0x1.d.ts +7 -7
  57. package/lib/sui/builtin/0x1.d.ts.map +1 -1
  58. package/lib/sui/builtin/0x1.js +12 -12
  59. package/lib/sui/builtin/0x1.js.map +1 -1
  60. package/lib/sui/builtin/0x2.d.ts +34 -34
  61. package/lib/sui/builtin/0x2.d.ts.map +1 -1
  62. package/lib/sui/builtin/0x2.js +72 -66
  63. package/lib/sui/builtin/0x2.js.map +1 -1
  64. package/lib/sui/builtin/0x3.d.ts +14 -14
  65. package/lib/sui/builtin/0x3.d.ts.map +1 -1
  66. package/lib/sui/builtin/0x3.js +44 -26
  67. package/lib/sui/builtin/0x3.js.map +1 -1
  68. package/lib/sui/sui-plugin.d.ts.map +1 -1
  69. package/lib/sui/sui-plugin.js +2 -1
  70. package/lib/sui/sui-plugin.js.map +1 -1
  71. package/lib/tsup.config.ts +1 -1
  72. package/package.json +5 -3
  73. package/src/aptos/aptos-plugin.ts +4 -2
  74. package/src/aptos/aptos-processor.ts +18 -4
  75. package/src/aptos/builtin/0x1.ts +644 -155
  76. package/src/aptos/builtin/0x3.ts +208 -52
  77. package/src/aptos/builtin/0x4.ts +59 -12
  78. package/src/bundle.config.ts +1 -1
  79. package/src/core/normalization.ts +58 -3
  80. package/src/eth/abi-decoder/decode-worker.ts +85 -0
  81. package/src/eth/abi-decoder/index.ts +133 -0
  82. package/src/eth/base-processor.ts +19 -20
  83. package/src/move/filter.ts +1 -0
  84. package/src/move/shared-network-codegen.ts +3 -3
  85. package/src/store/codegen.ts +1 -1
  86. package/src/store/convert.ts +17 -0
  87. package/src/store/decorators.ts +2 -0
  88. package/src/store/schema.ts +1 -1
  89. package/src/store/types.ts +4 -0
  90. package/src/sui/builtin/0x1.ts +33 -7
  91. package/src/sui/builtin/0x2.ts +177 -34
  92. package/src/sui/builtin/0x3.ts +45 -14
  93. package/src/sui/sui-plugin.ts +2 -1
  94. package/src/tsup.config.ts +1 -1
@@ -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;
@@ -96,7 +96,8 @@ export class SuiPlugin extends Plugin {
96
96
  filters: handler.filters.map((f) => {
97
97
  return {
98
98
  type: f.type,
99
- account: f.account || ''
99
+ account: f.account || '',
100
+ eventAccount: f.eventAccount || ''
100
101
  }
101
102
  }),
102
103
  fetchConfig: handler.fetchConfig,
@@ -28,5 +28,5 @@ export default defineConfig({
28
28
  // },
29
29
  publicDir: '../abis',
30
30
  splitting: false,
31
- external: [...external, /^@sentio\/(sdk|runtime|action).*$/]
31
+ external: [...external, /^@sentio\/(sdk|runtime|action).*$/, /^piscina.*$/]
32
32
  })