@layerzerolabs/lz-sui-sdk-v2 3.0.134-sui.1 → 3.0.134-sui.3

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 (139) hide show
  1. package/deployments/sui-sandbox-local/blocked_message_lib.json +26 -26
  2. package/deployments/sui-sandbox-local/blocked_msglib_ptb_builder.json +25 -25
  3. package/deployments/sui-sandbox-local/counter.json +37 -37
  4. package/deployments/sui-sandbox-local/dvn.json +22 -22
  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 +25 -25
  8. package/deployments/sui-sandbox-local/dvn_ptb_builder.json +14 -14
  9. package/deployments/sui-sandbox-local/endpoint_ptb_builder.json +30 -30
  10. package/deployments/sui-sandbox-local/endpoint_v2.json +28 -28
  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 +32 -32
  14. package/deployments/sui-sandbox-local/executor_layerzero.json +24 -24
  15. package/deployments/sui-sandbox-local/executor_ptb_builder.json +21 -21
  16. package/deployments/sui-sandbox-local/layerzero_views.json +21 -21
  17. package/deployments/sui-sandbox-local/message_lib_common.json +21 -21
  18. package/deployments/sui-sandbox-local/msglib_ptb_builder_call_types.json +13 -13
  19. package/deployments/sui-sandbox-local/oapp.json +13 -13
  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 +4 -4
  23. package/deployments/sui-sandbox-local/object-CounterAdminCap.json +4 -4
  24. package/deployments/sui-sandbox-local/object-CounterOApp.json +4 -4
  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 +51 -51
  50. package/deployments/sui-sandbox-local/price_feed.json +43 -43
  51. package/deployments/sui-sandbox-local/price_feed_call_types.json +12 -12
  52. package/deployments/sui-sandbox-local/ptb_move_call.json +12 -12
  53. package/deployments/sui-sandbox-local/simple_message_lib.json +30 -30
  54. package/deployments/sui-sandbox-local/simple_msglib_ptb_builder.json +25 -25
  55. package/deployments/sui-sandbox-local/treasury.json +41 -41
  56. package/deployments/sui-sandbox-local/uln_302.json +31 -35
  57. package/deployments/sui-sandbox-local/uln_302_ptb_builder.json +26 -26
  58. package/deployments/sui-sandbox-local/uln_common.json +49 -0
  59. package/deployments/sui-sandbox-local/worker_common.json +21 -21
  60. package/deployments/sui-sandbox-local/worker_registry.json +24 -24
  61. package/deployments/sui-testnet/blocked_message_lib.json +22 -22
  62. package/deployments/sui-testnet/blocked_msglib_ptb_builder.json +29 -29
  63. package/deployments/sui-testnet/call.json +21 -21
  64. package/deployments/sui-testnet/counter.json +40 -40
  65. package/deployments/sui-testnet/dvn.json +22 -21
  66. package/deployments/sui-testnet/dvn_call_type.json +19 -19
  67. package/deployments/sui-testnet/dvn_fee_lib.json +26 -26
  68. package/deployments/sui-testnet/dvn_layerzero.json +24 -24
  69. package/deployments/sui-testnet/dvn_ptb_builder.json +20 -20
  70. package/deployments/sui-testnet/endpoint_ptb_builder.json +30 -30
  71. package/deployments/sui-testnet/endpoint_v2.json +26 -26
  72. package/deployments/sui-testnet/executor.json +22 -21
  73. package/deployments/sui-testnet/executor_call_type.json +19 -19
  74. package/deployments/sui-testnet/executor_fee_lib.json +18 -18
  75. package/deployments/sui-testnet/executor_layerzero.json +25 -25
  76. package/deployments/sui-testnet/executor_ptb_builder.json +20 -20
  77. package/deployments/sui-testnet/layerzero_views.json +13 -13
  78. package/deployments/sui-testnet/message_lib_common.json +21 -21
  79. package/deployments/sui-testnet/msglib_ptb_builder_call_types.json +13 -13
  80. package/deployments/sui-testnet/oapp.json +15 -13
  81. package/deployments/sui-testnet/object-BlockedMessageLib.json +5 -5
  82. package/deployments/sui-testnet/object-BlockedMsglibPtbBuilder.json +5 -5
  83. package/deployments/sui-testnet/object-Counter.json +5 -5
  84. package/deployments/sui-testnet/object-CounterAdminCap.json +5 -5
  85. package/deployments/sui-testnet/object-CounterOApp.json +5 -5
  86. package/deployments/sui-testnet/object-DVN.json +2 -2
  87. package/deployments/sui-testnet/object-DVNCap.json +5 -5
  88. package/deployments/sui-testnet/object-DVNFeeLib.json +5 -5
  89. package/deployments/sui-testnet/object-EndpointPtbBuilder.json +5 -5
  90. package/deployments/sui-testnet/object-EndpointPtbBuilderAdminCap.json +5 -5
  91. package/deployments/sui-testnet/object-EndpointV2.json +5 -5
  92. package/deployments/sui-testnet/object-EndpointV2AdminCap.json +5 -5
  93. package/deployments/sui-testnet/object-Executor.json +2 -2
  94. package/deployments/sui-testnet/object-ExecutorCap.json +5 -5
  95. package/deployments/sui-testnet/object-ExecutorFeeLib.json +5 -5
  96. package/deployments/sui-testnet/object-ExecutorOwnerCap.json +2 -2
  97. package/deployments/sui-testnet/object-PackageWhitelistValidator.json +5 -5
  98. package/deployments/sui-testnet/object-PriceFeed.json +5 -5
  99. package/deployments/sui-testnet/object-PriceFeedOwnerCap.json +5 -5
  100. package/deployments/sui-testnet/object-SimpleMessageLib.json +5 -5
  101. package/deployments/sui-testnet/object-SimpleMessageLibAdminCap.json +5 -5
  102. package/deployments/sui-testnet/object-SmlPtbBuilder.json +5 -5
  103. package/deployments/sui-testnet/object-Treasury.json +5 -5
  104. package/deployments/sui-testnet/object-TreasuryAdminCap.json +5 -5
  105. package/deployments/sui-testnet/object-ULN302.json +5 -5
  106. package/deployments/sui-testnet/object-ULN302AdminCap.json +5 -5
  107. package/deployments/sui-testnet/object-Uln302PtbBuilder.json +5 -5
  108. package/deployments/sui-testnet/object-Uln302Verification.json +5 -5
  109. package/deployments/sui-testnet/object-WorkerRegistry.json +9 -0
  110. package/deployments/sui-testnet/object-ZroCoinMetadata.json +5 -5
  111. package/deployments/sui-testnet/object-ZroTreasuryCap.json +5 -5
  112. package/deployments/sui-testnet/package_whitelist_validator.json +44 -44
  113. package/deployments/sui-testnet/price_feed.json +25 -25
  114. package/deployments/sui-testnet/price_feed_call_types.json +12 -12
  115. package/deployments/sui-testnet/ptb_move_call.json +21 -21
  116. package/deployments/sui-testnet/sequential_multi_call.json +45 -0
  117. package/deployments/sui-testnet/simple_message_lib.json +29 -29
  118. package/deployments/sui-testnet/simple_msglib_ptb_builder.json +26 -26
  119. package/deployments/sui-testnet/treasury.json +30 -58
  120. package/deployments/sui-testnet/uln_302.json +28 -32
  121. package/deployments/sui-testnet/uln_302_ptb_builder.json +25 -25
  122. package/deployments/sui-testnet/uln_common.json +49 -0
  123. package/deployments/sui-testnet/utils.json +12 -12
  124. package/deployments/sui-testnet/worker_common.json +21 -20
  125. package/deployments/sui-testnet/worker_registry.json +58 -0
  126. package/deployments/sui-testnet/zro.json +28 -28
  127. package/dist/index.cjs +277 -133
  128. package/dist/index.cjs.map +1 -1
  129. package/dist/index.d.mts +69 -12
  130. package/dist/index.d.ts +69 -12
  131. package/dist/index.mjs +277 -133
  132. package/dist/index.mjs.map +1 -1
  133. package/package.json +7 -7
  134. package/src/generated/addresses.ts +111 -111
  135. package/src/modules/message-libs/uln302.ts +5 -21
  136. package/src/modules/workers/dvn-layerzero.ts +3 -0
  137. package/src/modules/workers/dvn.ts +140 -6
  138. package/src/modules/workers/executor-layerzero.ts +3 -0
  139. package/src/modules/workers/executor.ts +52 -0
