@sentio/sdk 2.57.9-rc.3 → 2.57.9-rc.5

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 (49) 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/eth/abi-decoder/parse-log-worker.d.ts +14 -0
  14. package/lib/eth/abi-decoder/parse-log-worker.d.ts.map +1 -0
  15. package/lib/eth/abi-decoder/parse-log-worker.js +40 -0
  16. package/lib/eth/abi-decoder/parse-log-worker.js.map +1 -0
  17. package/lib/eth/abi-decoder/parse-log.d.ts +4 -0
  18. package/lib/eth/abi-decoder/parse-log.d.ts.map +1 -0
  19. package/lib/eth/abi-decoder/parse-log.js +43 -0
  20. package/lib/eth/abi-decoder/parse-log.js.map +1 -0
  21. package/lib/eth/base-processor.d.ts.map +1 -1
  22. package/lib/eth/base-processor.js +3 -3
  23. package/lib/eth/base-processor.js.map +1 -1
  24. package/lib/move/shared-network-codegen.js +3 -3
  25. package/lib/move/shared-network-codegen.js.map +1 -1
  26. package/lib/sui/builtin/0x1.d.ts +7 -7
  27. package/lib/sui/builtin/0x1.d.ts.map +1 -1
  28. package/lib/sui/builtin/0x1.js +12 -12
  29. package/lib/sui/builtin/0x1.js.map +1 -1
  30. package/lib/sui/builtin/0x2.d.ts +34 -34
  31. package/lib/sui/builtin/0x2.d.ts.map +1 -1
  32. package/lib/sui/builtin/0x2.js +72 -66
  33. package/lib/sui/builtin/0x2.js.map +1 -1
  34. package/lib/sui/builtin/0x3.d.ts +14 -14
  35. package/lib/sui/builtin/0x3.d.ts.map +1 -1
  36. package/lib/sui/builtin/0x3.js +44 -26
  37. package/lib/sui/builtin/0x3.js.map +1 -1
  38. package/package.json +5 -3
  39. package/src/aptos/builtin/0x1.ts +644 -155
  40. package/src/aptos/builtin/0x3.ts +208 -52
  41. package/src/aptos/builtin/0x4.ts +59 -12
  42. package/src/bundle.config.ts +1 -1
  43. package/src/eth/abi-decoder/parse-log-worker.ts +52 -0
  44. package/src/eth/abi-decoder/parse-log.ts +44 -0
  45. package/src/eth/base-processor.ts +15 -16
  46. package/src/move/shared-network-codegen.ts +3 -3
  47. package/src/sui/builtin/0x1.ts +33 -7
  48. package/src/sui/builtin/0x2.ts +177 -34
  49. package/src/sui/builtin/0x3.ts +45 -14
@@ -21,12 +21,12 @@ export class genesis extends SuiBaseProcessor {
21
21
  static bind(options = {}) {
22
22
  return new genesis({ ...genesis.DEFAULT_OPTIONS, ...options });
23
23
  }
24
- onEventGenesisChainParameters(func, fetchConfig) {
25
- this.onMoveEvent(func, { type: "genesis::GenesisChainParameters" }, fetchConfig);
24
+ onEventGenesisChainParameters(func, fetchConfig, eventFilter) {
25
+ this.onMoveEvent(func, { ...(eventFilter ?? {}), type: "genesis::GenesisChainParameters" }, fetchConfig);
26
26
  return this;
27
27
  }
28
- onEventGenesisValidatorMetadata(func, fetchConfig) {
29
- this.onMoveEvent(func, { type: "genesis::GenesisValidatorMetadata" }, fetchConfig);
28
+ onEventGenesisValidatorMetadata(func, fetchConfig, eventFilter) {
29
+ this.onMoveEvent(func, { ...(eventFilter ?? {}), type: "genesis::GenesisValidatorMetadata" }, fetchConfig);
30
30
  return this;
31
31
  }
32
32
  }
@@ -194,12 +194,15 @@ export class staking_pool extends SuiBaseProcessor {
194
194
  }, fetchConfig);
195
195
  return this;
196
196
  }
197
- onEventFungibleStakedSuiDataKey(func, fetchConfig) {
198
- this.onMoveEvent(func, { type: "staking_pool::FungibleStakedSuiDataKey" }, fetchConfig);
197
+ onEventFungibleStakedSuiDataKey(func, fetchConfig, eventFilter) {
198
+ this.onMoveEvent(func, {
199
+ ...(eventFilter ?? {}),
200
+ type: "staking_pool::FungibleStakedSuiDataKey",
201
+ }, fetchConfig);
199
202
  return this;
200
203
  }
201
- onEventPoolTokenExchangeRate(func, fetchConfig) {
202
- this.onMoveEvent(func, { type: "staking_pool::PoolTokenExchangeRate" }, fetchConfig);
204
+ onEventPoolTokenExchangeRate(func, fetchConfig, eventFilter) {
205
+ this.onMoveEvent(func, { ...(eventFilter ?? {}), type: "staking_pool::PoolTokenExchangeRate" }, fetchConfig);
203
206
  return this;
204
207
  }
205
208
  }
@@ -2133,8 +2136,11 @@ export class sui_system_state_inner extends SuiBaseProcessor {
2133
2136
  ...options,
2134
2137
  });
2135
2138
  }
