@layerzerolabs/lz-sui-sdk-v2 3.0.134-sui.2 → 3.0.134

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 (95) hide show
  1. package/deployments/sui-sandbox-local/blocked_message_lib.json +25 -25
  2. package/deployments/sui-sandbox-local/blocked_msglib_ptb_builder.json +22 -22
  3. package/deployments/sui-sandbox-local/counter.json +44 -79
  4. package/deployments/sui-sandbox-local/dvn.json +19 -20
  5. package/deployments/sui-sandbox-local/dvn_fee_lib.json +26 -26
  6. package/deployments/sui-sandbox-local/dvn_layerzero.json +21 -21
  7. package/deployments/sui-sandbox-local/dvn_ptb_builder.json +13 -13
  8. package/deployments/sui-sandbox-local/endpoint_ptb_builder.json +29 -29
  9. package/deployments/sui-sandbox-local/endpoint_v2.json +25 -25
  10. package/deployments/sui-sandbox-local/executor.json +22 -23
  11. package/deployments/sui-sandbox-local/executor_call_type.json +28 -28
  12. package/deployments/sui-sandbox-local/executor_fee_lib.json +27 -27
  13. package/deployments/sui-sandbox-local/executor_layerzero.json +25 -25
  14. package/deployments/sui-sandbox-local/executor_ptb_builder.json +21 -21
  15. package/deployments/sui-sandbox-local/layerzero_views.json +13 -13
  16. package/deployments/sui-sandbox-local/message_lib_common.json +21 -21
  17. package/deployments/sui-sandbox-local/msglib_ptb_builder_call_types.json +13 -13
  18. package/deployments/sui-sandbox-local/oapp.json +13 -15
  19. package/deployments/sui-sandbox-local/object-BlockedMessageLib.json +5 -5
  20. package/deployments/sui-sandbox-local/object-BlockedMsglibPtbBuilder.json +5 -5
  21. package/deployments/sui-sandbox-local/object-Counter.json +5 -5
  22. package/deployments/sui-sandbox-local/object-CounterAdminCap.json +5 -5
  23. package/deployments/sui-sandbox-local/object-CounterOApp.json +5 -5
  24. package/deployments/sui-sandbox-local/object-DVN.json +2 -2
  25. package/deployments/sui-sandbox-local/object-DVNCap.json +3 -3
  26. package/deployments/sui-sandbox-local/object-DVNFeeLib.json +5 -5
  27. package/deployments/sui-sandbox-local/object-EndpointPtbBuilder.json +5 -5
  28. package/deployments/sui-sandbox-local/object-EndpointPtbBuilderAdminCap.json +5 -5
  29. package/deployments/sui-sandbox-local/object-EndpointV2.json +5 -5
  30. package/deployments/sui-sandbox-local/object-EndpointV2AdminCap.json +5 -5
  31. package/deployments/sui-sandbox-local/object-Executor.json +2 -2
  32. package/deployments/sui-sandbox-local/object-ExecutorCap.json +4 -4
  33. package/deployments/sui-sandbox-local/object-ExecutorFeeLib.json +5 -5
  34. package/deployments/sui-sandbox-local/object-ExecutorOwnerCap.json +2 -2
  35. package/deployments/sui-sandbox-local/object-PackageWhitelistValidator.json +5 -5
  36. package/deployments/sui-sandbox-local/object-PriceFeed.json +5 -5
  37. package/deployments/sui-sandbox-local/object-PriceFeedOwnerCap.json +5 -5
  38. package/deployments/sui-sandbox-local/object-SimpleMessageLib.json +5 -5
  39. package/deployments/sui-sandbox-local/object-SimpleMessageLibAdminCap.json +5 -5
  40. package/deployments/sui-sandbox-local/object-SmlPtbBuilder.json +5 -5
  41. package/deployments/sui-sandbox-local/object-Treasury.json +5 -5
  42. package/deployments/sui-sandbox-local/object-TreasuryAdminCap.json +5 -5
  43. package/deployments/sui-sandbox-local/object-ULN302.json +5 -5
  44. package/deployments/sui-sandbox-local/object-ULN302AdminCap.json +5 -5
  45. package/deployments/sui-sandbox-local/object-Uln302PtbBuilder.json +5 -5
  46. package/deployments/sui-sandbox-local/object-Uln302Verification.json +5 -5
  47. package/deployments/sui-sandbox-local/package_whitelist_validator.json +51 -51
  48. package/deployments/sui-sandbox-local/price_feed.json +43 -43
  49. package/deployments/sui-sandbox-local/price_feed_call_types.json +19 -19
  50. package/deployments/sui-sandbox-local/ptb_move_call.json +12 -12
  51. package/deployments/sui-sandbox-local/simple_message_lib.json +31 -31
  52. package/deployments/sui-sandbox-local/simple_msglib_ptb_builder.json +26 -26
  53. package/deployments/sui-sandbox-local/treasury.json +41 -41
  54. package/deployments/sui-sandbox-local/uln_302.json +34 -30
  55. package/deployments/sui-sandbox-local/uln_302_ptb_builder.json +22 -22
  56. package/deployments/sui-sandbox-local/worker_common.json +14 -15
  57. package/dist/index.cjs +364 -1139
  58. package/dist/index.cjs.map +1 -1
  59. package/dist/index.d.mts +343 -693
  60. package/dist/index.d.ts +343 -693
  61. package/dist/index.mjs +364 -1128
  62. package/dist/index.mjs.map +1 -1
  63. package/package.json +7 -7
  64. package/src/bcs/index.ts +1 -2
  65. package/src/generated/addresses.ts +51 -69
  66. package/src/module-manager.ts +3 -15
  67. package/src/modules/call.ts +6 -16
  68. package/src/modules/endpoint.ts +4 -12
  69. package/src/modules/message-libs/simple-message-lib.ts +2 -3
  70. package/src/modules/message-libs/uln302.ts +26 -28
  71. package/src/modules/oapps/counter.ts +50 -34
  72. package/src/modules/oapps/oapp.ts +74 -489
  73. package/src/modules/ptb-builders/endpoint-ptb-builder.ts +3 -9
  74. package/src/modules/ptb-builders/ptb-builder.ts +4 -19
  75. package/src/modules/ptb-builders/uln302-ptb-builder.ts +0 -5
  76. package/src/modules/workers/dvn-layerzero.ts +0 -9
  77. package/src/modules/workers/dvn.ts +6 -214
  78. package/src/modules/workers/executor-fee-lib.ts +3 -11
  79. package/src/modules/workers/executor-layerzero.ts +0 -9
  80. package/src/modules/workers/executor.ts +0 -115
  81. package/src/modules/workers/index.ts +0 -1
  82. package/src/modules/workers/treasury.ts +4 -4
  83. package/src/resource.ts +0 -3
  84. package/src/sdk.ts +2 -7
  85. package/src/types/endpoint.ts +1 -2
  86. package/src/types/modules.ts +0 -1
  87. package/src/types/options.ts +0 -15
  88. package/src/utils/transaction.ts +3 -3
  89. package/deployments/sui-sandbox-local/object-WorkerRegistry.json +0 -9
  90. package/deployments/sui-sandbox-local/sequential_multi_call.json +0 -45
  91. package/deployments/sui-sandbox-local/uln_common.json +0 -49
  92. package/deployments/sui-sandbox-local/worker_registry.json +0 -58
  93. package/src/bcs/oapp.ts +0 -14
  94. package/src/modules/workers/worker-registry.ts +0 -110
  95. package/src/types/oapp.ts +0 -6
