@layerzerolabs/lz-sui-sdk-v2 3.0.135 → 3.0.137

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 (216) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/deployments/sui-mainnet/blocked_message_lib.json +32 -32
  3. package/deployments/sui-mainnet/blocked_msglib_ptb_builder.json +32 -32
  4. package/deployments/sui-mainnet/call.json +20 -21
  5. package/deployments/sui-mainnet/counter.json +47 -47
  6. package/deployments/sui-mainnet/dvn.json +20 -19
  7. package/deployments/sui-mainnet/dvn_call_type.json +24 -24
  8. package/deployments/sui-mainnet/dvn_fee_lib.json +31 -31
  9. package/deployments/sui-mainnet/dvn_layerzero.json +25 -25
  10. package/deployments/sui-mainnet/dvn_ptb_builder.json +19 -19
  11. package/deployments/sui-mainnet/endpoint_ptb_builder.json +34 -34
  12. package/deployments/sui-mainnet/endpoint_v2.json +43 -43
  13. package/deployments/sui-mainnet/executor.json +20 -19
  14. package/deployments/sui-mainnet/executor_call_type.json +24 -24
  15. package/deployments/sui-mainnet/executor_fee_lib.json +25 -25
  16. package/deployments/sui-mainnet/executor_layerzero.json +32 -32
  17. package/deployments/sui-mainnet/executor_ptb_builder.json +19 -19
  18. package/deployments/sui-mainnet/layerzero_views.json +25 -25
  19. package/deployments/sui-mainnet/message_lib_common.json +25 -25
  20. package/deployments/sui-mainnet/msglib_ptb_builder_call_types.json +19 -19
  21. package/deployments/sui-mainnet/multi_call.json +45 -0
  22. package/deployments/sui-mainnet/oapp.json +27 -25
  23. package/deployments/sui-mainnet/object-BlockedMessageLib.json +5 -5
  24. package/deployments/sui-mainnet/object-BlockedMsglibPtbBuilder.json +5 -5
  25. package/deployments/sui-mainnet/object-Counter.json +5 -5
  26. package/deployments/sui-mainnet/object-CounterAdminCap.json +5 -5
  27. package/deployments/sui-mainnet/object-CounterOApp.json +5 -5
  28. package/deployments/sui-mainnet/object-DVN.json +2 -2
  29. package/deployments/sui-mainnet/object-DVNCap.json +5 -5
  30. package/deployments/sui-mainnet/object-DVNFeeLib.json +5 -5
  31. package/deployments/sui-mainnet/object-EndpointPtbBuilder.json +5 -5
  32. package/deployments/sui-mainnet/object-EndpointPtbBuilderAdminCap.json +5 -5
  33. package/deployments/sui-mainnet/object-EndpointV2.json +5 -5
  34. package/deployments/sui-mainnet/object-EndpointV2AdminCap.json +5 -5
  35. package/deployments/sui-mainnet/object-Executor.json +2 -2
  36. package/deployments/sui-mainnet/object-ExecutorCap.json +5 -5
  37. package/deployments/sui-mainnet/object-ExecutorFeeLib.json +5 -5
  38. package/deployments/sui-mainnet/object-ExecutorOwnerCap.json +2 -2
  39. package/deployments/sui-mainnet/object-PackageWhitelistValidator.json +5 -5
  40. package/deployments/sui-mainnet/object-PriceFeed.json +5 -5
  41. package/deployments/sui-mainnet/object-PriceFeedOwnerCap.json +5 -5
  42. package/deployments/sui-mainnet/object-SimpleMessageLib.json +5 -5
  43. package/deployments/sui-mainnet/object-SimpleMessageLibAdminCap.json +5 -5
  44. package/deployments/sui-mainnet/object-SmlPtbBuilder.json +5 -5
  45. package/deployments/sui-mainnet/object-Treasury.json +5 -5
  46. package/deployments/sui-mainnet/object-TreasuryAdminCap.json +5 -5
  47. package/deployments/sui-mainnet/object-ULN302.json +5 -5
  48. package/deployments/sui-mainnet/object-ULN302AdminCap.json +5 -5
  49. package/deployments/sui-mainnet/object-Uln302PtbBuilder.json +5 -5
  50. package/deployments/sui-mainnet/object-Uln302Verification.json +5 -5
  51. package/deployments/sui-mainnet/object-WorkerRegistry.json +9 -0
  52. package/deployments/sui-mainnet/object-ZroCoinMetadata.json +5 -5
  53. package/deployments/sui-mainnet/object-ZroTreasuryCap.json +5 -5
  54. package/deployments/sui-mainnet/package_whitelist_validator.json +54 -54
  55. package/deployments/sui-mainnet/price_feed.json +34 -34
  56. package/deployments/sui-mainnet/price_feed_call_types.json +24 -24
  57. package/deployments/sui-mainnet/ptb_move_call.json +19 -19
  58. package/deployments/sui-mainnet/simple_message_lib.json +39 -39
  59. package/deployments/sui-mainnet/simple_msglib_ptb_builder.json +32 -32
  60. package/deployments/sui-mainnet/treasury.json +40 -40
  61. package/deployments/sui-mainnet/uln_302.json +47 -51
  62. package/deployments/sui-mainnet/uln_302_ptb_builder.json +32 -32
  63. package/deployments/sui-mainnet/uln_common.json +49 -0
  64. package/deployments/sui-mainnet/utils.json +31 -24
  65. package/deployments/sui-mainnet/worker_common.json +21 -20
  66. package/deployments/sui-mainnet/worker_registry.json +58 -0
  67. package/deployments/sui-mainnet/zro.json +37 -37
  68. package/deployments/sui-sandbox-local/blocked_message_lib.json +23 -23
  69. package/deployments/sui-sandbox-local/blocked_msglib_ptb_builder.json +23 -23
  70. package/deployments/sui-sandbox-local/call.json +18 -19
  71. package/deployments/sui-sandbox-local/counter.json +28 -28
  72. package/deployments/sui-sandbox-local/dvn.json +10 -10
  73. package/deployments/sui-sandbox-local/dvn_fee_lib.json +21 -21
  74. package/deployments/sui-sandbox-local/dvn_layerzero.json +14 -14
  75. package/deployments/sui-sandbox-local/dvn_ptb_builder.json +10 -10
  76. package/deployments/sui-sandbox-local/endpoint_ptb_builder.json +24 -24
  77. package/deployments/sui-sandbox-local/endpoint_v2.json +16 -16
  78. package/deployments/sui-sandbox-local/executor.json +22 -22
  79. package/deployments/sui-sandbox-local/executor_call_type.json +28 -28
  80. package/deployments/sui-sandbox-local/executor_fee_lib.json +27 -27
  81. package/deployments/sui-sandbox-local/executor_layerzero.json +25 -25
  82. package/deployments/sui-sandbox-local/executor_ptb_builder.json +14 -14
  83. package/deployments/sui-sandbox-local/layerzero_views.json +10 -10
  84. package/deployments/sui-sandbox-local/message_lib_common.json +10 -10
  85. package/deployments/sui-sandbox-local/msglib_ptb_builder_call_types.json +10 -10
  86. package/deployments/sui-sandbox-local/{sequential_multi_call.json → multi_call.json} +18 -18
  87. package/deployments/sui-sandbox-local/oapp.json +19 -19
  88. package/deployments/sui-sandbox-local/object-BlockedMessageLib.json +4 -4
  89. package/deployments/sui-sandbox-local/object-BlockedMsglibPtbBuilder.json +4 -4
  90. package/deployments/sui-sandbox-local/object-Counter.json +4 -4
  91. package/deployments/sui-sandbox-local/object-CounterAdminCap.json +4 -4
  92. package/deployments/sui-sandbox-local/object-CounterOApp.json +4 -4
  93. package/deployments/sui-sandbox-local/object-DVN.json +2 -2
  94. package/deployments/sui-sandbox-local/object-DVNCap.json +4 -4
  95. package/deployments/sui-sandbox-local/object-DVNFeeLib.json +4 -4
  96. package/deployments/sui-sandbox-local/object-EndpointPtbBuilder.json +4 -4
  97. package/deployments/sui-sandbox-local/object-EndpointPtbBuilderAdminCap.json +4 -4
  98. package/deployments/sui-sandbox-local/object-EndpointV2.json +4 -4
  99. package/deployments/sui-sandbox-local/object-EndpointV2AdminCap.json +4 -4
  100. package/deployments/sui-sandbox-local/object-Executor.json +2 -2
  101. package/deployments/sui-sandbox-local/object-ExecutorCap.json +5 -5
  102. package/deployments/sui-sandbox-local/object-ExecutorFeeLib.json +5 -5
  103. package/deployments/sui-sandbox-local/object-ExecutorOwnerCap.json +2 -2
  104. package/deployments/sui-sandbox-local/object-PackageWhitelistValidator.json +4 -4
  105. package/deployments/sui-sandbox-local/object-PriceFeed.json +4 -4
  106. package/deployments/sui-sandbox-local/object-PriceFeedOwnerCap.json +4 -4
  107. package/deployments/sui-sandbox-local/object-SimpleMessageLib.json +4 -4
  108. package/deployments/sui-sandbox-local/object-SimpleMessageLibAdminCap.json +4 -4
  109. package/deployments/sui-sandbox-local/object-SmlPtbBuilder.json +4 -4
  110. package/deployments/sui-sandbox-local/object-Treasury.json +4 -4
  111. package/deployments/sui-sandbox-local/object-TreasuryAdminCap.json +4 -4
  112. package/deployments/sui-sandbox-local/object-ULN302.json +4 -4
  113. package/deployments/sui-sandbox-local/object-ULN302AdminCap.json +4 -4
  114. package/deployments/sui-sandbox-local/object-Uln302PtbBuilder.json +4 -4
  115. package/deployments/sui-sandbox-local/object-Uln302Verification.json +4 -4
  116. package/deployments/sui-sandbox-local/object-WorkerRegistry.json +4 -4
  117. package/deployments/sui-sandbox-local/package_whitelist_validator.json +41 -41
  118. package/deployments/sui-sandbox-local/price_feed.json +30 -30
  119. package/deployments/sui-sandbox-local/price_feed_call_types.json +9 -9
  120. package/deployments/sui-sandbox-local/ptb_move_call.json +18 -18
  121. package/deployments/sui-sandbox-local/simple_message_lib.json +17 -17
  122. package/deployments/sui-sandbox-local/simple_msglib_ptb_builder.json +13 -13
  123. package/deployments/sui-sandbox-local/treasury.json +27 -27
  124. package/deployments/sui-sandbox-local/uln_302.json +28 -28
  125. package/deployments/sui-sandbox-local/uln_302_ptb_builder.json +20 -20
  126. package/deployments/sui-sandbox-local/uln_common.json +9 -9
  127. package/deployments/sui-sandbox-local/worker_common.json +18 -18
  128. package/deployments/sui-sandbox-local/worker_registry.json +23 -23
  129. package/deployments/sui-testnet/blocked_message_lib.json +26 -26
  130. package/deployments/sui-testnet/blocked_msglib_ptb_builder.json +22 -22
  131. package/deployments/sui-testnet/call.json +21 -22
  132. package/deployments/sui-testnet/counter.json +46 -39
  133. package/deployments/sui-testnet/dvn.json +13 -13
  134. package/deployments/sui-testnet/dvn_call_type.json +12 -12
  135. package/deployments/sui-testnet/dvn_fee_lib.json +22 -22
  136. package/deployments/sui-testnet/dvn_layerzero.json +17 -17
  137. package/deployments/sui-testnet/dvn_ptb_builder.json +20 -20
  138. package/deployments/sui-testnet/endpoint_ptb_builder.json +33 -33
  139. package/deployments/sui-testnet/endpoint_v2.json +30 -30
  140. package/deployments/sui-testnet/executor.json +21 -21
  141. package/deployments/sui-testnet/executor_call_type.json +19 -19
  142. package/deployments/sui-testnet/executor_fee_lib.json +26 -26
  143. package/deployments/sui-testnet/executor_layerzero.json +17 -17
  144. package/deployments/sui-testnet/executor_ptb_builder.json +20 -20
  145. package/deployments/sui-testnet/layerzero_views.json +13 -13
  146. package/deployments/sui-testnet/message_lib_common.json +13 -13
  147. package/deployments/sui-testnet/msglib_ptb_builder_call_types.json +13 -13
  148. package/deployments/sui-testnet/multi_call.json +45 -0
  149. package/deployments/sui-testnet/oapp.json +21 -21
  150. package/deployments/sui-testnet/object-BlockedMessageLib.json +5 -5
  151. package/deployments/sui-testnet/object-BlockedMsglibPtbBuilder.json +5 -5
  152. package/deployments/sui-testnet/object-Counter.json +5 -5
  153. package/deployments/sui-testnet/object-CounterAdminCap.json +5 -5
  154. package/deployments/sui-testnet/object-CounterOApp.json +5 -5
  155. package/deployments/sui-testnet/object-DVN.json +2 -2
  156. package/deployments/sui-testnet/object-DVNCap.json +5 -5
  157. package/deployments/sui-testnet/object-DVNFeeLib.json +5 -5
  158. package/deployments/sui-testnet/object-EndpointPtbBuilder.json +5 -5
  159. package/deployments/sui-testnet/object-EndpointPtbBuilderAdminCap.json +5 -5
  160. package/deployments/sui-testnet/object-EndpointV2.json +5 -5
  161. package/deployments/sui-testnet/object-EndpointV2AdminCap.json +5 -5
  162. package/deployments/sui-testnet/object-Executor.json +2 -2
  163. package/deployments/sui-testnet/object-ExecutorCap.json +5 -5
  164. package/deployments/sui-testnet/object-ExecutorFeeLib.json +5 -5
  165. package/deployments/sui-testnet/object-ExecutorOwnerCap.json +2 -2
  166. package/deployments/sui-testnet/object-OFT-TokenTwo.json +5 -0
  167. package/deployments/sui-testnet/object-OFTComposerManager.json +9 -0
  168. package/deployments/sui-testnet/object-OFTInitTicket-TokenTwo.json +9 -0
  169. package/deployments/sui-testnet/object-OFTOApp-TokenTwo.json +9 -0
  170. package/deployments/sui-testnet/object-PackageWhitelistValidator.json +5 -5
  171. package/deployments/sui-testnet/object-PriceFeed.json +5 -5
  172. package/deployments/sui-testnet/object-PriceFeedOwnerCap.json +5 -5
  173. package/deployments/sui-testnet/object-SimpleMessageLib.json +5 -5
  174. package/deployments/sui-testnet/object-SimpleMessageLibAdminCap.json +5 -5
  175. package/deployments/sui-testnet/object-SmlPtbBuilder.json +5 -5
  176. package/deployments/sui-testnet/object-TestCoinMetadata.json +9 -0
  177. package/deployments/sui-testnet/object-TestCoinTreasuryCap.json +9 -0
  178. package/deployments/sui-testnet/object-Treasury.json +5 -5
  179. package/deployments/sui-testnet/object-TreasuryAdminCap.json +5 -5
  180. package/deployments/sui-testnet/object-ULN302.json +5 -5
  181. package/deployments/sui-testnet/object-ULN302AdminCap.json +5 -5
  182. package/deployments/sui-testnet/object-Uln302PtbBuilder.json +5 -5
  183. package/deployments/sui-testnet/object-Uln302Verification.json +5 -5
  184. package/deployments/sui-testnet/object-WorkerRegistry.json +5 -5
  185. package/deployments/sui-testnet/object-ZroCoinMetadata.json +5 -5
  186. package/deployments/sui-testnet/object-ZroTreasuryCap.json +5 -5
  187. package/deployments/sui-testnet/oft-TokenTwo.json +82 -0
  188. package/deployments/sui-testnet/oft_common.json +61 -0
  189. package/deployments/sui-testnet/package_whitelist_validator.json +50 -50
  190. package/deployments/sui-testnet/price_feed.json +31 -31
  191. package/deployments/sui-testnet/price_feed_call_types.json +19 -19
  192. package/deployments/sui-testnet/ptb_move_call.json +13 -13
  193. package/deployments/sui-testnet/simple_message_lib.json +22 -22
  194. package/deployments/sui-testnet/simple_msglib_ptb_builder.json +25 -25
  195. package/deployments/sui-testnet/test_coin.json +69 -0
  196. package/deployments/sui-testnet/treasury.json +29 -29
  197. package/deployments/sui-testnet/uln_302.json +46 -46
  198. package/deployments/sui-testnet/uln_302_ptb_builder.json +18 -18
  199. package/deployments/sui-testnet/uln_common.json +21 -21
  200. package/deployments/sui-testnet/utils.json +20 -20
  201. package/deployments/sui-testnet/worker_common.json +13 -13
  202. package/deployments/sui-testnet/worker_registry.json +26 -26
  203. package/deployments/sui-testnet/zro.json +27 -27
  204. package/dist/index.cjs +218 -226
  205. package/dist/index.cjs.map +1 -1
  206. package/dist/index.d.mts +33 -34
  207. package/dist/index.d.ts +33 -34
  208. package/dist/index.mjs +218 -226
  209. package/dist/index.mjs.map +1 -1
  210. package/package.json +7 -7
  211. package/src/generated/addresses.ts +169 -169
  212. package/src/modules/call.ts +2 -2
  213. package/src/modules/endpoint.ts +46 -53
  214. package/src/modules/oapps/counter.ts +5 -8
  215. package/src/modules/oapps/oapp.ts +1 -1
  216. package/deployments/sui-testnet/sequential_multi_call.json +0 -45
