@sentio/sdk 2.12.3 → 2.13.0-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 (145) hide show
  1. package/lib/aptos/aptos-chain-adapter.d.ts +14 -0
  2. package/lib/aptos/aptos-chain-adapter.js +69 -0
  3. package/lib/aptos/aptos-chain-adapter.js.map +1 -0
  4. package/lib/aptos/aptos-plugin.js +2 -0
  5. package/lib/aptos/aptos-plugin.js.map +1 -1
  6. package/lib/aptos/aptos-processor.d.ts +7 -7
  7. package/lib/aptos/aptos-processor.js +27 -26
  8. package/lib/aptos/aptos-processor.js.map +1 -1
  9. package/lib/aptos/builtin/0x1.d.ts +1244 -599
  10. package/lib/aptos/builtin/0x1.js +1939 -1458
  11. package/lib/aptos/builtin/0x1.js.map +1 -1
  12. package/lib/aptos/builtin/0x3.d.ts +241 -118
  13. package/lib/aptos/builtin/0x3.js +373 -333
  14. package/lib/aptos/builtin/0x3.js.map +1 -1
  15. package/lib/aptos/codegen/codegen.d.ts +1 -1
  16. package/lib/aptos/codegen/codegen.js +6 -47
  17. package/lib/aptos/codegen/codegen.js.map +1 -1
  18. package/lib/aptos/codegen/run.js +1 -1
  19. package/lib/aptos/codegen/run.js.map +1 -1
  20. package/lib/aptos/context.d.ts +5 -1
  21. package/lib/aptos/context.js +9 -2
  22. package/lib/aptos/context.js.map +1 -1
  23. package/lib/aptos/ext/aptos-dex.d.ts +2 -1
  24. package/lib/aptos/ext/aptos-dex.js +1 -2
  25. package/lib/aptos/ext/aptos-dex.js.map +1 -1
  26. package/lib/aptos/index.d.ts +1 -0
  27. package/lib/aptos/index.js +1 -0
  28. package/lib/aptos/index.js.map +1 -1
  29. package/lib/aptos/models.d.ts +3 -11
  30. package/lib/aptos/models.js.map +1 -1
  31. package/lib/aptos/module-client.js +1 -1
  32. package/lib/aptos/module-client.js.map +1 -1
  33. package/lib/aptos/move-coder.d.ts +10 -10
  34. package/lib/aptos/move-coder.js +37 -18
  35. package/lib/aptos/move-coder.js.map +1 -1
  36. package/lib/eth/base-processor-template.d.ts +4 -3
  37. package/lib/eth/base-processor-template.js +7 -7
  38. package/lib/eth/base-processor-template.js.map +1 -1
  39. package/lib/eth/base-processor.d.ts +9 -8
  40. package/lib/eth/base-processor.js +13 -11
  41. package/lib/eth/base-processor.js.map +1 -1
  42. package/lib/eth/eth-plugin.js +2 -0
  43. package/lib/eth/eth-plugin.js.map +1 -1
  44. package/lib/eth/eth.d.ts +7 -2
  45. package/lib/eth/eth.js +8 -1
  46. package/lib/eth/eth.js.map +1 -1
  47. package/lib/move/abstract-codegen.d.ts +11 -11
  48. package/lib/move/abstract-codegen.js +60 -23
  49. package/lib/move/abstract-codegen.js.map +1 -1
  50. package/lib/move/abstract-move-coder.d.ts +19 -25
  51. package/lib/move/abstract-move-coder.js +74 -51
  52. package/lib/move/abstract-move-coder.js.map +1 -1
  53. package/lib/move/chain-adapter.d.ts +11 -0
  54. package/lib/move/chain-adapter.js +3 -0
  55. package/lib/move/chain-adapter.js.map +1 -0
  56. package/lib/move/index.d.ts +1 -0
  57. package/lib/move/index.js +1 -0
  58. package/lib/move/index.js.map +1 -1
  59. package/lib/move/types.d.ts +28 -1
  60. package/lib/move/types.js +65 -16
  61. package/lib/move/types.js.map +1 -1
  62. package/lib/sui/builtin/0x1.d.ts +37 -18
  63. package/lib/sui/builtin/0x1.js +58 -32
  64. package/lib/sui/builtin/0x1.js.map +1 -1
  65. package/lib/sui/builtin/0x2.d.ts +299 -149
  66. package/lib/sui/builtin/0x2.js +463 -322
  67. package/lib/sui/builtin/0x2.js.map +1 -1
  68. package/lib/sui/builtin/0x3.d.ts +169 -94
  69. package/lib/sui/builtin/0x3.js +229 -272
  70. package/lib/sui/builtin/0x3.js.map +1 -1
  71. package/lib/sui/codegen/codegen.d.ts +1 -1
  72. package/lib/sui/codegen/codegen.js +10 -36
  73. package/lib/sui/codegen/codegen.js.map +1 -1
  74. package/lib/sui/codegen/run.js +1 -1
  75. package/lib/sui/codegen/run.js.map +1 -1
  76. package/lib/sui/context.d.ts +5 -1
  77. package/lib/sui/context.js +8 -1
  78. package/lib/sui/context.js.map +1 -1
  79. package/lib/sui/index.d.ts +1 -0
  80. package/lib/sui/index.js +1 -0
  81. package/lib/sui/index.js.map +1 -1
  82. package/lib/sui/models.d.ts +3 -11
  83. package/lib/sui/models.js.map +1 -1
  84. package/lib/sui/move-coder.d.ts +15 -15
  85. package/lib/sui/move-coder.js +43 -39
  86. package/lib/sui/move-coder.js.map +1 -1
  87. package/lib/sui/sui-chain-adapter.d.ts +14 -0
  88. package/lib/sui/sui-chain-adapter.js +69 -0
  89. package/lib/sui/sui-chain-adapter.js.map +1 -0
  90. package/lib/sui/sui-plugin.js +1 -0
  91. package/lib/sui/sui-plugin.js.map +1 -1
  92. package/lib/sui/sui-processor.d.ts +8 -5
  93. package/lib/sui/sui-processor.js +23 -14
  94. package/lib/sui/sui-processor.js.map +1 -1
  95. package/lib/sui/utils.d.ts +0 -2
  96. package/lib/sui/utils.js +0 -6
  97. package/lib/sui/utils.js.map +1 -1
  98. package/lib/testing/aptos-facet.d.ts +2 -2
  99. package/lib/testing/aptos-facet.js +14 -21
  100. package/lib/testing/aptos-facet.js.map +1 -1
  101. package/lib/testing/sui-facet.d.ts +2 -2
  102. package/lib/testing/sui-facet.js +16 -26
  103. package/lib/testing/sui-facet.js.map +1 -1
  104. package/package.json +4 -4
  105. package/src/aptos/aptos-chain-adapter.ts +81 -0
  106. package/src/aptos/aptos-plugin.ts +2 -0
  107. package/src/aptos/aptos-processor.ts +58 -43
  108. package/src/aptos/builtin/0x1.ts +2858 -616
  109. package/src/aptos/builtin/0x3.ts +543 -120
  110. package/src/aptos/codegen/codegen.ts +13 -57
  111. package/src/aptos/codegen/run.ts +1 -1
  112. package/src/aptos/context.ts +10 -2
  113. package/src/aptos/ext/aptos-dex.ts +4 -12
  114. package/src/aptos/index.ts +2 -0
  115. package/src/aptos/models.ts +3 -13
  116. package/src/aptos/module-client.ts +1 -1
  117. package/src/aptos/move-coder.ts +48 -25
  118. package/src/eth/base-processor-template.ts +20 -10
  119. package/src/eth/base-processor.ts +45 -25
  120. package/src/eth/eth-plugin.ts +2 -0
  121. package/src/eth/eth.ts +15 -2
  122. package/src/move/abstract-codegen.ts +75 -38
  123. package/src/move/abstract-move-coder.ts +87 -75
  124. package/src/move/chain-adapter.ts +17 -0
  125. package/src/move/index.ts +1 -0
  126. package/src/move/types.ts +83 -17
  127. package/src/sui/builtin/0x1.ts +75 -20
  128. package/src/sui/builtin/0x2.ts +694 -150
  129. package/src/sui/builtin/0x3.ts +360 -95
  130. package/src/sui/codegen/codegen.ts +17 -43
  131. package/src/sui/codegen/run.ts +1 -1
  132. package/src/sui/context.ts +9 -1
  133. package/src/sui/index.ts +1 -0
  134. package/src/sui/models.ts +3 -13
  135. package/src/sui/move-coder.ts +58 -53
  136. package/src/sui/sui-chain-adapter.ts +86 -0
  137. package/src/sui/sui-plugin.ts +1 -0
  138. package/src/sui/sui-processor.ts +41 -28
  139. package/src/sui/utils.ts +0 -8
  140. package/src/testing/aptos-facet.ts +13 -27
  141. package/src/testing/sui-facet.ts +15 -30
  142. package/lib/aptos/utils.d.ts +0 -2
  143. package/lib/aptos/utils.js +0 -10
  144. package/lib/aptos/utils.js.map +0 -1
  145. package/src/aptos/utils.ts +0 -11