package/dist/index.d.mts CHANGED
@@ -1793,16 +1793,13 @@ declare class Uln302 {
1793
1793
  */
1794
1794
  setConfigMoveCall(tx: Transaction, call: TransactionArgument): void;
1795
1795
  /**
1796
- * Verify packet move call with DVN signatures
1797
- * 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
1798
1798
  * @param tx - The transaction to add the move call to
1799
1799
  * @param verification - The verification object address or transaction argument
1800
- * @param dvn - The DVN address performing verification or transaction argument
1801
- * @param packetHeader - The packet header as bytes or transaction argument
1802
- * @param payloadHash - The payload hash as bytes or transaction argument
1803
- * @param confirmations - Required confirmations count or transaction argument
1800
+ * @param call - The DVN verification call containing verification parameters
1804
1801
  */
1805
- 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;
1806
1803
  /**
1807
1804
  * Commit verification move call after all DVN verifications are complete
1808
1805
  * Note: This is typically called by relayers/executors, not directly by users
@@ -2149,6 +2146,16 @@ declare class DVN {
2149
2146
  * @returns Transaction result containing the set PTB builder call
2150
2147
  */
2151
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;
2152
2159
  /**
2153
2160
  * Set allowlist status for an OApp sender (admin with signatures)
2154
2161
  * @param tx - The transaction to add the move call to
@@ -2207,17 +2214,18 @@ declare class DVN {
2207
2214
  */
2208
2215
  quorumChangeAdminMoveCall(tx: Transaction, admin: string | TransactionArgument, active: boolean | TransactionArgument, expiration: bigint | number | string | TransactionArgument, signatures: Uint8Array | TransactionArgument): void;
2209
2216
  /**
2210
- * Verify a packet with DVN signatures (admin with signatures)
2217
+ * Verify a packet with DVN signatures (admin with signatures) - returns Call object for ULN302
2211
2218
  * @param tx - The transaction to add the move call to
2212
2219
  * @param adminCap - The admin capability object ID
2213
- * @param verification - The verification object address
2220
+ * @param targetMessageLib - The target message library address (usually ULN302)
2214
2221
  * @param packetHeader - The packet header as bytes
2215
2222
  * @param payloadHash - The payload hash as bytes
2216
2223
  * @param confirmations - Required confirmations count
2217
2224
  * @param expiration - Signature expiration timestamp
2218
2225
  * @param signatures - DVN multisig signatures
2226
+ * @returns Transaction result containing the verification Call object
2219
2227
  */
2220
- 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;
2221
2229
  /**
2222
2230
  * Assign verification job for DVN (called via PTB with MultiCall created by send function in ULN302)
2223
2231
  * @param tx - The transaction to add the move call to
@@ -2342,6 +2350,19 @@ declare class DVN {
2342
2350
  * @returns Promise<boolean> - True if the address is an admin
2343
2351
  */
2344
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>;
2345
2366
  /**
2346
2367
  * Check if an address is allowlisted
2347
2368
  * @param tx - The transaction to add the move call to
@@ -2670,6 +2691,19 @@ declare class DVN {
2670
2691
  * @returns Transaction result containing the set PTB builder move calls hash
2671
2692
  */
2672
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;
2673
2707
  }
