@sentio/sdk 2.12.3-rc.1 → 2.13.0-rc.1

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.
@@ -36,7 +36,7 @@ export class token extends AptosBaseProcessor {
36
36
  onEntryBurn(
37
37
  func: (call: token.BurnPayload, ctx: AptosContext) => void,
38
38
  filter?: CallFilter,
39
- fetchConfig?: MoveFetchConfig
39
+ fetchConfig?: Partial<MoveFetchConfig>
40
40
  ): token {
41
41
  this.onEntryFunctionCall(
42
42
  func,
@@ -52,7 +52,7 @@ export class token extends AptosBaseProcessor {
52
52
  onEntryBurnByCreator(
53
53
  func: (call: token.BurnByCreatorPayload, ctx: AptosContext) => void,
54
54
  filter?: CallFilter,
55
- fetchConfig?: MoveFetchConfig
55
+ fetchConfig?: Partial<MoveFetchConfig>
56
56
  ): token {
57
57
  this.onEntryFunctionCall(
58
58
  func,
@@ -71,7 +71,7 @@ export class token extends AptosBaseProcessor {
71
71
  ctx: AptosContext
72
72
  ) => void,
73
73
  filter?: CallFilter,
74
- fetchConfig?: MoveFetchConfig
74
+ fetchConfig?: Partial<MoveFetchConfig>
75
75
  ): token {
76
76
  this.onEntryFunctionCall(
77
77
  func,
@@ -87,7 +87,7 @@ export class token extends AptosBaseProcessor {
87
87
  onEntryCreateTokenScript(
88
88
  func: (call: token.CreateTokenScriptPayload, ctx: AptosContext) => void,
89
89
  filter?: CallFilter,
90
- fetchConfig?: MoveFetchConfig
90
+ fetchConfig?: Partial<MoveFetchConfig>
91
91
  ): token {
92
92
  this.onEntryFunctionCall(
93
93
  func,
@@ -103,7 +103,7 @@ export class token extends AptosBaseProcessor {
103
103
  onEntryDirectTransferScript(
104
104
  func: (call: token.DirectTransferScriptPayload, ctx: AptosContext) => void,
105
105
  filter?: CallFilter,
106
- fetchConfig?: MoveFetchConfig
106
+ fetchConfig?: Partial<MoveFetchConfig>
107
107
  ): token {
108
108
  this.onEntryFunctionCall(
109
109
  func,
@@ -119,7 +119,7 @@ export class token extends AptosBaseProcessor {
119
119
  onEntryInitializeTokenScript(
120
120
  func: (call: token.InitializeTokenScriptPayload, ctx: AptosContext) => void,
121
121
  filter?: CallFilter,
122
- fetchConfig?: MoveFetchConfig
122
+ fetchConfig?: Partial<MoveFetchConfig>
123
123
  ): token {
124
124
  this.onEntryFunctionCall(
125
125
  func,
@@ -135,7 +135,7 @@ export class token extends AptosBaseProcessor {
135
135
  onEntryMintScript(
136
136
  func: (call: token.MintScriptPayload, ctx: AptosContext) => void,
137
137
  filter?: CallFilter,
138
- fetchConfig?: MoveFetchConfig
138
+ fetchConfig?: Partial<MoveFetchConfig>
139
139
  ): token {
140
140
  this.onEntryFunctionCall(
141
141
  func,
@@ -151,7 +151,7 @@ export class token extends AptosBaseProcessor {
151
151
  onEntryMutateTokenProperties(
152
152
  func: (call: token.MutateTokenPropertiesPayload, ctx: AptosContext) => void,
153
153
  filter?: CallFilter,
154
- fetchConfig?: MoveFetchConfig
154
+ fetchConfig?: Partial<MoveFetchConfig>
155
155
  ): token {
156
156
  this.onEntryFunctionCall(
157
157
  func,
@@ -167,7 +167,7 @@ export class token extends AptosBaseProcessor {
167
167
  onEntryOptInDirectTransfer(
168
168
  func: (call: token.OptInDirectTransferPayload, ctx: AptosContext) => void,
169
169
  filter?: CallFilter,
170
- fetchConfig?: MoveFetchConfig
170
+ fetchConfig?: Partial<MoveFetchConfig>
171
171
  ): token {
172
172
  this.onEntryFunctionCall(
173
173
  func,
@@ -183,7 +183,7 @@ export class token extends AptosBaseProcessor {
183
183
  onEntryTransferWithOptIn(
184
184
  func: (call: token.TransferWithOptInPayload, ctx: AptosContext) => void,
185
185
  filter?: CallFilter,
186
- fetchConfig?: MoveFetchConfig
186
+ fetchConfig?: Partial<MoveFetchConfig>
187
187
  ): token {
188
188
  this.onEntryFunctionCall(
189
189
  func,
@@ -650,7 +650,7 @@ export class token_coin_swap extends AptosBaseProcessor {
650
650
  ctx: AptosContext
651
651
  ) => void,
652
652
  filter?: CallFilter,
653
- fetchConfig?: MoveFetchConfig
653
+ fetchConfig?: Partial<MoveFetchConfig>
654
654
  ): token_coin_swap {
655
655
  this.onEntryFunctionCall(
656
656
  func,
@@ -795,7 +795,7 @@ export class token_transfers extends AptosBaseProcessor {
795
795
  ctx: AptosContext
796
796
  ) => void,
797
797
  filter?: CallFilter,
798
- fetchConfig?: MoveFetchConfig
798
+ fetchConfig?: Partial<MoveFetchConfig>
799
799
  ): token_transfers {
800
800
  this.onEntryFunctionCall(
801
801
  func,
@@ -811,7 +811,7 @@ export class token_transfers extends AptosBaseProcessor {
811
811
  onEntryClaimScript(
812
812
  func: (call: token_transfers.ClaimScriptPayload, ctx: AptosContext) => void,
813
813
  filter?: CallFilter,
814
- fetchConfig?: MoveFetchConfig
814
+ fetchConfig?: Partial<MoveFetchConfig>
815
815
  ): token_transfers {
816
816
  this.onEntryFunctionCall(
817
817
  func,
@@ -827,7 +827,7 @@ export class token_transfers extends AptosBaseProcessor {
827
827
  onEntryOfferScript(
828
828
  func: (call: token_transfers.OfferScriptPayload, ctx: AptosContext) => void,
829
829
  filter?: CallFilter,
830
- fetchConfig?: MoveFetchConfig
830
+ fetchConfig?: Partial<MoveFetchConfig>
831
831
  ): token_transfers {
832
832
  this.onEntryFunctionCall(
833
833
  func,
@@ -9,19 +9,22 @@ export class AptosContext extends BaseContext {
9
9
  moduleName: string
10
10
  version: bigint
11
11
  transaction: Transaction_UserTransaction
12
+ eventIndex: number
12
13
 
13
14
  constructor(
14
15
  moduleName: string,
15
16
  network: AptosNetwork,
16
17
  address: string,
17
18
  version: bigint,
18
- transaction?: Transaction_UserTransaction
19
+ transaction: Transaction_UserTransaction,
20
+ eventIndex: number
19
21
  ) {
20
22
  super()
21
23
  this.address = address.toLowerCase()
22
24
  this.network = network
23
25
  this.moduleName = moduleName
24
26
  this.version = version
27
+ this.eventIndex = eventIndex
25
28
  if (transaction) {
26
29
  this.transaction = transaction
27
30
  }
@@ -38,7 +41,7 @@ export class AptosContext extends BaseContext {
38
41
  blockNumber: this.version,
39
42
  transactionIndex: 0,
40
43
  transactionHash: this.transaction?.hash || '', // TODO
41
- logIndex: 0,
44
+ logIndex: this.eventIndex,
42
45
  chainId: this.getChainId(),
43
46
  name: name,
44
47
  labels: normalizeLabels(labels),
@@ -335,7 +335,7 @@ export abstract class AbstractCodegen<ModuleTypes, NetworkType> {
335
335
 
336
336
  const camelFuncName = upperFirst(camelCase(func.name))
337
337
  const source = `
338
- onEntry${camelFuncName}(func: (call: ${moduleName}.${camelFuncName}Payload, ctx: ${this.PREFIX}Context) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): ${moduleName} {
338
+ onEntry${camelFuncName}(func: (call: ${moduleName}.${camelFuncName}Payload, ctx: ${this.PREFIX}Context) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): ${moduleName} {
339
339
  this.onEntryFunctionCall(func, {
340
340
  ...filter,
341
341
  function: '${module.name}::${func.name}'
@@ -122,7 +122,7 @@ export class coin extends SuiBaseProcessor {
122
122
  onEntryBurn(
123
123
  func: (call: coin.BurnPayload, ctx: SuiContext) => void,
124
124
  filter?: CallFilter,
125
- fetchConfig?: MoveFetchConfig
125
+ fetchConfig?: Partial<MoveFetchConfig>
126
126
  ): coin {
127
127
  this.onEntryFunctionCall(
128
128
  func,
@@ -138,7 +138,7 @@ export class coin extends SuiBaseProcessor {
138
138
  onEntryJoin(
139
139
  func: (call: coin.JoinPayload, ctx: SuiContext) => void,
140
140
  filter?: CallFilter,
141
- fetchConfig?: MoveFetchConfig
141
+ fetchConfig?: Partial<MoveFetchConfig>
142
142
  ): coin {
143
143
  this.onEntryFunctionCall(
144
144
  func,
@@ -154,7 +154,7 @@ export class coin extends SuiBaseProcessor {
154
154
  onEntryMintAndTransfer(
155
155
  func: (call: coin.MintAndTransferPayload, ctx: SuiContext) => void,
156
156
  filter?: CallFilter,
157
- fetchConfig?: MoveFetchConfig
157
+ fetchConfig?: Partial<MoveFetchConfig>
158
158
  ): coin {
159
159
  this.onEntryFunctionCall(
160
160
  func,
@@ -170,7 +170,7 @@ export class coin extends SuiBaseProcessor {
170
170
  onEntryUpdateDescription(
171
171
  func: (call: coin.UpdateDescriptionPayload, ctx: SuiContext) => void,
172
172
  filter?: CallFilter,
173
- fetchConfig?: MoveFetchConfig
173
+ fetchConfig?: Partial<MoveFetchConfig>
174
174
  ): coin {
175
175
  this.onEntryFunctionCall(
176
176
  func,
@@ -186,7 +186,7 @@ export class coin extends SuiBaseProcessor {
186
186
  onEntryUpdateIconUrl(
187
187
  func: (call: coin.UpdateIconUrlPayload, ctx: SuiContext) => void,
188
188
  filter?: CallFilter,
189
- fetchConfig?: MoveFetchConfig
189
+ fetchConfig?: Partial<MoveFetchConfig>
190
190
  ): coin {
191
191
  this.onEntryFunctionCall(
192
192
  func,
@@ -202,7 +202,7 @@ export class coin extends SuiBaseProcessor {
202
202
  onEntryUpdateName(
203
203
  func: (call: coin.UpdateNamePayload, ctx: SuiContext) => void,
204
204
  filter?: CallFilter,
205
- fetchConfig?: MoveFetchConfig
205
+ fetchConfig?: Partial<MoveFetchConfig>
206
206
  ): coin {
207
207
  this.onEntryFunctionCall(
208
208
  func,
@@ -218,7 +218,7 @@ export class coin extends SuiBaseProcessor {
218
218
  onEntryUpdateSymbol(
219
219
  func: (call: coin.UpdateSymbolPayload, ctx: SuiContext) => void,
220
220
  filter?: CallFilter,
221
- fetchConfig?: MoveFetchConfig
221
+ fetchConfig?: Partial<MoveFetchConfig>
222
222
  ): coin {
223
223
  this.onEntryFunctionCall(
224
224
  func,
@@ -349,7 +349,7 @@ export class display extends SuiBaseProcessor {
349
349
  onEntryAdd(
350
350
  func: (call: display.AddPayload, ctx: SuiContext) => void,
351
351
  filter?: CallFilter,
352
- fetchConfig?: MoveFetchConfig
352
+ fetchConfig?: Partial<MoveFetchConfig>
353
353
  ): display {
354
354
  this.onEntryFunctionCall(
355
355
  func,
@@ -365,7 +365,7 @@ export class display extends SuiBaseProcessor {
365
365
  onEntryAddMultiple(
366
366
  func: (call: display.AddMultiplePayload, ctx: SuiContext) => void,
367
367
  filter?: CallFilter,
368
- fetchConfig?: MoveFetchConfig
368
+ fetchConfig?: Partial<MoveFetchConfig>
369
369
  ): display {
370
370
  this.onEntryFunctionCall(
371
371
  func,
@@ -381,7 +381,7 @@ export class display extends SuiBaseProcessor {
381
381
  onEntryCreateAndKeep(
382
382
  func: (call: display.CreateAndKeepPayload, ctx: SuiContext) => void,
383
383
  filter?: CallFilter,
384
- fetchConfig?: MoveFetchConfig
384
+ fetchConfig?: Partial<MoveFetchConfig>
385
385
  ): display {
386
386
  this.onEntryFunctionCall(
387
387
  func,
@@ -397,7 +397,7 @@ export class display extends SuiBaseProcessor {
397
397
  onEntryEdit(
398
398
  func: (call: display.EditPayload, ctx: SuiContext) => void,
399
399
  filter?: CallFilter,
400
- fetchConfig?: MoveFetchConfig
400
+ fetchConfig?: Partial<MoveFetchConfig>
401
401
  ): display {
402
402
  this.onEntryFunctionCall(
403
403
  func,
@@ -413,7 +413,7 @@ export class display extends SuiBaseProcessor {
413
413
  onEntryRemove(
414
414
  func: (call: display.RemovePayload, ctx: SuiContext) => void,
415
415
  filter?: CallFilter,
416
- fetchConfig?: MoveFetchConfig
416
+ fetchConfig?: Partial<MoveFetchConfig>
417
417
  ): display {
418
418
  this.onEntryFunctionCall(
419
419
  func,
@@ -429,7 +429,7 @@ export class display extends SuiBaseProcessor {
429
429
  onEntryUpdateVersion(
430
430
  func: (call: display.UpdateVersionPayload, ctx: SuiContext) => void,
431
431
  filter?: CallFilter,
432
- fetchConfig?: MoveFetchConfig
432
+ fetchConfig?: Partial<MoveFetchConfig>
433
433
  ): display {
434
434
  this.onEntryFunctionCall(
435
435
  func,
@@ -932,7 +932,7 @@ export class package_ extends SuiBaseProcessor {
932
932
  onEntryMakeImmutable(
933
933
  func: (call: package_.MakeImmutablePayload, ctx: SuiContext) => void,
934
934
  filter?: CallFilter,
935
- fetchConfig?: MoveFetchConfig
935
+ fetchConfig?: Partial<MoveFetchConfig>
936
936
  ): package_ {
937
937
  this.onEntryFunctionCall(
938
938
  func,
@@ -948,7 +948,7 @@ export class package_ extends SuiBaseProcessor {
948
948
  onEntryOnlyAdditiveUpgrades(
949
949
  func: (call: package_.OnlyAdditiveUpgradesPayload, ctx: SuiContext) => void,
950
950
  filter?: CallFilter,
951
- fetchConfig?: MoveFetchConfig
951
+ fetchConfig?: Partial<MoveFetchConfig>
952
952
  ): package_ {
953
953
  this.onEntryFunctionCall(
954
954
  func,
@@ -964,7 +964,7 @@ export class package_ extends SuiBaseProcessor {
964
964
  onEntryOnlyDepUpgrades(
965
965
  func: (call: package_.OnlyDepUpgradesPayload, ctx: SuiContext) => void,
966
966
  filter?: CallFilter,
967
- fetchConfig?: MoveFetchConfig
967
+ fetchConfig?: Partial<MoveFetchConfig>
968
968
  ): package_ {
969
969
  this.onEntryFunctionCall(
970
970
  func,
@@ -1041,7 +1041,7 @@ export class pay extends SuiBaseProcessor {
1041
1041
  onEntryDivideAndKeep(
1042
1042
  func: (call: pay.DivideAndKeepPayload, ctx: SuiContext) => void,
1043
1043
  filter?: CallFilter,
1044
- fetchConfig?: MoveFetchConfig
1044
+ fetchConfig?: Partial<MoveFetchConfig>
1045
1045
  ): pay {
1046
1046
  this.onEntryFunctionCall(
1047
1047
  func,
@@ -1057,7 +1057,7 @@ export class pay extends SuiBaseProcessor {
1057
1057
  onEntryJoin(
1058
1058
  func: (call: pay.JoinPayload, ctx: SuiContext) => void,
1059
1059
  filter?: CallFilter,
1060
- fetchConfig?: MoveFetchConfig
1060
+ fetchConfig?: Partial<MoveFetchConfig>
1061
1061
  ): pay {
1062
1062
  this.onEntryFunctionCall(
1063
1063
  func,
@@ -1073,7 +1073,7 @@ export class pay extends SuiBaseProcessor {
1073
1073
  onEntryJoinVec(
1074
1074
  func: (call: pay.JoinVecPayload, ctx: SuiContext) => void,
1075
1075
  filter?: CallFilter,
1076
- fetchConfig?: MoveFetchConfig
1076
+ fetchConfig?: Partial<MoveFetchConfig>
1077
1077
  ): pay {
1078
1078
  this.onEntryFunctionCall(
1079
1079
  func,
@@ -1089,7 +1089,7 @@ export class pay extends SuiBaseProcessor {
1089
1089
  onEntryJoinVecAndTransfer(
1090
1090
  func: (call: pay.JoinVecAndTransferPayload, ctx: SuiContext) => void,
1091
1091
  filter?: CallFilter,
1092
- fetchConfig?: MoveFetchConfig
1092
+ fetchConfig?: Partial<MoveFetchConfig>
1093
1093
  ): pay {
1094
1094
  this.onEntryFunctionCall(
1095
1095
  func,
@@ -1105,7 +1105,7 @@ export class pay extends SuiBaseProcessor {
1105
1105
  onEntrySplit(
1106
1106
  func: (call: pay.SplitPayload, ctx: SuiContext) => void,
1107
1107
  filter?: CallFilter,
1108
- fetchConfig?: MoveFetchConfig
1108
+ fetchConfig?: Partial<MoveFetchConfig>
1109
1109
  ): pay {
1110
1110
  this.onEntryFunctionCall(
1111
1111
  func,
@@ -1121,7 +1121,7 @@ export class pay extends SuiBaseProcessor {
1121
1121
  onEntrySplitAndTransfer(
1122
1122
  func: (call: pay.SplitAndTransferPayload, ctx: SuiContext) => void,
1123
1123
  filter?: CallFilter,
1124
- fetchConfig?: MoveFetchConfig
1124
+ fetchConfig?: Partial<MoveFetchConfig>
1125
1125
  ): pay {
1126
1126
  this.onEntryFunctionCall(
1127
1127
  func,
@@ -1137,7 +1137,7 @@ export class pay extends SuiBaseProcessor {
1137
1137
  onEntrySplitVec(
1138
1138
  func: (call: pay.SplitVecPayload, ctx: SuiContext) => void,
1139
1139
  filter?: CallFilter,
1140
- fetchConfig?: MoveFetchConfig
1140
+ fetchConfig?: Partial<MoveFetchConfig>
1141
1141
  ): pay {
1142
1142
  this.onEntryFunctionCall(
1143
1143
  func,
@@ -1234,7 +1234,7 @@ export class sui extends SuiBaseProcessor {
1234
1234
  onEntryTransfer(
1235
1235
  func: (call: sui.TransferPayload, ctx: SuiContext) => void,
1236
1236
  filter?: CallFilter,
1237
- fetchConfig?: MoveFetchConfig
1237
+ fetchConfig?: Partial<MoveFetchConfig>
1238
1238
  ): sui {
1239
1239
  this.onEntryFunctionCall(
1240
1240
  func,
@@ -159,7 +159,7 @@ export class staking_pool extends SuiBaseProcessor {
159
159
  onEntryJoinStakedSui(
160
160
  func: (call: staking_pool.JoinStakedSuiPayload, ctx: SuiContext) => void,
161
161
  filter?: CallFilter,
162
- fetchConfig?: MoveFetchConfig
162
+ fetchConfig?: Partial<MoveFetchConfig>
163
163
  ): staking_pool {
164
164
  this.onEntryFunctionCall(
165
165
  func,
@@ -175,7 +175,7 @@ export class staking_pool extends SuiBaseProcessor {
175
175
  onEntrySplitStakedSui(
176
176
  func: (call: staking_pool.SplitStakedSuiPayload, ctx: SuiContext) => void,
177
177
  filter?: CallFilter,
178
- fetchConfig?: MoveFetchConfig
178
+ fetchConfig?: Partial<MoveFetchConfig>
179
179
  ): staking_pool {
180
180
  this.onEntryFunctionCall(
181
181
  func,
@@ -282,7 +282,7 @@ export class sui_system extends SuiBaseProcessor {
282
282
  onEntryReportValidator(
283
283
  func: (call: sui_system.ReportValidatorPayload, ctx: SuiContext) => void,
284
284
  filter?: CallFilter,
285
- fetchConfig?: MoveFetchConfig
285
+ fetchConfig?: Partial<MoveFetchConfig>
286
286
  ): sui_system {
287
287
  this.onEntryFunctionCall(
288
288
  func,
@@ -298,7 +298,7 @@ export class sui_system extends SuiBaseProcessor {
298
298
  onEntryRequestAddStake(
299
299
  func: (call: sui_system.RequestAddStakePayload, ctx: SuiContext) => void,
300
300
  filter?: CallFilter,
301
- fetchConfig?: MoveFetchConfig
301
+ fetchConfig?: Partial<MoveFetchConfig>
302
302
  ): sui_system {
303
303
  this.onEntryFunctionCall(
304
304
  func,
@@ -317,7 +317,7 @@ export class sui_system extends SuiBaseProcessor {
317
317
  ctx: SuiContext
318
318
  ) => void,
319
319
  filter?: CallFilter,
320
- fetchConfig?: MoveFetchConfig
320
+ fetchConfig?: Partial<MoveFetchConfig>
321
321
  ): sui_system {
322
322
  this.onEntryFunctionCall(
323
323
  func,
@@ -336,7 +336,7 @@ export class sui_system extends SuiBaseProcessor {
336
336
  ctx: SuiContext
337
337
  ) => void,
338
338
  filter?: CallFilter,
339
- fetchConfig?: MoveFetchConfig
339
+ fetchConfig?: Partial<MoveFetchConfig>
340
340
  ): sui_system {
341
341
  this.onEntryFunctionCall(
342
342
  func,
@@ -355,7 +355,7 @@ export class sui_system extends SuiBaseProcessor {
355
355
  ctx: SuiContext
356
356
  ) => void,
357
357
  filter?: CallFilter,
358
- fetchConfig?: MoveFetchConfig
358
+ fetchConfig?: Partial<MoveFetchConfig>
359
359
  ): sui_system {
360
360
  this.onEntryFunctionCall(
361
361
  func,
@@ -374,7 +374,7 @@ export class sui_system extends SuiBaseProcessor {
374
374
  ctx: SuiContext
375
375
  ) => void,
376
376
  filter?: CallFilter,
377
- fetchConfig?: MoveFetchConfig
377
+ fetchConfig?: Partial<MoveFetchConfig>
378
378
  ): sui_system {
379
379
  this.onEntryFunctionCall(
380
380
  func,
@@ -393,7 +393,7 @@ export class sui_system extends SuiBaseProcessor {
393
393
  ctx: SuiContext
394
394
  ) => void,
395
395
  filter?: CallFilter,
396
- fetchConfig?: MoveFetchConfig
396
+ fetchConfig?: Partial<MoveFetchConfig>
397
397
  ): sui_system {
398
398
  this.onEntryFunctionCall(
399
399
  func,
@@ -412,7 +412,7 @@ export class sui_system extends SuiBaseProcessor {
412
412
  ctx: SuiContext
413
413
  ) => void,
414
414
  filter?: CallFilter,
415
- fetchConfig?: MoveFetchConfig
415
+ fetchConfig?: Partial<MoveFetchConfig>
416
416
  ): sui_system {
417
417
  this.onEntryFunctionCall(
418
418
  func,
@@ -428,7 +428,7 @@ export class sui_system extends SuiBaseProcessor {
428
428
  onEntryRequestSetGasPrice(
429
429
  func: (call: sui_system.RequestSetGasPricePayload, ctx: SuiContext) => void,
430
430
  filter?: CallFilter,
431
- fetchConfig?: MoveFetchConfig
431
+ fetchConfig?: Partial<MoveFetchConfig>
432
432
  ): sui_system {
433
433
  this.onEntryFunctionCall(
434
434
  func,
@@ -447,7 +447,7 @@ export class sui_system extends SuiBaseProcessor {
447
447
  ctx: SuiContext
448
448
  ) => void,
449
449
  filter?: CallFilter,
450
- fetchConfig?: MoveFetchConfig
450
+ fetchConfig?: Partial<MoveFetchConfig>
451
451
  ): sui_system {
452
452
  this.onEntryFunctionCall(
453
453
  func,
@@ -463,7 +463,7 @@ export class sui_system extends SuiBaseProcessor {
463
463
  onEntryRotateOperationCap(
464
464
  func: (call: sui_system.RotateOperationCapPayload, ctx: SuiContext) => void,
465
465
  filter?: CallFilter,
466
- fetchConfig?: MoveFetchConfig
466
+ fetchConfig?: Partial<MoveFetchConfig>
467
467
  ): sui_system {
468
468
  this.onEntryFunctionCall(
469
469
  func,
@@ -482,7 +482,7 @@ export class sui_system extends SuiBaseProcessor {
482
482
  ctx: SuiContext
483
483
  ) => void,
484
484
  filter?: CallFilter,
485
- fetchConfig?: MoveFetchConfig
485
+ fetchConfig?: Partial<MoveFetchConfig>
486
486
  ): sui_system {
487
487
  this.onEntryFunctionCall(
488
488
  func,
@@ -501,7 +501,7 @@ export class sui_system extends SuiBaseProcessor {
501
501
  ctx: SuiContext
502
502
  ) => void,
503
503
  filter?: CallFilter,
504
- fetchConfig?: MoveFetchConfig
504
+ fetchConfig?: Partial<MoveFetchConfig>
505
505
  ): sui_system {
506
506
  this.onEntryFunctionCall(
507
507
  func,
@@ -520,7 +520,7 @@ export class sui_system extends SuiBaseProcessor {
520
520
  ctx: SuiContext
521
521
  ) => void,
522
522
  filter?: CallFilter,
523
- fetchConfig?: MoveFetchConfig
523
+ fetchConfig?: Partial<MoveFetchConfig>
524
524
  ): sui_system {
525
525
  this.onEntryFunctionCall(
526
526
  func,
@@ -539,7 +539,7 @@ export class sui_system extends SuiBaseProcessor {
539
539
  ctx: SuiContext
540
540
  ) => void,
541
541
  filter?: CallFilter,
542
- fetchConfig?: MoveFetchConfig
542
+ fetchConfig?: Partial<MoveFetchConfig>
543
543
  ): sui_system {
544
544
  this.onEntryFunctionCall(
545
545
  func,
@@ -558,7 +558,7 @@ export class sui_system extends SuiBaseProcessor {
558
558
  ctx: SuiContext
559
559
  ) => void,
560
560
  filter?: CallFilter,
561
- fetchConfig?: MoveFetchConfig
561
+ fetchConfig?: Partial<MoveFetchConfig>
562
562
  ): sui_system {
563
563
  this.onEntryFunctionCall(
564
564
  func,
@@ -577,7 +577,7 @@ export class sui_system extends SuiBaseProcessor {
577
577
  ctx: SuiContext
578
578
  ) => void,
579
579
  filter?: CallFilter,
580
- fetchConfig?: MoveFetchConfig
580
+ fetchConfig?: Partial<MoveFetchConfig>
581
581
  ): sui_system {
582
582
  this.onEntryFunctionCall(
583
583
  func,
@@ -596,7 +596,7 @@ export class sui_system extends SuiBaseProcessor {
596
596
  ctx: SuiContext
597
597
  ) => void,
598
598
  filter?: CallFilter,
599
- fetchConfig?: MoveFetchConfig
599
+ fetchConfig?: Partial<MoveFetchConfig>
600
600
  ): sui_system {
601
601
  this.onEntryFunctionCall(
602
602
  func,
@@ -615,7 +615,7 @@ export class sui_system extends SuiBaseProcessor {
615
615
  ctx: SuiContext
616
616
  ) => void,
617
617
  filter?: CallFilter,
618
- fetchConfig?: MoveFetchConfig
618
+ fetchConfig?: Partial<MoveFetchConfig>
619
619
  ): sui_system {
620
620
  this.onEntryFunctionCall(
621
621
  func,
@@ -634,7 +634,7 @@ export class sui_system extends SuiBaseProcessor {
634
634
  ctx: SuiContext
635
635
  ) => void,
636
636
  filter?: CallFilter,
637
- fetchConfig?: MoveFetchConfig
637
+ fetchConfig?: Partial<MoveFetchConfig>
638
638
  ): sui_system {
639
639
  this.onEntryFunctionCall(
640
640
  func,
@@ -653,7 +653,7 @@ export class sui_system extends SuiBaseProcessor {
653
653
  ctx: SuiContext
654
654
  ) => void,
655
655
  filter?: CallFilter,
656
- fetchConfig?: MoveFetchConfig
656
+ fetchConfig?: Partial<MoveFetchConfig>
657
657
  ): sui_system {
658
658
  this.onEntryFunctionCall(
659
659
  func,
@@ -672,7 +672,7 @@ export class sui_system extends SuiBaseProcessor {
672
672
  ctx: SuiContext
673
673
  ) => void,
674
674
  filter?: CallFilter,
675
- fetchConfig?: MoveFetchConfig
675
+ fetchConfig?: Partial<MoveFetchConfig>
676
676
  ): sui_system {
677
677
  this.onEntryFunctionCall(
678
678
  func,
@@ -691,7 +691,7 @@ export class sui_system extends SuiBaseProcessor {
691
691
  ctx: SuiContext
692
692
  ) => void,
693
693
  filter?: CallFilter,
694
- fetchConfig?: MoveFetchConfig
694
+ fetchConfig?: Partial<MoveFetchConfig>
695
695
  ): sui_system {
696
696
  this.onEntryFunctionCall(
697
697
  func,
@@ -710,7 +710,7 @@ export class sui_system extends SuiBaseProcessor {
710
710
  ctx: SuiContext
711
711
  ) => void,
712
712
  filter?: CallFilter,
713
- fetchConfig?: MoveFetchConfig
713
+ fetchConfig?: Partial<MoveFetchConfig>
714
714
  ): sui_system {
715
715
  this.onEntryFunctionCall(
716
716
  func,
@@ -729,7 +729,7 @@ export class sui_system extends SuiBaseProcessor {
729
729
  ctx: SuiContext
730
730
  ) => void,
731
731
  filter?: CallFilter,
732
- fetchConfig?: MoveFetchConfig
732
+ fetchConfig?: Partial<MoveFetchConfig>
733
733
  ): sui_system {
734
734
  this.onEntryFunctionCall(
735
735
  func,
@@ -748,7 +748,7 @@ export class sui_system extends SuiBaseProcessor {
748
748
  ctx: SuiContext
749
749
  ) => void,
750
750
  filter?: CallFilter,
751
- fetchConfig?: MoveFetchConfig
751
+ fetchConfig?: Partial<MoveFetchConfig>
752
752
  ): sui_system {
753
753
  this.onEntryFunctionCall(
754
754
  func,
@@ -767,7 +767,7 @@ export class sui_system extends SuiBaseProcessor {
767
767
  ctx: SuiContext
768
768
  ) => void,
769
769
  filter?: CallFilter,
770
- fetchConfig?: MoveFetchConfig
770
+ fetchConfig?: Partial<MoveFetchConfig>
771
771
  ): sui_system {
772
772
  this.onEntryFunctionCall(
773
773
  func,
@@ -786,7 +786,7 @@ export class sui_system extends SuiBaseProcessor {
786
786
  ctx: SuiContext
787
787
  ) => void,
788
788
  filter?: CallFilter,
789
- fetchConfig?: MoveFetchConfig
789
+ fetchConfig?: Partial<MoveFetchConfig>
790
790
  ): sui_system {
791
791
  this.onEntryFunctionCall(
792
792
  func,
@@ -805,7 +805,7 @@ export class sui_system extends SuiBaseProcessor {
805
805
  ctx: SuiContext
806
806
  ) => void,
807
807
  filter?: CallFilter,
808
- fetchConfig?: MoveFetchConfig
808
+ fetchConfig?: Partial<MoveFetchConfig>
809
809
  ): sui_system {
810
810
  this.onEntryFunctionCall(
811
811
  func,
@@ -824,7 +824,7 @@ export class sui_system extends SuiBaseProcessor {
824
824
  ctx: SuiContext
825
825
  ) => void,
826
826
  filter?: CallFilter,
827
- fetchConfig?: MoveFetchConfig
827
+ fetchConfig?: Partial<MoveFetchConfig>
828
828
  ): sui_system {
829
829
  this.onEntryFunctionCall(
830
830
  func,
@@ -843,7 +843,7 @@ export class sui_system extends SuiBaseProcessor {
843
843
  ctx: SuiContext
844
844
  ) => void,
845
845
  filter?: CallFilter,
846
- fetchConfig?: MoveFetchConfig
846
+ fetchConfig?: Partial<MoveFetchConfig>
847
847
  ): sui_system {
848
848
  this.onEntryFunctionCall(
849
849
  func,
@@ -862,7 +862,7 @@ export class sui_system extends SuiBaseProcessor {
862
862
  ctx: SuiContext
863
863
  ) => void,
864
864
  filter?: CallFilter,
865
- fetchConfig?: MoveFetchConfig
865
+ fetchConfig?: Partial<MoveFetchConfig>
866
866
  ): sui_system {
867
867
  this.onEntryFunctionCall(
868
868
  func,
@@ -66,10 +66,10 @@ export class SuiBaseProcessor {
66
66
  public onMoveEvent(
67
67
  handler: (event: SuiEvent, ctx: SuiContext) => void,
68
68
  filter: EventFilter | EventFilter[],
69
- fetchConfig?: MoveFetchConfig
69
+ fetchConfig?: Partial<MoveFetchConfig>
70
70
  ): SuiBaseProcessor {
71
71
  let _filters: EventFilter[] = []
72
- const _fetchConfig = fetchConfig || MoveFetchConfig.fromPartial({})
72
+ const _fetchConfig = MoveFetchConfig.fromPartial(fetchConfig || {})
73
73
 
74
74
  if (Array.isArray(filter)) {
75
75
  _filters = filter
@@ -122,10 +122,10 @@ export class SuiBaseProcessor {
122
122
  public onEntryFunctionCall(
123
123
  handler: (call: MoveCallSuiTransaction, ctx: SuiContext) => void,
124
124
  filter: FunctionNameAndCallFilter | FunctionNameAndCallFilter[],
125
- fetchConfig?: MoveFetchConfig
125
+ fetchConfig?: Partial<MoveFetchConfig>
126
126
  ): SuiBaseProcessor {
127
127
  let _filters: FunctionNameAndCallFilter[] = []
128
- const _fetchConfig = fetchConfig || MoveFetchConfig.fromPartial({})
128
+ const _fetchConfig = MoveFetchConfig.fromPartial(fetchConfig || {})
129
129
 
130
130
  if (Array.isArray(filter)) {
131
131
  _filters = filter