@@ -4,7 +4,7 @@
4
4
 
5
5
  /* Generated modules for account 0x3 */
6
6
 
7
- import { CallFilter } from "@sentio/sdk/move";
7
+ import { CallFilter, TypeDescriptor, ANY_TYPE } from "@sentio/sdk/move";
8
8
  import {
9
9
  MoveCoder,
10
10
  defaultMoveCoder,
@@ -39,7 +39,7 @@ export class genesis extends SuiBaseProcessor {
39
39
  event: genesis.GenesisChainParametersInstance,
40
40
  ctx: SuiContext
41
41
  ) => void,
42
- fetchConfig?: MoveFetchConfig
42
+ fetchConfig?: Partial<MoveFetchConfig>
43
43
  ): genesis {
44
44
  this.onMoveEvent(
45
45
  func,
@@ -56,7 +56,7 @@ export class genesis extends SuiBaseProcessor {
56
56
  event: genesis.GenesisValidatorMetadataInstance,
57
57
  ctx: SuiContext
58
58
  ) => void,
59
- fetchConfig?: MoveFetchConfig
59
+ fetchConfig?: Partial<MoveFetchConfig>
60
60
  ): genesis {
61
61
  this.onMoveEvent(
62
62
  func,
@@ -70,8 +70,7 @@ export class genesis extends SuiBaseProcessor {
70
70
  }
71
71
 
72
72
  export namespace genesis {
73
- export class GenesisChainParameters {
74
- static TYPE_QNAME = "0x3::genesis::GenesisChainParameters";
73
+ export interface GenesisChainParameters {
75
74
  protocol_version: bigint;
76
75
  chain_start_timestamp_ms: bigint;
77
76
  epoch_duration_ms: bigint;
@@ -86,14 +85,25 @@ export namespace genesis {
86
85
  validator_low_stake_grace_period: bigint;
87
86
  }
88
87
 
88
+ export namespace GenesisChainParameters {
89
+ export const TYPE_QNAME = "0x3::genesis::GenesisChainParameters";
90
+
91
+ const TYPE = new TypeDescriptor<GenesisChainParameters>(
92
+ GenesisChainParameters.TYPE_QNAME
93
+ );
94
+
95
+ export function type(): TypeDescriptor<GenesisChainParameters> {
96
+ return TYPE.apply();
97
+ }
98
+ }
99
+
89
100
  export interface GenesisChainParametersInstance
90
101
  extends TypedEventInstance<GenesisChainParameters> {
91
102
  data_decoded: GenesisChainParameters;
92
103
  type_arguments: [];
93
104
  }
94
105
 
95
- export class GenesisValidatorMetadata {
96
- static TYPE_QNAME = "0x3::genesis::GenesisValidatorMetadata";
106
+ export interface GenesisValidatorMetadata {
97
107
  name: number[];
98
108
  description: number[];
99
109
  image_url: number[];
@@ -111,29 +121,62 @@ export namespace genesis {
111
121
  worker_address: number[];
112
122
  }
113
123
 
124
+ export namespace GenesisValidatorMetadata {
125
+ export const TYPE_QNAME = "0x3::genesis::GenesisValidatorMetadata";
126
+
127
+ const TYPE = new TypeDescriptor<GenesisValidatorMetadata>(
128
+ GenesisValidatorMetadata.TYPE_QNAME
129
+ );
130
+
131
+ export function type(): TypeDescriptor<GenesisValidatorMetadata> {
132
+ return TYPE.apply();
133
+ }
134
+ }
135
+
114
136
  export interface GenesisValidatorMetadataInstance
115
137
  extends TypedEventInstance<GenesisValidatorMetadata> {
116
138
  data_decoded: GenesisValidatorMetadata;
117
139
  type_arguments: [];
118
140
  }
119
141
 
120
- export class TokenAllocation {
121
- static TYPE_QNAME = "0x3::genesis::TokenAllocation";
142
+ export interface TokenAllocation {
122
143
  recipient_address: SuiAddress;
123
144
  amount_mist: bigint;
124
145
  staked_with_validator: _0x1.option.Option<SuiAddress>;
125
146
  }
126
147
 
127
- export class TokenDistributionSchedule {
128
- static TYPE_QNAME = "0x3::genesis::TokenDistributionSchedule";
148
+ export namespace TokenAllocation {
149
+ export const TYPE_QNAME = "0x3::genesis::TokenAllocation";
150
+
151
+ const TYPE = new TypeDescriptor<TokenAllocation>(
152
+ TokenAllocation.TYPE_QNAME
153
+ );
154
+
155
+ export function type(): TypeDescriptor<TokenAllocation> {
156
+ return TYPE.apply();
157
+ }
158
+ }
159
+
160
+ export interface TokenDistributionSchedule {
129
161
  stake_subsidy_fund_mist: bigint;
130
162
  allocations: genesis.TokenAllocation[];
131
163
  }
164
+
165
+ export namespace TokenDistributionSchedule {
166
+ export const TYPE_QNAME = "0x3::genesis::TokenDistributionSchedule";
167
+
168
+ const TYPE = new TypeDescriptor<TokenDistributionSchedule>(
169
+ TokenDistributionSchedule.TYPE_QNAME
170
+ );
171
+
172
+ export function type(): TypeDescriptor<TokenDistributionSchedule> {
173
+ return TYPE.apply();
174
+ }
175
+ }
132
176
  }
133
177
 
134
178
  export namespace stake_subsidy {
135
- export class StakeSubsidy {
136
- static TYPE_QNAME = "0x3::stake_subsidy::StakeSubsidy";
179
+ export interface StakeSubsidy {
137
180
  balance: _0x2.balance.Balance<_0x2.sui.SUI>;
138
181
  distribution_counter: bigint;
139
182
  current_distribution_amount: bigint;
@@ -141,6 +184,16 @@ export namespace stake_subsidy {
141
184
  stake_subsidy_decrease_rate: number;
142
185
  extra_fields: _0x2.bag.Bag;
143
186
  }
187
+
188
+ export namespace StakeSubsidy {
189
+ export const TYPE_QNAME = "0x3::stake_subsidy::StakeSubsidy";
190
+
191
+ const TYPE = new TypeDescriptor<StakeSubsidy>(StakeSubsidy.TYPE_QNAME);
192
+
193
+ export function type(): TypeDescriptor<StakeSubsidy> {
194
+ return TYPE.apply();
195
+ }
196
+ }
144
197
  }
145
198
 
146
199
  export class staking_pool extends SuiBaseProcessor {
@@ -159,7 +212,7 @@ export class staking_pool extends SuiBaseProcessor {
159
212
  onEntryJoinStakedSui(
160
213
  func: (call: staking_pool.JoinStakedSuiPayload, ctx: SuiContext) => void,
161
214
  filter?: CallFilter,
162
- fetchConfig?: MoveFetchConfig
215
+ fetchConfig?: Partial<MoveFetchConfig>
163
216
  ): staking_pool {
164
217
  this.onEntryFunctionCall(
165
218
  func,
@@ -175,7 +228,7 @@ export class staking_pool extends SuiBaseProcessor {
175
228
  onEntrySplitStakedSui(
176
229
  func: (call: staking_pool.SplitStakedSuiPayload, ctx: SuiContext) => void,
177
230
  filter?: CallFilter,
178
- fetchConfig?: MoveFetchConfig
231
+ fetchConfig?: Partial<MoveFetchConfig>
179
232
  ): staking_pool {
180
233
  this.onEntryFunctionCall(
181
234
  func,
@@ -193,7 +246,7 @@ export class staking_pool extends SuiBaseProcessor {
193
246
  event: staking_pool.PoolTokenExchangeRateInstance,
194
247
  ctx: SuiContext
195
248
  ) => void,
196
- fetchConfig?: MoveFetchConfig
249
+ fetchConfig?: Partial<MoveFetchConfig>
197
250
  ): staking_pool {
198
251
  this.onMoveEvent(
199
252
  func,
@@ -207,28 +260,47 @@ export class staking_pool extends SuiBaseProcessor {
207
260
  }
208
261
 
209
262
  export namespace staking_pool {
210
- export class PoolTokenExchangeRate {
211
- static TYPE_QNAME = "0x3::staking_pool::PoolTokenExchangeRate";
263
+ export interface PoolTokenExchangeRate {
212
264
  sui_amount: bigint;
213
265
  pool_token_amount: bigint;
214
266
  }
215
267
 
268
+ export namespace PoolTokenExchangeRate {
269
+ export const TYPE_QNAME = "0x3::staking_pool::PoolTokenExchangeRate";
270
+
271
+ const TYPE = new TypeDescriptor<PoolTokenExchangeRate>(
272
+ PoolTokenExchangeRate.TYPE_QNAME
273
+ );
274
+
275
+ export function type(): TypeDescriptor<PoolTokenExchangeRate> {
276
+ return TYPE.apply();
277
+ }
278
+ }
279
+
216
280
  export interface PoolTokenExchangeRateInstance
217
281
  extends TypedEventInstance<PoolTokenExchangeRate> {
218
282
  data_decoded: PoolTokenExchangeRate;
219
283
  type_arguments: [];
220
284
  }
221
285
 
222
- export class StakedSui {
223
- static TYPE_QNAME = "0x3::staking_pool::StakedSui";
286
+ export interface StakedSui {
224
287
  id: _0x2.object_.UID;
225
288
  pool_id: _0x2.object_.ID;
226
289
  stake_activation_epoch: bigint;
227
290
  principal: _0x2.balance.Balance<_0x2.sui.SUI>;
228
291
  }
229
292
 
230
- export class StakingPool {
231
- static TYPE_QNAME = "0x3::staking_pool::StakingPool";
293
+ export namespace StakedSui {
294
+ export const TYPE_QNAME = "0x3::staking_pool::StakedSui";
295
+
296
+ const TYPE = new TypeDescriptor<StakedSui>(StakedSui.TYPE_QNAME);
297
+
298
+ export function type(): TypeDescriptor<StakedSui> {
299
+ return TYPE.apply();
300
+ }
301
+ }
302
+
303
+ export interface StakingPool {
232
304
  id: _0x2.object_.UID;
233
305
  activation_epoch: _0x1.option.Option<bigint>;
234
306
  deactivation_epoch: _0x1.option.Option<bigint>;
@@ -245,6 +317,16 @@ export namespace staking_pool {
245
317
  extra_fields: _0x2.bag.Bag;
246
318
  }
247
319
 
320
+ export namespace StakingPool {
321
+ export const TYPE_QNAME = "0x3::staking_pool::StakingPool";
322
+
323
+ const TYPE = new TypeDescriptor<StakingPool>(StakingPool.TYPE_QNAME);
324
+
325
+ export function type(): TypeDescriptor<StakingPool> {
326
+ return TYPE.apply();
327
+ }
328
+ }
329
+
248
330
  export interface JoinStakedSuiPayload
249
331
  extends TypedFunctionPayload<[SuiAddress | undefined]> {
250
332
  arguments_decoded: [SuiAddress | undefined];
@@ -259,11 +341,20 @@ export namespace staking_pool {
259
341
  }
260
342
 
261
343
  export namespace storage_fund {
262
- export class StorageFund {
263
- static TYPE_QNAME = "0x3::storage_fund::StorageFund";
344
+ export interface StorageFund {
264
345
  total_object_storage_rebates: _0x2.balance.Balance<_0x2.sui.SUI>;
265
346
  non_refundable_balance: _0x2.balance.Balance<_0x2.sui.SUI>;
266
347
  }
348
+
349
+ export namespace StorageFund {
350
+ export const TYPE_QNAME = "0x3::storage_fund::StorageFund";
351
+
352
+ const TYPE = new TypeDescriptor<StorageFund>(StorageFund.TYPE_QNAME);
353
+
354
+ export function type(): TypeDescriptor<StorageFund> {
355
+ return TYPE.apply();
356
+ }
357
+ }
267
358
  }
268
359
 
269
360
  export class sui_system extends SuiBaseProcessor {
@@ -282,7 +373,7 @@ export class sui_system extends SuiBaseProcessor {
282
373
  onEntryReportValidator(
283
374
  func: (call: sui_system.ReportValidatorPayload, ctx: SuiContext) => void,
284
375
  filter?: CallFilter,
285
- fetchConfig?: MoveFetchConfig
376
+ fetchConfig?: Partial<MoveFetchConfig>
286
377
  ): sui_system {
287
378
  this.onEntryFunctionCall(
288
379
  func,
@@ -298,7 +389,7 @@ export class sui_system extends SuiBaseProcessor {
298
389
  onEntryRequestAddStake(
299
390
  func: (call: sui_system.RequestAddStakePayload, ctx: SuiContext) => void,
300
391
  filter?: CallFilter,
301
- fetchConfig?: MoveFetchConfig
392
+ fetchConfig?: Partial<MoveFetchConfig>
302
393
  ): sui_system {
303
394
  this.onEntryFunctionCall(
304
395
  func,
@@ -317,7 +408,7 @@ export class sui_system extends SuiBaseProcessor {
317
408
  ctx: SuiContext
318
409
  ) => void,
319
410
  filter?: CallFilter,
320
- fetchConfig?: MoveFetchConfig
411
+ fetchConfig?: Partial<MoveFetchConfig>
321
412
  ): sui_system {
322
413
  this.onEntryFunctionCall(
323
414
  func,
@@ -336,7 +427,7 @@ export class sui_system extends SuiBaseProcessor {
336
427
  ctx: SuiContext
337
428
  ) => void,
338
429
  filter?: CallFilter,
339
- fetchConfig?: MoveFetchConfig
430
+ fetchConfig?: Partial<MoveFetchConfig>
340
431
  ): sui_system {
341
432
  this.onEntryFunctionCall(
342
433
  func,
@@ -355,7 +446,7 @@ export class sui_system extends SuiBaseProcessor {
355
446
  ctx: SuiContext
356
447
  ) => void,
357
448
  filter?: CallFilter,
358
- fetchConfig?: MoveFetchConfig
449
+ fetchConfig?: Partial<MoveFetchConfig>
359
450
  ): sui_system {
360
451
  this.onEntryFunctionCall(
361
452
  func,
@@ -374,7 +465,7 @@ export class sui_system extends SuiBaseProcessor {
374
465
  ctx: SuiContext
375
466
  ) => void,
376
467
  filter?: CallFilter,
377
- fetchConfig?: MoveFetchConfig
468
+ fetchConfig?: Partial<MoveFetchConfig>
378
469
  ): sui_system {
379
470
  this.onEntryFunctionCall(
380
471
  func,
@@ -393,7 +484,7 @@ export class sui_system extends SuiBaseProcessor {
393
484
  ctx: SuiContext
394
485
  ) => void,
395
486
  filter?: CallFilter,
396
- fetchConfig?: MoveFetchConfig
487
+ fetchConfig?: Partial<MoveFetchConfig>
397
488
  ): sui_system {
398
489
  this.onEntryFunctionCall(
399
490
  func,
@@ -412,7 +503,7 @@ export class sui_system extends SuiBaseProcessor {
412
503
  ctx: SuiContext
413
504
  ) => void,
414
505
  filter?: CallFilter,
415
- fetchConfig?: MoveFetchConfig
506
+ fetchConfig?: Partial<MoveFetchConfig>
416
507
  ): sui_system {
417
508
  this.onEntryFunctionCall(
418
509
  func,
@@ -428,7 +519,7 @@ export class sui_system extends SuiBaseProcessor {
428
519
  onEntryRequestSetGasPrice(
429
520
  func: (call: sui_system.RequestSetGasPricePayload, ctx: SuiContext) => void,
430
521
  filter?: CallFilter,
431
- fetchConfig?: MoveFetchConfig
522
+ fetchConfig?: Partial<MoveFetchConfig>
432
523
  ): sui_system {
433
524
  this.onEntryFunctionCall(
434
525
  func,
@@ -447,7 +538,7 @@ export class sui_system extends SuiBaseProcessor {
447
538
  ctx: SuiContext
448
539
  ) => void,
449
540
  filter?: CallFilter,
450
- fetchConfig?: MoveFetchConfig
541
+ fetchConfig?: Partial<MoveFetchConfig>
451
542
  ): sui_system {
452
543
  this.onEntryFunctionCall(
453
544
  func,
@@ -463,7 +554,7 @@ export class sui_system extends SuiBaseProcessor {
463
554
  onEntryRotateOperationCap(
464
555
  func: (call: sui_system.RotateOperationCapPayload, ctx: SuiContext) => void,
465
556
  filter?: CallFilter,
466
- fetchConfig?: MoveFetchConfig
557
+ fetchConfig?: Partial<MoveFetchConfig>
467
558
  ): sui_system {
468
559
  this.onEntryFunctionCall(
469
560
  func,
@@ -482,7 +573,7 @@ export class sui_system extends SuiBaseProcessor {
482
573
  ctx: SuiContext
483
574
  ) => void,
484
575
  filter?: CallFilter,
485
- fetchConfig?: MoveFetchConfig
576
+ fetchConfig?: Partial<MoveFetchConfig>
486
577
  ): sui_system {
487
578
  this.onEntryFunctionCall(
488
579
  func,
@@ -501,7 +592,7 @@ export class sui_system extends SuiBaseProcessor {
501
592
  ctx: SuiContext
502
593
  ) => void,
503
594
  filter?: CallFilter,
504
- fetchConfig?: MoveFetchConfig
595
+ fetchConfig?: Partial<MoveFetchConfig>
505
596
  ): sui_system {
506
597
  this.onEntryFunctionCall(
507
598
  func,
@@ -520,7 +611,7 @@ export class sui_system extends SuiBaseProcessor {
520
611
  ctx: SuiContext
521
612
  ) => void,
522
613
  filter?: CallFilter,
523
- fetchConfig?: MoveFetchConfig
614
+ fetchConfig?: Partial<MoveFetchConfig>
524
615
  ): sui_system {
525
616
  this.onEntryFunctionCall(
526
617
  func,
@@ -539,7 +630,7 @@ export class sui_system extends SuiBaseProcessor {
539
630
  ctx: SuiContext
540
631
  ) => void,
541
632
  filter?: CallFilter,
542
- fetchConfig?: MoveFetchConfig
633
+ fetchConfig?: Partial<MoveFetchConfig>
543
634
  ): sui_system {
544
635
  this.onEntryFunctionCall(
545
636
  func,
@@ -558,7 +649,7 @@ export class sui_system extends SuiBaseProcessor {
558
649
  ctx: SuiContext
559
650
  ) => void,
560
651
  filter?: CallFilter,
561
- fetchConfig?: MoveFetchConfig
652
+ fetchConfig?: Partial<MoveFetchConfig>
562
653
  ): sui_system {
563
654
  this.onEntryFunctionCall(
564
655
  func,
@@ -577,7 +668,7 @@ export class sui_system extends SuiBaseProcessor {
577
668
  ctx: SuiContext
578
669
  ) => void,
579
670
  filter?: CallFilter,
580
- fetchConfig?: MoveFetchConfig
671
+ fetchConfig?: Partial<MoveFetchConfig>
581
672
  ): sui_system {
582
673
  this.onEntryFunctionCall(
583
674
  func,
@@ -596,7 +687,7 @@ export class sui_system extends SuiBaseProcessor {
596
687
  ctx: SuiContext
597
688
  ) => void,
598
689
  filter?: CallFilter,
599
- fetchConfig?: MoveFetchConfig
690
+ fetchConfig?: Partial<MoveFetchConfig>
600
691
  ): sui_system {
601
692
  this.onEntryFunctionCall(
602
693
  func,
@@ -615,7 +706,7 @@ export class sui_system extends SuiBaseProcessor {
615
706
  ctx: SuiContext
616
707
  ) => void,
617
708
  filter?: CallFilter,
618
- fetchConfig?: MoveFetchConfig
709
+ fetchConfig?: Partial<MoveFetchConfig>
619
710
  ): sui_system {
620
711
  this.onEntryFunctionCall(
621
712
  func,
@@ -634,7 +725,7 @@ export class sui_system extends SuiBaseProcessor {
634
725
  ctx: SuiContext
635
726
  ) => void,
636
727
  filter?: CallFilter,
637
- fetchConfig?: MoveFetchConfig
728
+ fetchConfig?: Partial<MoveFetchConfig>
638
729
  ): sui_system {
639
730
  this.onEntryFunctionCall(
640
731
  func,
@@ -653,7 +744,7 @@ export class sui_system extends SuiBaseProcessor {
653
744
  ctx: SuiContext
654
745
  ) => void,
655
746
  filter?: CallFilter,
656
- fetchConfig?: MoveFetchConfig
747
+ fetchConfig?: Partial<MoveFetchConfig>
657
748
  ): sui_system {
658
749
  this.onEntryFunctionCall(
659
750
  func,
@@ -672,7 +763,7 @@ export class sui_system extends SuiBaseProcessor {
672
763
  ctx: SuiContext
673
764
  ) => void,
674
765
  filter?: CallFilter,
675
- fetchConfig?: MoveFetchConfig
766
+ fetchConfig?: Partial<MoveFetchConfig>
676
767
  ): sui_system {
677
768
  this.onEntryFunctionCall(
678
769
  func,
@@ -691,7 +782,7 @@ export class sui_system extends SuiBaseProcessor {
691
782
  ctx: SuiContext
692
783
  ) => void,
693
784
  filter?: CallFilter,
694
- fetchConfig?: MoveFetchConfig
785
+ fetchConfig?: Partial<MoveFetchConfig>
695
786
  ): sui_system {
696
787
  this.onEntryFunctionCall(
697
788
  func,
@@ -710,7 +801,7 @@ export class sui_system extends SuiBaseProcessor {
710
801
  ctx: SuiContext
711
802
  ) => void,
712
803
  filter?: CallFilter,
713
- fetchConfig?: MoveFetchConfig
804
+ fetchConfig?: Partial<MoveFetchConfig>
714
805
  ): sui_system {
715
806
  this.onEntryFunctionCall(
716
807
  func,
@@ -729,7 +820,7 @@ export class sui_system extends SuiBaseProcessor {
729
820
  ctx: SuiContext
730
821
  ) => void,
731
822
  filter?: CallFilter,
732
- fetchConfig?: MoveFetchConfig
823
+ fetchConfig?: Partial<MoveFetchConfig>
733
824
  ): sui_system {
734
825
  this.onEntryFunctionCall(
735
826
  func,
@@ -748,7 +839,7 @@ export class sui_system extends SuiBaseProcessor {
748
839
  ctx: SuiContext
749
840
  ) => void,
750
841
  filter?: CallFilter,
751
- fetchConfig?: MoveFetchConfig
842
+ fetchConfig?: Partial<MoveFetchConfig>
752
843
  ): sui_system {
753
844
  this.onEntryFunctionCall(
754
845
  func,
@@ -767,7 +858,7 @@ export class sui_system extends SuiBaseProcessor {
767
858
  ctx: SuiContext
768
859
  ) => void,
769
860
  filter?: CallFilter,
770
- fetchConfig?: MoveFetchConfig
861
+ fetchConfig?: Partial<MoveFetchConfig>
771
862
  ): sui_system {
772
863
  this.onEntryFunctionCall(
773
864
  func,
@@ -786,7 +877,7 @@ export class sui_system extends SuiBaseProcessor {
786
877
  ctx: SuiContext
787
878
  ) => void,
788
879
  filter?: CallFilter,
789
- fetchConfig?: MoveFetchConfig
880
+ fetchConfig?: Partial<MoveFetchConfig>
790
881
  ): sui_system {
791
882
  this.onEntryFunctionCall(
792
883
  func,
@@ -805,7 +896,7 @@ export class sui_system extends SuiBaseProcessor {
805
896
  ctx: SuiContext
806
897
  ) => void,
807
898
  filter?: CallFilter,
808
- fetchConfig?: MoveFetchConfig
899
+ fetchConfig?: Partial<MoveFetchConfig>
809
900
  ): sui_system {
810
901
  this.onEntryFunctionCall(
811
902
  func,
@@ -824,7 +915,7 @@ export class sui_system extends SuiBaseProcessor {
824
915
  ctx: SuiContext
825
916
  ) => void,
826
917
  filter?: CallFilter,
827
- fetchConfig?: MoveFetchConfig
918
+ fetchConfig?: Partial<MoveFetchConfig>
828
919
  ): sui_system {
829
920
  this.onEntryFunctionCall(
830
921
  func,
@@ -843,7 +934,7 @@ export class sui_system extends SuiBaseProcessor {
843
934
  ctx: SuiContext
844
935
  ) => void,
845
936
  filter?: CallFilter,
846
- fetchConfig?: MoveFetchConfig
937
+ fetchConfig?: Partial<MoveFetchConfig>
847
938
  ): sui_system {
848
939
  this.onEntryFunctionCall(
849
940
  func,
@@ -862,7 +953,7 @@ export class sui_system extends SuiBaseProcessor {
862
953
  ctx: SuiContext
863
954
  ) => void,
864
955
  filter?: CallFilter,
865
- fetchConfig?: MoveFetchConfig
956
+ fetchConfig?: Partial<MoveFetchConfig>
866
957
  ): sui_system {
867
958
  this.onEntryFunctionCall(
868
959
  func,
@@ -877,12 +968,21 @@ export class sui_system extends SuiBaseProcessor {
877
968
  }
878
969
 
879
970
  export namespace sui_system {
880
- export class SuiSystemState {
881
- static TYPE_QNAME = "0x3::sui_system::SuiSystemState";
971
+ export interface SuiSystemState {
882
972
  id: _0x2.object_.UID;
883
973
  version: bigint;
884
974
  }
885
975
 
976
+ export namespace SuiSystemState {
977
+ export const TYPE_QNAME = "0x3::sui_system::SuiSystemState";
978
+
979
+ const TYPE = new TypeDescriptor<SuiSystemState>(SuiSystemState.TYPE_QNAME);
980
+
981
+ export function type(): TypeDescriptor<SuiSystemState> {
982
+ return TYPE.apply();
983
+ }
984
+ }
985
+
886
986
  export interface ReportValidatorPayload
887
987
  extends TypedFunctionPayload<
888
988
  [SuiAddress | undefined, SuiAddress | undefined]
@@ -1210,7 +1310,7 @@ export class sui_system_state_inner extends SuiBaseProcessor {
1210
1310
  event: sui_system_state_inner.SystemEpochInfoEventInstance,
1211
1311
  ctx: SuiContext
1212
1312
  ) => void,
1213
- fetchConfig?: MoveFetchConfig
1313
+ fetchConfig?: Partial<MoveFetchConfig>
1214
1314
  ): sui_system_state_inner {
1215
1315
  this.onMoveEvent(
1216
1316
  func,
@@ -1224,8 +1324,7 @@ export class sui_system_state_inner extends SuiBaseProcessor {
1224
1324
  }
1225
1325
 
1226
1326
  export namespace sui_system_state_inner {
1227
- export class SuiSystemStateInner {
1228
- static TYPE_QNAME = "0x3::sui_system_state_inner::SuiSystemStateInner";
1327
+ export interface SuiSystemStateInner {
1229
1328
  epoch: bigint;
1230
1329
  protocol_version: bigint;
1231
1330
  system_state_version: bigint;
@@ -1247,8 +1346,20 @@ export namespace sui_system_state_inner {
1247
1346
  extra_fields: _0x2.bag.Bag;
1248
1347
  }
1249
1348
 
1250
- export class SystemEpochInfoEvent {
1251
- static TYPE_QNAME = "0x3::sui_system_state_inner::SystemEpochInfoEvent";
1349
+ export namespace SuiSystemStateInner {
1350
+ export const TYPE_QNAME =
1351
+ "0x3::sui_system_state_inner::SuiSystemStateInner";
1352
+
1353
+ const TYPE = new TypeDescriptor<SuiSystemStateInner>(
1354
+ SuiSystemStateInner.TYPE_QNAME
1355
+ );
1356
+
1357
+ export function type(): TypeDescriptor<SuiSystemStateInner> {
1358
+ return TYPE.apply();
1359
+ }
1360
+ }
1361
+
1362
+ export interface SystemEpochInfoEvent {
1252
1363
  epoch: bigint;
1253
1364
  protocol_version: bigint;
1254
1365
  reference_gas_price: bigint;
@@ -1263,14 +1374,26 @@ export namespace sui_system_state_inner {
1263
1374
  leftover_storage_fund_inflow: bigint;
1264
1375
  }
1265
1376
 
1377
+ export namespace SystemEpochInfoEvent {
1378
+ export const TYPE_QNAME =
1379
+ "0x3::sui_system_state_inner::SystemEpochInfoEvent";
1380
+
1381
+ const TYPE = new TypeDescriptor<SystemEpochInfoEvent>(
1382
+ SystemEpochInfoEvent.TYPE_QNAME
1383
+ );
1384
+
1385
+ export function type(): TypeDescriptor<SystemEpochInfoEvent> {
1386
+ return TYPE.apply();
1387
+ }
1388
+ }
1389
+
1266
1390
  export interface SystemEpochInfoEventInstance
1267
1391
  extends TypedEventInstance<SystemEpochInfoEvent> {
1268
1392
  data_decoded: SystemEpochInfoEvent;
1269
1393
  type_arguments: [];
1270
1394
  }
1271
1395
 
1272
- export class SystemParameters {
1273
- static TYPE_QNAME = "0x3::sui_system_state_inner::SystemParameters";
1396
+ export interface SystemParameters {
1274
1397
  epoch_duration_ms: bigint;
1275
1398
  stake_subsidy_start_epoch: bigint;
1276
1399
  max_validator_count: bigint;
@@ -1280,6 +1403,18 @@ export namespace sui_system_state_inner {
1280
1403
  validator_low_stake_grace_period: bigint;
1281
1404
  extra_fields: _0x2.bag.Bag;
1282
1405
  }
1406
+
1407
+ export namespace SystemParameters {
1408
+ export const TYPE_QNAME = "0x3::sui_system_state_inner::SystemParameters";
1409
+
1410
+ const TYPE = new TypeDescriptor<SystemParameters>(
1411
+ SystemParameters.TYPE_QNAME
1412
+ );
1413
+
1414
+ export function type(): TypeDescriptor<SystemParameters> {
1415
+ return TYPE.apply();
1416
+ }
1417
+ }
1283
1418
  }
1284
1419
 
1285
1420
  export class validator extends SuiBaseProcessor {
@@ -1300,7 +1435,7 @@ export class validator extends SuiBaseProcessor {
1300
1435
  event: validator.StakingRequestEventInstance,
1301
1436
  ctx: SuiContext
1302
1437
  ) => void,
1303
- fetchConfig?: MoveFetchConfig
1438
+ fetchConfig?: Partial<MoveFetchConfig>
1304
1439
  ): validator {
1305
1440
  this.onMoveEvent(
1306
1441
  func,
@@ -1317,7 +1452,7 @@ export class validator extends SuiBaseProcessor {
1317
1452
  event: validator.UnstakingRequestEventInstance,
1318
1453
  ctx: SuiContext
1319
1454
  ) => void,
1320
- fetchConfig?: MoveFetchConfig
1455
+ fetchConfig?: Partial<MoveFetchConfig>
1321
1456
  ): validator {
1322
1457
  this.onMoveEvent(
1323
1458
  func,
@@ -1331,8 +1466,7 @@ export class validator extends SuiBaseProcessor {
1331
1466
  }
1332
1467
 
1333
1468
  export namespace validator {
1334
- export class StakingRequestEvent {
1335
- static TYPE_QNAME = "0x3::validator::StakingRequestEvent";
1469
+ export interface StakingRequestEvent {
1336
1470
  pool_id: _0x2.object_.ID;
1337
1471
  validator_address: SuiAddress;
1338
1472
  staker_address: SuiAddress;
@@ -1340,14 +1474,25 @@ export namespace validator {
1340
1474
  amount: bigint;
1341
1475
  }
1342
1476
 
1477
+ export namespace StakingRequestEvent {
1478
+ export const TYPE_QNAME = "0x3::validator::StakingRequestEvent";
1479
+
1480
+ const TYPE = new TypeDescriptor<StakingRequestEvent>(
1481
+ StakingRequestEvent.TYPE_QNAME
1482
+ );
1483
+
1484
+ export function type(): TypeDescriptor<StakingRequestEvent> {
1485
+ return TYPE.apply();
1486
+ }
1487
+ }
1488
+
1343
1489
  export interface StakingRequestEventInstance
1344
1490
  extends TypedEventInstance<StakingRequestEvent> {
1345
1491
  data_decoded: StakingRequestEvent;
1346
1492
  type_arguments: [];
1347
1493
  }
1348
1494
 
1349
- export class UnstakingRequestEvent {
1350
- static TYPE_QNAME = "0x3::validator::UnstakingRequestEvent";
1495
+ export interface UnstakingRequestEvent {
1351
1496
  pool_id: _0x2.object_.ID;
1352
1497
  validator_address: SuiAddress;
1353
1498
  staker_address: SuiAddress;
@@ -1357,14 +1502,25 @@ export namespace validator {
1357
1502
  reward_amount: bigint;
1358
1503
  }
1359
1504
 
1505
+ export namespace UnstakingRequestEvent {
1506
+ export const TYPE_QNAME = "0x3::validator::UnstakingRequestEvent";
1507
+
1508
+ const TYPE = new TypeDescriptor<UnstakingRequestEvent>(
1509
+ UnstakingRequestEvent.TYPE_QNAME
1510
+ );
1511
+
1512
+ export function type(): TypeDescriptor<UnstakingRequestEvent> {
1513
+ return TYPE.apply();
1514
+ }
1515
+ }
1516
+
1360
1517
  export interface UnstakingRequestEventInstance
1361
1518
  extends TypedEventInstance<UnstakingRequestEvent> {
1362
1519
  data_decoded: UnstakingRequestEvent;
1363
1520
  type_arguments: [];
1364
1521
  }
1365
1522
 
1366
- export class Validator {
1367
- static TYPE_QNAME = "0x3::validator::Validator";
1523
+ export interface Validator {
1368
1524
  metadata: validator.ValidatorMetadata;
1369
1525
  voting_power: bigint;
1370
1526
  operation_cap_id: _0x2.object_.ID;
@@ -1377,8 +1533,17 @@ export namespace validator {
1377
1533
  extra_fields: _0x2.bag.Bag;
1378
1534
  }
1379
1535
 
1380
- export class ValidatorMetadata {
1381
- static TYPE_QNAME = "0x3::validator::ValidatorMetadata";
1536
+ export namespace Validator {
1537
+ export const TYPE_QNAME = "0x3::validator::Validator";
1538
+
1539
+ const TYPE = new TypeDescriptor<Validator>(Validator.TYPE_QNAME);
1540
+
1541
+ export function type(): TypeDescriptor<Validator> {
1542
+ return TYPE.apply();
1543
+ }
1544
+ }
1545
+
1546
+ export interface ValidatorMetadata {
1382
1547
  sui_address: SuiAddress;
1383
1548
  protocol_pubkey_bytes: number[];
1384
1549
  network_pubkey_bytes: number[];
@@ -1402,19 +1567,54 @@ export namespace validator {
1402
1567
  next_epoch_worker_address: _0x1.option.Option<string>;
1403
1568
  extra_fields: _0x2.bag.Bag;
1404
1569
  }
1570
+
1571
+ export namespace ValidatorMetadata {
1572
+ export const TYPE_QNAME = "0x3::validator::ValidatorMetadata";
1573
+
1574
+ const TYPE = new TypeDescriptor<ValidatorMetadata>(
1575
+ ValidatorMetadata.TYPE_QNAME
1576
+ );
1577
+
1578
+ export function type(): TypeDescriptor<ValidatorMetadata> {
1579
+ return TYPE.apply();
1580
+ }
1581
+ }
1405
1582
  }
1406
1583
 
1407
1584
  export namespace validator_cap {
1408
- export class UnverifiedValidatorOperationCap {
1409
- static TYPE_QNAME = "0x3::validator_cap::UnverifiedValidatorOperationCap";
1585
+ export interface UnverifiedValidatorOperationCap {
1410
1586
  id: _0x2.object_.UID;
1411
1587
  authorizer_validator_address: SuiAddress;
1412
1588
  }
1413
1589
 
1414
- export class ValidatorOperationCap {
1415
- static TYPE_QNAME = "0x3::validator_cap::ValidatorOperationCap";
1590
+ export namespace UnverifiedValidatorOperationCap {
1591
+ export const TYPE_QNAME =
1592
+ "0x3::validator_cap::UnverifiedValidatorOperationCap";
1593
+
1594
+ const TYPE = new TypeDescriptor<UnverifiedValidatorOperationCap>(
1595
+ UnverifiedValidatorOperationCap.TYPE_QNAME
1596
+ );
1597
+
1598
+ export function type(): TypeDescriptor<UnverifiedValidatorOperationCap> {
1599
+ return TYPE.apply();
1600
+ }
1601
+ }
1602
+
1603
+ export interface ValidatorOperationCap {
1416
1604
  authorizer_validator_address: SuiAddress;
1417
1605
  }
1606
+
1607
+ export namespace ValidatorOperationCap {
1608
+ export const TYPE_QNAME = "0x3::validator_cap::ValidatorOperationCap";
1609
+
1610
+ const TYPE = new TypeDescriptor<ValidatorOperationCap>(
1611
+ ValidatorOperationCap.TYPE_QNAME
1612
+ );
1613
+
1614
+ export function type(): TypeDescriptor<ValidatorOperationCap> {
1615
+ return TYPE.apply();
1616
+ }
1617
+ }
1418
1618
  }
1419
1619
 
1420
1620
  export class validator_set extends SuiBaseProcessor {
@@ -1435,7 +1635,7 @@ export class validator_set extends SuiBaseProcessor {
1435
1635
  event: validator_set.ValidatorEpochInfoEventInstance,
1436
1636
  ctx: SuiContext
1437
1637
  ) => void,
1438
- fetchConfig?: MoveFetchConfig
1638
+ fetchConfig?: Partial<MoveFetchConfig>
1439
1639
  ): validator_set {
1440
1640
  this.onMoveEvent(
1441
1641
  func,
@@ -1452,7 +1652,7 @@ export class validator_set extends SuiBaseProcessor {
1452
1652
  event: validator_set.ValidatorJoinEventInstance,
1453
1653
  ctx: SuiContext
1454
1654
  ) => void,
1455
- fetchConfig?: MoveFetchConfig
1655
+ fetchConfig?: Partial<MoveFetchConfig>
1456
1656
  ): validator_set {
1457
1657
  this.onMoveEvent(
1458
1658
  func,
@@ -1469,7 +1669,7 @@ export class validator_set extends SuiBaseProcessor {
1469
1669
  event: validator_set.ValidatorLeaveEventInstance,
1470
1670
  ctx: SuiContext
1471
1671
  ) => void,
1472
- fetchConfig?: MoveFetchConfig
1672
+ fetchConfig?: Partial<MoveFetchConfig>
1473
1673
  ): validator_set {
1474
1674
  this.onMoveEvent(
1475
1675
  func,
@@ -1483,8 +1683,7 @@ export class validator_set extends SuiBaseProcessor {
1483
1683
  }
1484
1684
 
1485
1685
  export namespace validator_set {
1486
- export class ValidatorEpochInfoEvent {
1487
- static TYPE_QNAME = "0x3::validator_set::ValidatorEpochInfoEvent";
1686
+ export interface ValidatorEpochInfoEvent {
1488
1687
  epoch: bigint;
1489
1688
  validator_address: SuiAddress;
1490
1689
  reference_gas_survey_quote: bigint;
@@ -1497,41 +1696,74 @@ export namespace validator_set {
1497
1696
  tallying_rule_global_score: bigint;
1498
1697
  }
1499
1698
 
1699
+ export namespace ValidatorEpochInfoEvent {
1700
+ export const TYPE_QNAME = "0x3::validator_set::ValidatorEpochInfoEvent";
1701
+
1702
+ const TYPE = new TypeDescriptor<ValidatorEpochInfoEvent>(
1703
+ ValidatorEpochInfoEvent.TYPE_QNAME
1704
+ );
1705
+
1706
+ export function type(): TypeDescriptor<ValidatorEpochInfoEvent> {
1707
+ return TYPE.apply();
1708
+ }
1709
+ }
1710
+
1500
1711
  export interface ValidatorEpochInfoEventInstance
1501
1712
  extends TypedEventInstance<ValidatorEpochInfoEvent> {
1502
1713
  data_decoded: ValidatorEpochInfoEvent;
1503
1714
  type_arguments: [];
1504
1715
  }
1505
1716
 
1506
- export class ValidatorJoinEvent {
1507
- static TYPE_QNAME = "0x3::validator_set::ValidatorJoinEvent";
1717
+ export interface ValidatorJoinEvent {
1508
1718
  epoch: bigint;
1509
1719
  validator_address: SuiAddress;
1510
1720
  staking_pool_id: _0x2.object_.ID;
1511
1721
  }
1512
1722
 
1723
+ export namespace ValidatorJoinEvent {
1724
+ export const TYPE_QNAME = "0x3::validator_set::ValidatorJoinEvent";
1725
+
1726
+ const TYPE = new TypeDescriptor<ValidatorJoinEvent>(
1727
+ ValidatorJoinEvent.TYPE_QNAME
1728
+ );
1729
+
1730
+ export function type(): TypeDescriptor<ValidatorJoinEvent> {
1731
+ return TYPE.apply();
1732
+ }
1733
+ }
1734
+
1513
1735
  export interface ValidatorJoinEventInstance
1514
1736
  extends TypedEventInstance<ValidatorJoinEvent> {
1515
1737
  data_decoded: ValidatorJoinEvent;
1516
1738
  type_arguments: [];
1517
1739
  }
1518
1740
 
1519
- export class ValidatorLeaveEvent {
1520
- static TYPE_QNAME = "0x3::validator_set::ValidatorLeaveEvent";
1741
+ export interface ValidatorLeaveEvent {
1521
1742
  epoch: bigint;
1522
1743
  validator_address: SuiAddress;
1523
1744
  staking_pool_id: _0x2.object_.ID;
1524
1745
  is_voluntary: Boolean;
1525
1746
  }
1526
1747
 
1748
+ export namespace ValidatorLeaveEvent {
1749
+ export const TYPE_QNAME = "0x3::validator_set::ValidatorLeaveEvent";
1750
+
1751
+ const TYPE = new TypeDescriptor<ValidatorLeaveEvent>(
1752
+ ValidatorLeaveEvent.TYPE_QNAME
1753
+ );
1754
+
1755
+ export function type(): TypeDescriptor<ValidatorLeaveEvent> {
1756
+ return TYPE.apply();
1757
+ }
1758
+ }
1759
+
1527
1760
  export interface ValidatorLeaveEventInstance
1528
1761
  extends TypedEventInstance<ValidatorLeaveEvent> {
1529
1762
  data_decoded: ValidatorLeaveEvent;
1530
1763
  type_arguments: [];
1531
1764
  }
1532
1765
 
1533
- export class ValidatorSet {
1534
- static TYPE_QNAME = "0x3::validator_set::ValidatorSet";
1766
+ export interface ValidatorSet {
1535
1767
  total_stake: bigint;
1536
1768
  active_validators: validator.Validator[];
1537
1769
  pending_active_validators: _0x2.table_vec.TableVec<validator.Validator>;
@@ -1548,21 +1780,53 @@ export namespace validator_set {
1548
1780
  at_risk_validators: _0x2.vec_map.VecMap<SuiAddress, bigint>;
1549
1781
  extra_fields: _0x2.bag.Bag;
1550
1782
  }
1783
+
1784
+ export namespace ValidatorSet {
1785
+ export const TYPE_QNAME = "0x3::validator_set::ValidatorSet";
1786
+
1787
+ const TYPE = new TypeDescriptor<ValidatorSet>(ValidatorSet.TYPE_QNAME);
1788
+
1789
+ export function type(): TypeDescriptor<ValidatorSet> {
1790
+ return TYPE.apply();
1791
+ }
1792
+ }
1551
1793
  }
1552
1794
 
1553
1795
  export namespace validator_wrapper {
1554
- export class ValidatorWrapper {
1555
- static TYPE_QNAME = "0x3::validator_wrapper::ValidatorWrapper";
1796
+ export interface ValidatorWrapper {
1556
1797
  inner: _0x2.versioned.Versioned;
1557
1798
  }
1799
+
1800
+ export namespace ValidatorWrapper {
1801
+ export const TYPE_QNAME = "0x3::validator_wrapper::ValidatorWrapper";
1802
+
1803
+ const TYPE = new TypeDescriptor<ValidatorWrapper>(
1804
+ ValidatorWrapper.TYPE_QNAME
1805
+ );
1806
+
1807
+ export function type(): TypeDescriptor<ValidatorWrapper> {
1808
+ return TYPE.apply();
1809
+ }
1810
+ }
1558
1811
  }
1559
1812
 
1560
1813
  export namespace voting_power {
1561
- export class VotingPowerInfo {
1562
- static TYPE_QNAME = "0x3::voting_power::VotingPowerInfo";
1814
+ export interface VotingPowerInfo {
1563
1815
  validator_index: bigint;
1564
1816
  voting_power: bigint;
1565
1817
  }
1818
+
1819
+ export namespace VotingPowerInfo {
1820
+ export const TYPE_QNAME = "0x3::voting_power::VotingPowerInfo";
1821
+
1822
+ const TYPE = new TypeDescriptor<VotingPowerInfo>(
1823
+ VotingPowerInfo.TYPE_QNAME
1824
+ );
1825
+
1826
+ export function type(): TypeDescriptor<VotingPowerInfo> {
1827
+ return TYPE.apply();
1828
+ }
1829
+ }
1566
1830
  }
1567
1831
 
1568
1832
  const MODULES = JSON.parse(
@@ -1577,4 +1841,5 @@ export function loadAllTypes(coder: MoveCoder) {
1577
1841
  }
1578
1842
  }
1579
1843
 
1580
- loadAllTypes(defaultMoveCoder());
1844
+ loadAllTypes(defaultMoveCoder(SuiNetwork.MAIN_NET));
1845
+ loadAllTypes(defaultMoveCoder(SuiNetwork.TEST_NET));