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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/deployments/sui-sandbox-local/blocked_message_lib.json +18 -18
  2. package/deployments/sui-sandbox-local/blocked_msglib_ptb_builder.json +22 -22
  3. package/deployments/sui-sandbox-local/counter.json +47 -47
  4. package/deployments/sui-sandbox-local/dvn.json +14 -14
  5. package/deployments/sui-sandbox-local/dvn_call_type.json +28 -28
  6. package/deployments/sui-sandbox-local/dvn_fee_lib.json +27 -27
  7. package/deployments/sui-sandbox-local/dvn_layerzero.json +24 -24
  8. package/deployments/sui-sandbox-local/dvn_ptb_builder.json +21 -21
  9. package/deployments/sui-sandbox-local/endpoint_ptb_builder.json +32 -32
  10. package/deployments/sui-sandbox-local/endpoint_v2.json +25 -25
  11. package/deployments/sui-sandbox-local/executor.json +14 -14
  12. package/deployments/sui-sandbox-local/executor_call_type.json +21 -21
  13. package/deployments/sui-sandbox-local/executor_fee_lib.json +27 -27
  14. package/deployments/sui-sandbox-local/executor_layerzero.json +17 -17
  15. package/deployments/sui-sandbox-local/executor_ptb_builder.json +14 -14
  16. package/deployments/sui-sandbox-local/layerzero_views.json +13 -13
  17. package/deployments/sui-sandbox-local/message_lib_common.json +13 -13
  18. package/deployments/sui-sandbox-local/msglib_ptb_builder_call_types.json +13 -13
  19. package/deployments/sui-sandbox-local/oapp.json +21 -21
  20. package/deployments/sui-sandbox-local/object-BlockedMessageLib.json +5 -5
  21. package/deployments/sui-sandbox-local/object-BlockedMsglibPtbBuilder.json +5 -5
  22. package/deployments/sui-sandbox-local/object-Counter.json +5 -5
  23. package/deployments/sui-sandbox-local/object-CounterAdminCap.json +5 -5
  24. package/deployments/sui-sandbox-local/object-CounterOApp.json +5 -5
  25. package/deployments/sui-sandbox-local/object-DVN.json +2 -2
  26. package/deployments/sui-sandbox-local/object-DVNCap.json +4 -4
  27. package/deployments/sui-sandbox-local/object-DVNFeeLib.json +5 -5
  28. package/deployments/sui-sandbox-local/object-EndpointPtbBuilder.json +5 -5
  29. package/deployments/sui-sandbox-local/object-EndpointPtbBuilderAdminCap.json +5 -5
  30. package/deployments/sui-sandbox-local/object-EndpointV2.json +5 -5
  31. package/deployments/sui-sandbox-local/object-EndpointV2AdminCap.json +5 -5
  32. package/deployments/sui-sandbox-local/object-Executor.json +2 -2
  33. package/deployments/sui-sandbox-local/object-ExecutorCap.json +4 -4
  34. package/deployments/sui-sandbox-local/object-ExecutorFeeLib.json +5 -5
  35. package/deployments/sui-sandbox-local/object-ExecutorOwnerCap.json +2 -2
  36. package/deployments/sui-sandbox-local/object-PackageWhitelistValidator.json +5 -5
  37. package/deployments/sui-sandbox-local/object-PriceFeed.json +5 -5
  38. package/deployments/sui-sandbox-local/object-PriceFeedOwnerCap.json +5 -5
  39. package/deployments/sui-sandbox-local/object-SimpleMessageLib.json +5 -5
  40. package/deployments/sui-sandbox-local/object-SimpleMessageLibAdminCap.json +5 -5
  41. package/deployments/sui-sandbox-local/object-SmlPtbBuilder.json +5 -5
  42. package/deployments/sui-sandbox-local/object-Treasury.json +5 -5
  43. package/deployments/sui-sandbox-local/object-TreasuryAdminCap.json +5 -5
  44. package/deployments/sui-sandbox-local/object-ULN302.json +5 -5
  45. package/deployments/sui-sandbox-local/object-ULN302AdminCap.json +5 -5
  46. package/deployments/sui-sandbox-local/object-Uln302PtbBuilder.json +5 -5
  47. package/deployments/sui-sandbox-local/object-Uln302Verification.json +5 -5
  48. package/deployments/sui-sandbox-local/object-WorkerRegistry.json +5 -5
  49. package/deployments/sui-sandbox-local/package_whitelist_validator.json +48 -48
  50. package/deployments/sui-sandbox-local/price_feed.json +39 -39
  51. package/deployments/sui-sandbox-local/price_feed_call_types.json +19 -19
  52. package/deployments/sui-sandbox-local/ptb_move_call.json +20 -20
  53. package/deployments/sui-sandbox-local/sequential_multi_call.json +45 -0
  54. package/deployments/sui-sandbox-local/simple_message_lib.json +30 -30
  55. package/deployments/sui-sandbox-local/simple_msglib_ptb_builder.json +18 -18
  56. package/deployments/sui-sandbox-local/treasury.json +41 -41
  57. package/deployments/sui-sandbox-local/uln_302.json +42 -46
  58. package/deployments/sui-sandbox-local/uln_302_ptb_builder.json +29 -29
  59. package/deployments/sui-sandbox-local/uln_common.json +49 -0
  60. package/deployments/sui-sandbox-local/worker_common.json +13 -13
  61. package/deployments/sui-sandbox-local/worker_registry.json +28 -28
  62. package/dist/index.cjs +354 -119
  63. package/dist/index.cjs.map +1 -1
  64. package/dist/index.d.mts +168 -43
  65. package/dist/index.d.ts +168 -43
  66. package/dist/index.mjs +350 -119
  67. package/dist/index.mjs.map +1 -1
  68. package/package.json +7 -7
  69. package/src/generated/addresses.ts +54 -54
  70. package/src/modules/call.ts +16 -6
  71. package/src/modules/endpoint.ts +10 -1
  72. package/src/modules/message-libs/simple-message-lib.ts +3 -2
  73. package/src/modules/message-libs/uln302.ts +28 -26
  74. package/src/modules/oapps/counter.ts +4 -3
  75. package/src/modules/oapps/oapp.ts +21 -12
  76. package/src/modules/ptb-builders/endpoint-ptb-builder.ts +9 -3
  77. package/src/modules/ptb-builders/ptb-builder.ts +9 -0
  78. package/src/modules/ptb-builders/uln302-ptb-builder.ts +5 -0
  79. package/src/modules/workers/dvn-layerzero.ts +8 -0
  80. package/src/modules/workers/dvn.ts +155 -6
  81. package/src/modules/workers/executor-fee-lib.ts +11 -3
  82. package/src/modules/workers/executor-layerzero.ts +8 -0
  83. package/src/modules/workers/executor.ts +56 -0
  84. package/src/modules/workers/treasury.ts +4 -4
  85. package/src/modules/workers/worker-registry.ts +1 -0