2674
2708
 
2675
2709
  declare const DVNFeeLibErrorCode: {
@@ -2725,6 +2759,7 @@ declare class DvnLayerZero {
2725
2759
  * @param workerCap - Worker capability object ID or transaction argument
2726
2760
  * @param vid - Verifier ID for the DVN or transaction argument
2727
2761
  * @param depositAddress - Address for fee deposits or transaction argument
2762
+ * @param supportedMessageLibs - Array of supported message library addresses or transaction argument
2728
2763
  * @param priceFeed - Price feed object address or transaction argument
2729
2764
  * @param workerFeeLib - Worker fee library address or transaction argument
2730
2765
  * @param defaultMultiplierBps - Default multiplier in basis points or transaction argument
@@ -2732,7 +2767,7 @@ declare class DvnLayerZero {
2732
2767
  * @param signers - Array of signer public keys as bytes or transaction argument
2733
2768
  * @param quorum - Required signature threshold or transaction argument
2734
2769
  */
2735
- 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;
2736
2771
  }
2737
2772
 
2738
2773
  declare const ExecutorErrorCode: {
@@ -2918,6 +2953,14 @@ declare class Executor {
2918
2953
  * @param active - Whether to grant or revoke admin role
2919
2954
  */
2920
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;
2921
2964
  /**
2922
2965
  * Set allowlist status for an OApp sender (owner only)
2923
2966
  * @param tx - The transaction to add the move call to
@@ -3037,6 +3080,19 @@ declare class Executor {
3037
3080
  * @returns Promise<boolean> - True if the address is an admin
3038
3081
  */
3039
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>;
3040
3096
  /**
3041
3097
  * Check if an address is allowlisted
3042
3098
  * @param tx - The transaction to add the move call to
@@ -3207,13 +3263,14 @@ declare class ExecutorLayerZero {
3207
3263
  * @param tx - The transaction to add the move call to
3208
3264
  * @param workerCap - Worker capability object ID or transaction argument
3209
3265
  * @param depositAddress - Address for fee deposits or transaction argument
3266
+ * @param supportedMessageLibs - Array of supported message library addresses or transaction argument
3210
3267
  * @param priceFeed - Price feed object address or transaction argument
3211
3268
  * @param workerFeeLib - Worker fee library address or transaction argument
3212
3269
  * @param defaultMultiplierBps - Default multiplier in basis points or transaction argument
3213
3270
  * @param owner - Owner address for the executor or transaction argument
3214
3271
  * @param admins - Array of admin addresses or transaction argument
3215
3272
  */
3216
- 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;
3217
3274
  }
3218
3275
 
3219
3276
  declare const PriceFeedErrorCode: {
package/dist/index.d.ts CHANGED
@@ -1793,16 +1793,13 @@ declare class Uln302 {
1793
1793
  */
1794
1794
  setConfigMoveCall(tx: Transaction, call: TransactionArgument): void;
1795
1795
  /**
1796
- * Verify packet move call with DVN signatures
1797
- * 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
1798
1798
  * @param tx - The transaction to add the move call to
1799
1799
  * @param verification - The verification object address or transaction argument
1800
- * @param dvn - The DVN address performing verification or transaction argument
1801
- * @param packetHeader - The packet header as bytes or transaction argument
1802
- * @param payloadHash - The payload hash as bytes or transaction argument
1803
- * @param confirmations - Required confirmations count or transaction argument
1800
+ * @param call - The DVN verification call containing verification parameters
1804
1801
  */
1805
- 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;
1806
1803
  /**
1807
1804
  * Commit verification move call after all DVN verifications are complete
1808
1805
  * Note: This is typically called by relayers/executors, not directly by users
@@ -2149,6 +2146,16 @@ declare class DVN {
2149
2146
  * @returns Transaction result containing the set PTB builder call
2150
2147
  */
2151
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;
2152
2159
  /**
2153
2160
  * Set allowlist status for an OApp sender (admin with signatures)
2154
2161
  * @param tx - The transaction to add the move call to
@@ -2207,17 +2214,18 @@ declare class DVN {
2207
2214
  */
2208
2215
  quorumChangeAdminMoveCall(tx: Transaction, admin: string | TransactionArgument, active: boolean | TransactionArgument, expiration: bigint | number | string | TransactionArgument, signatures: Uint8Array | TransactionArgument): void;
2209
2216
  /**
2210
- * Verify a packet with DVN signatures (admin with signatures)
2217
+ * Verify a packet with DVN signatures (admin with signatures) - returns Call object for ULN302
2211
2218
  * @param tx - The transaction to add the move call to
2212
2219
  * @param adminCap - The admin capability object ID
2213
- * @param verification - The verification object address
2220
+ * @param targetMessageLib - The target message library address (usually ULN302)
2214
2221
  * @param packetHeader - The packet header as bytes
2215
2222
  * @param payloadHash - The payload hash as bytes
2216
2223
  * @param confirmations - Required confirmations count
2217
2224
  * @param expiration - Signature expiration timestamp
2218
2225
  * @param signatures - DVN multisig signatures
2226
+ * @returns Transaction result containing the verification Call object
2219
2227
  */
2220
- 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;
2221
2229
  /**
2222
2230
  * Assign verification job for DVN (called via PTB with MultiCall created by send function in ULN302)
2223
2231
  * @param tx - The transaction to add the move call to
@@ -2342,6 +2350,19 @@ declare class DVN {
2342
2350
  * @returns Promise<boolean> - True if the address is an admin
2343
2351
  */
2344
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>;
2345
2366
  /**
2346
2367
  * Check if an address is allowlisted
2347
2368
  * @param tx - The transaction to add the move call to
@@ -2670,6 +2691,19 @@ declare class DVN {
2670
2691
  * @returns Transaction result containing the set PTB builder move calls hash
2671
2692
  */
2672
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;
2673
2707
  }
2674
2708
 
2675
2709
  declare const DVNFeeLibErrorCode: {
@@ -2725,6 +2759,7 @@ declare class DvnLayerZero {
2725
2759
  * @param workerCap - Worker capability object ID or transaction argument
2726
2760
  * @param vid - Verifier ID for the DVN or transaction argument
2727
2761
  * @param depositAddress - Address for fee deposits or transaction argument
2762
+ * @param supportedMessageLibs - Array of supported message library addresses or transaction argument
2728
2763
  * @param priceFeed - Price feed object address or transaction argument
2729
2764
  * @param workerFeeLib - Worker fee library address or transaction argument
2730
2765
  * @param defaultMultiplierBps - Default multiplier in basis points or transaction argument
@@ -2732,7 +2767,7 @@ declare class DvnLayerZero {
2732
2767
  * @param signers - Array of signer public keys as bytes or transaction argument
2733
2768
  * @param quorum - Required signature threshold or transaction argument
2734
2769
  */
2735
- 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;
2736
2771
  }
2737
2772
 
2738
2773
  declare const ExecutorErrorCode: {
@@ -2918,6 +2953,14 @@ declare class Executor {
2918
2953
  * @param active - Whether to grant or revoke admin role
2919
2954
  */
2920
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;
2921
2964
  /**
2922
2965
  * Set allowlist status for an OApp sender (owner only)
2923
2966
  * @param tx - The transaction to add the move call to
@@ -3037,6 +3080,19 @@ declare class Executor {
3037
3080
  * @returns Promise<boolean> - True if the address is an admin
3038
3081
  */
3039
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>;
3040
3096
  /**
3041
3097
  * Check if an address is allowlisted
3042
3098
  * @param tx - The transaction to add the move call to
@@ -3207,13 +3263,14 @@ declare class ExecutorLayerZero {
3207
3263
  * @param tx - The transaction to add the move call to
3208
3264
  * @param workerCap - Worker capability object ID or transaction argument
3209
3265
  * @param depositAddress - Address for fee deposits or transaction argument
3266
+ * @param supportedMessageLibs - Array of supported message library addresses or transaction argument
3210
3267
  * @param priceFeed - Price feed object address or transaction argument
3211
3268
  * @param workerFeeLib - Worker fee library address or transaction argument
3212
3269
  * @param defaultMultiplierBps - Default multiplier in basis points or transaction argument
3213
3270
  * @param owner - Owner address for the executor or transaction argument
3214
3271
  * @param admins - Array of admin addresses or transaction argument
3215
3272
  */
3216
- 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;
3217
3274
  }
3218
3275
 
3219
3276
  declare const PriceFeedErrorCode: {