2136
- onEventSystemEpochInfoEvent(func, fetchConfig) {
2137
- this.onMoveEvent(func, { type: "sui_system_state_inner::SystemEpochInfoEvent" }, fetchConfig);
2139
+ onEventSystemEpochInfoEvent(func, fetchConfig, eventFilter) {
2140
+ this.onMoveEvent(func, {
2141
+ ...(eventFilter ?? {}),
2142
+ type: "sui_system_state_inner::SystemEpochInfoEvent",
2143
+ }, fetchConfig);
2138
2144
  return this;
2139
2145
  }
2140
2146
  }
@@ -3338,20 +3344,26 @@ export class validator extends SuiBaseProcessor {
3338
3344
  static bind(options = {}) {
3339
3345
  return new validator({ ...validator.DEFAULT_OPTIONS, ...options });
3340
3346
  }
3341
- onEventConvertingToFungibleStakedSuiEvent(func, fetchConfig) {
3342
- this.onMoveEvent(func, { type: "validator::ConvertingToFungibleStakedSuiEvent" }, fetchConfig);
3347
+ onEventConvertingToFungibleStakedSuiEvent(func, fetchConfig, eventFilter) {
3348
+ this.onMoveEvent(func, {
3349
+ ...(eventFilter ?? {}),
3350
+ type: "validator::ConvertingToFungibleStakedSuiEvent",
3351
+ }, fetchConfig);
3343
3352
  return this;
3344
3353
  }
3345
- onEventRedeemingFungibleStakedSuiEvent(func, fetchConfig) {
3346
- this.onMoveEvent(func, { type: "validator::RedeemingFungibleStakedSuiEvent" }, fetchConfig);
3354
+ onEventRedeemingFungibleStakedSuiEvent(func, fetchConfig, eventFilter) {
3355
+ this.onMoveEvent(func, {
3356
+ ...(eventFilter ?? {}),
3357
+ type: "validator::RedeemingFungibleStakedSuiEvent",
3358
+ }, fetchConfig);
3347
3359
  return this;
3348
3360
  }
3349
- onEventStakingRequestEvent(func, fetchConfig) {
3350
- this.onMoveEvent(func, { type: "validator::StakingRequestEvent" }, fetchConfig);
3361
+ onEventStakingRequestEvent(func, fetchConfig, eventFilter) {
3362
+ this.onMoveEvent(func, { ...(eventFilter ?? {}), type: "validator::StakingRequestEvent" }, fetchConfig);
3351
3363
  return this;
3352
3364
  }
3353
- onEventUnstakingRequestEvent(func, fetchConfig) {
3354
- this.onMoveEvent(func, { type: "validator::UnstakingRequestEvent" }, fetchConfig);
3365
+ onEventUnstakingRequestEvent(func, fetchConfig, eventFilter) {
3366
+ this.onMoveEvent(func, { ...(eventFilter ?? {}), type: "validator::UnstakingRequestEvent" }, fetchConfig);
3355
3367
  return this;
3356
3368
  }
3357
3369
  }
@@ -5121,20 +5133,26 @@ export class validator_set extends SuiBaseProcessor {
5121
5133
  static bind(options = {}) {
5122
5134
  return new validator_set({ ...validator_set.DEFAULT_OPTIONS, ...options });
5123
5135
  }
5124
- onEventValidatorEpochInfoEvent(func, fetchConfig) {
5125
- this.onMoveEvent(func, { type: "validator_set::ValidatorEpochInfoEvent" }, fetchConfig);
5136
+ onEventValidatorEpochInfoEvent(func, fetchConfig, eventFilter) {
5137
+ this.onMoveEvent(func, {
5138
+ ...(eventFilter ?? {}),
5139
+ type: "validator_set::ValidatorEpochInfoEvent",
5140
+ }, fetchConfig);
5126
5141
  return this;
5127
5142
  }
5128
- onEventValidatorEpochInfoEventV2(func, fetchConfig) {
5129
- this.onMoveEvent(func, { type: "validator_set::ValidatorEpochInfoEventV2" }, fetchConfig);
5143
+ onEventValidatorEpochInfoEventV2(func, fetchConfig, eventFilter) {
5144
+ this.onMoveEvent(func, {
5145
+ ...(eventFilter ?? {}),
5146
+ type: "validator_set::ValidatorEpochInfoEventV2",
5147
+ }, fetchConfig);
5130
5148
  return this;
5131
5149
  }
5132
- onEventValidatorJoinEvent(func, fetchConfig) {
5133
- this.onMoveEvent(func, { type: "validator_set::ValidatorJoinEvent" }, fetchConfig);
5150
+ onEventValidatorJoinEvent(func, fetchConfig, eventFilter) {
5151
+ this.onMoveEvent(func, { ...(eventFilter ?? {}), type: "validator_set::ValidatorJoinEvent" }, fetchConfig);
5134
5152
  return this;
5135
5153
  }
5136
- onEventValidatorLeaveEvent(func, fetchConfig) {
5137
- this.onMoveEvent(func, { type: "validator_set::ValidatorLeaveEvent" }, fetchConfig);
5154
+ onEventValidatorLeaveEvent(func, fetchConfig, eventFilter) {
5155
+ this.onMoveEvent(func, { ...(eventFilter ?? {}), type: "validator_set::ValidatorLeaveEvent" }, fetchConfig);
5138
5156
  return this;
5139
5157
  }
5140
5158
  }