package/dist/index.d.mts CHANGED
@@ -662,6 +662,12 @@ declare const EndpointErrorCode: {
662
662
  readonly MessagingChannel_EPayloadHashNotFound: 9;
663
663
  readonly MessagingChannel_ESendReentrancy: 10;
664
664
  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;
665
671
  readonly OAppRegistry_EInvalidLZReceiveInfo: 1;
666
672
  readonly OAppRegistry_EOAppNotRegistered: 2;
667
673
  readonly OAppRegistry_EOAppRegistered: 3;
@@ -669,7 +675,8 @@ declare const EndpointErrorCode: {
669
675
  readonly Endpoint_EInvalidEid: 2;
670
676
  readonly Endpoint_ENotInitialized: 3;
671
677
  readonly Endpoint_ERefundAddressNotFound: 4;
672
- readonly Endpoint_EUnauthorizedSendLibrary: 5;
678
+ readonly Endpoint_EUnauthorizedOApp: 5;
679
+ readonly Endpoint_EUnauthorizedSendLibrary: 6;
673
680
  };
674
681
  declare class Endpoint {
675
682
  #private;
@@ -1607,8 +1614,9 @@ declare class BlockedMessageLib {
1607
1614
  }
1608
1615
 
1609
1616
  declare const SimpleMessageLibErrorCode: {
1610
- readonly SimpleMessageLib_EConfigNotFound: 1;
1617
+ readonly SimpleMessageLib_ENotImplemented: 1;
1611
1618
  readonly SimpleMessageLib_EZROFeeNotEnabled: 2;
1619
+ readonly SimpleMessageLib_EInvalidEid: 3;
1612
1620
  };
1613
1621
  declare class SimpleMessageLib {
1614
1622
  #private;
@@ -1715,10 +1723,22 @@ declare const Uln302ErrorCode: {
1715
1723
  readonly ReceiveUln302_EInvalidEid: 3;
1716
1724
  readonly ReceiveUln302_EOAppUlnConfigNotFound: 4;
1717
1725
  readonly ReceiveUln302_EVerifying: 5;
1718
- readonly Uln302_EEndpointInitialized: 1;
1719
- readonly Uln302_EInvalidConfigType: 2;
1720
- readonly Uln302_EInvalidMessagingChannel: 3;
1721
- readonly Uln302_EUnsupportedEid: 4;
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;
1722
1742
  };
1723
1743
  declare class Uln302 {
1724
1744
  #private;
@@ -1773,16 +1793,13 @@ declare class Uln302 {
1773
1793
  */
1774
1794
  setConfigMoveCall(tx: Transaction, call: TransactionArgument): void;
1775
1795
  /**
1776
- * Verify packet move call with DVN signatures
1777
- * Note: This is typically called by DVNs, not directly by users
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
1778
1798
  * @param tx - The transaction to add the move call to
1779
1799
  * @param verification - The verification object address or transaction argument
1780
- * @param dvn - The DVN address performing verification or transaction argument
1781
- * @param packetHeader - The packet header as bytes or transaction argument
1782
- * @param payloadHash - The payload hash as bytes or transaction argument
1783
- * @param confirmations - Required confirmations count or transaction argument
1800
+ * @param call - The DVN verification call containing verification parameters
1784
1801
  */
1785
- verifyMoveCall(tx: Transaction, verification: string | TransactionArgument, dvn: string | TransactionArgument, packetHeader: Uint8Array | TransactionArgument, payloadHash: Uint8Array | TransactionArgument, confirmations: bigint | TransactionArgument): void;
1802
+ verifyMoveCall(tx: Transaction, verification: string | TransactionArgument, call: TransactionArgument): void;
1786
1803
  /**
1787
1804
  * Commit verification move call after all DVN verifications are complete
1788
1805
  * Note: This is typically called by relayers/executors, not directly by users
@@ -2034,6 +2051,17 @@ declare const DVNErrorCode: {
2034
2051
  readonly DVN_EEidNotSupported: 2;
2035
2052
  readonly DVN_EHashAlreadyUsed: 3;
2036
2053
  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;
2037
2065
  };
2038
2066
  declare class DVN {
2039
2067
  #private;
@@ -2118,6 +2146,16 @@ declare class DVN {
2118
2146
  * @returns Transaction result containing the set PTB builder call
2119
2147
  */
2120
2148
  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;
2121
2159
  /**
2122
2160
  * Set allowlist status for an OApp sender (admin with signatures)
2123
2161
  * @param tx - The transaction to add the move call to
@@ -2176,17 +2214,18 @@ declare class DVN {
2176
2214
  */
2177
2215
  quorumChangeAdminMoveCall(tx: Transaction, admin: string | TransactionArgument, active: boolean | TransactionArgument, expiration: bigint | number | string | TransactionArgument, signatures: Uint8Array | TransactionArgument): void;
2178
2216
  /**
2179
- * Verify a packet with DVN signatures (admin with signatures)
2217
+ * Verify a packet with DVN signatures (admin with signatures) - returns Call object for ULN302
2180
2218
  * @param tx - The transaction to add the move call to
2181
2219
  * @param adminCap - The admin capability object ID
2182
- * @param verification - The verification object address
2220
+ * @param targetMessageLib - The target message library address (usually ULN302)
2183
2221
  * @param packetHeader - The packet header as bytes
2184
2222
  * @param payloadHash - The payload hash as bytes
2185
2223
  * @param confirmations - Required confirmations count
2186
2224
  * @param expiration - Signature expiration timestamp
2187
2225
  * @param signatures - DVN multisig signatures
2226
+ * @returns Transaction result containing the verification Call object
2188
2227
  */
2189
- 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;
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;
2190
2229
  /**
2191
2230
  * Assign verification job for DVN (called via PTB with MultiCall created by send function in ULN302)
2192
2231
  * @param tx - The transaction to add the move call to
@@ -2311,6 +2350,19 @@ declare class DVN {
2311
2350
  * @returns Promise<boolean> - True if the address is an admin
2312
2351
  */
2313
2352
  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>;
2314
2366
  /**
2315
2367
  * Check if an address is allowlisted
2316
2368
  * @param tx - The transaction to add the move call to
@@ -2639,6 +2691,19 @@ declare class DVN {
2639
2691
  * @returns Transaction result containing the set PTB builder move calls hash
2640
2692
  */
2641
2693
  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;
2642
2707
  }
2643
2708
 
2644
2709
  declare const DVNFeeLibErrorCode: {
@@ -2678,6 +2743,9 @@ declare class DVNFeeLib {
2678
2743
  confirmGetFeeMoveCall(tx: Transaction, feelibCall: TransactionArgument, priceFeedCall: TransactionArgument): void;
2679
2744
  }
2680
2745
 
2746
+ declare const DVNLayerzeroErrorCode: {
2747
+ readonly DVNLayerzero_EWorkerCapNotFromPackage: 1;
2748
+ };
2681
2749
  declare class DvnLayerZero {
2682
2750
  #private;
2683
2751
  private readonly moduleManager;
@@ -2691,6 +2759,7 @@ declare class DvnLayerZero {
2691
2759
  * @param workerCap - Worker capability object ID or transaction argument
2692
2760
  * @param vid - Verifier ID for the DVN or transaction argument
2693
2761
  * @param depositAddress - Address for fee deposits or transaction argument
2762
+ * @param supportedMessageLibs - Array of supported message library addresses or transaction argument
2694
2763
  * @param priceFeed - Price feed object address or transaction argument
2695
2764
  * @param workerFeeLib - Worker fee library address or transaction argument
2696
2765
  * @param defaultMultiplierBps - Default multiplier in basis points or transaction argument
@@ -2698,12 +2767,14 @@ declare class DvnLayerZero {
2698
2767
  * @param signers - Array of signer public keys as bytes or transaction argument
2699
2768
  * @param quorum - Required signature threshold or transaction argument
2700
2769
  */
2701
- 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;
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;
2702
2771
  }
2703
2772
 
2704
2773
  declare const ExecutorErrorCode: {
2705
2774
  readonly Executor_EEidNotSupported: 1;
2706
2775
  readonly Executor_EInvalidNativeDropAmount: 2;
2776
+ readonly ExecutorInfoV1_EInvalidData: 1;
2777
+ readonly ExecutorInfoV1_EInvalidVersion: 2;
2707
2778
  };
2708
2779
  declare class Executor {
2709
2780
  #private;
@@ -2882,6 +2953,14 @@ declare class Executor {
2882
2953
  * @param active - Whether to grant or revoke admin role
2883
2954
  */
2884
2955
  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;
2885
2964
  /**
2886
2965
  * Set allowlist status for an OApp sender (owner only)
2887
2966
  * @param tx - The transaction to add the move call to
@@ -3001,6 +3080,19 @@ declare class Executor {
3001
3080
  * @returns Promise<boolean> - True if the address is an admin
3002
3081
  */
3003
3082
  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>;
3004
3096
  /**
3005
3097
  * Check if an address is allowlisted
3006
3098
  * @param tx - The transaction to add the move call to
@@ -3116,8 +3208,14 @@ declare class Executor {
3116
3208
 
3117
3209
  declare const ExecutorFeeLibErrorCode: {
3118
3210
  readonly ExecutorFeeLib_EEidNotSupported: 1;
3119
- readonly ExecutorFeeLib_EInvalidExecutor: 2;
3120
- readonly ExecutorFeeLib_EExecutorAlreadySet: 3;
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;
3121
3219
  };
3122
3220
  declare class ExecutorFeeLib {
3123
3221
  #private;
@@ -3150,6 +3248,9 @@ declare class ExecutorFeeLib {
3150
3248
  confirmGetFeeMoveCall(tx: Transaction, feelibCall: TransactionArgument, priceFeedCall: TransactionArgument): void;
3151
3249
  }
3152
3250
 
3251
+ declare const ExecutorLayerzeroErrorCode: {
3252
+ readonly ExecutorLayerzero_EWorkerCapNotFromPackage: 1;
3253
+ };
3153
3254
  declare class ExecutorLayerZero {
3154
3255
  #private;
3155
3256
  private readonly moduleManager;
@@ -3162,13 +3263,14 @@ declare class ExecutorLayerZero {
3162
3263
  * @param tx - The transaction to add the move call to
3163
3264
  * @param workerCap - Worker capability object ID or transaction argument
3164
3265
  * @param depositAddress - Address for fee deposits or transaction argument
3266
+ * @param supportedMessageLibs - Array of supported message library addresses or transaction argument
3165
3267
  * @param priceFeed - Price feed object address or transaction argument
3166
3268
  * @param workerFeeLib - Worker fee library address or transaction argument
3167
3269
  * @param defaultMultiplierBps - Default multiplier in basis points or transaction argument
3168
3270
  * @param owner - Owner address for the executor or transaction argument
3169
3271
  * @param admins - Array of admin addresses or transaction argument
3170
3272
  */
3171
- 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;
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;
3172
3274
  }
3173
3275
 
3174
3276
  declare const PriceFeedErrorCode: {
@@ -3383,9 +3485,9 @@ declare class PriceFeed {
3383
3485
  }
3384
3486
 
3385
3487
  declare const TreasuryErrorCode: {
3386
- readonly TREASURY_EZroNotEnabled: 1;
3387
- readonly TREASURY_EInvalidFeeRecipient: 2;
3388
- readonly TREASURY_EInvalidNativeFeeBp: 3;
3488
+ readonly TREASURY_EInvalidFeeRecipient: 1;
3489
+ readonly TREASURY_EInvalidNativeFeeBp: 2;
3490
+ readonly TREASURY_EZroNotEnabled: 3;
3389
3491
  };
3390
3492
  declare class Treasury {
3391
3493
  #private;
@@ -3563,8 +3665,14 @@ declare class DvnPtbBuilder {
3563
3665
  buildDvnPtbMoveCall(tx: Transaction, dvnAddress: string | TransactionArgument, feelibAddress: string | TransactionArgument, priceFeedAddress: string | TransactionArgument): TransactionResult;
3564
3666
  }
3565
3667
 
3566
- declare const LibBuilderManagerErrorCode: {
3567
- readonly LibBuilderManager_EBuilderNotFound: 1;
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;
3568
3676
  };
3569
3677
  declare class EndpointPtbBuilder {
3570
3678
  #private;
@@ -3840,6 +3948,11 @@ declare class PackageWhitelistValidator {
3840
3948
  validate(packageAddresses: string[]): Promise<boolean>;
3841
3949
  }
3842
3950
 
3951
+ declare const PtbBuilderErrorCode: {
3952
+ readonly MoveCallsBuilder_EInvalidMoveCallResult: 1;
3953
+ readonly MoveCallsBuilder_EResultIDNotFound: 2;
3954
+ readonly Argument_EInvalidArgument: 1;
3955
+ };
3843
3956
  declare class PtbBuilder {
3844
3957
  #private;
3845
3958
  packageId: string;
@@ -3908,6 +4021,9 @@ declare class SimpleMessageLibPtbBuilder {
3908
4021
  getPtbBuilderInfoMoveCall(tx: Transaction): TransactionResult;
3909
4022
  }
3910
4023
 
4024
+ declare const Uln302PtbBuilderErrorCode: {
4025
+ readonly Uln302PtbBuilder_EWorkerPtbsNotFound: 1;
4026
+ };
3911
4027
  declare class Uln302PtbBuilder {
3912
4028
  #private;
3913
4029
  private readonly moduleManager;
@@ -4237,8 +4353,7 @@ declare const CounterErrorCode: {
4237
4353
  readonly Counter_EOnlyEndpoint: 3;
4238
4354
  readonly Counter_ESelfComposeOnly: 4;
4239
4355
  readonly Counter_EInvalidOApp: 5;
4240
- readonly Counter_EInvalidAdminCap: 6;
4241
- readonly Counter_EAlreadyInitialized: 7;
4356
+ readonly OptionsBuilder_EInvalidSize: 1;
4242
4357
  };
4243
4358
  declare class Counter {
4244
4359
  #private;
@@ -4381,16 +4496,20 @@ interface OAppInfoV1 {
4381
4496
  }
4382
4497
 
4383
4498
  declare const OAppErrorCode: {
4384
- readonly OApp_EAlreadyInited: 1;
4385
- readonly OApp_EChannelNotInited: 2;
4386
- readonly OApp_EEndpointNotInited: 3;
4387
- readonly OApp_EInvalidAdminCap: 4;
4388
- readonly OApp_EInvalidCallCap: 5;
4389
- readonly OApp_EOnlyEndpoint: 6;
4390
- readonly OApp_EOnlyPeer: 7;
4391
- readonly EndpointConfig_EInvalidAdminCap: 1;
4392
- readonly EndpointConfig_EInvalidIntentType: 2;
4393
- readonly EndpointConfig_EInvalidOAppCallCap: 3;
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;
4394
4513
  };
4395
4514
  declare class OApp {
4396
4515
  #private;
@@ -4667,13 +4786,19 @@ declare class LayerZeroViews {
4667
4786
  }
4668
4787
 
4669
4788
  declare const CallErrorCode: {
4670
- readonly Call_ECallNotCompletable: 1;
4789
+ readonly Call_ECallNotActive: 1;
4671
4790
  readonly Call_ECallNotCompleted: 2;
4672
- readonly Call_ECallNotSealed: 3;
4791
+ readonly Call_ECallNotCreating: 3;
4673
4792
  readonly Call_ECallNotRoot: 4;
4674
- readonly Call_ECallSealed: 5;
4675
- readonly Call_EInvalidParent: 6;
4676
- readonly Call_EUnauthorized: 7;
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;
4677
4802
  };
4678
4803
  declare class Call {
4679
4804
  #private;
@@ -5703,4 +5828,4 @@ declare const OAppUlnConfigBcs: _mysten_sui_dist_cjs_bcs.BcsType<{
5703
5828
  };
5704
5829
  }>;
5705
5830
 
5706
- 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, 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, 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, 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 };
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 };