package/dist/index.d.mts CHANGED
@@ -667,10 +667,8 @@ declare const EndpointErrorCode: {
667
667
  readonly MessagingComposer_EComposeNotFound: 3;
668
668
  readonly MessagingComposer_EComposerNotRegistered: 4;
669
669
  readonly MessagingComposer_EComposerRegistered: 5;
670
- readonly MessagingComposer_EInvalidLZComposeInfo: 6;
671
- readonly OAppRegistry_EInvalidLZReceiveInfo: 1;
672
- readonly OAppRegistry_EOAppNotRegistered: 2;
673
- readonly OAppRegistry_EOAppRegistered: 3;
670
+ readonly OAppRegistry_EOAppNotRegistered: 1;
671
+ readonly OAppRegistry_EOAppRegistered: 2;
674
672
  readonly Endpoint_EAlreadyInitialized: 1;
675
673
  readonly Endpoint_EInvalidEid: 2;
676
674
  readonly Endpoint_ENotInitialized: 3;
@@ -695,9 +693,10 @@ declare class Endpoint {
695
693
  * Register an OApp with the endpoint
696
694
  * @param tx - The transaction to add the move call to
697
695
  * @param oappCap - The OApp capability object ID or transaction argument
698
- * @param lzReceiveInfo - Transaction result containing LayerZero receive information
696
+ * @param oappInfo - OApp information including lz_receive execution information
697
+ * @returns Transaction result containing the messaging channel address
699
698
  */
700
- registerOAppMoveCall(tx: Transaction, oappCap: string | TransactionArgument, lzReceiveInfo: Uint8Array | TransactionArgument): void;
699
+ registerOAppMoveCall(tx: Transaction, oappCap: string | TransactionArgument, oappInfo: Uint8Array | TransactionArgument): TransactionResult;
701
700
  /**
702
701
  * Set a delegate for an OApp
703
702
  * @param tx - The transaction to add the move call to
@@ -706,13 +705,13 @@ declare class Endpoint {
706
705
  */
707
706
  setDelegateMoveCall(tx: Transaction, oappCap: string | TransactionArgument, newDelegate: string | TransactionArgument): void;
708
707
  /**
709
- * Set LayerZero receive information for an OApp
708
+ * Set OApp information for an OApp
710
709
  * @param tx - The transaction to add the move call to
711
710
  * @param callerCap - The caller capability object ID or transaction argument
712
711
  * @param oapp - The OApp address or transaction argument
713
- * @param lzReceiveInfo - The LayerZero receive information as bytes or transaction argument
712
+ * @param oappInfo - The OApp information including lz_receive execution information as bytes or transaction argument
714
713
  */
715
- setLzReceiveInfoMoveCall(tx: Transaction, callerCap: string | TransactionArgument, oapp: string | TransactionArgument, lzReceiveInfo: Uint8Array | TransactionArgument): void;
714
+ setOappInfoMoveCall(tx: Transaction, callerCap: string | TransactionArgument, oapp: string | TransactionArgument, oappInfo: Uint8Array | TransactionArgument): void;
716
715
  /**
717
716
  * Initialize a messaging channel between local and remote OApps
718
717
  * @param tx - The transaction to add the move call to
@@ -852,16 +851,17 @@ declare class Endpoint {
852
851
  * Register a composer with the endpoint
853
852
  * @param tx - The transaction to add the move call to
854
853
  * @param composerCap - The composer capability object ID or transaction argument
855
- * @param lzComposeInfo - LayerZero compose information as bytes
854
+ * @param composerInfo - Composer information including lz_compose execution information as bytes
855
+ * @returns Transaction result containing the compose queue address
856
856
  */
857
- registerComposerMoveCall(tx: Transaction, composerCap: string | TransactionArgument, lzComposeInfo: Uint8Array | TransactionArgument): void;
857
+ registerComposerMoveCall(tx: Transaction, composerCap: string | TransactionArgument, composerInfo: Uint8Array | TransactionArgument): TransactionResult;
858
858
  /**
859
- * Set LayerZero compose information for a composer
859
+ * Set composer information for a composer
860
860
  * @param tx - The transaction to add the move call to
861
861
  * @param composerCap - The composer capability object ID or transaction argument
862
- * @param lzComposeInfo - LayerZero compose information as bytes or transaction argument
862
+ * @param composerInfo - Composer information including lz_compose execution information as bytes or transaction argument
863
863
  */
864
- setLzComposeInfoMoveCall(tx: Transaction, composerCap: string | TransactionArgument, lzComposeInfo: Uint8Array | TransactionArgument): void;
864
+ setComposerInfoMoveCall(tx: Transaction, composerCap: string | TransactionArgument, composerInfo: Uint8Array | TransactionArgument): void;
865
865
  /**
866
866
  * Send compose message to queue
867
867
  * @param tx - The transaction to add the move call to
@@ -1017,18 +1017,18 @@ declare class Endpoint {
1017
1017
  */
1018
1018
  getMessagingChannel(oapp: string): Promise<string>;
1019
1019
  /**
1020
- * Get LayerZero receive information for an OApp
1020
+ * Get OApp information for an OApp
1021
1021
  * @param tx - The transaction to add the move call to
1022
1022
  * @param oapp - The OApp address or transaction argument
1023
- * @returns Transaction result containing the receive information
1023
+ * @returns Transaction result containing the OApp information including lz_receive execution information
1024
1024
  */
1025
- getLzReceiveInfoMoveCall(tx: Transaction, oapp: string | TransactionArgument): TransactionResult;
1025
+ getOappInfoMoveCall(tx: Transaction, oapp: string | TransactionArgument): TransactionResult;
1026
1026
  /**
1027
- * Get LayerZero receive information for an OApp
1027
+ * Get OApp information for an OApp
1028
1028
  * @param oapp - The OApp address
1029
- * @returns Promise<Uint8Array> - The receive information as bytes
1029
+ * @returns Promise<Uint8Array> - The OApp information including lz_receive execution information as bytes
1030
1030
  */
1031
- getLzReceiveInfo(oapp: string): Promise<Uint8Array>;
1031
+ getOappInfo(oapp: string): Promise<Uint8Array>;
1032
1032
  /**
1033
1033
  * Get delegate address for an OApp
1034
1034
  * @param tx - The transaction to add the move call to
@@ -1069,18 +1069,18 @@ declare class Endpoint {
1069
1069
  */
1070
1070
  getComposeQueue(composer: string): Promise<string>;
1071
1071
  /**
1072
- * Get LayerZero compose information for a composer
1072
+ * Get composer information for a registered composer
1073
1073
  * @param tx - The transaction to add the move call to
1074
1074
  * @param composer - The composer address or transaction argument
1075
- * @returns Transaction result containing the compose information
1075
+ * @returns Transaction result containing the composer information
1076
1076
  */
1077
- getLzComposeInfoMoveCall(tx: Transaction, composer: string | TransactionArgument): TransactionResult;
1077
+ getComposerInfoMoveCall(tx: Transaction, composer: string | TransactionArgument): TransactionResult;
1078
1078
  /**
1079
- * Get LayerZero compose information for a composer
1079
+ * Get composer information for a registered composer
1080
1080
  * @param composer - The composer address
1081
- * @returns Promise<Uint8Array> - The compose information as bytes
1081
+ * @returns Promise<Uint8Array> - The composer information as bytes
1082
1082
  */
1083
- getLzComposeInfo(composer: string): Promise<Uint8Array>;
1083
+ getComposerInfo(composer: string): Promise<Uint8Array>;
1084
1084
  /**
1085
1085
  * Get composer address from compose queue
1086
1086
  * @param tx - The transaction to add the move call to
@@ -1553,7 +1553,7 @@ declare class Endpoint {
1553
1553
  * @throws Error if simulation fails or validation errors occur
1554
1554
  * @returns Promise<MoveCall[]> - The final move calls that are built
1555
1555
  */
1556
- populateLzReceiveTransaction(tx: Transaction, lzReceiveCall: TransactionResult, oapp: string, // receiver oapp
1556
+ populateLzReceiveTransaction(tx: Transaction, lzReceiveCall: TransactionResult, oapp: string | TransactionArgument, // receiver oapp
1557
1557
  sender?: string | undefined, validators?: IPTBValidator[], maxSimulationTimes?: number): Promise<MoveCall[]>;
1558
1558
  /**
1559
1559
  * Populate a transaction with all necessary move calls for LayerZero compose
@@ -1569,7 +1569,7 @@ declare class Endpoint {
1569
1569
  * @throws Error if simulation fails or validation errors occur
1570
1570
  * @returns Promise<MoveCall[]> - The final move calls that are built
1571
1571
  */
1572
- populateLzComposeTransaction(tx: Transaction, endpointLzComposeCall: TransactionResult, composer: string, sender?: string | undefined, validators?: IPTBValidator[], maxSimulationTimes?: number): Promise<MoveCall[]>;
1572
+ populateLzComposeTransaction(tx: Transaction, endpointLzComposeCall: TransactionResult, composer: string | TransactionArgument, sender?: string | undefined, validators?: IPTBValidator[], maxSimulationTimes?: number): Promise<MoveCall[]>;
1573
1573
  }
1574
1574
 
1575
1575
  declare const BlockedMessageLibErrorCode: {
@@ -4385,18 +4385,17 @@ declare class Counter {
4385
4385
  * @param dstEid - Destination endpoint ID
4386
4386
  * @param msgType - Message type (SEND or SEND_AND_CALL)
4387
4387
  * @param options - Execution options as bytes
4388
- * @param sendValue - Value to send with the message
4389
4388
  * @param nativeFee - Native token fee amount
4390
4389
  * @param zroFee - ZRO token fee amount
4391
4390
  * @param refundAddress - Address for fee refunds
4392
4391
  */
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>;
4392
+ incrementMoveCall(tx: Transaction, sender: string, dstEid: EndpointId | TransactionArgument, msgType: number | TransactionArgument, options: Uint8Array | TransactionArgument, nativeFee: bigint | TransactionArgument, zroFee: bigint | TransactionArgument, refundAddress: string | TransactionArgument, validators?: IPTBValidator[]): Promise<void>;
4394
4393
  /**
4395
- * Set LayerZero compose information for counter
4394
+ * Set composer information for counter
4396
4395
  * @param tx - The transaction to add the move call to
4397
- * @param lzComposeInfo - LayerZero compose information as bytes
4396
+ * @param composerInfo - Composer information including lz_compose execution information as bytes
4398
4397
  */
4399
- setLzComposeInfoMoveCall(tx: Transaction, lzComposeInfo: Uint8Array | TransactionArgument): void;
4398
+ setComposerInfoMoveCall(tx: Transaction, composerInfo: Uint8Array | TransactionArgument): void;
4400
4399
  /**
4401
4400
  * Get counter EID
4402
4401
  * @param tx - The transaction to add the move call to
@@ -4797,7 +4796,7 @@ declare const CallErrorCode: {
4797
4796
  readonly Call_EParameterNotMutable: 9;
4798
4797
  readonly Call_EUnauthorized: 10;
4799
4798
  readonly CallCap_EBadWitness: 1;
4800
- readonly MultiCall_ECalleeNotFound: 1;
4799
+ readonly MultiCall_ENoMoreCalls: 1;
4801
4800
  readonly MultiCall_EUnauthorized: 2;
4802
4801
  };
4803
4802
  declare class Call {
package/dist/index.d.ts CHANGED
@@ -667,10 +667,8 @@ declare const EndpointErrorCode: {
667
667
  readonly MessagingComposer_EComposeNotFound: 3;
668
668
  readonly MessagingComposer_EComposerNotRegistered: 4;
669
669
  readonly MessagingComposer_EComposerRegistered: 5;
670
- readonly MessagingComposer_EInvalidLZComposeInfo: 6;
671
- readonly OAppRegistry_EInvalidLZReceiveInfo: 1;
672
- readonly OAppRegistry_EOAppNotRegistered: 2;
673
- readonly OAppRegistry_EOAppRegistered: 3;
670
+ readonly OAppRegistry_EOAppNotRegistered: 1;
671
+ readonly OAppRegistry_EOAppRegistered: 2;
674
672
  readonly Endpoint_EAlreadyInitialized: 1;
675
673
  readonly Endpoint_EInvalidEid: 2;
676
674
  readonly Endpoint_ENotInitialized: 3;
@@ -695,9 +693,10 @@ declare class Endpoint {
695
693
  * Register an OApp with the endpoint
696
694
  * @param tx - The transaction to add the move call to
697
695
  * @param oappCap - The OApp capability object ID or transaction argument
698
- * @param lzReceiveInfo - Transaction result containing LayerZero receive information
696
+ * @param oappInfo - OApp information including lz_receive execution information
697
+ * @returns Transaction result containing the messaging channel address
699
698
  */
700
- registerOAppMoveCall(tx: Transaction, oappCap: string | TransactionArgument, lzReceiveInfo: Uint8Array | TransactionArgument): void;
699
+ registerOAppMoveCall(tx: Transaction, oappCap: string | TransactionArgument, oappInfo: Uint8Array | TransactionArgument): TransactionResult;
701
700
  /**
702
701
  * Set a delegate for an OApp
703
702
  * @param tx - The transaction to add the move call to
@@ -706,13 +705,13 @@ declare class Endpoint {
706
705
  */
707
706
  setDelegateMoveCall(tx: Transaction, oappCap: string | TransactionArgument, newDelegate: string | TransactionArgument): void;
708
707
  /**
709
- * Set LayerZero receive information for an OApp
708
+ * Set OApp information for an OApp
710
709
  * @param tx - The transaction to add the move call to
711
710
  * @param callerCap - The caller capability object ID or transaction argument
712
711
  * @param oapp - The OApp address or transaction argument
713
- * @param lzReceiveInfo - The LayerZero receive information as bytes or transaction argument
712
+ * @param oappInfo - The OApp information including lz_receive execution information as bytes or transaction argument
714
713
  */
715
- setLzReceiveInfoMoveCall(tx: Transaction, callerCap: string | TransactionArgument, oapp: string | TransactionArgument, lzReceiveInfo: Uint8Array | TransactionArgument): void;
714
+ setOappInfoMoveCall(tx: Transaction, callerCap: string | TransactionArgument, oapp: string | TransactionArgument, oappInfo: Uint8Array | TransactionArgument): void;
716
715
  /**
717
716
  * Initialize a messaging channel between local and remote OApps
718
717
  * @param tx - The transaction to add the move call to
@@ -852,16 +851,17 @@ declare class Endpoint {
852
851
  * Register a composer with the endpoint
853
852
  * @param tx - The transaction to add the move call to
854
853
  * @param composerCap - The composer capability object ID or transaction argument
855
- * @param lzComposeInfo - LayerZero compose information as bytes
854
+ * @param composerInfo - Composer information including lz_compose execution information as bytes
855
+ * @returns Transaction result containing the compose queue address
856
856
  */
857
- registerComposerMoveCall(tx: Transaction, composerCap: string | TransactionArgument, lzComposeInfo: Uint8Array | TransactionArgument): void;
857
+ registerComposerMoveCall(tx: Transaction, composerCap: string | TransactionArgument, composerInfo: Uint8Array | TransactionArgument): TransactionResult;
858
858
  /**
859
- * Set LayerZero compose information for a composer
859
+ * Set composer information for a composer
860
860
  * @param tx - The transaction to add the move call to
861
861
  * @param composerCap - The composer capability object ID or transaction argument
862
- * @param lzComposeInfo - LayerZero compose information as bytes or transaction argument
862
+ * @param composerInfo - Composer information including lz_compose execution information as bytes or transaction argument
863
863
  */
864
- setLzComposeInfoMoveCall(tx: Transaction, composerCap: string | TransactionArgument, lzComposeInfo: Uint8Array | TransactionArgument): void;
864
+ setComposerInfoMoveCall(tx: Transaction, composerCap: string | TransactionArgument, composerInfo: Uint8Array | TransactionArgument): void;
865
865
  /**
866
866
  * Send compose message to queue
867
867
  * @param tx - The transaction to add the move call to
@@ -1017,18 +1017,18 @@ declare class Endpoint {
1017
1017
  */
1018
1018
  getMessagingChannel(oapp: string): Promise<string>;
1019
1019
  /**
1020
- * Get LayerZero receive information for an OApp
1020
+ * Get OApp information for an OApp
1021
1021
  * @param tx - The transaction to add the move call to
1022
1022
  * @param oapp - The OApp address or transaction argument
1023
- * @returns Transaction result containing the receive information
1023
+ * @returns Transaction result containing the OApp information including lz_receive execution information
1024
1024
  */
1025
- getLzReceiveInfoMoveCall(tx: Transaction, oapp: string | TransactionArgument): TransactionResult;
1025
+ getOappInfoMoveCall(tx: Transaction, oapp: string | TransactionArgument): TransactionResult;
1026
1026
  /**
1027
- * Get LayerZero receive information for an OApp
1027
+ * Get OApp information for an OApp
1028
1028
  * @param oapp - The OApp address
1029
- * @returns Promise<Uint8Array> - The receive information as bytes
1029
+ * @returns Promise<Uint8Array> - The OApp information including lz_receive execution information as bytes
1030
1030
  */
1031
- getLzReceiveInfo(oapp: string): Promise<Uint8Array>;
1031
+ getOappInfo(oapp: string): Promise<Uint8Array>;
1032
1032
  /**
1033
1033
  * Get delegate address for an OApp
1034
1034
  * @param tx - The transaction to add the move call to
@@ -1069,18 +1069,18 @@ declare class Endpoint {
1069
1069
  */
1070
1070
  getComposeQueue(composer: string): Promise<string>;
1071
1071
  /**
1072
- * Get LayerZero compose information for a composer
1072
+ * Get composer information for a registered composer
1073
1073
  * @param tx - The transaction to add the move call to
1074
1074
  * @param composer - The composer address or transaction argument
1075
- * @returns Transaction result containing the compose information
1075
+ * @returns Transaction result containing the composer information
1076
1076
  */
1077
- getLzComposeInfoMoveCall(tx: Transaction, composer: string | TransactionArgument): TransactionResult;
1077
+ getComposerInfoMoveCall(tx: Transaction, composer: string | TransactionArgument): TransactionResult;
1078
1078
  /**
1079
- * Get LayerZero compose information for a composer
1079
+ * Get composer information for a registered composer
1080
1080
  * @param composer - The composer address
1081
- * @returns Promise<Uint8Array> - The compose information as bytes
1081
+ * @returns Promise<Uint8Array> - The composer information as bytes
1082
1082
  */
1083
- getLzComposeInfo(composer: string): Promise<Uint8Array>;
1083
+ getComposerInfo(composer: string): Promise<Uint8Array>;
1084
1084
  /**
1085
1085
  * Get composer address from compose queue
1086
1086
  * @param tx - The transaction to add the move call to
@@ -1553,7 +1553,7 @@ declare class Endpoint {
1553
1553
  * @throws Error if simulation fails or validation errors occur
1554
1554
  * @returns Promise<MoveCall[]> - The final move calls that are built
1555
1555
  */
1556
- populateLzReceiveTransaction(tx: Transaction, lzReceiveCall: TransactionResult, oapp: string, // receiver oapp
1556
+ populateLzReceiveTransaction(tx: Transaction, lzReceiveCall: TransactionResult, oapp: string | TransactionArgument, // receiver oapp
1557
1557
  sender?: string | undefined, validators?: IPTBValidator[], maxSimulationTimes?: number): Promise<MoveCall[]>;
1558
1558
  /**
1559
1559
  * Populate a transaction with all necessary move calls for LayerZero compose
@@ -1569,7 +1569,7 @@ declare class Endpoint {
1569
1569
  * @throws Error if simulation fails or validation errors occur
1570
1570
  * @returns Promise<MoveCall[]> - The final move calls that are built
1571
1571
  */
1572
- populateLzComposeTransaction(tx: Transaction, endpointLzComposeCall: TransactionResult, composer: string, sender?: string | undefined, validators?: IPTBValidator[], maxSimulationTimes?: number): Promise<MoveCall[]>;
1572
+ populateLzComposeTransaction(tx: Transaction, endpointLzComposeCall: TransactionResult, composer: string | TransactionArgument, sender?: string | undefined, validators?: IPTBValidator[], maxSimulationTimes?: number): Promise<MoveCall[]>;
1573
1573
  }
1574
1574
 
1575
1575
  declare const BlockedMessageLibErrorCode: {
@@ -4385,18 +4385,17 @@ declare class Counter {
4385
4385
  * @param dstEid - Destination endpoint ID
4386
4386
  * @param msgType - Message type (SEND or SEND_AND_CALL)
4387
4387
  * @param options - Execution options as bytes
4388
- * @param sendValue - Value to send with the message
4389
4388
  * @param nativeFee - Native token fee amount
4390
4389
  * @param zroFee - ZRO token fee amount
4391
4390
  * @param refundAddress - Address for fee refunds
4392
4391
  */
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>;
4392
+ incrementMoveCall(tx: Transaction, sender: string, dstEid: EndpointId | TransactionArgument, msgType: number | TransactionArgument, options: Uint8Array | TransactionArgument, nativeFee: bigint | TransactionArgument, zroFee: bigint | TransactionArgument, refundAddress: string | TransactionArgument, validators?: IPTBValidator[]): Promise<void>;
4394
4393
  /**
4395
- * Set LayerZero compose information for counter
4394
+ * Set composer information for counter
4396
4395
  * @param tx - The transaction to add the move call to
4397
- * @param lzComposeInfo - LayerZero compose information as bytes
4396
+ * @param composerInfo - Composer information including lz_compose execution information as bytes
4398
4397
  */
4399
- setLzComposeInfoMoveCall(tx: Transaction, lzComposeInfo: Uint8Array | TransactionArgument): void;
4398
+ setComposerInfoMoveCall(tx: Transaction, composerInfo: Uint8Array | TransactionArgument): void;
4400
4399
  /**
4401
4400
  * Get counter EID
4402
4401
  * @param tx - The transaction to add the move call to
@@ -4797,7 +4796,7 @@ declare const CallErrorCode: {
4797
4796
  readonly Call_EParameterNotMutable: 9;
4798
4797
  readonly Call_EUnauthorized: 10;
4799
4798
  readonly CallCap_EBadWitness: 1;
4800
- readonly MultiCall_ECalleeNotFound: 1;
4799
+ readonly MultiCall_ENoMoreCalls: 1;
4801
4800
  readonly MultiCall_EUnauthorized: 2;
4802
4801
  };
4803
4802
  declare class Call {