@sentio/sdk 2.12.3 → 2.13.0-rc.2

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 (43) hide show
  1. package/lib/aptos/aptos-processor.d.ts +3 -3
  2. package/lib/aptos/aptos-processor.js +17 -12
  3. package/lib/aptos/aptos-processor.js.map +1 -1
  4. package/lib/aptos/builtin/0x1.d.ts +168 -168
  5. package/lib/aptos/builtin/0x1.js.map +1 -1
  6. package/lib/aptos/builtin/0x3.d.ts +35 -35
  7. package/lib/aptos/builtin/0x3.js.map +1 -1
  8. package/lib/aptos/context.d.ts +2 -1
  9. package/lib/aptos/context.js +4 -2
  10. package/lib/aptos/context.js.map +1 -1
  11. package/lib/move/abstract-codegen.js +2 -2
  12. package/lib/move/abstract-codegen.js.map +1 -1
  13. package/lib/sui/builtin/0x1.d.ts +6 -6
  14. package/lib/sui/builtin/0x1.js.map +1 -1
  15. package/lib/sui/builtin/0x2.d.ts +43 -43
  16. package/lib/sui/builtin/0x2.js.map +1 -1
  17. package/lib/sui/builtin/0x3.d.ts +43 -43
  18. package/lib/sui/builtin/0x3.js.map +1 -1
  19. package/lib/sui/context.d.ts +2 -1
  20. package/lib/sui/context.js +3 -1
  21. package/lib/sui/context.js.map +1 -1
  22. package/lib/sui/sui-processor.d.ts +2 -2
  23. package/lib/sui/sui-processor.js +15 -12
  24. package/lib/sui/sui-processor.js.map +1 -1
  25. package/lib/testing/aptos-facet.d.ts +2 -2
  26. package/lib/testing/aptos-facet.js +14 -21
  27. package/lib/testing/aptos-facet.js.map +1 -1
  28. package/lib/testing/sui-facet.d.ts +2 -2
  29. package/lib/testing/sui-facet.js +16 -26
  30. package/lib/testing/sui-facet.js.map +1 -1
  31. package/package.json +4 -4
  32. package/src/aptos/aptos-processor.ts +30 -23
  33. package/src/aptos/builtin/0x1.ts +168 -168
  34. package/src/aptos/builtin/0x3.ts +35 -35
  35. package/src/aptos/context.ts +5 -2
  36. package/src/move/abstract-codegen.ts +2 -2
  37. package/src/sui/builtin/0x1.ts +6 -6
  38. package/src/sui/builtin/0x2.ts +43 -43
  39. package/src/sui/builtin/0x3.ts +43 -43
  40. package/src/sui/context.ts +4 -1
  41. package/src/sui/sui-processor.ts +27 -22
  42. package/src/testing/aptos-facet.ts +13 -27
  43. package/src/testing/sui-facet.ts +15 -30