package/dist/index.d.ts CHANGED
@@ -113,14 +113,6 @@ interface PackageOptions {
113
113
  * The blocked message library PTB builder object address.
114
114
  */
115
115
  blockedMessageLibPtbBuilder: string;
116
- /**
117
- * The worker registry address.
118
- */
119
- workerRegistry: string;
120
- /**
121
- * The worker common address.
122
- */
123
- workerCommon: string;
124
116
  /**
125
117
  * Allow additional properties beyond the explicitly defined ones
126
118
  */
@@ -242,10 +234,6 @@ interface ObjectOptions {
242
234
  * The default package whitelist validator object address.
243
235
  */
244
236
  packageWhitelistValidator: string;
245
- /**
246
- * The worker registry object address.
247
- */
248
- workerRegistry: string;
249
237
  /**
250
238
  * Allow additional properties beyond the explicitly defined ones
251
239
  */
@@ -306,8 +294,7 @@ declare enum Modules {
306
294
  PriceFeed = "priceFeed",
307
295
  Counter = "counter",
308
296
  DvnPtbBuilder = "dvnPtbBuilder",
309
- ExecutorPtbBuilder = "executorPtbBuilder",
310
- WorkerRegistry = "workerRegistry"
297
+ ExecutorPtbBuilder = "executorPtbBuilder"
311
298
  }
312
299
 
313
300
  /**
@@ -522,10 +509,6 @@ interface Timeout {
522
509
  /**
523
510
  * LayerZero protocol version constants
524
511
  */
525
- declare const OAppInfoVersion: {
526
- readonly VERSION_1: 1;
527
- readonly VERSION_2: 2;
528
- };
529
512
  declare const LzReceiveVersion: {
530
513
  readonly VERSION_1: 1;
531
514
  };
@@ -595,7 +578,7 @@ declare class ModuleManager {
595
578
  getTreasury(): Treasury;
596
579
  getLayerZeroViews(): LayerZeroViews;
597
580
  getPtbBuilder(): PtbBuilder;
598
- getOApp(client: SuiClient, callCapId: string, options?: ModuleOptions): OApp;
581
+ getOApp(): OApp;
599
582
  getCounter(client: SuiClient, options?: ModuleOptions): Counter;
600
583
  getExecutor(client: SuiClient, options?: ModuleOptions): Executor;
601
584
  getDvn(client: SuiClient, options?: ModuleOptions): DVN;
@@ -611,7 +594,6 @@ declare class ModuleManager {
611
594
  getEndpointPtbBuilder(client: SuiClient, options?: ModuleOptions): EndpointPtbBuilder;
612
595
  getSimpleMessageLibPtbBuilder(client: SuiClient, options?: ModuleOptions): SimpleMessageLibPtbBuilder;
613
596
  getBlockedMessageLibPtbBuilder(client: SuiClient, options?: ModuleOptions): BlockedMessageLibPtbBuilder;
614
- getWorkerRegistry(client: SuiClient, options?: ModuleOptions): WorkerRegistry;
615
597
  /**
616
598
  * Merge objects configuration with options, avoiding unnecessary object spreading
617
599
  */
@@ -662,21 +644,15 @@ declare const EndpointErrorCode: {
662
644
  readonly MessagingChannel_EPayloadHashNotFound: 9;
663
645
  readonly MessagingChannel_ESendReentrancy: 10;
664
646
  readonly MessagingChannel_EUninitializedChannel: 11;
665
- readonly MessagingComposer_EComposeExists: 1;
666
- readonly MessagingComposer_EComposeMessageMismatch: 2;
667
- readonly MessagingComposer_EComposeNotFound: 3;
668
- readonly MessagingComposer_EComposerNotRegistered: 4;
669
- readonly MessagingComposer_EComposerRegistered: 5;
670
- readonly MessagingComposer_EInvalidLZComposeInfo: 6;
671
647
  readonly OAppRegistry_EInvalidLZReceiveInfo: 1;
672
- readonly OAppRegistry_EOAppNotRegistered: 2;
673
- readonly OAppRegistry_EOAppRegistered: 3;
648
+ readonly OAppRegistry_EInvalidOriginalPackage: 2;
649
+ readonly OAppRegistry_EOAppNotRegistered: 3;
650
+ readonly OAppRegistry_EOAppRegistered: 4;
674
651
  readonly Endpoint_EAlreadyInitialized: 1;
675
652
  readonly Endpoint_EInvalidEid: 2;
676
653
  readonly Endpoint_ENotInitialized: 3;
677
654
  readonly Endpoint_ERefundAddressNotFound: 4;
678
- readonly Endpoint_EUnauthorizedOApp: 5;
679
- readonly Endpoint_EUnauthorizedSendLibrary: 6;
655
+ readonly Endpoint_EUnauthorizedSendLibrary: 5;
680
656
  };
681
657
  declare class Endpoint {
682
658
  #private;
@@ -1614,9 +1590,8 @@ declare class BlockedMessageLib {
1614
1590
  }
1615
1591
 
1616
1592
  declare const SimpleMessageLibErrorCode: {
1617
- readonly SimpleMessageLib_ENotImplemented: 1;
1593
+ readonly SimpleMessageLib_EConfigNotFound: 1;
1618
1594
  readonly SimpleMessageLib_EZROFeeNotEnabled: 2;
1619
- readonly SimpleMessageLib_EInvalidEid: 3;
1620
1595
  };
1621
1596
  declare class SimpleMessageLib {
1622
1597
  #private;
@@ -1723,22 +1698,10 @@ declare const Uln302ErrorCode: {
1723
1698
  readonly ReceiveUln302_EInvalidEid: 3;
1724
1699
  readonly ReceiveUln302_EOAppUlnConfigNotFound: 4;
1725
1700
  readonly ReceiveUln302_EVerifying: 5;
1726
- readonly Uln302_EInvalidConfigType: 1;
1727
- readonly Uln302_EInvalidMessagingChannel: 2;
1728
- readonly Uln302_EUnsupportedEid: 3;
1729
- readonly UlnConfig_EAtLeastOneDVN: 1;
1730
- readonly UlnConfig_EDuplicateOptionalDVNs: 2;
1731
- readonly UlnConfig_EDuplicateRequiredDVNs: 3;
1732
- readonly UlnConfig_EInvalidOptionalDVNCount: 4;
1733
- readonly UlnConfig_EInvalidOptionalDVNThreshold: 5;
1734
- readonly UlnConfig_EInvalidRequiredDVNCount: 6;
1735
- readonly UlnConfig_EInvalidUlnConfigBytes: 7;
1736
- readonly OAppUlnConfig_EInvalidConfirmations: 1;
1737
- readonly OAppUlnConfig_EInvalidRequiredDVNs: 2;
1738
- readonly OAppUlnConfig_EInvalidOptionalDVNs: 3;
1739
- readonly ExecutorConfig_EInvalidExecutorAddress: 1;
1740
- readonly ExecutorConfig_EInvalidExecutorBytes: 2;
1741
- readonly ExecutorConfig_EZeroMessageSize: 3;
1701
+ readonly Uln302_EEndpointInitialized: 1;
1702
+ readonly Uln302_EInvalidConfigType: 2;
1703
+ readonly Uln302_EInvalidMessagingChannel: 3;
1704
+ readonly Uln302_EUnsupportedEid: 4;
1742
1705
  };
1743
1706
  declare class Uln302 {
1744
1707
  #private;
@@ -1793,13 +1756,16 @@ declare class Uln302 {
1793
1756
  */
1794
1757
  setConfigMoveCall(tx: Transaction, call: TransactionArgument): void;
1795
1758
  /**
1796
- * Verify packet move call with DVN call (new API)
1797
- * Note: This is typically called by DVNs via Call objects, not directly by users
1759
+ * Verify packet move call with DVN signatures
1760
+ * Note: This is typically called by DVNs, not directly by users
1798
1761
  * @param tx - The transaction to add the move call to
1799
1762
  * @param verification - The verification object address or transaction argument
1800
- * @param call - The DVN verification call containing verification parameters
1763
+ * @param dvn - The DVN address performing verification or transaction argument
1764
+ * @param packetHeader - The packet header as bytes or transaction argument
1765
+ * @param payloadHash - The payload hash as bytes or transaction argument
1766
+ * @param confirmations - Required confirmations count or transaction argument
1801
1767
  */
1802
- verifyMoveCall(tx: Transaction, verification: string | TransactionArgument, call: TransactionArgument): void;
1768
+ verifyMoveCall(tx: Transaction, verification: string | TransactionArgument, dvn: string | TransactionArgument, packetHeader: Uint8Array | TransactionArgument, payloadHash: Uint8Array | TransactionArgument, confirmations: bigint | TransactionArgument): void;
1803
1769
  /**
1804
1770
  * Commit verification move call after all DVN verifications are complete
1805
1771
  * Note: This is typically called by relayers/executors, not directly by users
@@ -2051,17 +2017,6 @@ declare const DVNErrorCode: {
2051
2017
  readonly DVN_EEidNotSupported: 2;
2052
2018
  readonly DVN_EHashAlreadyUsed: 3;
2053
2019
  readonly DVN_EPtbBuilderAlreadyInitialized: 4;
2054
- readonly Multisig_EDuplicatedSigner: 1;
2055
- readonly Multisig_EInvalidSignatureLength: 2;
2056
- readonly Multisig_EInvalidSignerLength: 3;
2057
- readonly Multisig_EQuorumIsZero: 4;
2058
- readonly Multisig_ESignaturesLessThanQuorum: 5;
2059
- readonly Multisig_ESignerAlreadyExists: 6;
2060
- readonly Multisig_ESignerNotFound: 7;
2061
- readonly Multisig_ESignerNotInCommittee: 8;
2062
- readonly Multisig_ESignersSizeIsLessThanQuorum: 9;
2063
- readonly DVNInfoV1_EInvalidData: 1;
2064
- readonly DVNInfoV1_EInvalidVersion: 2;
2065
2020
  };
2066
2021
  declare class DVN {
2067
2022
  #private;
@@ -2146,16 +2101,6 @@ declare class DVN {
2146
2101
  * @returns Transaction result containing the set PTB builder call
2147
2102
  */
2148
2103
  setPtbBuilderMoveCallsMoveCall(tx: Transaction, adminCap: string | TransactionArgument, targetPtbBuilder: string | TransactionArgument, getFeeMoveCalls: TransactionArgument, assignJobMoveCalls: TransactionArgument, expiration: bigint | number | string | TransactionArgument, signatures: Uint8Array | TransactionArgument): TransactionResult;
2149
- /**
2150
- * Set supported message library (admin with signatures)
2151
- * @param tx - The transaction to add the move call to
2152
- * @param adminCap - The admin capability object ID
2153
- * @param messageLib - The message library address
2154
- * @param supported - Whether to support or remove support for the message library
2155
- * @param expiration - Signature expiration timestamp
2156
- * @param signatures - Multisig signatures for authorization
2157
- */
2158
- setSupportedMessageLibMoveCall(tx: Transaction, adminCap: string | TransactionArgument, messageLib: string | TransactionArgument, supported: boolean | TransactionArgument, expiration: bigint | number | string | TransactionArgument, signatures: Uint8Array | TransactionArgument): void;
2159
2104
  /**
2160
2105
  * Set allowlist status for an OApp sender (admin with signatures)
2161
2106
  * @param tx - The transaction to add the move call to
@@ -2214,18 +2159,17 @@ declare class DVN {
2214
2159
  */
2215
2160
  quorumChangeAdminMoveCall(tx: Transaction, admin: string | TransactionArgument, active: boolean | TransactionArgument, expiration: bigint | number | string | TransactionArgument, signatures: Uint8Array | TransactionArgument): void;
2216
2161
  /**
2217
- * Verify a packet with DVN signatures (admin with signatures) - returns Call object for ULN302
2162
+ * Verify a packet with DVN signatures (admin with signatures)
2218
2163
  * @param tx - The transaction to add the move call to
2219
2164
  * @param adminCap - The admin capability object ID
2220
- * @param targetMessageLib - The target message library address (usually ULN302)
2165
+ * @param verification - The verification object address
2221
2166
  * @param packetHeader - The packet header as bytes
2222
2167
  * @param payloadHash - The payload hash as bytes
2223
2168
  * @param confirmations - Required confirmations count
2224
2169
  * @param expiration - Signature expiration timestamp
2225
2170
  * @param signatures - DVN multisig signatures
2226
- * @returns Transaction result containing the verification Call object
2227
2171
  */
2228
- verifyMoveCall(tx: Transaction, adminCap: string | TransactionArgument, targetMessageLib: string | TransactionArgument, packetHeader: Uint8Array | TransactionArgument, payloadHash: Uint8Array | TransactionArgument, confirmations: bigint | number | string | TransactionArgument, expiration: bigint | number | string | TransactionArgument, signatures: Uint8Array | TransactionArgument): TransactionResult;
2172
+ verifyMoveCall(tx: Transaction, adminCap: string | TransactionArgument, verification: string | TransactionArgument, packetHeader: Uint8Array | TransactionArgument, payloadHash: Uint8Array | TransactionArgument, confirmations: bigint | number | string | TransactionArgument, expiration: bigint | number | string | TransactionArgument, signatures: Uint8Array | TransactionArgument): void;
2229
2173
  /**
2230
2174
  * Assign verification job for DVN (called via PTB with MultiCall created by send function in ULN302)
2231
2175
  * @param tx - The transaction to add the move call to
@@ -2350,19 +2294,6 @@ declare class DVN {
2350
2294
  * @returns Promise<boolean> - True if the address is an admin
2351
2295
  */
2352
2296
  isAdminAddress(admin: string): Promise<boolean>;
2353
- /**
2354
- * Check if a message library is supported by this DVN
2355
- * @param tx - The transaction to add the move call to
2356
- * @param messageLib - The message library address to check
2357
- * @returns Transaction result containing the support status
2358
- */
2359
- isSupportedMessageLibMoveCall(tx: Transaction, messageLib: string | TransactionArgument): TransactionResult;
2360
- /**
2361
- * Check if a message library is supported by this DVN
2362
- * @param messageLib - The message library address to check
2363
- * @returns Promise<boolean> - True if the message library is supported
2364
- */
2365
- isSupportedMessageLib(messageLib: string): Promise<boolean>;
2366
2297
  /**
2367
2298
  * Check if an address is allowlisted
2368
2299
  * @param tx - The transaction to add the move call to
@@ -2527,20 +2458,6 @@ declare class DVN {
2527
2458
  * @returns Promise<boolean> - True if the PTB builder has been initialized
2528
2459
  */
2529
2460
  isPtbBuilderInitialized(): Promise<boolean>;
2530
- /**
2531
- * Get DVN object address from worker registry using this DVN's worker capability (as a move call)
2532
- * This function chains Move calls to decode worker info and extract the DVN object address
2533
- * @param tx - The transaction to add the move call to
2534
- * @returns Transaction result containing the DVN object address
2535
- */
2536
- getDvnObjectAddressMoveCall(tx: Transaction): TransactionResult;
2537
- /**
2538
- * Get DVN object address from worker registry using this DVN's worker capability
2539
- * This function uses Move calls to decode worker info and extract the DVN object address
2540
- * @returns Promise<string> - The DVN object address
2541
- * @throws Will throw an error if worker info is not found or if decoding fails
2542
- */
2543
- getDvnObjectAddress(): Promise<string>;
2544
2461
  /**
2545
2462
  * Create a LayerZero witness for DVN package whitelist registration
2546
2463
  * @param tx - The transaction to add the move call to
@@ -2691,19 +2608,6 @@ declare class DVN {
2691
2608
  * @returns Transaction result containing the set PTB builder move calls hash
2692
2609
  */
2693
2610
  createSetPtbBuilderMoveCallsHashMoveCall(tx: Transaction, targetPtbBuilder: string | TransactionArgument, getFeeMoveCalls: TransactionArgument, assignJobMoveCalls: TransactionArgument, vid: number | TransactionArgument, expiration: bigint | number | string | TransactionArgument): TransactionResult;
2694
- /**
2695
- * Populate verify with DVN verification and ULN verify call
2696
- * @param tx - The transaction to add the move call to
2697
- * @param adminCap - The admin capability object ID
2698
- * @param targetMessageLib - The target message library address (usually ULN302)
2699
- * @param targetVerification - The verification object address for the target message library
2700
- * @param packetHeader - The packet header as bytes
2701
- * @param payloadHash - The payload hash as bytes
2702
- * @param confirmations - Required confirmations count
2703
- * @param expiration - Signature expiration timestamp
2704
- * @param signatures - DVN multisig signatures
2705
- */
2706
- populateVerify(tx: Transaction, adminCap: string | TransactionArgument, targetMessageLib: string, targetVerification: string, packetHeader: Uint8Array | TransactionArgument, payloadHash: Uint8Array | TransactionArgument, confirmations: bigint | number | string | TransactionArgument, expiration: bigint | number | string | TransactionArgument, signatures: Uint8Array | TransactionArgument): void;
2707
2611
  }
2708
2612
 
2709
2613
  declare const DVNFeeLibErrorCode: {
@@ -2743,9 +2647,6 @@ declare class DVNFeeLib {
2743
2647
  confirmGetFeeMoveCall(tx: Transaction, feelibCall: TransactionArgument, priceFeedCall: TransactionArgument): void;
2744
2648
  }
2745
2649
 
2746
- declare const DVNLayerzeroErrorCode: {
2747
- readonly DVNLayerzero_EWorkerCapNotFromPackage: 1;
2748
- };
2749
2650
  declare class DvnLayerZero {
2750
2651
  #private;
2751
2652
  private readonly moduleManager;
@@ -2759,7 +2660,6 @@ declare class DvnLayerZero {
2759
2660
  * @param workerCap - Worker capability object ID or transaction argument
2760
2661
  * @param vid - Verifier ID for the DVN or transaction argument
2761
2662
  * @param depositAddress - Address for fee deposits or transaction argument
2762
- * @param supportedMessageLibs - Array of supported message library addresses or transaction argument
2763
2663
  * @param priceFeed - Price feed object address or transaction argument
2764
2664
  * @param workerFeeLib - Worker fee library address or transaction argument
2765
2665
  * @param defaultMultiplierBps - Default multiplier in basis points or transaction argument
@@ -2767,14 +2667,12 @@ declare class DvnLayerZero {
2767
2667
  * @param signers - Array of signer public keys as bytes or transaction argument
2768
2668
  * @param quorum - Required signature threshold or transaction argument
2769
2669
  */
2770
- initDvnMoveCall(tx: Transaction, workerCap: string | TransactionArgument, vid: number | TransactionArgument, depositAddress: string | TransactionArgument, supportedMessageLibs: string[] | TransactionArgument, priceFeed: string | TransactionArgument, workerFeeLib: string | TransactionArgument, defaultMultiplierBps: number | TransactionArgument, admins: string[] | TransactionArgument, signers: Uint8Array[] | TransactionArgument, quorum: bigint | number | string | TransactionArgument): void;
2670
+ initDvnMoveCall(tx: Transaction, workerCap: string | TransactionArgument, vid: number | TransactionArgument, depositAddress: string | TransactionArgument, priceFeed: string | TransactionArgument, workerFeeLib: string | TransactionArgument, defaultMultiplierBps: number | TransactionArgument, admins: string[] | TransactionArgument, signers: Uint8Array[] | TransactionArgument, quorum: bigint | number | string | TransactionArgument): void;
2771
2671
  }
2772
2672
 
2773
2673
  declare const ExecutorErrorCode: {
2774
2674
  readonly Executor_EEidNotSupported: 1;
2775
2675
  readonly Executor_EInvalidNativeDropAmount: 2;
2776
- readonly ExecutorInfoV1_EInvalidData: 1;
2777
- readonly ExecutorInfoV1_EInvalidVersion: 2;
2778
2676
  };
2779
2677
  declare class Executor {
2780
2678
  #private;
@@ -2953,14 +2851,6 @@ declare class Executor {
2953
2851
  * @param active - Whether to grant or revoke admin role
2954
2852
  */
2955
2853
  setAdminMoveCall(tx: Transaction, ownerCap: string | TransactionArgument, admin: string | TransactionArgument, active: boolean | TransactionArgument): void;
2956
- /**
2957
- * Set supported message library (owner only)
2958
- * @param tx - The transaction to add the move call to
2959
- * @param ownerCap - The owner capability object ID
2960
- * @param messageLib - The message library address
2961
- * @param supported - Whether to support or remove support for the message library
2962
- */
2963
- setSupportedMessageLibMoveCall(tx: Transaction, ownerCap: string | TransactionArgument, messageLib: string | TransactionArgument, supported: boolean | TransactionArgument): void;
2964
2854
  /**
2965
2855
  * Set allowlist status for an OApp sender (owner only)
2966
2856
  * @param tx - The transaction to add the move call to
@@ -3080,19 +2970,6 @@ declare class Executor {
3080
2970
  * @returns Promise<boolean> - True if the address is an admin
3081
2971
  */
3082
2972
  isAdminAddress(admin: string): Promise<boolean>;
3083
- /**
3084
- * Check if a message library is supported by this executor
3085
- * @param tx - The transaction to add the move call to
3086
- * @param messageLib - The message library address to check
3087
- * @returns Transaction result containing the support status
3088
- */
3089
- isSupportedMessageLibMoveCall(tx: Transaction, messageLib: string | TransactionArgument): TransactionResult;
3090
- /**
3091
- * Check if a message library is supported by this executor
3092
- * @param messageLib - The message library address to check
3093
- * @returns Promise<boolean> - True if the message library is supported
3094
- */
3095
- isSupportedMessageLib(messageLib: string): Promise<boolean>;
3096
2973
  /**
3097
2974
  * Check if an address is allowlisted
3098
2975
  * @param tx - The transaction to add the move call to
@@ -3189,33 +3066,13 @@ declare class Executor {
3189
3066
  * @returns Promise<string> - The admin capability ID
3190
3067
  */
3191
3068
  adminCapId(admin: string): Promise<string>;
3192
- /**
3193
- * Get Executor object address from worker registry using this Executor's worker capability (as a move call)
3194
- * This function chains Move calls to decode worker info and extract the Executor object address
3195
- * @param tx - The transaction to add the move call to
3196
- * @returns Transaction result containing the Executor object address
3197
- */
3198
- getExecutorObjectAddressMoveCall(tx: Transaction): TransactionResult;
3199
- /**
3200
- * Get Executor object address from worker registry using this Executor's worker capability
3201
- * This function uses Move calls to decode worker info and extract the Executor object address
3202
- * @returns Promise<string> - The Executor object address
3203
- * @throws Will throw an error if worker info is not found or if decoding fails
3204
- */
3205
- getExecutorObjectAddress(): Promise<string>;
3206
3069
  private parseDstConfig;
3207
3070
  }
3208
3071
 
3209
3072
  declare const ExecutorFeeLibErrorCode: {
3210
3073
  readonly ExecutorFeeLib_EEidNotSupported: 1;
3211
- readonly ExecutorOption_ENoOptions: 1;
3212
- readonly ExecutorOption_EUnsupportedOptionType: 2;
3213
- readonly ExecutorOption_EZeroLzReceiveGasProvided: 3;
3214
- readonly ExecutorOption_EZeroLzComposeGasProvided: 4;
3215
- readonly ExecutorOption_ENativeAmountExceedsCap: 5;
3216
- readonly ExecutorOption_EInvalidLzReceiveOption: 6;
3217
- readonly ExecutorOption_EInvalidNativeDropOption: 7;
3218
- readonly ExecutorOption_EInvalidLzComposeOption: 8;
3074
+ readonly ExecutorFeeLib_EInvalidExecutor: 2;
3075
+ readonly ExecutorFeeLib_EExecutorAlreadySet: 3;
3219
3076
  };
3220
3077
  declare class ExecutorFeeLib {
3221
3078
  #private;
@@ -3248,9 +3105,6 @@ declare class ExecutorFeeLib {
3248
3105
  confirmGetFeeMoveCall(tx: Transaction, feelibCall: TransactionArgument, priceFeedCall: TransactionArgument): void;
3249
3106
  }
3250
3107
 
3251
- declare const ExecutorLayerzeroErrorCode: {
3252
- readonly ExecutorLayerzero_EWorkerCapNotFromPackage: 1;
3253
- };
3254
3108
  declare class ExecutorLayerZero {
3255
3109
  #private;
3256
3110
  private readonly moduleManager;
@@ -3263,14 +3117,13 @@ declare class ExecutorLayerZero {
3263
3117
  * @param tx - The transaction to add the move call to
3264
3118
  * @param workerCap - Worker capability object ID or transaction argument
3265
3119
  * @param depositAddress - Address for fee deposits or transaction argument
3266
- * @param supportedMessageLibs - Array of supported message library addresses or transaction argument
3267
3120
  * @param priceFeed - Price feed object address or transaction argument
3268
3121
  * @param workerFeeLib - Worker fee library address or transaction argument
3269
3122
  * @param defaultMultiplierBps - Default multiplier in basis points or transaction argument
3270
3123
  * @param owner - Owner address for the executor or transaction argument
3271
3124
  * @param admins - Array of admin addresses or transaction argument
3272
3125
  */
3273
- initExecutorMoveCall(tx: Transaction, workerCap: string | TransactionArgument, depositAddress: string | TransactionArgument, supportedMessageLibs: string[] | TransactionArgument, priceFeed: string | TransactionArgument, workerFeeLib: string | TransactionArgument, defaultMultiplierBps: number | TransactionArgument, owner: string | TransactionArgument, admins: string[] | TransactionArgument): void;
3126
+ initExecutorMoveCall(tx: Transaction, workerCap: string | TransactionArgument, depositAddress: string | TransactionArgument, priceFeed: string | TransactionArgument, workerFeeLib: string | TransactionArgument, defaultMultiplierBps: number | TransactionArgument, owner: string | TransactionArgument, admins: string[] | TransactionArgument): void;
3274
3127
  }
3275
3128
 
3276
3129
  declare const PriceFeedErrorCode: {
@@ -3485,9 +3338,9 @@ declare class PriceFeed {
3485
3338
  }
3486
3339
 
3487
3340
  declare const TreasuryErrorCode: {
3488
- readonly TREASURY_EInvalidFeeRecipient: 1;
3489
- readonly TREASURY_EInvalidNativeFeeBp: 2;
3490
- readonly TREASURY_EZroNotEnabled: 3;
3341
+ readonly TREASURY_EZroNotEnabled: 1;
3342
+ readonly TREASURY_EInvalidFeeRecipient: 2;
3343
+ readonly TREASURY_EInvalidNativeFeeBp: 3;
3491
3344
  };
3492
3345
  declare class Treasury {
3493
3346
  #private;
@@ -3598,55 +3451,6 @@ declare class Treasury {
3598
3451
  feeEnabled(): Promise<boolean>;
3599
3452
  }
3600
3453
 
3601
- declare const WorkerRegistryErrorCode: {
3602
- readonly EWorkerInfoInvalid: 1;
3603
- readonly EWorkerInfoNotFound: 2;
3604
- };
3605
- /**
3606
- * WorkerRegistry provides access to the worker registry contract functionality
3607
- * This module maintains mappings between worker addresses and their associated information.
3608
- */
3609
- declare class WorkerRegistry {
3610
- #private;
3611
- private readonly moduleManager;
3612
- packageId: string;
3613
- readonly client: SuiClient;
3614
- private readonly objects;
3615
- /**
3616
- * Create a new WorkerRegistry instance
3617
- * @param packageId - The package ID of the worker registry contract
3618
- * @param client - The Sui client instance
3619
- * @param objects - Object options containing contract object IDs
3620
- * @param moduleManager - Module manager for handling dependencies
3621
- */
3622
- constructor(packageId: string, client: SuiClient, objects: ObjectOptions, moduleManager: ModuleManager);
3623
- /**
3624
- * Get worker info for a specific worker address (as a move call)
3625
- * This creates a move call that can be used in a PTB (Programmable Transaction Block)
3626
- * @param tx - The transaction to add the move call to
3627
- * @param worker - The worker address or transaction argument
3628
- * @returns TransactionResult - The move call result containing worker info bytes
3629
- * @throws Will throw an error if worker info is not found (EWorkerInfoNotFound)
3630
- */
3631
- getWorkerInfoMoveCall(tx: Transaction, worker: string | TransactionArgument): TransactionResult;
3632
- /**
3633
- * Get worker info for a specific worker address
3634
- * Executes the get_worker_info function and returns the worker information bytes
3635
- * @param worker - The worker address to get info for
3636
- * @returns Promise<Uint8Array> - The worker information bytes containing encoded worker data
3637
- * @throws Will throw an error if worker info is not found (EWorkerInfoNotFound)
3638
- */
3639
- getWorkerInfo(worker: string): Promise<Uint8Array>;
3640
- /**
3641
- * Check if worker info exists for a specific worker address
3642
- * This is a convenience method that catches EWorkerInfoNotFound errors
3643
- * @param worker - The worker address to check
3644
- * @returns Promise<boolean> - True if worker info exists, false if not found
3645
- * @throws Will re-throw any errors other than EWorkerInfoNotFound
3646
- */
3647
- hasWorkerInfo(worker: string): Promise<boolean>;
3648
- }
3649
-
3650
3454
  declare class DvnPtbBuilder {
3651
3455
  #private;
3652
3456
  private readonly moduleManager;
@@ -3665,14 +3469,8 @@ declare class DvnPtbBuilder {
3665
3469
  buildDvnPtbMoveCall(tx: Transaction, dvnAddress: string | TransactionArgument, feelibAddress: string | TransactionArgument, priceFeedAddress: string | TransactionArgument): TransactionResult;
3666
3470
  }
3667
3471
 
3668
- declare const EndpointPtbBuilderErrorCode: {
3669
- readonly EndpointPtbBuilder_EBuilderNotFound: 1;
3670
- readonly EndpointPtbBuilder_EBuilderRegistered: 2;
3671
- readonly EndpointPtbBuilder_EBuilderUnsupported: 3;
3672
- readonly EndpointPtbBuilder_EInvalidBounds: 4;
3673
- readonly EndpointPtbBuilder_EInvalidBuilderAddress: 5;
3674
- readonly EndpointPtbBuilder_EInvalidLibrary: 6;
3675
- readonly EndpointPtbBuilder_EUnauthorized: 7;
3472
+ declare const LibBuilderManagerErrorCode: {
3473
+ readonly LibBuilderManager_EBuilderNotFound: 1;
3676
3474
  };
3677
3475
  declare class EndpointPtbBuilder {
3678
3476
  #private;
@@ -3948,11 +3746,6 @@ declare class PackageWhitelistValidator {
3948
3746
  validate(packageAddresses: string[]): Promise<boolean>;
3949
3747
  }
3950
3748
 
3951
- declare const PtbBuilderErrorCode: {
3952
- readonly MoveCallsBuilder_EInvalidMoveCallResult: 1;
3953
- readonly MoveCallsBuilder_EResultIDNotFound: 2;
3954
- readonly Argument_EInvalidArgument: 1;
3955
- };
3956
3749
  declare class PtbBuilder {
3957
3750
  #private;
3958
3751
  packageId: string;
@@ -4021,9 +3814,6 @@ declare class SimpleMessageLibPtbBuilder {
4021
3814
  getPtbBuilderInfoMoveCall(tx: Transaction): TransactionResult;
4022
3815
  }
4023
3816
 
4024
- declare const Uln302PtbBuilderErrorCode: {
4025
- readonly Uln302PtbBuilder_EWorkerPtbsNotFound: 1;
4026
- };
4027
3817
  declare class Uln302PtbBuilder {
4028
3818
  #private;
4029
3819
  private readonly moduleManager;
@@ -4124,260 +3914,39 @@ declare class BlockedMessageLibPtbBuilder {
4124
3914
  getPtbBuilderInfoMoveCall(tx: Transaction): TransactionResult;
4125
3915
  }
4126
3916
 
4127
- /**
4128
- * Type guard to check if a value is already a TransactionArgument
4129
- * TransactionArgument can be:
4130
- * 1. Argument object with $kind property
4131
- * 2. Synchronous function: (tx: Transaction) => Argument
4132
- * 3. Asynchronous function: AsyncTransactionThunk
4133
- */
4134
- declare function isTransactionArgument(value: unknown): value is TransactionArgument;
4135
- /**
4136
- * Convert value to TransactionArgument using a simple converter function
4137
- * @param value - The value to convert (primitive type or TransactionArgument)
4138
- * @param converter - Function to convert primitive type to TransactionArgument
4139
- * @returns TransactionArgument
4140
- */
4141
- declare function asArg<T>(value: T | TransactionArgument, converter: (val: T) => TransactionArgument): TransactionArgument;
4142
- /**
4143
- * Convert value to TransactionArgument using a converter that requires Transaction
4144
- * @param tx - The transaction
4145
- * @param value - The value to convert
4146
- * @param converter - Function to convert value using transaction
4147
- * @returns TransactionArgument
4148
- */
4149
- declare function asArgWithTx<T>(tx: Transaction, value: T | TransactionArgument, converter: (tx: Transaction, val: T) => TransactionArgument): TransactionArgument;
4150
- /**
4151
- * Async version: Convert value to TransactionArgument using an async converter that requires Transaction
4152
- * @param tx - The transaction
4153
- * @param value - The value to convert
4154
- * @param converter - Async function to convert value using transaction
4155
- * @returns Promise<TransactionArgument>
4156
- */
4157
- declare function asArgWithTxAsync<T>(tx: Transaction, value: T | TransactionArgument, converter: (tx: Transaction, val: T) => Promise<TransactionArgument>): Promise<TransactionArgument>;
4158
- /**
4159
- * Convert to object reference TransactionArgument
4160
- */
4161
- declare function asObject(tx: Transaction, value: string | TransactionArgument): TransactionArgument;
4162
- /**
4163
- * Convert to address TransactionArgument
4164
- */
4165
- declare function asAddress(tx: Transaction, value: string | TransactionArgument): TransactionArgument;
4166
- /**
4167
- * Convert to u8 TransactionArgument
4168
- */
4169
- declare function asU8(tx: Transaction, value: number | TransactionArgument): TransactionArgument;
4170
- /**
4171
- * Convert to u16 TransactionArgument
4172
- */
4173
- declare function asU16(tx: Transaction, value: number | TransactionArgument): TransactionArgument;
4174
- /**
4175
- * Convert to u32 TransactionArgument
4176
- */
4177
- declare function asU32(tx: Transaction, value: number | TransactionArgument): TransactionArgument;
4178
- /**
4179
- * Convert to u64 TransactionArgument (supports bigint, number, or string)
4180
- */
4181
- declare function asU64(tx: Transaction, value: bigint | number | string | TransactionArgument): TransactionArgument;
4182
- /**
4183
- * Convert to u128 TransactionArgument (supports bigint, number, or string)
4184
- */
4185
- declare function asU128(tx: Transaction, value: bigint | number | string | TransactionArgument): TransactionArgument;
4186
- /**
4187
- * Convert to u256 TransactionArgument (supports bigint, number, or string)
4188
- */
4189
- declare function asU256(tx: Transaction, value: bigint | number | string | TransactionArgument): TransactionArgument;
4190
- /**
4191
- * Convert Uint8Array to Bytes32 using moduleManager's fromBytesMoveCall
4192
- * @param tx - The transaction
4193
- * @param value - Uint8Array or TransactionArgument
4194
- * @param utils - utils Module
4195
- * @returns TransactionArgument
4196
- */
4197
- declare function asBytes32(tx: Transaction, value: Uint8Array | TransactionArgument, utils: Utils): TransactionArgument;
4198
- /**
4199
- * Convert Uint8Array to serialized bytes vector TransactionArgument
4200
- * @param tx - The transaction
4201
- * @param value - Uint8Array or TransactionArgument
4202
- * @returns TransactionArgument
4203
- */
4204
- declare function asBytes(tx: Transaction, value: Uint8Array | TransactionArgument): TransactionArgument;
4205
- /**
4206
- * Convert Uint8Array Vector to serialized bytes vector TransactionArgument
4207
- * @param tx - The transaction
4208
- * @param value - Uint8Array or TransactionArgument
4209
- * @returns TransactionArgument
4210
- */
4211
- declare function asBytesVector(tx: Transaction, value: Uint8Array[] | TransactionArgument): TransactionArgument;
4212
- /**
4213
- * Convert string to string TransactionArgument
4214
- * @param tx - The transaction
4215
- * @param value - string or TransactionArgument
4216
- * @returns TransactionArgument
4217
- */
4218
- declare function asString(tx: Transaction, value: string | TransactionArgument): TransactionArgument;
4219
- /**
4220
- * Convert address array to serialized vector<address> TransactionArgument
4221
- * @param tx - The transaction
4222
- * @param value - string[] or TransactionArgument
4223
- * @returns TransactionArgument
4224
- */
4225
- declare function asAddressVector(tx: Transaction, value: string[] | TransactionArgument): TransactionArgument;
4226
- /**
4227
- * Convert boolean to boolean TransactionArgument
4228
- * @param tx - The transaction
4229
- * @param value - boolean or TransactionArgument
4230
- * @returns TransactionArgument
4231
- */
4232
- declare function asBool(tx: Transaction, value: boolean | TransactionArgument): TransactionArgument;
4233
-
4234
- declare function simulateTransaction(suiClient: SuiClient, tx: Transaction, sender?: string): Promise<SimulateResult[]>;
4235
- declare function simulateTransactionMultiResult(suiClient: SuiClient, tx: Transaction, resultIndex: number[], sender?: string): Promise<SimulateResult[][]>;
4236
- declare function validateTransaction(client: SuiClient, signer: Keypair, tx: Transaction): Promise<SuiTransactionBlockResponse>;
4237
- /**
4238
- * Execute simulate using a moveCall function
4239
- * @param client - The Sui client
4240
- * @param moveCallFn - Function that adds moveCall to the transaction (supports both sync and async, any return type)
4241
- * @param parser - Function to parse the result
4242
- * @returns The parsed result
4243
- */
4244
- declare function executeSimulate<T>(client: SuiClient, moveCallFn: (tx: Transaction) => unknown, parser: (result: {
4245
- value: Uint8Array;
4246
- }[]) => T): Promise<T>;
4247
- declare function handleError(e: string): unknown;
4248
-
4249
- /**
4250
- * PackageAllowlistValidator ensures all function calls and objects belong to allowlisted packages
4251
- * This validator checks that:
4252
- * 1. All function calls target approved packages
4253
- * 2. All object arguments come from approved packages
4254
- *
4255
- * If local packageWhitelist is empty, it will use the PTB whitelist contract for validation
4256
- * If local packageWhitelist is provided, it will use only the local whitelist (contract is ignored)
4257
- */
4258
- declare class PackageAllowlistValidator implements IPTBValidator {
4259
- private packageWhitelist;
4260
- private validator?;
4261
- constructor(packageWhitelist?: string[], validator?: PackageWhitelistValidator);
4262
- /**
4263
- * Validates that all function calls and object arguments belong to whitelisted packages
4264
- * @param moveCallsWithDetails - Array of move calls with object details
4265
- * @throws Error if any function call or object belongs to a non-whitelisted package
4266
- */
4267
- validate(moveCallsWithDetails: MoveCallWithObjectDetails[]): Promise<void>;
3917
+ declare const CounterErrorCode: {
3918
+ readonly Counter_EInvalidMsgType: 0;
3919
+ readonly Counter_EInvalidValue: 1;
3920
+ readonly Counter_EInvalidNonce: 2;
3921
+ readonly Counter_EOnlyEndpoint: 3;
3922
+ readonly Counter_ESelfComposeOnly: 4;
3923
+ readonly Counter_EInvalidOApp: 5;
3924
+ readonly Counter_EInvalidAdminCap: 6;
3925
+ readonly Counter_EAlreadyInitialized: 7;
3926
+ };
3927
+ declare class Counter {
3928
+ #private;
3929
+ private readonly moduleManager;
3930
+ packageId: string;
3931
+ readonly client: SuiClient;
3932
+ private readonly objects;
3933
+ constructor(packageId: string, client: SuiClient, objects: ObjectOptions, moduleManager: ModuleManager);
4268
3934
  /**
4269
- * Validate multiple packages at once
4270
- * @param packages - Array of package IDs to validate
4271
- * @returns Object mapping package ID to validation result
3935
+ * Initialize counter with LayerZero receive and compose information
3936
+ * @param tx - The transaction to add the move call to
3937
+ * @param lzReceiveInfo - LayerZero receive information transaction argument
3938
+ * @param lzComposeInfo - LayerZero compose information transaction argument
4272
3939
  */
4273
- private validatePackages;
3940
+ initCounterMoveCall(tx: Transaction, lzReceiveInfo: TransactionArgument, lzComposeInfo: TransactionArgument): void;
4274
3941
  /**
4275
- * Extracts package ID from object type string
4276
- * Object types are in format: "packageId::module::struct<generics>"
4277
- * @param objectType - The object type string
4278
- * @returns The package ID or null if extraction fails
3942
+ * Quote messaging fees for sending counter increment
3943
+ * @param dstEid - Destination endpoint ID
3944
+ * @param msgType - Message type (SEND or SEND_AND_CALL)
3945
+ * @param options - Execution options as bytes
3946
+ * @param payInZero - Whether to pay in ZRO tokens
3947
+ * @returns Promise<MessagingFee> - The calculated messaging fees
4279
3948
  */
4280
- private extractPackageIdFromType;
4281
- /**
4282
- * Get available packages for error messages
4283
- */
4284
- private getAvailablePackagesList;
4285
- }
4286
-
4287
- /**
4288
- * NonSenderObjectValidator ensures objects are not owned by the transaction sender
4289
- *
4290
- * In Sui, this validator checks that objects are:
4291
- * - Shared: globally accessible, mutations require consensus
4292
- * - Immutable: can't change after creation
4293
- * - Owned by another address (not the sender)
4294
- *
4295
- * This prevents the sender from using their own owned objects in the transaction
4296
- */
4297
- declare class NonSenderObjectValidator implements IPTBValidator {
4298
- private sender;
4299
- constructor(sender: string);
4300
- /**
4301
- * Validates that objects are not owned by the sender
4302
- * @param moveCallsWithDetails - Array of move calls with object details
4303
- * @throws Error if any object is owned by the sender
4304
- */
4305
- validate(moveCallsWithDetails: MoveCallWithObjectDetails[]): void;
4306
- /**
4307
- * Checks if the ownership is valid (not owned by sender)
4308
- * @param owner - The object owner to check
4309
- * @returns true if ownership is valid (Shared, Immutable, or owned by another address)
4310
- */
4311
- private isValidOwnership;
4312
- /**
4313
- * Gets a human-readable description of the ownership type
4314
- * @param owner - The object owner
4315
- * @returns String description of ownership type
4316
- */
4317
- private getOwnershipType;
4318
- }
4319
-
4320
- /**
4321
- * ShareObjectValidator ensures all object arguments are Shared or Immutable
4322
- * This is the default validator for PTB operations
4323
- */
4324
- declare class ShareObjectValidator implements IPTBValidator {
4325
- /**
4326
- * Validates move calls with pre-fetched object details
4327
- * @param moveCallsWithDetails - Array of move calls with object details
4328
- * @throws Error if any object is not Shared/Immutable
4329
- */
4330
- validate(moveCallsWithDetails: MoveCallWithObjectDetails[]): void;
4331
- /**
4332
- * Checks if an object owner is Shared or Immutable
4333
- * @param owner - The object owner to check
4334
- * @returns true if the owner is Shared or Immutable, false otherwise
4335
- */
4336
- protected isSharedOrImmutable(owner: ObjectOwner): boolean;
4337
- }
4338
-
4339
- /**
4340
- * Validates move calls using multiple validators with a single object fetch
4341
- * @param client - SuiClient instance
4342
- * @param moveCalls - Array of move calls to validate
4343
- * @param validators - Array of validators to run
4344
- * @param options - Options for what object data to fetch
4345
- * @param batchSize - Batch size for object fetching
4346
- */
4347
- declare function validateWithDetails(client: SuiClient, moveCalls: MoveCall[], validators: IPTBValidator[], sender?: string, userOptions?: ObjectFetchOptions, batchSize?: number): Promise<void>;
4348
-
4349
- declare const CounterErrorCode: {
4350
- readonly Counter_EInvalidMsgType: 0;
4351
- readonly Counter_EInvalidValue: 1;
4352
- readonly Counter_EInvalidNonce: 2;
4353
- readonly Counter_EOnlyEndpoint: 3;
4354
- readonly Counter_ESelfComposeOnly: 4;
4355
- readonly Counter_EInvalidOApp: 5;
4356
- readonly OptionsBuilder_EInvalidSize: 1;
4357
- };
4358
- declare class Counter {
4359
- #private;
4360
- private readonly moduleManager;
4361
- packageId: string;
4362
- readonly client: SuiClient;
4363
- private readonly objects;
4364
- constructor(packageId: string, client: SuiClient, objects: ObjectOptions, moduleManager: ModuleManager);
4365
- /**
4366
- * Initialize counter with LayerZero receive and compose information
4367
- * @param tx - The transaction to add the move call to
4368
- * @param lzReceiveInfo - LayerZero receive information transaction argument
4369
- * @param lzComposeInfo - LayerZero compose information transaction argument
4370
- */
4371
- initCounterMoveCall(tx: Transaction, lzReceiveInfo: TransactionArgument, lzComposeInfo: TransactionArgument): void;
4372
- /**
4373
- * Quote messaging fees for sending counter increment
4374
- * @param dstEid - Destination endpoint ID
4375
- * @param msgType - Message type (SEND or SEND_AND_CALL)
4376
- * @param options - Execution options as bytes
4377
- * @param payInZero - Whether to pay in ZRO tokens
4378
- * @returns Promise<MessagingFee> - The calculated messaging fees
4379
- */
4380
- quote(dstEid: EndpointId | TransactionArgument, msgType: number | TransactionArgument, options: Uint8Array | TransactionArgument, payInZero: boolean | TransactionArgument, validators?: IPTBValidator[]): Promise<MessagingFee>;
3949
+ quote(dstEid: EndpointId | TransactionArgument, msgType: number | TransactionArgument, options: Uint8Array | TransactionArgument, payInZero: boolean | TransactionArgument): Promise<MessagingFee>;
4381
3950
  /**
4382
3951
  * Increment counter on destination chain
4383
3952
  * @param tx - The transaction to add the move call to
@@ -4390,24 +3959,27 @@ declare class Counter {
4390
3959
  * @param zroFee - ZRO token fee amount
4391
3960
  * @param refundAddress - Address for fee refunds
4392
3961
  */
4393
- incrementMoveCall(tx: Transaction, sender: string, dstEid: EndpointId | TransactionArgument, msgType: number | TransactionArgument, options: Uint8Array | TransactionArgument, sendValue: bigint | TransactionArgument, nativeFee: bigint | TransactionArgument, zroFee: bigint | TransactionArgument, refundAddress: string | TransactionArgument, validators?: IPTBValidator[]): Promise<void>;
3962
+ incrementMoveCall(tx: Transaction, sender: string, dstEid: EndpointId | TransactionArgument, msgType: number | TransactionArgument, options: Uint8Array | TransactionArgument, sendValue: bigint | TransactionArgument, nativeFee: bigint | TransactionArgument, zroFee: bigint | TransactionArgument, refundAddress: string | TransactionArgument): Promise<void>;
4394
3963
  /**
4395
- * Set LayerZero compose information for counter
3964
+ * Set peer counter on another chain
4396
3965
  * @param tx - The transaction to add the move call to
4397
- * @param lzComposeInfo - LayerZero compose information as bytes
3966
+ * @param messagingChannel - The messaging channel object ID or transaction argument
3967
+ * @param eid - The peer endpoint ID or transaction argument
3968
+ * @param peer - The peer counter address as bytes or transaction argument
4398
3969
  */
4399
- setLzComposeInfoMoveCall(tx: Transaction, lzComposeInfo: Uint8Array | TransactionArgument): void;
3970
+ setPeerMoveCall(tx: Transaction, messagingChannel: string | TransactionArgument, eid: number | TransactionArgument, peer: Uint8Array | TransactionArgument): void;
4400
3971
  /**
4401
- * Get counter EID
3972
+ * Set delegate for the counter
4402
3973
  * @param tx - The transaction to add the move call to
4403
- * @returns Transaction result containing the counter EID
3974
+ * @param newDelegate - The new delegate address or transaction argument
4404
3975
  */
4405
- getEidMoveCall(tx: Transaction): TransactionResult;
3976
+ setDelegateMoveCall(tx: Transaction, newDelegate: string | TransactionArgument): void;
4406
3977
  /**
4407
- * Get counter EID
4408
- * @returns Promise<number> - The counter EID
3978
+ * Set LayerZero compose information for counter
3979
+ * @param tx - The transaction to add the move call to
3980
+ * @param lzComposeInfo - LayerZero compose information as bytes
4409
3981
  */
4410
- getEid(): Promise<number>;
3982
+ setLzComposeInfoMoveCall(tx: Transaction, lzComposeInfo: Uint8Array | TransactionArgument): void;
4411
3983
  /**
4412
3984
  * Get call capability address for counter
4413
3985
  * @param tx - The transaction to add the move call to
@@ -4488,38 +4060,25 @@ declare class Counter {
4488
4060
  lzComposeInfoMoveCall(tx: Transaction): TransactionResult;
4489
4061
  }
4490
4062
 
4491
- interface OAppInfoV1 {
4492
- oapp_object: string;
4493
- next_nonce_info: number[];
4494
- lz_receive_info: number[];
4495
- extra_info: number[];
4496
- }
4497
-
4498
4063
  declare const OAppErrorCode: {
4499
- readonly OApp_EInvalidAdminCap: 1;
4500
- readonly OApp_EInvalidOAppCap: 2;
4501
- readonly OApp_EInvalidRefundAddress: 3;
4502
- readonly OApp_EInvalidSendingCall: 4;
4503
- readonly OApp_EOnlyEndpoint: 5;
4504
- readonly OApp_EOnlyPeer: 6;
4505
- readonly OApp_ESendingInProgress: 7;
4506
- readonly OAppPeer_EPeerNotFound: 0;
4507
- readonly OAppPeer_EInvalidPeer: 1;
4508
- readonly EnforcedOptions_EEnforcedOptionsNotFound: 1;
4509
- readonly EnforcedOptions_EInvalidOptionsLength: 2;
4510
- readonly EnforcedOptions_EInvalidOptionsType: 3;
4511
- readonly OAppInfoV1_EInvalidData: 1;
4512
- readonly OAppInfoV1_EInvalidVersion: 2;
4064
+ readonly OApp_EAlreadyInited: 1;
4065
+ readonly OApp_EChannelNotInited: 2;
4066
+ readonly OApp_EEndpointNotInited: 3;
4067
+ readonly OApp_EInvalidAdminCap: 4;
4068
+ readonly OApp_EInvalidCallCap: 5;
4069
+ readonly OApp_EOnlyEndpoint: 6;
4070
+ readonly OApp_EOnlyPeer: 7;
4071
+ readonly EndpointConfig_EInvalidAdminCap: 1;
4072
+ readonly EndpointConfig_EInvalidIntentType: 2;
4073
+ readonly EndpointConfig_EInvalidOAppCallCap: 3;
4513
4074
  };
4514
4075
  declare class OApp {
4515
4076
  #private;
4516
4077
  private readonly moduleManager;
4517
4078
  packageId: string;
4518
- oappCallCapId: string;
4519
4079
  readonly client: SuiClient;
4520
- oappInfo: OAppInfoV1 | null;
4521
4080
  private readonly objects;
4522
- constructor(packageId: string, oappCallCapId: string, client: SuiClient, objects: ObjectOptions, moduleManager: ModuleManager);
4081
+ constructor(packageId: string, client: SuiClient, objects: ObjectOptions, moduleManager: ModuleManager);
4523
4082
  /**
4524
4083
  * Set enforced options for OApp messaging
4525
4084
  * @param tx - The transaction to add the move call to
@@ -4529,7 +4088,7 @@ declare class OApp {
4529
4088
  * @param msgType - Message type or transaction argument
4530
4089
  * @param options - Enforced options as bytes or transaction argument
4531
4090
  */
4532
- setEnforcedOptionsMoveCall(tx: Transaction, eid: number | TransactionArgument, msgType: number | TransactionArgument, options: Uint8Array | TransactionArgument): Promise<void>;
4091
+ setEnforcedOptionsMoveCall(tx: Transaction, oapp: string | TransactionArgument, adminCap: string | TransactionArgument, eid: number | TransactionArgument, msgType: number | TransactionArgument, options: Uint8Array | TransactionArgument): void;
4533
4092
  /**
4534
4093
  * Set peer OApp on another chain
4535
4094
  * @param tx - The transaction to add the move call to
@@ -4538,33 +4097,33 @@ declare class OApp {
4538
4097
  * @param eid - Peer endpoint ID or transaction argument
4539
4098
  * @param peer - Peer OApp address as bytes or transaction argument
4540
4099
  */
4541
- setPeerMoveCall(tx: Transaction, eid: number | TransactionArgument, peer: Uint8Array | TransactionArgument): Promise<void>;
4100
+ setPeerMoveCall(tx: Transaction, oapp: string | TransactionArgument, adminCap: string | TransactionArgument, eid: number | TransactionArgument, peer: Uint8Array | TransactionArgument): void;
4542
4101
  /**
4543
- * Get admin capability address for OApp
4102
+ * Get admin address for OApp
4544
4103
  * @param tx - The transaction to add the move call to
4545
4104
  * @param oapp - The OApp object ID or transaction argument
4546
- * @returns Transaction result containing the admin capability address
4105
+ * @returns Transaction result containing the admin address
4547
4106
  */
4548
- getAdminCapMoveCall(tx: Transaction, oapp: string | TransactionArgument): TransactionResult;
4107
+ getAdminMoveCall(tx: Transaction, oapp: string | TransactionArgument): TransactionResult;
4549
4108
  /**
4550
- * Get admin capability address for OApp
4109
+ * Get admin address for OApp
4551
4110
  * @param oapp - The OApp object ID
4552
- * @returns Promise<string> - The admin capability address
4111
+ * @returns Promise<string> - The admin address
4553
4112
  */
4554
- getAdminCap(oapp: string): Promise<string>;
4113
+ getAdmin(oapp: string): Promise<string>;
4555
4114
  /**
4556
- * Get OApp CallCap identifier
4115
+ * Get OApp address (call capability ID)
4557
4116
  * @param tx - The transaction to add the move call to
4558
4117
  * @param oapp - The OApp object ID or transaction argument
4559
- * @returns Transaction result containing the OApp CallCap identifier
4118
+ * @returns Transaction result containing the OApp address
4560
4119
  */
4561
- getOAppCapIdMoveCall(tx: Transaction): Promise<TransactionResult>;
4120
+ getOAppAddressMoveCall(tx: Transaction, oapp: string | TransactionArgument): TransactionResult;
4562
4121
  /**
4563
- * Get OApp CallCap identifier
4564
- * @param oapp - The OApp object ID (optional, uses configured oapp if not provided)
4565
- * @returns Promise<string> - The OApp CallCap identifier
4122
+ * Get OApp address (call capability ID)
4123
+ * @param oapp - The OApp object ID
4124
+ * @returns Promise<string> - The OApp address
4566
4125
  */
4567
- getOAppCapId(): Promise<string>;
4126
+ getOAppAddress(oapp: string): Promise<string>;
4568
4127
  /**
4569
4128
  * Combine enforced options with extra options for message execution
4570
4129
  * @param tx - The transaction to add the move call to
@@ -4574,7 +4133,7 @@ declare class OApp {
4574
4133
  * @param extraOptions - Extra options to combine with enforced options or transaction argument
4575
4134
  * @returns Transaction result containing combined options
4576
4135
  */
4577
- combineOptionsMoveCall(tx: Transaction, eid: number | TransactionArgument, msgType: number | TransactionArgument, extraOptions: Uint8Array | TransactionArgument): Promise<TransactionResult>;
4136
+ combineOptionsMoveCall(tx: Transaction, oapp: string | TransactionArgument, eid: number | TransactionArgument, msgType: number | TransactionArgument, extraOptions: Uint8Array | TransactionArgument): TransactionResult;
4578
4137
  /**
4579
4138
  * Combine enforced options with extra options for message execution
4580
4139
  * @param oapp - The OApp object ID
@@ -4583,7 +4142,7 @@ declare class OApp {
4583
4142
  * @param extraOptions - Extra options to combine with enforced options
4584
4143
  * @returns Promise<Uint8Array> - Combined options as bytes
4585
4144
  */
4586
- combineOptions(eid: number, msgType: number, extraOptions: Uint8Array): Promise<Uint8Array>;
4145
+ combineOptions(oapp: string, eid: number, msgType: number, extraOptions: Uint8Array): Promise<Uint8Array>;
4587
4146
  /**
4588
4147
  * Get enforced options for a specific destination and message type
4589
4148
  * @param tx - The transaction to add the move call to
@@ -4592,7 +4151,7 @@ declare class OApp {
4592
4151
  * @param msgType - Message type or transaction argument
4593
4152
  * @returns Transaction result containing enforced options
4594
4153
  */
4595
- getEnforcedOptionsMoveCall(tx: Transaction, eid: number | TransactionArgument, msgType: number | TransactionArgument): Promise<TransactionResult>;
4154
+ getEnforcedOptionsMoveCall(tx: Transaction, oapp: string | TransactionArgument, eid: number | TransactionArgument, msgType: number | TransactionArgument): TransactionResult;
4596
4155
  /**
4597
4156
  * Get enforced options for a specific destination and message type
4598
4157
  * @param oapp - The OApp object ID
@@ -4600,7 +4159,7 @@ declare class OApp {
4600
4159
  * @param msgType - Message type
4601
4160
  * @returns Promise<Uint8Array> - Enforced options as bytes
4602
4161
  */
4603
- getEnforcedOptions(eid: number, msgType: number): Promise<Uint8Array>;
4162
+ getEnforcedOptions(oapp: string, eid: number, msgType: number): Promise<Uint8Array>;
4604
4163
  /**
4605
4164
  * Check if a peer is configured for a specific destination chain
4606
4165
  * @param tx - The transaction to add the move call to
@@ -4608,14 +4167,14 @@ declare class OApp {
4608
4167
  * @param dstEid - Destination endpoint ID or transaction argument
4609
4168
  * @returns Transaction result containing boolean result
4610
4169
  */
4611
- hasPeerMoveCall(tx: Transaction, dstEid: number | TransactionArgument): Promise<TransactionResult>;
4170
+ hasPeerMoveCall(tx: Transaction, oapp: string | TransactionArgument, dstEid: number | TransactionArgument): TransactionResult;
4612
4171
  /**
4613
4172
  * Check if a peer is configured for a specific destination chain
4614
4173
  * @param oapp - The OApp object ID
4615
4174
  * @param dstEid - Destination endpoint ID
4616
4175
  * @returns Promise<boolean> - True if peer is configured, false otherwise
4617
4176
  */
4618
- hasPeer(dstEid: number): Promise<boolean>;
4177
+ hasPeer(oapp: string, dstEid: number): Promise<boolean>;
4619
4178
  /**
4620
4179
  * Get the configured peer address for a specific destination chain
4621
4180
  * @param tx - The transaction to add the move call to
@@ -4623,111 +4182,14 @@ declare class OApp {
4623
4182
  * @param dstEid - Destination endpoint ID or transaction argument
4624
4183
  * @returns Transaction result containing peer address
4625
4184
  */
4626
- getPeerMoveCall(tx: Transaction, dstEid: number | TransactionArgument): Promise<TransactionResult>;
4185
+ getPeerMoveCall(tx: Transaction, oapp: string | TransactionArgument, dstEid: number | TransactionArgument): TransactionResult;
4627
4186
  /**
4628
4187
  * Get the configured peer address for a specific destination chain
4629
4188
  * @param oapp - The OApp object ID
4630
4189
  * @param dstEid - Destination endpoint ID
4631
4190
  * @returns Promise<Uint8Array> - Peer address as bytes32
4632
4191
  */
4633
- getPeer(dstEid: number): Promise<Uint8Array>;
4634
- getOAppInfoV1MoveCall(tx: Transaction): TransactionResult;
4635
- getOAppInfoV1(): Promise<OAppInfoV1>;
4636
- /**
4637
- * Register OApp with the endpoint
4638
- * @param tx - The transaction to add the move call to
4639
- * @param oappInfo - OApp information as bytes (optional)
4640
- * @returns Transaction result containing the messaging channel address
4641
- */
4642
- registerOAppMoveCall(tx: Transaction, oappInfo?: Uint8Array | TransactionArgument): Promise<TransactionResult>;
4643
- /**
4644
- * Set delegate for OApp
4645
- * @param tx - The transaction to add the move call to
4646
- * @param newDelegate - New delegate address
4647
- */
4648
- setDelegateMoveCall(tx: Transaction, newDelegate: string | TransactionArgument): Promise<void>;
4649
- /**
4650
- * Set OApp information in the endpoint
4651
- * @param tx - The transaction to add the move call to
4652
- * @param oappInfo - OApp information as bytes
4653
- */
4654
- setOAppInfoMoveCall(tx: Transaction, oappInfo: Uint8Array | TransactionArgument): Promise<void>;
4655
- /**
4656
- * Initialize channel with remote OApp
4657
- * @param tx - The transaction to add the move call to
4658
- * @param remoteEid - Remote endpoint ID
4659
- * @param remoteOApp - Remote OApp address as bytes32
4660
- */
4661
- initChannelMoveCall(tx: Transaction, remoteEid: number | TransactionArgument, remoteOApp: Uint8Array | TransactionArgument): Promise<void>;
4662
- /**
4663
- * Clear a message from the messaging channel
4664
- * @param tx - The transaction to add the move call to
4665
- * @param srcEid - Source endpoint ID
4666
- * @param sender - Sender address as bytes32
4667
- * @param nonce - Message nonce
4668
- * @param guid - Message GUID as bytes32
4669
- * @param message - Message payload
4670
- */
4671
- clearMoveCall(tx: Transaction, srcEid: number | TransactionArgument, sender: Uint8Array | TransactionArgument, nonce: number | bigint | TransactionArgument, guid: Uint8Array | TransactionArgument, message: Uint8Array | TransactionArgument): Promise<void>;
4672
- /**
4673
- * Skip a message in the messaging channel
4674
- * @param tx - The transaction to add the move call to
4675
- * @param srcEid - Source endpoint ID
4676
- * @param sender - Sender address as bytes32
4677
- * @param nonce - Message nonce
4678
- */
4679
- skipMoveCall(tx: Transaction, srcEid: number | TransactionArgument, sender: Uint8Array | TransactionArgument, nonce: number | bigint | TransactionArgument): Promise<void>;
4680
- /**
4681
- * Nilify a message in the messaging channel
4682
- * @param tx - The transaction to add the move call to
4683
- * @param srcEid - Source endpoint ID
4684
- * @param sender - Sender address as bytes32
4685
- * @param nonce - Message nonce
4686
- * @param payloadHash - Payload hash as bytes32
4687
- */
4688
- nilifyMoveCall(tx: Transaction, srcEid: number | TransactionArgument, sender: Uint8Array | TransactionArgument, nonce: number | bigint | TransactionArgument, payloadHash: Uint8Array | TransactionArgument): Promise<void>;
4689
- /**
4690
- * Burn a message in the messaging channel
4691
- * @param tx - The transaction to add the move call to
4692
- * @param srcEid - Source endpoint ID
4693
- * @param sender - Sender address as bytes32
4694
- * @param nonce - Message nonce
4695
- * @param payloadHash - Payload hash as bytes32
4696
- */
4697
- burnMoveCall(tx: Transaction, srcEid: number | TransactionArgument, sender: Uint8Array | TransactionArgument, nonce: number | bigint | TransactionArgument, payloadHash: Uint8Array | TransactionArgument): Promise<void>;
4698
- /**
4699
- * Set send library for a destination chain
4700
- * @param tx - The transaction to add the move call to
4701
- * @param dstEid - Destination endpoint ID
4702
- * @param sendLibrary - Send library address
4703
- */
4704
- setSendLibraryMoveCall(tx: Transaction, dstEid: number | TransactionArgument, sendLibrary: string | TransactionArgument): Promise<void>;
4705
- /**
4706
- * Set receive library for a source chain
4707
- * @param tx - The transaction to add the move call to
4708
- * @param srcEid - Source endpoint ID
4709
- * @param receiveLibrary - Receive library address
4710
- * @param gracePeriod - Grace period in seconds
4711
- */
4712
- setReceiveLibraryMoveCall(tx: Transaction, srcEid: number | TransactionArgument, receiveLibrary: string | TransactionArgument, gracePeriod: number | bigint | TransactionArgument): Promise<void>;
4713
- /**
4714
- * Set receive library timeout for a source chain
4715
- * @param tx - The transaction to add the move call to
4716
- * @param srcEid - Source endpoint ID
4717
- * @param receiveLibrary - Receive library address
4718
- * @param expiry - Expiry timestamp in seconds
4719
- */
4720
- setReceiveLibraryTimeoutMoveCall(tx: Transaction, srcEid: number | TransactionArgument, receiveLibrary: string | TransactionArgument, expiry: number | bigint | TransactionArgument): Promise<void>;
4721
- /**
4722
- * Set configuration for a message library
4723
- * @param tx - The transaction to add the move call to
4724
- * @param lib - Library address
4725
- * @param eid - Endpoint ID
4726
- * @param configType - Configuration type
4727
- * @param config - Configuration data as bytes
4728
- * @returns Transaction result containing Call<MessageLibSetConfigParam, Void>
4729
- */
4730
- setConfigMoveCall(tx: Transaction, lib: string | TransactionArgument, eid: number | TransactionArgument, configType: number | TransactionArgument, config: Uint8Array | TransactionArgument): Promise<TransactionResult>;
4192
+ getPeer(oapp: string, dstEid: number): Promise<Uint8Array>;
4731
4193
  }
4732
4194
 
4733
4195
  /**
@@ -4786,19 +4248,13 @@ declare class LayerZeroViews {
4786
4248
  }
4787
4249
 
4788
4250
  declare const CallErrorCode: {
4789
- readonly Call_ECallNotActive: 1;
4251
+ readonly Call_ECallNotCompletable: 1;
4790
4252
  readonly Call_ECallNotCompleted: 2;
4791
- readonly Call_ECallNotCreating: 3;
4253
+ readonly Call_ECallNotSealed: 3;
4792
4254
  readonly Call_ECallNotRoot: 4;
4793
- readonly Call_ECallNotWaiting: 5;
4794
- readonly Call_EInvalidChild: 6;
4795
- readonly Call_EInvalidNonce: 7;
4796
- readonly Call_EInvalidParent: 8;
4797
- readonly Call_EParameterNotMutable: 9;
4798
- readonly Call_EUnauthorized: 10;
4799
- readonly CallCap_EBadWitness: 1;
4800
- readonly MultiCall_ECalleeNotFound: 1;
4801
- readonly MultiCall_EUnauthorized: 2;
4255
+ readonly Call_ECallSealed: 5;
4256
+ readonly Call_EInvalidParent: 6;
4257
+ readonly Call_EUnauthorized: 7;
4802
4258
  };
4803
4259
  declare class Call {
4804
4260
  #private;
@@ -5325,6 +4781,228 @@ declare class Zro {
5325
4781
  noneOptionMoveCall(tx: Transaction): TransactionResult;
5326
4782
  }
5327
4783
 
4784
+ /**
4785
+ * Type guard to check if a value is already a TransactionArgument
4786
+ * TransactionArgument can be:
4787
+ * 1. Argument object with $kind property
4788
+ * 2. Synchronous function: (tx: Transaction) => Argument
4789
+ * 3. Asynchronous function: AsyncTransactionThunk
4790
+ */
4791
+ declare function isTransactionArgument(value: unknown): value is TransactionArgument;
4792
+ /**
4793
+ * Convert value to TransactionArgument using a simple converter function
4794
+ * @param value - The value to convert (primitive type or TransactionArgument)
4795
+ * @param converter - Function to convert primitive type to TransactionArgument
4796
+ * @returns TransactionArgument
4797
+ */
4798
+ declare function asArg<T>(value: T | TransactionArgument, converter: (val: T) => TransactionArgument): TransactionArgument;
4799
+ /**
4800
+ * Convert value to TransactionArgument using a converter that requires Transaction
4801
+ * @param tx - The transaction
4802
+ * @param value - The value to convert
4803
+ * @param converter - Function to convert value using transaction
4804
+ * @returns TransactionArgument
4805
+ */
4806
+ declare function asArgWithTx<T>(tx: Transaction, value: T | TransactionArgument, converter: (tx: Transaction, val: T) => TransactionArgument): TransactionArgument;
4807
+ /**
4808
+ * Async version: Convert value to TransactionArgument using an async converter that requires Transaction
4809
+ * @param tx - The transaction
4810
+ * @param value - The value to convert
4811
+ * @param converter - Async function to convert value using transaction
4812
+ * @returns Promise<TransactionArgument>
4813
+ */
4814
+ declare function asArgWithTxAsync<T>(tx: Transaction, value: T | TransactionArgument, converter: (tx: Transaction, val: T) => Promise<TransactionArgument>): Promise<TransactionArgument>;
4815
+ /**
4816
+ * Convert to object reference TransactionArgument
4817
+ */
4818
+ declare function asObject(tx: Transaction, value: string | TransactionArgument): TransactionArgument;
4819
+ /**
4820
+ * Convert to address TransactionArgument
4821
+ */
4822
+ declare function asAddress(tx: Transaction, value: string | TransactionArgument): TransactionArgument;
4823
+ /**
4824
+ * Convert to u8 TransactionArgument
4825
+ */
4826
+ declare function asU8(tx: Transaction, value: number | TransactionArgument): TransactionArgument;
4827
+ /**
4828
+ * Convert to u16 TransactionArgument
4829
+ */
4830
+ declare function asU16(tx: Transaction, value: number | TransactionArgument): TransactionArgument;
4831
+ /**
4832
+ * Convert to u32 TransactionArgument
4833
+ */
4834
+ declare function asU32(tx: Transaction, value: number | TransactionArgument): TransactionArgument;
4835
+ /**
4836
+ * Convert to u64 TransactionArgument (supports bigint, number, or string)
4837
+ */
4838
+ declare function asU64(tx: Transaction, value: bigint | number | string | TransactionArgument): TransactionArgument;
4839
+ /**
4840
+ * Convert to u128 TransactionArgument (supports bigint, number, or string)
4841
+ */
4842
+ declare function asU128(tx: Transaction, value: bigint | number | string | TransactionArgument): TransactionArgument;
4843
+ /**
4844
+ * Convert to u256 TransactionArgument (supports bigint, number, or string)
4845
+ */
4846
+ declare function asU256(tx: Transaction, value: bigint | number | string | TransactionArgument): TransactionArgument;
4847
+ /**
4848
+ * Convert Uint8Array to Bytes32 using moduleManager's fromBytesMoveCall
4849
+ * @param tx - The transaction
4850
+ * @param value - Uint8Array or TransactionArgument
4851
+ * @param utils - utils Module
4852
+ * @returns TransactionArgument
4853
+ */
4854
+ declare function asBytes32(tx: Transaction, value: Uint8Array | TransactionArgument, utils: Utils): TransactionArgument;
4855
+ /**
4856
+ * Convert Uint8Array to serialized bytes vector TransactionArgument
4857
+ * @param tx - The transaction
4858
+ * @param value - Uint8Array or TransactionArgument
4859
+ * @returns TransactionArgument
4860
+ */
4861
+ declare function asBytes(tx: Transaction, value: Uint8Array | TransactionArgument): TransactionArgument;
4862
+ /**
4863
+ * Convert Uint8Array Vector to serialized bytes vector TransactionArgument
4864
+ * @param tx - The transaction
4865
+ * @param value - Uint8Array or TransactionArgument
4866
+ * @returns TransactionArgument
4867
+ */
4868
+ declare function asBytesVector(tx: Transaction, value: Uint8Array[] | TransactionArgument): TransactionArgument;
4869
+ /**
4870
+ * Convert string to string TransactionArgument
4871
+ * @param tx - The transaction
4872
+ * @param value - string or TransactionArgument
4873
+ * @returns TransactionArgument
4874
+ */
4875
+ declare function asString(tx: Transaction, value: string | TransactionArgument): TransactionArgument;
4876
+ /**
4877
+ * Convert address array to serialized vector<address> TransactionArgument
4878
+ * @param tx - The transaction
4879
+ * @param value - string[] or TransactionArgument
4880
+ * @returns TransactionArgument
4881
+ */
4882
+ declare function asAddressVector(tx: Transaction, value: string[] | TransactionArgument): TransactionArgument;
4883
+ /**
4884
+ * Convert boolean to boolean TransactionArgument
4885
+ * @param tx - The transaction
4886
+ * @param value - boolean or TransactionArgument
4887
+ * @returns TransactionArgument
4888
+ */
4889
+ declare function asBool(tx: Transaction, value: boolean | TransactionArgument): TransactionArgument;
4890
+
4891
+ declare function simulateTransaction(suiClient: SuiClient, tx: Transaction, sender?: string): Promise<SimulateResult[]>;
4892
+ declare function simulateTransactionMultiResult(suiClient: SuiClient, tx: Transaction, resultIndex: number[], sender?: string): Promise<SimulateResult[][]>;
4893
+ declare function validateTransaction(client: SuiClient, signer: Keypair, tx: Transaction): Promise<SuiTransactionBlockResponse>;
4894
+ /**
4895
+ * Execute simulate using a moveCall function
4896
+ * @param client - The Sui client
4897
+ * @param moveCallFn - Function that adds moveCall to the transaction
4898
+ * @param parser - Function to parse the result
4899
+ * @returns The parsed result
4900
+ */
4901
+ declare function executeSimulate<T>(client: SuiClient, moveCallFn: (tx: Transaction) => void, parser: (result: {
4902
+ value: Uint8Array;
4903
+ }[]) => T): Promise<T>;
4904
+ declare function handleError(e: string): unknown;
4905
+
4906
+ /**
4907
+ * PackageAllowlistValidator ensures all function calls and objects belong to allowlisted packages
4908
+ * This validator checks that:
4909
+ * 1. All function calls target approved packages
4910
+ * 2. All object arguments come from approved packages
4911
+ *
4912
+ * If local packageWhitelist is empty, it will use the PTB whitelist contract for validation
4913
+ * If local packageWhitelist is provided, it will use only the local whitelist (contract is ignored)
4914
+ */
4915
+ declare class PackageAllowlistValidator implements IPTBValidator {
4916
+ private packageWhitelist;
4917
+ private validator?;
4918
+ constructor(packageWhitelist?: string[], validator?: PackageWhitelistValidator);
4919
+ /**
4920
+ * Validates that all function calls and object arguments belong to whitelisted packages
4921
+ * @param moveCallsWithDetails - Array of move calls with object details
4922
+ * @throws Error if any function call or object belongs to a non-whitelisted package
4923
+ */
4924
+ validate(moveCallsWithDetails: MoveCallWithObjectDetails[]): Promise<void>;
4925
+ /**
4926
+ * Validate multiple packages at once
4927
+ * @param packages - Array of package IDs to validate
4928
+ * @returns Object mapping package ID to validation result
4929
+ */
4930
+ private validatePackages;
4931
+ /**
4932
+ * Extracts package ID from object type string
4933
+ * Object types are in format: "packageId::module::struct<generics>"
4934
+ * @param objectType - The object type string
4935
+ * @returns The package ID or null if extraction fails
4936
+ */
4937
+ private extractPackageIdFromType;
4938
+ /**
4939
+ * Get available packages for error messages
4940
+ */
4941
+ private getAvailablePackagesList;
4942
+ }
4943
+
4944
+ /**
4945
+ * NonSenderObjectValidator ensures objects are not owned by the transaction sender
4946
+ *
4947
+ * In Sui, this validator checks that objects are:
4948
+ * - Shared: globally accessible, mutations require consensus
4949
+ * - Immutable: can't change after creation
4950
+ * - Owned by another address (not the sender)
4951
+ *
4952
+ * This prevents the sender from using their own owned objects in the transaction
4953
+ */
4954
+ declare class NonSenderObjectValidator implements IPTBValidator {
4955
+ private sender;
4956
+ constructor(sender: string);
4957
+ /**
4958
+ * Validates that objects are not owned by the sender
4959
+ * @param moveCallsWithDetails - Array of move calls with object details
4960
+ * @throws Error if any object is owned by the sender
4961
+ */
4962
+ validate(moveCallsWithDetails: MoveCallWithObjectDetails[]): void;
4963
+ /**
4964
+ * Checks if the ownership is valid (not owned by sender)
4965
+ * @param owner - The object owner to check
4966
+ * @returns true if ownership is valid (Shared, Immutable, or owned by another address)
4967
+ */
4968
+ private isValidOwnership;
4969
+ /**
4970
+ * Gets a human-readable description of the ownership type
4971
+ * @param owner - The object owner
4972
+ * @returns String description of ownership type
4973
+ */
4974
+ private getOwnershipType;
4975
+ }
4976
+
4977
+ /**
4978
+ * ShareObjectValidator ensures all object arguments are Shared or Immutable
4979
+ * This is the default validator for PTB operations
4980
+ */
4981
+ declare class ShareObjectValidator implements IPTBValidator {
4982
+ /**
4983
+ * Validates move calls with pre-fetched object details
4984
+ * @param moveCallsWithDetails - Array of move calls with object details
4985
+ * @throws Error if any object is not Shared/Immutable
4986
+ */
4987
+ validate(moveCallsWithDetails: MoveCallWithObjectDetails[]): void;
4988
+ /**
4989
+ * Checks if an object owner is Shared or Immutable
4990
+ * @param owner - The object owner to check
4991
+ * @returns true if the owner is Shared or Immutable, false otherwise
4992
+ */
4993
+ protected isSharedOrImmutable(owner: ObjectOwner): boolean;
4994
+ }
4995
+
4996
+ /**
4997
+ * Validates move calls using multiple validators with a single object fetch
4998
+ * @param client - SuiClient instance
4999
+ * @param moveCalls - Array of move calls to validate
5000
+ * @param validators - Array of validators to run
5001
+ * @param options - Options for what object data to fetch
5002
+ * @param batchSize - Batch size for object fetching
5003
+ */
5004
+ declare function validateWithDetails(client: SuiClient, moveCalls: MoveCall[], validators: IPTBValidator[], sender?: string, userOptions?: ObjectFetchOptions, batchSize?: number): Promise<void>;
5005
+
5328
5006
  declare const PACKAGE_UTILS_ADDRESS: {
5329
5007
  [stage in Stage]?: string;
5330
5008
  };
@@ -5403,12 +5081,6 @@ declare const PACKAGE_BLOCKED_MESSAGE_LIB_ADDRESS: {
5403
5081
  declare const PACKAGE_BLOCKED_MESSAGE_LIB_PTB_BUILDER_ADDRESS: {
5404
5082
  [stage in Stage]?: string;
5405
5083
  };
5406
- declare const PACKAGE_WORKER_REGISTRY_ADDRESS: {
5407
- [stage in Stage]?: string;
5408
- };
5409
- declare const PACKAGE_WORKER_COMMON_ADDRESS: {
5410
- [stage in Stage]?: string;
5411
- };
5412
5084
  declare const OBJECT_ENDPOINT_V2_ADDRESS: {
5413
5085
  [stage in Stage]?: string;
5414
5086
  };
@@ -5502,9 +5174,6 @@ declare const OBJECT_PRICE_FEED_OWNER_CAP_ADDRESS: {
5502
5174
  declare const OBJECT_PACKAGE_WHITELIST_VALIDATOR_ADDRESS: {
5503
5175
  [stage in Stage]?: string;
5504
5176
  };
5505
- declare const OBJECT_WORKER_REGISTRY_ADDRESS: {
5506
- [stage in Stage]?: string;
5507
- };
5508
5177
 
5509
5178
  /**
5510
5179
  * The SDK class provides methods to interact with LayerZero on Sui.
@@ -5531,7 +5200,7 @@ declare class SDK {
5531
5200
  getPtbBuilder(): PtbBuilder;
5532
5201
  getTreasury(): Treasury;
5533
5202
  getLayerZeroViews(): LayerZeroViews;
5534
- getOApp(callCapId: string, options?: ModuleOptions): OApp;
5203
+ getOApp(): OApp;
5535
5204
  getCounter(options?: ModuleOptions): Counter;
5536
5205
  getExecutor(options?: ModuleOptions): Executor;
5537
5206
  getDvn(options?: ModuleOptions): DVN;
@@ -5547,7 +5216,6 @@ declare class SDK {
5547
5216
  getEndpointPtbBuilder(options?: ModuleOptions): EndpointPtbBuilder;
5548
5217
  getSimpleMessageLibPtbBuilder(options?: ModuleOptions): SimpleMessageLibPtbBuilder;
5549
5218
  getBlockedMessageLibPtbBuilder(options?: ModuleOptions): BlockedMessageLibPtbBuilder;
5550
- getWorkerRegistry(options?: ModuleOptions): WorkerRegistry;
5551
5219
  getOrCreateModule<T>(moduleName: string, options: ModuleOptions | undefined, factory: () => T): T;
5552
5220
  }
5553
5221
 
@@ -5561,14 +5229,6 @@ declare const DvnDstConfigBcs: _mysten_sui_dist_cjs_bcs.BcsType<{
5561
5229
  floor_margin_usd: string | number | bigint;
5562
5230
  }>;
5563
5231
 
5564
- declare const TimeoutBcs: _mysten_sui_dist_cjs_bcs.BcsType<{
5565
- expiry: string;
5566
- fallback_lib: string;
5567
- }, {
5568
- expiry: string | number | bigint;
5569
- fallback_lib: any;
5570
- }>;
5571
-
5572
5232
  declare const Bytes32Bcs: _mysten_sui_dist_cjs_bcs.BcsType<{
5573
5233
  bytes: number[];
5574
5234
  }, {
@@ -5743,24 +5403,6 @@ declare const VectorMoveCallBCS: _mysten_sui_dist_cjs_bcs.BcsType<{
5743
5403
  length: number;
5744
5404
  }>;
5745
5405
 
5746
- declare const OAppInfoV1Bcs: _mysten_sui_dist_cjs_bcs.BcsType<{
5747
- oapp_object: string;
5748
- next_nonce_info: number[];
5749
- lz_receive_info: number[];
5750
- extra_info: number[];
5751
- }, {
5752
- oapp_object: any;
5753
- next_nonce_info: Iterable<number> & {
5754
- length: number;
5755
- };
5756
- lz_receive_info: Iterable<number> & {
5757
- length: number;
5758
- };
5759
- extra_info: Iterable<number> & {
5760
- length: number;
5761
- };
5762
- }>;
5763
-
5764
5406
  declare const PriceBcs: _mysten_sui_dist_cjs_bcs.BcsType<{
5765
5407
  price_ratio: string;
5766
5408
  gas_price_in_unit: string;
@@ -5828,4 +5470,12 @@ declare const OAppUlnConfigBcs: _mysten_sui_dist_cjs_bcs.BcsType<{
5828
5470
  };
5829
5471
  }>;
5830
5472
 
5831
- export { ALL_EXECUTOR_OPTION_TYPES, type ArbitrumPriceExt, ArbitrumPriceExtBcs, type Argument, ArgumentBCS, BlockedMessageLib, BlockedMessageLibErrorCode, BlockedMessageLibPtbBuilder, type BuilderPlaceholderInfo, Bytes32Bcs, CONFIG_TYPE, Call, CallErrorCode, CallTypeName, Counter, CounterErrorCode, DEFAULT_SIMULATION_TIMES, DVN, DVNErrorCode, DVNFeeLib, DVNFeeLibErrorCode, DVNLayerzeroErrorCode, type DstConfig, DstConfigBcs, type DvnDstConfig, DvnDstConfigBcs, DvnLayerZero, DvnPtbBuilder, Endpoint, EndpointErrorCode, EndpointExecutionState, type EndpointExecutionStateType, EndpointPtbBuilder, EndpointPtbBuilderErrorCode, type ExecutableParams, Executor, type ExecutorConfig, ExecutorConfigBcs, ExecutorErrorCode, ExecutorFeeLib, ExecutorFeeLibErrorCode, ExecutorLayerZero, ExecutorLayerzeroErrorCode, ExecutorOptionType, ExecutorPtbBuilder, type Function, FunctionBCS, type IPTBValidator, type InitializableParams, LayerZeroViews, LzComposeVersion, LzReceiveVersion, LzTypeName, MAX_BATCH_SIZE, MessageLibType, type MessagingFee, MessagingFeeBcs, ModelType, ModelTypeBcs, type ModuleOptions, Modules, MoveAbortError, type MoveCall, MoveCallBCS, type NativeDropParams, NativeDropParamsBcs, NonSenderObjectValidator, OApp, OAppErrorCode, OAppInfoV1Bcs, OAppInfoVersion, type OAppUlnConfig, OAppUlnConfigBcs, OBJECT_BLOCKED_MESSAGE_LIB_ADDRESS, OBJECT_BLOCKED_MESSAGE_LIB_PTB_BUILDER_ADDRESS, OBJECT_COUNTER_ADDRESS, OBJECT_COUNTER_ADMIN_CAP_ADDRESS, OBJECT_COUNTER_OAPP_ADDRESS, OBJECT_DISCOVERY_ADDRESS, OBJECT_DVN_ADDRESS, OBJECT_DVN_CAP_ADDRESS, OBJECT_DVN_FEE_LIB_ADDRESS, OBJECT_DVN_FEE_LIB_ADMIN_CAP_ADDRESS, OBJECT_ENDPOINT_ADMIN_CAP_ADDRESS, OBJECT_ENDPOINT_PTB_BUILDER_ADDRESS, OBJECT_ENDPOINT_PTB_BUILDER_ADMIN_CAP_ADDRESS, OBJECT_ENDPOINT_V2_ADDRESS, OBJECT_EXECUTOR_ADDRESS, OBJECT_EXECUTOR_CAP_ADDRESS, OBJECT_EXECUTOR_FEE_LIB_ADDRESS, OBJECT_EXECUTOR_FEE_LIB_ADMIN_CAP_ADDRESS, OBJECT_EXECUTOR_OWNER_CAP_ADDRESS, OBJECT_PACKAGE_WHITELIST_VALIDATOR_ADDRESS, OBJECT_PRICE_FEED_ADDRESS, OBJECT_PRICE_FEED_OWNER_CAP_ADDRESS, OBJECT_SIMPLE_MESSAGE_LIB_ADDRESS, OBJECT_SIMPLE_MESSAGE_LIB_ADMIN_CAP_ADDRESS, OBJECT_SIMPLE_MESSAGE_LIB_PTB_BUILDER_ADDRESS, OBJECT_TREASURY_ADDRESS, OBJECT_TREASURY_ADMIN_CAP_ADDRESS, OBJECT_ULN_302_ADDRESS, OBJECT_ULN_302_ADMIN_CAP_ADDRESS, OBJECT_ULN_302_PTB_BUILDER_ADDRESS, OBJECT_ULN_302_VERIFICATION_ADDRESS, OBJECT_WORKER_REGISTRY_ADDRESS, type ObjectFetchOptions, type ObjectOptions, PACKAGE_BLOCKED_MESSAGE_LIB_ADDRESS, PACKAGE_BLOCKED_MESSAGE_LIB_PTB_BUILDER_ADDRESS, PACKAGE_CALL_ADDRESS, PACKAGE_COUNTER_V2_ADDRESS, PACKAGE_DVN_ADDRESS, PACKAGE_DVN_FEE_LIB_ADDRESS, PACKAGE_DVN_LAYERZERO_ADDRESS, PACKAGE_DVN_PTB_BUILDER_ADDRESS, PACKAGE_ENDPOINT_PTB_BUILDER_ADDRESS, PACKAGE_ENDPOINT_V2_ADDRESS, PACKAGE_EXECUTOR_ADDRESS, PACKAGE_EXECUTOR_FEE_LIB_ADDRESS, PACKAGE_EXECUTOR_LAYERZERO_ADDRESS, PACKAGE_EXECUTOR_PTB_BUILDER_ADDRESS, PACKAGE_LAYERZERO_VIEWS_ADDRESS, PACKAGE_OAPP_ADDRESS, PACKAGE_PACKAGE_WHITELIST_VALIDATOR_ADDRESS, PACKAGE_PRICE_FEED_ADDRESS, PACKAGE_PTB_MOVE_CALL_ADDRESS, PACKAGE_SIMPLE_MESSAGE_LIB_ADDRESS, PACKAGE_SIMPLE_MESSAGE_LIB_PTB_BUILDER_ADDRESS, PACKAGE_TREASURY_ADDRESS, PACKAGE_ULN_302_ADDRESS, PACKAGE_ULN_302_PTB_BUILDER_ADDRESS, PACKAGE_UTILS_ADDRESS, PACKAGE_WORKER_COMMON_ADDRESS, PACKAGE_WORKER_REGISTRY_ADDRESS, PACKAGE_ZRO_ADDRESS, PackageAllowlistValidator, type PackageOptions, PackageWhitelistValidator, type Price, PriceBcs, PriceFeed, PriceFeedErrorCode, PtbBuilder, PtbBuilderErrorCode, SDK, type SdkOptions, type SetDstConfigEvent, ShareObjectValidator, SimpleMessageLib, SimpleMessageLibErrorCode, SimpleMessageLibPtbBuilder, type SimulateResult, type Timeout, TimeoutBcs, Treasury, TreasuryErrorCode, Uln302, Uln302ErrorCode, Uln302PtbBuilder, Uln302PtbBuilderErrorCode, type UlnConfig, UlnConfigBcs, type UlnVerifiableParams, UlnVerificationState, type UlnVerificationStateType, UnclassifiedError, Utils, UtilsErrorCode, ValidatorErrorCode, VectorMoveCallBCS, type VerifiableParams, type VerifierFeePaid, type VersionInfo, WorkerRegistry, WorkerRegistryErrorCode, Zro, asAddress, asAddressVector, asArg, asArgWithTx, asArgWithTxAsync, asBool, asBytes, asBytes32, asBytesVector, asObject, asString, asU128, asU16, asU256, asU32, asU64, asU8, executeSimulate, handleError, isTransactionArgument, simulateTransaction, simulateTransactionMultiResult, validateTransaction, validateWithDetails };
5473
+ declare const TimeoutBcs: _mysten_sui_dist_cjs_bcs.BcsType<{
5474
+ expiry: string;
5475
+ fallback_lib: string;
5476
+ }, {
5477
+ expiry: string | number | bigint;
5478
+ fallback_lib: any;
5479
+ }>;
5480
+
5481
+ export { ALL_EXECUTOR_OPTION_TYPES, type ArbitrumPriceExt, ArbitrumPriceExtBcs, type Argument, ArgumentBCS, BlockedMessageLib, BlockedMessageLibErrorCode, BlockedMessageLibPtbBuilder, type BuilderPlaceholderInfo, Bytes32Bcs, CONFIG_TYPE, Call, CallErrorCode, CallTypeName, Counter, CounterErrorCode, DEFAULT_SIMULATION_TIMES, DVN, DVNErrorCode, DVNFeeLib, DVNFeeLibErrorCode, type DstConfig, DstConfigBcs, type DvnDstConfig, DvnDstConfigBcs, DvnLayerZero, DvnPtbBuilder, Endpoint, EndpointErrorCode, EndpointExecutionState, type EndpointExecutionStateType, EndpointPtbBuilder, type ExecutableParams, Executor, type ExecutorConfig, ExecutorConfigBcs, ExecutorErrorCode, ExecutorFeeLib, ExecutorFeeLibErrorCode, ExecutorLayerZero, ExecutorOptionType, ExecutorPtbBuilder, type Function, FunctionBCS, type IPTBValidator, type InitializableParams, LayerZeroViews, LibBuilderManagerErrorCode, LzComposeVersion, LzReceiveVersion, LzTypeName, MAX_BATCH_SIZE, MessageLibType, type MessagingFee, MessagingFeeBcs, ModelType, ModelTypeBcs, type ModuleOptions, Modules, MoveAbortError, type MoveCall, MoveCallBCS, type NativeDropParams, NativeDropParamsBcs, NonSenderObjectValidator, OApp, OAppErrorCode, type OAppUlnConfig, OAppUlnConfigBcs, OBJECT_BLOCKED_MESSAGE_LIB_ADDRESS, OBJECT_BLOCKED_MESSAGE_LIB_PTB_BUILDER_ADDRESS, OBJECT_COUNTER_ADDRESS, OBJECT_COUNTER_ADMIN_CAP_ADDRESS, OBJECT_COUNTER_OAPP_ADDRESS, OBJECT_DISCOVERY_ADDRESS, OBJECT_DVN_ADDRESS, OBJECT_DVN_CAP_ADDRESS, OBJECT_DVN_FEE_LIB_ADDRESS, OBJECT_DVN_FEE_LIB_ADMIN_CAP_ADDRESS, OBJECT_ENDPOINT_ADMIN_CAP_ADDRESS, OBJECT_ENDPOINT_PTB_BUILDER_ADDRESS, OBJECT_ENDPOINT_PTB_BUILDER_ADMIN_CAP_ADDRESS, OBJECT_ENDPOINT_V2_ADDRESS, OBJECT_EXECUTOR_ADDRESS, OBJECT_EXECUTOR_CAP_ADDRESS, OBJECT_EXECUTOR_FEE_LIB_ADDRESS, OBJECT_EXECUTOR_FEE_LIB_ADMIN_CAP_ADDRESS, OBJECT_EXECUTOR_OWNER_CAP_ADDRESS, OBJECT_PACKAGE_WHITELIST_VALIDATOR_ADDRESS, OBJECT_PRICE_FEED_ADDRESS, OBJECT_PRICE_FEED_OWNER_CAP_ADDRESS, OBJECT_SIMPLE_MESSAGE_LIB_ADDRESS, OBJECT_SIMPLE_MESSAGE_LIB_ADMIN_CAP_ADDRESS, OBJECT_SIMPLE_MESSAGE_LIB_PTB_BUILDER_ADDRESS, OBJECT_TREASURY_ADDRESS, OBJECT_TREASURY_ADMIN_CAP_ADDRESS, OBJECT_ULN_302_ADDRESS, OBJECT_ULN_302_ADMIN_CAP_ADDRESS, OBJECT_ULN_302_PTB_BUILDER_ADDRESS, OBJECT_ULN_302_VERIFICATION_ADDRESS, type ObjectFetchOptions, type ObjectOptions, PACKAGE_BLOCKED_MESSAGE_LIB_ADDRESS, PACKAGE_BLOCKED_MESSAGE_LIB_PTB_BUILDER_ADDRESS, PACKAGE_CALL_ADDRESS, PACKAGE_COUNTER_V2_ADDRESS, PACKAGE_DVN_ADDRESS, PACKAGE_DVN_FEE_LIB_ADDRESS, PACKAGE_DVN_LAYERZERO_ADDRESS, PACKAGE_DVN_PTB_BUILDER_ADDRESS, PACKAGE_ENDPOINT_PTB_BUILDER_ADDRESS, PACKAGE_ENDPOINT_V2_ADDRESS, PACKAGE_EXECUTOR_ADDRESS, PACKAGE_EXECUTOR_FEE_LIB_ADDRESS, PACKAGE_EXECUTOR_LAYERZERO_ADDRESS, PACKAGE_EXECUTOR_PTB_BUILDER_ADDRESS, PACKAGE_LAYERZERO_VIEWS_ADDRESS, PACKAGE_OAPP_ADDRESS, PACKAGE_PACKAGE_WHITELIST_VALIDATOR_ADDRESS, PACKAGE_PRICE_FEED_ADDRESS, PACKAGE_PTB_MOVE_CALL_ADDRESS, PACKAGE_SIMPLE_MESSAGE_LIB_ADDRESS, PACKAGE_SIMPLE_MESSAGE_LIB_PTB_BUILDER_ADDRESS, PACKAGE_TREASURY_ADDRESS, PACKAGE_ULN_302_ADDRESS, PACKAGE_ULN_302_PTB_BUILDER_ADDRESS, PACKAGE_UTILS_ADDRESS, PACKAGE_ZRO_ADDRESS, PackageAllowlistValidator, type PackageOptions, PackageWhitelistValidator, type Price, PriceBcs, PriceFeed, PriceFeedErrorCode, PtbBuilder, SDK, type SdkOptions, type SetDstConfigEvent, ShareObjectValidator, SimpleMessageLib, SimpleMessageLibErrorCode, SimpleMessageLibPtbBuilder, type SimulateResult, type Timeout, TimeoutBcs, Treasury, TreasuryErrorCode, Uln302, Uln302ErrorCode, Uln302PtbBuilder, type UlnConfig, UlnConfigBcs, type UlnVerifiableParams, UlnVerificationState, type UlnVerificationStateType, UnclassifiedError, Utils, UtilsErrorCode, ValidatorErrorCode, VectorMoveCallBCS, type VerifiableParams, type VerifierFeePaid, type VersionInfo, Zro, asAddress, asAddressVector, asArg, asArgWithTx, asArgWithTxAsync, asBool, asBytes, asBytes32, asBytesVector, asObject, asString, asU128, asU16, asU256, asU32, asU64, asU8, executeSimulate, handleError, isTransactionArgument, simulateTransaction, simulateTransactionMultiResult, validateTransaction, validateWithDetails };