@@ -25,7 +25,7 @@ export declare class bcs extends SuiBaseProcessor {
25
25
  constructor(options: SuiBindOptions);
26
26
  static DEFAULT_OPTIONS: SuiBindOptions;
27
27
  static bind(options?: Partial<SuiBindOptions>): bcs;
28
- onEventBCS(func: (event: bcs.BCSInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): bcs;
28
+ onEventBCS(func: (event: bcs.BCSInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): bcs;
29
29
  }
30
30
  export declare namespace bcs {
31
31
  class BCS {
@@ -61,14 +61,14 @@ export declare class coin extends SuiBaseProcessor {
61
61
  constructor(options: SuiBindOptions);
62
62
  static DEFAULT_OPTIONS: SuiBindOptions;
63
63
  static bind(options?: Partial<SuiBindOptions>): coin;
64
- onEntryBurn(func: (call: coin.BurnPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): coin;
65
- onEntryJoin(func: (call: coin.JoinPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): coin;
66
- onEntryMintAndTransfer(func: (call: coin.MintAndTransferPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): coin;
67
- onEntryUpdateDescription(func: (call: coin.UpdateDescriptionPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): coin;
68
- onEntryUpdateIconUrl(func: (call: coin.UpdateIconUrlPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): coin;
69
- onEntryUpdateName(func: (call: coin.UpdateNamePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): coin;
70
- onEntryUpdateSymbol(func: (call: coin.UpdateSymbolPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): coin;
71
- onEventCurrencyCreated(func: (event: coin.CurrencyCreatedInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): coin;
64
+ onEntryBurn(func: (call: coin.BurnPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): coin;
65
+ onEntryJoin(func: (call: coin.JoinPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): coin;
66
+ onEntryMintAndTransfer(func: (call: coin.MintAndTransferPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): coin;
67
+ onEntryUpdateDescription(func: (call: coin.UpdateDescriptionPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): coin;
68
+ onEntryUpdateIconUrl(func: (call: coin.UpdateIconUrlPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): coin;
69
+ onEntryUpdateName(func: (call: coin.UpdateNamePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): coin;
70
+ onEntryUpdateSymbol(func: (call: coin.UpdateSymbolPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): coin;
71
+ onEventCurrencyCreated(func: (event: coin.CurrencyCreatedInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): coin;
72
72
  }
73
73
  export declare namespace coin {
74
74
  type Coin<T> = string;
@@ -147,14 +147,14 @@ export declare class display extends SuiBaseProcessor {
147
147
  constructor(options: SuiBindOptions);
148
148
  static DEFAULT_OPTIONS: SuiBindOptions;
149
149
  static bind(options?: Partial<SuiBindOptions>): display;
150
- onEntryAdd(func: (call: display.AddPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): display;
151
- onEntryAddMultiple(func: (call: display.AddMultiplePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): display;
152
- onEntryCreateAndKeep(func: (call: display.CreateAndKeepPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): display;
153
- onEntryEdit(func: (call: display.EditPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): display;
154
- onEntryRemove(func: (call: display.RemovePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): display;
155
- onEntryUpdateVersion(func: (call: display.UpdateVersionPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): display;
156
- onEventDisplayCreated(func: (event: display.DisplayCreatedInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): display;
157
- onEventVersionUpdated(func: (event: display.VersionUpdatedInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): display;
150
+ onEntryAdd(func: (call: display.AddPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): display;
151
+ onEntryAddMultiple(func: (call: display.AddMultiplePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): display;
152
+ onEntryCreateAndKeep(func: (call: display.CreateAndKeepPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): display;
153
+ onEntryEdit(func: (call: display.EditPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): display;
154
+ onEntryRemove(func: (call: display.RemovePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): display;
155
+ onEntryUpdateVersion(func: (call: display.UpdateVersionPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): display;
156
+ onEventDisplayCreated(func: (event: display.DisplayCreatedInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): display;
157
+ onEventVersionUpdated(func: (event: display.VersionUpdatedInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): display;
158
158
  }
159
159
  export declare namespace display {
160
160
  class Display<T0> {
@@ -221,7 +221,7 @@ export declare class dynamic_object_field extends SuiBaseProcessor {
221
221
  constructor(options: SuiBindOptions);
222
222
  static DEFAULT_OPTIONS: SuiBindOptions;
223
223
  static bind(options?: Partial<SuiBindOptions>): dynamic_object_field;
224
- onEventWrapper(func: (event: dynamic_object_field.WrapperInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): dynamic_object_field;
224
+ onEventWrapper(func: (event: dynamic_object_field.WrapperInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): dynamic_object_field;
225
225
  }
226
226
  export declare namespace dynamic_object_field {
227
227
  class Wrapper<T0> {
@@ -242,10 +242,10 @@ export declare class groth16 extends SuiBaseProcessor {
242
242
  constructor(options: SuiBindOptions);
243
243
  static DEFAULT_OPTIONS: SuiBindOptions;
244
244
  static bind(options?: Partial<SuiBindOptions>): groth16;
245
- onEventCurve(func: (event: groth16.CurveInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): groth16;
246
- onEventPreparedVerifyingKey(func: (event: groth16.PreparedVerifyingKeyInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): groth16;
247
- onEventProofPoints(func: (event: groth16.ProofPointsInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): groth16;
248
- onEventPublicProofInputs(func: (event: groth16.PublicProofInputsInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): groth16;
245
+ onEventCurve(func: (event: groth16.CurveInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): groth16;
246
+ onEventPreparedVerifyingKey(func: (event: groth16.PreparedVerifyingKeyInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): groth16;
247
+ onEventProofPoints(func: (event: groth16.ProofPointsInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): groth16;
248
+ onEventPublicProofInputs(func: (event: groth16.PublicProofInputsInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): groth16;
249
249
  }
250
250
  export declare namespace groth16 {
251
251
  class Curve {
@@ -291,10 +291,10 @@ export declare class kiosk extends SuiBaseProcessor {
291
291
  constructor(options: SuiBindOptions);
292
292
  static DEFAULT_OPTIONS: SuiBindOptions;
293
293
  static bind(options?: Partial<SuiBindOptions>): kiosk;
294
- onEventItem(func: (event: kiosk.ItemInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): kiosk;
295
- onEventItemListed(func: (event: kiosk.ItemListedInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): kiosk;
296
- onEventListing(func: (event: kiosk.ListingInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): kiosk;
297
- onEventLock(func: (event: kiosk.LockInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): kiosk;
294
+ onEventItem(func: (event: kiosk.ItemInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): kiosk;
295
+ onEventItemListed(func: (event: kiosk.ItemListedInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): kiosk;
296
+ onEventListing(func: (event: kiosk.ListingInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): kiosk;
297
+ onEventLock(func: (event: kiosk.LockInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): kiosk;
298
298
  }
299
299
  export declare namespace kiosk {
300
300
  class Item {
@@ -394,9 +394,9 @@ export declare class package_ extends SuiBaseProcessor {
394
394
  constructor(options: SuiBindOptions);
395
395
  static DEFAULT_OPTIONS: SuiBindOptions;
396
396
  static bind(options?: Partial<SuiBindOptions>): package_;
397
- onEntryMakeImmutable(func: (call: package_.MakeImmutablePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): package_;
398
- onEntryOnlyAdditiveUpgrades(func: (call: package_.OnlyAdditiveUpgradesPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): package_;
399
- onEntryOnlyDepUpgrades(func: (call: package_.OnlyDepUpgradesPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): package_;
397
+ onEntryMakeImmutable(func: (call: package_.MakeImmutablePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): package_;
398
+ onEntryOnlyAdditiveUpgrades(func: (call: package_.OnlyAdditiveUpgradesPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): package_;
399
+ onEntryOnlyDepUpgrades(func: (call: package_.OnlyDepUpgradesPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): package_;
400
400
  }
401
401
  export declare namespace package_ {
402
402
  class Publisher {
@@ -441,13 +441,13 @@ export declare class pay extends SuiBaseProcessor {
441
441
  constructor(options: SuiBindOptions);
442
442
  static DEFAULT_OPTIONS: SuiBindOptions;
443
443
  static bind(options?: Partial<SuiBindOptions>): pay;
444
- onEntryDivideAndKeep(func: (call: pay.DivideAndKeepPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): pay;
445
- onEntryJoin(func: (call: pay.JoinPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): pay;
446
- onEntryJoinVec(func: (call: pay.JoinVecPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): pay;
447
- onEntryJoinVecAndTransfer(func: (call: pay.JoinVecAndTransferPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): pay;
448
- onEntrySplit(func: (call: pay.SplitPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): pay;
449
- onEntrySplitAndTransfer(func: (call: pay.SplitAndTransferPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): pay;
450
- onEntrySplitVec(func: (call: pay.SplitVecPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): pay;
444
+ onEntryDivideAndKeep(func: (call: pay.DivideAndKeepPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): pay;
445
+ onEntryJoin(func: (call: pay.JoinPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): pay;
446
+ onEntryJoinVec(func: (call: pay.JoinVecPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): pay;
447
+ onEntryJoinVecAndTransfer(func: (call: pay.JoinVecAndTransferPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): pay;
448
+ onEntrySplit(func: (call: pay.SplitPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): pay;
449
+ onEntrySplitAndTransfer(func: (call: pay.SplitAndTransferPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): pay;
450
+ onEntrySplitVec(func: (call: pay.SplitVecPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): pay;
451
451
  }
452
452
  export declare namespace pay {
453
453
  interface DivideAndKeepPayload<T0 = any> extends TypedFunctionPayload<[SuiAddress | undefined, bigint | undefined]> {
@@ -506,7 +506,7 @@ export declare class sui extends SuiBaseProcessor {
506
506
  constructor(options: SuiBindOptions);
507
507
  static DEFAULT_OPTIONS: SuiBindOptions;
508
508
  static bind(options?: Partial<SuiBindOptions>): sui;
509
- onEntryTransfer(func: (call: sui.TransferPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui;
509
+ onEntryTransfer(func: (call: sui.TransferPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): sui;
510
510
  }
511
511
  export declare namespace sui {
512
512
  class SUI {
@@ -536,8 +536,8 @@ export declare class transfer_policy extends SuiBaseProcessor {
536
536
  constructor(options: SuiBindOptions);
537
537
  static DEFAULT_OPTIONS: SuiBindOptions;
538
538
  static bind(options?: Partial<SuiBindOptions>): transfer_policy;
539
- onEventRuleKey(func: (event: transfer_policy.RuleKeyInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): transfer_policy;
540
- onEventTransferPolicyCreated(func: (event: transfer_policy.TransferPolicyCreatedInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): transfer_policy;
539
+ onEventRuleKey(func: (event: transfer_policy.RuleKeyInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): transfer_policy;
540
+ onEventTransferPolicyCreated(func: (event: transfer_policy.TransferPolicyCreatedInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): transfer_policy;
541
541
  }
542
542
  export declare namespace transfer_policy {
543
543
  class RuleKey<T0> {
@@ -590,7 +590,7 @@ export declare class url extends SuiBaseProcessor {
590
590
  constructor(options: SuiBindOptions);
591
591
  static DEFAULT_OPTIONS: SuiBindOptions;
592
592
  static bind(options?: Partial<SuiBindOptions>): url;
593
- onEventUrl(func: (event: url.UrlInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): url;
593
+ onEventUrl(func: (event: url.UrlInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): url;
594
594
  }
595
595
  export declare namespace url {
596
596
  class Url {
@@ -606,8 +606,8 @@ export declare class vec_map extends SuiBaseProcessor {
606
606
  constructor(options: SuiBindOptions);
607
607
  static DEFAULT_OPTIONS: SuiBindOptions;
608
608
  static bind(options?: Partial<SuiBindOptions>): vec_map;
609
- onEventEntry(func: (event: vec_map.EntryInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): vec_map;
610
- onEventVecMap(func: (event: vec_map.VecMapInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): vec_map;
609
+ onEventEntry(func: (event: vec_map.EntryInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): vec_map;
610
+ onEventVecMap(func: (event: vec_map.VecMapInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): vec_map;
611
611
  }
612
612
  export declare namespace vec_map {
613
613
  class Entry<T0, T1> {
@@ -632,7 +632,7 @@ export declare class vec_set extends SuiBaseProcessor {
632
632
  constructor(options: SuiBindOptions);
633
633
  static DEFAULT_OPTIONS: SuiBindOptions;
634
634
  static bind(options?: Partial<SuiBindOptions>): vec_set;
635
- onEventVecSet(func: (event: vec_set.VecSetInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): vec_set;
635
+ onEventVecSet(func: (event: vec_set.VecSetInstance, ctx: SuiContext) => void, fetchConfig?: Partial<MoveFetchConfig>): vec_set;
636
636
  }
637
637
  export declare namespace vec_set {
638
638
  class VecSet<T0> {